1 2010-10-22 Javier Miranda <miranda@adacore.com>
3 * sem_aggr.adb (Resolve_Array_Aggregate.Add): If the type of the
4 aggregate has a non standard representation the attributes 'Val and
5 'Pos expand into function calls and the resulting expression is
6 considered non-safe for reevaluation by the backend. Relocate it into
7 a constant temporary to indicate to the backend that it is side
10 2010-10-22 Ed Schonberg <schonberg@adacore.com>
12 * sem_ch3.adb (Build_Concurrent_Derived_Type): Create declaration for
13 derived corresponding record type only when expansion is enabled.
15 2010-10-22 Robert Dewar <dewar@adacore.com>
17 * sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
19 * sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
20 messages for generic actual subtypes.
21 * sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
22 (Bad_Predicated_Subtype_Use): Use this procedure.
24 2010-10-22 Robert Dewar <dewar@adacore.com>
26 * sem_ch5.adb: Minor reformatting.
28 2010-10-22 Robert Dewar <dewar@adacore.com>
30 * a-except-2005.adb (Rmsg_18): New message text.
31 * a-except.adb (Rmsg_18): New message text.
32 * atree.adb (List25): New function
33 (Set_List25): New procedure
34 * atree.ads (List25): New function
35 (Set_List25): New procedure
36 * einfo.adb (Static_Predicate): Is now a list
37 (OK_To_Reference): Present in all entities
38 * einfo.ads (Static_Predicate): Is now a list
39 (OK_To_Reference): Applies to all entities
40 * exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
41 * sem_attr.adb (Bad_Attribute_For_Predicate): Call
42 Bad_Predicated_Subtype_Use.
43 * sem_case.ads, sem_case.adb: Major surgery to deal with predicated
45 * sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
47 (Build_Static_Predicate): New procedure handles static predicates.
48 * sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
49 with no constraint if ancestor subtype has predicates.
50 (Analyze_Variant_Part): New calling sequence for Analyze_Choices
51 * sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
53 (Analyze_Case_Expression): New calling sequence for Analyze_Choices
54 * sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
56 * sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
57 * types.ads (PE_Bad_Predicated_Generic_Type): Replaces
58 PE_Bad_Attribute_For_Predicate.
59 * atree.h: Add definition of List25.
61 2010-10-22 Jerome Lambourg <lambourg@adacore.com>
63 * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
65 (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
66 * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
67 the .NET compiler, useless and unsupported.
69 2010-10-22 Robert Dewar <dewar@adacore.com>
71 * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
72 this returns a Node_Id for a reference to the entity, not the entity
75 2010-10-22 Ed Schonberg <schonberg@adacore.com>
77 * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
78 bounds require a temporary.
80 2010-10-22 Robert Dewar <dewar@adacore.com>
82 * sem_ch4.adb: Minor reformatting.
83 * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
85 2010-10-22 Robert Dewar <dewar@adacore.com>
87 * par-ch5.adb: Minor reformatting.
88 * gcc-interface/Make-lang.in: Update dependencies.
90 2010-10-22 Robert Dewar <dewar@adacore.com>
92 * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
93 * exp_ch13.adb (Add_Call): Make sure subtype is marked with
94 Has_Predicates set to True if it inherits predicates.
95 * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
96 * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
97 * types.h: Add new Rcheck entry.
98 * einfo.ads, einfo.adb (Static_Predicate): New field.
99 Minor code reorganization (file float routines in proper section)
100 Fix bad field name in comments.
102 2010-10-22 Robert Dewar <dewar@adacore.com>
104 * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
107 2010-10-22 Vincent Celier <celier@adacore.com>
109 * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
110 declaration of IDE'Compiler_Command for one of the language in the main
112 (Do_Autoconf): If there were at least one Compiler_Command declared and
113 no target, invoke gprconfig with --target=all instead of the normalized
116 2010-10-22 Robert Dewar <dewar@adacore.com>
118 * par-ch4.adb: Update syntax in comments for Ada 2012.
119 * sinfo.ads: Update syntax in comments for Ada 2012
120 * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
123 2010-10-22 Gary Dismukes <dismukes@adacore.com>
125 * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
126 limited tagged types to have defaulted discriminants. Customize the
127 error message for the Ada 2012 case.
128 (Process_Discriminants): In Ada 2012, allow limited tagged types to have
129 defaulted discriminants. Customize the error message for the Ada 2012
131 * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
132 formal for out formals of discriminated types in the case where the
133 underlying type is a limited tagged type.
134 * exp_attr.adb (Expand_N_Attribute_Reference, case
135 Attribute_Constrained): Return True for 'Constrained when the
136 underlying type of the prefix is a limited tagged type.
138 2010-10-22 Thomas Quinot <quinot@adacore.com>
140 * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
141 may already have a rep item chain inherited from the full view of the
142 base type, so do not overwrite it when propagating rep items from the
143 partial view of the subtype.
144 * sem_ch3.adb: Minor code reorganization. Minor reformatting.
146 2010-10-22 Sergey Rybin <rybin@adacore.com>
148 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
150 2010-10-22 Tristan Gingold <gingold@adacore.com>
152 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
154 2010-10-22 Ed Schonberg <schonberg@adacore.com>
156 * par-ch5.adb: Set properly starting sloc of loop parameter.
158 2010-10-22 Ed Schonberg <schonberg@adacore.com>
160 * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
161 lvalue in Ada2012, if the function has in-out parameters.
163 2010-10-22 Robert Dewar <dewar@adacore.com>
165 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
166 sem_ch10.adb: Minor reformatting.
168 2010-10-22 Sergey Rybin <rybin@adacore.com>
170 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
172 2010-10-22 Ed Schonberg <schonberg@adacore.com>
174 * sem_attr.adb: Handle indexed P'old.
176 2010-10-22 Geert Bosch <bosch@adacore.com>
178 * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
179 * einfo.ads (Float_Rep): New attribute.
180 (Float_Rep_Kind): Move from body. Add comments.
181 * einfo.adb (Float_Rep_Kind): Move to spec
182 (Float_Rep): Now a real field instead of local function.
183 (Set_Float_Rep): New procedure to set floating point representation
184 (Set_Vax_Float): Remove.
185 (Write_Entity_Flags): Remove Vax_Float flag.
186 (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
187 * exp_attr.adb (Attribute_Valid): Use case statement for representation
189 * sem_ch3.adb (Build_Derived_Numeric_Type,
190 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
192 * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
193 * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
194 Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
196 2010-10-22 Robert Dewar <dewar@adacore.com>
198 * sprint.adb: Minor reformatting.
200 2010-10-22 Robert Dewar <dewar@adacore.com>
202 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
204 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
206 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
208 (Process_PPCs): Handle predicates generating post conditions
209 * sem_util.adb (Is_Partially_Initialized_Type): Add
210 Include_Null parameter.
211 * sem_util.ads (Is_Partially_Initialized_Type): Add
212 Include_Null parameter.
214 2010-10-22 Sergey Rybin <rybin@adacore.com>
216 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
218 2010-10-22 Thomas Quinot <quinot@adacore.com>
220 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
221 case where argument is not a type.
223 2010-10-22 Robert Dewar <dewar@adacore.com>
225 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
228 2010-10-22 Arnaud Charlet <charlet@adacore.com>
230 * a-locale.adb: Minor code clean up.
232 2010-10-22 Thomas Quinot <quinot@adacore.com>
234 * exp_ch4.adb: Minor code reorganization and factoring.
236 2010-10-22 Thomas Quinot <quinot@adacore.com>
238 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
241 2010-10-22 Geert Bosch <bosch@adacore.com>
243 * stand.ads: Fix typo in comment.
245 2010-10-22 Ed Schonberg <schonberg@adacore.com>
247 * sem_ch6.adb: Enable in-out parameter for functions.
249 2010-10-22 Ed Schonberg <schonberg@adacore.com>
251 * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
252 iterators that are transformed into container iterators after analysis.
253 * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
254 iterator forms before rewriting as a loop.
256 2010-10-22 Brett Porter <porter@adacore.com>
258 * a-locale.adb, a-locale.ads, locales.c: New files.
259 * Makefile.rtl: Add a-locale
260 * gcc-interface/Makefile.in: Add locales.c
262 2010-10-22 Robert Dewar <dewar@adacore.com>
264 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
265 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
267 2010-10-22 Ed Schonberg <schonberg@adacore.com>
269 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
270 iterator forms over arrays and containers, in loops and quantified
272 * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
273 * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
274 * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
275 P_Iteration_Scheme to handle both loop forms.
276 * sem.adb: Handle N_Iterator_Specification.
277 * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
279 * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
280 N_Iteration_Scheme can now include an Iterator_Specification. Ditto
281 for N_Quantified_Expression.
282 * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
283 and Previous, to support iterators over predefined containers.
284 * sprint.adb: Handle N_Iterator_Specification.
286 2010-10-22 Thomas Quinot <quinot@adacore.com>
288 * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
289 (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
290 (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
291 immediately after a library unit.
292 (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
293 a formal derived type.
295 2010-10-22 Geert Bosch <bosch@adacore.com>
297 * gcc-interface/Make-lang.in: Remove ttypef.ads
298 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
299 of Machine_Mantissa and Machine_Radix.
300 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
301 Type_High_Bound of the type, instead of choosing constants from Ttypef.
302 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
303 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
305 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
306 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
307 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
308 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
309 synthesized floating point attributes.
310 * einfo.adb (Float_Rep): Determine the kind of floating point
311 representation used for a given type.
312 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
313 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
314 the number of digits in the type.
315 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
316 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
317 Implement new synthesized floating point attributes based on the various
319 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
320 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
321 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
322 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
323 constants, instead of using constants from Ttypef.
324 * gnat_rm.texi: Reword comments referencing Ttypef.
325 * sem_attr.ads: Reword comment referencing Ttypef.
326 * sem_attr.adb (Float_Attribute_Universal_Integer,
327 Float_Attribute_Universal_Real): Remove.
328 (Attribute_Machine_Emax, Attribute_Machine_Emin,
329 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
330 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
331 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
332 attributes in Einfo instead of Float_Attribute_Universal_Real and
333 Float_Attribute_Universal_Integer and all explicit constants.
334 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
335 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
336 IEEES_Digits): New local constants, in order to remove dependency on
338 * tbuild.ads (Make_Float_Literal): New function.
339 * tbuild.adb (Make_Float_Literal): New function to create a new
340 N_Real_Literal, constructing it as simple as possible for best
341 output of constants in -gnatS.
342 * ttypef.ads: Remove.
344 2010-10-22 Robert Dewar <dewar@adacore.com>
346 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
347 when subtype is the same, caused legitimate checks to be missed.
348 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
349 inheritance from right entity.
350 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
351 derived type case if the ancestor type has predicates.
352 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
353 * sem_prag.adb (Check_Enabled): Minor code reorganization.
355 2010-10-22 Arnaud Charlet <charlet@adacore.com>
357 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
359 2010-10-22 Thomas Quinot <quinot@adacore.com>
361 * einfo.ads (Declaration_Node): Clarify documentation, in particular
362 regarding what is returned for subprogram entities.
364 2010-10-22 Arnaud Charlet <charlet@adacore.com>
366 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
367 explicit comparisons, generates simpler expanded code.
368 * a-except-2005.adb (Rcheck_06_Ext): New.
369 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
371 * gcc-interface/Make-lang.in: Update dependencies.
373 2010-10-22 Robert Dewar <dewar@adacore.com>
375 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
377 (Constrain_Index): Error of subtype wi predicate in index constraint
378 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
379 predicate in entry family.
380 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
382 2010-10-22 Javier Miranda <miranda@adacore.com>
384 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
385 (Original_Corresponding_Operation): New subprogram.
386 (Visible_Ancestors): New subprogram.
387 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
388 operation that overrides a hidden inherited primitive.
389 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
390 (Check_Dispatching_Operation): if the new dispatching operation
391 does not override a visible primtive then check if it overrides
392 some hidden inherited primitive.
394 2010-10-22 Ed Schonberg <schonberg@adacore.com>
396 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
397 clause is a child unit that denotes a renaming, replace the
398 parent_unit_name with a reference to the renamed unit, because the
399 prefix is irrelevant to subsequent visibility..
401 2010-10-22 Robert Dewar <dewar@adacore.com>
403 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
405 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
407 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
408 freeze node for entities for which a predicate is specified.
409 (Analyze_Aspect_Specifications): Avoid duplicate calls
410 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
411 duplicate calls to Analye_Aspect_Specifications.
413 2010-10-22 Thomas Quinot <quinot@adacore.com>
415 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
417 2010-10-21 Robert Dewar <dewar@adacore.com>
419 * sem_ch3.adb: Minor reformatting.
421 2010-10-21 Thomas Quinot <quinot@adacore.com>
423 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
426 2010-10-21 Nicolas Roche <roche@adacore.com>
428 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
429 gcc-interface/Makefile.in: Remove gnatmem specific files.
431 2010-10-21 Thomas Quinot <quinot@adacore.com>
433 * sem_res.adb, exp_ch13.adb: Minor reformatting.
435 2010-10-21 Thomas Quinot <quinot@adacore.com>
437 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
438 to provide a tagged full view as the completion of an untagged partial
439 view if the partial view has a discriminant with default.
441 2010-10-21 Arnaud Charlet <charlet@adacore.com>
443 * gcc-interface/Make-lang.in: Update dependencies.
445 2010-10-21 Robert Dewar <dewar@adacore.com>
447 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
448 Minor code reorganization.
449 * einfo.adb (Has_Predicates): Fix assertion.
450 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
452 (Expand_N_Freeze_Entity): Call build predicate function.
453 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
454 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
455 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
457 * freeze.adb (Freeze_Entity): Move building of predicate function to
459 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
461 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
463 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
465 * sem_res.adb (Resolve_Actuals): Apply predicate check.
467 2010-10-21 Robert Dewar <dewar@adacore.com>
469 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
471 * exp_ch4.adb (Expand_N_In): Handle predicates.
472 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
473 (Make_Predicate_Check): New function.
474 * freeze.adb (Freee_Entity): Build predicate function if needed.
475 * sem_ch13.adb (Build_Predicate_Function): New procedure.
476 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
477 built from Predicate aspect.
478 * sem_ch13.ads (Build_Predicate_Function): New procedure.
479 * sem_ch3.adb: Add handling for predicates.
480 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
482 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
485 2010-10-21 Robert Dewar <dewar@adacore.com>
487 * einfo.ads, einfo.adb: Add handling of predicates.
488 Rework handling of invariants.
489 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
490 handing of invariants.
491 * par-prag.adb: Add dummy entry for pragma Predicate
492 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
494 * sem_prag.adb: Add implementation of pragma Predicate.
495 * snames.ads-tmpl: Add entries for pragma Predicate.
497 2010-10-21 Robert Dewar <dewar@adacore.com>
499 * elists.adb: Minor reformatting.
501 2010-10-21 Geert Bosch <bosch@adacore.com>
503 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
504 decimal constants, and write any others using the exponent notation.
505 Minor reformatting throughout
506 (Store_Ureal_Normalized): New function (minor code reorganization)
508 2010-10-21 Robert Dewar <dewar@adacore.com>
510 * einfo.ads, xeinfo.adb: Minor reformatting.
511 * s-stalib.ads: Minor comment fixes.
513 2010-10-21 Ed Schonberg <schonberg@adacore.com>
515 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
516 hiding, to remove noise warnings about hiding predefined operators.
518 2010-10-21 Emmanuel Briot <briot@adacore.com>
520 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
521 when the parameter has length 1.
523 2010-10-21 Jose Ruiz <ruiz@adacore.com>
525 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
526 dependence on Ada.Execution_Time.Timers,
527 Ada.Execution_Time.Group_Budget, and
528 System.Multiprocessors.Dispatching_Domains which are part of the
530 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
531 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
532 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
533 files for package System.Mutiprocessors.Dispatching_Domains.
535 2010-10-21 Tristan Gingold <gingold@adacore.com>
537 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
539 2010-10-21 Thomas Quinot <quinot@adacore.com>
541 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
542 called for a completion.
544 2010-10-21 Geert Bosch <bosch@adacore.com>
546 * uintp.ads: Expand image buffer to have enough room for 128-bit values
547 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
548 notation; either as fixed point literal or in canonical radix 16
551 2010-10-21 Robert Dewar <dewar@adacore.com>
553 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
554 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
555 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
556 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
557 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
558 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
559 g-sothco.ads, make.adb: Minor reformatting
561 2010-10-21 Vincent Celier <celier@adacore.com>
563 * vms_data.ads: Add new qualifiers /SRC_INFO= and
564 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
565 Correct qualifier /SRC_INFO= for GNAT MAKE
567 2010-10-21 Ed Schonberg <schonberg@adacore.com>
569 * exp_aggr.adb (Flatten): An association for a subtype may be an
571 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
572 left-hand side if the expression is.
573 (Is_Safe_Index): new predicate
574 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
575 generated Rep_To_Pos function is a Pure_Function.
577 2010-10-21 Robert Dewar <dewar@adacore.com>
579 * gnat_rm.texi: Document Invariant pragma.
581 2010-10-21 Javier Miranda <miranda@adacore.com>
583 * exp_ch5.adb: Update comment.
585 2010-10-21 Robert Dewar <dewar@adacore.com>
587 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
588 for interfaces, since invariants are not allowed on interfaces in any
591 2010-10-21 Javier Miranda <miranda@adacore.com>
593 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
594 node with a range expression ensure that its evaluation will not have
596 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
597 unchecked conversion node generated to handle assignment of private
598 types. Required to allow climbing the subtree if Insert_Action is
601 2010-10-21 Robert Dewar <dewar@adacore.com>
603 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
604 aspect clause presence terminating the type definition.
606 2010-10-21 Robert Dewar <dewar@adacore.com>
608 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
609 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
611 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
613 2010-10-21 Geert Bosch <bosch@adacore.com>
615 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
617 2010-10-19 Ed Schonberg <schonberg@adacore.com>
619 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
620 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
621 * expander.adb: Call Expand_Qualified_Expression.
622 * par.adb: New procedure P_Quantified_Expression. Make
623 P_Loop_Parameter_Specification global for use in quantified expressions.
624 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
626 * par-ch4.adb: New procedure P_Quantified_Expression.
627 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
628 * scans.adb, scans.ads: Introduce token Some. For now leave as
630 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
631 treat Some as a regular identifier.
632 * sem.adb: Call Analyze_Quantified_Expression.
633 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
634 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
635 in quantified expressions.
636 * sem_res.adb: New procedure Resolve_Qualified_Expression.
637 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
638 * snames.ads-tmpl: New name Some.
639 * sprint.adb: Output quantified_expression.
641 2010-10-19 Robert Dewar <dewar@adacore.com>
643 * a-exexda.adb: Minor reformatting
644 Minor code reorganization.
646 2010-10-19 Robert Dewar <dewar@adacore.com>
648 * sem_eval.adb: Minor reformatting.
650 2010-10-19 Tristan Gingold <gingold@adacore.com>
652 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
653 Expand_Intrinsic_Call if the function is intrinsic.
654 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
655 binary operator on the unsigned_quadword record.
656 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
658 2010-10-19 Geert Bosch <bosch@adacore.com>
660 * gnat_rm.texi (pragma Float_Representation): Fix typo.
662 2010-10-19 Arnaud Charlet <charlet@adacore.com>
664 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
665 * fe.h (Exception_Extra_Info): Declare.
666 * usage.adb (usage): Add -gnateE doc.
667 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
668 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
669 * gnat_ugn.texi: Document -gnateE switch.
670 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
671 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
672 (Raise_Constraint_Error_Msg): Ditto.
673 (Image): New helper function.
674 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
675 detailed exception information.
676 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
677 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
678 * opt.ads (Exception_Extra_Info): New flag.
679 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
680 * gcc-interface/utils2.c (build_call_raise_range,
681 build_call_raise_column): New functions.
682 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
683 build_call_raise_range, build_call_raise_column): Declare.
684 gcc-interface/trans.c (build_raise_check): New function.
685 (gigi): Initialize gnat_raise_decls_ext.
686 (gnat_to_gnu): Add initial support for -gnateE switch.
687 * gcc-interface/Make-lang.in: Update dependencies.
689 2010-10-19 Geert Bosch <bosch@adacore.com>
691 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
694 2010-10-19 Robert Dewar <dewar@adacore.com>
696 * atree.h (Field29): Fix incorrect definition.
697 * einfo.adb (Invariant_Procedure): New attribute
698 (Has_Invariants): New flag
699 (Has_Inheritable_Invariants): New flag
700 (OK_To_Reference): New flag
701 Minor code reorganization (use Next_Rep_Item function)
702 * einfo.ads (Invariant_Procedure): New attribute
703 (Has_Invariants): New flag
704 (Has_Inheritable_Invariants): New flag
705 (OK_To_Reference): New flag
706 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
707 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
708 conversion. Minor reformatting.
709 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
710 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
711 * par-prag.adb: Add dummy entry for pragma Invariant.
712 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
713 (Analyze_Aspect_Specification): Add support for Invariant aspect
714 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
715 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
716 (Process_Full_View): Deal with invariants, building invariant procedure
718 * sem_ch6.adb (Process_PPCs): Add processing of invariants
719 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
721 * sem_prag.adb: Implement pragma Invariant.
722 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
724 * sem_warn.adb (List_Inherited_Aspects): New name for
725 List_Inherited_Pre_Post.
726 * snames.ads-tmpl: Add entries for pragma Invariant.
727 * treepr.adb (Print_Entity_Information): Add handling of Field29.
728 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
730 2010-10-19 Javier Miranda <miranda@adacore.com>
732 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
735 2010-10-19 Bob Duff <duff@adacore.com>
737 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
739 * exp_attr.adb (Expand_N_Attribute_Reference): Add
740 Attribute_Max_Alignment_For_Allocation to the case statement.
741 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
742 Attribute_Max_Alignment_For_Allocation): New attribute name.
744 2010-10-19 Ed Schonberg <schonberg@adacore.com>
746 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
747 parameterless function appears syntactically as an explicit dereference.
749 2010-10-19 Thomas Quinot <quinot@adacore.com>
751 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
752 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
754 2010-10-19 Thomas Quinot <quinot@adacore.com>
756 * sem_util.adb (Collect_Primitive_Operations): A function with an
757 anonymous access result designating T is a primitive operation of T.
759 2010-10-19 Tristan Gingold <gingold@adacore.com>
761 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
763 2010-10-19 Tristan Gingold <gingold@adacore.com>
765 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
768 2010-10-19 Ed Schonberg <schonberg@adacore.com>
770 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
771 an instantiation of a renaming of the implicit generic child that
772 appears within an instance of its parent.
774 2010-10-19 Thomas Quinot <quinot@adacore.com>
776 * exp_ch9.adb: Minor reformatting.
777 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
778 (Referenced_Object): Remove unused entity attribute.
779 (Direct_Primitive_Operations): Move to Elist10, this is set for all
780 tagged types, including synchronous ones, so can't use field15 which is
781 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
783 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
784 against Concurrent_Types (we must handle the case of a RACW designating
785 a class-wide private synchronous type).
786 Use Direct_Primitive_Operations, not Primitive_Operations, since we
787 really want the former.
789 2010-10-19 Bob Duff <duff@adacore.com>
791 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
793 2010-10-19 Javier Miranda <miranda@adacore.com>
795 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
798 2010-10-19 Thomas Quinot <quinot@adacore.com>
800 * einfo.ads, atree.ads: Minor comment fixes.
802 2010-10-18 Bob Duff <duff@adacore.com>
804 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
805 correct, and to be in a more convenient order.
806 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
807 recording the Default_Storage_Pool for a parent library unit.
808 * einfo.ads (Etype): Document the case in which Etype can be Empty.
809 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
810 Default_Storage_Pool pragma.
811 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
812 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
814 * freeze.adb (Freeze_Entity): When freezing an access type, take into
815 account any Default_Storage_Pool pragma that applies. We have to do
816 this at the freezing point, because up until that point, a Storage_Pool
817 or Storage_Size clause could occur, which should override the
818 Default_Storage_Pool.
819 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
821 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
822 Default_Storage_Pool information.
823 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
824 currently-applicable Default_Storage_Pool pragmas.
825 * opt.adb: Save/restore the globals as appropriate.
826 * snames.ads-tmpl (Name_Default_Storage_Pool,
827 Pragma_Default_Storage_Pool): New pragma name.
829 2010-10-18 Vincent Celier <celier@adacore.com>
831 * make.adb (Switches_Of): Put the spec and body suffix in canonical
834 2010-10-18 Ed Schonberg <schonberg@adacore.com>
836 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
837 library level, the pre/postconditions must be treated as global
838 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
839 * freeze.adb (Freeze_Expression): If the expression is at library level
840 there is no enclosing record to check.
842 2010-10-18 Javier Miranda <miranda@adacore.com>
844 * sem_ch3.ads (Find_Type_Name): Add documentation.
845 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
846 propagation of the class-wide entity is now done by routine
847 Find_Type_Name to factorize this code.
848 (Analyze_Private_Extension_Declaration): Handle private type that
849 completes an incomplete type.
850 (Tag_Mismatch): Add error message for tag mismatch in a private type
851 declaration that completes an incomplete type.
852 (Find_Type_Name): Handle completion of incomplete type by means of
853 a private declaration. Generate an error if a tagged incomplete type
854 is completed by an untagged private type.
855 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
857 * einfo.ads (Full_View): Add documentation.
859 2010-10-18 Ed Schonberg <schonberg@adacore.com>
861 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
862 a renaming, generate a reference for it before analyzing the renamed
863 entity, to prevent spurious warnings.
865 2010-10-18 Jose Ruiz <ruiz@adacore.com>
867 * adaint.c (__gnat_pthread_setaffinity_np,
868 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
869 * s-osinte-linux.ads (pthread_setaffinity_np,
870 pthread_attr_setaffinity_np): Remove use of wrappers.
871 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
872 whether the affinity functionality is available in the OS.
873 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
876 2010-10-18 Robert Dewar <dewar@adacore.com>
878 * einfo.ads, einfo.adb: Minor reformatting.
879 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
881 2010-10-18 Emmanuel Briot <briot@adacore.com>
883 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
884 or equal, we output an equal every time.
886 2010-10-18 Ed Schonberg <schonberg@adacore.com>
888 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
889 member when pre/post conditions are present.
890 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
891 includes an index parameter, and the name of the enclosed entry call is
892 an indexed component.
894 2010-10-18 Robert Dewar <dewar@adacore.com>
896 * einfo.ads, einfo.adb: Minor reformatting.
898 2010-10-18 Jose Ruiz <ruiz@adacore.com>
900 * adaint.c (__gnat_pthread_setaffinity_np,
901 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
902 availability of the underlying OS functionality before calling.
903 * s-osinte-linux.ads (pthread_setaffinity_np,
904 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
905 to perform a check of its availability.
906 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
907 the affinity functionality is available in the OS. Now done in a wrapper
908 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
909 * gcc-interface/Make-lang.in: Update dependencies.
911 2010-10-18 Robert Dewar <dewar@adacore.com>
913 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
916 2010-10-18 Robert Dewar <dewar@adacore.com>
918 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
921 2010-10-18 Robert Dewar <dewar@adacore.com>
923 * exp_strm.adb (Build_Elementary_Input_Call): Check
924 No_Default_Stream_Attributes.
925 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
926 * s-rident.ads: Add restriction No_Default_Stream_Attributes
927 Put restriction No_Allocators_After_Elaboration in alpha order
929 2010-10-18 Jose Ruiz <ruiz@adacore.com>
931 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
932 to the affinity when expanding the task declaration.
933 (Make_Task_Create_Call): Add the affinity parameter to the call to
935 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
936 taking into account the case when it applies to a subprogram (only for
937 main and with static expression) or to a task.
938 * par_prag.adb:(Prag): Make pragma CPU a valid one.
939 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
940 used by the expander for handling the affinity parameter when creating
942 (Pragma_Id): Add Pragma_CPU as a valid one.
943 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
944 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
945 RE_Unspecified_CPU visible.
946 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
947 two subprograms to set/get the flag indicating whether there is a
948 pragma CPU which applies to the entity.
949 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
950 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
951 of the affinity associated to the main subprogram (if any).
952 Default_Main_CPU is used when no affinity is set. Subprograms
953 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
955 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
956 value of the affinity of the main subprogram.
957 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
959 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
960 main subprogram in the M (main) line using C=XX.
961 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
962 Load_Unit): Add new field Main_CPU.
963 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
964 the affinity of the main subprogram to the run time.
965 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
967 (Unspecified_CPU): Add this constant to identify the case when no
968 affinity is set for tasks.
969 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
970 CPU in the common part of the ATCB.
971 (Initialize): Store the value coming from pragma CPU (for the
972 environment task) in the common part of the ATCB.
973 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
974 by pragma CPU to the ATCB.
975 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
976 specified by pragma CPU to the ATCB.
977 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
978 parameter to the call to Initialize_ATCB.
979 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
980 to include the task affinity before creation. Additionally, the
981 affinity selected with Task_Info is also enforced changing the
982 attributes at task creation time, instead of changing it after creation.
983 (Initialize): Change the affinity of the environment task if required
985 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
986 wrapper to check whether the function is available or not, use a weak
988 (pthread_attr_setaffinity_np): Add the import of this function which is
989 used to change the affinity in the attributes used to create a thread.
990 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
991 It was used to check whether the pthread function was available or not,
992 but the use of a weak symbol handles this situation in a cleaner way.
993 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
994 tasks (including the environment task) if required by a pragma CPU.
995 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
996 (including the environment task) if required by a pragma CPU.
997 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
998 of tasks (including the environment task) if required by a pragma CPU.
999 * init.c (__gl_main_cpu): Make this value visible to the run time. It
1000 will pass the affinity of the environment task.
1002 2010-10-18 Javier Miranda <miranda@adacore.com>
1004 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
1006 2010-10-18 Vincent Celier <celier@adacore.com>
1008 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
1010 2010-10-18 Tristan Gingold <gingold@adacore.com>
1012 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
1013 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
1015 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
1016 so that Pri_Stack_Info.Limit can be set and used.
1018 2010-10-18 Robert Dewar <dewar@adacore.com>
1020 * einfo.ads: Minor reformatting.
1021 * sem_res.adb (Resolve_Allocator): Add test for violating
1022 No_Anonymous_Allocators.
1024 2010-10-18 Robert Dewar <dewar@adacore.com>
1026 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
1028 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1030 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
1031 component, we generate a reference to the ultimate prefix when it is an
1032 entity name. We must place the reference on the identifier for that
1033 prefix, and not on the operand itself, to prevent spurious extra
1034 references in the ali file.
1036 2010-10-18 Vincent Celier <celier@adacore.com>
1038 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
1040 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1042 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
1043 families. Denotes a procedure that performs pre/postcondition checks
1044 and then performs the entry call.
1045 * sem_res.adb (Resolve_Entry_Call): If the entry has
1046 pre/postconditions, replace call with a call to the PPC_Wrapper of the
1048 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
1049 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
1050 Build_PPC_Wrapper for all entries in task and protected definitions.
1052 2010-10-18 Tristan Gingold <gingold@adacore.com>
1054 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
1055 Implement stack limitation on VMS.
1058 2010-10-18 Vincent Celier <celier@adacore.com>
1060 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1061 source record has been initialized.
1063 2010-10-18 Robert Dewar <dewar@adacore.com>
1065 * einfo.adb: Minor code reorganization (Primitive_Operations is a
1066 synthesized attribute routine and was in the wrong place).
1068 2010-10-18 Tristan Gingold <gingold@adacore.com>
1070 * init.c: Indentation, and minor changes to more closely follow GNU
1071 style rules. Make more variable statics.
1073 2010-10-18 Vincent Celier <celier@adacore.com>
1075 * prj.adb (Is_Compilable): On first call for a source, cache value in
1076 component Compilable.
1077 * prj.ads (Source_Data): New component Compilable, to cache the value
1078 returned by function Is_Compilable.
1080 2010-10-18 Vincent Celier <celier@adacore.com>
1082 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1083 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1085 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1086 (Get_Directories): Call Find_Source_Dirs with the string list
1087 indicated by attribute Ignore_Source_Sub_Dirs.
1088 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1090 2010-10-18 Javier Miranda <miranda@adacore.com>
1092 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1094 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1095 (Set_Direct_Primitive_Operations): Renaming of old
1096 Set_Primitive_Operations. Update documentation
1097 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1098 Replace occurrences of Set_Primitive_Operations by
1099 Set_Direct_Primitive_Operations.
1100 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1102 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1103 process primitives of concurrent types.
1104 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1106 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1108 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1109 (Expand_Protected_Object_Reference): Likewise.
1110 * sem_attr.adb (Resolve_Attribute): Likewise.
1111 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1112 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1114 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1116 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1118 2010-10-18 Robert Dewar <dewar@adacore.com>
1120 * aspects.ads, aspects.adb: Add entries for aspects
1121 Read/Write/Input/Output.
1122 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1123 handling aspects Read/Write/Input/Output.
1125 2010-10-18 Robert Dewar <dewar@adacore.com>
1127 * sem_util.adb (Note_Possible_Modification): Do not give warning for
1128 use of pragma Unmodified unless we are sure this is a modification.
1130 2010-10-18 Tristan Gingold <gingold@adacore.com>
1132 * sysdep.c: Add __gnat_get_stack_bounds.
1133 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1135 2010-10-18 Robert Dewar <dewar@adacore.com>
1137 * a-assert.ads: Fix bad name in header.
1138 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1140 * exp_aggr.adb: Fix typo in comment.
1142 2010-10-18 Javier Miranda <miranda@adacore.com>
1144 * exp_util.adb (Side_Effect_Free): Code clean up.
1146 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1148 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1149 Is_Primitive_Operator. When ending the scope of a use package scope, a
1150 primitive operator remains in use if the base type has a current use
1153 2010-10-18 Javier Miranda <miranda@adacore.com>
1155 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1156 private types whose full-view is a task type.
1157 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1158 private types whose full-view is a task type.
1159 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1160 function Nearest_Dynamic_Scope which provides the needed functionality.
1162 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1164 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1165 variable with an address clause in codepeer mode.
1167 2010-10-18 Robert Dewar <dewar@adacore.com>
1169 * g-trasym-vms-ia64.adb: Minor reformatting.
1171 2010-10-18 Thomas Quinot <quinot@adacore.com>
1173 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1174 the other isn't, return False early.
1176 2010-10-18 Ed Falis <falis@adacore.com>
1178 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1181 2010-10-18 Robert Dewar <dewar@adacore.com>
1183 * sem_disp.ads: Minor comment update.
1185 2010-10-18 Robert Dewar <dewar@adacore.com>
1187 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1188 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1189 visibility analysis of precondition and postcondition pragmas (and
1191 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1193 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1194 of pre/post conditions (no longer needed).
1195 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1196 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1197 argument, since this is now done in the main processing for
1198 pre/postcondition pragmas when they are first seen.
1199 (Chain_PPC): Pre'Class and Post'Class now handled properly
1200 (Chain_PPC): Handle Pre/Post aspects for entries
1201 (Check_Precondition_Postcondition): Handle entry declaration case
1202 (Check_Precondition_Postcondition): Handle delay of visibility analysis
1203 (Check_Precondition_Postcondition): Preanalyze message argument if
1206 2010-10-18 Robert Dewar <dewar@adacore.com>
1208 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1210 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1212 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1213 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1214 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1215 the INDIRECT_REF node built for objects used by reference.
1216 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1217 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1218 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1220 2010-10-13 Richard Henderson <rth@redhat.com>
1222 * gcc-interface/misc.c (gnat_eh_personality): Update call to
1223 build_personality_function.
1224 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1225 use__gnat_personality_{v,sj}0.
1227 2010-10-12 Vincent Celier <celier@adacore.com>
1229 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1230 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1231 of iterating through all sources of the project.
1232 * prj.adb (Free): Reset hash table Source_Files_HT
1233 (Reset): Reset hash table Source_Files_HT
1234 * prj.ads (Source_Data): New component Next_With_File_Name
1235 (Source_Files_Htable): New hash table
1236 (Project_Tree_Data): New component Source_Files_HT
1238 2010-10-12 Tristan Gingold <gingold@adacore.com>
1240 * g-trasym-vms-ia64.adb: Use the documented API.
1241 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1242 * gcc-interface/Make-lang.in: Update dependencies.
1244 2010-10-12 Thomas Quinot <quinot@adacore.com>
1246 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1247 PolyORB case): Request is now a controlled type: we can declare the
1248 request on the stack, and we do not need explicit cleanup actions
1251 2010-10-12 Bob Duff <duff@adacore.com>
1253 * s-rident.ads (Profile_Info): This variable is now constant.
1255 2010-10-12 Emmanuel Briot <briot@adacore.com>
1257 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1258 parameter Separator for backward compatibility.
1260 2010-10-12 Robert Dewar <dewar@adacore.com>
1262 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1264 2010-10-12 Vincent Celier <celier@adacore.com>
1266 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1268 2010-10-12 Vincent Celier <celier@adacore.com>
1270 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
1271 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
1273 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1275 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1278 2010-10-12 Robert Dewar <dewar@adacore.com>
1280 * debug.adb: Add comment.
1281 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1283 2010-10-12 Javier Miranda <miranda@adacore.com>
1285 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1286 declarations that were previously generated by Remove_Side_Effects.
1288 2010-10-12 Emmanuel Briot <briot@adacore.com>
1290 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
1291 "???" when an entity is defined as "*" in the ALI file.
1292 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1295 2010-10-12 Emmanuel Briot <briot@adacore.com>
1297 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1298 Set_Usage): New subprograms.
1299 (Define_Switch): Change profile to add support for help messages and
1302 2010-10-12 Javier Miranda <miranda@adacore.com>
1304 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1305 attribute Overridden_Operation in predefined dispatching primitives.
1307 2010-10-12 Emmanuel Briot <briot@adacore.com>
1309 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1310 command line configuration exists and we specify an invalid section.
1312 2010-10-12 Robert Dewar <dewar@adacore.com>
1314 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1315 exception messages are generated.
1316 (Process_PPCs): Fix error in inheriting Pre'Class.
1318 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1320 * gnatcmd.adb: Use response file for GNATstack.
1321 (Check_Files): Pass the list of ci files for GNATstack using a response
1322 file to avoid problems with command line length.
1323 Factor out the code handling response file into a new procedure named
1324 Add_To_Response_File.
1326 2010-10-12 Vincent Celier <celier@adacore.com>
1328 * debug.adb: For gnatmake, document the meaning of -dm
1329 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1330 simultaneous compilations.
1331 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1332 simultaneous compilations as the number of processors.
1334 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1336 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1337 instead of options.h.
1339 2010-10-12 Robert Dewar <dewar@adacore.com>
1341 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1342 postcondition pragmas.
1344 2010-10-12 Robert Dewar <dewar@adacore.com>
1346 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1348 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1349 message if new switch Exception_Locations_Suppressed is set.
1350 (Expand_Pragma_Check): Revised wording for default message for case
1351 of precondition or postcondition.
1352 * namet.ads, namet.adb (Build_Location_String): New procedure.
1353 * opt.ads (List_Inherited_Pre_Post): New flag.
1354 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1355 list inherited pre/post aspects.
1356 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1357 messages for precondition/postcondition cases.
1358 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1359 if flag List_Inherited_Pre_Post is set True.
1360 (Process_PPCs): Add initial handling for inherited preconditions
1361 (List_Inherited_Pre_Post_Aspects): New procedure
1362 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1363 * sem_disp.adb (Inherited_Subprograms): New function
1364 * sem_disp.ads (Inherited_Subprograms): New function
1365 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1367 (Check_Precondition_Postcondition): Check for inherited aspects
1368 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1369 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1370 * sinput.ads, sinput.adb (Build_Location_String): New function.
1371 * usage.adb: Add line for -gnatw.l/-gnatw.L
1373 2010-10-12 Javier Miranda <miranda@adacore.com>
1375 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1377 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1379 * xref_lib.adb: Add handling of j/J letters.
1381 2010-10-12 Pascal Obry <obry@adacore.com>
1383 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1385 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1387 * make.adb (Globalize): New procedure.
1388 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1389 (Gnatmake): Call Globalize when needed.
1390 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1391 pragmas in CodePeer mode.
1392 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1393 to generate simpler and consistent code.
1395 2010-10-12 Bob Duff <duff@adacore.com>
1397 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1398 can cause side effects to be duplicated.
1400 2010-10-12 Robert Dewar <dewar@adacore.com>
1402 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1404 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1406 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1407 abstract inherited private operation in CodePeer mode.
1409 2010-10-12 Thomas Quinot <quinot@adacore.com>
1411 * a-exetim.ads: Minor reformatting.
1412 * g-socket.ads (Port_Type): Better definition corresponding to the
1413 actual standard range.
1414 * exp_ch5.adb: Add comment.
1415 * sem_aux.adb: Minor reformatting.
1417 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1419 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1420 string_literal_subtype so that a new one can be constructed in the
1421 scope of the instance.
1423 2010-10-12 Robert Dewar <dewar@adacore.com>
1425 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1426 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1427 * par-prag.adb (P_Pragma, case Suppress_All): Set
1428 Has_Pragma_Suppress_All flag.
1429 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1430 (Analyze_Pragma, case Suppress_All): Remove placement check
1431 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1432 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1433 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1434 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1435 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1436 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1438 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1440 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1442 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1444 * a-exetim-default.ads, a-exetim-posix.adb: New.
1445 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
1446 POSIX Realtime support to implement CPU clocks.
1447 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
1448 to the tasking library.
1449 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
1450 available for shared libraries.
1451 * gcc-interface/Make-lang.in: Update dependencies.
1453 2010-10-12 Robert Dewar <dewar@adacore.com>
1455 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
1456 apart expressions with AND THEN clauses into separate pragmas.
1457 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
1459 2010-10-12 Robert Dewar <dewar@adacore.com>
1461 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
1463 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
1464 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
1466 (Check_Optional_Identifier): Handle case of direct arguments
1467 (Chain_PPC): Test for abstract case, giving appropriate messages
1468 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
1470 2010-10-12 Robert Dewar <dewar@adacore.com>
1472 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1474 * sem_attr.adb (Eval_Attribute): Code clean up.
1476 2010-10-12 Robert Dewar <dewar@adacore.com>
1478 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1479 messages and recovery for case of out of order Abstract/Tagged/Private
1481 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1482 for case of out of order Abstract/Tagged/Private keywords.
1484 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1486 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1487 where child unit is main unit of compilation.
1489 2010-10-12 Robert Dewar <dewar@adacore.com>
1491 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
1492 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
1493 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
1494 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
1495 aspect specifications.
1496 Recognize aspect specifications for all cases
1497 * par.adb: Recognize aspect specifications for all cases
1498 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
1500 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
1501 generic actual types (was missing some guards before).
1502 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
1504 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1506 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1508 * usage.adb (usage): Adjust line for -gnatn switch.
1510 2010-10-12 Robert Dewar <dewar@adacore.com>
1512 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
1515 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1517 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
1518 declaration of a null procedure resolve the types of the profile of the
1519 generated null body now.
1521 2010-10-11 Robert Dewar <dewar@adacore.com>
1523 * debug.adb: Remove d.A flag to delay address clause (not needed any
1524 more). Add d.A flag to enable tree read/write of aspect spec hash table
1525 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
1527 (Rep_Item_Too_Late): No need for special processing for delayed rep
1528 items (and it caused difficulties in the address case).
1529 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
1530 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
1532 2010-10-11 Pat Rogers <rogers@adacore.com>
1534 * gnat_ugn.texi: Minor editing.
1536 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1538 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
1540 2010-10-11 Robert Dewar <dewar@adacore.com>
1542 * g-htable.ads (Get_First): New procedural version for Simple_HTable
1543 (Get_Next): New procedural version for Simple_HTable
1544 * s-htable.adb (Get_First): New procedural version for Simple_HTable
1545 (Get_Next): New procedural version for Simple_HTable
1546 * s-htable.ads (Get_First): New procedural version for Simple_HTable
1547 (Get_Next): New procedural version for Simple_HTable
1549 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1551 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
1552 variant part, use the association list of the subaggregate, which
1553 already includes the values of the needed discriminants.
1555 2010-10-11 Robert Dewar <dewar@adacore.com>
1557 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
1558 (Tree_Write): New procedure.
1559 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
1561 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
1562 * debug.adb: Add debug flag gnatd.A
1563 * einfo.adb (Has_Delayed_Aspects): New flag
1564 (Get_Rep_Item_For_Entity): New function
1565 * einfo.ads (Has_Delayed_Aspects): New flag
1566 (Get_Rep_Item_For_Entity): New function
1567 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
1569 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
1570 sequence for Freeze_Entity.
1571 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
1572 ptr. All calls are changed to this new interface.
1573 (Freeze_And_Append): Same change
1574 (Freeze_Entity): Evaluate deferred aspects
1575 * sem_attr.adb: New calling sequence for Freeze_Entity
1576 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
1577 when we are in spec expression preanalysis mode.
1578 * sem_ch10.adb: New calling sequence for Freeze_Entity
1579 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
1580 flag Has_Aspects applies to all nodes (no need to save aspects).
1581 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
1582 flag Has_Aspects applies to all nodes (no need to save aspects).
1583 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
1584 accomodate delaying aspect evaluation to the freeze point.
1585 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
1586 accomodate delayed aspects.
1587 (Rep_Item_Too_Late): Deal with delayed aspects case
1588 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
1590 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
1591 actual types are properly frozen (this is needed because of the new
1592 check in Eval_Attribute that declines to evaluate attributes
1593 for unfrozen types).
1594 Simplify analysis of aspect specifications now that the flag
1595 Has_Aspects applies to all nodes (no need to save aspects).
1596 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
1598 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
1599 flag Has_Aspects applies to all nodes (no need to save aspects).
1600 New calling sequence for Freeze_Entity.
1601 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
1602 specifications now that the flag Has_Aspects applies to all nodes
1603 (no need to save aspects).
1604 New calling sequence for Freeze_Entity
1605 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
1606 Get_Rep_Item_For_Entity
1607 (Get_Pragma_Arg): Moved to Sinfo
1608 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
1609 (Is_Delayed_Aspect): New flag
1610 (Next_Rep_Item): Document use for aspects
1611 (Get_Pragma_Arg): Moved here from Sem_Prag
1612 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
1613 is output and removes semicolon (simplifies interface).
1614 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
1615 applies to any node.
1616 * tree_gen.adb: Write contents of Aspect_Specifications hash table
1617 * tree_in.adb: Read and initialize Aspect_Specifications hash table
1618 * treepr.adb (Print_Node): Print Has_Aspects flag
1619 (Print_Node): Print Aspect_Specifications in Has_Aspects set
1620 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
1622 2010-10-11 Robert Dewar <dewar@adacore.com>
1624 * aspects.ads, aspects.adb: Major revision of this package for 2nd
1625 stage of aspects implementation.
1626 * gcc-interface/Make-lang.in: Add entry for aspects.o
1627 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
1628 * par-ch13.adb (Aspect_Specifications_Present): New function
1629 (P_Aspect_Specifications): New procedure
1630 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
1631 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
1632 (P_Identifier_Declarations): Handle aspect specifications
1633 (P_Component_Items): Handle aspect specifications
1634 (P_Subtype_Declaration): Handle aspect specifications
1635 * par-ch6.adb (P_Subprogram): Handle aspect specifications
1636 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
1637 * par.adb (Aspect_Specifications_Present): New function
1638 (P_Aspect_Specifications): New procedure
1639 * sem.adb (Analyze_Full_Type_Declaration): New name for
1640 Analyze_Type_Declaration.
1641 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1642 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1643 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1644 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1645 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1646 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1647 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
1648 Analyze_Type_Declaration.
1649 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
1651 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
1653 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1654 (Analyze_Formal_Package_Declaration): Handle aspect specifications
1655 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1656 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
1657 (Analyze_Formal_Type_Declaration): Handle aspect specifications
1658 (Analyze_Generic_Package_Declaration): Handle aspect specifications
1659 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
1660 (Analyze_Package_Instantiation): Handle aspect specifications
1661 (Analyze_Subprogram_Instantiation): Handle aspect specifications
1662 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
1664 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1665 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
1666 (Duplicate_Clause): New function, calls to this function are added to
1667 processing for all aspects.
1668 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
1669 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
1670 Analyze_Type_Declaration.
1671 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
1672 Analyze_Type_Declaration.
1673 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
1675 (Analyze_Subprogram_Declaration): Analyze aspect specifications
1676 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
1678 (Analyze_Private_Type_Declaration): Analyze aspect specifications
1679 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
1681 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1682 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
1683 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1684 (Analyze_Single_Task_Declaration): Analyze aspect specifications
1685 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1686 (Analyze_Task_Type_Declaration): Analyze aspect specifications
1687 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1688 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
1690 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1691 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1692 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1693 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
1694 have to generate unnecessary pragma argument associations (this matches
1696 Throughout do changes to accomodate aspect specifications, including
1697 specializing messages, handling the case of not going through all
1698 homonyms, and allowing for cancellation.
1699 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
1700 (Aspect_Cancel): New flag
1701 (From_Aspect_Specification): New flag
1702 (First_Aspect): Removed flag
1703 (Last_Aspect): Removed flag
1704 * sprint.adb (Sprint_Aspect_Specifications): New procedure
1705 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
1707 2010-10-11 Bob Duff <duff@adacore.com>
1709 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
1710 they match in Ada 95, 2005, and 2012 modes, in the case where the
1711 language didn't change. Same thing for the run-time exception message.
1713 2010-10-11 Javier Miranda <miranda@adacore.com>
1715 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
1717 2010-10-11 Robert Dewar <dewar@adacore.com>
1719 * s-htable.adb: Minor reformatting.
1721 2010-10-11 Javier Miranda <miranda@adacore.com>
1723 * debug.adb: Update comment.
1725 2010-10-11 Vincent Celier <celier@adacore.com>
1727 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
1728 unconditionally as for "gnat make" the projects are not processed in
1731 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1733 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
1734 suppress semantic analysis of the body when inlining, prior to
1735 verifying that the body does not have a with_clause on a descendant
1737 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
1738 with_clause on a descendant.
1739 (Scope_In_Main_Unit): Simplify.
1741 2010-10-11 Robert Dewar <dewar@adacore.com>
1743 * exp_ch6.adb, freeze.adb: Minor reformatting.
1745 2010-10-11 Vincent Celier <celier@adacore.com>
1747 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
1748 shared library projects to import projects that are not shared library
1751 2010-10-11 Javier Miranda <miranda@adacore.com>
1753 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
1755 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1757 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
1758 Suppress/Unsuppress pragmas in codepeer mode on user code.
1760 2010-10-11 Javier Miranda <miranda@adacore.com>
1762 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
1763 tag check in case of dispatching call through "=".
1765 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1767 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
1768 type is legal in the profile of any basic declaration.
1769 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
1770 incomplete type, including a limited view of a type, is legal in the
1771 profile of any subprogram declaration.
1772 If the type is tagged, its use is also legal in a body.
1773 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
1775 (Install_Limited_Withed_Unit): Refine legality checks when both the
1776 limited and the non-limited view of a package are visible in the
1778 If this is not an error case, the limited view is ignored.
1779 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
1780 access to subprogram declarations
1782 2010-10-11 Robert Dewar <dewar@adacore.com>
1784 * exp_ch6.adb: Code clean up.
1785 * exp_util.adb: Minor reformatting.
1787 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1789 * sem_ch3.adb, exp_ch6.adb
1790 (Make_Build_In_Place_Call_In_Anonymous_Context,
1791 Make_Build_In_Place_Call_In_Assignment,
1792 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
1793 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
1795 (Access_Definition): Add missing handling of No_Task_Hierarchy.
1797 2010-10-11 Javier Miranda <miranda@adacore.com>
1799 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
1800 class-wide expressions.
1802 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1804 * xr_tabls.adb, sem_res.adb: Minor reformatting
1806 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1808 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
1809 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
1810 handling of Attribute_Ref. Add missing blanks in some error messages.
1811 (Attribute_Ref, Name_Ref): Declare.
1812 Document 'Ref attribute.
1814 2010-10-11 Robert Dewar <dewar@adacore.com>
1816 * sem_attr.adb: Minor reformatting.
1818 2010-10-11 Javier Miranda <miranda@adacore.com>
1820 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
1821 package System.Aux_Dec in VM platforms.
1823 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1825 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
1826 Suppress/Unsuppress pragmas in codepeer mode.
1827 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
1829 * einfo.ads: Fix typo.
1831 2010-10-11 Emmanuel Briot <briot@adacore.com>
1833 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
1834 * prj-nmsc.adb: Minor reformatting.
1836 2010-10-11 Thomas Quinot <quinot@adacore.com>
1838 * sem_attr.adb (Type_Key): Code simplification.
1840 2010-10-11 Tristan Gingold <gingold@adacore.com>
1842 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
1843 very large object on VMS.
1845 2010-10-11 Javier Miranda <miranda@adacore.com>
1847 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
1848 availability of attribute Instance_Spec.
1850 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1852 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
1853 checking syntax only or in ASIS mode.
1855 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1857 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
1858 need a freeze node if some type in the profile has one.
1859 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
1860 entity has a freeze node, defer elaboration.
1862 2010-10-11 Emmanuel Briot <briot@adacore.com>
1864 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
1865 aggregated projects.
1867 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1869 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
1871 * sem_ch6.adb: Diagnose additional error condition.
1873 2010-10-11 Bob Duff <duff@adacore.com>
1875 * par.adb (Par): Clarify wording of certain error messages.
1877 2010-10-11 Gary Dismukes <dismukes@adacore.com>
1879 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
1880 about nondispatching subprograms to use In_Same_List (reducing use of
1883 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1885 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
1886 reference in a static call.
1888 2010-10-11 Steve Baird <baird@adacore.com>
1890 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
1891 attribute should always be transformed into a string literal in
1893 * par-ch4.adb: Type_Key attribute's type is String; update value of
1894 Is_Parameterless_Attribute constant to reflect this.
1895 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
1896 rewrite it as a string literal (attribute value is always known
1898 * snames.ads-tmpl: Add entries for Type_Key attribute.
1900 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1902 * lib-xref.adb (Output_References): Common handling for objects and
1903 formals of an anonymous access type.
1905 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
1907 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
1909 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1911 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
1913 2010-10-11 Gary Dismukes <dismukes@adacore.com>
1915 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
1916 a warning about subprograms of a tagged type not being dispatching,
1917 limit this to cases where the tagged type and the subprogram are
1918 declared within the same declaration list.
1920 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
1922 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
1924 2010-10-11 Bob Duff <duff@adacore.com>
1926 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
1927 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
1928 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
1929 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
1930 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
1931 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
1932 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
1933 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
1934 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
1935 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
1936 instead of Ada_05 (Ada_Version_Type).
1938 2010-10-11 Bob Duff <duff@adacore.com>
1940 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
1941 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
1942 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
1943 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
1946 2010-10-11 Javier Miranda <miranda@adacore.com>
1948 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
1949 dereference then do not exclude dereferences of access-to-constant
1950 types to handle them as constant view of variables (and hence remove
1951 side effects when required).
1952 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
1953 are properly handled.
1955 2010-10-11 Robert Dewar <dewar@adacore.com>
1957 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
1959 2010-10-11 Javier Miranda <miranda@adacore.com>
1961 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
1963 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1964 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
1966 (Expand_Simple_Function_Return): Move to exp_ch6.
1967 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
1968 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1970 2010-10-11 Robert Dewar <dewar@adacore.com>
1972 * snames.ads-tmpl: Add names for aspects.
1973 * aspects.ads, aspects.adb: New.
1974 * gcc-interface/Make-lang.in: Update dependencies.
1975 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1977 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
1978 a task type, it must be replaced with a reference to Self.
1980 2010-10-11 Vincent Celier <celier@adacore.com>
1982 * adaint.h: Add prototype for function __gnat_create_output_file_new.
1984 2010-10-11 Javier Miranda <miranda@adacore.com>
1986 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
1989 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1991 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
1992 for AI05-0033 in CodePeer mode.
1994 2010-10-11 Robert Dewar <dewar@adacore.com>
1996 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
1997 * csinfo.adb: Aspect_Specifications is a new special field
1998 * einfo.adb (Flag3): New unused flag
1999 * exp_util.adb (Insert_Actions): Add processing for
2000 N_Aspect_Specification.
2001 * sem.adb: Add entry for N_Aspect_Specification.
2002 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
2003 (Has_Aspect_Specifications): New flag
2004 (Permits_Aspect_Specifications): New function
2005 (Aspect_Specifications): New function
2006 (Set_Aspect_Specifications): New procedure
2007 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
2008 (Sprint_Node): Add dummy entry for N_Aspect_Specification
2009 * treepr.adb (Flag3): New flag to be listed
2011 2010-10-11 Vincent Celier <celier@adacore.com>
2013 * adaint.c: Minor reformatting.
2015 2010-10-11 Robert Dewar <dewar@adacore.com>
2017 * sem_ch6.adb, s-htable.ads: Minor reformatting.
2019 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2021 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
2022 invisible in an instantiation, and both the formal and the actual are
2023 private extensions of the same type, look for the desired component in
2024 the proper view of the parent type.
2026 2010-10-11 Vincent Celier <celier@adacore.com>
2028 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
2029 AIX, Tru64, Darwin, IRIX and HP-UX.
2031 2010-10-11 Robert Dewar <dewar@adacore.com>
2033 * a-textio.adb: Minor reformatting
2035 2010-10-11 Robert Dewar <dewar@adacore.com>
2037 * a-suesen.ads, a-suenst.ads,
2038 a-suesen.adb, a-suenst.adb,
2039 a-suewse.adb, a-suewst.adb,
2040 a-suewse.ads, a-suewst.ads,
2041 a-suezse.ads, a-suezst.ads,
2042 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
2043 * impunit.adb: New names for string encoding units
2044 * Makefile.rtl: New names for string encoding units
2045 * rtsfind.ads: Minor code reorganization.
2047 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2049 * exp_ch5.adb: Code clean up.
2051 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2053 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
2054 returns when in a generic context.
2055 (Analyze_Function_Return): ditto.
2057 2010-10-11 Robert Dewar <dewar@adacore.com>
2059 * s-multip.ads: Fix header.
2060 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2062 2010-10-11 Vincent Celier <celier@adacore.com>
2064 * Makefile.rtl: Add s-multip.
2065 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2066 defaulting to 1 for other platforms.
2067 * adaint.h: New function __gnat_number_of_cpus.
2068 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2069 with a single component "s-multip".
2070 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2072 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2073 * s-multip.ads, s-multip.adb: New Ada 2012 package.
2074 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2076 2010-10-11 Javier Miranda <miranda@adacore.com>
2078 * a-textio.adb: Move new implementation of Get_Line to a subunit.
2079 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2081 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2083 * sem_aux.adb: Code clean up.
2085 2010-10-11 Robert Dewar <dewar@adacore.com>
2087 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2089 2010-10-11 Robert Dewar <dewar@adacore.com>
2091 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2092 Flag248-Flag254. Define new field Field29.
2094 2010-10-10 Olivier Hainque <hainque@adacore.com>
2095 Eric Botcazou <ebotcazou@adacore.com>
2097 * gcc-interface/lang.opt (gdwarf+): Remove.
2098 * gcc-interface/gigi.h (get_parallel_type): Likewise
2099 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2100 (gnat_handle_option): Remove OPT_gdwarfplus case.
2101 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2102 from gnat_dwarf_extensions.
2103 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2104 * gcc-interface/utils.c (get_parallel_type): Remove.
2106 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2108 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2109 invert_truthvalue_loc instead of invert_truthvalue.
2110 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2111 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2113 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2115 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2116 assertion on the types of the parameters. Use KIND local variable.
2117 <E_Incomplete_Type>: Likewise.
2119 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2121 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2122 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2123 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2124 (gnat_to_gnu_entity): Adjust calls to annotate_object.
2125 (gnat_to_gnu_param): If fat pointer types are passed by reference on
2126 the target, pass them by explicit reference.
2127 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2128 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2129 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2130 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2131 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2133 (build_function_stub): Iterate on the parameters of the subprogram in
2134 lieu of on the argument types. Adjust call to convert_vms_descriptor.
2136 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2138 * gcc-interface/misc.c: Delete prototypes.
2139 (gnat_init_options): Use local variable.
2140 (lang_hooks): Move to the end of the file.
2142 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2144 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2145 from gnat_init_options.
2146 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2148 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2150 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2152 2010-10-08 Robert Dewar <dewar@adacore.com>
2154 * exp_ch3.adb: Minor reformatting.
2155 * exp_ch5.adb: Add comment.
2157 2010-10-08 Robert Dewar <dewar@adacore.com>
2159 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2160 * gcc-interface/Make-lang.in: Update dependencies.
2161 * einfo.ads: Minor reformatting.
2163 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2165 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2166 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2167 exp_ch3.adb: Change Is_Inherently_Limited_Type to
2168 Is_Immutably_Limited_Type to accord with new RM terminology.
2169 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2170 of a formal limited private type is not immutably limited in a generic
2173 2010-10-08 Robert Dewar <dewar@adacore.com>
2175 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2176 Add calls to this new procedure where appropriate
2178 2010-10-08 Vincent Celier <celier@adacore.com>
2180 * a-textio.adb (Get_Chunk): Code clean up.
2182 2010-10-08 Robert Dewar <dewar@adacore.com>
2184 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2185 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2186 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2187 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2188 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2189 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2190 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2191 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2194 2010-10-08 Robert Dewar <dewar@adacore.com>
2196 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2197 packages can depend on preleborated packages.
2199 2010-10-08 Robert Dewar <dewar@adacore.com>
2201 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2202 Interrupt_Handler and Attach_Handler not allowed in generics.
2204 2010-10-08 Robert Dewar <dewar@adacore.com>
2206 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2207 * ali.ads (Allocator_In_Body): New flag
2208 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2209 program violating No_Allocators_After_Elaboration restriction.
2210 * gnatbind.adb (No_Restriction_List): Add entries for
2211 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2212 * lib-load.adb: Initialize Has_Allocator flag
2213 * lib-writ.adb: Initialize Has_Allocator flag
2214 (M_Parameters): Set AB switch if Has_Allocator flag set
2215 * lib-writ.ads: Document AB flag on M line
2216 * lib.adb (Has_Allocator): New function
2217 (Set_Has_Allocator): New procedure
2218 * lib.ads (Has_Allocator): New function
2219 (Set_Has_Allocator): New procedure
2220 (Has_Allocator): New flag in Unit_Record
2221 * sem_ch4.adb (Analyze_Allocator): Add processing for
2222 No_Allocators_After_Elaboration.
2224 2010-10-08 Geert Bosch <bosch@adacore.com>
2226 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2228 2010-10-08 Javier Miranda <miranda@adacore.com>
2230 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2231 Java_Constructors because in the JRE library we generate occurrences
2232 in which the "this" parameter is not the first formal.
2234 2010-10-08 Robert Dewar <dewar@adacore.com>
2236 * par-ch3.adb: Minor reformatting.
2238 2010-10-08 Javier Miranda <miranda@adacore.com>
2240 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2243 2010-10-08 Robert Dewar <dewar@adacore.com>
2245 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2247 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2248 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2249 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2250 No_Anonymous_Allocators.
2252 2010-10-08 Vincent Celier <celier@adacore.com>
2254 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2255 restriction, so that the last comma is always replaced with a left
2258 2010-10-08 Javier Miranda <miranda@adacore.com>
2260 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2261 first formal of delegates.
2263 2010-10-08 Robert Dewar <dewar@adacore.com>
2265 * sem_aggr.adb: Minor reformatting.
2267 2010-10-08 Robert Dewar <dewar@adacore.com>
2269 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
2270 sequence for soft hyphen for Character'Image case.
2271 * rtsfind.ads (Image_Character_05): New entry
2272 * s-imgcha.adb (Image_Character_05): New procedurew
2273 * s-imgcha.ads (Image_Character_05): New procedure
2274 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
2276 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2277 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2280 2010-10-08 Robert Dewar <dewar@adacore.com>
2282 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2283 for case of Wide_[Wide_]Character.
2285 2010-10-08 Robert Dewar <dewar@adacore.com>
2287 * exp_ch3.adb: Minor reformating
2288 Minor code reorganization.
2290 2010-10-08 Javier Miranda <miranda@adacore.com>
2292 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
2293 pragmas CIL_Constructor and Java_Constructor.
2294 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2295 predefined primitives for CIL/Java tagged types.
2297 2010-10-08 Robert Dewar <dewar@adacore.com>
2299 * sem_ch6.adb: Minor reformatting.
2301 2010-10-08 Robert Dewar <dewar@adacore.com>
2303 * gnat1drv.adb: Add call to Validate_Independence.
2304 * par-prag.adb: Add dummy entries for Independent,
2305 Independent_Componentsa.
2306 * sem_ch13.adb (Validate_Independence): New procedure
2307 (Initialize): Initialize address clause and independence check tables
2308 * sem_ch13.ads (Independence_Checks): New table
2309 (Validate_Independence): New procedure
2310 * sem_prag.adb: Add processing for pragma Independent[_Components]
2311 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2313 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2315 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2316 component with box initialization, if the component is a variant record
2317 use the values of the discriminants to select the proper variant for
2318 further box initialization.
2320 2010-10-08 Thomas Quinot <quinot@adacore.com>
2322 * xsnames.adb: Remove obsolete file.
2323 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2325 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2327 * exp_aggr.adb: Complete previous change.
2329 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2331 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2332 extended return must match statically the return subtype of the
2333 enclosing function if the type is an elementary type or if it is
2336 2010-10-08 Vincent Celier <celier@adacore.com>
2338 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2339 names. Do not report the same duplicate unit several times.
2340 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2341 defaulted to False, to avoid reporting the same unit as duplicate
2344 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2346 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2347 others choice is a literal, analyze it to enable later optimizations.
2348 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2349 and components can be handled by the backend even if it is of a limited
2352 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2354 * a-rttiev.adb (task Timer): Since this package may be elaborated
2355 before System.Interrupt, we need to call Setup_Interrupt_Mask
2356 explicitly to ensure that this task has the proper signal mask.
2358 2010-10-08 Robert Dewar <dewar@adacore.com>
2360 * freeze.adb (Freeze_Entity): For array case, move some processing for
2361 pragma Pack, Component_Size clause and atomic/volatile components here
2362 instead of trying to do the job in Sem_Ch13 and Freeze.
2363 * layout.adb: Use new Addressable function
2364 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2365 Component_Size): Move some handling to freeze point in
2366 Freeze.Freeze_Entity.
2367 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2368 freeze point in Freese.Freeze_Entity.
2369 * sem_util.ads, sem_util.adb (Addressable): New function.
2371 2010-10-08 Robert Dewar <dewar@adacore.com>
2373 * sprint.adb: Minor reformatting.
2375 2010-10-08 Javier Miranda <miranda@adacore.com>
2377 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2379 2010-10-08 Robert Dewar <dewar@adacore.com>
2381 * sem_ch3.adb: Minor reformatting.
2383 2010-10-08 Vincent Celier <celier@adacore.com>
2385 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2386 not a reserved word.
2387 * prj-proc.adb (Expression): Process string list external references.
2388 * prj-strt.adb (External_Reference): Parse external_as_list external
2390 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2391 (Set_Expression_Kind_Of): Ditto
2392 * prj.adb (Initialize): Set external_as_list as a reserved word
2393 * projects.texi: Document new string external reference
2395 * scans.ads (Token_Type): New token Tok_External_As_List
2396 * snames.ads-tmpl: New standard name Name_External_As_List
2398 2010-10-08 Thomas Quinot <quinot@adacore.com>
2400 * sem_prag.adb: Minor reformatting.
2402 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2404 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2405 instance, it is legal to derive from a non-limited actual when the
2406 formal type is untagged limited.
2407 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2408 analyzed formal as Generic_Parent_Type, to simplify later checks.
2410 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2412 * sem_res.adb (Insert_Default): If default value is already a
2413 raise_constraint_error do not rewrite it as new raise node, to prevent
2414 infinite loops in the warning removal machinery.
2416 2010-10-08 Robert Dewar <dewar@adacore.com>
2418 * sem_util.adb, sem_prag.adb: Minor reformatting
2420 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2422 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2423 Add section on pragma Implemented.
2425 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2427 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2428 concrete parent with a concrete constructor, the inherited constructor
2429 is abstract even if the derived type is a null extension.
2431 2010-10-08 Thomas Quinot <quinot@adacore.com>
2433 * sem_ch4.adb: Minor reformatting.
2435 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2437 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2438 (Implemented_By_Entry): Removed.
2439 (Set_Implemented_By_Entry): Removed.
2440 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
2441 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
2442 (Implemented_By_Entry): Removed along with its associated pragma.
2443 (Set_Implemented_By_Entry): Removed along with its associated pragma.
2444 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
2445 (Build_Dispatching_Call_Equivalent): New routine.
2446 (Build_Dispatching_Requeue): New routine.
2447 (Build_Dispatching_Requeue_To_Any): New routine.
2448 (Build_Normal_Requeue): New routine.
2449 (Build_Skip_Statement): New routine.
2450 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
2451 several subroutines.
2452 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
2454 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
2456 (Check_Pragma_Implemented): New routines.
2457 (Inherit_Pragma_Implemented): New routine.
2458 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
2459 dispatching requeue.
2460 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
2461 and adding Implemented.
2462 (Ada_2012_Pragma): New routine.
2463 (Analyze_Pragma, case Implemented): Perform all necessary checks
2464 concerning pragma Implemented and register the pragma as a
2465 representation item with the procedure_LOCAL_NAME.
2466 (Analyze_Pragma, case Implemented_By_Entry): Removed.
2467 * sem_util.adb (Implementation_Kind): New routine.
2468 * sem_util.ads (Implementation_Kind): New routine.
2469 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
2470 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
2471 add Pragma_Implemented. Add special names By_Any, By_Entry and
2472 By_Protected_Procedure.
2474 2010-10-08 Javier Miranda <miranda@adacore.com>
2476 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2477 variable Has_Static_DT by invocation of function Building_Static_DT.
2479 2010-10-08 Vincent Celier <celier@adacore.com>
2481 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2482 doing a recursive remove of a subdirectory.
2484 2010-10-08 Javier Miranda <miranda@adacore.com>
2486 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2487 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2488 (Make_DT): Factorize code.
2490 2010-10-08 Robert Dewar <dewar@adacore.com>
2492 * sem_ch4.adb: Minor reformatting.
2494 2010-10-08 Robert Dewar <dewar@adacore.com>
2496 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2499 2010-10-08 Thomas Quinot <quinot@adacore.com>
2501 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
2502 consistency with Gen_T in Instantiate_Type.
2503 Introduce constant A_Gen_Obj to avoid repeated queries for
2504 Defining_Identifier (Analyzed_Formal).
2506 2010-10-08 Vincent Celier <celier@adacore.com>
2508 * prj-nmsc.adb: Minor comment fix.
2510 2010-10-07 Robert Dewar <dewar@adacore.com>
2512 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
2513 * gcc-interface/Make-lang.in: Update dependencies.
2515 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2517 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
2518 unit, if the type of the formal is declared in a parent unit and is not
2519 a formal itself, the actual must be located from an enclosing parent
2520 instance by normal visibility.
2522 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2524 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
2525 indicator is illegal for an uninitialized allocator.
2527 2010-10-07 Robert Dewar <dewar@adacore.com>
2529 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
2530 Component_Size): Complete previous change.
2532 2010-10-07 Vincent Celier <celier@adacore.com>
2534 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
2535 even for keywords, to avoid having the checksum to depend on the Ada
2538 2010-10-07 Gary Dismukes <dismukes@adacore.com>
2540 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
2541 exp_ch3.adb: Minor reformatting.
2543 2010-10-07 Robert Dewar <dewar@adacore.com>
2545 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2546 Component_Size): It is now illegal to give an incorrect component size
2547 clause in the case of aliased or atomic components.
2548 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
2549 an effective pragma Pack in the case of aliased or atomic components.
2551 2010-10-07 Steve Baird <baird@adacore.com>
2553 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
2554 in the case of a violation of an active No_Task_Hierarchy restriction.
2556 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2558 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
2559 type is non-limited, an actual for it cannot be limited.
2561 2010-10-07 Robert Dewar <dewar@adacore.com>
2563 * einfo.ads (No_Pool_Assigned): Update documentation.
2564 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2565 Storage_Size): We only set No_Pool_Assigned if the expression is a
2566 static constant and zero.
2567 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
2568 should be an error not a warning.
2570 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2572 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
2573 where an aggregate in an assignment can be built directly into the
2574 target, and does not require the creation of a temporary that may
2577 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2579 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
2580 in a record aggregate can correspond to several components of
2581 anonymous access types, as long as the designated subtypes match.
2583 2010-10-07 Robert Dewar <dewar@adacore.com>
2585 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
2586 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
2587 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
2588 spelling parametrize(d) => parameterize(d).
2590 2010-10-07 Robert Dewar <dewar@adacore.com>
2592 * sem_ch12.adb: Add comment.
2593 * sem_ch6.adb: Minor reformatting.
2595 2010-10-07 Robert Dewar <dewar@adacore.com>
2597 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
2598 Pexp to Pf_Rec constants
2599 (P_Subprogram): Expression is always enclosed in parentheses
2600 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
2601 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
2603 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2605 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
2606 checks on functions that return an abstract type or have a controlling
2607 result whose designated type is an abstract type.
2608 (Check_Private_Overriding): Implement Ada2012 checks on functions
2609 declared in the private part, if an abstract type is involved.
2610 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
2611 reject a generic function that returns an abstract type.
2612 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
2613 function has a controlling access result, check that the tag of the
2614 return value matches the designated type of the return expression.
2616 2010-10-07 Robert Dewar <dewar@adacore.com>
2618 * par-ch6.adb: Fix error in handling of parametrized expressions.
2619 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
2621 (P_Simple_Expression): Better message for qualified expression prefix
2622 * s-crc32.adb: Minor reformatting.
2623 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
2624 storage pool (this test is moved to Sem_Intr).
2625 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
2626 empty storage pool, moved here from Exp_Intr and made into error.
2627 (Check_Intrinsic_Call): Remove assumption in generating not-null free
2628 warning that the name of the instantiation is Free.
2629 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
2631 * types.ads: Remove storage size clauses from big types (since we may
2632 need to do deallocations, which are now illegal for empty pools).
2634 2010-10-07 Sergey Rybin <rybin@adacore.com>
2636 * gnat_ugn.texi: Add missing word.
2638 2010-10-07 Robert Dewar <dewar@adacore.com>
2640 * exp_util.adb (Insert_Actions): Add handling of
2641 N_Parametrized_Expression.
2642 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
2643 * sem.adb: Add entry for N_Parametrized_Expression
2644 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
2645 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
2646 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
2647 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
2648 * par-ch4.adb: Minor reformatting.
2650 2010-10-07 Robert Dewar <dewar@adacore.com>
2652 * scng.adb (Skip_Other_Format_Characters): New procedure
2653 (Start_Of_Wide_Character): New procedure
2654 (Scan): Use Start_Of_Wide_Character where appropriate
2655 (Scan): Improve error message for other_format chars in identifier
2656 (Scan): Allow other_format chars between tokens
2658 2010-10-07 Javier Miranda <miranda@adacore.com>
2660 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
2661 Add missing support for explicit dereferences.
2663 2010-10-07 Robert Dewar <dewar@adacore.com>
2665 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
2667 2010-10-07 Robert Dewar <dewar@adacore.com>
2669 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
2670 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
2671 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
2672 Exp_Util.Fully_Qualified_Name_String.
2674 2010-10-07 Robert Dewar <dewar@adacore.com>
2676 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
2677 * sem_res.adb (Resolve_Call): A call to
2678 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
2679 No_Relative_Delay (AI-0211).
2681 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2683 * sem_ch10.adb: Small change in error message.
2685 2010-10-07 Robert Dewar <dewar@adacore.com>
2687 * tbuild.ads: Minor reformatting.
2689 2010-10-07 Robert Dewar <dewar@adacore.com>
2691 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
2693 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2695 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
2697 2010-10-07 Robert Dewar <dewar@adacore.com>
2699 * sem_res.adb: Minor reformatting
2701 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
2703 * gnat_ugn.texi: Minor editing.
2704 * opt.ads: Document that scripts rely on specific formats in opt.ads
2706 2010-10-07 Robert Dewar <dewar@adacore.com>
2708 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
2709 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2710 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
2711 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2713 2010-10-07 Robert Dewar <dewar@adacore.com>
2715 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
2716 * impunit.adb: Add entries for a-wichha/a-zchhan
2717 * Makefile.rtl: Add entries for a-wichha/a-zchhan
2719 2010-10-07 Vincent Celier <celier@adacore.com>
2721 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
2722 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
2723 replaced source, check that none of the replaced sources are in the
2725 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
2726 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
2727 replaced with a source with a different file name, put it in the hash
2728 table Replaced_Sources.
2729 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
2730 one replaced source, check if it has the same file name as the current
2731 source; if it has, remove it from the hash table Replaced_Sources.
2732 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
2733 * prj.ads (Replaced_Source_HTable): New hash table
2734 (Project_Tree_Data): New components Replaced_Sources and
2735 Replaced_Source_Number.
2737 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2739 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
2740 proper flag to prevent a double elaboration check on the same call.
2741 * exp_util.adb (Insert_Actions): If the enclosing node is an
2742 Expression_With_Actions and it has been analyzed already, find
2743 insertion point further up in the tree.
2745 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
2747 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
2748 local variables. Remove the general restriction which prohibits the
2749 application of record rep clauses to Unchecked_Union types. Add Ada
2750 2012 check to detect improper naming of an Unchecked_Union
2751 discriminant in record rep clause.
2752 * sem_prag.adb: Add with and use clause for Exp_Ch7.
2753 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
2754 type to all invocations of Check_Component and Check_Variant.
2755 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
2756 Rewritten. Add Ada 2012 check to detect improper use of formal
2757 private types and private extensions as component types of an
2758 Unchecked_Union declared inside a generic body.
2759 (Check_Variant): Add formal parameter UU_Typ. Propagate the
2760 Unchecked_Union type to all calls of Check_Component. Signal that the
2761 current component comes from the variant part of an Unchecked_Union
2763 (Inside_Generic_Body): New routine.
2765 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2767 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
2768 equality operation for a record component, verify that both formals
2769 have the same type, and the result type is boolean.
2771 2010-10-07 Vincent Celier <celier@adacore.com>
2773 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
2774 binder generated file, look for both b~xxx and b__xxx as gprbuild
2775 always uses b__ as the prefix of such files.
2777 2010-10-07 Thomas Quinot <quinot@adacore.com>
2779 * sem_res.adb: Minor reformatting.
2781 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2783 * debug.adb: Update -gnatd.J documentation.
2785 2010-10-07 Robert Dewar <dewar@adacore.com>
2787 * gnat_rm.texi: Document handling of invalid values
2788 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
2790 (UTF_To_Upper_Case): New function.
2792 2010-10-07 Robert Dewar <dewar@adacore.com>
2794 * sem_attr.adb: Minor reformatting.
2795 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
2796 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
2798 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
2800 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
2801 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
2802 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
2804 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
2806 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
2807 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
2810 2010-10-07 Javier Miranda <miranda@adacore.com>
2812 * a-tags.ads: Use new support for pragma Ada_2012 with function
2815 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2817 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
2818 sequence of statements.
2820 2010-10-07 Vincent Celier <celier@adacore.com>
2822 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
2824 2010-10-07 Javier Miranda <miranda@adacore.com>
2826 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
2827 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
2828 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
2830 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2832 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
2833 (Analyze_Package_Instantiation): No longer analyze systematically a
2834 generic body in CodePeer mode.
2835 * freeze.adb, sem_attr.adb: Update comments.
2837 2010-10-05 Robert Dewar <dewar@adacore.com>
2839 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
2842 2010-10-05 Pascal Obry <obry@adacore.com>
2844 * gnat_rm.texi: Fix typo.
2846 2010-10-05 Arnaud Charlet <charlet@adacore.com>
2848 * gnat_ugn.texi: Add note about identifiers with same name and
2851 2010-10-05 Robert Dewar <dewar@adacore.com>
2853 * sem_ch4.adb: Minor reformatting.
2854 * a-direct.ads: Minor comment update.
2856 2010-10-05 Javier Miranda <miranda@adacore.com>
2858 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
2859 no longer required after change in New_Overloaded_Entity.
2860 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
2861 the fragment of code that handles derivations of interface primitives.
2862 Add missing dependence on global variable Inside_Freezing_Actions to
2863 ensure the correct management of internal interface entities.
2864 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
2865 of the global variable Inside_Freezing_Actions to ensure that internal
2866 interface entities are well handled by New_Overloaded_Entity.
2867 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
2868 and complete the algorithm to catch hidden primitives derived of
2869 private type that covers the interface.
2870 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
2873 2010-10-05 Robert Dewar <dewar@adacore.com>
2875 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
2876 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
2877 Minor code reorganization (use Nkind_In).
2879 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2881 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
2884 2010-10-05 Vincent Celier <celier@adacore.com>
2886 * gnatbind.adb: If the main library file is not for a suitable main
2887 program, change the error message.
2889 2010-10-05 Vincent Celier <celier@adacore.com>
2891 * a-direct.ads: Minor spelling error fixes in comments.
2892 * gnat_rm.texi: Add three entries in "Implementation Defined
2893 Characteristics" for the interpretations of the Form parameters in
2896 2010-10-05 Robert Dewar <dewar@adacore.com>
2898 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
2899 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
2900 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
2904 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2906 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
2907 an explicit dereference of an access to function, the prefix is not
2908 interpreted as a parameterless call.
2910 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2912 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
2915 2010-10-05 Vincent Celier <celier@adacore.com>
2917 * make.adb (Switches_Of): Allow wild cards in index of attributes
2919 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
2920 of the associative array as a glob regular expression.
2921 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
2922 Allow_Wildcards, defaulted to False.
2923 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
2924 * projects.texi: Document that attribute Switches (<file name>) may
2925 use wild cards in the index.
2927 2010-10-05 Robert Dewar <dewar@adacore.com>
2929 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
2930 einfo.adb: Minor reformatting.
2931 * debug.adb: Remove obsolete documentation for d.Z flag.
2933 2010-10-05 Vincent Celier <celier@adacore.com>
2935 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
2936 switch --create-info-file=.
2937 * gnat_ugn.texi: Add documentation for new gnatmake switch
2940 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2942 * sem_ch3.adb: Do not elaborate type definition if syntax error.
2944 2010-10-05 Javier Miranda <miranda@adacore.com>
2946 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
2947 to generate the full-qualified names of its corresponding spec.
2948 This facilitates locating the corresponing body when reading
2951 2010-10-05 Thomas Quinot <quinot@adacore.com>
2953 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
2954 canonical name without serial number only if the helper is becoming a
2955 primitive of the type.
2957 2010-10-05 Javier Miranda <miranda@adacore.com>
2959 * exp_disp.adb (Make_DT): Minor code reorganization.
2961 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2963 * par-ch6.adb: improve recovery with extra paren in function spec.
2965 2010-10-05 Quentin Ochem <ochem@adacore.com>
2967 * prj-tree.ads: Project_Path is now aliased.
2969 2010-10-05 Thomas Quinot <quinot@adacore.com>
2971 * checks.adb: Minor reformatting.
2973 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
2975 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
2976 (Shared_Libgcc): New aliased variable.
2977 (Shared_Libgcc_Switch): New constant.
2978 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
2979 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
2981 * gcc-interface/Make-lang.in: Update dependencies.
2983 2010-10-05 Vincent Celier <celier@adacore.com>
2985 * prj-part.adb (Parse_Simple_Project): When checking if a child project
2986 imports its parent project, also look in projects being extended by
2989 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
2991 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
2993 2010-10-05 Javier Miranda <miranda@adacore.com>
2995 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
2996 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
2997 activate this output.
2999 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3001 * back_end.adb (Call_Back_End): Generate an error message when scil
3002 generation is enabled, and no scil back-end (by default) is available.
3004 2010-10-05 Javier Miranda <miranda@adacore.com>
3006 * debug.adb: Update documentation since -gnatd.Z is no longer required
3007 to generate the call-graph information.
3009 2010-10-05 Javier Miranda <miranda@adacore.com>
3011 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
3012 runtime access check by an equivalent expansion that causes
3013 no problems in the VM backend. The original expansion was
3014 not good for the VM backends because when Tagged_Type_Expansion
3015 is disabled the attribute Access_Disp_Table is not available.
3017 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3019 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
3020 is class-wide and T1 is its specific type.
3022 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3024 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
3026 2010-10-05 Vincent Celier <celier@adacore.com>
3028 * back_end.ads: Minor spelling error correction.
3030 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3032 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
3033 warnings when -gnatC is specified here so that warnings can be
3034 re-enabled explicitly.
3035 (Adjust_Global_Switches): No longer suppress warnings.
3037 2010-10-05 Vincent Celier <celier@adacore.com>
3039 * makeutl.adb: Minor reformatting.
3041 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3043 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
3044 non-discrete type appears as an actual in a call.
3046 2010-10-05 Vincent Celier <celier@adacore.com>
3048 * make.adb (Scan_Make_Arg): Take into account new switch
3050 * makeusg.adb: Add line for new switch --source-info=file.
3051 * makeutl.ads (Source_Info_Option): New constant String for new builder
3053 * prj-conf.adb: Put subprograms in alphabetical order
3054 (Process_Project_And_Apply_Config): Read/write an eventual source info
3056 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
3058 (Look_For_Sources): If a source info file was successfully read, get
3059 the source data from the data read from the source info file.
3060 * prj-util.adb (Source_Info_Table): New table
3061 (Source_Info_Project_HTable): New hash table
3062 (Create): New procedure
3063 (Put (File), Put_Line): New procedures
3064 (Write_Source_Info_File): New procedure
3065 (Read_Source_Info_File): New procedure
3066 (Initialize): New procedure
3067 (Source_Info_Of): New procedure
3068 (Next): New procedure
3069 (Close): When file is an out file, fail if the buffer cannot be written
3070 or if the file cannot be close successfully.
3071 (Get_Line): Fail if file is an out file
3072 * prj-util.ads (Create): New procedure
3073 (Put (File), Put_Line): New procedures
3074 (Write_Source_Info_File): New procedure
3075 (Read_Source_Info_File): New procedure
3076 (Source_Info_Data): New record type
3077 (Source_Info_Iterator): New private type
3078 (Initialize): New procedure
3079 (Source_Info_Of): New procedure
3080 (Next): New procedure
3081 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3082 Source_Info_File_Exists.
3084 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3086 * exp_ch4.adb: Fix typo.
3088 2010-10-05 Thomas Quinot <quinot@adacore.com>
3090 * lib-writ.adb: Minor reformatting.
3092 2010-10-05 Javier Miranda <miranda@adacore.com>
3094 * sem_ch3.adb (Access_Definition): Remove useless code.
3096 2010-10-05 Emmanuel Briot <briot@adacore.com>
3098 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3099 (Deep_Copy): Removed, not used.
3101 2010-10-05 Javier Miranda <miranda@adacore.com>
3103 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3104 move code that searches in the list of primitives of a tagged type for
3105 the entity that will be overridden by user-defined routines.
3106 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3107 previously located in routine Add_Internal_Interface_Entities.
3108 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3109 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3110 availability of attribute Alias.
3112 2010-10-05 Ed Falis <falis@adacore.com>
3114 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3115 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3116 Move definition of intContext to System.OS_Interface.
3117 Add necessary variants in System.VxWorks.Extensions.
3119 2010-10-05 Doug Rupp <rupp@adacore.com>
3121 * s-asthan-vms-alpha.adb: On VMS, a task using
3122 pragma AST_Entry exhibits a memory leak when the task terminates
3123 because the vector allocated for the AST interface is not freed. Fixed
3124 by making the vector a controlled type.
3126 2010-10-05 Emmanuel Briot <briot@adacore.com>
3128 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3129 a "**" pattern properly exists, and report an error otherwise.
3131 2010-10-05 Emmanuel Briot <briot@adacore.com>
3133 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3135 2010-10-05 Emmanuel Briot <briot@adacore.com>
3137 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3139 Extract some code from Get_Directories, to share with the handling
3140 of aggregate projects (for the Project_Files attributes)
3142 2010-10-05 Emmanuel Briot <briot@adacore.com>
3144 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3145 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3146 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3149 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3151 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3153 2010-10-05 Emmanuel Briot <briot@adacore.com>
3155 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3156 (Aggregate projects): added support for parsing aggregate projects.
3157 In particular, check the presence and value of the new attributes
3158 related to aggregate projects, ie Project_Files, Project_Path
3160 (Check_Attribute_Allowed, Check_Package_Allowed,
3161 Rename_Obsolescent_Attributes): new subprogram, extracting code
3162 from existing subprogram to keep their sizes smaller.
3163 (Check_Aggregate_Project, Check_Abstract_Project,
3164 Check_Missing_Sources): new subprograms
3165 (Check): remove comments that duplicated either the name of the
3166 following subprogram call, or the comment on that subprogram.
3167 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3168 from Parse_Single_Project.
3169 (Check_Aggregate_Imports): new subprogram.
3171 2010-10-05 Vincent Celier <celier@adacore.com>
3173 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3174 file has not been generated for the current source, for example if it
3175 has been generated for the spec, but we are compiling the body.
3177 2010-10-05 Bob Duff <duff@adacore.com>
3179 * xgnatugn.adb: Remove unused procedure.
3181 2010-10-04 Vincent Celier <celier@adacore.com>
3183 * a-direct.adb (Copy_File): Interpret the Form parameter and call
3184 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3185 the Form parameter contains an incorrect value for field preserve= or
3187 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3188 parameter is ignored.
3189 (Copy_File): Indicate the interpretation of the Form parameter.
3191 2010-10-04 Vincent Celier <celier@adacore.com>
3193 * make.adb (Gnatmake): When there are no foreign languages declared and
3194 a main in attribute Main of the main project does not exist or is a
3195 source of another project, fail immediately before attempting
3198 2010-10-04 Javier Miranda <miranda@adacore.com>
3200 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3201 used to convert a node referencing a tag to a class-wide interface
3203 * exp_disp.adb (Convert_Tag_To_Interface): New function.
3204 (Expand_Interface_Conversion): Replace invocation of
3205 Unchecked_Conversion by new function Convert_Tag_To_Interface.
3206 (Write_DT): Add support for null primitives.
3207 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3208 cleanup code that handles interface conversions and avoid unchecked
3209 conversion of referenced tag components.
3210 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3211 unrequired conversions when generating a dispatching call to _assign.
3212 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3214 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3216 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3217 parent is a binary boolean operation and the operand is an unpacked
3219 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3220 the operands of the rewritten node are the operands of the negations,
3221 not the negations themselves.
3223 2010-10-04 Robert Dewar <dewar@adacore.com>
3225 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3226 name of entity to biased warning msg.
3227 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3228 biased rep (wrong and never worked anyway).
3230 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3232 * sem_elab.adb: Minor reformatting.
3234 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3236 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3237 an access_to_protected subprogram type, and convert null value into
3238 corresponding aggregate.
3240 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3242 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3244 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3246 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3247 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3250 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3252 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3253 for N_Operator_Symbol.
3254 (Indicate_Name_And_Type): Likewise.
3255 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3256 * sem_res.adb (Resolve): Likewise.
3257 * sem_type.adb (Add_One_Interp): Likewise.
3258 (Disambiguate): Likewise.
3260 2010-10-04 Vincent Celier <celier@adacore.com>
3262 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3263 than ALI file timestamp, return null.
3265 2010-10-04 Vincent Celier <celier@adacore.com>
3267 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
3268 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
3269 replaces global constant with the same name. When a line is too long,
3270 indent properly the next continuation line.
3271 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
3272 from 50 to 255, defaulted to 255, to indicate the maximum length of
3273 lines in the project file.
3275 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3277 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
3278 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
3279 of Traverse_Func on it to look for subprogram references in a body.
3280 Call Check_Subprogram_Refs on the body of inlined subprograms at the
3281 outer level and keep clearing the Is_Public flag of subprograms as long
3282 as it returns OK. Do not look at anything else than subprograms once
3283 an inlined subprogram has been seen.
3285 2010-10-04 Javier Miranda <miranda@adacore.com>
3287 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
3288 the target object is an interface.
3289 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
3290 interface type then we generate an implicit conversion to force
3291 displacement of the pointer to the object to reference the secondary
3292 dispatch table associated with the interface.
3294 2010-10-04 Robert Dewar <dewar@adacore.com>
3296 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3297 Enumeration_Rep_Expr to point to the literal, not the identifier.
3298 (Analyze_Enumeration_Representation_Clause): Improve error message for
3299 size too small for enum rep value
3300 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3301 proper size (RM_Size, not Esize).
3303 2010-10-04 Robert Dewar <dewar@adacore.com>
3305 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3307 2010-10-04 Javier Miranda <miranda@adacore.com>
3309 * exp_cg.adb (Write_Call_Info): Code clean up.
3311 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3313 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3315 2010-10-04 Robert Dewar <dewar@adacore.com>
3317 * exp_cg.adb: Minor code reorganization
3319 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3321 2010-10-04 Bob Duff <duff@adacore.com>
3323 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3324 to make a qualified expression into a name (syntax-wise), then do not
3325 consider it redundant.
3327 2010-10-04 Thomas Quinot <quinot@adacore.com>
3329 * sem_warn.ads: Fix typo.
3331 2010-10-04 Javier Miranda <miranda@adacore.com>
3333 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3335 (Write_Call_Info): Add missing support for renamed primitives.
3337 2010-10-04 Thomas Quinot <quinot@adacore.com>
3339 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3340 code between Make_Component_List_Assign and Make_Field_Assign.
3342 2010-10-04 Vincent Celier <celier@adacore.com>
3344 * prj-nmsc.adb (Get_Directories): For non extending projects that
3345 declare that they have no sources, do not create a non existing object
3346 or exec directory if builder switch -p is used.
3348 2010-10-04 Sergey Rybin <rybin@adacore.com>
3350 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3353 2010-10-04 Ed Falis <falis@adacore.com>
3355 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3356 determine whether Set_True is called from a task or an ISR.
3357 (Set_True): test for being in a task context before trying to
3358 dereference Defer_Abort or Undefer_Abort.
3360 2010-10-04 Robert Dewar <dewar@adacore.com>
3362 * sem_res.adb, sinput-l.adb: Minor reformatting.
3364 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3366 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3367 check when the target object is an interface since the expression of
3368 the right hand side must only cover the interface.
3370 2010-10-04 Vincent Celier <celier@adacore.com>
3372 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3373 loading the main source, so that if it is preprocessed and -gnateG is
3374 used, the preprocessed file is written.
3375 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3376 if a subunit is from the main unit when it is loaded.
3377 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3378 to True before loading a subunit.
3379 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3380 to True when the main is a generic unit before loading one of its
3382 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3383 file only for the main unit (spec, body and subunits).
3385 2010-10-04 Vincent Celier <celier@adacore.com>
3387 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3388 specified and the processed file cannot be written. Just issue a
3389 warning and continue.
3391 2010-10-04 Thomas Quinot <quinot@adacore.com>
3393 * sem_res.adb: Minor reformatting.
3395 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3397 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3398 is an overridden inherited operation, the desired operation is the
3399 overriding one, which is the alias of the visible one.
3401 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3403 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3404 present before deleting from the tree, when an inherited function with
3405 a controlling result that returns a null extension is overridden by a
3406 later declaration or body.
3408 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3410 * checks.adb: Update comment.
3412 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3414 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3415 and define as variables.
3416 (gnat_post_options): Set optimize and optimize_size variables.
3418 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3420 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3421 are not defined by target.
3423 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3425 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3427 2010-09-28 Richard Henderson <rth@redhat.com>
3429 * gcc-interface/misc.c (gnat_eh_personality): Use
3430 targetm.except_unwind_info.
3432 2010-09-28 Jan Hubicka <jh@suse.cz>
3434 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3435 (gnat_internal_attribute_tables): Add leaf.
3437 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3439 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3440 -include-directory, -include-directory=, -no-standard-includes,
3441 -no-standard-libraries): New.
3443 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3445 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
3446 build_array_type with calls to build_nonshared_array_type.
3447 (substitute_in_type): Likewise.
3448 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
3449 (LANG_HOOKS_TYPE_HASH_EQ): Define.
3450 (gnat_post_options): Add 'static' keyword.
3451 (gnat_type_hash_eq): New static function.
3452 * gcc-interface/utils.c (fntype_same_flags_p): New function.
3453 (create_subprog_type): Call it.
3454 (create_index_type): Call build_nonshared_range_type and tidy up.
3455 (create_range_type): Likewise.
3456 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
3458 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3460 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
3462 (end_subprog_body): If the body is a BIND_EXPR, make its associated
3463 block the top-level one.
3464 (build_function_stub): Build a statement group for the whole function.
3465 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
3466 is used, create the enclosing block early and process first the OUT
3469 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3471 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3472 not generate debug info for individual enumerators.
3474 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3476 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
3477 type instead of enumeral type as the dummy type built for the template
3478 type of fat pointers.
3480 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3482 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
3483 (gnat_zaplevel): Likewise.
3484 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
3485 binding level for an external constant.
3486 <E_Constant>: Force the local context and create a fake scope before
3487 translating the defining expression of an external constant.
3488 <object>: Treat external constants at the global level explicitly for
3489 renaming declarations.
3490 (elaborate_expression_1): Force the variable to be static if the
3491 expression is global.
3492 * gcc-interface/trans.c (get_elaboration_procedure): New function.
3493 (call_to_gnu): Use it.
3494 (gnat_to_gnu): Likewise.
3495 <N_Object_Declaration>: Do not test Is_Public to force the creation of
3496 an initialization variable.
3497 (add_decl_expr): Discard the statement if the declaration is external.
3498 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
3499 the current block if it is external.
3500 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
3501 (gnat_zaplevel): New global function.
3503 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3505 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
3506 variables against zero in all cases.
3507 (rest_of_type_decl_compilation): Likewise.
3508 * gcc-interface/trans.c (gigi): Pass properly typed constants to
3510 (call_to_gnu): Fix formatting.
3511 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3512 (Exception_Handler_to_gnu_zcx): Likewise.
3513 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
3515 expressions in presence of a freeze node.
3517 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3519 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
3520 expressions for external constants that are aggregates.
3521 * gcc-interface/utils2.c (build_simple_component_ref): If the field
3522 is an inherited component in an extension, look through the extension.
3524 2010-09-10 Vincent Celier <celier@adacore.com>
3526 * projects.texi: Add documentation for package extensions
3527 Add some documentation for attributes Leading_Library_Options and
3528 Linker'Leading_Switches.
3530 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3532 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
3533 disabled, compute subtype for all string types.
3535 2010-09-10 Robert Dewar <dewar@adacore.com>
3537 * gnat_ugn.texi: Add documentation for -gnatw.s/S
3538 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3539 Component_Size): Implement warning on overriden size clause.
3540 (Analyze_Record_Representation_Clause): Implement warning on overriden
3542 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
3544 * ug_words: Add entries for -gnatw.s/S.
3545 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
3546 * gcc-interface/Make-lang.in: Update dependencies.
3548 2010-09-10 Vincent Celier <celier@adacore.com>
3550 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
3551 a package with the same name from an imported or extended project.
3552 * prj-proc.adb (Process_Declarative_Items): Process package extensions
3554 2010-09-10 Bob Duff <duff@adacore.com>
3556 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
3559 2010-09-10 Robert Dewar <dewar@adacore.com>
3561 * sem.adb: Minor reformatting.
3563 2010-09-10 Bob Duff <duff@adacore.com>
3565 * s-os_lib.ads, g-expect.ads: Add comments.
3567 2010-09-10 Robert Dewar <dewar@adacore.com>
3569 * exp_ch5.adb: Minor reformatting.
3571 2010-09-10 Thomas Quinot <quinot@adacore.com>
3573 * scos.ads: Add comments.
3575 2010-09-10 Vincent Celier <celier@adacore.com>
3577 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
3579 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
3581 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
3582 for a controlled build-in-place function call which appears in an
3583 anonymous context. The transient scope ensures that the intermediate
3584 function result is cleaned up after the master is left.
3585 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
3586 of the transient scope. This is now done in Exand_Call which covers
3587 additional cases other than secondary stack release.
3589 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3591 * sem.adb (Do_Unit_And_Dependents): Add guard.
3593 2010-09-10 Robert Dewar <dewar@adacore.com>
3595 * exp_ch5.adb: Update comments.
3596 * exp_dist.adb: Minor reformatting.
3598 2010-09-10 Robert Dewar <dewar@adacore.com>
3600 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
3602 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
3603 * usage.adb: Add lines for -gnatw.h/H
3604 * gnat_ugn.texi: Add documentation for J519-010
3605 Warn on record holes/gaps
3606 * ug_words: Add entries for -gnatw.h/-gnatw.H
3607 * vms_data.ads: Add entries for [NO]AVOIDGAPS
3609 2010-09-10 Gary Dismukes <dismukes@adacore.com>
3611 * sem_ch6.adb: Update comment.
3613 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3615 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
3616 of full view analyzed after analyzing the corresponding record
3617 declaration, to prevent spurious name conflicts with original
3620 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3622 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
3623 just issue a warning, but continue with the normal processing.
3625 2010-09-10 Robert Dewar <dewar@adacore.com>
3627 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
3630 2010-09-10 Thomas Quinot <quinot@adacore.com>
3632 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
3633 Build_TypeCode_Call): For a subtype inserted for the expansion of a
3634 generic actual type, go to the underlying type of the original actual
3637 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3639 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
3640 guard around the increment statement, to prevent an off-by-one-value
3641 on the last iteration.
3643 2010-09-10 Vincent Celier <celier@adacore.com>
3645 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
3646 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
3647 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
3648 "at run time" in comments and error/warning messages.
3650 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3652 * exp_cg.adb: Handle properly bodies without specs.
3654 2010-09-10 Emmanuel Briot <briot@adacore.com>
3656 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
3657 present, and the user requested to either ignore this or display a
3658 warning (as opposed to an error), we still need to register the
3661 2010-09-10 Robert Dewar <dewar@adacore.com>
3663 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
3664 now done in In_Extended_Main_Source_Unit.
3665 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
3666 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3667 as Parsing_Main_Extended_Source.
3668 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
3670 * lib-load.adb (Load_Unit): Add PMES parameter
3671 Set PMES appropriately in all calls to Load_Unit
3672 * lib-load.ads (Load_Unit): Add PMES parameter
3673 * lib.adb (In_Extended_Main_Source_Unit): When called with
3674 Compiler_State set to Parsing, test new flag
3675 Compiling_Main_Extended_Source.
3676 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
3677 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3678 as Parsing_Main_Extended_Source
3679 * par-load.adb (Load): Set PMES properly in call to Load_Unit
3681 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3683 * exp_cg.adb: Use proper entity to handle overloads.
3684 * sem_res.adb (Check_Parameterless_Call): An operator node without
3685 actuals cannot be a call, and must be treated as a string.
3687 2010-09-10 Robert Dewar <dewar@adacore.com>
3689 * frontend.adb: Minor reformatting.
3691 2010-09-10 Robert Dewar <dewar@adacore.com>
3693 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
3694 * par-ch5.adb (P_Condition): Move from body to spec
3695 * par.adb (Ch5.P_Condition): Move from body to spec
3697 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3699 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
3700 the call table is private, use its full view to generate information
3703 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3705 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
3706 pattern matching to detect predefined primitive operations take into
3707 account that there can be an extra suffix related to body-nested
3710 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3712 * s-pooglo.ads: Add overriding indicators.
3714 2010-09-10 Vincent Celier <celier@adacore.com>
3716 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
3717 /64_MALLOC (for -H64).
3719 2010-09-10 Robert Dewar <dewar@adacore.com>
3721 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
3722 (Error_Msg_NW): Test Parsing_Main_Subunit flag
3723 * errout.ads (Parsing_Main_Subunit): New flag
3724 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
3725 * par-ch6.adb: Minor style fix (remove redandant parentheses)
3726 * par-ch9.adb: Minor style fix (remove redundant parens)
3727 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
3729 2010-09-10 Vincent Celier <celier@adacore.com>
3731 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
3732 function of the same name in Makeutl.
3733 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
3734 of removed procedure when creating a binder mapping file.
3735 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
3737 * makeutl.ads (Create_Binder_Mapping_File): New function
3739 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3741 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
3742 separator when trying the pattern matching to detect predefined
3743 primitive operations.
3745 2010-09-10 Robert Dewar <dewar@adacore.com>
3747 * bindgen.adb, atree.adb: Minor reformatting.
3749 2010-09-10 Ben Brosgol <brosgol@adacore.com>
3751 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
3754 2010-09-10 Doug Rupp <rupp@adacore.com>
3756 * bindgen.adb: Minor comment fix for -H switch.
3758 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3760 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
3761 library unit now, by traversing tree before context is expanded.
3762 (Write_Call_Info): Use enclosing unit name directly.
3763 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
3764 tree earlier, to ensure that subsequent declarations are analyzed in a
3765 connected structure.
3766 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
3769 2010-09-10 Robert Dewar <dewar@adacore.com>
3771 * symbols-processing-vms-alpha.adb: Minor reformatting.
3773 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3775 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
3776 __gnat_install_handler in case the binder is called with -n.
3778 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3780 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
3781 sloc for renaming declaration and set Comes_From_Source properly to
3782 ensure that references are properly generated for an object declaration
3783 that is built in place.
3785 2010-09-10 Tristan Gingold <gingold@adacore.com>
3787 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
3789 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
3790 * gcc-interface/Makefile.in: gnat.hlp is now generated by
3793 2010-09-10 Bob Duff <duff@adacore.com>
3795 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
3796 := ...;", remove side effects from the right-hand side, because they
3797 might affect the value of the left-hand side, but the left-hand side is
3798 first READ (so we can do shifting and masking) and then written back,
3799 which would cause the side effects to be incorrectly overwritten.
3801 2010-09-10 Robert Dewar <dewar@adacore.com>
3803 * sem_ch4.adb: Minor reformatting.
3804 * exp_ch6.adb: Add comment on testing limited on full type
3805 * gnat_rm.texi: Add documentation on Pure_Function.
3807 2010-09-10 Vincent Celier <celier@adacore.com>
3809 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
3810 as a source of another project and of another language.
3812 2010-09-10 Robert Dewar <dewar@adacore.com>
3814 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
3816 * freeze.adb (Check_Unsigned_Type): Ditto.
3817 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
3818 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
3819 (Set_Scalar_Range_For_Subtype): Ditto.
3820 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
3822 2010-09-10 Robert Dewar <dewar@adacore.com>
3824 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
3826 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
3827 rather than parens for fixed constants.
3828 * sprint.ads: Use square brackets rather than parens for fixed constants
3829 * urealp.adb (UR_Write): Use square brackets rather than parens
3830 (UR_Write): Add Brackets argument
3831 (UR_Write): Add many more special cases to output literals
3832 * urealp.ads (UR_Write): Use square brackets rather than parens
3833 (UR_Write): Add Brackets argument
3835 2010-09-10 Robert Dewar <dewar@adacore.com>
3837 * sem_ch4.adb: Minor reformatting.
3839 2010-09-10 Richard Guenther <rguenther@suse.de>
3841 * gcc-interface/utils.c (create_index_type): Use build_range_type.
3843 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3845 * vms_cmds.ads: New.
3847 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3849 * exp_dbug.ads: Mention enhanced encoding for array types.
3851 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3853 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
3854 unsupported in VM targets. Display a warning in this case.
3856 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3858 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
3859 not reset Sloc when printing keyword "new".
3861 2010-09-10 Vincent Celier <celier@adacore.com>
3863 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
3864 GNAT_DRIVER_COMMAND_LINE.
3866 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3868 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
3869 clause, process the body at once.
3871 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3873 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
3874 conversion is the expression is a qualified expression used to
3875 disambiguate a function call.
3877 2010-09-10 Vincent Celier <celier@adacore.com>
3879 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
3880 as a source of another project and of another language.
3882 2010-09-10 Robert Dewar <dewar@adacore.com>
3884 * prj-util.adb: Minor reformatting.
3886 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3888 * exp_disp.adb: Minor reformatting.
3890 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3892 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
3895 2010-09-10 Thomas Quinot <quinot@adacore.com>
3897 * sem_res.adb: Minor reformatting.
3898 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
3899 magic constants for task master levels (instead, reference
3900 named numbers from System.Tasking).
3902 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3904 * gnatvsn.ads (Ver_Prefix): New constant string.
3905 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
3906 (Gen_Output_File_C): Likewise.
3907 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
3910 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3912 * sem.adb (Walk_Library_Items): Do not traverse children of the main
3913 unit, to prevent spurious circularities in the walk order.
3914 (Depends_On_Main): Use elsewhere to prevent circularities when the body
3915 of an ancestor of the main unit depends on a child of the main unit.
3917 2010-09-10 Robert Dewar <dewar@adacore.com>
3919 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
3920 sem_ch3.adb: Minor reformatting.
3922 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3924 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
3925 that is a renaming must be derived like any other primitive operation,
3926 the renamed operation is not relevant to the derivation.
3928 2010-09-10 Robert Dewar <dewar@adacore.com>
3930 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
3931 * checks.adb: Minor reformatting.
3933 2010-09-10 Robert Dewar <dewar@adacore.com>
3935 * gnat_ugn.texi: Add section on intent of style checking options.
3937 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3939 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
3941 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3943 * sem_ch3.adb: Improve error message on derivation from class-wide type
3945 2010-09-10 Steve Baird <baird@adacore.com>
3947 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
3948 generation when Generate_SCIL is True.
3950 2010-09-10 Geert Bosch <bosch@adacore.com>
3952 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
3953 validity of executable name and removing any existing executable
3954 (Gnatlink): Call Check_Existing_Executable.
3956 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3958 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
3959 initialization of Task_Alternate_Stack here, cleaner since in case of
3960 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
3963 2010-09-10 Thomas Quinot <quinot@adacore.com>
3965 * s-fileio.adb, a-dirval.adb: Minor reformatting.
3967 2010-09-10 Emmanuel Briot <briot@adacore.com>
3969 * prj-util.adb (Executable_Of): Fix CE when the project does not
3970 contain a Builder package.
3972 2010-09-10 Vincent Celier <celier@adacore.com>
3974 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
3975 to the project path, if Prefix and Target_Name are defined.
3976 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
3978 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3980 * checks.adb (Ensure_Valid): If the expression is a boolean expression
3981 or short-circuit operation, do no emit a validity check: only the
3982 elementary operands of the expression need checking.
3984 2010-09-10 Ben Brosgol <brosgol@adacore.com>
3986 * gnat_rm.texi: Document Short_Descriptors.
3988 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3990 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
3991 initialize to Null_Address.
3992 (Enter_Task): Do not set up an alternate stack for foreign threads.
3994 2010-09-10 Robert Dewar <dewar@adacore.com>
3996 * opt.adb (Short_Descriptors): New flag
3997 (Short_Descriptors_Config): New flag
3998 * opt.ads (Short_Descriptors): New flag
3999 (Short_Descriptors_Config): New flag
4000 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
4001 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
4002 (Analyze_Pragma): Implement Short_Descriptors pragma
4003 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
4005 2010-09-10 Emmanuel Briot <briot@adacore.com>
4007 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
4008 project's Executable_Suffix.
4010 2010-09-10 Robert Dewar <dewar@adacore.com>
4012 * g-pehage.ads: Minor reformatting
4014 * gnat_ugn.texi: Clarifying comment on -gnatyc
4015 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
4018 2010-09-10 Tristan Gingold <gingold@adacore.com>
4020 * Make-generated.in (gnat.hlp): New rule.
4022 2010-09-10 Emmanuel Briot <briot@adacore.com>
4024 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
4027 2010-09-10 Robert Dewar <dewar@adacore.com>
4029 * einfo.adb: Minor code cleanup: Add assertion to
4030 Set_Corresponding_Protected_Entry.
4032 2010-09-10 Bob Duff <duff@adacore.com>
4034 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
4035 the output to standard output.
4037 2010-09-09 Vincent Celier <celier@adacore.com>
4039 * gnat_ugn.texi: Add documentation for new gnatmake switch
4041 * make.adb (Map_File): New global variable to store the value of switch
4043 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
4045 (Scan_Make_Arg): Recognize switch --create-map-file
4046 * makeutl.ads (Create_Map_File_Switch): New constant string for new
4047 gnatmake and gprbuild switch --create-map-file.
4049 2010-09-09 Robert Dewar <dewar@adacore.com>
4051 * sinput-p.ads: Minor comment update.
4053 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4055 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
4056 Entry_Call.State if needed so that the call is marked as cancelled by
4057 Check_Pending_Actions_For_Entry_Call.
4058 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
4059 this procedure may be called from a controlled operation
4060 (Initialize/Finalize).
4062 2010-09-09 Vadim Godunko <godunko@adacore.com>
4064 * impunit.adb: Correct spelling of package's name in the comment.
4066 2010-09-09 Robert Dewar <dewar@adacore.com>
4068 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4071 2010-09-09 Robert Dewar <dewar@adacore.com>
4073 * impunit.adb: Add entry for a-izteio.
4074 * checks.adb: Add comment.
4075 * debug.adb, exp_disp.adb: Minor reformatting.
4076 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4078 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4080 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4081 discriminant cannot be assumed to be the same value because they may
4082 refer to bounds of a component of two different instances of a
4085 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4087 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4088 operands of an operator to the type of an enclosing conversion, rewrite
4089 the operator so the conversion can't be flagged as redundant.
4090 Remove useless assignments to Typ and Rtyp.
4092 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4094 * gnat_ugn.texi: Fix another long line.
4096 2010-09-09 Bob Duff <duff@adacore.com>
4098 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4101 2010-09-09 Matthew Heaney <heaney@adacore.com>
4103 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4104 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4105 Replace_Element, Reverse_Elements, Swap): Change exception message to
4106 correctly indicate kind of tampering (cursor or element).
4107 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4108 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4109 Swap_Links, Replace_Element, Swap): Ditto.
4110 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4111 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4112 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4113 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4114 Generic_Replace_Element): Ditto
4115 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4116 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4117 Replace_Element): Ditto.
4118 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4119 Symmetric_Difference, Union, Include, Replace): Ditto
4121 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4123 * sprint.adb (Write_Id): If the parent node is an expanded name, check
4124 that its entity_or_associated_node is an entity before writing it out.
4125 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4126 constructors, there is no need for a dispatch table pointer because the
4127 table is fully inherited from the C++ code.
4129 2010-09-09 Thomas Quinot <quinot@adacore.com>
4131 * projects.texi: Fix wrong identifiers on package end lines in project
4133 * exp_ch6.adb: Minor reformatting.
4135 2010-09-09 Tristan Gingold <gingold@adacore.com>
4137 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4139 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4141 * gnat_ugn.texi: Fix description of -O3 optimization level.
4143 2010-09-09 Yannick Moy <moy@adacore.com>
4145 * a-cihama.adb, a-cohama.adb: Fix comments.
4147 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4149 * i-cexten.ads: Add comments.
4150 (Signed_128): New type, used by some C bindings.
4151 * debug.adb: Update comment.
4153 2010-09-09 Sergey Rybin <rybin@adacore.com>
4155 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4156 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4157 the tool should process Ada 2005 sources.
4159 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4161 * sem_ch12.adb (Remove_Parent): If the scope containing the child
4162 instance is a block, examine the enclosing scope to determine if it is
4165 2010-09-09 Doug Rupp <rupp@adacore.com>
4167 * sem_prag.adb (pragma Ident): Pass --identification= vice
4169 * gnatlink.adb (Linker_Options): Look for --identification= vice
4172 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4174 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4175 inserting and analyzing the object declaration for the temporary object
4176 created to hold a 'Old value, push the scope for the subprogram where
4177 the object is inserted, so that its Scope (and that of related objects)
4178 will be set properly.
4180 2010-09-09 Vincent Celier <celier@adacore.com>
4182 * prj.adb (Get_Object_Directory): Return object directory display name
4183 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4184 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4185 return this value, otherwise return the default for the platform.
4187 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4189 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4190 dependencies. Remove handling of gnatlbr.
4191 Do not remove s-stratt-xdr for the run-time when installing.
4193 2010-09-09 Robert Dewar <dewar@adacore.com>
4195 * sem_attr.adb: Minor reformatting.
4197 2010-09-09 Thomas Quinot <quinot@adacore.com>
4199 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4200 unsigned long, not an int.
4202 2010-09-09 Vincent Celier <celier@adacore.com>
4204 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4205 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4206 we are not checking for equality of path or file names.
4208 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4210 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4211 array reference, reset the Analyzed flag so that it is properly
4212 expanded when the resulting object declaration is analyzed.
4214 2010-09-09 Vincent Celier <celier@adacore.com>
4216 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4219 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4221 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4222 VX_SPE_TASK option, so disable it.
4224 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4226 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4228 (Is_Subunit_Of_Main): Handle null nodes properly.
4230 2010-09-09 Robert Dewar <dewar@adacore.com>
4232 * par-ch2.adb: Update comments.
4234 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4236 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4238 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4240 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4241 do not generate an error for compatibility with legacy code.
4242 ignored when generating SCIL.
4243 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4245 2010-09-09 Thomas Quinot <quinot@adacore.com>
4247 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4248 s-strxdr.adb to s-stratt-xdr.adb
4250 2010-09-09 Robert Dewar <dewar@adacore.com>
4252 * ali-util.adb (Obsolescent_Check): Removed.
4253 * gprep.adb (Obsolescent_Check): Removed.
4254 Remove Obsolescent_Check parameter in Scng instantiation
4255 * prj-err.adb (Obsolescent_Check): Removed.
4256 * prj-err.ads (Obsolescent_Check): Removed.
4257 Remove Obsolescent_Check parameter in Scng instantiation
4258 * scans.ads (Based_Literal_Uses_Colon): New flag
4259 * scn.adb (Obsolscent_Check_Flag): Removed
4260 (Obsolscent_Check): Removed
4261 (Set_Obsolescent_Check): Removed
4262 (Post_Scan): Add handling for obsolescent features
4263 * scn.ads (Obsolscent_Check): Removed
4264 (Set_Obsolescent_Check): Removed
4265 (Post_Scan): Can no longer be inlined
4266 Remove Obsolescent_Check from instantiation of Scng
4267 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
4268 (Nlit): Remove handling of obsolescent check
4269 (Scan, case '%'): Remove handling of obsolescent check
4270 (Scan, case '|'): Call Post_Scan
4271 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
4272 * scng.ads Remove Obsolescent_Check argument from Scng generic
4273 (Post_Scan): Now called for Tok_Vertical_Bar
4274 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
4276 2010-09-09 Doug Rupp <rupp@adacore.com>
4278 * gnatlbr.adb: Removed.
4279 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4281 2010-09-09 Robert Dewar <dewar@adacore.com>
4283 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4286 2010-09-09 Vincent Celier <celier@adacore.com>
4288 * gnatlbr.adb: Remove redundant conversions.
4290 2010-09-09 Vincent Celier <celier@adacore.com>
4292 * prj-proc.adb: Minor comment spelling error fix.
4293 * osint.ads (Env_Vars_Case_Sensitive): Use function
4294 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4297 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4299 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4300 resolution of conditional expressions whose dependent expressions are
4301 anonymous access types.
4303 2010-09-09 Robert Dewar <dewar@adacore.com>
4305 * a-ststio.adb: Minor code reorganization.
4306 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4308 * types.ads: Minor reformatting.
4309 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4310 redundant conversions.
4311 * output.adb: Minor reformatting.
4312 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4314 * opt.ads: Add pragma Ordered for Verbosity_Level.
4315 * prj.ads: Add pragma Ordered for type Verbosity.
4317 2010-09-09 Vincent Celier <celier@adacore.com>
4319 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4321 (Canonical_Case_Env_Var_Name): Ditto
4323 2010-09-09 Bob Duff <duff@adacore.com>
4325 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4327 2010-09-09 Robert Dewar <dewar@adacore.com>
4329 * cstand.adb: Mark Boolean and Character types as Ordered
4330 * einfo.adb (Has_Pragma_Ordered): New flag
4331 * einfo.ads (Has_Pragma_Ordered): New flag
4332 * g-calend.ads: Mark Day_Name as Ordered
4333 * opt.ads: Mark Ada_Version_Type as Ordered
4334 (Warn_On_Unordered_Enumeration_Type): New flag
4335 * par-prag.adb: Add procdessing for pragma Ordered
4336 * s-ficobl.ads (Read_File_Mode): New subtype
4337 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4338 * s-taskin.ads: Mark Entry_Call_State as ordered
4339 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4341 * sem_ch6.ads: Mark Conformance_Type as Ordered
4342 * sem_prag.adb: Implement pragma Ordered
4343 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4344 (Resolve_Comparison_Op): Diagnose unordered comparison
4345 (Resolve_Range): Diagnose unordered range
4346 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4348 * snames.ads-tmpl: Add entry for pragma Ordered
4349 * style.ads (Check_Enumeration_Subrange): Removed
4350 * styleg.adb (Check_Enumeration_Subrange): Removed
4351 * styleg.ads (Check_Enumeration_Subrange): Removed
4352 * stylesw.adb: Remove handling of -gnatyE switch
4353 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4354 * vms_data.ads: Remove -gnatyE entries
4355 Add -gnatw.u entries
4356 * ug_words: Entries for -gnatw.u and -gnatw.U
4357 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4358 * gnat_rm.texi: Document pragma Ordered.
4359 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4360 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4362 2010-09-09 Vincent Celier <celier@adacore.com>
4364 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4365 for VMS and Windows, and 1 for all other platforms.
4366 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4367 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4368 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4369 Canonical_Case_File_Name, as we are dealing with environment variables,
4372 2010-09-09 Robert Dewar <dewar@adacore.com>
4374 * sem_util.adb: Minor reformatting
4376 2010-09-09 Vincent Celier <celier@adacore.com>
4378 * vms_data.ads: Add documentation for S_Make_Single.
4380 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4382 * sem_util.adb (Same_Object): include formal parameters.
4384 2010-09-09 Vincent Celier <celier@adacore.com>
4386 * make.adb (Queue): New package implementing a new impementation of the
4387 queue, taking into account the new switch --single-compile-per-obj-dir.
4388 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4389 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4390 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4392 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4393 switch --single-compile-per-obj-dir.
4394 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4395 switch --single-compile-per-obj-dir.
4396 * gnat_ugn.texi: Add documentation for new gnatmake switch
4397 --single-compile-per-obj-dir.
4399 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4401 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4403 2010-09-09 Javier Miranda <miranda@adacore.com>
4405 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4406 (Replace_Type): Code cleanup.
4407 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4409 2010-09-09 Thomas Quinot <quinot@adacore.com>
4411 * exp_ch8.adb: Minor reformatting.
4413 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4415 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4416 Corresponding_Protected_Entry.
4418 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4420 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4421 inequality, it is always rewritten as the negation of the corresponding
4423 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4424 the predefined equality of an untagged record, create a body at the
4425 point of the renaming, to capture the current meaning of equality for
4428 2010-09-09 Robert Dewar <dewar@adacore.com>
4430 * sem.adb, sem_warn.adb: Minor reformatting.
4432 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4434 * sem_ch6.adb: Improve error message on untagged equality.
4435 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4437 2010-09-09 Javier Miranda <miranda@adacore.com>
4439 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4441 2010-09-09 Robert Dewar <dewar@adacore.com>
4443 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4445 2010-09-09 Robert Dewar <dewar@adacore.com>
4447 * einfo.adb (Is_Aggregate_Type): New function.
4448 * einfo.ads (Aggregate_Kind): New enumeration subtype
4449 (Is_Aggregate_Type): New function.
4450 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
4453 2010-09-09 Robert Dewar <dewar@adacore.com>
4455 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
4456 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
4458 * restrict.ads, restrict.adb: Ditto.
4459 (Restriction_Check_Needed): New function
4461 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4463 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
4464 Build_Master_Entity, to find the proper scope for the master entity of
4465 a type that may contain tasks, in the presence of transient scopes.
4466 * exp_ch9.adb (Build_Master_Entity) Use new function.
4467 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
4469 2010-09-09 Vincent Celier <celier@adacore.com>
4471 * prj-attr.adb: Add new attributes Leading_Library_Options and
4472 Linker'Leading_Switches.
4473 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
4476 2010-09-09 Javier Miranda <miranda@adacore.com>
4478 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
4479 dispatching primitive covers some interface primitive is incomplete.
4480 Replace such code by the invocation of a new subprogram that provides
4482 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
4483 * sem_ch6.adb (Check_Missing_Return): Minor reformating
4484 (Check_Convention): Complete if-statement conditition when reporting
4485 errors (to avoid assertion failure).
4486 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
4487 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
4488 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
4489 overridden null interface primitives.
4490 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
4491 private type is an interface then use the parent of its full view to
4492 climb to its ancestor type.
4493 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
4494 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
4495 null interface primitives.
4496 (Is_Null_Interface_Primitive): New subprogram.
4497 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
4498 (Expand_Freeze_Record_Type): Do not generate specs of null interface
4499 subprograms because they are now generated by Analyze_Freeze_Entity.
4501 2010-09-09 Robert Dewar <dewar@adacore.com>
4503 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4505 2010-09-09 Robert Dewar <dewar@adacore.com>
4507 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
4508 (Gen_Restrictions_C): Avoid explicit enumeration ranges
4509 (Set_String_Replace): New procedure
4510 * casing.ads (Known_Casing): New subtype declaration
4511 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
4513 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
4514 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
4515 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
4516 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
4517 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
4519 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
4521 * sem_type.adb (Is_Array_Class_Record_Type): New.
4522 * style.ads (Check_Enumeration_Subrange): New procedure
4523 * styleg.adb (Check_Enumeration_Subrange): New procedure
4524 * styleg.ads (Check_Enumeration_Subrange): New procedure
4525 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
4526 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
4527 * usage.adb: Add line for -gnatyE
4528 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
4529 Add missing entry for NOBOOLEAN_OPERATORS
4530 * gnat_ugn.texi: Add documentation for -gnatyE
4532 2010-09-09 Robert Dewar <dewar@adacore.com>
4534 * namet.adb (Initialize): Is now a dummy procedure
4535 (Reinitialize): New procedure
4536 Call Reinitialize from package initialization
4537 * namet.ads (Initialize): Is now a dummy procedure
4538 (Reinitialize): New procedure
4539 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
4540 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
4543 2010-09-09 Bob Duff <duff@adacore.com>
4545 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
4547 2010-09-09 Robert Dewar <dewar@adacore.com>
4549 * s-bitops.adb (Raise_Error): Add exception message
4551 2010-09-09 Robert Dewar <dewar@adacore.com>
4553 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
4554 null statement after label.
4555 * sinfo.ads: Minor comment updates.
4557 2010-09-09 Robert Dewar <dewar@adacore.com>
4559 * nlists.ads, nlists.adb (In_Same_List): New function.
4560 Use Node_Or_Entity_Id where appropriate.
4561 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
4563 2010-09-09 Robert Dewar <dewar@adacore.com>
4565 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
4567 * sem_ch3.adb: Use Check_Wide_Character_Restriction
4568 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
4569 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
4570 (Find_Expanded_Name): Check violation of No_Wide_Characters
4572 2010-09-09 Robert Dewar <dewar@adacore.com>
4574 * par-ch5.adb: Minor reformatting.
4576 2010-09-09 Robert Dewar <dewar@adacore.com>
4578 * prj-env.adb: Minor code reorganization.
4579 * par-ch3.adb: Minor reformatting.
4580 * gcc-interface/Make-lang.in: Update dependencies.
4582 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4584 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
4585 a task declaration can be an entry body.
4587 2010-09-09 Javier Miranda <miranda@adacore.com>
4589 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
4590 tags of library level tagged types.
4591 (Make_Tags): Disable backend optimizations about aliasing for
4592 declarations of access to dispatch tables.
4594 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4596 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
4597 subtype for a null-excluding access type, recover the original
4598 subtype_mark to get the proper visibility on the original name.
4600 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4602 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
4603 create the primitive equality operation for an untagged record. The
4604 operation is the predefined equality if no record component has a
4605 user-defined equality, or if there is a user-defined equality for the
4606 type as a whole, or when the type is derived and it has an inherited
4607 equality. Otherwise the body of the operations is built as for tagged
4609 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
4610 (Make_Eq_Body): New function to create the expanded body of the
4611 equality operation for tagged and untagged records. In both cases the
4612 operation composes, and the primitive operation of each record
4613 component is used to generate the equality function for the type.
4614 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
4615 has an abstract equality defined, replace its call with a
4616 Raise_Program_Error.
4617 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
4618 user-defined equality operator for an untagged record type does not
4619 happen after type is frozen, and appears in the visible part if partial
4620 view of type is not limited.
4622 2010-09-09 Tristan Gingold <gingold@adacore.com>
4624 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
4626 2010-09-09 Bob Duff <duff@adacore.com>
4628 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
4630 2010-09-09 Pascal Obry <obry@adacore.com>
4632 * gnat_ugn.texi: Update doc on windows related topics.
4634 2010-09-09 Geert Bosch <bosch@adacore.com>
4636 * s-fatgen.adb: Update comments.
4638 2010-09-09 Robert Dewar <dewar@adacore.com>
4640 * par-ch4.adb (Box_Error): New procedure.
4642 2010-09-09 Thomas Quinot <quinot@adacore.com>
4644 * sem.adb: Minor reformatting.
4646 2010-09-09 Pascal Obry <obry@adacore.com>
4648 * prj-env.adb: Style fix, use /and then/ and /or else/.
4649 * gnat_ugn.texi: Fix typos.
4651 2010-09-03 Joseph Myers <joseph@codesourcery.com>
4654 * gcc-interface/misc.c (gnat_init_options): Allow options with
4655 empty canonical form. Generate a single save_argv element from -I
4658 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4660 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
4661 Attach fake PARM_DECLs to the topmost block of the function.
4663 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4665 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
4666 for the call to a function whose return type was unconstrained.
4668 2010-08-30 Olivier Hainque <hainque@adacore.com>
4670 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
4671 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
4672 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
4674 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
4676 * tracebak.c: Fix typo in comment.
4678 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4680 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
4681 * gcc-interface/trans.c: Likewise.
4682 * gcc-interface/utils.c: Likewise.
4684 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
4686 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
4688 2010-08-10 Robert Dewar <dewar@adacore.com>
4690 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
4691 * sem_util.adb: Minor reformatting.
4693 2010-08-10 Javier Miranda <miranda@adacore.com>
4695 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
4696 constructors that leave the object partially initialized.
4697 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
4698 that copies from parent of Typ the dispatch table slots of inherited
4699 C++ primitives. It handles primary and secondary dispatch tables.
4700 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
4701 use this attribute with E_Variable entities.
4702 (Set_Is_Tag): Relax assertion to allow its use with variables that
4704 (Set_Related_Type): Relax assertion to allow its use with variables
4705 that store the tag of a C++ class.
4706 (Write_26_Field_Name): Remove Related_Type.
4707 (Write_27_Field_Name): Add Related_Type.
4708 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
4709 with E_Variable entities.
4710 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
4712 * sem_util.adb (Search_Tag): Add missing support for CPP types.
4713 (Enclosing_CPP_Parent): New subprogram.
4714 (Has_Suffix): New subprogram.
4715 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
4716 closest ancestor of a type that is a C++ type.
4717 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
4719 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
4720 instance in derivations of C++ types.
4721 * exp_tss.adb (CPP_Init_Proc): New subprogram.
4722 (Is_CPP_Init_Proc): New subprogram.
4723 (Set_TSS): Handle new C++ init routines.
4724 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
4726 (CPP_Init_Proc): New subprogram.
4727 (Is_CPP_Init_Proc): New subprogram.
4728 * exp_disp.adb (CPP_Num_Prims): New subprogram.
4729 (Has_CPP_Constructors): New subprogram.
4730 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
4731 initialize slots located in the C++ part of the dispatch table.
4732 (Make_Tags): For CPP types declare variables used by the IP routine to
4733 store the C++ tag values after the first invocation of the C++
4735 (Build_CPP_Init_DT): New subprogram.
4736 (Set_CPP_Constructors): New implementation that builds an IP for each
4737 CPP constructor. These IP are wrappers of the C++ constructors that,
4738 after the first invocation of the constructor, read the C++ tags from
4739 the object and save them locally. These copies of the C++ tags are used
4740 by the IC routines to initialize tables of Ada derivations of CPP
4742 (Write_DT): Indicate what primitives are imported from C++
4743 * exp_disp.ads (CPP_Num_Prims): New subprogram.
4744 (Has_CPP_Constructors): New subprogram.
4745 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
4746 invoke the IC routine to inherit the slots of the parents.
4747 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
4748 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
4749 (Is_Variable_Size_Record): Factorize code calling
4750 Is_Variable_Size_Array.
4751 (Build_CPP_Init_Procedure): New subprogram that builds the tree
4752 corresponding to the procedure that initializes the C++ part of the
4753 dispatch table of an Ada tagged type that is a derivation of a CPP
4755 (Build_Init_Procedure): Adding documentation plus code reorganization
4756 to leave more clear the construction of the IP with C++ types.
4757 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
4758 it cannot be called after Make_Tags has been invoked.
4759 (Inherit_CPP_Tag): Removed.
4760 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
4761 located at variable offset.
4762 * freeze.ads: Minor reformating.
4763 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
4765 * gcc-interface/Make-lang.in: Update dependencies.
4767 2010-08-10 Robert Dewar <dewar@adacore.com>
4769 * a-chahan.ads: Add comments on handling of obsolescent entries.
4770 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
4771 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
4772 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
4773 * sem_attr.adb (Analyze_Access_Attribute): Call
4774 Check_Obsolescent_2005_Entity to check for access to obsolescent
4775 Ada.Characters.Handling subprogram.
4776 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
4777 type is obsolescent in Ada 2005.
4778 (Analyze_Attribute, case Constrained): Better placement of flag when
4779 flagged as obsolescent feature.
4780 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
4781 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
4782 is an obsolescent feature.
4783 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
4785 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
4786 Check_Obsolescent_2005_Entity to check for renaming obsolete
4787 Ada.Characters.Handling subprogram.
4788 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
4789 for obsolescent restrictions in Ada 2005.
4790 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
4791 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
4792 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
4793 check for obsolescent references to Ada.Characters.Handling subprograms
4795 2010-08-10 Robert Dewar <dewar@adacore.com>
4797 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
4799 2010-08-10 Robert Dewar <dewar@adacore.com>
4801 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
4802 * par-ch4.adb: Change wording of Ada 2012 messages
4803 * vms_data.ads: Add VMS entries for /2005, /12, /2012
4805 2010-08-10 Robert Dewar <dewar@adacore.com>
4807 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
4808 codes in the range 16#80#..16#7FF#.
4809 * sem_ch10.adb: Minor reformatting.
4811 2010-08-10 Arnaud Charlet <charlet@adacore.com>
4813 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
4814 generate ali files in CodePeer mode, so that a gnatmake -c -k will
4815 proceed further when possible
4816 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
4817 messages when ignoring representation clauses (-gnatI).
4819 2010-08-10 Ed Schonberg <schonberg@adacore.com>
4821 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
4822 constant-fold discriminant reference if the constraint is an object
4823 with non-static expression. Expression may contain volatile references
4824 in the presence of renamings.
4826 2010-08-10 Vincent Celier <celier@adacore.com>
4828 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
4830 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
4831 index for an associative array where it is allowed.
4833 2010-08-10 Thomas Quinot <quinot@adacore.com>
4835 * exp_attr.adb: Add comments.
4837 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
4839 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
4841 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
4843 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
4845 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
4847 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
4848 (build_vms_descriptor): Likewise.
4850 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4852 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
4853 (build_vms_descriptor32): Adjust calls to it for new parameter.
4854 (build_vms_descriptor): Likewise.
4856 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4858 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
4859 (build_variant_list): Take and return a VEC instead of a tree.
4860 (create_variant_part_from): Take a VEC instead of a tree for
4861 variant_list. Adjust accordingly.
4862 (gnat_to_gnu_entity): Adjust for changes to previous functions.
4864 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
4866 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
4868 (components_to_record): Likewise.
4869 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
4870 * gcc-interface/utils.c (max_size): Likewise.
4871 (build_vms_descriptor32): Likewise.
4872 (build_vms_descriptor): Likewise.
4874 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
4876 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
4877 (build_subst_list): Return a VEC instead of a tree.
4878 (build_variant_list): Take a VEC for subst_list. Adjust
4880 (create_field_decl_from): Likewise.
4881 (create_variant_part_from): Likewise.
4882 (copy_and_substitute_in_size): Likewise.
4883 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
4884 Free the built vector.
4886 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
4888 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
4889 allocator for large imported objects.
4891 2010-08-05 Robert Dewar <dewar@adacore.com>
4893 * gnat1drv.adb: Minor reformatting.
4895 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4897 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
4898 instantiation, process its body before the spec of the main unit,
4899 because it may contain subprograms invoked in the spec of main.
4900 * einfo.ads: Add documention of delayed freeze.
4902 2010-08-05 Vincent Celier <celier@adacore.com>
4904 * prj-nmsc.adb (Process_Linker): Take into account new values for
4905 attribute Response_File_Format.
4906 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
4907 GCC_Object_List and GCC_Option_List.
4909 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4911 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
4912 selected component that denotes a discriminant if it is the
4913 discriminant of a component of an unconstrained record type.
4915 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4917 * exp_util.adb (Insert_Actions): If the action appears within a
4918 conditional expression that is already analyzed, insert action further
4921 2010-08-05 Robert Dewar <dewar@adacore.com>
4923 * exp_ch4.adb: Minor reformatting.
4925 2010-08-05 Thomas Quinot <quinot@adacore.com>
4927 * exp_ch4.adb: Minor reformatting
4928 * gnat1drv.adb: Minor reformatting.
4929 Minor code reorganization (use Nkind_In).
4931 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4933 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
4934 determine whether the expression in an address clause for an
4935 initialized object must be constant. Code moved from freeze.adb.
4936 (Remove_Side_Effects): When the temporary is initialized with a
4937 reference, indicate that the temporary is a constant as done in all
4939 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
4940 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
4941 If object does not need a constant address, remove side effects from
4942 address expression, so it is elaborated at the point of the address
4943 clause and not at the freeze point of the object, so that elaboration
4946 2010-08-05 Vincent Celier <celier@adacore.com>
4948 * prj.adb (Is_Compilable): Return False for header files of non Ada
4951 2010-08-05 Emmanuel Briot <briot@adacore.com>
4953 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
4954 exec directory as a warning rather than an error.
4956 2010-08-05 Thomas Quinot <quinot@adacore.com>
4958 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
4961 2010-08-05 Steve Baird <baird@adacore.com>
4963 * exp_util.adb (Remove_Side_Effects): An access value which designates
4964 a volatile object of a nonvolatile type is prohibited.
4965 Do not call Make_Reference to construct a reference to such an object.
4967 2010-08-05 Robert Dewar <dewar@adacore.com>
4969 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
4970 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
4971 a-suewen.adb, a-suewen.ads: New files.
4972 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
4974 * sem_elab.adb: Minor reformatting.
4976 2010-08-05 Arnaud Charlet <charlet@adacore.com>
4978 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
4979 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
4980 in case of null Comp.
4982 2010-08-05 Robert Dewar <dewar@adacore.com>
4984 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
4986 2010-08-05 Gary Dismukes <dismukes@adacore.com>
4988 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
4989 nested access type whose designated type has tasks or is a protected
4990 object when the restrictions No_Task_Hierarchy or
4991 No_Local_Protected_Objects apply. Add ??? comment.
4992 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
4993 type is not a library-level type and No_Local_Protected_Objects applies.
4994 (Analyze_Task_Type): Give a warning when a task type is not a
4995 library-level type and No_Task_Hierarchy applies.
4997 2010-08-05 Arnaud Charlet <charlet@adacore.com>
4999 * sem.adb: Minor reformatting
5000 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
5003 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
5005 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
5007 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
5008 for the debug-only entity.
5009 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
5011 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5013 * gcc-interface/lang-specs.h: Don't pass -a options.
5015 2010-07-28 Joseph Myers <joseph@codesourcery.com>
5017 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
5018 options. Check canonical_option_num_elements on options copied.
5020 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5022 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
5023 return value type. Don't check for missing arguments here.
5025 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5027 * gcc-interface/misc.c (gnat_option_lang_mask): New.
5028 (gnat_init_options): Update prototype. Reconstruct argv array
5029 from decoded options.
5031 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5033 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
5034 case, merge the alias set of the old pointer type.
5036 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5038 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
5039 and recurse only for multidimensional array types instead.
5041 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5044 * gcc-interface/utils.c (convert): Fix thinko in test.
5045 (unchecked_convert): When converting from a scalar type to a type with
5046 a different size, pad to have the same size on both sides.
5048 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5050 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
5051 equality for the component type of array types.
5053 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5055 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5056 * gcc-interface/trans.c: Likewise.
5057 * gcc-interface/utils.c: Likewise.
5058 * gcc-interface/utils2.c: Likewise.
5060 2010-07-13 Laurent GUERBY <laurent@guerby.net>
5063 * gcc-interface/targtyps.c: Include tm_p.h.
5064 * gcc-interface/Make-lang.in: Update dependencies.
5066 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
5068 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5071 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5073 * gcc-interface/utils.c: Include diagnostic-core.h in every file
5074 that includes toplev.h.
5076 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5078 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5079 Branch to common code handling the alignment of discrete types.
5080 <E_Signed_Integer_Type>: Likewise.
5081 <E_Modular_Integer_Type>: Likewise.
5083 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5085 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5086 (gnat_handle_option): Allocate only one element for gnat_argv.
5087 (gnat_init): Do not populate gnat_argv.
5089 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5091 * gcc-interface/trans.c: Do not include tree-flow.h.
5092 * gcc-interface/Make-lang.in: Adjust dependencies.
5094 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5096 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5097 of a TREE_LIST. Update comment.
5098 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5099 Adjust call to gnat_build_constructor.
5100 (Attribute_to_gnu): Likewise.
5101 (gnat_to_gnu): Likewise.
5102 (pos_to_constructor): Likewise.
5103 (extract_values): Likewise.
5104 * gcc-interface/utils.c (build_template): Likewise.
5105 (convert_vms_descriptor64): Likewise.
5106 (convert_vms_descriptor32): Likewise.
5107 (convert_to_fat_pointer): Likewise.
5108 (convert): Likewise.
5109 (unchecked_convert): Likewise.
5110 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5111 * gcc-interface/utils2.c (build_allocator): Likewise.
5112 (fill_vms_descriptor): Likewise.
5113 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5114 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5115 instead of TREE_LISTs.
5117 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5119 * gcc-interface/misc.c: Do not include except.h.
5120 * gcc-interface/Make-lang.in: Update dependencies.
5122 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
5124 * gcc-interface/trans.c: Include tree-flow.h.
5125 (gnu_switch_label_stack): Delete.
5126 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5127 its associated block cannot fall through. Do not emit the final label
5128 if no cases branch to it.
5129 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5131 2010-06-23 Thomas Quinot <quinot@adacore.com>
5133 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5134 reference to a protected subprogram outside of the protected's scope,
5135 ensure the corresponding external subprogram is frozen before the
5138 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5140 * sem_prag.adb: Fix typo in error message.
5141 * sem.adb: Refine previous change.
5143 2010-06-23 Robert Dewar <dewar@adacore.com>
5145 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5146 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5147 Implement Ada 2012 string encoding packages.
5149 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5151 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5152 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5153 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5154 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5156 * gcc-interface/Makefile.in: Enable use of above files.
5158 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5160 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5161 of address clauses if if Ignore_Rep_Clauses is active.
5162 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5163 remove address clause from tree so that it does not reach the backend.
5165 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5167 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5168 expand 'Valid from user code in CodePeer mode, will be handled by the
5171 2010-06-23 Bob Duff <duff@adacore.com>
5173 * g-comlin.ads: Minor comment improvements.
5175 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5177 * sem_res.adb (Uses_SS): The expression that initializes a controlled
5178 component of a record type may be a user-defined operator that is
5179 rewritten as a function call.
5181 2010-06-23 Bob Duff <duff@adacore.com>
5183 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5185 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
5187 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5188 label to the new sequence of statements. Set the sloc of the raise
5189 statement onto the new goto statements.
5191 2010-06-23 Robert Dewar <dewar@adacore.com>
5193 * a-stuten.ads, a-stuten.adb: New files.
5194 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5195 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5197 2010-06-23 Robert Dewar <dewar@adacore.com>
5199 * gnat_ugn.texi: Add documentation of -gnat12 switch
5200 Add documentation of -gnatX switch.
5202 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5204 * inline.ads: Include the current Ada_Version in the info for pending
5205 instance bodies, so that declaration and body are compiled with the
5207 * inline.adb: Move with_clause for Opt to spec.
5208 * sem_ch12.adb (Analyze_Package_Instantiation,
5209 Analyze_Subprogram_Instantiation): Save current Ada_Version in
5210 Pending_Instantiation information.
5211 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5212 Inline_Package_Body): Use the Ada_Version present in the body
5215 2010-06-23 Robert Dewar <dewar@adacore.com>
5217 * usage.adb: Add documentation for -gnat12 switch.
5218 * errout.ads: Add VMS alias entry for -gnat12 switch
5219 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5220 Add documentation for pragma Extensions_Allowed.
5221 * opt.ads: Add entry for Ada 2012 mode.
5222 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5224 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5226 * sem_ch13.adb: Add handling for Ada 2012 mode.
5227 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5228 * switch-c.adb: Add handling for -gnat12 switch.
5229 Implement -gnat2005 and -gnat2012.
5230 * usage.adb: Add documentation for -gnat12 switch.
5231 * vms_data.ads: Add /12 switch for Ada 2012 mode.
5233 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5235 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5236 No_Task_Hierarchy restriction. Add comment.
5237 * exp_ch9.adb, exp_ch3.adb: Update comments.
5239 2010-06-23 Robert Dewar <dewar@adacore.com>
5241 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5242 * sem_res.adb: Add comments.
5243 * sem_util.adb: Minor reformatting. Add comments.
5244 Change increment on Actuals_In_Call table.
5245 * opt.ads: Minor: add 'constant'.
5247 2010-06-23 Javier Miranda <miranda@adacore.com>
5249 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5250 TSD to Null_Address if No_Dispatching_Calls is active.
5252 2010-06-23 Vincent Celier <celier@adacore.com>
5254 * a-comlin.ads: Indicate that use of this package is not supported
5255 during the elaboration of an auto-initialized Stand-Alone Library.
5257 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5259 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5260 alignment clause on a record type to determine if a component may be
5261 misaligned. The decision must be taken in the back-end where target
5262 alignment information is known.
5264 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5266 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
5267 systematically in CodePeer mode to simplify generated code.
5268 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
5269 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
5270 No_Task_Hierarchy is set instead of crasshing.
5272 2010-06-23 Thomas Quinot <quinot@adacore.com>
5274 * sem_util.adb: Minor code cleanup: test for proper entity instead of
5275 testing just Chars attribute when checking whether a given scope is
5277 * exp_ch4.adb, einfo.adb: Minor reformatting.
5279 2010-06-23 Vincent Celier <celier@adacore.com>
5282 * switch-m.adb (Normalize_Compiler_Switches): Take into account
5283 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
5284 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
5286 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5288 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
5289 operation with a universal real operand, and the right operand is a
5290 range with universal bounds, find unique fixed point that may be
5291 candidate, and warn appropriately.
5293 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5295 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5296 properly the rare cases where VMS operators are visible through
5297 Extend_System, but the default System is being used and Address is a
5299 * sem_util.adb: Widen predicate Is_VMS_Operator.
5301 2010-06-23 Vincent Celier <celier@adacore.com>
5303 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5306 2010-06-23 Olivier Hainque <hainque@adacore.com>
5308 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5309 Interface_Name as foreign. These are GCC builtin imports for
5310 which Ada specific processing doesn't apply.
5312 2010-06-23 Thomas Quinot <quinot@adacore.com>
5314 * sem_ch12.adb: Minor reformatting.
5316 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5318 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5319 determine whether an intrinsic subprogram is VMS specific.
5321 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5323 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5324 is present in the entity.
5326 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5328 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5329 Fix handling of parameters.
5330 Add protection against unexpected cases.
5331 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5332 access level, since "A" suffix is already used elsewhere. Similarly,
5333 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5336 2010-06-23 Thomas Quinot <quinot@adacore.com>
5338 * sem_util.adb, sem_util.ads: Minor reformatting.
5340 2010-06-23 Vincent Celier <celier@adacore.com>
5342 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5343 the previous behavior of gprclean when there are missing files.
5345 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5347 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5348 generic body is not a fatal error.
5349 (Mark_Context): Handle properly names of child units.
5350 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5353 2010-06-23 Vincent Celier <celier@adacore.com>
5355 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5358 2010-06-23 Bob Duff <duff@adacore.com>
5360 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5361 Memory_Space, because CPU_Time doesn't seem to provide any significant
5362 speed advantage in practice. Cleanup: Get rid of constant
5363 Default_Optimization; doesn't seem to add anything. Use case
5364 statements instead of if statements; seems cleaner.
5366 2010-06-23 Olivier Hainque <hainque@adacore.com>
5368 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5369 Wshadow instead of Wextra to guard warning on absence of internal
5370 builtin decl for an import. Fix use of quote in warning text.
5371 (intrin_arglists_compatible_p): Remove processing of integer trailing
5372 args on the Ada side. Fix use of literal > in warning text.
5373 (intrin_return_compatible_p): Never warn on "function imported as
5374 procedure". Defer the void/void case to the common type compatibility
5376 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5377 of GCC builtin imports.
5379 2010-06-23 Olivier Hainque <hainque@adacore.com>
5381 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5383 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5384 functions, helpers for ...
5385 (intrin_profiles_compatible_p): New function, replacement for ...
5386 (compatible_signatures_p): Removed.
5387 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5388 attempt to bind an unregistered builtin function. When we have
5389 one, use it and warn on profile incompatibilities.
5391 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5393 * gcc-interface/Make-lang.in: Update dependencies.
5395 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5397 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5398 for a coextension in an object declaration is a concatenation, treat
5399 coextension as dynamic.
5401 2010-06-23 Javier Miranda <miranda@adacore.com>
5403 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5404 internal entities are added to the scope of the tagged type.
5405 (Derive_Subprograms): Do not stop derivation when we find the first
5406 internal entity that has attribute Interface_Alias. After the change
5407 done to Override_Dispatching_Operations it is no longer true that
5408 these primirives are always located at the end of the list of
5410 * einfo.ads (Primitive_Operations): Add documentation.
5411 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5412 primitive a prefix indicating its corresponding tagged type.
5413 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5414 entity covers the primitive of an interface that is not an ancestor of
5415 this tagged type then the new primitive is added at the end of the list
5416 of primitives. Required to fulfill the C++ ABI.
5418 2010-06-23 Javier Miranda <miranda@adacore.com>
5420 * atree.ads (Set_Reporting_Proc): New subprogram.
5421 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5422 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5423 to routines of package Scil_ll by indirect call to the registered
5425 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5426 that is invoked when a node is allocated, replaced or rewritten.
5427 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5428 the SCIL node. Used as argument for Set_Reporting_Proc.
5429 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5430 is invoked by atree.
5432 2010-06-23 Thomas Quinot <quinot@adacore.com>
5434 * sem_ch3.ads: Minor reformatting.
5436 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5438 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5439 always analyze the generic body and instance, because it may be needed
5441 (Mark_Context): Prepend the with clauses for needed generic units, so
5442 they appear in a better order for CodePeer.
5443 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
5445 2010-06-23 Emmanuel Briot <briot@adacore.com>
5447 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5449 2010-06-23 Robert Dewar <dewar@adacore.com>
5451 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5453 2010-06-23 Thomas Quinot <quinot@adacore.com>
5455 * a-tags.ads: Fix description of TSD structure.
5457 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5459 * sem_ch12.adb (Mark_Context): When indicating that the body of a
5460 generic unit is needed prior to the unit containing an instantiation,
5461 search recursively the context of the generic to add other generic
5462 bodies that may be instantiated indirectly through the current instance.
5464 2010-06-23 Robert Dewar <dewar@adacore.com>
5466 * freeze.adb: Minor reformatting.
5468 2010-06-23 Bob Duff <duff@adacore.com>
5470 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5472 2010-06-23 Vincent Celier <celier@adacore.com>
5474 * make.adb (Compile_Sources): Complete previous change.
5476 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5478 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5479 Constrained extra formal.
5481 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5483 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
5484 Initialize_Scalars are enabled, compile the generated equality function
5485 for a composite type with full checks enabled, so that validity checks
5486 are performed on individual components.
5488 2010-06-23 Emmanuel Briot <briot@adacore.com>
5490 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5491 Missing_Source_Files.
5493 2010-06-23 Robert Dewar <dewar@adacore.com>
5495 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5497 2010-06-23 Jose Ruiz <ruiz@adacore.com>
5499 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
5500 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
5501 Clock (without delays) use a run time which is properly initialized.
5503 2010-06-23 Vincent Celier <celier@adacore.com>
5505 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
5506 when -f -u and a main is specified on the command line. However,
5507 attempt to compile even when the ALI file is read-only when
5508 Must_Compile is True.
5510 2010-06-23 Thomas Quinot <quinot@adacore.com>
5512 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
5514 2010-06-23 Javier Miranda <miranda@adacore.com>
5516 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
5517 entities for parent types that are interfaces. Needed in generics to
5518 handle formals that implement interfaces.
5519 (Derive_Subprograms): Add assertion for derivation of tagged types that
5520 do not cover interfaces. For generics, complete code that handles
5521 derivation of type that covers interfaces because the previous
5522 condition was weak (it required only name consistency; arguments were
5523 not checked). Add new code to locate primitives covering interfaces
5524 defined in generic units or instantiatons.
5525 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
5526 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
5527 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
5528 interfaces that are parents of the type because they share the primary
5530 (Register_Primitive): Do not register primitives of interfaces that
5531 are parents of the type.
5532 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
5533 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
5534 primitives skip primitives of interfaces that are parents of the type.
5536 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5538 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
5539 attribute cannot be constant-folded if an index type is a formal type,
5540 or is derived from one.
5541 * checks.adb (Determine_Range): ditto.
5543 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5545 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
5547 2010-06-23 Bob Duff <duff@adacore.com>
5549 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
5550 (Insert): Disallow nul characters.
5551 (misc output routines): Assert no nul characters.
5553 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5555 * exp_ch4.adb: Use predefined unsigned type in all cases.
5557 2010-06-23 Bob Duff <duff@adacore.com>
5559 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
5560 * g-pehage.ads: Minor comment fixes.
5561 * g-pehage.adb: Minor: Add some additional debugging printouts under
5564 2010-06-23 Robert Dewar <dewar@adacore.com>
5566 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
5567 (Worse_Choice): Always prefer Pure/Preelab.
5569 2010-06-23 Vincent Celier <celier@adacore.com>
5571 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
5573 2010-06-23 Robert Dewar <dewar@adacore.com>
5575 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
5576 checking returns in generic case.
5577 (Check_Missing_Return): New procedure.
5579 2010-06-23 Robert Dewar <dewar@adacore.com>
5581 * bindgen.adb, switch-b.adb: Minor reformatting.
5583 2010-06-23 Javier Miranda <miranda@adacore.com>
5585 * frontend.adb (Frontend): Add call to initialize the new package
5587 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
5589 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
5590 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
5592 * exp_util.adb (Insert_Actions): Remove code for
5593 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5594 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
5595 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
5596 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
5597 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
5598 * sinfo.ads (SCIL_Related_Node): Field removed.
5599 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
5600 (N_SCIL_Tag_Init): Node removed.
5601 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
5602 (Check_SCIL_Node): New implementation.
5603 (Find_SCIL_Node): Removed.
5604 * sem.adb (Analyze): Remove management of
5605 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5606 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
5608 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
5609 Set_SCIL_Related_Node and avoid adding the SCIL node before the
5610 referenced node using Insert_Action because this is not longer
5612 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
5613 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
5614 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
5616 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
5617 because we no longer require to generate the SCIL node before the call.
5618 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
5619 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
5620 nodes before the referenced node using Insert_Action because this
5621 is not longer required.
5622 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
5623 update the SCIL_Node field.
5624 * sprint.adb (Sprint_Node_Actual): Remove code for
5625 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5626 * treepr.adb (Print_Node): Print the SCIL node field (if available).
5627 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
5628 SCIL_Tag_Init nodes.
5629 * scil_ll.ads, scil_ll.adb: New files.
5630 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
5633 2010-06-23 Robert Dewar <dewar@adacore.com>
5635 * sem_ch6.adb: Minor reformatting.
5637 2010-06-23 Doug Rupp <rupp@adacore.com>
5639 * bindusg.adb (Display): Write -Hnn line.
5640 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
5642 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
5643 valid values to 32 and 64.
5644 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
5645 ENABLE, DISABLE as valid settings.
5646 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
5647 * opt.ads (Heap_Size): New global variable.
5648 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
5649 TARGET_MALLOC64 check. Fix comment.
5651 2010-06-23 Robert Dewar <dewar@adacore.com>
5653 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
5654 reformatting. Add comments.
5655 * errout.adb (Finalize): Properly adjust warning count when deleting
5658 2010-06-22 Robert Dewar <dewar@adacore.com>
5660 * errout.adb (Finalize): Set Prev pointers.
5661 (Finalize): Delete continuations for deletion by warnings off(str).
5662 * erroutc.ads: Add Prev pointer to error message structure.
5664 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5666 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
5667 child unit, examine context of parent units to locate instantiated
5668 generics whose bodies may be needed.
5669 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
5670 with_clause for the instantiated generic, examine the context of its
5671 parents, to set Withed_Body flag, so that it can be visited earlier.
5672 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
5673 an unsigned type, use a type of the proper size for the intermediate
5674 value, to prevent alignment problems on unchecked conversion.
5676 2010-06-22 Geert Bosch <bosch@adacore.com>
5678 * s-rannum.ads Change Generator type to be self-referential to allow
5679 Random to update its argument. Use "in" mode for the generator in the
5680 Reset procedures to allow them to be called from the Ada.Numerics
5681 packages without tricks.
5682 * s-rannum.adb: Use the self-referencing argument to get write access
5683 to the internal state of the random generator.
5684 * a-nudira.ads: Make Generator a derived type of
5685 System.Random_Numbers.Generator.
5686 * a-nudira.adb: Remove use of 'Unrestricted_Access.
5687 Put subprograms in alpha order and add headers.
5688 * g-mbdira.ads: Change Generator type to be self-referential.
5689 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
5691 2010-06-22 Robert Dewar <dewar@adacore.com>
5693 * freeze.adb: Minor reformatting
5694 Minor code reorganization (use Nkind_In and Ekind_In).
5696 2010-06-22 Bob Duff <duff@adacore.com>
5698 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
5699 -gnatc when a file is compiled that we cannot generate code for, not
5700 helpful and confusing.
5702 2010-06-22 Vincent Celier <celier@adacore.com>
5704 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
5707 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5709 * s-rannum.adb: Replace constants with commented symbols.
5710 * s-rannum.ads: Explain significance of the initial value of the data
5713 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5715 * a-ngcoty.adb: Clarify comment.
5717 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5719 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
5720 expansion for indexing packed arrays with small power-of-2 component
5721 sizes when the target is AAMP.
5722 (Expand_Packed_Element_Reference): Return without expansion for
5723 indexing packed arrays with small power-of-2 component sizes when the
5726 2010-06-22 Geert Bosch <bosch@adacore.com>
5728 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
5731 2010-06-22 Robert Dewar <dewar@adacore.com>
5733 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
5736 2010-06-22 Doug Rupp <rupp@adacore.com>
5738 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
5740 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
5741 (pragma Ident): Add a default ident string in the private part.
5743 2010-06-22 Robert Dewar <dewar@adacore.com>
5745 * cstand.adb: Minor reformatting.
5747 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5749 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
5750 recognize the Shift and Rotation intrinsics that are known to the
5751 compiler but have no interface name.
5753 2010-06-22 Geert Bosch <bosch@adacore.com>
5755 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
5756 scaling in case of overflow or NaN results.
5758 2010-06-22 Robert Dewar <dewar@adacore.com>
5760 * cstand.adb: Complete previous change.
5761 * g-dirope.ads: Add comment.
5762 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
5764 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5766 * cstand.adb: Add tree nodes for pragma Pack on string types.
5768 2010-06-22 Javier Miranda <miranda@adacore.com>
5770 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
5771 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
5772 formal of a primitive.
5773 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
5774 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
5775 formal of a primitive.
5776 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
5777 to obtain the last formal of a primitive.
5779 2010-06-22 Geert Bosch <bosch@adacore.com>
5781 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
5782 depending on __EMX__ or MSDOS being defined.
5783 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
5784 * a-excpol-abort.adb: Update comment indicating users of the file.
5785 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
5787 * env.c: Remove empty conditional for MSDOS.
5788 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
5791 2010-06-22 Robert Dewar <dewar@adacore.com>
5793 * s-rannum.adb: Minor reformatting.
5795 2010-06-22 Javier Miranda <miranda@adacore.com>
5797 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
5798 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
5799 package Sem_Util to package Sem_Aux.
5801 2010-06-22 Javier Miranda <miranda@adacore.com>
5803 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
5804 remove useless restriction on imported routines when building the
5807 2010-06-22 Robert Dewar <dewar@adacore.com>
5809 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
5812 2010-06-22 Javier Miranda <miranda@adacore.com>
5814 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
5815 generic subprogram declarations to ensure proper context. Add missing
5816 support for generic actuals.
5817 (Try_Primitive_Operation): Add missing support for concurrent types
5818 that have no Corresponding_Record_Type. Required to diagnose errors
5820 generics or when compiling with no code generation (-gnatc).
5821 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
5822 the corresponding record type.
5823 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
5824 documentation. Do minimum decoration when processing a primitive of a
5825 concurrent tagged type that covers interfaces. Required to diagnose
5826 errors in the Object.Operation notation compiling generics or under
5828 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
5829 propagation of attribute Interface_List to the corresponding record.
5830 (Expand_N_Task_Type_Declaration): Code cleanup.
5831 (Expand_N_Protected_Type_Declaration): Code cleanup.
5833 2010-06-22 Matthew Heaney <heaney@adacore.com>
5835 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
5837 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5839 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
5840 that is able to produce all representable floating-point numbers in the
5841 unit interval. Remove template parameter Shift_Right, no longer used.
5842 * gnat_rm.texi: Document the period of the pseudo-random number
5843 generator under the description of its algorithm.
5844 * gcc-interface/Make-lang.in: Update dependencies.
5846 2010-06-22 Thomas Quinot <quinot@adacore.com>
5848 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
5849 reference to discriminant (can be an expanded name as well as an
5852 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5854 * exp_ch6.adb: Clarify comment.
5856 2010-06-22 Geert Bosch <bosch@adacore.com>
5858 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
5859 with decimal small as decimal types, avoiding FP arithmetic.
5860 (Has_Decimal_Small): New function.
5861 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
5863 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
5864 callers to call the new function in Einfo that takes the entity as
5867 2010-06-22 Robert Dewar <dewar@adacore.com>
5869 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
5871 2010-06-22 Thomas Quinot <quinot@adacore.com>
5873 * sem_elab.adb: Minor reformatting.
5875 2010-06-22 Vincent Celier <celier@adacore.com>
5877 * gnatsym.adb: Put the object files in the table in increasing
5878 aphabetical order of base names.
5880 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5882 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
5883 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
5884 the corresponding discriminal within a record declaration.
5886 2010-06-22 Thomas Quinot <quinot@adacore.com>
5888 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
5889 expression referring to a discriminal of the type of the aggregate (not
5890 a discriminal of some other unrelated type), and the prefix in the
5891 generated selected component must come from Lhs, not Obj.
5893 2010-06-22 Thomas Quinot <quinot@adacore.com>
5895 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
5896 when to freeze the parent type.
5898 2010-06-22 Robert Dewar <dewar@adacore.com>
5900 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
5901 exp_aggr.adb: Minor reformatting.
5902 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
5903 GNAT.MBSS_Float_Random.
5904 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
5906 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5908 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
5909 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
5910 (Random_Float_Template, Random): New method of creating
5911 uniform floating-point variables that allow the creation of all machine
5914 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
5916 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5918 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
5919 to abstract targets to check that the type is tagged and comes from
5920 source, rather than only testing for targets of interface types. Remove
5923 2010-06-22 Vincent Celier <celier@adacore.com>
5925 * vms_data.ads: Modify the declarations of qualifiers
5926 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
5929 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5931 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
5932 expansion is disabled.
5934 2010-06-22 Robert Dewar <dewar@adacore.com>
5936 * makeusg.adb: Minor reformatting.
5938 2010-06-22 Robert Dewar <dewar@adacore.com>
5940 * types.ads: (Dint): Removed, no longer used anywhere.
5941 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
5942 (UI_Mul): Avoid use of UI_From_Dint.
5943 (UI_From_Dint): Removed, not used.
5944 * uintp.ads (UI_From_Dint): Removed, not used.
5945 (Uint_Min/Max_Simple_Mul): New constants.
5947 2010-06-22 Vincent Celier <celier@adacore.com>
5949 * clean.adb (Parse_Cmd_Line): Recognize switch
5950 --unchecked-shared-lib-imports.
5951 (Usage): Add line for switch --unchecked-shared-lib-imports
5952 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
5953 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
5954 moved from GPR_Util.
5955 * switch-m.adb (Scan_Make_Switches): Recognize switch
5956 --unchecked-shared-lib-imports.
5957 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
5958 * gnat_ugn.texi: Add documentation for new switch
5959 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
5961 2010-06-22 Javier Miranda <miranda@adacore.com>
5963 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
5964 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
5965 this patch replaces duplication of code that traverses the chain of
5966 aliased primitives by a call to routine Ultimate_Alias that
5967 provides this functionality.
5969 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5971 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
5972 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
5975 2010-06-22 Thomas Quinot <quinot@adacore.com>
5977 * einfo.ads: Minor reformatting.
5979 2010-06-22 Javier Miranda <miranda@adacore.com>
5981 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
5982 eliminated primitives.
5983 (Make_DT): Avoid referencing eliminated primitives.
5984 (Register_Primitive): Do not register eliminated primitives in the
5985 dispatch table. Required to add this functionality when the program is
5986 compiled without static dispatch tables (-gnatd.t)
5988 2010-06-22 Emmanuel Briot <briot@adacore.com>
5990 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
5991 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
5992 warnings on use of internal GNAT units.
5994 2010-06-22 Jose Ruiz <ruiz@adacore.com>
5996 * s-taprop-vxworks.adb (Set_Priority): Update comments.
5998 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6000 * s-rannum.adb: Make stylistic change to remove mystery constant in
6001 Extract_Value. Image_Numeral_Length: new symbolic constant.
6003 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6005 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
6006 Is_Synchronized_Interface, Is_Task_Interface into computable
6007 predicates, to free three flags in entity nodes.
6008 * sem_ch3.adb: Remove setting of these flags.
6010 2010-06-22 Robert Dewar <dewar@adacore.com>
6012 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
6014 * s-taprop-vxworks.adb: Add comment for Set_Priority.
6015 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
6016 * projects.texi: Move @cindex to the left margin, since otherwise we
6017 are missing entries in the index.
6019 2010-06-22 Emmanuel Briot <briot@adacore.com>
6021 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
6022 packages from the GNAT hierarchy instead of System when possible.
6023 * gcc-interface/Make-lang.in: Update dependencies.
6025 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6027 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
6028 previously in place to reorder the ready queue when a task drops its
6029 priority due to the loss of inherited priority.
6031 2010-06-22 Vincent Celier <celier@adacore.com>
6033 * projects.texi: Minor spelling error fixes.
6036 2010-06-22 Emmanuel Briot <briot@adacore.com>
6038 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
6039 warnings for some with clauses.
6041 2010-06-22 Robert Dewar <dewar@adacore.com>
6043 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
6044 test to catch more cases where first subtype is the results we want.
6045 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
6046 error case, since Errout will now handle this correctly.
6047 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
6048 Update dependencies.
6050 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6052 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
6053 when calling Make_Temporary.
6055 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6057 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
6058 subprogram can be associated with an entry body.
6060 2010-06-22 Robert Dewar <dewar@adacore.com>
6062 * scos.ads: Add note on membership test handling.
6064 2010-06-22 Vincent Celier <celier@adacore.com>
6066 * projects.texi: Minor spelling fixes.
6069 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6071 * s-rannum.adb: Correct off-by-one error in Extract_Value.
6073 2010-06-22 Vincent Celier <celier@adacore.com>
6075 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6077 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6078 gcc command if it is too long.
6080 2010-06-22 Robert Dewar <dewar@adacore.com>
6082 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6084 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6086 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6087 calling Make_Temporary.
6089 2010-06-22 Robert Dewar <dewar@adacore.com>
6091 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6093 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6095 * sem_res.adb: Additional special-case for VMS.
6097 2010-06-22 Vincent Celier <celier@adacore.com>
6099 * gnatsym.adb: Minor comment fix.
6101 2010-06-22 Vincent Celier <celier@adacore.com>
6103 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6105 2010-06-22 Robert Dewar <dewar@adacore.com>
6107 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6108 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6109 Ada 95 mode as an implementation defined attribute.
6111 2010-06-22 Vincent Celier <celier@adacore.com>
6113 * bindusg.adb (Display): Update line for -R
6114 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6115 generated files when -R is used.
6117 2010-06-22 Vincent Celier <celier@adacore.com>
6119 * prj-nmsc.adb (Lib_Data_Table): New table.
6120 (Check_Library_Attributes): Check if the same library name is used in
6121 two different projects that do not extend each other.
6123 2010-06-22 Robert Dewar <dewar@adacore.com>
6125 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6127 2010-06-22 Vincent Celier <celier@adacore.com>
6129 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6130 empty, make it the current working directory.
6132 2010-06-22 Thomas Quinot <quinot@adacore.com>
6134 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6135 private type with discriminants, make sure the parent type is frozen.
6137 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6139 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6140 with packed array references specially.
6141 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6142 to a component of a bit packed array if it is the prefix of 'Bit.
6143 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6144 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
6145 'Bit reference, where the prefix involves a packed array reference.
6146 (Get_Base_And_Bit_Offset): New helper, extracted from...
6147 (Expand_Packed_Address_Reference): ...here. Call above procedure to
6148 get the outer object and offset expression.
6150 2010-06-22 Thomas Quinot <quinot@adacore.com>
6152 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6153 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6156 2010-06-22 Javier Miranda <miranda@adacore.com>
6158 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6159 reorganization to properly check if the operation has been inherited as
6160 an abstract operation.
6162 2010-06-22 Ed Falis <falis@adacore.com>
6164 * s-osinte-vxworks.ads: Complete previous change.
6166 2010-06-22 Thomas Quinot <quinot@adacore.com>
6168 * sem_res.adb: Add comment.
6169 * projects.texi, gnat_ugn.texi: Remove macro.
6171 2010-06-22 Vincent Celier <celier@adacore.com>
6173 * prj-attr.adb: Remove project level attribute Main_Language.
6175 2010-06-22 Robert Dewar <dewar@adacore.com>
6177 * switch-b.adb, osint-b.adb: Minor reformatting.
6179 2010-06-22 Pascal Obry <obry@adacore.com>
6181 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6182 vector if previous send was not fully successful. If only part of
6183 the vector data was sent, we exit the loop.
6185 2010-06-22 Thomas Quinot <quinot@adacore.com>
6187 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6188 error reporting with generic types.
6190 2010-06-22 Thomas Quinot <quinot@adacore.com>
6192 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6193 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6194 vms_data.ads: Add a new command line switch -A to gnatbind to output
6195 the list of all ALI files for the partition.
6197 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6199 * s-osinte-vxworks.ads: Fix casing.
6200 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6201 change: Interfaces.C does not provide a long_long type.
6203 2010-06-22 Emmanuel Briot <briot@adacore.com>
6205 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6206 native user's guide, since this document contains the two versions.
6207 * gcc-interface/Make-lang.in: Update doc dependencies.
6209 2010-06-22 Robert Dewar <dewar@adacore.com>
6211 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6213 2010-06-22 Emmanuel Briot <briot@adacore.com>
6215 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6216 not build this file on its own (only through gnat_ugn.texi).
6217 Remove macro definitions and insert simpler version in gnat_ugn.texi.
6219 2010-06-22 Robert Dewar <dewar@adacore.com>
6221 * ali-util.ads: Minor comment update.
6222 * g-socthi-mingw.adb: Minor reformatting.
6224 2010-06-22 Ed Falis <falis@adacore.com>
6226 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6227 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6228 for specific versions of VxWorks.
6230 2010-06-22 Emmanuel Briot <briot@adacore.com>
6232 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6233 related sections from user's guide and reference manual, since they
6234 have now been merged together into a separate document (projects.texi).
6235 This removes a lot of duplication where attributes where described
6237 The grammar for the project files is now in each of the sections
6238 (packages,expressions,...) instead of being duplicates in two other
6239 sections (one in the user's guide that contained the full grammar,
6240 and various sections in the rm that contained extracts of the same
6242 Added the full list of all supported attributes, since existing lists
6244 Rename "associative array" into "indexed attribute"
6245 Remove sections that were duplicates ("External References in
6246 Project Files" and "External Values", and "Project Extensions"
6247 for instance). The list of valid packages in project files is now in
6250 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6252 * sem_ch3.adb (Add_Internal_Interface_Entities): If
6253 Find_Primitive_Covering_Interface does not find the operation, it may
6254 be because of a name conflict between the inherited operation and a
6255 local non-overloadable name. In that case look for the operation among
6256 the primitive operations of the type. This search must succeed
6257 regardless of visibility.
6259 2010-06-22 Pascal Obry <obry@adacore.com>
6261 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6262 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6265 2010-06-22 Robert Dewar <dewar@adacore.com>
6267 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6269 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6272 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6274 * s-intman-vxworks.ads: Code clean up.
6276 2010-06-22 Thomas Quinot <quinot@adacore.com>
6278 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
6279 dereference, construct actual subtype of designated object to generate
6280 proper bounds checks.
6282 2010-06-22 Thomas Quinot <quinot@adacore.com>
6284 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6285 Read_Withed_ALIs, which is more descriptive.
6287 2010-06-22 Pascal Obry <obry@adacore.com>
6289 * g-sothco.ads: Minor reformatting.
6290 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
6291 C_Sendmsg implementation.
6292 (C_Sendmsg): Do not use lock (not needed).
6293 (C_Recvmsg): Likewise and also do not wait for incoming data.
6295 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6297 * uintp.adb: Fix scope error in operator call.
6299 2010-06-22 Vincent Celier <celier@adacore.com>
6301 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6302 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6303 autoconfiguration is needed, fail indicating that no config project
6304 file can be found, as there is no autoconfiguration on VMS.
6306 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6308 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6309 for an operator in a functional notation, when operands are universal.
6311 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6313 * gcc-interface/Make-lang.in: Update dependencies.
6315 2010-06-22 Robert Dewar <dewar@adacore.com>
6317 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6319 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6320 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6322 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6325 2010-06-22 Vincent Celier <celier@adacore.com>
6327 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6328 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6330 2010-06-22 Pascal Obry <obry@adacore.com>
6332 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6334 (C_Recvmsg): Make sure the routine is atomic. Also fully
6335 fill vectors in the proper order.
6336 (C_Sendmsg): Make sure the routine is atomic.
6338 2010-06-22 Robert Dewar <dewar@adacore.com>
6340 * sem_ch8.adb: Update comment.
6341 * sem_res.adb: Minor code reorganization (use Ekind_In).
6343 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6345 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6346 name is a call, use the number of actuals to determine whether this is
6347 a binary or unary operator, rather than relying on later information
6348 to resolve the overload.
6350 2010-06-22 Robert Dewar <dewar@adacore.com>
6352 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6354 2010-06-22 Robert Dewar <dewar@adacore.com>
6356 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6357 * sem_eval.adb: Minor reformatting.
6359 2010-06-22 Vincent Celier <celier@adacore.com>
6361 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6362 to gnatlink, except on Open VMS.
6363 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6364 object directories if -nostdlib is used.
6366 2010-06-22 Robert Dewar <dewar@adacore.com>
6368 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6369 * sem_eval.adb: Minor reformatting.
6371 2010-06-22 Robert Dewar <dewar@adacore.com>
6373 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6374 * exp_aggr.adb: Minor comment changes and reformatting.
6375 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6377 * sem_util.ads: Add some missing pragma Inline's.
6379 2010-06-22 Thomas Quinot <quinot@adacore.com>
6381 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6382 Related_Expression attribute of the constructed subtype.
6383 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6384 Node24 on types for...
6385 (Related_Expression): Make attribute available on types as well.
6387 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6389 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6390 of Directly_Designated_Type when the type argument is an access type.
6391 (Find_Interface_Tag): Retrieve Designated_Type instead of
6392 Directly_Designated_Type when the type argument is an access type.
6393 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6394 Directly_Designated_Type of each access discriminant.
6395 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6396 instead of Directly_Designated_Type when the operand and target types
6399 2010-06-22 Thomas Quinot <quinot@adacore.com>
6401 * exp_aggr.adb (Flatten): Return False if one choice is statically
6402 known to be out of bounds.
6404 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6406 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6407 a parameterless function call, preserve parentheses of original
6408 expression, for proper handling by pretty printer.
6409 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6410 procedure, to handle quietly identifiers that have no entity names.
6411 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6412 elsif_part is missing, it has been rewritten as a nested if, and there
6413 is no useful information on the current value of the variable.
6415 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6417 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6418 discriminals to the current scope.
6419 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6420 scope, which could overwrite a different already set value.
6422 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6424 * sem_res.adb (Valid_Conversion): If expression is a predefined
6425 operator, use sloc of type of interpretation to improve error message
6426 when operand is of some derived type.
6427 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6429 2010-06-22 Emmanuel Briot <briot@adacore.com>
6431 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6432 that it can set out parameters as well. When a process has died, reset
6433 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6434 can find out which process has died.
6436 2010-06-22 Thomas Quinot <quinot@adacore.com>
6438 * sem_eval.adb (Find_Universal_Operator_Type): New
6439 subprogram to identify the operand type of an operator on universal
6440 operands, when an explicit scope indication is present. Diagnose the
6441 case where such a call is ambiguous.
6442 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
6443 Use the above to identify the operand type so it can be properly
6445 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
6446 type, done in an arbitrary, possibly incorrect type (the presence of
6447 some numeric type in the scope is checked for legality, but when more
6448 than one such type is in the scope, we just pick a random one, not
6449 necessarily the expected one).
6450 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
6453 2010-06-22 Robert Dewar <dewar@adacore.com>
6455 * sem_eval.adb: Minor reformatting.
6457 2010-06-22 Robert Dewar <dewar@adacore.com>
6459 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6460 Expression_With_Actions to clean up the code generated when folding
6461 constant expressions.
6463 2010-06-22 Vincent Celier <celier@adacore.com>
6465 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6468 2010-06-22 Vincent Celier <celier@adacore.com>
6470 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
6471 found, check if it's path has aready been found, whatever its index.
6473 2010-06-22 Robert Dewar <dewar@adacore.com>
6475 * atree.adb, gnatbind.adb: Minor reformatting.
6476 Minor code reorganization.
6478 2010-06-21 Robert Dewar <dewar@adacore.com>
6480 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6481 known at compile time.
6483 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6485 * atree.adb: Fix comment typo.
6487 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6489 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
6490 whether a universal arithmetic expression in a conversion, which is
6491 rewritten from a function call with an expanded name, is ambiguous.
6493 2010-06-21 Vincent Celier <celier@adacore.com>
6495 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
6496 source files in specified list of sources.
6497 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
6499 (Add_Source): Set the Location of the new source
6500 (Process_Exceptions_File_Based): Call Add_Source with the Location
6501 (Get_Sources_From_File): If an exception is found, set its Listed to
6503 (Find_Sources): When Source_Files is specified, if an exception is
6504 found, set its Listed to True. Remove any exception that is not in a
6505 specified list of sources.
6506 * prj.ads (Source_Data): New component Location
6508 2010-06-21 Vincent Celier <celier@adacore.com>
6510 * gnatbind.adb (Closure_Sources): Global table, moved from block.
6512 2010-06-21 Thomas Quinot <quinot@adacore.com>
6514 * sem_res.adb: Minor reformatting.
6515 * atree.adb: New debugging hook "rr" for node rewrites.
6517 2010-06-21 Robert Dewar <dewar@adacore.com>
6519 * g-expect.ads, g-expect.adb: Minor reformatting.
6521 2010-06-21 Emmanuel Briot <briot@adacore.com>
6523 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
6525 2010-06-21 Arnaud Charlet <charlet@adacore.com>
6527 * gcc-interface/Make-lang.in: Update dependencies.
6529 2010-06-21 Thomas Quinot <quinot@adacore.com>
6531 * bindgen.ads: Update comments.
6533 2010-06-21 Vincent Celier <celier@adacore.com>
6535 * gnatbind.adb: Suppress dupicates when listing the sources in the
6536 closure (switch -R).
6538 2010-06-21 Emmanuel Briot <briot@adacore.com>
6540 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
6543 2010-06-21 Emmanuel Briot <briot@adacore.com>
6545 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
6547 (Expect_Internal): No longer raises an exception, so that it can set
6548 out parameters as well. When a process has died, reset its Input_Fd
6549 to Invalid_Fd, so that when using multiple processes we can find out
6550 which process has died.
6552 2010-06-21 Robert Dewar <dewar@adacore.com>
6554 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
6555 checks.adb, sem_res.adb: Minor reformatting. Add comments.
6557 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6559 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
6560 rederivation associated with a full declaration in a private part, and
6561 there is a partial view that derives the same parent subprogram, the
6562 new entity does not become visible. This check must be applied to
6563 interface operations as well.
6565 2010-06-21 Thomas Quinot <quinot@adacore.com>
6567 * checks.adb: Add comments.
6568 * prj-nmsc.adb: Minor reformatting.
6570 2010-06-21 Thomas Quinot <quinot@adacore.com>
6572 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
6573 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
6574 extract bounds, to ensure that we get the proper captured values,
6575 rather than an expression that may have changed value since the point
6576 where the subtype was elaborated.
6577 (Find_Body_Discriminal): New utility subprogram to share code
6579 (Eval_Attribute): For the case of a subtype bound that references a
6580 discriminant of the current concurrent type, insert appropriate
6581 discriminal reference.
6582 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
6583 requeue to an entry in a family in the current task, use corresponding
6585 (Analyze_Accept_Statement): Rely on expansion of attribute references
6586 to insert proper discriminal references in range check for entry in
6589 2010-06-21 Emmanuel Briot <briot@adacore.com>
6591 * s-regpat.adb (Compile): Fix handling of big patterns.
6593 2010-06-21 Robert Dewar <dewar@adacore.com>
6595 * a-tifiio.adb: Minor reformatting.
6597 2010-06-21 Pascal Obry <obry@adacore.com>
6599 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
6602 2010-06-21 Javier Miranda <miranda@adacore.com>
6604 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
6607 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6609 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
6610 to hold the result, indicate that the target of the declaration does
6611 not need an initialization, to prevent spurious errors when
6612 Initialize_Scalars is enabled.
6614 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6616 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
6617 Fore is not bound by line length. The Fore parameter of the internal
6618 procedure that performs the operation is an integer.
6620 2010-06-21 Thomas Quinot <quinot@adacore.com>
6622 * sem_res.adb, checks.adb: Minor reformatting.
6624 2010-06-21 Emmanuel Briot <briot@adacore.com>
6626 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
6628 (Insert_Operator_Before): New subprogram, avoids duplicated code
6629 (Compile): Avoid doing two compilations when the pattern matcher ends
6632 2010-06-21 Emmanuel Briot <briot@adacore.com>
6634 * s-regpat.adb: Improve debug traces
6635 (Dump): Change output format to keep it smaller.
6637 2010-06-21 Javier Miranda <miranda@adacore.com>
6639 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
6640 output to the output file when this routine completes its work.
6642 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
6644 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
6645 for loop. Call build_constructor_from_list directly in the CICO case.
6647 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6649 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
6650 declaration appears in the same unit and ealier than the renamed
6651 entity, retain generated body to prevent order-of-elaboration issues in
6654 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6656 * s-tpoben.adb: Update comments.
6658 2010-06-18 Robert Dewar <dewar@adacore.com>
6660 * debug.adb: Minor comment change.
6662 2010-06-18 Javier Miranda <miranda@adacore.com>
6664 * exp_cg.adb: Code clean up.
6665 * debug.adb: Complete documentation of switch -gnatd.Z.
6666 * gcc-interface/misc.c (callgraph_info_file): Declare.
6668 2010-06-18 Javier Miranda <miranda@adacore.com>
6670 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
6672 2010-06-18 Thomas Quinot <quinot@adacore.com>
6674 * sprint.ads: Minor reformatting.
6675 * output.ads: Update obsolete comment.
6677 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6679 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
6680 an external intrinsic operation (e.g. a GCC numeric function) indicate
6681 that the renaming entity has the same characteristics, so a call to it
6682 is properly expanded.
6684 2010-06-18 Javier Miranda <miranda@adacore.com>
6686 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
6687 support for dispatch table/callgraph info generation.
6688 * gcc-interface/Make-lang.in: Update dependencies.
6690 2010-06-18 Robert Dewar <dewar@adacore.com>
6692 * exp_ch6.adb: Minor reformatting.
6693 * gnatname.adb: Add comment.
6695 2010-06-18 Vincent Celier <celier@adacore.com>
6697 * gnatname.adb (Scan_Args): When --and is used, make sure that the
6698 dynamic tables in the newly allocated Argument_Data are properly
6701 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6703 * gnat1drv.adb: Fix comment.
6705 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6707 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
6708 renaming, re-expand the call with the renamed subprogram if that one
6709 is marked inlined as well.
6711 2010-06-18 Gary Dismukes <dismukes@adacore.com>
6713 * gnat1drv.adb (Adjust_Global_Switches): Enable
6714 Use_Expression_With_Actions for AAMP and VM targets.
6716 2010-06-18 Vincent Celier <celier@adacore.com>
6718 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
6720 2010-06-18 Thomas Quinot <quinot@adacore.com>
6722 * exp_ch4.adb: Minor reformatting.
6724 2010-06-18 Javier Miranda <miranda@adacore.com>
6726 * debug.ads Add documentation on -gnatd.Z.
6728 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6730 * sem_elim.adb: Proper error message on improperly eliminated instances
6732 2010-06-18 Vincent Celier <celier@adacore.com>
6734 * prj.ads (Response_File_Format): New value GCC.
6736 2010-06-18 Thomas Quinot <quinot@adacore.com>
6738 * gnat1drv.adb: Minor reformatting.
6740 2010-06-18 Robert Dewar <dewar@adacore.com>
6742 * make.adb, sem_cat.adb: Minor reformatting.
6743 * sem_eval.adb: Fix typos.
6745 2010-06-18 Pascal Obry <obry@adacore.com>
6747 * prj-nmsc.adb: Fix source filenames casing in debug output.
6749 2010-06-18 Robert Dewar <dewar@adacore.com>
6751 * gnatcmd.adb: Minor reformatting.
6753 2010-06-18 Robert Dewar <dewar@adacore.com>
6755 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
6756 condition and both sub-expressions are static (and result is selected
6759 2010-06-18 Robert Dewar <dewar@adacore.com>
6761 * g-pehage.adb: Minor reformatting
6763 2010-06-18 Pascal Obry <obry@adacore.com>
6765 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
6768 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6770 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6771 dependencies. Fix target pairs on darwin.
6772 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
6774 2010-06-18 Pascal Obry <obry@adacore.com>
6776 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
6778 2010-06-18 Vincent Celier <celier@adacore.com>
6780 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
6781 configuration pragmas file and, if -U is not used, for a local one.
6783 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6785 * sem_elim.adb (Check_Eliminated): Use full information on entity name
6786 when it is given in the pragma by a selected component.
6787 (Check_For_Eliminated_Subprogram): Do no emit error if within a
6788 instance body that is itself within a generic unit.
6789 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
6790 eliminated, mark as well the anonymous subprogram that is its alias
6791 and appears within the wrapper package.
6793 2010-06-18 Bob Duff <duff@adacore.com>
6795 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
6796 Raise an exception if the output file cannot be opened. Add comments.
6798 2010-06-18 Thomas Quinot <quinot@adacore.com>
6800 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
6801 not illegal per E.2.2(7) if it occurs in the private part of a
6804 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6806 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
6807 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
6808 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
6809 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
6810 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
6811 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
6812 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
6813 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
6814 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
6815 errout.ads: Update comments. Minor reformatting.
6817 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
6818 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
6819 a-strunb.adb (Big_String. Big_String_Access): New type.
6821 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
6822 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
6823 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
6825 2010-06-18 Geert Bosch <bosch@adacore.com>
6827 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
6830 2010-06-18 Robert Dewar <dewar@adacore.com>
6832 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
6835 2010-06-18 Robert Dewar <dewar@adacore.com>
6837 * sprint.adb: Minor format change for N_Expression_With_Actions.
6838 * repinfo.adb: Minor reformatting.
6840 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6842 * sem_elim.adb (Check_Eliminated): If within a subunit, use
6843 Defining_Entity to obtain the name of the entity in the proper body, to
6844 properly handle both separate packages and subprograms.
6846 2010-06-18 Emmanuel Briot <briot@adacore.com>
6848 * prj-nmsc.adb (Check_File): New parameter Display_Path.
6850 2010-06-18 Thomas Quinot <quinot@adacore.com>
6852 * g-socket.adb, g-socket.ads (Null_Selector): New object.
6854 2010-06-18 Pascal Obry <obry@adacore.com>
6856 * gnat_ugn.texi: Minor clarification.
6858 2010-06-18 Emmanuel Briot <briot@adacore.com>
6860 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
6861 code when using the project dir as the source dir.
6862 (Search_Directories): use the normalized name for the source directory,
6863 where symbolic names have potentially been resolved.
6865 2010-06-18 Robert Dewar <dewar@adacore.com>
6867 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
6868 when we create N_Expression_With_Actions node.
6869 (Expand_Short_Circuit): Ditto.
6871 2010-06-18 Robert Dewar <dewar@adacore.com>
6873 * exp_util.adb: Minor reformatting.
6875 2010-06-18 Thomas Quinot <quinot@adacore.com>
6877 * types.ads: Clean up obsolete comments
6878 * tbuild.adb: Minor reformatting.
6879 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
6880 exp_strm.adb, aa_drive.adb: Minor reformatting.
6881 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
6882 intrinsic with an Interface_Name denotes an imported back-end builtin,
6883 and must be rewritten into a call, not left in the tree as an operator,
6884 so return False in that case.
6886 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6888 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
6890 2010-06-18 Robert Dewar <dewar@adacore.com>
6892 * scos.ads: Add proposed output for case expression
6894 2010-06-18 Jose Ruiz <ruiz@adacore.com>
6896 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
6897 RTSS modules, we need to use the Microsoft linker.
6899 2010-06-18 Robert Dewar <dewar@adacore.com>
6901 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
6902 expression (cannot count on a particular branch being executed).
6903 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
6904 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
6905 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
6906 within case expression.
6907 * expander.adb (Expand): Add call to Expand_N_Case_Expression
6908 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
6909 (P_Case_Expression): New procedure
6910 (P_Case_Expression_Alternative): New procedure
6911 * par.adb (P_Case_Expression): New procedure
6912 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
6914 * sem.adb (Analyze): Add call to Analyze_Case_Expression
6915 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
6916 this is a documentation change only.
6917 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
6918 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
6920 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
6921 * sem_res.adb (Resolve_Case_Expression): New procedure.
6922 * sem_scil.adb (Find_SCIL_Node): Add processing for
6923 N_Case_Expression_Alternative.
6924 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
6925 (N_Case_Expression_Alternative): New node.
6926 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
6927 N_Case_Expression and N_Case_Expression_Alternative.
6929 2010-06-18 Robert Dewar <dewar@adacore.com>
6931 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
6933 * gnat1drv.adb: Fix typo.
6935 2010-06-18 Robert Dewar <dewar@adacore.com>
6937 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
6939 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
6940 gnat style for -gnatg.
6941 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
6943 2010-06-18 Thomas Quinot <quinot@adacore.com>
6945 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
6947 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
6950 2010-06-18 Robert Dewar <dewar@adacore.com>
6952 * sprint.adb: Minor change in output format for expression wi actions.
6953 * par-ch3.adb: Minor code reorganization. Minor reformatting.
6954 * sem_ch5.adb: Minor comment fix.
6956 2010-06-18 Robert Dewar <dewar@adacore.com>
6958 * debug.adb: New debug flag -gnatd.L to control
6959 Back_End_Handles_Limited_Types.
6960 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
6961 limited case if Back_End_Handles_Limited_Types is True.
6962 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
6963 simplify expansion if Use_Expression_With_Actions is True.
6964 * gnat1drv.adb (Adjust_Global_Switches): Set
6965 Back_End_Handles_Limited_Types.
6966 * opt.ads (Back_End_Handles_Limited_Types): New flag.
6968 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6970 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
6971 intrinsic operator if expansion is not enabled, because in an
6972 instantiation the original operator must be present to verify the
6973 legality of the operation.
6975 2010-06-18 Robert Dewar <dewar@adacore.com>
6977 * exp_disp.adb, sem_ch12.adb: Minor reformatting
6979 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6981 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
6982 the class-wide type for a private extension, and the completion is a
6983 subtype, set the type of the class-wide type to the base type of the
6986 2010-06-18 Robert Dewar <dewar@adacore.com>
6988 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
6989 sem_intr.adb, sem_eval.adb: Minor reformatting
6991 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6993 * sem_type.adb (Is_Ancestor): If either type is private, examine full
6996 2010-06-18 Thomas Quinot <quinot@adacore.com>
6998 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
6999 parameter rather than IN OUT.
7001 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7003 * exp_ch6.adb: Add extra guard.
7005 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7007 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
7008 accessibility level of a function call from the level of the innermost
7009 enclosing dynamic scope.
7010 (Innermost_Master_Scope_Depth): New function to find the depth of the
7011 nearest dynamic scope enclosing a node.
7013 2010-06-18 Tristan Gingold <gingold@adacore.com>
7015 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
7017 2010-06-18 Thomas Quinot <quinot@adacore.com>
7019 * g-socket.ads: Minor reformatting.
7021 2010-06-18 Vincent Celier <celier@adacore.com>
7023 * make.adb (Must_Compile): New Boolean global variable
7024 (Main_On_Command_Line): New Boolean global variable
7025 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
7026 even when the project is externally built.
7027 (Start_Compile_If_Possible): Compile in -aL directories if
7028 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
7029 when the project is externally built.
7030 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
7031 invoked with -f -u and one or several mains on the command line.
7032 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
7033 main is specified on the command line.
7035 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7037 * sem_ch6.adb (Build_Body_For_Inline): Handle
7038 extended_return_statements.
7039 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
7040 containing extented_return statements.
7041 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
7042 constrained, do not build subtype declaration.
7044 2010-06-18 Robert Dewar <dewar@adacore.com>
7046 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
7047 Warn on assigning to packed atomic component.
7049 2010-06-18 Robert Dewar <dewar@adacore.com>
7051 * sem_util.ads: Minor reformatting
7052 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
7053 Expression_With_Actions).
7054 * snames.ads-tmpl: Minor comment fix
7056 2010-06-18 Robert Dewar <dewar@adacore.com>
7058 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
7059 (Set_Imported): Use Import_Interface_Present to control message output
7060 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7061 * gnat_rm.texi: Document that we can have pragma Import and pragma
7062 Interface for the same subprogram.
7064 2010-06-18 Robert Dewar <dewar@adacore.com>
7066 * lib-xref.adb (Generate_Reference): Fix bad reference to
7067 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7069 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7071 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7073 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7074 Use set_gnu_expr_location_from_node to set location information on the
7077 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7079 * gcc-interface/Make-lang.in: Update dependencies.
7081 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7083 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7086 2010-06-17 Robert Dewar <dewar@adacore.com>
7088 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7089 style check messages.
7090 * sem_res.adb (Resolve_Call): Don't call
7091 Check_For_Eliminated_Subprogram if we are analyzing within a spec
7094 2010-06-17 Robert Dewar <dewar@adacore.com>
7096 * debug.adb: Add documentation for debug flags .X and .Y
7097 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7098 Use_Expression_With_Actions.
7099 * gnat1drv.adb (Adjust_Global_Switches): Set
7100 Use_Expression_With_Actions.
7101 * opt.ads (Use_Expression_With_Actions): New switch.
7103 2010-06-17 Robert Dewar <dewar@adacore.com>
7105 * exp_intr.adb: Minor code reorganization (use UI_Max)
7106 * sem_intr.adb: use underlying type to check legality.
7107 * einfo.adb (Known_Static_Esize): False for generic types
7108 (Known_Static_RM_Size): False for generic types
7109 * einfo.ads (Known_Static_Esize): False for generic types
7110 (Known_Static_RM_Size): False for generic types
7112 2010-06-17 Robert Dewar <dewar@adacore.com>
7114 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7116 2010-06-17 Robert Dewar <dewar@adacore.com>
7118 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7119 node when expanding short circuit form with actions present for right
7121 * exp_ch4.adb: Minor reformatting
7122 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7123 if right opeand has actions present, and debug flag -gnatd.X is set.
7124 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7126 * nlists.adb (Prepend_List): New procedure
7127 (Prepend_List_To): New procedure
7128 * nlists.ads (Prepend_List): New procedure
7129 (Prepend_List_To): New procedure
7130 * sem.adb: Add processing for Expression_With_Actions
7131 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7132 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7133 * sem_res.adb: Add processing for Expression_With_Actions.
7134 * sem_scil.adb: Add processing for Expression_With_Actions
7135 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7136 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7138 2010-06-17 Doug Rupp <rupp@adacore.com>
7140 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7141 involved both have underlying integer types.
7142 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7143 to an intrinsic operator when the operand types or sizes are not
7145 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7146 64/32 Address/Integer works.
7148 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7150 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7151 that it marks a unit as needed by a spec only if the corresponding
7152 instantiation appears in that spec (and not in the corresponding body).
7153 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7154 in the pragma Eliminate has been parsed as a child unit, but the
7155 current compilation unit is in fact the parent in which the subunit is
7158 2010-06-17 Vincent Celier <celier@adacore.com>
7160 * gnat_rm.texi: Fix typo
7162 2010-06-17 Robert Dewar <dewar@adacore.com>
7164 * sem_util.adb: Minor reformatting
7166 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7168 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7169 instance, the clause now denotes the instance body. Traverse the
7170 corresponding spec because there may be no other dependence that will
7171 force the traversal of its own context.
7173 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7175 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7176 Install_Limited_Context_Clauses, to determine whether a limited_with in
7177 some parent of the current unit designates some other parent, in which
7178 case the limited_with clause must not be installed.
7179 (In_Context): Refine test.
7181 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7183 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7184 type with a dispatching equality operator that is overridden (for a
7185 tagged full type), don't include the overridden equality in the list of
7186 primitives. The overridden equality is detected by testing for an
7187 Aliased field that references the overriding equality.
7189 2010-06-17 Robert Dewar <dewar@adacore.com>
7191 * freeze.adb: Minor reformatting.
7193 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7195 * gnat_ugn.texi: Add a section introducing gdbserver.
7197 2010-06-17 Thomas Quinot <quinot@adacore.com>
7199 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7202 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7204 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7205 constrained discriminated parent that is a private type.
7206 (Analyze_Record_Aggregate): when collecting inherited discriminants,
7207 handle properly an ancestor type that is a constrained private type.
7209 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7211 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7212 protected, use the protected_subprogram_body only if the original
7213 subprogram has not been eliminated.
7215 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7217 * freeze.adb (Freeze_Expression): The designated type of an
7218 access_to_suprogram type can only be frozen if all types in its profile
7221 2010-06-17 Robert Dewar <dewar@adacore.com>
7223 * par.adb: Minor comment fix
7224 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7226 2010-06-17 Doug Rupp <rupp@adacore.com>
7228 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7229 change Address to Short_Address in functions where both must be the
7230 same size for intrinsics to work.
7232 2010-06-17 Thomas Quinot <quinot@adacore.com>
7234 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7235 not denote a (private) component of a protected object.
7237 2010-06-17 Bob Duff <duff@adacore.com>
7239 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7242 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7244 * gnat_ugn.texi: Update the documentation about GDB re: exception
7247 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7249 * gnatvsn.ads: Bump to 4.6 version.
7251 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7253 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7254 designated type of the generated pointer is the type of the original
7255 expression, not that of the function call itself, because the return
7256 type may be an untagged derived type and the function may be an
7257 inherited operation.
7259 2010-06-17 Robert Dewar <dewar@adacore.com>
7261 * exp_ch4.adb: Minor reformatting.
7263 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7265 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
7266 N_Component_Association nodes, to indicate that a component association
7267 of an extension aggregate denotes the value of a discriminant of an
7268 ancestor type that has been constrained by the derivation.
7269 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
7270 double expansion of the aggregate appearing in a context that delays
7271 expansion, to prevent double insertion of discriminant values when the
7272 aggregate is reanalyzed.
7274 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7276 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
7277 Allocator as the Related_Node of Return_Obj_Access in call to
7278 Make_Temporary below as this would create a sort of infinite
7281 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7283 * gnat_ugn.texi: Update gnatcheck doc.
7285 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7287 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
7288 incomplete view of the type that is not tagged, and the full type is a
7289 tagged extension, create class_wide type now, and warn that the
7290 incomplete view should be tagged as well.
7292 2010-06-17 Vincent Celier <celier@adacore.com>
7294 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7295 Update the last line of the usage, indicating what commands do not
7296 accept project file switches.
7297 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7298 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7300 * gnat_ugn.texi: Document the relaxed rules for library directories in
7301 externally built library projects.
7303 2010-06-17 Doug Rupp <rupp@adacore.com>
7305 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7307 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7308 * gcc-interface/Makefile.in: Update VMS target pairs.
7310 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7312 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7313 compatible with Windows NT 4.0 which doesn't provide this function.
7315 2010-06-17 Vincent Celier <celier@adacore.com>
7317 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7318 different timestamps but the checksum is the same, issue a short
7321 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7323 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7324 it means that we cannot reset interrupt handlers since this would
7325 require potentially sending the abort signal to the Server_Task.
7327 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7329 * exp_ch4.adb: expand NOT for VMS types.
7330 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7332 2010-06-17 Sergey Rybin <rybin@adacore.com>
7334 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7335 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7338 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7340 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7341 protected operation if the subprogram has been eliminated.
7343 2010-06-17 Vincent Celier <celier@adacore.com>
7345 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7346 directories associated with a library to be any directory when the
7347 library project is externally built.
7349 2010-06-17 Vincent Celier <celier@adacore.com>
7351 * make.adb (Check): If switch -m is used, deallocate the memory that
7352 may be allocated when computing the checksum.
7354 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7356 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7357 (C_Sendmsg): Likewise.
7359 2010-06-17 Thomas Quinot <quinot@adacore.com>
7361 * sem_res.adb: Update comments.
7363 2010-06-17 Vincent Celier <celier@adacore.com>
7365 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7367 2010-06-17 Robert Dewar <dewar@adacore.com>
7369 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7370 * layout.adb, freeze.adb: Use Make_Temporary.
7372 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7374 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7375 .NET/JVM normally as this is now perfectly supported by the backend.
7377 2010-06-17 Pascal Obry <obry@adacore.com>
7379 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7381 2010-06-17 Vincent Celier <celier@adacore.com>
7383 * make.adb (Collect_Arguments_And_Compile): Create include path file
7384 only when -x is specified.
7386 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7388 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7389 Objects_Path, defaulted to True. Only create include path file if
7390 Include_Path is True, only create objects path file if Objects_Path is
7392 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7393 Objects_Path, defaulted to True.
7394 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7397 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7399 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7400 determine whether it has the controlling type, when the formal is an
7403 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7405 * s-crtl.ads (ssize_t): New type.
7406 (read): Fix signature.
7408 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7409 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7410 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7411 (C_Sendmsg): Likewise.
7412 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7413 (Syscall_Sendmsg): Likewise.
7414 (C_Recvmsg): Likewise.
7415 (C_Sendmsg): Likewise.
7416 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7417 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7418 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7419 (C_Sendmsg): Likewise.
7420 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7421 (C_Sendmsg): Likewise.
7422 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7423 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7424 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7425 (C_Sendmsg): Likewise.
7426 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7427 (C_Sendmsg): Likewise.
7428 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7429 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7430 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7431 (C_Sendmsg): Likewise.
7432 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7433 (C_Sendmsg): Likewise.
7434 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7435 (Write): Likewise to call 'write'.
7436 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7437 (Write): Use correct type to call System.CRTL.write.
7438 * s-tasdeb.adb (Write): Likewise.
7440 2010-06-17 Vincent Celier <celier@adacore.com>
7442 * prj-proc.adb (Copy_Package_Declarations): Change argument name
7443 Naming_Restricted to Restricted. If Restricted is True, do not copy the
7444 value of attribute Linker_Options.
7446 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7448 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
7449 (Case_Statement_to_gnu): Adjust.
7450 (Loop_Statement_to_gnu): Likewise.
7451 (Subprogram_Body_to_gnu): Likewise.
7452 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7453 (Compilation_Unit_to_gnu): Likewise.
7455 2010-06-17 Robert Dewar <dewar@adacore.com>
7457 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
7458 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
7459 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
7460 sem_dist.adb, sem_util.adb: Use Make_Temporary
7461 * itypes.ads, tbuild.ads: Minor comment update
7462 * exp_ch9.adb, exp_dist.adb: Minor reformatting
7464 2010-06-17 Thomas Quinot <quinot@adacore.com>
7466 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7468 2010-06-17 Robert Dewar <dewar@adacore.com>
7470 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7472 2010-06-17 Thomas Quinot <quinot@adacore.com>
7474 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7476 2010-06-17 Robert Dewar <dewar@adacore.com>
7478 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
7479 * tbuild.ads (Make_Temporary): More comment updates
7480 * tbuild.adb: Minor reformatting
7482 2010-06-17 Robert Dewar <dewar@adacore.com>
7484 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
7485 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
7487 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7489 (Make_Temporary): Add more extensive documentation
7491 2010-06-17 Robert Dewar <dewar@adacore.com>
7493 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
7494 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
7495 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
7496 where the slice's actions are inserted.
7497 (Decompose_Expr): Account for possible rewriting of slice bounds
7498 resulting from side effects suppression caused by the above freezing,
7499 so that folding of bounds is preserved by such rewriting.
7501 2010-06-17 Robert Dewar <dewar@adacore.com>
7503 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
7505 * freeze.adb (Freeze_Record_Type): Add call to
7506 Check_Record_Representation_Clause.
7507 * sem_ch13.adb (Check_Record_Representation_Clause): New function
7508 (Analyze_Record_Representation_Clause): Split out overlap code into
7510 (Check_Component_Overlap): Moved inside
7511 Check_Record_Representation_Clause.
7512 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
7514 2010-06-17 Robert Dewar <dewar@adacore.com>
7516 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
7518 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
7519 sem_eval.adb: Use Ekind_In
7521 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7523 * sem_ch8.adb: better error message for illegal inherited discriminant
7525 2010-06-17 Vincent Celier <celier@adacore.com>
7527 * bindusg.adb: Remove lines for -A and -C
7528 * gnat_ugn.texi: Remove all documentation and examples of switches -A
7529 and -C for gnatbind and gnatlink.
7530 * gnatlink.adb (Usage): Remove lines for -A and -C
7531 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
7533 * gcc-interface/Make-lang.in: Update dependencies.
7535 2010-06-17 Vincent Celier <celier@adacore.com>
7537 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
7538 local Argument_List variable Args.
7539 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
7541 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
7542 for subsequent switches in Args.
7543 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
7545 * gcc-interface/Make-lang.in: Update dependencies.
7547 2010-06-17 Robert Dewar <dewar@adacore.com>
7549 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
7550 Equivalent_Type to match documentation.
7552 2010-06-17 Robert Dewar <dewar@adacore.com>
7554 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
7555 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
7556 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
7558 2010-06-17 Thomas Quinot <quinot@adacore.com>
7560 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
7562 2010-06-17 Thomas Quinot <quinot@adacore.com>
7564 * freeze.adb (Freeze_Expression): Short circuit operators are valid
7565 freeze node insertion points.
7567 2010-06-17 Robert Dewar <dewar@adacore.com>
7569 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
7570 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
7572 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7574 * layout.adb (Layout_Type): Broaden test for setting an array type's
7575 Component_Size to include all scalar types, not just discrete types
7576 (components of real types were missed).
7577 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
7578 on the itype created for an index (consistent with Make_Index and
7579 avoids possible Assert_Failures).
7581 2010-06-17 Robert Dewar <dewar@adacore.com>
7583 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
7584 * einfo.adb: Minor code reformatting (use Ekind_In)
7586 2010-06-17 Robert Dewar <dewar@adacore.com>
7588 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
7591 2010-06-17 Vincent Celier <celier@adacore.com>
7593 * back_end.adb: Minor comment updates
7594 * switch-c.adb: Remove dependencies on gcc C sources
7595 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
7598 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7600 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
7601 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
7602 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
7603 Remove use of Node field in SCOs table
7604 (Output_Header): Set 'd' to initially disable pragma entry
7605 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
7606 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
7607 Use C2 field of pragma decision header to indicate enabled.
7608 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
7609 * gcc-interface/Make-lang.in: Update dependencies.
7611 2010-06-17 Vincent Celier <celier@adacore.com>
7613 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
7614 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
7615 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
7616 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
7618 * switch-c.adb: Copied a number of global declarations from
7620 (Len_Arg): New function copied from back_end.adb
7621 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
7622 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
7623 Switch_Subsequently_Cancelled.
7624 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
7625 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
7626 with -lexc on Tru64.
7628 2010-06-17 Robert Dewar <dewar@adacore.com>
7630 * prj.ads, prj.adb: Minor reformatting
7632 2010-06-17 Thomas Quinot <quinot@adacore.com>
7634 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
7635 CP line for a disabled pragma.
7637 2010-06-17 Emmanuel Briot <briot@adacore.com>
7639 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
7641 (Process_Declarative_Item): An invalid value in an typed variable
7642 declaration is no longer always fatal.
7644 2010-06-16 Arnaud Charlet <charlet@adacore.com>
7646 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
7647 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
7650 2010-06-16 Javier Miranda <miranda@adacore.com>
7652 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
7653 node referenced by the SCIL node of dispatching "=" to skip the tags
7656 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7658 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
7659 to prevent cascaded errors and compilation aborts.
7661 2010-06-16 Robert Dewar <dewar@adacore.com>
7663 * back_end.adb (Switch_Subsequently_Cancelled): New function
7664 Move declarations to package body level to support this change
7665 * back_end.ads (Switch_Subsequently_Cancelled): New function
7666 * gnat_ugn.texi: Document -gnat-p switch
7667 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
7668 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
7669 * usage.adb: Add line for -gnat-p switch
7670 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
7672 2010-06-16 Robert Dewar <dewar@adacore.com>
7674 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
7677 2010-06-16 Robert Dewar <dewar@adacore.com>
7679 * exp_disp.adb: Minor reformatting
7681 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7683 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
7684 base type only if it was not previously created for the partial view.
7686 2010-06-16 Thomas Quinot <quinot@adacore.com>
7688 * tbuild.ads: Minor comment fix
7690 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
7692 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
7693 (gnu_except_ptr_stack): Change type to VEC. Update comment.
7694 (gnu_elab_proc_stack): Likewise.
7695 (gnu_return_label_stack): Likewise.
7696 (gnu_loop_label_stack): Likewise.
7697 (gnu_switch_label_stack): Likewise.
7698 (gnu_constraint_label_stack): Likewise.
7699 (gnu_storage_error_label_stack): Likewise.
7700 (gnu_program_error_label_stack): Likewise.
7701 (push_exception_label_stack): Take a VEC ** instead of a tree *.
7702 (push_stack): Likewise. Remove unused second parameter. Update
7704 (pop_stack): Take a VEC * instead of a tree *. Update callers.
7705 (gigi): Initialize stacks as VECs.
7706 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
7707 (Case_Statement_to_gnu): Likewise.
7708 (Subprogram_Body_to_gnu): Likewise.
7709 (call_to_gnu): Likewise.
7710 (Exception_Handler_to_gnu_sjlj): Likewise.
7711 (gnat_to_gnu): Likewise.
7712 (get_exception_label): Likewise.
7714 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7716 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
7717 anonymous base generated when the parent is a constrained discriminated
7718 type, propagate interface list to first subtype because it may appear
7719 in a current instance within the extension part of the derived type
7720 declaration, and its own subtype declaration has not been elaborated
7722 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7723 determine whether it has the controlling type.
7725 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7727 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
7728 raise of CE, SE and PE have the reason correctly set and are properly
7729 expanded before stopping the expansions of .NET/JVM exceptions.
7731 2010-06-14 Robert Dewar <dewar@adacore.com>
7733 * opt.ads (Check_Policy_List): Add some clarifying comments
7734 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
7735 on rewritten Assert pragma.
7737 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7739 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
7740 controlled operations, so that they will be treated as overriding even
7741 if the overridden subprogram is marked Is_Hidden, as long as the
7742 overridden subprogram's parent subprogram is not hidden.
7744 2010-06-14 Robert Dewar <dewar@adacore.com>
7746 * debug.adb: Entry for gnatw.d no longer specific for while loops
7747 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
7748 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
7749 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
7750 new calling sequence to include test for EXIT WHEN.
7751 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
7753 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
7755 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
7757 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
7758 PRAGMA, not to pragma identifier).
7759 (Next_Exit_Statement): New attribute of N_Exit_Statement node
7761 2010-06-14 Robert Dewar <dewar@adacore.com>
7763 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
7766 2010-06-14 Robert Dewar <dewar@adacore.com>
7768 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
7769 missing pragma argument identifier.
7771 2010-06-14 Robert Dewar <dewar@adacore.com>
7773 * atree.ads, atree.adb (Ekind_In): New functions.
7775 2010-06-14 Robert Dewar <dewar@adacore.com>
7777 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
7779 2010-06-14 Robert Dewar <dewar@adacore.com>
7781 * usage.adb (Usage): Redo documentation of -gnatwa.
7783 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7785 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
7786 an untagged incomplete type that is a limited view.
7788 2010-06-14 Sergey Rybin <rybin@adacore.com>
7790 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
7793 2010-06-14 Thomas Quinot <quinot@adacore.com>
7795 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
7796 factoring duplicated code between...
7797 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
7798 * a-envvar.ads: Minor reformatting
7800 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7802 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
7804 (Scan_ALI): Take into account new Visibility field.
7805 (Visibility_Kind): New type.
7806 (Xref_Entity_Record): Replace Lib field by Visibility.
7808 * gcc-interface/Make-lang.in: Update dependencies.
7810 2010-06-14 Pascal Obry <obry@adacore.com>
7812 * raise.h: Remove unused defintions.
7814 2010-06-14 Bob Duff <duff@adacore.com>
7816 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
7817 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
7818 the incorrect error "proper body expected".
7819 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
7820 allowed here" error in case of subunits, which was triggered by the
7821 above change to P_Subunit.
7823 2010-06-14 Sergey Rybin <rybin@adacore.com>
7825 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
7827 2010-06-14 Thomas Quinot <quinot@adacore.com>
7829 * lib-util.adb: Minor code reorganization.
7831 2010-06-14 Robert Dewar <dewar@adacore.com>
7833 * ali.adb (Scan_ALI): Implement reading and storing of N lines
7834 (Known_ALI_Lines): Add entry for 'N' (notes)
7835 * ali.ads (Notes): New table to store Notes information
7836 * alloc.ads: Add entries for Notes table
7837 * lib-util.adb (Write_Info_Int): New procedure
7838 (Write_Info_Slit): New procedure
7839 (Write_Info_Uint): New procedure
7840 * lib-util.ads (Write_Info_Int): New procedure
7841 (Write_Info_Slit): New procedure
7842 (Write_Info_Uint): New procedure
7843 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
7844 * lib-writ.ads: Update documentation for N (Notes) lines
7845 * lib.adb (Store_Note): New procedure
7846 * lib.ads (Notes): New table
7847 (Store_Note): New procedure
7848 * sem_prag.adb: Call Store_Note for affected pragmas
7850 2010-06-14 Thomas Quinot <quinot@adacore.com>
7852 * socket.c: Fix wrong condition in #ifdef
7853 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
7854 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
7855 because on VMS this type is a 32-bit pointer which is not compatible
7856 with the default for C pointers for code compiled with gcc on that
7859 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7861 * sem_util (Is_VMS_Operator): New predicate to determine whether an
7862 operator is an intrinsic operator declared in the DEC system extension.
7863 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
7864 if the operator is a VMS intrinsic.
7865 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
7866 constant-folded if the operands are signed and the operator is a VMS
7869 2010-06-14 Robert Dewar <dewar@adacore.com>
7871 * g-socket.adb, gnatcmd.adb: Minor reformatting.
7873 2010-06-14 Pascal Obry <obry@adacore.com>
7875 * s-finimp.adb: Fix typo.
7876 * raise.h: Remove duplicate blank line.
7878 2010-06-14 Vincent Celier <celier@adacore.com>
7880 * prj-nmsc.adb (Add_Sources): Always set the object file and the
7881 switches file names, as the configuration of the language may change
7882 in an extending project.
7883 (Process_Naming_Scheme): For sources of projects that are extended, set
7884 the configuration of the language from the highest extending project
7885 where the language is declared.
7887 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7889 * sem_res.adb (Resolve_Call): For infinite recursion check, test
7890 whether the called subprogram is inherited from a containing
7892 (Same_Or_Aliased_Subprograms): New function
7894 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7896 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
7897 use-visible, check whether it is a primitive for more than one type.
7899 2010-06-14 Robert Dewar <dewar@adacore.com>
7901 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
7903 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
7904 Has_Pragma_Unmodified flag.
7906 2010-06-14 Thomas Quinot <quinot@adacore.com>
7908 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
7909 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
7910 now done in GNAT.Sockets if necessary.
7911 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
7912 Ensure mutual exclusion for netdb operations if the target platform
7914 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
7915 struct hostent as an opaque type to improve portability.
7916 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
7917 gethostbyYYY using proprietary VxWorks API so that a uniform interface
7918 is available for the Ada side.
7919 * gcc-interface/Makefile.in: Remove g-sttsne-*
7920 * gcc-interface/Make-lang.in: Update dependencies.
7922 2010-06-14 Vincent Celier <celier@adacore.com>
7924 * gnatcmd.adb (Mapping_File): New function.
7926 2010-06-14 Javier Miranda <miranda@adacore.com>
7928 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
7930 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7932 * ali.adb: Fix typo.
7933 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
7935 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7937 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
7940 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
7941 the context does not have a homonym of the selector, emit default
7944 2010-06-14 Robert Dewar <dewar@adacore.com>
7946 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
7949 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7951 * lib-xref.ads: Doc updates:
7952 - Allocate 'Q' for #include entity kind
7954 - Allocate 'g' for regular macros
7955 - Allocate 'G' for function-like macros
7957 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7959 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
7960 Indicates that there is an instantiation in the current unit that
7961 loaded the body of the unit denoted by the with_clause.
7962 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
7963 whether a with_clause in the current context denotes the unit that
7964 holds the generic declaration, and mark the with_clause accordingly.
7965 (Instantiate_Package_Body): call Mark_Context.
7966 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
7967 whether a given body should be traversed before the spec of the main
7970 2010-06-14 Ed Falis <falis@adacore.com>
7972 * sysdep.c: Fix 653 build against vThreads headers.
7974 2010-06-14 Robert Dewar <dewar@adacore.com>
7976 * sinfo.ads: Minor reformatting.
7978 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7980 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
7981 the spec has been generated for a body without spec that carries an
7982 Inline_Always pragma.
7984 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7986 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
7989 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7991 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
7992 declaration for VMs, as those are useless and might lead to duplicated
7993 local variable names in the generated code.
7994 * gcc-interface/Make-lang.in: Update dependencies.
7996 2010-06-14 Robert Dewar <dewar@adacore.com>
7998 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
8000 2010-06-14 Robert Dewar <dewar@adacore.com>
8002 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
8003 is renamed as Has_Following_Address_Clause.
8004 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
8005 to allow the caller to avoid Initialize_Scalars having an effect.
8006 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
8007 scalars with an address clause specified.
8008 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
8009 to allow the caller to avoid Initialize_Scalars having an effect.
8010 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
8011 (where it was called Has_Address_Clause).
8012 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
8013 (where it was called Has_Address_Clause).
8014 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
8015 problems for Initialize_Scalars (since we no longer initialize objects
8016 with an address clause.
8018 2010-06-14 Robert Dewar <dewar@adacore.com>
8020 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
8023 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8025 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
8026 on the entity of an implicitly generated postcondition procedure.
8028 2010-06-14 Thomas Quinot <quinot@adacore.com>
8030 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
8031 Discriminant_Constraint elist from full view to private view.
8033 2010-06-14 Robert Dewar <dewar@adacore.com>
8035 * sem_res.adb: Minor reformatting.
8037 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8039 * sem.adb: New version of unit traversal.
8041 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
8042 within a generic unit in the table of delayed calls.
8044 2010-06-14 Robert Dewar <dewar@adacore.com>
8046 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
8048 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8050 * sem_ch12.adb (Save_References): If an identifier has been rewritten
8051 during analysis as an explicit dereference, keep the reference implicit
8052 in the generic, but preserve the entity if global. This prevents
8053 malformed generic trees in the presence of some nested generics.
8055 2010-06-14 Sergey Rybin <rybin@adacore.com>
8057 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
8058 tool with '-files=' option. Also fix some small errors (wrong brackets)
8060 2010-06-14 Vincent Celier <celier@adacore.com>
8062 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8063 the ALI files on the command line.
8065 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8066 the same value as the parameter of the same name.
8067 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8069 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8070 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8071 emit version symbols only for the units of the library.
8072 (Gen_Versions_C): Ditto.
8074 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8076 * sem_ch4.adb: Fix typo.
8078 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
8080 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8081 vector IO doesn't work at default value properly.
8083 2010-06-14 Doug Rupp <rupp@adacore.com>
8085 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8087 2010-06-14 Vincent Celier <celier@adacore.com>
8089 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8090 sources of the project if a switch -files= is used.
8092 2010-06-14 Thomas Quinot <quinot@adacore.com>
8094 * exp_attr.adb: Minor reformatting.
8096 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8098 * gnat_ugn.texi: Minor typo fixes and wording changes.
8100 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8102 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8103 prefixed form, do not re-analyze first actual, which may need an
8104 implicit dereference.
8105 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8106 prefixed notation, the analysis will rewrite the node, and possible
8107 errors appear in the rewritten name of the node.
8108 * sem_res.adb: If a call is ambiguous because its first parameter is
8109 an overloaded call, report list of candidates, to clarify ambiguity of
8112 2010-06-14 Doug Rupp <rupp@adacore.com>
8114 * s-auxdec-vms-alpha.adb: New package body implementing legacy
8115 VAX instructions with Asm insertions.
8116 * s-auxdec-vms_64.ads: Inline VAX queue functions
8117 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8118 that show up only on VMS.
8119 * gcc-interface/Makefile.in: Provide translation for
8120 s-auxdec-vms-alpha.adb.
8122 2010-06-14 Olivier Hainque <hainque@adacore.com>
8124 * initialize.c (VxWorks section): Update comments.
8126 2010-06-14 Robert Dewar <dewar@adacore.com>
8128 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8130 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8132 * init.c: Code clean up.
8134 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8136 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8137 not insert address clause in table for later validation if type of
8138 entity is generic, to prevent possible spurious errors.
8140 * sem_ch8.adb: Code clean up.
8142 2010-06-14 Ben Brosgol <brosgol@adacore.com>
8144 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8145 texi2pdf and texi2html.
8146 Document how to change scheduling properties on HP-UX.
8148 2010-06-14 Thomas Quinot <quinot@adacore.com>
8150 * g-socket.ads: Remove misleading comments.
8152 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8154 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8155 CLI_Target as this prevents proper detection of exported names
8156 duplicates when the exported language is different to CIL.
8157 (Process_Interface_Name): Add check for CIL convention exports,
8158 replacing the old one from Check_Duplicated_Export_Name.
8160 2010-06-14 Matthew Heaney <heaney@adacore.com>
8162 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8163 and new last satisfy constraints.
8164 (Delete_Last): prevent overflow for subtraction of index values
8165 (To_Vector): prevent overflow for addition of index values
8167 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8169 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8170 rewritten call, preserve the resulting type to prevent spurious errors,
8171 when the call is implicitly dereferenced in the context of an in-out
8174 * checks.adb (Apply_Discriminant_Check): If the target of the
8175 assignment is a renaming of a heap object, create constrained type for
8178 2010-06-14 Pascal Obry <obry@adacore.com>
8180 * prj-proc.adb: Fix copy of object directory for extending projects.
8182 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8184 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8185 (__gnat_install_handler, PowerPC linux): Activate the alternative
8188 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8190 * gnat_rm.texi: Move to GFDL version 1.3.
8191 * gnat-style.texi: Ditto.
8192 * gnat_ugn.texi: Ditto.
8194 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8197 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8200 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8202 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8204 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8206 * gcc-interface/ada-tree.h: Fix formatting nits.
8208 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8210 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8212 (init_dummy_type): Likewise.
8213 (gnat_pushlevel): Likewise.
8215 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8216 (Subprogram_Body_to_gnu): Likewise.
8217 (Compilation_Unit_to_gnu): Likewise.
8218 (start_stmt_group): Likewise.
8219 (extract_encoding): Likewise.
8220 (decode_name): Likewise.
8222 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8224 * gcc-interface/decl.c (annotate_value): Likewise.
8226 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8228 (struct lang_decl): Likewise.
8229 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8230 (SET_DECL_LANG_SPECIFIC): Likewise.
8232 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8234 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8235 * gcc-interface/lang-specs.h: Likewise.
8237 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8240 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8242 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8244 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8246 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8248 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8249 TYPE_DECL of the equivalent type instead of building a new one.
8251 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8253 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8254 Fix nits in comments.
8255 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8256 * gcc-interface/trans.c (gigi): Likewise.
8257 (Attribute_to_gnu): Likewise.
8258 (Case_Statement_to_gnu): Likewise.
8259 (gnat_to_gnu): Adjust warning message.
8260 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8261 (build_vms_descriptor32): Likewise.
8263 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8265 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8266 IN_GCC_FRONTEND (still need rtl.h here).
8268 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8270 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8271 (gigi): Adjust call to set_stack_check_libfunc.
8273 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8275 * gcc-interface/utils.c: Do not include rtl.h.
8277 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8279 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
8280 and gimple.h. Explain why rtl.h has to be included.
8281 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
8282 * gcc-interface/targtyps.c: Do not include tm_p.h
8283 * gcc-interface/utils2.c: Do not include flags.h.
8284 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
8285 and explain why it has to be included.
8286 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
8288 Include function.h and explain why. Explain why except.h is included.
8289 (enumerate_modes): Remove unused function.
8290 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
8291 * gcc-interface/Make-lang.in: Update dependencies.
8293 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8295 * gcc-interface/misc.c (internal_error_function): Add context
8296 parameter. Use it to access show_column flag and instead of using
8297 global_dc. Call warn_if_plugins.
8298 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8300 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8302 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8303 * gcc-interface/trans.c (unshare_save_expr): Delete.
8304 (gigi): Do not unshare trees under SAVE_EXPRs here.
8306 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8308 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8310 * gcc-interface/utils.c (build_function_stub): Likewise.
8312 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8314 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8315 for Wuninitialized without -O.
8317 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8319 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8320 ADT_exception_data_name_id.
8321 (exception_data_name_id): New define.
8322 * gcc-interface/trans.c (gigi): Initialize it.
8323 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8324 exception type for standard exception definitions. Do not make them
8326 <E_Record_Type>: Equate fields of types associated with an exception
8327 definition to those of the standard exception type.
8329 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8331 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8333 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8335 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8336 code, improve comments and fix formatting nits.
8338 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8340 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8341 pointer already points to the new type. Chain the old pointer and its
8342 variants at the end of new pointer's chain after updating them.
8344 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8346 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8347 built for interfaces.
8348 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8349 imported_p instead of Is_Imported when considering constants.
8350 Do not promote alignment of exported objects.
8351 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8353 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8355 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8356 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8357 constants really constant.
8358 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8360 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8362 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8364 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8366 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8367 expressions of variant part of record types declared at library level.
8369 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8371 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8372 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8373 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8374 (make_descriptor_field): Likewise and pass correctly typed constants.
8375 (build_unc_object_type): Likewise.
8376 (unchecked_convert): Likewise.
8377 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8378 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8379 Adjust call to create_field_decl.
8380 (make_aligning_type): Likewise.
8381 (make_packable_type): Likewise.
8382 (maybe_pad_type): Likewise.
8383 (gnat_to_gnu_field): Likewise.
8384 (components_to_record): Likewise.
8385 (create_field_decl_from): Likewise.
8386 (create_variant_part_from): Remove superfluous test.
8387 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8389 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8391 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8392 (build_unc_object_type_from_ptr): Likewise.
8393 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8394 and pass it to create_type_decl. Declare the type. Simplify.
8395 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8396 it to build_unc_object_type.
8397 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8398 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8399 (gnat_to_gnu): Likewise.
8400 * gcc-interface/utils2.c (build_allocator): Likewise.
8402 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8405 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8407 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8409 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8411 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8414 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8416 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8418 * gnathtml.pl: Use 755 as mask for new directories.
8420 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8422 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8423 constant constructors before taking their address.
8425 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8427 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8429 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8430 XVZ variable as unit size of XVS type.
8431 (maybe_pad_type): Likewise.
8433 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8435 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8436 use memmove if the array type is bit-packed.
8438 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8440 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8441 build_common_tree_nodes.
8443 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8445 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8447 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8449 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8452 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8454 * uintp.h (UI_Lt): Declare.
8455 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
8456 computation in sizetype.
8457 <E_Array_Subtype>: Use unified handling for all index types. Do not
8458 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
8460 (annotate_value): Change test for negative values.
8461 (validate_size): Apply test for negative values on GNAT nodes.
8462 (set_rm_size): Likewise.
8463 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
8464 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
8465 for negative values.
8466 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
8467 (builtin_type_for_size): Adjust definition of signed_size_type_node.
8468 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
8469 lengths against zero.
8471 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8473 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
8474 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
8475 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
8476 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
8477 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
8478 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
8480 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
8481 flag_signed_char. Tag sizetype with "size_type" moniker.
8482 * gcc-interface/trans.c (gigi): Add standard_character parameter.
8483 Remove useless built-in types. Equate unsigned_char_type_node to
8484 Standard.Character. Use it instead of char_type_node throughout.
8485 (Attribute_to_gnu): Likewise.
8486 (gnat_to_gnu): Likewise.
8487 * gcc-interface/utils2.c (build_call_raise): Likewise.
8489 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8491 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
8492 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
8493 (sbitsize_one_node): New macro.
8494 (sbitsize_unit_node): Likewise.
8495 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
8496 latent bug in the computation of subrange_p. Fold wider_p predicate.
8497 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
8498 the final comparison.
8499 (make_aligning_type): Build real negation and use sizetype throughout
8500 the offset computation.
8501 (maybe_pad_type): Do not issue the warning when the new size expression
8503 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8504 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8506 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
8508 (gnat_to_gnu) <N_Free_Statement>: Likewise.
8509 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
8510 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
8511 constants in sizetype. Remove dead code and tweak comments. Generate
8512 equality instead of inequality comparisons for zero length tests.
8514 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8516 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
8517 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
8518 <object>: Do not create the fake PARM_DECL if no debug info is needed.
8519 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
8520 purposes if no debug info is needed.
8521 Fix formatting. Reorder and add comments.
8522 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
8523 variable and remove obsolete comment.
8524 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
8525 (convert_vms_descriptor32): Likewise.
8526 (convert): Remove dead code.
8527 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
8528 the reference to the P_ARRAY pointer.
8529 <POINTER_TYPE>: Likewise.
8530 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
8531 (gnat_init_decl_processing): Delete, move contents to...
8532 * gcc-interface/misc.c (gnat_init): ...here.
8534 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8536 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
8537 calls. Return true for conversion from a record subtype to its type.
8539 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8541 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
8542 lieu of integer_type_node for boolean operations.
8543 (choices_to_gnu): Likewise.
8544 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8545 (Loop_Statement_to_gnu): Likewise.
8546 (establish_gnat_vms_condition_handler): Likewise.
8547 (Exception_Handler_to_gnu_sjlj): Likewise.
8548 (gnat_to_gnu): Likewise.
8549 (build_unary_op_trapv): Likewise.
8550 (build_binary_op_trapv): Likewise.
8551 (emit_range_check): Likewise.
8552 (emit_index_check): Likewise.
8553 (convert_with_check): Likewise.
8554 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
8555 (convert_vms_descriptor32): Likewise.
8556 (convert_vms_descriptor): Likewise.
8557 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
8558 (compare_arrays): Use boolean instead of integer constants.
8559 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
8560 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
8562 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
8563 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
8564 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
8565 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
8566 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
8567 for boolean operations.
8568 (fill_vms_descriptor): Likewise. Fix formatting nits.
8570 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8572 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
8573 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
8575 (LOOP_STMT_COND): ...this.
8576 (LOOP_STMT_BOTTOM_COND_P): New flag.
8577 (LOOP_STMT_TOP_UPDATE_P): Likewise.
8578 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
8579 (can_equal_min_val_p): New static inline function.
8580 (can_equal_max_val_p): Likewise.
8581 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
8582 new LOOP_STMT semantics. Use two different strategies depending on
8583 whether optimization is enabled to translate the loop.
8584 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
8586 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8588 * uintp.adb (UI_From_Dint): Remove useless code.
8589 (UI_From_Int): Likewise.
8590 * uintp.h: Reorder declarations.
8591 (UI_From_gnu): Declare.
8592 (UI_Base): Likewise.
8593 (Vector_Template): Likewise.
8594 (Vector_To_Uint): Likewise.
8597 * gcc-interface/gigi.h: Tweak comments.
8598 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
8599 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
8601 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
8602 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
8603 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
8604 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
8607 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8609 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
8611 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
8612 (smaller_form_type_p): ...this. Change parameter and variable names.
8613 (call_to_gnu): Use the nominal type of the parameter to create the
8614 temporary if it's a smaller form of the actual type.
8615 (addressable_p): Return false if the actual type is integral and its
8616 size is greater than that of the expected type.
8618 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8620 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
8621 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
8622 (process_attributes): Delete.
8623 (post_error_ne_num): Change parameter name.
8624 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
8625 with -g3. Remove a couple of obsolete lines. Minor tweaks.
8626 If type annotating mode, operate on trees to compute the adjustment to
8627 the sizes of tagged types. Fix long line.
8628 (cannot_be_superflat_p): Tweak head comment.
8629 (annotate_value): Fold local constant.
8630 (set_rm_size): Fix long line.
8631 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
8632 (Attribute_to_gnu): Fix long line.
8633 <Attr_Size>: Remove useless assertion.
8634 Reorder statements. Use size_binop routine.
8635 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
8636 Create local variables for the label and the test. Tweak comments.
8637 (Subprogram_Body_to_gnu): Reset cfun to NULL.
8638 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
8639 (process_inlined_subprograms): Integrate into...
8640 (Compilation_Unit_to_gnu): ...this.
8641 (gnat_to_gnu): Fix long line.
8642 (post_error_ne_num): Change parameter name.
8643 * gcc-interface/utils.c (process_attributes): Static-ify.
8644 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
8645 (create_type_decl): Add comment.
8646 (create_var_decl_1): Process the attributes after adding the VAR_DECL
8647 to the current binding level.
8648 (create_subprog_decl): Likewise for the FUNCTION_DECL.
8649 (end_subprog_body): Do not reset cfun to NULL.
8650 (build_vms_descriptor32): Fix long line.
8651 (build_vms_descriptor): Likewise.
8652 (handle_nonnull_attribute): Likewise.
8653 (convert_vms_descriptor64): Likewise.
8654 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
8655 (gnat_protect_expr): Fix thinko.
8657 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8659 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
8660 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
8661 before translating the top-level node.
8662 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
8663 <N_Object_Declaration>: Likewise.
8664 <N_Assignment_Statement>: Likewise.
8665 <N_Unchecked_Type_Conversion>: Likewise.
8666 (call_to_gnu): Remove kludge.
8667 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
8668 associated with user returns to be preserved.
8669 (gnat_to_gnu): Add special code to deal with boolean rvalues.
8670 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
8672 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
8673 <INDIRECT_REF>: Call build_fold_indirect_ref.
8675 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
8677 * g-socket.adb: A target can have multiple missing errno's. This
8678 will result in multiple errno's being defined as -1. Because of this
8679 we can not use a case but must use a series of if's to avoid
8680 a duplicate case error in GNAT.Sockets.Resolve_Error.
8682 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8684 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
8685 a statement. Otherwise, if at top-level, push the processing of the
8686 elaboration routine. In the misaligned case, issue the error messages
8687 again on entry and create the temporary explicitly. Do not issue them
8689 For a function call, emit the range check if necessary.
8690 In the copy-in copy-out case, create the temporary for the return
8692 Do not unnecessarily convert by-ref parameters to the formal's type.
8693 Remove obsolete guards in conditions.
8694 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
8695 target to call_to_gnu in all cases.
8696 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
8697 (addressable_p) <CONSTRUCTOR>: Return false if not static.
8698 <COMPOUND_EXPR>: New case.
8699 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
8700 expression if it has unconstrained array type.
8701 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
8702 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
8705 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8707 * gcc-interface/trans.c (gigi): Do not start statement group.
8708 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
8709 Start statement group and push binding level here...
8710 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
8711 Do not push fake contexts at top level. Remove redundant code.
8712 (call_to_gnu): Rename a local variable and constify another.
8713 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
8714 (set_current_block_context): Set it as the group's block.
8715 (gnat_init_decl_processing): Delete unrelated init code.
8716 (end_subprog_body): Use NULL_TREE.
8718 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8720 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
8721 side-effects of actual parameters before the call.
8723 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8725 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
8727 (set_rm_size): Reorder and remove obsolete test.
8729 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8731 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
8732 (gigi): Adjust ATTRIBUTE_UNUSED markers.
8733 * gcc-interface/gadaint.h: New file.
8734 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
8735 (__gnat_to_canonical_file_spec): Remove declaration.
8736 (number_names): Delete.
8737 (number_files): Likewise.
8739 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
8742 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8744 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
8746 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
8747 Ekind. Return early for class-wide types. Do not compute initializer
8748 unless necessary. Reuse the tree for an associated class-wide type
8749 only if processing its root type.
8751 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
8753 * gsocket.h: Run-time can no longer be built without network
8754 OS headers available. Changing RTEMS GNAT build procedure to
8755 reflect this and letting run-time build use network .h files.
8757 2010-04-13 Duncan Sands <baldrick@free.fr>
8759 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
8760 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
8762 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8764 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
8765 (parent_name_id): New macro.
8766 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
8767 * gcc-interface/trans.c (gigi): Initialize it.
8768 (lvalue_required_p) <N_Type_Conversion>: New case.
8769 <N_Qualified_Expression>: Likewise.
8770 <N_Allocator>: Likewise.
8771 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
8773 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8775 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
8776 (DECL_CONST_ADDRESS_P): New macro.
8777 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
8778 (SAME_FIELD_P): Likewise.
8779 * gcc-interface/decl.c (constructor_address_p): New static function.
8780 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
8781 the return value of above function.
8782 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
8783 passed by reference.
8784 <E_Record_Subtype>: Likewise.
8785 Set TREE_ADDRESSABLE on the type if it passed by reference.
8786 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
8787 (create_field_decl_from): Likewise.
8788 (substitute_in_type): Likewise.
8789 (purpose_member_field): Use SAME_FIELD_P.
8790 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
8791 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
8792 parameter and adjust recursive calls.
8793 <N_Explicit_Dereference>: New case.
8794 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
8795 Adjust calls to lvalue_required_p. Do not return the initializer of a
8796 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
8797 (call_to_gnu): Delay issuing error message for a misaligned actual and
8798 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
8799 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
8800 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
8801 type is passed by reference.
8802 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
8803 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
8804 (build_simple_component_ref): Use SAME_FIELD_P.
8806 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
8808 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
8809 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
8810 front-end's predicate Is_By_Reference_Type. Use consistent order and
8811 remove ??? comment. Use original conversion in all cases, if any.
8812 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
8813 (convert): Use local copy in more cases.
8814 <INDIRECT_REF>: Remove deactivated code.
8815 (unchecked_convert): Use a couple of local copies.
8817 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8819 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
8821 (lvalue_required_p) <N_Attribute_Reference>: Call it.
8822 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
8823 folding the result only if lvalue_required_for_attribute_p is true.
8824 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
8825 typed constant to build_component_ref.
8826 (unchecked_convert): Likewise.
8827 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
8828 (build_allocator): Likewise.
8830 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8832 * gcc-interface/utils2.c (build_cond_expr): Take the address and
8833 dereference if the result type is passed by reference.
8835 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8837 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
8838 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
8839 goto to the next statement.
8841 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
8843 * gcc-interface/gigi.h (maybe_variable): Delete.
8844 (protect_multiple_eval): Likewise.
8845 (maybe_stabilize_reference): Likewise.
8846 (gnat_save_expr): Declare.
8847 (gnat_protect_expr): Likewise.
8848 (gnat_stabilize_reference): Likewise.
8849 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
8850 gnat_stabilize_reference.
8851 (maybe_variable): Delete.
8852 (elaborate_expression_1): Use gnat_save_expr.
8853 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
8854 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
8855 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
8856 <N_Slice>: Use gnat_protect_exp.
8857 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
8858 <N_In>: Use gnat_protect_expr.
8859 Pass NULL to gnat_stabilize_reference.
8860 (build_unary_op_trapv): Use gnat_protect_expr.
8861 (build_binary_op_trapv): Likewise.
8862 (emit_range_check): Likewise.
8863 (emit_index_check): Likewise.
8864 (convert_with_check): Likewise.
8865 (protect_multiple_eval): Move to utils2.c file.
8866 (maybe_stabilize_reference): Merge into...
8867 (gnat_stabilize_reference): ...this. Move to utils2.c file.
8868 (gnat_stabilize_reference_1): Likewise.
8869 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
8870 instead of protect_multiple_eval.
8871 * gcc-interface/utils2.c (compare_arrays): Likewise.
8872 (nonbinary_modular_operation): Likewise.
8873 (maybe_wrap_malloc): Likewise.
8874 (build_allocator): Likewise.
8875 (gnat_save_expr): New function.
8876 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
8877 in common cases. Propagate TREE_READONLY onto dereferences.
8878 (gnat_stabilize_reference_1): Move from trans.c file.
8879 (gnat_stabilize_reference): Likewise.
8881 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
8883 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
8884 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
8885 node. Use the type of the operand to set TREE_READONLY.
8886 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
8887 _REF node. Do not overwrite TREE_READONLY.
8888 (call_to_gnu): Rename local variable and fix various nits. In the
8889 copy-in/copy-out case, build the SAVE_EXPR manually.
8890 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
8891 and fold the computations.
8892 (protect_multiple_eval): Always save entire fat pointers.
8893 (maybe_stabilize_reference): Minor tweaks.
8894 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
8895 tcc_type and tcc_statement.
8896 * gcc-interface/utils.c (convert_to_fat_pointer): Call
8897 protect_multiple_eval in lieu of save_expr.
8898 (convert): Minor tweaks.
8899 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
8900 (builtin_type_for_size): Call gnat_type_for_size directly.
8901 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
8902 (contains_null_expr): Likewise
8903 (gnat_build_constructor): Do not call it.
8904 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
8905 instead of gnat_stabilize_reference to protect the operands.
8906 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
8908 (maybe_wrap_malloc): Likewise.
8909 (build_allocator): Likewise.
8910 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
8911 (gnat_mark_addressable): Rename parameter.
8913 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
8915 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
8916 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
8917 (TYPE_RETURNS_BY_REF_P): Rename into.
8918 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
8919 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
8920 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
8921 (build_return_expr): Likewise.
8922 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
8923 Rename local variables. If the return Mechanism is By_Reference, pass
8924 return_by_invisible_ref_p to create_subprog_type instead of toggling
8925 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
8926 the mechanism. Use regular return for contrained types with non-static
8927 size and return by invisible reference for unconstrained return types
8928 with default discriminants. Update comment.
8929 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
8930 returns by invisible reference, turn the RESULT_DECL into a pointer.
8931 Do not handle DECL_BY_REF_P in the CICO case here.
8932 (call_to_gnu): Remove code handling return by target pointer. For a
8933 function call, if the return type has non-constant size, generate the
8934 assignment with an INIT_EXPR.
8935 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
8936 If the function returns by invisible reference, build the copy return
8938 (add_decl_expr): Initialize the variable with an INIT_EXPR.
8939 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
8940 Adjust for renaming of macros. Copy the node only when necessary.
8941 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
8942 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
8943 (convert_from_reference): Delete.
8944 (is_byref_result): Likewise.
8945 (gnat_genericize_r): Likewise.
8946 (gnat_genericize): Likewise.
8947 (end_subprog_body): Do not call gnat_genericize.
8948 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
8949 (build_return_expr): Adjust parameter names, logic and comment.
8951 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8953 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
8954 if the size is small enough. Propagate the alignment if there is an
8955 alignment clause on the original array type.
8956 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
8957 Deal with under-aligned packed array types. Copy the size onto the
8958 justified modular type and don't lay it out again. Likewise for the
8959 padding type built for other under-aligned subtypes.
8960 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
8963 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8965 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
8966 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
8968 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8970 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
8971 do not set the result type if there is a specified target and do not
8972 convert the result in any cases.
8973 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
8974 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
8976 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
8978 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
8980 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
8983 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
8984 pointer base types are variant of each other. Apply special treatment
8985 for null to fat pointer types in all cases.
8987 2010-01-28 Pascal Obry <obry@adacore.com>
8989 * s-win32.ads: Add some missing constants.
8991 2010-01-28 Vincent Celier <celier@adacore.com>
8993 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
8996 2010-01-28 Robert Dewar <dewar@adacore.com>
8998 * gnat_rm.texi: Minor correction
9000 2010-01-27 Pascal Obry <obry@adacore.com>
9002 * g-awk.adb: ensure that an AWK session is reusable.
9004 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
9006 * g-regist.adb (For_Every_Key): Fix previous change.
9009 2010-01-27 Thomas Quinot <quinot@adacore.com>
9011 * lib-writ.ads: Current version of spec for new N (note) ALI lines
9013 2010-01-27 Yannick Moy <moy@adacore.com>
9015 * a-cdlili.adb (Insert): Correct exception message when cursor
9016 designates wrong list.
9018 2010-01-27 Vincent Celier <celier@adacore.com>
9020 * gnatcmd.adb: When there is only one main specified, the package
9021 support Switches (<main>) and attribute Switches is specified for the
9022 main, use these switches, instead of Default_Switches ("Ada").
9024 2010-01-27 Robert Dewar <dewar@adacore.com>
9026 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
9028 * exp_disp.adb: Minor reformatting
9030 2010-01-27 Tristan Gingold <gingold@adacore.com>
9032 * seh_init.c: Use __ImageBase instead of _ImageBase.
9034 2010-01-27 Javier Miranda <miranda@adacore.com>
9036 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
9037 profile of interface thunks. The type of the controlling formal is now
9038 the covered interface type (instead of the target tagged type).
9040 2010-01-27 Sergey Rybin <rybin@adacore.com>
9042 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
9044 2010-01-27 Robert Dewar <dewar@adacore.com>
9046 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
9047 changed from Expr to N.
9049 2010-01-26 Thomas Quinot <quinot@adacore.com>
9051 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
9052 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
9055 2010-01-26 Vincent Celier <celier@adacore.com>
9057 * prj-attr.adb: Add new attribute Library_Install_Name_Option
9058 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
9059 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9060 attributes Run_Path_Option and Library_Install_Name_Option.
9061 * prj.ads (Project_Configuration): Replace component
9062 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9063 component Library_Install_Name_Option.
9064 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9065 Replace Run_Path_Origin_Supported with Run_Path_Origin
9067 2010-01-26 Ed Schonberg <schonberg@adacore.com>
9069 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9070 is not hidden by a homograph declared in another actual package.
9072 2010-01-26 Robert Dewar <dewar@adacore.com>
9074 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9075 decisions for pragmas Assert, Check, Precondition, Postcondition if
9077 * scos.ads: Update comments.
9078 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9079 Also remove obsolete code for CT (exit point) SCOs.
9081 2010-01-26 Thomas Quinot <quinot@adacore.com>
9083 * switch-c.adb: Fix handling of -gnatz*
9085 2010-01-26 Robert Dewar <dewar@adacore.com>
9087 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9088 qualifiers for FOR/WHILE loops
9089 * scos.ads: Use separate type letters F/W for for/while loops
9091 2010-01-26 Robert Dewar <dewar@adacore.com>
9093 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9094 entries per line, one for each statement in the sequence).
9095 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9096 size from 100 to 10_000 for SC_Array to avoid any real possibility of
9097 overflow. Output decisions in for loops.
9098 Exclude labels from CS lines.
9099 * scos.ads: Clarify that label is not included in the entry point
9101 2010-01-26 Robert Dewar <dewar@adacore.com>
9103 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9104 format of statement sequence SCO entries (one location/statement).
9105 * put_scos.adb (Put_SCOs): Implement new format of CS lines
9106 * scos.ads: Update comments.
9107 * sem_eval.adb: Minor reformatting.
9109 2010-01-26 Robert Dewar <dewar@adacore.com>
9111 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9112 (Extend_Statement_Sequence): New procedures
9113 (Traverse_Declarations_Or_Statements): New handling for exits.
9115 2010-01-26 Robert Dewar <dewar@adacore.com>
9117 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9120 2010-01-26 Robert Dewar <dewar@adacore.com>
9122 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9123 * scos.ads: Clarify handling of logical operators
9125 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9127 * s-tpoben.adb: Update comments.
9129 2010-01-26 Robert Dewar <dewar@adacore.com>
9131 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9134 2010-01-26 Robert Dewar <dewar@adacore.com>
9136 * scos.ads: Clean up documentation, remove obsolete XOR references
9137 2010-01-26 Vincent Celier <celier@adacore.com>
9139 * gnat_ugn.texi: Complete documentation on the restrictions for
9140 combined options in -gnatxxx switches.
9143 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9145 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9146 a controlled operation, abort is already deferred at this point, so we
9147 need to use Defer_Abort_Nestable.
9149 2010-01-26 Vincent Celier <celier@adacore.com>
9151 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9152 a project extending a project with no languages.
9154 2010-01-26 Vincent Celier <celier@adacore.com>
9156 * switch-c.adb (Scan_Front_End_Switches): Take into account options
9157 that follow -gnatef.
9158 Allow -gnateG to be followed by other options.
9160 2010-01-26 Robert Dewar <dewar@adacore.com>
9162 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9163 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9166 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9168 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9169 that allows to iterate over all subkeys of a key.
9171 2010-01-26 Ed Falis <falis@adacore.com>
9173 * sysdep.c: enable NFS for VxWorks MILS
9174 * env.c: enable __gnat_environ for VxWorks MILS
9175 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9177 2010-01-25 Bob Duff <duff@adacore.com>
9179 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9180 is an internally-generated positional aggregate, and the bounds are
9181 already correctly set. We don't want to overwrite those bounds with
9182 bounds determined by context.
9184 2010-01-25 Robert Dewar <dewar@adacore.com>
9186 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9187 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9189 2010-01-25 Thomas Quinot <quinot@adacore.com>
9191 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9192 integer type) before subtracting 1, otherwise the computation may wrap
9193 (because size_t is modular) and cause the conversion to fail.
9195 2010-01-25 Ed Falis <falis@adacore.com>
9197 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9199 2010-01-25 Vincent Celier <celier@adacore.com>
9201 * prj-attr.adb: New attribute Run_Path_Origin_Required
9202 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9203 attribute Run_Path_Origin_Required.
9204 * prj.ads (Project_Configuration): New component
9205 Run_Path_Origin_Supported.
9206 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9208 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9210 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9211 have errors, do not continue resolution of the aggregate.
9212 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9213 the array type indicates an error.
9215 2010-01-25 Bob Duff <duff@adacore.com>
9217 * sinfo.ads: Minor comment fixes.
9219 2010-01-25 Bob Duff <duff@adacore.com>
9221 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9223 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9225 * gnatvsn.ads (Current_Year): Update.
9227 2010-01-25 Florian Villoing <villoing@adacore.com>
9229 * gnat_ugn.texi: Fix typo.
9231 2010-01-25 Thomas Quinot <quinot@adacore.com>
9233 * scos.ads: Update specification.
9235 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9237 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9238 enclosing subprogram has no previous spec, attach postcondition
9239 procedure to the defining entity for the body.
9241 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9243 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9244 initialization procedure of the ancestor part of an extension aggregate
9245 if it is an interface type.
9247 2010-01-25 Vincent Celier <celier@adacore.com>
9249 * gnatlink.adb (Process_Binder_File): The directory for the shared
9250 version of libgcc in the run path options is found in the subdirectory
9251 indicated by __gnat_default_libgcc_subdir.
9252 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9255 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9257 * sem_prag.adb: More flexible pragma Annotate.
9259 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9261 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9262 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9264 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9266 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9268 2010-01-18 Jan Hubicka <jh@suse.cz>
9271 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9272 unit local variables.
9274 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9276 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9278 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9280 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9281 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9283 2010-01-09 Simon Wright <simon@pushface.org>
9286 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9291 Copyright (C) 2010 Free Software Foundation, Inc.
9293 Copying and distribution of this file, with or without modification,
9294 are permitted in any medium without royalty provided the copyright
9295 notice and this notice are preserved.