1 2010-10-11 Bob Duff <duff@adacore.com>
3 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
4 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
5 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
6 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
7 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
8 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
9 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
10 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
11 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
12 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
13 instead of Ada_05 (Ada_Version_Type).
15 2010-10-11 Bob Duff <duff@adacore.com>
17 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
18 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
19 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
20 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
23 2010-10-11 Javier Miranda <miranda@adacore.com>
25 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
26 dereference then do not exclude dereferences of access-to-constant
27 types to handle them as constant view of variables (and hence remove
28 side effects when required).
29 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
32 2010-10-11 Robert Dewar <dewar@adacore.com>
34 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
36 2010-10-11 Javier Miranda <miranda@adacore.com>
38 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
40 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
41 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
43 (Expand_Simple_Function_Return): Move to exp_ch6.
44 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
45 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
47 2010-10-11 Robert Dewar <dewar@adacore.com>
49 * snames.ads-tmpl: Add names for aspects.
50 * aspects.ads, aspects.adb: New.
51 * gcc-interface/Make-lang.in: Update dependencies.
52 2010-10-11 Ed Schonberg <schonberg@adacore.com>
54 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
55 a task type, it must be replaced with a reference to Self.
57 2010-10-11 Vincent Celier <celier@adacore.com>
59 * adaint.h: Add prototype for function __gnat_create_output_file_new.
61 2010-10-11 Javier Miranda <miranda@adacore.com>
63 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
66 2010-10-11 Arnaud Charlet <charlet@adacore.com>
68 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
69 for AI05-0033 in CodePeer mode.
71 2010-10-11 Robert Dewar <dewar@adacore.com>
73 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
74 * csinfo.adb: Aspect_Specifications is a new special field
75 * einfo.adb (Flag3): New unused flag
76 * exp_util.adb (Insert_Actions): Add processing for
77 N_Aspect_Specification.
78 * sem.adb: Add entry for N_Aspect_Specification.
79 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
80 (Has_Aspect_Specifications): New flag
81 (Permits_Aspect_Specifications): New function
82 (Aspect_Specifications): New function
83 (Set_Aspect_Specifications): New procedure
84 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
85 (Sprint_Node): Add dummy entry for N_Aspect_Specification
86 * treepr.adb (Flag3): New flag to be listed
88 2010-10-11 Vincent Celier <celier@adacore.com>
90 * adaint.c: Minor reformatting.
92 2010-10-11 Robert Dewar <dewar@adacore.com>
94 * sem_ch6.adb, s-htable.ads: Minor reformatting.
96 2010-10-11 Ed Schonberg <schonberg@adacore.com>
98 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
99 invisible in an instantiation, and both the formal and the actual are
100 private extensions of the same type, look for the desired component in
101 the proper view of the parent type.
103 2010-10-11 Vincent Celier <celier@adacore.com>
105 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
106 AIX, Tru64, Darwin, IRIX and HP-UX.
108 2010-10-11 Robert Dewar <dewar@adacore.com>
110 * a-textio.adb: Minor reformatting
112 2010-10-11 Robert Dewar <dewar@adacore.com>
114 * a-suesen.ads, a-suenst.ads,
115 a-suesen.adb, a-suenst.adb,
116 a-suewse.adb, a-suewst.adb,
117 a-suewse.ads, a-suewst.ads,
118 a-suezse.ads, a-suezst.ads,
119 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
120 * impunit.adb: New names for string encoding units
121 * Makefile.rtl: New names for string encoding units
122 * rtsfind.ads: Minor code reorganization.
124 2010-10-11 Ed Schonberg <schonberg@adacore.com>
126 * exp_ch5.adb: Code clean up.
128 2010-10-11 Ed Schonberg <schonberg@adacore.com>
130 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
131 returns when in a generic context.
132 (Analyze_Function_Return): ditto.
134 2010-10-11 Robert Dewar <dewar@adacore.com>
136 * s-multip.ads: Fix header.
137 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
139 2010-10-11 Vincent Celier <celier@adacore.com>
141 * Makefile.rtl: Add s-multip.
142 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
143 defaulting to 1 for other platforms.
144 * adaint.h: New function __gnat_number_of_cpus.
145 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
146 with a single component "s-multip".
147 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
149 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
150 * s-multip.ads, s-multip.adb: New Ada 2012 package.
151 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
153 2010-10-11 Javier Miranda <miranda@adacore.com>
155 * a-textio.adb: Move new implementation of Get_Line to a subunit.
156 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
158 2010-10-11 Ed Schonberg <schonberg@adacore.com>
160 * sem_aux.adb: Code clean up.
162 2010-10-11 Robert Dewar <dewar@adacore.com>
164 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
166 2010-10-11 Robert Dewar <dewar@adacore.com>
168 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
169 Flag248-Flag254. Define new field Field29.
171 2010-10-10 Olivier Hainque <hainque@adacore.com>
172 Eric Botcazou <ebotcazou@adacore.com>
174 * gcc-interface/lang.opt (gdwarf+): Remove.
175 * gcc-interface/gigi.h (get_parallel_type): Likewise
176 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
177 (gnat_handle_option): Remove OPT_gdwarfplus case.
178 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
179 from gnat_dwarf_extensions.
180 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
181 * gcc-interface/utils.c (get_parallel_type): Remove.
183 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
185 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
186 invert_truthvalue_loc instead of invert_truthvalue.
187 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
188 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
190 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
192 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
193 assertion on the types of the parameters. Use KIND local variable.
194 <E_Incomplete_Type>: Likewise.
196 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
198 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
199 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
200 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
201 (gnat_to_gnu_entity): Adjust calls to annotate_object.
202 (gnat_to_gnu_param): If fat pointer types are passed by reference on
203 the target, pass them by explicit reference.
204 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
205 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
206 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
207 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
208 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
210 (build_function_stub): Iterate on the parameters of the subprogram in
211 lieu of on the argument types. Adjust call to convert_vms_descriptor.
213 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
215 * gcc-interface/misc.c: Delete prototypes.
216 (gnat_init_options): Use local variable.
217 (lang_hooks): Move to the end of the file.
219 2010-10-08 Joseph Myers <joseph@codesourcery.com>
221 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
222 from gnat_init_options.
223 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
225 2010-10-08 Ed Schonberg <schonberg@adacore.com>
227 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
229 2010-10-08 Robert Dewar <dewar@adacore.com>
231 * exp_ch3.adb: Minor reformatting.
232 * exp_ch5.adb: Add comment.
234 2010-10-08 Robert Dewar <dewar@adacore.com>
236 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
237 * gcc-interface/Make-lang.in: Update dependencies.
238 * einfo.ads: Minor reformatting.
240 2010-10-08 Ed Schonberg <schonberg@adacore.com>
242 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
243 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
244 exp_ch3.adb: Change Is_Inherently_Limited_Type to
245 Is_Immutably_Limited_Type to accord with new RM terminology.
246 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
247 of a formal limited private type is not immutably limited in a generic
250 2010-10-08 Robert Dewar <dewar@adacore.com>
252 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
253 Add calls to this new procedure where appropriate
255 2010-10-08 Vincent Celier <celier@adacore.com>
257 * a-textio.adb (Get_Chunk): Code clean up.
259 2010-10-08 Robert Dewar <dewar@adacore.com>
261 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
262 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
263 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
264 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
265 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
266 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
267 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
268 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
271 2010-10-08 Robert Dewar <dewar@adacore.com>
273 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
274 packages can depend on preleborated packages.
276 2010-10-08 Robert Dewar <dewar@adacore.com>
278 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
279 Interrupt_Handler and Attach_Handler not allowed in generics.
281 2010-10-08 Robert Dewar <dewar@adacore.com>
283 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
284 * ali.ads (Allocator_In_Body): New flag
285 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
286 program violating No_Allocators_After_Elaboration restriction.
287 * gnatbind.adb (No_Restriction_List): Add entries for
288 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
289 * lib-load.adb: Initialize Has_Allocator flag
290 * lib-writ.adb: Initialize Has_Allocator flag
291 (M_Parameters): Set AB switch if Has_Allocator flag set
292 * lib-writ.ads: Document AB flag on M line
293 * lib.adb (Has_Allocator): New function
294 (Set_Has_Allocator): New procedure
295 * lib.ads (Has_Allocator): New function
296 (Set_Has_Allocator): New procedure
297 (Has_Allocator): New flag in Unit_Record
298 * sem_ch4.adb (Analyze_Allocator): Add processing for
299 No_Allocators_After_Elaboration.
301 2010-10-08 Geert Bosch <bosch@adacore.com>
303 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
305 2010-10-08 Javier Miranda <miranda@adacore.com>
307 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
308 Java_Constructors because in the JRE library we generate occurrences
309 in which the "this" parameter is not the first formal.
311 2010-10-08 Robert Dewar <dewar@adacore.com>
313 * par-ch3.adb: Minor reformatting.
315 2010-10-08 Javier Miranda <miranda@adacore.com>
317 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
320 2010-10-08 Robert Dewar <dewar@adacore.com>
322 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
324 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
325 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
326 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
327 No_Anonymous_Allocators.
329 2010-10-08 Vincent Celier <celier@adacore.com>
331 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
332 restriction, so that the last comma is always replaced with a left
335 2010-10-08 Javier Miranda <miranda@adacore.com>
337 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
338 first formal of delegates.
340 2010-10-08 Robert Dewar <dewar@adacore.com>
342 * sem_aggr.adb: Minor reformatting.
344 2010-10-08 Robert Dewar <dewar@adacore.com>
346 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
347 sequence for soft hyphen for Character'Image case.
348 * rtsfind.ads (Image_Character_05): New entry
349 * s-imgcha.adb (Image_Character_05): New procedurew
350 * s-imgcha.ads (Image_Character_05): New procedure
351 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
353 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
354 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
357 2010-10-08 Robert Dewar <dewar@adacore.com>
359 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
360 for case of Wide_[Wide_]Character.
362 2010-10-08 Robert Dewar <dewar@adacore.com>
364 * exp_ch3.adb: Minor reformating
365 Minor code reorganization.
367 2010-10-08 Javier Miranda <miranda@adacore.com>
369 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
370 pragmas CIL_Constructor and Java_Constructor.
371 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
372 predefined primitives for CIL/Java tagged types.
374 2010-10-08 Robert Dewar <dewar@adacore.com>
376 * sem_ch6.adb: Minor reformatting.
378 2010-10-08 Robert Dewar <dewar@adacore.com>
380 * gnat1drv.adb: Add call to Validate_Independence.
381 * par-prag.adb: Add dummy entries for Independent,
382 Independent_Componentsa.
383 * sem_ch13.adb (Validate_Independence): New procedure
384 (Initialize): Initialize address clause and independence check tables
385 * sem_ch13.ads (Independence_Checks): New table
386 (Validate_Independence): New procedure
387 * sem_prag.adb: Add processing for pragma Independent[_Components]
388 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
390 2010-10-08 Ed Schonberg <schonberg@adacore.com>
392 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
393 component with box initialization, if the component is a variant record
394 use the values of the discriminants to select the proper variant for
395 further box initialization.
397 2010-10-08 Thomas Quinot <quinot@adacore.com>
399 * xsnames.adb: Remove obsolete file.
400 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
402 2010-10-08 Ed Schonberg <schonberg@adacore.com>
404 * exp_aggr.adb: Complete previous change.
406 2010-10-08 Ed Schonberg <schonberg@adacore.com>
408 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
409 extended return must match statically the return subtype of the
410 enclosing function if the type is an elementary type or if it is
413 2010-10-08 Vincent Celier <celier@adacore.com>
415 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
416 names. Do not report the same duplicate unit several times.
417 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
418 defaulted to False, to avoid reporting the same unit as duplicate
421 2010-10-08 Ed Schonberg <schonberg@adacore.com>
423 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
424 others choice is a literal, analyze it to enable later optimizations.
425 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
426 and components can be handled by the backend even if it is of a limited
429 2010-10-08 Arnaud Charlet <charlet@adacore.com>
431 * a-rttiev.adb (task Timer): Since this package may be elaborated
432 before System.Interrupt, we need to call Setup_Interrupt_Mask
433 explicitly to ensure that this task has the proper signal mask.
435 2010-10-08 Robert Dewar <dewar@adacore.com>
437 * freeze.adb (Freeze_Entity): For array case, move some processing for
438 pragma Pack, Component_Size clause and atomic/volatile components here
439 instead of trying to do the job in Sem_Ch13 and Freeze.
440 * layout.adb: Use new Addressable function
441 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
442 Component_Size): Move some handling to freeze point in
443 Freeze.Freeze_Entity.
444 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
445 freeze point in Freese.Freeze_Entity.
446 * sem_util.ads, sem_util.adb (Addressable): New function.
448 2010-10-08 Robert Dewar <dewar@adacore.com>
450 * sprint.adb: Minor reformatting.
452 2010-10-08 Javier Miranda <miranda@adacore.com>
454 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
456 2010-10-08 Robert Dewar <dewar@adacore.com>
458 * sem_ch3.adb: Minor reformatting.
460 2010-10-08 Vincent Celier <celier@adacore.com>
462 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
464 * prj-proc.adb (Expression): Process string list external references.
465 * prj-strt.adb (External_Reference): Parse external_as_list external
467 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
468 (Set_Expression_Kind_Of): Ditto
469 * prj.adb (Initialize): Set external_as_list as a reserved word
470 * projects.texi: Document new string external reference
472 * scans.ads (Token_Type): New token Tok_External_As_List
473 * snames.ads-tmpl: New standard name Name_External_As_List
475 2010-10-08 Thomas Quinot <quinot@adacore.com>
477 * sem_prag.adb: Minor reformatting.
479 2010-10-08 Ed Schonberg <schonberg@adacore.com>
481 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
482 instance, it is legal to derive from a non-limited actual when the
483 formal type is untagged limited.
484 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
485 analyzed formal as Generic_Parent_Type, to simplify later checks.
487 2010-10-08 Ed Schonberg <schonberg@adacore.com>
489 * sem_res.adb (Insert_Default): If default value is already a
490 raise_constraint_error do not rewrite it as new raise node, to prevent
491 infinite loops in the warning removal machinery.
493 2010-10-08 Robert Dewar <dewar@adacore.com>
495 * sem_util.adb, sem_prag.adb: Minor reformatting
497 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
499 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
500 Add section on pragma Implemented.
502 2010-10-08 Ed Schonberg <schonberg@adacore.com>
504 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
505 concrete parent with a concrete constructor, the inherited constructor
506 is abstract even if the derived type is a null extension.
508 2010-10-08 Thomas Quinot <quinot@adacore.com>
510 * sem_ch4.adb: Minor reformatting.
512 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
514 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
515 (Implemented_By_Entry): Removed.
516 (Set_Implemented_By_Entry): Removed.
517 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
518 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
519 (Implemented_By_Entry): Removed along with its associated pragma.
520 (Set_Implemented_By_Entry): Removed along with its associated pragma.
521 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
522 (Build_Dispatching_Call_Equivalent): New routine.
523 (Build_Dispatching_Requeue): New routine.
524 (Build_Dispatching_Requeue_To_Any): New routine.
525 (Build_Normal_Requeue): New routine.
526 (Build_Skip_Statement): New routine.
527 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
529 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
531 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
533 (Check_Pragma_Implemented): New routines.
534 (Inherit_Pragma_Implemented): New routine.
535 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
537 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
538 and adding Implemented.
539 (Ada_2012_Pragma): New routine.
540 (Analyze_Pragma, case Implemented): Perform all necessary checks
541 concerning pragma Implemented and register the pragma as a
542 representation item with the procedure_LOCAL_NAME.
543 (Analyze_Pragma, case Implemented_By_Entry): Removed.
544 * sem_util.adb (Implementation_Kind): New routine.
545 * sem_util.ads (Implementation_Kind): New routine.
546 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
547 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
548 add Pragma_Implemented. Add special names By_Any, By_Entry and
549 By_Protected_Procedure.
551 2010-10-08 Javier Miranda <miranda@adacore.com>
553 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
554 variable Has_Static_DT by invocation of function Building_Static_DT.
556 2010-10-08 Vincent Celier <celier@adacore.com>
558 * g-dirope.adb (Remove_Dir): Do not change the current directory when
559 doing a recursive remove of a subdirectory.
561 2010-10-08 Javier Miranda <miranda@adacore.com>
563 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
564 * exp_disp.adb (Make_Secondary_DT): Factorize code.
565 (Make_DT): Factorize code.
567 2010-10-08 Robert Dewar <dewar@adacore.com>
569 * sem_ch4.adb: Minor reformatting.
571 2010-10-08 Robert Dewar <dewar@adacore.com>
573 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
576 2010-10-08 Thomas Quinot <quinot@adacore.com>
578 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
579 consistency with Gen_T in Instantiate_Type.
580 Introduce constant A_Gen_Obj to avoid repeated queries for
581 Defining_Identifier (Analyzed_Formal).
583 2010-10-08 Vincent Celier <celier@adacore.com>
585 * prj-nmsc.adb: Minor comment fix.
587 2010-10-07 Robert Dewar <dewar@adacore.com>
589 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
590 * gcc-interface/Make-lang.in: Update dependencies.
592 2010-10-07 Ed Schonberg <schonberg@adacore.com>
594 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
595 unit, if the type of the formal is declared in a parent unit and is not
596 a formal itself, the actual must be located from an enclosing parent
597 instance by normal visibility.
599 2010-10-07 Ed Schonberg <schonberg@adacore.com>
601 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
602 indicator is illegal for an uninitialized allocator.
604 2010-10-07 Robert Dewar <dewar@adacore.com>
606 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
607 Component_Size): Complete previous change.
609 2010-10-07 Vincent Celier <celier@adacore.com>
611 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
612 even for keywords, to avoid having the checksum to depend on the Ada
615 2010-10-07 Gary Dismukes <dismukes@adacore.com>
617 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
618 exp_ch3.adb: Minor reformatting.
620 2010-10-07 Robert Dewar <dewar@adacore.com>
622 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
623 Component_Size): It is now illegal to give an incorrect component size
624 clause in the case of aliased or atomic components.
625 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
626 an effective pragma Pack in the case of aliased or atomic components.
628 2010-10-07 Steve Baird <baird@adacore.com>
630 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
631 in the case of a violation of an active No_Task_Hierarchy restriction.
633 2010-10-07 Ed Schonberg <schonberg@adacore.com>
635 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
636 type is non-limited, an actual for it cannot be limited.
638 2010-10-07 Robert Dewar <dewar@adacore.com>
640 * einfo.ads (No_Pool_Assigned): Update documentation.
641 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
642 Storage_Size): We only set No_Pool_Assigned if the expression is a
643 static constant and zero.
644 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
645 should be an error not a warning.
647 2010-10-07 Ed Schonberg <schonberg@adacore.com>
649 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
650 where an aggregate in an assignment can be built directly into the
651 target, and does not require the creation of a temporary that may
654 2010-10-07 Ed Schonberg <schonberg@adacore.com>
656 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
657 in a record aggregate can correspond to several components of
658 anonymous access types, as long as the designated subtypes match.
660 2010-10-07 Robert Dewar <dewar@adacore.com>
662 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
663 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
664 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
665 spelling parametrize(d) => parameterize(d).
667 2010-10-07 Robert Dewar <dewar@adacore.com>
669 * sem_ch12.adb: Add comment.
670 * sem_ch6.adb: Minor reformatting.
672 2010-10-07 Robert Dewar <dewar@adacore.com>
674 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
675 Pexp to Pf_Rec constants
676 (P_Subprogram): Expression is always enclosed in parentheses
677 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
678 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
680 2010-10-07 Ed Schonberg <schonberg@adacore.com>
682 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
683 checks on functions that return an abstract type or have a controlling
684 result whose designated type is an abstract type.
685 (Check_Private_Overriding): Implement Ada2012 checks on functions
686 declared in the private part, if an abstract type is involved.
687 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
688 reject a generic function that returns an abstract type.
689 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
690 function has a controlling access result, check that the tag of the
691 return value matches the designated type of the return expression.
693 2010-10-07 Robert Dewar <dewar@adacore.com>
695 * par-ch6.adb: Fix error in handling of parametrized expressions.
696 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
698 (P_Simple_Expression): Better message for qualified expression prefix
699 * s-crc32.adb: Minor reformatting.
700 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
701 storage pool (this test is moved to Sem_Intr).
702 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
703 empty storage pool, moved here from Exp_Intr and made into error.
704 (Check_Intrinsic_Call): Remove assumption in generating not-null free
705 warning that the name of the instantiation is Free.
706 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
708 * types.ads: Remove storage size clauses from big types (since we may
709 need to do deallocations, which are now illegal for empty pools).
711 2010-10-07 Sergey Rybin <rybin@adacore.com>
713 * gnat_ugn.texi: Add missing word.
715 2010-10-07 Robert Dewar <dewar@adacore.com>
717 * exp_util.adb (Insert_Actions): Add handling of
718 N_Parametrized_Expression.
719 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
720 * sem.adb: Add entry for N_Parametrized_Expression
721 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
722 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
723 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
724 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
725 * par-ch4.adb: Minor reformatting.
727 2010-10-07 Robert Dewar <dewar@adacore.com>
729 * scng.adb (Skip_Other_Format_Characters): New procedure
730 (Start_Of_Wide_Character): New procedure
731 (Scan): Use Start_Of_Wide_Character where appropriate
732 (Scan): Improve error message for other_format chars in identifier
733 (Scan): Allow other_format chars between tokens
735 2010-10-07 Javier Miranda <miranda@adacore.com>
737 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
738 Add missing support for explicit dereferences.
740 2010-10-07 Robert Dewar <dewar@adacore.com>
742 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
744 2010-10-07 Robert Dewar <dewar@adacore.com>
746 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
747 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
748 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
749 Exp_Util.Fully_Qualified_Name_String.
751 2010-10-07 Robert Dewar <dewar@adacore.com>
753 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
754 * sem_res.adb (Resolve_Call): A call to
755 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
756 No_Relative_Delay (AI-0211).
758 2010-10-07 Ed Schonberg <schonberg@adacore.com>
760 * sem_ch10.adb: Small change in error message.
762 2010-10-07 Robert Dewar <dewar@adacore.com>
764 * tbuild.ads: Minor reformatting.
766 2010-10-07 Robert Dewar <dewar@adacore.com>
768 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
770 2010-10-07 Arnaud Charlet <charlet@adacore.com>
772 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
774 2010-10-07 Robert Dewar <dewar@adacore.com>
776 * sem_res.adb: Minor reformatting
778 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
780 * gnat_ugn.texi: Minor editing.
781 * opt.ads: Document that scripts rely on specific formats in opt.ads
783 2010-10-07 Robert Dewar <dewar@adacore.com>
785 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
786 (To_Upper_Case): Fix to be inverse of To_Lower_Case
787 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
788 (To_Upper_Case): Fix to be inverse of To_Lower_Case
790 2010-10-07 Robert Dewar <dewar@adacore.com>
792 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
793 * impunit.adb: Add entries for a-wichha/a-zchhan
794 * Makefile.rtl: Add entries for a-wichha/a-zchhan
796 2010-10-07 Vincent Celier <celier@adacore.com>
798 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
799 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
800 replaced source, check that none of the replaced sources are in the
802 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
803 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
804 replaced with a source with a different file name, put it in the hash
805 table Replaced_Sources.
806 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
807 one replaced source, check if it has the same file name as the current
808 source; if it has, remove it from the hash table Replaced_Sources.
809 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
810 * prj.ads (Replaced_Source_HTable): New hash table
811 (Project_Tree_Data): New components Replaced_Sources and
812 Replaced_Source_Number.
814 2010-10-07 Ed Schonberg <schonberg@adacore.com>
816 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
817 proper flag to prevent a double elaboration check on the same call.
818 * exp_util.adb (Insert_Actions): If the enclosing node is an
819 Expression_With_Actions and it has been analyzed already, find
820 insertion point further up in the tree.
822 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
824 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
825 local variables. Remove the general restriction which prohibits the
826 application of record rep clauses to Unchecked_Union types. Add Ada
827 2012 check to detect improper naming of an Unchecked_Union
828 discriminant in record rep clause.
829 * sem_prag.adb: Add with and use clause for Exp_Ch7.
830 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
831 type to all invocations of Check_Component and Check_Variant.
832 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
833 Rewritten. Add Ada 2012 check to detect improper use of formal
834 private types and private extensions as component types of an
835 Unchecked_Union declared inside a generic body.
836 (Check_Variant): Add formal parameter UU_Typ. Propagate the
837 Unchecked_Union type to all calls of Check_Component. Signal that the
838 current component comes from the variant part of an Unchecked_Union
840 (Inside_Generic_Body): New routine.
842 2010-10-07 Ed Schonberg <schonberg@adacore.com>
844 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
845 equality operation for a record component, verify that both formals
846 have the same type, and the result type is boolean.
848 2010-10-07 Vincent Celier <celier@adacore.com>
850 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
851 binder generated file, look for both b~xxx and b__xxx as gprbuild
852 always uses b__ as the prefix of such files.
854 2010-10-07 Thomas Quinot <quinot@adacore.com>
856 * sem_res.adb: Minor reformatting.
858 2010-10-07 Arnaud Charlet <charlet@adacore.com>
860 * debug.adb: Update -gnatd.J documentation.
862 2010-10-07 Robert Dewar <dewar@adacore.com>
864 * gnat_rm.texi: Document handling of invalid values
865 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
867 (UTF_To_Upper_Case): New function.
869 2010-10-07 Robert Dewar <dewar@adacore.com>
871 * sem_attr.adb: Minor reformatting.
872 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
873 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
875 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
877 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
878 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
879 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
881 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
883 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
884 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
887 2010-10-07 Javier Miranda <miranda@adacore.com>
889 * a-tags.ads: Use new support for pragma Ada_2012 with function
892 2010-10-07 Ed Schonberg <schonberg@adacore.com>
894 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
895 sequence of statements.
897 2010-10-07 Vincent Celier <celier@adacore.com>
899 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
901 2010-10-07 Javier Miranda <miranda@adacore.com>
903 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
904 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
905 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
907 2010-10-07 Arnaud Charlet <charlet@adacore.com>
909 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
910 (Analyze_Package_Instantiation): No longer analyze systematically a
911 generic body in CodePeer mode.
912 * freeze.adb, sem_attr.adb: Update comments.
914 2010-10-05 Robert Dewar <dewar@adacore.com>
916 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
919 2010-10-05 Pascal Obry <obry@adacore.com>
921 * gnat_rm.texi: Fix typo.
923 2010-10-05 Arnaud Charlet <charlet@adacore.com>
925 * gnat_ugn.texi: Add note about identifiers with same name and
928 2010-10-05 Robert Dewar <dewar@adacore.com>
930 * sem_ch4.adb: Minor reformatting.
931 * a-direct.ads: Minor comment update.
933 2010-10-05 Javier Miranda <miranda@adacore.com>
935 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
936 no longer required after change in New_Overloaded_Entity.
937 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
938 the fragment of code that handles derivations of interface primitives.
939 Add missing dependence on global variable Inside_Freezing_Actions to
940 ensure the correct management of internal interface entities.
941 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
942 of the global variable Inside_Freezing_Actions to ensure that internal
943 interface entities are well handled by New_Overloaded_Entity.
944 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
945 and complete the algorithm to catch hidden primitives derived of
946 private type that covers the interface.
947 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
950 2010-10-05 Robert Dewar <dewar@adacore.com>
952 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
953 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
954 Minor code reorganization (use Nkind_In).
956 2010-10-05 Ed Schonberg <schonberg@adacore.com>
958 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
961 2010-10-05 Vincent Celier <celier@adacore.com>
963 * gnatbind.adb: If the main library file is not for a suitable main
964 program, change the error message.
966 2010-10-05 Vincent Celier <celier@adacore.com>
968 * a-direct.ads: Minor spelling error fixes in comments.
969 * gnat_rm.texi: Add three entries in "Implementation Defined
970 Characteristics" for the interpretations of the Form parameters in
973 2010-10-05 Robert Dewar <dewar@adacore.com>
975 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
976 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
977 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
981 2010-10-05 Ed Schonberg <schonberg@adacore.com>
983 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
984 an explicit dereference of an access to function, the prefix is not
985 interpreted as a parameterless call.
987 2010-10-05 Ed Schonberg <schonberg@adacore.com>
989 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
992 2010-10-05 Vincent Celier <celier@adacore.com>
994 * make.adb (Switches_Of): Allow wild cards in index of attributes
996 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
997 of the associative array as a glob regular expression.
998 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
999 Allow_Wildcards, defaulted to False.
1000 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
1001 * projects.texi: Document that attribute Switches (<file name>) may
1002 use wild cards in the index.
1004 2010-10-05 Robert Dewar <dewar@adacore.com>
1006 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
1007 einfo.adb: Minor reformatting.
1008 * debug.adb: Remove obsolete documentation for d.Z flag.
1010 2010-10-05 Vincent Celier <celier@adacore.com>
1012 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
1013 switch --create-info-file=.
1014 * gnat_ugn.texi: Add documentation for new gnatmake switch
1017 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1019 * sem_ch3.adb: Do not elaborate type definition if syntax error.
1021 2010-10-05 Javier Miranda <miranda@adacore.com>
1023 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
1024 to generate the full-qualified names of its corresponding spec.
1025 This facilitates locating the corresponing body when reading
1028 2010-10-05 Thomas Quinot <quinot@adacore.com>
1030 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
1031 canonical name without serial number only if the helper is becoming a
1032 primitive of the type.
1034 2010-10-05 Javier Miranda <miranda@adacore.com>
1036 * exp_disp.adb (Make_DT): Minor code reorganization.
1038 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1040 * par-ch6.adb: improve recovery with extra paren in function spec.
1042 2010-10-05 Quentin Ochem <ochem@adacore.com>
1044 * prj-tree.ads: Project_Path is now aliased.
1046 2010-10-05 Thomas Quinot <quinot@adacore.com>
1048 * checks.adb: Minor reformatting.
1050 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
1052 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
1053 (Shared_Libgcc): New aliased variable.
1054 (Shared_Libgcc_Switch): New constant.
1055 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
1056 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
1058 * gcc-interface/Make-lang.in: Update dependencies.
1060 2010-10-05 Vincent Celier <celier@adacore.com>
1062 * prj-part.adb (Parse_Simple_Project): When checking if a child project
1063 imports its parent project, also look in projects being extended by
1066 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
1068 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
1070 2010-10-05 Javier Miranda <miranda@adacore.com>
1072 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
1073 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
1074 activate this output.
1076 2010-10-05 Arnaud Charlet <charlet@adacore.com>
1078 * back_end.adb (Call_Back_End): Generate an error message when scil
1079 generation is enabled, and no scil back-end (by default) is available.
1081 2010-10-05 Javier Miranda <miranda@adacore.com>
1083 * debug.adb: Update documentation since -gnatd.Z is no longer required
1084 to generate the call-graph information.
1086 2010-10-05 Javier Miranda <miranda@adacore.com>
1088 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
1089 runtime access check by an equivalent expansion that causes
1090 no problems in the VM backend. The original expansion was
1091 not good for the VM backends because when Tagged_Type_Expansion
1092 is disabled the attribute Access_Disp_Table is not available.
1094 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1096 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
1097 is class-wide and T1 is its specific type.
1099 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1101 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
1103 2010-10-05 Vincent Celier <celier@adacore.com>
1105 * back_end.ads: Minor spelling error correction.
1107 2010-10-05 Arnaud Charlet <charlet@adacore.com>
1109 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
1110 warnings when -gnatC is specified here so that warnings can be
1111 re-enabled explicitly.
1112 (Adjust_Global_Switches): No longer suppress warnings.
1114 2010-10-05 Vincent Celier <celier@adacore.com>
1116 * makeutl.adb: Minor reformatting.
1118 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1120 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
1121 non-discrete type appears as an actual in a call.
1123 2010-10-05 Vincent Celier <celier@adacore.com>
1125 * make.adb (Scan_Make_Arg): Take into account new switch
1127 * makeusg.adb: Add line for new switch --source-info=file.
1128 * makeutl.ads (Source_Info_Option): New constant String for new builder
1130 * prj-conf.adb: Put subprograms in alphabetical order
1131 (Process_Project_And_Apply_Config): Read/write an eventual source info
1133 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
1135 (Look_For_Sources): If a source info file was successfully read, get
1136 the source data from the data read from the source info file.
1137 * prj-util.adb (Source_Info_Table): New table
1138 (Source_Info_Project_HTable): New hash table
1139 (Create): New procedure
1140 (Put (File), Put_Line): New procedures
1141 (Write_Source_Info_File): New procedure
1142 (Read_Source_Info_File): New procedure
1143 (Initialize): New procedure
1144 (Source_Info_Of): New procedure
1145 (Next): New procedure
1146 (Close): When file is an out file, fail if the buffer cannot be written
1147 or if the file cannot be close successfully.
1148 (Get_Line): Fail if file is an out file
1149 * prj-util.ads (Create): New procedure
1150 (Put (File), Put_Line): New procedures
1151 (Write_Source_Info_File): New procedure
1152 (Read_Source_Info_File): New procedure
1153 (Source_Info_Data): New record type
1154 (Source_Info_Iterator): New private type
1155 (Initialize): New procedure
1156 (Source_Info_Of): New procedure
1157 (Next): New procedure
1158 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
1159 Source_Info_File_Exists.
1161 2010-10-05 Ed Schonberg <schonberg@adacore.com>
1163 * exp_ch4.adb: Fix typo.
1165 2010-10-05 Thomas Quinot <quinot@adacore.com>
1167 * lib-writ.adb: Minor reformatting.
1169 2010-10-05 Javier Miranda <miranda@adacore.com>
1171 * sem_ch3.adb (Access_Definition): Remove useless code.
1173 2010-10-05 Emmanuel Briot <briot@adacore.com>
1175 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
1176 (Deep_Copy): Removed, not used.
1178 2010-10-05 Javier Miranda <miranda@adacore.com>
1180 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
1181 move code that searches in the list of primitives of a tagged type for
1182 the entity that will be overridden by user-defined routines.
1183 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
1184 previously located in routine Add_Internal_Interface_Entities.
1185 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
1186 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
1187 availability of attribute Alias.
1189 2010-10-05 Ed Falis <falis@adacore.com>
1191 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
1192 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
1193 Move definition of intContext to System.OS_Interface.
1194 Add necessary variants in System.VxWorks.Extensions.
1196 2010-10-05 Doug Rupp <rupp@adacore.com>
1198 * s-asthan-vms-alpha.adb: On VMS, a task using
1199 pragma AST_Entry exhibits a memory leak when the task terminates
1200 because the vector allocated for the AST interface is not freed. Fixed
1201 by making the vector a controlled type.
1203 2010-10-05 Emmanuel Briot <briot@adacore.com>
1205 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
1206 a "**" pattern properly exists, and report an error otherwise.
1208 2010-10-05 Emmanuel Briot <briot@adacore.com>
1210 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
1212 2010-10-05 Emmanuel Briot <briot@adacore.com>
1214 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
1216 Extract some code from Get_Directories, to share with the handling
1217 of aggregate projects (for the Project_Files attributes)
1219 2010-10-05 Emmanuel Briot <briot@adacore.com>
1221 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
1222 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
1223 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
1226 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
1228 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
1230 2010-10-05 Emmanuel Briot <briot@adacore.com>
1232 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
1233 (Aggregate projects): added support for parsing aggregate projects.
1234 In particular, check the presence and value of the new attributes
1235 related to aggregate projects, ie Project_Files, Project_Path
1237 (Check_Attribute_Allowed, Check_Package_Allowed,
1238 Rename_Obsolescent_Attributes): new subprogram, extracting code
1239 from existing subprogram to keep their sizes smaller.
1240 (Check_Aggregate_Project, Check_Abstract_Project,
1241 Check_Missing_Sources): new subprograms
1242 (Check): remove comments that duplicated either the name of the
1243 following subprogram call, or the comment on that subprogram.
1244 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
1245 from Parse_Single_Project.
1246 (Check_Aggregate_Imports): new subprogram.
1248 2010-10-05 Vincent Celier <celier@adacore.com>
1250 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
1251 file has not been generated for the current source, for example if it
1252 has been generated for the spec, but we are compiling the body.
1254 2010-10-05 Bob Duff <duff@adacore.com>
1256 * xgnatugn.adb: Remove unused procedure.
1258 2010-10-04 Vincent Celier <celier@adacore.com>
1260 * a-direct.adb (Copy_File): Interpret the Form parameter and call
1261 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
1262 the Form parameter contains an incorrect value for field preserve= or
1264 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
1265 parameter is ignored.
1266 (Copy_File): Indicate the interpretation of the Form parameter.
1268 2010-10-04 Vincent Celier <celier@adacore.com>
1270 * make.adb (Gnatmake): When there are no foreign languages declared and
1271 a main in attribute Main of the main project does not exist or is a
1272 source of another project, fail immediately before attempting
1275 2010-10-04 Javier Miranda <miranda@adacore.com>
1277 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
1278 used to convert a node referencing a tag to a class-wide interface
1280 * exp_disp.adb (Convert_Tag_To_Interface): New function.
1281 (Expand_Interface_Conversion): Replace invocation of
1282 Unchecked_Conversion by new function Convert_Tag_To_Interface.
1283 (Write_DT): Add support for null primitives.
1284 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
1285 cleanup code that handles interface conversions and avoid unchecked
1286 conversion of referenced tag components.
1287 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
1288 unrequired conversions when generating a dispatching call to _assign.
1289 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
1291 2010-10-04 Ed Schonberg <schonberg@adacore.com>
1293 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
1294 parent is a binary boolean operation and the operand is an unpacked
1296 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
1297 the operands of the rewritten node are the operands of the negations,
1298 not the negations themselves.
1300 2010-10-04 Robert Dewar <dewar@adacore.com>
1302 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
1303 name of entity to biased warning msg.
1304 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
1305 biased rep (wrong and never worked anyway).
1307 2010-10-04 Arnaud Charlet <charlet@adacore.com>
1309 * sem_elab.adb: Minor reformatting.
1311 2010-10-04 Ed Schonberg <schonberg@adacore.com>
1313 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
1314 an access_to_protected subprogram type, and convert null value into
1315 corresponding aggregate.
1317 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
1319 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
1321 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
1323 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
1324 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
1327 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
1329 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
1330 for N_Operator_Symbol.
1331 (Indicate_Name_And_Type): Likewise.
1332 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
1333 * sem_res.adb (Resolve): Likewise.
1334 * sem_type.adb (Add_One_Interp): Likewise.
1335 (Disambiguate): Likewise.
1337 2010-10-04 Vincent Celier <celier@adacore.com>
1339 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
1340 than ALI file timestamp, return null.
1342 2010-10-04 Vincent Celier <celier@adacore.com>
1344 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
1345 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
1346 replaces global constant with the same name. When a line is too long,
1347 indent properly the next continuation line.
1348 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
1349 from 50 to 255, defaulted to 255, to indicate the maximum length of
1350 lines in the project file.
1352 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
1354 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
1355 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
1356 of Traverse_Func on it to look for subprogram references in a body.
1357 Call Check_Subprogram_Refs on the body of inlined subprograms at the
1358 outer level and keep clearing the Is_Public flag of subprograms as long
1359 as it returns OK. Do not look at anything else than subprograms once
1360 an inlined subprogram has been seen.
1362 2010-10-04 Javier Miranda <miranda@adacore.com>
1364 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
1365 the target object is an interface.
1366 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
1367 interface type then we generate an implicit conversion to force
1368 displacement of the pointer to the object to reference the secondary
1369 dispatch table associated with the interface.
1371 2010-10-04 Robert Dewar <dewar@adacore.com>
1373 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
1374 Enumeration_Rep_Expr to point to the literal, not the identifier.
1375 (Analyze_Enumeration_Representation_Clause): Improve error message for
1376 size too small for enum rep value
1377 (Analyze_Enumeration_Representation_Clause): Fix size test to use
1378 proper size (RM_Size, not Esize).
1380 2010-10-04 Robert Dewar <dewar@adacore.com>
1382 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
1384 2010-10-04 Javier Miranda <miranda@adacore.com>
1386 * exp_cg.adb (Write_Call_Info): Code clean up.
1388 2010-10-04 Arnaud Charlet <charlet@adacore.com>
1390 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
1392 2010-10-04 Robert Dewar <dewar@adacore.com>
1394 * exp_cg.adb: Minor code reorganization
1396 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
1398 2010-10-04 Bob Duff <duff@adacore.com>
1400 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
1401 to make a qualified expression into a name (syntax-wise), then do not
1402 consider it redundant.
1404 2010-10-04 Thomas Quinot <quinot@adacore.com>
1406 * sem_warn.ads: Fix typo.
1408 2010-10-04 Javier Miranda <miranda@adacore.com>
1410 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
1412 (Write_Call_Info): Add missing support for renamed primitives.
1414 2010-10-04 Thomas Quinot <quinot@adacore.com>
1416 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
1417 code between Make_Component_List_Assign and Make_Field_Assign.
1419 2010-10-04 Vincent Celier <celier@adacore.com>
1421 * prj-nmsc.adb (Get_Directories): For non extending projects that
1422 declare that they have no sources, do not create a non existing object
1423 or exec directory if builder switch -p is used.
1425 2010-10-04 Sergey Rybin <rybin@adacore.com>
1427 * gnat_ugn.texi (gnatcheck): Change the description of the report file
1430 2010-10-04 Ed Falis <falis@adacore.com>
1432 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
1433 determine whether Set_True is called from a task or an ISR.
1434 (Set_True): test for being in a task context before trying to
1435 dereference Defer_Abort or Undefer_Abort.
1437 2010-10-04 Robert Dewar <dewar@adacore.com>
1439 * sem_res.adb, sinput-l.adb: Minor reformatting.
1441 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
1443 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
1444 check when the target object is an interface since the expression of
1445 the right hand side must only cover the interface.
1447 2010-10-04 Vincent Celier <celier@adacore.com>
1449 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
1450 loading the main source, so that if it is preprocessed and -gnateG is
1451 used, the preprocessed file is written.
1452 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
1453 if a subunit is from the main unit when it is loaded.
1454 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
1455 to True before loading a subunit.
1456 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
1457 to True when the main is a generic unit before loading one of its
1459 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
1460 file only for the main unit (spec, body and subunits).
1462 2010-10-04 Vincent Celier <celier@adacore.com>
1464 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
1465 specified and the processed file cannot be written. Just issue a
1466 warning and continue.
1468 2010-10-04 Thomas Quinot <quinot@adacore.com>
1470 * sem_res.adb: Minor reformatting.
1472 2010-10-04 Ed Schonberg <schonberg@adacore.com>
1474 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
1475 is an overridden inherited operation, the desired operation is the
1476 overriding one, which is the alias of the visible one.
1478 2010-10-04 Ed Schonberg <schonberg@adacore.com>
1480 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
1481 present before deleting from the tree, when an inherited function with
1482 a controlling result that returns a null extension is overridden by a
1483 later declaration or body.
1485 2010-10-04 Gary Dismukes <dismukes@adacore.com>
1487 * checks.adb: Update comment.
1489 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1491 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
1492 and define as variables.
1493 (gnat_post_options): Set optimize and optimize_size variables.
1495 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
1497 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
1498 are not defined by target.
1500 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
1502 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
1504 2010-09-28 Richard Henderson <rth@redhat.com>
1506 * gcc-interface/misc.c (gnat_eh_personality): Use
1507 targetm.except_unwind_info.
1509 2010-09-28 Jan Hubicka <jh@suse.cz>
1511 * gcc-interface/utils.c (handle_leaf_attribute): New function.
1512 (gnat_internal_attribute_tables): Add leaf.
1514 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1516 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
1517 -include-directory, -include-directory=, -no-standard-includes,
1518 -no-standard-libraries): New.
1520 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
1522 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
1523 build_array_type with calls to build_nonshared_array_type.
1524 (substitute_in_type): Likewise.
1525 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
1526 (LANG_HOOKS_TYPE_HASH_EQ): Define.
1527 (gnat_post_options): Add 'static' keyword.
1528 (gnat_type_hash_eq): New static function.
1529 * gcc-interface/utils.c (fntype_same_flags_p): New function.
1530 (create_subprog_type): Call it.
1531 (create_index_type): Call build_nonshared_range_type and tidy up.
1532 (create_range_type): Likewise.
1533 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
1535 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1537 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
1539 (end_subprog_body): If the body is a BIND_EXPR, make its associated
1540 block the top-level one.
1541 (build_function_stub): Build a statement group for the whole function.
1542 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
1543 is used, create the enclosing block early and process first the OUT
1546 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1548 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
1549 not generate debug info for individual enumerators.
1551 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1553 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
1554 type instead of enumeral type as the dummy type built for the template
1555 type of fat pointers.
1557 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1559 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
1560 (gnat_zaplevel): Likewise.
1561 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
1562 binding level for an external constant.
1563 <E_Constant>: Force the local context and create a fake scope before
1564 translating the defining expression of an external constant.
1565 <object>: Treat external constants at the global level explicitly for
1566 renaming declarations.
1567 (elaborate_expression_1): Force the variable to be static if the
1568 expression is global.
1569 * gcc-interface/trans.c (get_elaboration_procedure): New function.
1570 (call_to_gnu): Use it.
1571 (gnat_to_gnu): Likewise.
1572 <N_Object_Declaration>: Do not test Is_Public to force the creation of
1573 an initialization variable.
1574 (add_decl_expr): Discard the statement if the declaration is external.
1575 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
1576 the current block if it is external.
1577 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
1578 (gnat_zaplevel): New global function.
1580 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1582 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
1583 variables against zero in all cases.
1584 (rest_of_type_decl_compilation): Likewise.
1585 * gcc-interface/trans.c (gigi): Pass properly typed constants to
1587 (call_to_gnu): Fix formatting.
1588 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
1589 (Exception_Handler_to_gnu_zcx): Likewise.
1590 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
1592 expressions in presence of a freeze node.
1594 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1596 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
1597 expressions for external constants that are aggregates.
1598 * gcc-interface/utils2.c (build_simple_component_ref): If the field
1599 is an inherited component in an extension, look through the extension.
1601 2010-09-10 Vincent Celier <celier@adacore.com>
1603 * projects.texi: Add documentation for package extensions
1604 Add some documentation for attributes Leading_Library_Options and
1605 Linker'Leading_Switches.
1607 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1609 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
1610 disabled, compute subtype for all string types.
1612 2010-09-10 Robert Dewar <dewar@adacore.com>
1614 * gnat_ugn.texi: Add documentation for -gnatw.s/S
1615 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1616 Component_Size): Implement warning on overriden size clause.
1617 (Analyze_Record_Representation_Clause): Implement warning on overriden
1619 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
1621 * ug_words: Add entries for -gnatw.s/S.
1622 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
1623 * gcc-interface/Make-lang.in: Update dependencies.
1625 2010-09-10 Vincent Celier <celier@adacore.com>
1627 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
1628 a package with the same name from an imported or extended project.
1629 * prj-proc.adb (Process_Declarative_Items): Process package extensions
1631 2010-09-10 Bob Duff <duff@adacore.com>
1633 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
1636 2010-09-10 Robert Dewar <dewar@adacore.com>
1638 * sem.adb: Minor reformatting.
1640 2010-09-10 Bob Duff <duff@adacore.com>
1642 * s-os_lib.ads, g-expect.ads: Add comments.
1644 2010-09-10 Robert Dewar <dewar@adacore.com>
1646 * exp_ch5.adb: Minor reformatting.
1648 2010-09-10 Thomas Quinot <quinot@adacore.com>
1650 * scos.ads: Add comments.
1652 2010-09-10 Vincent Celier <celier@adacore.com>
1654 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
1656 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
1658 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
1659 for a controlled build-in-place function call which appears in an
1660 anonymous context. The transient scope ensures that the intermediate
1661 function result is cleaned up after the master is left.
1662 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
1663 of the transient scope. This is now done in Exand_Call which covers
1664 additional cases other than secondary stack release.
1666 2010-09-10 Arnaud Charlet <charlet@adacore.com>
1668 * sem.adb (Do_Unit_And_Dependents): Add guard.
1670 2010-09-10 Robert Dewar <dewar@adacore.com>
1672 * exp_ch5.adb: Update comments.
1673 * exp_dist.adb: Minor reformatting.
1675 2010-09-10 Robert Dewar <dewar@adacore.com>
1677 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
1679 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
1680 * usage.adb: Add lines for -gnatw.h/H
1681 * gnat_ugn.texi: Add documentation for J519-010
1682 Warn on record holes/gaps
1683 * ug_words: Add entries for -gnatw.h/-gnatw.H
1684 * vms_data.ads: Add entries for [NO]AVOIDGAPS
1686 2010-09-10 Gary Dismukes <dismukes@adacore.com>
1688 * sem_ch6.adb: Update comment.
1690 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1692 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
1693 of full view analyzed after analyzing the corresponding record
1694 declaration, to prevent spurious name conflicts with original
1697 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
1699 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
1700 just issue a warning, but continue with the normal processing.
1702 2010-09-10 Robert Dewar <dewar@adacore.com>
1704 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
1707 2010-09-10 Thomas Quinot <quinot@adacore.com>
1709 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
1710 Build_TypeCode_Call): For a subtype inserted for the expansion of a
1711 generic actual type, go to the underlying type of the original actual
1714 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1716 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
1717 guard around the increment statement, to prevent an off-by-one-value
1718 on the last iteration.
1720 2010-09-10 Vincent Celier <celier@adacore.com>
1722 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
1723 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
1724 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
1725 "at run time" in comments and error/warning messages.
1727 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1729 * exp_cg.adb: Handle properly bodies without specs.
1731 2010-09-10 Emmanuel Briot <briot@adacore.com>
1733 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
1734 present, and the user requested to either ignore this or display a
1735 warning (as opposed to an error), we still need to register the
1738 2010-09-10 Robert Dewar <dewar@adacore.com>
1740 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
1741 now done in In_Extended_Main_Source_Unit.
1742 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
1743 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
1744 as Parsing_Main_Extended_Source.
1745 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
1747 * lib-load.adb (Load_Unit): Add PMES parameter
1748 Set PMES appropriately in all calls to Load_Unit
1749 * lib-load.ads (Load_Unit): Add PMES parameter
1750 * lib.adb (In_Extended_Main_Source_Unit): When called with
1751 Compiler_State set to Parsing, test new flag
1752 Compiling_Main_Extended_Source.
1753 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
1754 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
1755 as Parsing_Main_Extended_Source
1756 * par-load.adb (Load): Set PMES properly in call to Load_Unit
1758 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1760 * exp_cg.adb: Use proper entity to handle overloads.
1761 * sem_res.adb (Check_Parameterless_Call): An operator node without
1762 actuals cannot be a call, and must be treated as a string.
1764 2010-09-10 Robert Dewar <dewar@adacore.com>
1766 * frontend.adb: Minor reformatting.
1768 2010-09-10 Robert Dewar <dewar@adacore.com>
1770 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
1771 * par-ch5.adb (P_Condition): Move from body to spec
1772 * par.adb (Ch5.P_Condition): Move from body to spec
1774 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1776 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
1777 the call table is private, use its full view to generate information
1780 2010-09-10 Jose Ruiz <ruiz@adacore.com>
1782 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
1783 pattern matching to detect predefined primitive operations take into
1784 account that there can be an extra suffix related to body-nested
1787 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1789 * s-pooglo.ads: Add overriding indicators.
1791 2010-09-10 Vincent Celier <celier@adacore.com>
1793 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
1794 /64_MALLOC (for -H64).
1796 2010-09-10 Robert Dewar <dewar@adacore.com>
1798 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
1799 (Error_Msg_NW): Test Parsing_Main_Subunit flag
1800 * errout.ads (Parsing_Main_Subunit): New flag
1801 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
1802 * par-ch6.adb: Minor style fix (remove redandant parentheses)
1803 * par-ch9.adb: Minor style fix (remove redundant parens)
1804 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
1806 2010-09-10 Vincent Celier <celier@adacore.com>
1808 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
1809 function of the same name in Makeutl.
1810 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
1811 of removed procedure when creating a binder mapping file.
1812 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
1814 * makeutl.ads (Create_Binder_Mapping_File): New function
1816 2010-09-10 Jose Ruiz <ruiz@adacore.com>
1818 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
1819 separator when trying the pattern matching to detect predefined
1820 primitive operations.
1822 2010-09-10 Robert Dewar <dewar@adacore.com>
1824 * bindgen.adb, atree.adb: Minor reformatting.
1826 2010-09-10 Ben Brosgol <brosgol@adacore.com>
1828 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
1831 2010-09-10 Doug Rupp <rupp@adacore.com>
1833 * bindgen.adb: Minor comment fix for -H switch.
1835 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1837 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
1838 library unit now, by traversing tree before context is expanded.
1839 (Write_Call_Info): Use enclosing unit name directly.
1840 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
1841 tree earlier, to ensure that subsequent declarations are analyzed in a
1842 connected structure.
1843 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
1846 2010-09-10 Robert Dewar <dewar@adacore.com>
1848 * symbols-processing-vms-alpha.adb: Minor reformatting.
1850 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
1852 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
1853 __gnat_install_handler in case the binder is called with -n.
1855 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1857 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
1858 sloc for renaming declaration and set Comes_From_Source properly to
1859 ensure that references are properly generated for an object declaration
1860 that is built in place.
1862 2010-09-10 Tristan Gingold <gingold@adacore.com>
1864 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
1866 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
1867 * gcc-interface/Makefile.in: gnat.hlp is now generated by
1870 2010-09-10 Bob Duff <duff@adacore.com>
1872 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
1873 := ...;", remove side effects from the right-hand side, because they
1874 might affect the value of the left-hand side, but the left-hand side is
1875 first READ (so we can do shifting and masking) and then written back,
1876 which would cause the side effects to be incorrectly overwritten.
1878 2010-09-10 Robert Dewar <dewar@adacore.com>
1880 * sem_ch4.adb: Minor reformatting.
1881 * exp_ch6.adb: Add comment on testing limited on full type
1882 * gnat_rm.texi: Add documentation on Pure_Function.
1884 2010-09-10 Vincent Celier <celier@adacore.com>
1886 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
1887 as a source of another project and of another language.
1889 2010-09-10 Robert Dewar <dewar@adacore.com>
1891 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
1893 * freeze.adb (Check_Unsigned_Type): Ditto.
1894 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
1895 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
1896 (Set_Scalar_Range_For_Subtype): Ditto.
1897 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
1899 2010-09-10 Robert Dewar <dewar@adacore.com>
1901 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
1903 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
1904 rather than parens for fixed constants.
1905 * sprint.ads: Use square brackets rather than parens for fixed constants
1906 * urealp.adb (UR_Write): Use square brackets rather than parens
1907 (UR_Write): Add Brackets argument
1908 (UR_Write): Add many more special cases to output literals
1909 * urealp.ads (UR_Write): Use square brackets rather than parens
1910 (UR_Write): Add Brackets argument
1912 2010-09-10 Robert Dewar <dewar@adacore.com>
1914 * sem_ch4.adb: Minor reformatting.
1916 2010-09-10 Richard Guenther <rguenther@suse.de>
1918 * gcc-interface/utils.c (create_index_type): Use build_range_type.
1920 2010-09-10 Arnaud Charlet <charlet@adacore.com>
1922 * vms_cmds.ads: New.
1924 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
1926 * exp_dbug.ads: Mention enhanced encoding for array types.
1928 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
1930 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
1931 unsupported in VM targets. Display a warning in this case.
1933 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1935 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
1936 not reset Sloc when printing keyword "new".
1938 2010-09-10 Vincent Celier <celier@adacore.com>
1940 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
1941 GNAT_DRIVER_COMMAND_LINE.
1943 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1945 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
1946 clause, process the body at once.
1948 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1950 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
1951 conversion is the expression is a qualified expression used to
1952 disambiguate a function call.
1954 2010-09-10 Vincent Celier <celier@adacore.com>
1956 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
1957 as a source of another project and of another language.
1959 2010-09-10 Robert Dewar <dewar@adacore.com>
1961 * prj-util.adb: Minor reformatting.
1963 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
1965 * exp_disp.adb: Minor reformatting.
1967 2010-09-10 Arnaud Charlet <charlet@adacore.com>
1969 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
1972 2010-09-10 Thomas Quinot <quinot@adacore.com>
1974 * sem_res.adb: Minor reformatting.
1975 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
1976 magic constants for task master levels (instead, reference
1977 named numbers from System.Tasking).
1979 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
1981 * gnatvsn.ads (Ver_Prefix): New constant string.
1982 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
1983 (Gen_Output_File_C): Likewise.
1984 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
1987 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1989 * sem.adb (Walk_Library_Items): Do not traverse children of the main
1990 unit, to prevent spurious circularities in the walk order.
1991 (Depends_On_Main): Use elsewhere to prevent circularities when the body
1992 of an ancestor of the main unit depends on a child of the main unit.
1994 2010-09-10 Robert Dewar <dewar@adacore.com>
1996 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
1997 sem_ch3.adb: Minor reformatting.
1999 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2001 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
2002 that is a renaming must be derived like any other primitive operation,
2003 the renamed operation is not relevant to the derivation.
2005 2010-09-10 Robert Dewar <dewar@adacore.com>
2007 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
2008 * checks.adb: Minor reformatting.
2010 2010-09-10 Robert Dewar <dewar@adacore.com>
2012 * gnat_ugn.texi: Add section on intent of style checking options.
2014 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2016 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
2018 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2020 * sem_ch3.adb: Improve error message on derivation from class-wide type
2022 2010-09-10 Steve Baird <baird@adacore.com>
2024 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
2025 generation when Generate_SCIL is True.
2027 2010-09-10 Geert Bosch <bosch@adacore.com>
2029 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
2030 validity of executable name and removing any existing executable
2031 (Gnatlink): Call Check_Existing_Executable.
2033 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2035 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
2036 initialization of Task_Alternate_Stack here, cleaner since in case of
2037 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
2040 2010-09-10 Thomas Quinot <quinot@adacore.com>
2042 * s-fileio.adb, a-dirval.adb: Minor reformatting.
2044 2010-09-10 Emmanuel Briot <briot@adacore.com>
2046 * prj-util.adb (Executable_Of): Fix CE when the project does not
2047 contain a Builder package.
2049 2010-09-10 Vincent Celier <celier@adacore.com>
2051 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
2052 to the project path, if Prefix and Target_Name are defined.
2053 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
2055 2010-09-10 Ed Schonberg <schonberg@adacore.com>
2057 * checks.adb (Ensure_Valid): If the expression is a boolean expression
2058 or short-circuit operation, do no emit a validity check: only the
2059 elementary operands of the expression need checking.
2061 2010-09-10 Ben Brosgol <brosgol@adacore.com>
2063 * gnat_rm.texi: Document Short_Descriptors.
2065 2010-09-10 Arnaud Charlet <charlet@adacore.com>
2067 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
2068 initialize to Null_Address.
2069 (Enter_Task): Do not set up an alternate stack for foreign threads.
2071 2010-09-10 Robert Dewar <dewar@adacore.com>
2073 * opt.adb (Short_Descriptors): New flag
2074 (Short_Descriptors_Config): New flag
2075 * opt.ads (Short_Descriptors): New flag
2076 (Short_Descriptors_Config): New flag
2077 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
2078 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
2079 (Analyze_Pragma): Implement Short_Descriptors pragma
2080 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
2082 2010-09-10 Emmanuel Briot <briot@adacore.com>
2084 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
2085 project's Executable_Suffix.
2087 2010-09-10 Robert Dewar <dewar@adacore.com>
2089 * g-pehage.ads: Minor reformatting
2091 * gnat_ugn.texi: Clarifying comment on -gnatyc
2092 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
2095 2010-09-10 Tristan Gingold <gingold@adacore.com>
2097 * Make-generated.in (gnat.hlp): New rule.
2099 2010-09-10 Emmanuel Briot <briot@adacore.com>
2101 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
2104 2010-09-10 Robert Dewar <dewar@adacore.com>
2106 * einfo.adb: Minor code cleanup: Add assertion to
2107 Set_Corresponding_Protected_Entry.
2109 2010-09-10 Bob Duff <duff@adacore.com>
2111 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
2112 the output to standard output.
2114 2010-09-09 Vincent Celier <celier@adacore.com>
2116 * gnat_ugn.texi: Add documentation for new gnatmake switch
2118 * make.adb (Map_File): New global variable to store the value of switch
2120 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
2122 (Scan_Make_Arg): Recognize switch --create-map-file
2123 * makeutl.ads (Create_Map_File_Switch): New constant string for new
2124 gnatmake and gprbuild switch --create-map-file.
2126 2010-09-09 Robert Dewar <dewar@adacore.com>
2128 * sinput-p.ads: Minor comment update.
2130 2010-09-09 Arnaud Charlet <charlet@adacore.com>
2132 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
2133 Entry_Call.State if needed so that the call is marked as cancelled by
2134 Check_Pending_Actions_For_Entry_Call.
2135 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
2136 this procedure may be called from a controlled operation
2137 (Initialize/Finalize).
2139 2010-09-09 Vadim Godunko <godunko@adacore.com>
2141 * impunit.adb: Correct spelling of package's name in the comment.
2143 2010-09-09 Robert Dewar <dewar@adacore.com>
2145 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
2148 2010-09-09 Robert Dewar <dewar@adacore.com>
2150 * impunit.adb: Add entry for a-izteio.
2151 * checks.adb: Add comment.
2152 * debug.adb, exp_disp.adb: Minor reformatting.
2153 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
2155 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2157 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
2158 discriminant cannot be assumed to be the same value because they may
2159 refer to bounds of a component of two different instances of a
2162 2010-09-09 Gary Dismukes <dismukes@adacore.com>
2164 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
2165 operands of an operator to the type of an enclosing conversion, rewrite
2166 the operator so the conversion can't be flagged as redundant.
2167 Remove useless assignments to Typ and Rtyp.
2169 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
2171 * gnat_ugn.texi: Fix another long line.
2173 2010-09-09 Bob Duff <duff@adacore.com>
2175 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
2178 2010-09-09 Matthew Heaney <heaney@adacore.com>
2180 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
2181 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
2182 Replace_Element, Reverse_Elements, Swap): Change exception message to
2183 correctly indicate kind of tampering (cursor or element).
2184 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
2185 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
2186 Swap_Links, Replace_Element, Swap): Ditto.
2187 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
2188 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
2189 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
2190 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
2191 Generic_Replace_Element): Ditto
2192 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
2193 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
2194 Replace_Element): Ditto.
2195 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
2196 Symmetric_Difference, Union, Include, Replace): Ditto
2198 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2200 * sprint.adb (Write_Id): If the parent node is an expanded name, check
2201 that its entity_or_associated_node is an entity before writing it out.
2202 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
2203 constructors, there is no need for a dispatch table pointer because the
2204 table is fully inherited from the C++ code.
2206 2010-09-09 Thomas Quinot <quinot@adacore.com>
2208 * projects.texi: Fix wrong identifiers on package end lines in project
2210 * exp_ch6.adb: Minor reformatting.
2212 2010-09-09 Tristan Gingold <gingold@adacore.com>
2214 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
2216 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
2218 * gnat_ugn.texi: Fix description of -O3 optimization level.
2220 2010-09-09 Yannick Moy <moy@adacore.com>
2222 * a-cihama.adb, a-cohama.adb: Fix comments.
2224 2010-09-09 Arnaud Charlet <charlet@adacore.com>
2226 * i-cexten.ads: Add comments.
2227 (Signed_128): New type, used by some C bindings.
2228 * debug.adb: Update comment.
2230 2010-09-09 Sergey Rybin <rybin@adacore.com>
2232 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
2233 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
2234 the tool should process Ada 2005 sources.
2236 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2238 * sem_ch12.adb (Remove_Parent): If the scope containing the child
2239 instance is a block, examine the enclosing scope to determine if it is
2242 2010-09-09 Doug Rupp <rupp@adacore.com>
2244 * sem_prag.adb (pragma Ident): Pass --identification= vice
2246 * gnatlink.adb (Linker_Options): Look for --identification= vice
2249 2010-09-09 Gary Dismukes <dismukes@adacore.com>
2251 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
2252 inserting and analyzing the object declaration for the temporary object
2253 created to hold a 'Old value, push the scope for the subprogram where
2254 the object is inserted, so that its Scope (and that of related objects)
2255 will be set properly.
2257 2010-09-09 Vincent Celier <celier@adacore.com>
2259 * prj.adb (Get_Object_Directory): Return object directory display name
2260 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
2261 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
2262 return this value, otherwise return the default for the platform.
2264 2010-09-09 Arnaud Charlet <charlet@adacore.com>
2266 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
2267 dependencies. Remove handling of gnatlbr.
2268 Do not remove s-stratt-xdr for the run-time when installing.
2270 2010-09-09 Robert Dewar <dewar@adacore.com>
2272 * sem_attr.adb: Minor reformatting.
2274 2010-09-09 Thomas Quinot <quinot@adacore.com>
2276 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
2277 unsigned long, not an int.
2279 2010-09-09 Vincent Celier <celier@adacore.com>
2281 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
2282 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
2283 we are not checking for equality of path or file names.
2285 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2287 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
2288 array reference, reset the Analyzed flag so that it is properly
2289 expanded when the resulting object declaration is analyzed.
2291 2010-09-09 Vincent Celier <celier@adacore.com>
2293 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
2296 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
2298 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
2299 VX_SPE_TASK option, so disable it.
2301 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2303 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
2305 (Is_Subunit_Of_Main): Handle null nodes properly.
2307 2010-09-09 Robert Dewar <dewar@adacore.com>
2309 * par-ch2.adb: Update comments.
2311 2010-09-09 Ben Brosgol <brosgol@adacore.com>
2313 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
2315 2010-09-09 Arnaud Charlet <charlet@adacore.com>
2317 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
2318 do not generate an error for compatibility with legacy code.
2319 ignored when generating SCIL.
2320 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
2322 2010-09-09 Thomas Quinot <quinot@adacore.com>
2324 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
2325 s-strxdr.adb to s-stratt-xdr.adb
2327 2010-09-09 Robert Dewar <dewar@adacore.com>
2329 * ali-util.adb (Obsolescent_Check): Removed.
2330 * gprep.adb (Obsolescent_Check): Removed.
2331 Remove Obsolescent_Check parameter in Scng instantiation
2332 * prj-err.adb (Obsolescent_Check): Removed.
2333 * prj-err.ads (Obsolescent_Check): Removed.
2334 Remove Obsolescent_Check parameter in Scng instantiation
2335 * scans.ads (Based_Literal_Uses_Colon): New flag
2336 * scn.adb (Obsolscent_Check_Flag): Removed
2337 (Obsolscent_Check): Removed
2338 (Set_Obsolescent_Check): Removed
2339 (Post_Scan): Add handling for obsolescent features
2340 * scn.ads (Obsolscent_Check): Removed
2341 (Set_Obsolescent_Check): Removed
2342 (Post_Scan): Can no longer be inlined
2343 Remove Obsolescent_Check from instantiation of Scng
2344 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
2345 (Nlit): Remove handling of obsolescent check
2346 (Scan, case '%'): Remove handling of obsolescent check
2347 (Scan, case '|'): Call Post_Scan
2348 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
2349 * scng.ads Remove Obsolescent_Check argument from Scng generic
2350 (Post_Scan): Now called for Tok_Vertical_Bar
2351 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
2353 2010-09-09 Doug Rupp <rupp@adacore.com>
2355 * gnatlbr.adb: Removed.
2356 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
2358 2010-09-09 Robert Dewar <dewar@adacore.com>
2360 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
2363 2010-09-09 Vincent Celier <celier@adacore.com>
2365 * gnatlbr.adb: Remove redundant conversions.
2367 2010-09-09 Vincent Celier <celier@adacore.com>
2369 * prj-proc.adb: Minor comment spelling error fix.
2370 * osint.ads (Env_Vars_Case_Sensitive): Use function
2371 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
2374 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2376 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
2377 resolution of conditional expressions whose dependent expressions are
2378 anonymous access types.
2380 2010-09-09 Robert Dewar <dewar@adacore.com>
2382 * a-ststio.adb: Minor code reorganization.
2383 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
2385 * types.ads: Minor reformatting.
2386 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
2387 redundant conversions.
2388 * output.adb: Minor reformatting.
2389 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
2391 * opt.ads: Add pragma Ordered for Verbosity_Level.
2392 * prj.ads: Add pragma Ordered for type Verbosity.
2394 2010-09-09 Vincent Celier <celier@adacore.com>
2396 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
2398 (Canonical_Case_Env_Var_Name): Ditto
2400 2010-09-09 Bob Duff <duff@adacore.com>
2402 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
2404 2010-09-09 Robert Dewar <dewar@adacore.com>
2406 * cstand.adb: Mark Boolean and Character types as Ordered
2407 * einfo.adb (Has_Pragma_Ordered): New flag
2408 * einfo.ads (Has_Pragma_Ordered): New flag
2409 * g-calend.ads: Mark Day_Name as Ordered
2410 * opt.ads: Mark Ada_Version_Type as Ordered
2411 (Warn_On_Unordered_Enumeration_Type): New flag
2412 * par-prag.adb: Add procdessing for pragma Ordered
2413 * s-ficobl.ads (Read_File_Mode): New subtype
2414 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
2415 * s-taskin.ads: Mark Entry_Call_State as ordered
2416 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
2418 * sem_ch6.ads: Mark Conformance_Type as Ordered
2419 * sem_prag.adb: Implement pragma Ordered
2420 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
2421 (Resolve_Comparison_Op): Diagnose unordered comparison
2422 (Resolve_Range): Diagnose unordered range
2423 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
2425 * snames.ads-tmpl: Add entry for pragma Ordered
2426 * style.ads (Check_Enumeration_Subrange): Removed
2427 * styleg.adb (Check_Enumeration_Subrange): Removed
2428 * styleg.ads (Check_Enumeration_Subrange): Removed
2429 * stylesw.adb: Remove handling of -gnatyE switch
2430 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
2431 * vms_data.ads: Remove -gnatyE entries
2432 Add -gnatw.u entries
2433 * ug_words: Entries for -gnatw.u and -gnatw.U
2434 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
2435 * gnat_rm.texi: Document pragma Ordered.
2436 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
2437 * s-tpobop.adb: Remove comparison on unordered enumeration type.
2439 2010-09-09 Vincent Celier <celier@adacore.com>
2441 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
2442 for VMS and Windows, and 1 for all other platforms.
2443 * adaint.h: New function __gnat_get_env_vars_case_sensitive
2444 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
2445 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
2446 Canonical_Case_File_Name, as we are dealing with environment variables,
2449 2010-09-09 Robert Dewar <dewar@adacore.com>
2451 * sem_util.adb: Minor reformatting
2453 2010-09-09 Vincent Celier <celier@adacore.com>
2455 * vms_data.ads: Add documentation for S_Make_Single.
2457 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2459 * sem_util.adb (Same_Object): include formal parameters.
2461 2010-09-09 Vincent Celier <celier@adacore.com>
2463 * make.adb (Queue): New package implementing a new impementation of the
2464 queue, taking into account the new switch --single-compile-per-obj-dir.
2465 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
2466 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
2467 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
2469 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
2470 switch --single-compile-per-obj-dir.
2471 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
2472 switch --single-compile-per-obj-dir.
2473 * gnat_ugn.texi: Add documentation for new gnatmake switch
2474 --single-compile-per-obj-dir.
2476 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2478 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
2480 2010-09-09 Javier Miranda <miranda@adacore.com>
2482 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
2483 (Replace_Type): Code cleanup.
2484 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
2486 2010-09-09 Thomas Quinot <quinot@adacore.com>
2488 * exp_ch8.adb: Minor reformatting.
2490 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2492 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
2493 Corresponding_Protected_Entry.
2495 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2497 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
2498 inequality, it is always rewritten as the negation of the corresponding
2500 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
2501 the predefined equality of an untagged record, create a body at the
2502 point of the renaming, to capture the current meaning of equality for
2505 2010-09-09 Robert Dewar <dewar@adacore.com>
2507 * sem.adb, sem_warn.adb: Minor reformatting.
2509 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2511 * sem_ch6.adb: Improve error message on untagged equality.
2512 * sem.adb (Semantics): Include subprogram bodies that act as spec.
2514 2010-09-09 Javier Miranda <miranda@adacore.com>
2516 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
2518 2010-09-09 Robert Dewar <dewar@adacore.com>
2520 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
2522 2010-09-09 Robert Dewar <dewar@adacore.com>
2524 * einfo.adb (Is_Aggregate_Type): New function.
2525 * einfo.ads (Aggregate_Kind): New enumeration subtype
2526 (Is_Aggregate_Type): New function.
2527 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
2530 2010-09-09 Robert Dewar <dewar@adacore.com>
2532 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
2533 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
2535 * restrict.ads, restrict.adb: Ditto.
2536 (Restriction_Check_Needed): New function
2538 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2540 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
2541 Build_Master_Entity, to find the proper scope for the master entity of
2542 a type that may contain tasks, in the presence of transient scopes.
2543 * exp_ch9.adb (Build_Master_Entity) Use new function.
2544 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
2546 2010-09-09 Vincent Celier <celier@adacore.com>
2548 * prj-attr.adb: Add new attributes Leading_Library_Options and
2549 Linker'Leading_Switches.
2550 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
2553 2010-09-09 Javier Miranda <miranda@adacore.com>
2555 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
2556 dispatching primitive covers some interface primitive is incomplete.
2557 Replace such code by the invocation of a new subprogram that provides
2559 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
2560 * sem_ch6.adb (Check_Missing_Return): Minor reformating
2561 (Check_Convention): Complete if-statement conditition when reporting
2562 errors (to avoid assertion failure).
2563 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
2564 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
2565 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
2566 overridden null interface primitives.
2567 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
2568 private type is an interface then use the parent of its full view to
2569 climb to its ancestor type.
2570 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
2571 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
2572 null interface primitives.
2573 (Is_Null_Interface_Primitive): New subprogram.
2574 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
2575 (Expand_Freeze_Record_Type): Do not generate specs of null interface
2576 subprograms because they are now generated by Analyze_Freeze_Entity.
2578 2010-09-09 Robert Dewar <dewar@adacore.com>
2580 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
2582 2010-09-09 Robert Dewar <dewar@adacore.com>
2584 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
2585 (Gen_Restrictions_C): Avoid explicit enumeration ranges
2586 (Set_String_Replace): New procedure
2587 * casing.ads (Known_Casing): New subtype declaration
2588 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
2590 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
2591 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
2592 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
2593 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
2594 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
2596 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
2598 * sem_type.adb (Is_Array_Class_Record_Type): New.
2599 * style.ads (Check_Enumeration_Subrange): New procedure
2600 * styleg.adb (Check_Enumeration_Subrange): New procedure
2601 * styleg.ads (Check_Enumeration_Subrange): New procedure
2602 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
2603 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
2604 * usage.adb: Add line for -gnatyE
2605 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
2606 Add missing entry for NOBOOLEAN_OPERATORS
2607 * gnat_ugn.texi: Add documentation for -gnatyE
2609 2010-09-09 Robert Dewar <dewar@adacore.com>
2611 * namet.adb (Initialize): Is now a dummy procedure
2612 (Reinitialize): New procedure
2613 Call Reinitialize from package initialization
2614 * namet.ads (Initialize): Is now a dummy procedure
2615 (Reinitialize): New procedure
2616 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
2617 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
2620 2010-09-09 Bob Duff <duff@adacore.com>
2622 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
2624 2010-09-09 Robert Dewar <dewar@adacore.com>
2626 * s-bitops.adb (Raise_Error): Add exception message
2628 2010-09-09 Robert Dewar <dewar@adacore.com>
2630 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
2631 null statement after label.
2632 * sinfo.ads: Minor comment updates.
2634 2010-09-09 Robert Dewar <dewar@adacore.com>
2636 * nlists.ads, nlists.adb (In_Same_List): New function.
2637 Use Node_Or_Entity_Id where appropriate.
2638 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
2640 2010-09-09 Robert Dewar <dewar@adacore.com>
2642 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
2644 * sem_ch3.adb: Use Check_Wide_Character_Restriction
2645 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
2646 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
2647 (Find_Expanded_Name): Check violation of No_Wide_Characters
2649 2010-09-09 Robert Dewar <dewar@adacore.com>
2651 * par-ch5.adb: Minor reformatting.
2653 2010-09-09 Robert Dewar <dewar@adacore.com>
2655 * prj-env.adb: Minor code reorganization.
2656 * par-ch3.adb: Minor reformatting.
2657 * gcc-interface/Make-lang.in: Update dependencies.
2659 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2661 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
2662 a task declaration can be an entry body.
2664 2010-09-09 Javier Miranda <miranda@adacore.com>
2666 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
2667 tags of library level tagged types.
2668 (Make_Tags): Disable backend optimizations about aliasing for
2669 declarations of access to dispatch tables.
2671 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2673 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
2674 subtype for a null-excluding access type, recover the original
2675 subtype_mark to get the proper visibility on the original name.
2677 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2679 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
2680 create the primitive equality operation for an untagged record. The
2681 operation is the predefined equality if no record component has a
2682 user-defined equality, or if there is a user-defined equality for the
2683 type as a whole, or when the type is derived and it has an inherited
2684 equality. Otherwise the body of the operations is built as for tagged
2686 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
2687 (Make_Eq_Body): New function to create the expanded body of the
2688 equality operation for tagged and untagged records. In both cases the
2689 operation composes, and the primitive operation of each record
2690 component is used to generate the equality function for the type.
2691 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
2692 has an abstract equality defined, replace its call with a
2693 Raise_Program_Error.
2694 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
2695 user-defined equality operator for an untagged record type does not
2696 happen after type is frozen, and appears in the visible part if partial
2697 view of type is not limited.
2699 2010-09-09 Tristan Gingold <gingold@adacore.com>
2701 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
2703 2010-09-09 Bob Duff <duff@adacore.com>
2705 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
2707 2010-09-09 Pascal Obry <obry@adacore.com>
2709 * gnat_ugn.texi: Update doc on windows related topics.
2711 2010-09-09 Geert Bosch <bosch@adacore.com>
2713 * s-fatgen.adb: Update comments.
2715 2010-09-09 Robert Dewar <dewar@adacore.com>
2717 * par-ch4.adb (Box_Error): New procedure.
2719 2010-09-09 Thomas Quinot <quinot@adacore.com>
2721 * sem.adb: Minor reformatting.
2723 2010-09-09 Pascal Obry <obry@adacore.com>
2725 * prj-env.adb: Style fix, use /and then/ and /or else/.
2726 * gnat_ugn.texi: Fix typos.
2728 2010-09-03 Joseph Myers <joseph@codesourcery.com>
2731 * gcc-interface/misc.c (gnat_init_options): Allow options with
2732 empty canonical form. Generate a single save_argv element from -I
2735 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
2737 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
2738 Attach fake PARM_DECLs to the topmost block of the function.
2740 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
2742 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
2743 for the call to a function whose return type was unconstrained.
2745 2010-08-30 Olivier Hainque <hainque@adacore.com>
2747 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
2748 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2749 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
2751 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
2753 * tracebak.c: Fix typo in comment.
2755 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2757 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
2758 * gcc-interface/trans.c: Likewise.
2759 * gcc-interface/utils.c: Likewise.
2761 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
2763 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
2765 2010-08-10 Robert Dewar <dewar@adacore.com>
2767 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
2768 * sem_util.adb: Minor reformatting.
2770 2010-08-10 Javier Miranda <miranda@adacore.com>
2772 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
2773 constructors that leave the object partially initialized.
2774 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
2775 that copies from parent of Typ the dispatch table slots of inherited
2776 C++ primitives. It handles primary and secondary dispatch tables.
2777 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
2778 use this attribute with E_Variable entities.
2779 (Set_Is_Tag): Relax assertion to allow its use with variables that
2781 (Set_Related_Type): Relax assertion to allow its use with variables
2782 that store the tag of a C++ class.
2783 (Write_26_Field_Name): Remove Related_Type.
2784 (Write_27_Field_Name): Add Related_Type.
2785 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
2786 with E_Variable entities.
2787 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
2789 * sem_util.adb (Search_Tag): Add missing support for CPP types.
2790 (Enclosing_CPP_Parent): New subprogram.
2791 (Has_Suffix): New subprogram.
2792 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
2793 closest ancestor of a type that is a C++ type.
2794 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
2796 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
2797 instance in derivations of C++ types.
2798 * exp_tss.adb (CPP_Init_Proc): New subprogram.
2799 (Is_CPP_Init_Proc): New subprogram.
2800 (Set_TSS): Handle new C++ init routines.
2801 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
2803 (CPP_Init_Proc): New subprogram.
2804 (Is_CPP_Init_Proc): New subprogram.
2805 * exp_disp.adb (CPP_Num_Prims): New subprogram.
2806 (Has_CPP_Constructors): New subprogram.
2807 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
2808 initialize slots located in the C++ part of the dispatch table.
2809 (Make_Tags): For CPP types declare variables used by the IP routine to
2810 store the C++ tag values after the first invocation of the C++
2812 (Build_CPP_Init_DT): New subprogram.
2813 (Set_CPP_Constructors): New implementation that builds an IP for each
2814 CPP constructor. These IP are wrappers of the C++ constructors that,
2815 after the first invocation of the constructor, read the C++ tags from
2816 the object and save them locally. These copies of the C++ tags are used
2817 by the IC routines to initialize tables of Ada derivations of CPP
2819 (Write_DT): Indicate what primitives are imported from C++
2820 * exp_disp.ads (CPP_Num_Prims): New subprogram.
2821 (Has_CPP_Constructors): New subprogram.
2822 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
2823 invoke the IC routine to inherit the slots of the parents.
2824 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
2825 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
2826 (Is_Variable_Size_Record): Factorize code calling
2827 Is_Variable_Size_Array.
2828 (Build_CPP_Init_Procedure): New subprogram that builds the tree
2829 corresponding to the procedure that initializes the C++ part of the
2830 dispatch table of an Ada tagged type that is a derivation of a CPP
2832 (Build_Init_Procedure): Adding documentation plus code reorganization
2833 to leave more clear the construction of the IP with C++ types.
2834 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
2835 it cannot be called after Make_Tags has been invoked.
2836 (Inherit_CPP_Tag): Removed.
2837 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
2838 located at variable offset.
2839 * freeze.ads: Minor reformating.
2840 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
2842 * gcc-interface/Make-lang.in: Update dependencies.
2844 2010-08-10 Robert Dewar <dewar@adacore.com>
2846 * a-chahan.ads: Add comments on handling of obsolescent entries.
2847 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
2848 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
2849 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
2850 * sem_attr.adb (Analyze_Access_Attribute): Call
2851 Check_Obsolescent_2005_Entity to check for access to obsolescent
2852 Ada.Characters.Handling subprogram.
2853 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
2854 type is obsolescent in Ada 2005.
2855 (Analyze_Attribute, case Constrained): Better placement of flag when
2856 flagged as obsolescent feature.
2857 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
2858 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
2859 is an obsolescent feature.
2860 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
2862 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
2863 Check_Obsolescent_2005_Entity to check for renaming obsolete
2864 Ada.Characters.Handling subprogram.
2865 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
2866 for obsolescent restrictions in Ada 2005.
2867 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
2868 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
2869 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
2870 check for obsolescent references to Ada.Characters.Handling subprograms
2872 2010-08-10 Robert Dewar <dewar@adacore.com>
2874 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
2876 2010-08-10 Robert Dewar <dewar@adacore.com>
2878 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
2879 * par-ch4.adb: Change wording of Ada 2012 messages
2880 * vms_data.ads: Add VMS entries for /2005, /12, /2012
2882 2010-08-10 Robert Dewar <dewar@adacore.com>
2884 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
2885 codes in the range 16#80#..16#7FF#.
2886 * sem_ch10.adb: Minor reformatting.
2888 2010-08-10 Arnaud Charlet <charlet@adacore.com>
2890 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
2891 generate ali files in CodePeer mode, so that a gnatmake -c -k will
2892 proceed further when possible
2893 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
2894 messages when ignoring representation clauses (-gnatI).
2896 2010-08-10 Ed Schonberg <schonberg@adacore.com>
2898 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
2899 constant-fold discriminant reference if the constraint is an object
2900 with non-static expression. Expression may contain volatile references
2901 in the presence of renamings.
2903 2010-08-10 Vincent Celier <celier@adacore.com>
2905 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
2907 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
2908 index for an associative array where it is allowed.
2910 2010-08-10 Thomas Quinot <quinot@adacore.com>
2912 * exp_attr.adb: Add comments.
2914 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
2916 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
2918 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
2920 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
2922 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
2924 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
2925 (build_vms_descriptor): Likewise.
2927 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2929 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
2930 (build_vms_descriptor32): Adjust calls to it for new parameter.
2931 (build_vms_descriptor): Likewise.
2933 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2935 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
2936 (build_variant_list): Take and return a VEC instead of a tree.
2937 (create_variant_part_from): Take a VEC instead of a tree for
2938 variant_list. Adjust accordingly.
2939 (gnat_to_gnu_entity): Adjust for changes to previous functions.
2941 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
2943 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
2945 (components_to_record): Likewise.
2946 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
2947 * gcc-interface/utils.c (max_size): Likewise.
2948 (build_vms_descriptor32): Likewise.
2949 (build_vms_descriptor): Likewise.
2951 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
2953 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
2954 (build_subst_list): Return a VEC instead of a tree.
2955 (build_variant_list): Take a VEC for subst_list. Adjust
2957 (create_field_decl_from): Likewise.
2958 (create_variant_part_from): Likewise.
2959 (copy_and_substitute_in_size): Likewise.
2960 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
2961 Free the built vector.
2963 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
2965 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
2966 allocator for large imported objects.
2968 2010-08-05 Robert Dewar <dewar@adacore.com>
2970 * gnat1drv.adb: Minor reformatting.
2972 2010-08-05 Ed Schonberg <schonberg@adacore.com>
2974 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
2975 instantiation, process its body before the spec of the main unit,
2976 because it may contain subprograms invoked in the spec of main.
2977 * einfo.ads: Add documention of delayed freeze.
2979 2010-08-05 Vincent Celier <celier@adacore.com>
2981 * prj-nmsc.adb (Process_Linker): Take into account new values for
2982 attribute Response_File_Format.
2983 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
2984 GCC_Object_List and GCC_Option_List.
2986 2010-08-05 Ed Schonberg <schonberg@adacore.com>
2988 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
2989 selected component that denotes a discriminant if it is the
2990 discriminant of a component of an unconstrained record type.
2992 2010-08-05 Ed Schonberg <schonberg@adacore.com>
2994 * exp_util.adb (Insert_Actions): If the action appears within a
2995 conditional expression that is already analyzed, insert action further
2998 2010-08-05 Robert Dewar <dewar@adacore.com>
3000 * exp_ch4.adb: Minor reformatting.
3002 2010-08-05 Thomas Quinot <quinot@adacore.com>
3004 * exp_ch4.adb: Minor reformatting
3005 * gnat1drv.adb: Minor reformatting.
3006 Minor code reorganization (use Nkind_In).
3008 2010-08-05 Ed Schonberg <schonberg@adacore.com>
3010 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
3011 determine whether the expression in an address clause for an
3012 initialized object must be constant. Code moved from freeze.adb.
3013 (Remove_Side_Effects): When the temporary is initialized with a
3014 reference, indicate that the temporary is a constant as done in all
3016 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
3017 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
3018 If object does not need a constant address, remove side effects from
3019 address expression, so it is elaborated at the point of the address
3020 clause and not at the freeze point of the object, so that elaboration
3023 2010-08-05 Vincent Celier <celier@adacore.com>
3025 * prj.adb (Is_Compilable): Return False for header files of non Ada
3028 2010-08-05 Emmanuel Briot <briot@adacore.com>
3030 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
3031 exec directory as a warning rather than an error.
3033 2010-08-05 Thomas Quinot <quinot@adacore.com>
3035 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
3038 2010-08-05 Steve Baird <baird@adacore.com>
3040 * exp_util.adb (Remove_Side_Effects): An access value which designates
3041 a volatile object of a nonvolatile type is prohibited.
3042 Do not call Make_Reference to construct a reference to such an object.
3044 2010-08-05 Robert Dewar <dewar@adacore.com>
3046 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
3047 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
3048 a-suewen.adb, a-suewen.ads: New files.
3049 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
3051 * sem_elab.adb: Minor reformatting.
3053 2010-08-05 Arnaud Charlet <charlet@adacore.com>
3055 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
3056 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
3057 in case of null Comp.
3059 2010-08-05 Robert Dewar <dewar@adacore.com>
3061 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
3063 2010-08-05 Gary Dismukes <dismukes@adacore.com>
3065 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
3066 nested access type whose designated type has tasks or is a protected
3067 object when the restrictions No_Task_Hierarchy or
3068 No_Local_Protected_Objects apply. Add ??? comment.
3069 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
3070 type is not a library-level type and No_Local_Protected_Objects applies.
3071 (Analyze_Task_Type): Give a warning when a task type is not a
3072 library-level type and No_Task_Hierarchy applies.
3074 2010-08-05 Arnaud Charlet <charlet@adacore.com>
3076 * sem.adb: Minor reformatting
3077 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
3080 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
3082 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
3084 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
3085 for the debug-only entity.
3086 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
3088 2010-08-03 Joseph Myers <joseph@codesourcery.com>
3090 * gcc-interface/lang-specs.h: Don't pass -a options.
3092 2010-07-28 Joseph Myers <joseph@codesourcery.com>
3094 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
3095 options. Check canonical_option_num_elements on options copied.
3097 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3099 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
3100 return value type. Don't check for missing arguments here.
3102 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3104 * gcc-interface/misc.c (gnat_option_lang_mask): New.
3105 (gnat_init_options): Update prototype. Reconstruct argv array
3106 from decoded options.
3108 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
3110 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
3111 case, merge the alias set of the old pointer type.
3113 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
3115 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
3116 and recurse only for multidimensional array types instead.
3118 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
3121 * gcc-interface/utils.c (convert): Fix thinko in test.
3122 (unchecked_convert): When converting from a scalar type to a type with
3123 a different size, pad to have the same size on both sides.
3125 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
3127 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
3128 equality for the component type of array types.
3130 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3132 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3133 * gcc-interface/trans.c: Likewise.
3134 * gcc-interface/utils.c: Likewise.
3135 * gcc-interface/utils2.c: Likewise.
3137 2010-07-13 Laurent GUERBY <laurent@guerby.net>
3140 * gcc-interface/targtyps.c: Include tm_p.h.
3141 * gcc-interface/Make-lang.in: Update dependencies.
3143 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
3145 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
3148 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3150 * gcc-interface/utils.c: Include diagnostic-core.h in every file
3151 that includes toplev.h.
3153 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
3155 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
3156 Branch to common code handling the alignment of discrete types.
3157 <E_Signed_Integer_Type>: Likewise.
3158 <E_Modular_Integer_Type>: Likewise.
3160 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
3162 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
3163 (gnat_handle_option): Allocate only one element for gnat_argv.
3164 (gnat_init): Do not populate gnat_argv.
3166 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3168 * gcc-interface/trans.c: Do not include tree-flow.h.
3169 * gcc-interface/Make-lang.in: Adjust dependencies.
3171 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3173 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
3174 of a TREE_LIST. Update comment.
3175 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
3176 Adjust call to gnat_build_constructor.
3177 (Attribute_to_gnu): Likewise.
3178 (gnat_to_gnu): Likewise.
3179 (pos_to_constructor): Likewise.
3180 (extract_values): Likewise.
3181 * gcc-interface/utils.c (build_template): Likewise.
3182 (convert_vms_descriptor64): Likewise.
3183 (convert_vms_descriptor32): Likewise.
3184 (convert_to_fat_pointer): Likewise.
3185 (convert): Likewise.
3186 (unchecked_convert): Likewise.
3187 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
3188 * gcc-interface/utils2.c (build_allocator): Likewise.
3189 (fill_vms_descriptor): Likewise.
3190 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
3191 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
3192 instead of TREE_LISTs.
3194 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3196 * gcc-interface/misc.c: Do not include except.h.
3197 * gcc-interface/Make-lang.in: Update dependencies.
3199 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
3201 * gcc-interface/trans.c: Include tree-flow.h.
3202 (gnu_switch_label_stack): Delete.
3203 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
3204 its associated block cannot fall through. Do not emit the final label
3205 if no cases branch to it.
3206 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
3208 2010-06-23 Thomas Quinot <quinot@adacore.com>
3210 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
3211 reference to a protected subprogram outside of the protected's scope,
3212 ensure the corresponding external subprogram is frozen before the
3215 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3217 * sem_prag.adb: Fix typo in error message.
3218 * sem.adb: Refine previous change.
3220 2010-06-23 Robert Dewar <dewar@adacore.com>
3222 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
3223 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
3224 Implement Ada 2012 string encoding packages.
3226 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3228 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
3229 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
3230 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
3231 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
3233 * gcc-interface/Makefile.in: Enable use of above files.
3235 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3237 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
3238 of address clauses if if Ignore_Rep_Clauses is active.
3239 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
3240 remove address clause from tree so that it does not reach the backend.
3242 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3244 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
3245 expand 'Valid from user code in CodePeer mode, will be handled by the
3248 2010-06-23 Bob Duff <duff@adacore.com>
3250 * g-comlin.ads: Minor comment improvements.
3252 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3254 * sem_res.adb (Uses_SS): The expression that initializes a controlled
3255 component of a record type may be a user-defined operator that is
3256 rewritten as a function call.
3258 2010-06-23 Bob Duff <duff@adacore.com>
3260 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
3262 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
3264 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
3265 label to the new sequence of statements. Set the sloc of the raise
3266 statement onto the new goto statements.
3268 2010-06-23 Robert Dewar <dewar@adacore.com>
3270 * a-stuten.ads, a-stuten.adb: New files.
3271 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
3272 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
3274 2010-06-23 Robert Dewar <dewar@adacore.com>
3276 * gnat_ugn.texi: Add documentation of -gnat12 switch
3277 Add documentation of -gnatX switch.
3279 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3281 * inline.ads: Include the current Ada_Version in the info for pending
3282 instance bodies, so that declaration and body are compiled with the
3284 * inline.adb: Move with_clause for Opt to spec.
3285 * sem_ch12.adb (Analyze_Package_Instantiation,
3286 Analyze_Subprogram_Instantiation): Save current Ada_Version in
3287 Pending_Instantiation information.
3288 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
3289 Inline_Package_Body): Use the Ada_Version present in the body
3292 2010-06-23 Robert Dewar <dewar@adacore.com>
3294 * usage.adb: Add documentation for -gnat12 switch.
3295 * errout.ads: Add VMS alias entry for -gnat12 switch
3296 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
3297 Add documentation for pragma Extensions_Allowed.
3298 * opt.ads: Add entry for Ada 2012 mode.
3299 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
3301 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
3303 * sem_ch13.adb: Add handling for Ada 2012 mode.
3304 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
3305 * switch-c.adb: Add handling for -gnat12 switch.
3306 Implement -gnat2005 and -gnat2012.
3307 * usage.adb: Add documentation for -gnat12 switch.
3308 * vms_data.ads: Add /12 switch for Ada 2012 mode.
3310 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3312 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
3313 No_Task_Hierarchy restriction. Add comment.
3314 * exp_ch9.adb, exp_ch3.adb: Update comments.
3316 2010-06-23 Robert Dewar <dewar@adacore.com>
3318 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
3319 * sem_res.adb: Add comments.
3320 * sem_util.adb: Minor reformatting. Add comments.
3321 Change increment on Actuals_In_Call table.
3322 * opt.ads: Minor: add 'constant'.
3324 2010-06-23 Javier Miranda <miranda@adacore.com>
3326 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
3327 TSD to Null_Address if No_Dispatching_Calls is active.
3329 2010-06-23 Vincent Celier <celier@adacore.com>
3331 * a-comlin.ads: Indicate that use of this package is not supported
3332 during the elaboration of an auto-initialized Stand-Alone Library.
3334 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3336 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
3337 alignment clause on a record type to determine if a component may be
3338 misaligned. The decision must be taken in the back-end where target
3339 alignment information is known.
3341 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3343 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
3344 systematically in CodePeer mode to simplify generated code.
3345 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
3346 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
3347 No_Task_Hierarchy is set instead of crasshing.
3349 2010-06-23 Thomas Quinot <quinot@adacore.com>
3351 * sem_util.adb: Minor code cleanup: test for proper entity instead of
3352 testing just Chars attribute when checking whether a given scope is
3354 * exp_ch4.adb, einfo.adb: Minor reformatting.
3356 2010-06-23 Vincent Celier <celier@adacore.com>
3359 * switch-m.adb (Normalize_Compiler_Switches): Take into account
3360 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
3361 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
3363 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3365 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
3366 operation with a universal real operand, and the right operand is a
3367 range with universal bounds, find unique fixed point that may be
3368 candidate, and warn appropriately.
3370 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3372 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
3373 properly the rare cases where VMS operators are visible through
3374 Extend_System, but the default System is being used and Address is a
3376 * sem_util.adb: Widen predicate Is_VMS_Operator.
3378 2010-06-23 Vincent Celier <celier@adacore.com>
3380 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
3383 2010-06-23 Olivier Hainque <hainque@adacore.com>
3385 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
3386 Interface_Name as foreign. These are GCC builtin imports for
3387 which Ada specific processing doesn't apply.
3389 2010-06-23 Thomas Quinot <quinot@adacore.com>
3391 * sem_ch12.adb: Minor reformatting.
3393 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3395 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
3396 determine whether an intrinsic subprogram is VMS specific.
3398 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
3400 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
3401 is present in the entity.
3403 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3405 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
3406 Fix handling of parameters.
3407 Add protection against unexpected cases.
3408 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
3409 access level, since "A" suffix is already used elsewhere. Similarly,
3410 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
3413 2010-06-23 Thomas Quinot <quinot@adacore.com>
3415 * sem_util.adb, sem_util.ads: Minor reformatting.
3417 2010-06-23 Vincent Celier <celier@adacore.com>
3419 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
3420 the previous behavior of gprclean when there are missing files.
3422 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3424 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
3425 generic body is not a fatal error.
3426 (Mark_Context): Handle properly names of child units.
3427 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
3430 2010-06-23 Vincent Celier <celier@adacore.com>
3432 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
3435 2010-06-23 Bob Duff <duff@adacore.com>
3437 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
3438 Memory_Space, because CPU_Time doesn't seem to provide any significant
3439 speed advantage in practice. Cleanup: Get rid of constant
3440 Default_Optimization; doesn't seem to add anything. Use case
3441 statements instead of if statements; seems cleaner.
3443 2010-06-23 Olivier Hainque <hainque@adacore.com>
3445 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
3446 Wshadow instead of Wextra to guard warning on absence of internal
3447 builtin decl for an import. Fix use of quote in warning text.
3448 (intrin_arglists_compatible_p): Remove processing of integer trailing
3449 args on the Ada side. Fix use of literal > in warning text.
3450 (intrin_return_compatible_p): Never warn on "function imported as
3451 procedure". Defer the void/void case to the common type compatibility
3453 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
3454 of GCC builtin imports.
3456 2010-06-23 Olivier Hainque <hainque@adacore.com>
3458 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
3460 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
3461 functions, helpers for ...
3462 (intrin_profiles_compatible_p): New function, replacement for ...
3463 (compatible_signatures_p): Removed.
3464 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
3465 attempt to bind an unregistered builtin function. When we have
3466 one, use it and warn on profile incompatibilities.
3468 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3470 * gcc-interface/Make-lang.in: Update dependencies.
3472 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3474 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
3475 for a coextension in an object declaration is a concatenation, treat
3476 coextension as dynamic.
3478 2010-06-23 Javier Miranda <miranda@adacore.com>
3480 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
3481 internal entities are added to the scope of the tagged type.
3482 (Derive_Subprograms): Do not stop derivation when we find the first
3483 internal entity that has attribute Interface_Alias. After the change
3484 done to Override_Dispatching_Operations it is no longer true that
3485 these primirives are always located at the end of the list of
3487 * einfo.ads (Primitive_Operations): Add documentation.
3488 * exp_disp.adb (Write_DT): Improve output adding to the name of the
3489 primitive a prefix indicating its corresponding tagged type.
3490 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
3491 entity covers the primitive of an interface that is not an ancestor of
3492 this tagged type then the new primitive is added at the end of the list
3493 of primitives. Required to fulfill the C++ ABI.
3495 2010-06-23 Javier Miranda <miranda@adacore.com>
3497 * atree.ads (Set_Reporting_Proc): New subprogram.
3498 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
3499 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
3500 to routines of package Scil_ll by indirect call to the registered
3502 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
3503 that is invoked when a node is allocated, replaced or rewritten.
3504 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
3505 the SCIL node. Used as argument for Set_Reporting_Proc.
3506 (Initialize): Register Copy_SCIL_Node as the reporting routine that
3507 is invoked by atree.
3509 2010-06-23 Thomas Quinot <quinot@adacore.com>
3511 * sem_ch3.ads: Minor reformatting.
3513 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3515 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
3516 always analyze the generic body and instance, because it may be needed
3518 (Mark_Context): Prepend the with clauses for needed generic units, so
3519 they appear in a better order for CodePeer.
3520 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
3522 2010-06-23 Emmanuel Briot <briot@adacore.com>
3524 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
3526 2010-06-23 Robert Dewar <dewar@adacore.com>
3528 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
3530 2010-06-23 Thomas Quinot <quinot@adacore.com>
3532 * a-tags.ads: Fix description of TSD structure.
3534 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3536 * sem_ch12.adb (Mark_Context): When indicating that the body of a
3537 generic unit is needed prior to the unit containing an instantiation,
3538 search recursively the context of the generic to add other generic
3539 bodies that may be instantiated indirectly through the current instance.
3541 2010-06-23 Robert Dewar <dewar@adacore.com>
3543 * freeze.adb: Minor reformatting.
3545 2010-06-23 Bob Duff <duff@adacore.com>
3547 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
3549 2010-06-23 Vincent Celier <celier@adacore.com>
3551 * make.adb (Compile_Sources): Complete previous change.
3553 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3555 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
3556 Constrained extra formal.
3558 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3560 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
3561 Initialize_Scalars are enabled, compile the generated equality function
3562 for a composite type with full checks enabled, so that validity checks
3563 are performed on individual components.
3565 2010-06-23 Emmanuel Briot <briot@adacore.com>
3567 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
3568 Missing_Source_Files.
3570 2010-06-23 Robert Dewar <dewar@adacore.com>
3572 * exp_ch3.adb, exp_util.adb: Minor reformatting.
3574 2010-06-23 Jose Ruiz <ruiz@adacore.com>
3576 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
3577 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
3578 Clock (without delays) use a run time which is properly initialized.
3580 2010-06-23 Vincent Celier <celier@adacore.com>
3582 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
3583 when -f -u and a main is specified on the command line. However,
3584 attempt to compile even when the ALI file is read-only when
3585 Must_Compile is True.
3587 2010-06-23 Thomas Quinot <quinot@adacore.com>
3589 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
3591 2010-06-23 Javier Miranda <miranda@adacore.com>
3593 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
3594 entities for parent types that are interfaces. Needed in generics to
3595 handle formals that implement interfaces.
3596 (Derive_Subprograms): Add assertion for derivation of tagged types that
3597 do not cover interfaces. For generics, complete code that handles
3598 derivation of type that covers interfaces because the previous
3599 condition was weak (it required only name consistency; arguments were
3600 not checked). Add new code to locate primitives covering interfaces
3601 defined in generic units or instantiatons.
3602 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
3603 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
3604 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
3605 interfaces that are parents of the type because they share the primary
3607 (Register_Primitive): Do not register primitives of interfaces that
3608 are parents of the type.
3609 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
3610 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
3611 primitives skip primitives of interfaces that are parents of the type.
3613 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3615 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
3616 attribute cannot be constant-folded if an index type is a formal type,
3617 or is derived from one.
3618 * checks.adb (Determine_Range): ditto.
3620 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3622 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
3624 2010-06-23 Bob Duff <duff@adacore.com>
3626 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
3627 (Insert): Disallow nul characters.
3628 (misc output routines): Assert no nul characters.
3630 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3632 * exp_ch4.adb: Use predefined unsigned type in all cases.
3634 2010-06-23 Bob Duff <duff@adacore.com>
3636 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
3637 * g-pehage.ads: Minor comment fixes.
3638 * g-pehage.adb: Minor: Add some additional debugging printouts under
3641 2010-06-23 Robert Dewar <dewar@adacore.com>
3643 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
3644 (Worse_Choice): Always prefer Pure/Preelab.
3646 2010-06-23 Vincent Celier <celier@adacore.com>
3648 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
3650 2010-06-23 Robert Dewar <dewar@adacore.com>
3652 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
3653 checking returns in generic case.
3654 (Check_Missing_Return): New procedure.
3656 2010-06-23 Robert Dewar <dewar@adacore.com>
3658 * bindgen.adb, switch-b.adb: Minor reformatting.
3660 2010-06-23 Javier Miranda <miranda@adacore.com>
3662 * frontend.adb (Frontend): Add call to initialize the new package
3664 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
3666 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
3667 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
3669 * exp_util.adb (Insert_Actions): Remove code for
3670 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
3671 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
3672 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
3673 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
3674 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
3675 * sinfo.ads (SCIL_Related_Node): Field removed.
3676 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
3677 (N_SCIL_Tag_Init): Node removed.
3678 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
3679 (Check_SCIL_Node): New implementation.
3680 (Find_SCIL_Node): Removed.
3681 * sem.adb (Analyze): Remove management of
3682 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
3683 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
3685 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
3686 Set_SCIL_Related_Node and avoid adding the SCIL node before the
3687 referenced node using Insert_Action because this is not longer
3689 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
3690 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
3691 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
3693 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
3694 because we no longer require to generate the SCIL node before the call.
3695 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
3696 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
3697 nodes before the referenced node using Insert_Action because this
3698 is not longer required.
3699 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
3700 update the SCIL_Node field.
3701 * sprint.adb (Sprint_Node_Actual): Remove code for
3702 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
3703 * treepr.adb (Print_Node): Print the SCIL node field (if available).
3704 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
3705 SCIL_Tag_Init nodes.
3706 * scil_ll.ads, scil_ll.adb: New files.
3707 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
3710 2010-06-23 Robert Dewar <dewar@adacore.com>
3712 * sem_ch6.adb: Minor reformatting.
3714 2010-06-23 Doug Rupp <rupp@adacore.com>
3716 * bindusg.adb (Display): Write -Hnn line.
3717 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
3719 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
3720 valid values to 32 and 64.
3721 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
3722 ENABLE, DISABLE as valid settings.
3723 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
3724 * opt.ads (Heap_Size): New global variable.
3725 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
3726 TARGET_MALLOC64 check. Fix comment.
3728 2010-06-23 Robert Dewar <dewar@adacore.com>
3730 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
3731 reformatting. Add comments.
3732 * errout.adb (Finalize): Properly adjust warning count when deleting
3735 2010-06-22 Robert Dewar <dewar@adacore.com>
3737 * errout.adb (Finalize): Set Prev pointers.
3738 (Finalize): Delete continuations for deletion by warnings off(str).
3739 * erroutc.ads: Add Prev pointer to error message structure.
3741 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3743 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
3744 child unit, examine context of parent units to locate instantiated
3745 generics whose bodies may be needed.
3746 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
3747 with_clause for the instantiated generic, examine the context of its
3748 parents, to set Withed_Body flag, so that it can be visited earlier.
3749 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
3750 an unsigned type, use a type of the proper size for the intermediate
3751 value, to prevent alignment problems on unchecked conversion.
3753 2010-06-22 Geert Bosch <bosch@adacore.com>
3755 * s-rannum.ads Change Generator type to be self-referential to allow
3756 Random to update its argument. Use "in" mode for the generator in the
3757 Reset procedures to allow them to be called from the Ada.Numerics
3758 packages without tricks.
3759 * s-rannum.adb: Use the self-referencing argument to get write access
3760 to the internal state of the random generator.
3761 * a-nudira.ads: Make Generator a derived type of
3762 System.Random_Numbers.Generator.
3763 * a-nudira.adb: Remove use of 'Unrestricted_Access.
3764 Put subprograms in alpha order and add headers.
3765 * g-mbdira.ads: Change Generator type to be self-referential.
3766 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
3768 2010-06-22 Robert Dewar <dewar@adacore.com>
3770 * freeze.adb: Minor reformatting
3771 Minor code reorganization (use Nkind_In and Ekind_In).
3773 2010-06-22 Bob Duff <duff@adacore.com>
3775 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
3776 -gnatc when a file is compiled that we cannot generate code for, not
3777 helpful and confusing.
3779 2010-06-22 Vincent Celier <celier@adacore.com>
3781 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
3784 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
3786 * s-rannum.adb: Replace constants with commented symbols.
3787 * s-rannum.ads: Explain significance of the initial value of the data
3790 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3792 * a-ngcoty.adb: Clarify comment.
3794 2010-06-22 Gary Dismukes <dismukes@adacore.com>
3796 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
3797 expansion for indexing packed arrays with small power-of-2 component
3798 sizes when the target is AAMP.
3799 (Expand_Packed_Element_Reference): Return without expansion for
3800 indexing packed arrays with small power-of-2 component sizes when the
3803 2010-06-22 Geert Bosch <bosch@adacore.com>
3805 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
3808 2010-06-22 Robert Dewar <dewar@adacore.com>
3810 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
3813 2010-06-22 Doug Rupp <rupp@adacore.com>
3815 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
3817 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
3818 (pragma Ident): Add a default ident string in the private part.
3820 2010-06-22 Robert Dewar <dewar@adacore.com>
3822 * cstand.adb: Minor reformatting.
3824 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3826 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
3827 recognize the Shift and Rotation intrinsics that are known to the
3828 compiler but have no interface name.
3830 2010-06-22 Geert Bosch <bosch@adacore.com>
3832 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
3833 scaling in case of overflow or NaN results.
3835 2010-06-22 Robert Dewar <dewar@adacore.com>
3837 * cstand.adb: Complete previous change.
3838 * g-dirope.ads: Add comment.
3839 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
3841 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3843 * cstand.adb: Add tree nodes for pragma Pack on string types.
3845 2010-06-22 Javier Miranda <miranda@adacore.com>
3847 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
3848 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
3849 formal of a primitive.
3850 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
3851 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
3852 formal of a primitive.
3853 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
3854 to obtain the last formal of a primitive.
3856 2010-06-22 Geert Bosch <bosch@adacore.com>
3858 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
3859 depending on __EMX__ or MSDOS being defined.
3860 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
3861 * a-excpol-abort.adb: Update comment indicating users of the file.
3862 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
3864 * env.c: Remove empty conditional for MSDOS.
3865 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
3868 2010-06-22 Robert Dewar <dewar@adacore.com>
3870 * s-rannum.adb: Minor reformatting.
3872 2010-06-22 Javier Miranda <miranda@adacore.com>
3874 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
3875 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
3876 package Sem_Util to package Sem_Aux.
3878 2010-06-22 Javier Miranda <miranda@adacore.com>
3880 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
3881 remove useless restriction on imported routines when building the
3884 2010-06-22 Robert Dewar <dewar@adacore.com>
3886 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
3889 2010-06-22 Javier Miranda <miranda@adacore.com>
3891 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
3892 generic subprogram declarations to ensure proper context. Add missing
3893 support for generic actuals.
3894 (Try_Primitive_Operation): Add missing support for concurrent types
3895 that have no Corresponding_Record_Type. Required to diagnose errors
3897 generics or when compiling with no code generation (-gnatc).
3898 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
3899 the corresponding record type.
3900 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
3901 documentation. Do minimum decoration when processing a primitive of a
3902 concurrent tagged type that covers interfaces. Required to diagnose
3903 errors in the Object.Operation notation compiling generics or under
3905 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
3906 propagation of attribute Interface_List to the corresponding record.
3907 (Expand_N_Task_Type_Declaration): Code cleanup.
3908 (Expand_N_Protected_Type_Declaration): Code cleanup.
3910 2010-06-22 Matthew Heaney <heaney@adacore.com>
3912 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
3914 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
3916 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
3917 that is able to produce all representable floating-point numbers in the
3918 unit interval. Remove template parameter Shift_Right, no longer used.
3919 * gnat_rm.texi: Document the period of the pseudo-random number
3920 generator under the description of its algorithm.
3921 * gcc-interface/Make-lang.in: Update dependencies.
3923 2010-06-22 Thomas Quinot <quinot@adacore.com>
3925 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
3926 reference to discriminant (can be an expanded name as well as an
3929 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3931 * exp_ch6.adb: Clarify comment.
3933 2010-06-22 Geert Bosch <bosch@adacore.com>
3935 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
3936 with decimal small as decimal types, avoiding FP arithmetic.
3937 (Has_Decimal_Small): New function.
3938 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
3940 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
3941 callers to call the new function in Einfo that takes the entity as
3944 2010-06-22 Robert Dewar <dewar@adacore.com>
3946 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
3948 2010-06-22 Thomas Quinot <quinot@adacore.com>
3950 * sem_elab.adb: Minor reformatting.
3952 2010-06-22 Vincent Celier <celier@adacore.com>
3954 * gnatsym.adb: Put the object files in the table in increasing
3955 aphabetical order of base names.
3957 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3959 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
3960 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
3961 the corresponding discriminal within a record declaration.
3963 2010-06-22 Thomas Quinot <quinot@adacore.com>
3965 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
3966 expression referring to a discriminal of the type of the aggregate (not
3967 a discriminal of some other unrelated type), and the prefix in the
3968 generated selected component must come from Lhs, not Obj.
3970 2010-06-22 Thomas Quinot <quinot@adacore.com>
3972 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
3973 when to freeze the parent type.
3975 2010-06-22 Robert Dewar <dewar@adacore.com>
3977 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
3978 exp_aggr.adb: Minor reformatting.
3979 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
3980 GNAT.MBSS_Float_Random.
3981 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
3983 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
3985 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
3986 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
3987 (Random_Float_Template, Random): New method of creating
3988 uniform floating-point variables that allow the creation of all machine
3991 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
3993 2010-06-22 Gary Dismukes <dismukes@adacore.com>
3995 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
3996 to abstract targets to check that the type is tagged and comes from
3997 source, rather than only testing for targets of interface types. Remove
4000 2010-06-22 Vincent Celier <celier@adacore.com>
4002 * vms_data.ads: Modify the declarations of qualifiers
4003 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
4006 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4008 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
4009 expansion is disabled.
4011 2010-06-22 Robert Dewar <dewar@adacore.com>
4013 * makeusg.adb: Minor reformatting.
4015 2010-06-22 Robert Dewar <dewar@adacore.com>
4017 * types.ads: (Dint): Removed, no longer used anywhere.
4018 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
4019 (UI_Mul): Avoid use of UI_From_Dint.
4020 (UI_From_Dint): Removed, not used.
4021 * uintp.ads (UI_From_Dint): Removed, not used.
4022 (Uint_Min/Max_Simple_Mul): New constants.
4024 2010-06-22 Vincent Celier <celier@adacore.com>
4026 * clean.adb (Parse_Cmd_Line): Recognize switch
4027 --unchecked-shared-lib-imports.
4028 (Usage): Add line for switch --unchecked-shared-lib-imports
4029 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
4030 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
4031 moved from GPR_Util.
4032 * switch-m.adb (Scan_Make_Switches): Recognize switch
4033 --unchecked-shared-lib-imports.
4034 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
4035 * gnat_ugn.texi: Add documentation for new switch
4036 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
4038 2010-06-22 Javier Miranda <miranda@adacore.com>
4040 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
4041 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
4042 this patch replaces duplication of code that traverses the chain of
4043 aliased primitives by a call to routine Ultimate_Alias that
4044 provides this functionality.
4046 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4048 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
4049 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
4052 2010-06-22 Thomas Quinot <quinot@adacore.com>
4054 * einfo.ads: Minor reformatting.
4056 2010-06-22 Javier Miranda <miranda@adacore.com>
4058 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
4059 eliminated primitives.
4060 (Make_DT): Avoid referencing eliminated primitives.
4061 (Register_Primitive): Do not register eliminated primitives in the
4062 dispatch table. Required to add this functionality when the program is
4063 compiled without static dispatch tables (-gnatd.t)
4065 2010-06-22 Emmanuel Briot <briot@adacore.com>
4067 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
4068 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
4069 warnings on use of internal GNAT units.
4071 2010-06-22 Jose Ruiz <ruiz@adacore.com>
4073 * s-taprop-vxworks.adb (Set_Priority): Update comments.
4075 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4077 * s-rannum.adb: Make stylistic change to remove mystery constant in
4078 Extract_Value. Image_Numeral_Length: new symbolic constant.
4080 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4082 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
4083 Is_Synchronized_Interface, Is_Task_Interface into computable
4084 predicates, to free three flags in entity nodes.
4085 * sem_ch3.adb: Remove setting of these flags.
4087 2010-06-22 Robert Dewar <dewar@adacore.com>
4089 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
4091 * s-taprop-vxworks.adb: Add comment for Set_Priority.
4092 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
4093 * projects.texi: Move @cindex to the left margin, since otherwise we
4094 are missing entries in the index.
4096 2010-06-22 Emmanuel Briot <briot@adacore.com>
4098 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
4099 packages from the GNAT hierarchy instead of System when possible.
4100 * gcc-interface/Make-lang.in: Update dependencies.
4102 2010-06-22 Jose Ruiz <ruiz@adacore.com>
4104 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
4105 previously in place to reorder the ready queue when a task drops its
4106 priority due to the loss of inherited priority.
4108 2010-06-22 Vincent Celier <celier@adacore.com>
4110 * projects.texi: Minor spelling error fixes.
4113 2010-06-22 Emmanuel Briot <briot@adacore.com>
4115 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
4116 warnings for some with clauses.
4118 2010-06-22 Robert Dewar <dewar@adacore.com>
4120 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
4121 test to catch more cases where first subtype is the results we want.
4122 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
4123 error case, since Errout will now handle this correctly.
4124 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
4125 Update dependencies.
4127 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4129 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
4130 when calling Make_Temporary.
4132 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4134 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
4135 subprogram can be associated with an entry body.
4137 2010-06-22 Robert Dewar <dewar@adacore.com>
4139 * scos.ads: Add note on membership test handling.
4141 2010-06-22 Vincent Celier <celier@adacore.com>
4143 * projects.texi: Minor spelling fixes.
4146 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
4148 * s-rannum.adb: Correct off-by-one error in Extract_Value.
4150 2010-06-22 Vincent Celier <celier@adacore.com>
4152 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
4154 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
4155 gcc command if it is too long.
4157 2010-06-22 Robert Dewar <dewar@adacore.com>
4159 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
4161 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4163 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
4164 calling Make_Temporary.
4166 2010-06-22 Robert Dewar <dewar@adacore.com>
4168 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
4170 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4172 * sem_res.adb: Additional special-case for VMS.
4174 2010-06-22 Vincent Celier <celier@adacore.com>
4176 * gnatsym.adb: Minor comment fix.
4178 2010-06-22 Vincent Celier <celier@adacore.com>
4180 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
4182 2010-06-22 Robert Dewar <dewar@adacore.com>
4184 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
4185 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
4186 Ada 95 mode as an implementation defined attribute.
4188 2010-06-22 Vincent Celier <celier@adacore.com>
4190 * bindusg.adb (Display): Update line for -R
4191 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
4192 generated files when -R is used.
4194 2010-06-22 Vincent Celier <celier@adacore.com>
4196 * prj-nmsc.adb (Lib_Data_Table): New table.
4197 (Check_Library_Attributes): Check if the same library name is used in
4198 two different projects that do not extend each other.
4200 2010-06-22 Robert Dewar <dewar@adacore.com>
4202 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
4204 2010-06-22 Vincent Celier <celier@adacore.com>
4206 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
4207 empty, make it the current working directory.
4209 2010-06-22 Thomas Quinot <quinot@adacore.com>
4211 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
4212 private type with discriminants, make sure the parent type is frozen.
4214 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
4216 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
4217 with packed array references specially.
4218 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
4219 to a component of a bit packed array if it is the prefix of 'Bit.
4220 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
4221 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
4222 'Bit reference, where the prefix involves a packed array reference.
4223 (Get_Base_And_Bit_Offset): New helper, extracted from...
4224 (Expand_Packed_Address_Reference): ...here. Call above procedure to
4225 get the outer object and offset expression.
4227 2010-06-22 Thomas Quinot <quinot@adacore.com>
4229 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
4230 * einfo.adb (Related_Expression, Set_Related_Expression): Add
4233 2010-06-22 Javier Miranda <miranda@adacore.com>
4235 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
4236 reorganization to properly check if the operation has been inherited as
4237 an abstract operation.
4239 2010-06-22 Ed Falis <falis@adacore.com>
4241 * s-osinte-vxworks.ads: Complete previous change.
4243 2010-06-22 Thomas Quinot <quinot@adacore.com>
4245 * sem_res.adb: Add comment.
4246 * projects.texi, gnat_ugn.texi: Remove macro.
4248 2010-06-22 Vincent Celier <celier@adacore.com>
4250 * prj-attr.adb: Remove project level attribute Main_Language.
4252 2010-06-22 Robert Dewar <dewar@adacore.com>
4254 * switch-b.adb, osint-b.adb: Minor reformatting.
4256 2010-06-22 Pascal Obry <obry@adacore.com>
4258 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
4259 vector if previous send was not fully successful. If only part of
4260 the vector data was sent, we exit the loop.
4262 2010-06-22 Thomas Quinot <quinot@adacore.com>
4264 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
4265 error reporting with generic types.
4267 2010-06-22 Thomas Quinot <quinot@adacore.com>
4269 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
4270 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
4271 vms_data.ads: Add a new command line switch -A to gnatbind to output
4272 the list of all ALI files for the partition.
4274 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4276 * s-osinte-vxworks.ads: Fix casing.
4277 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
4278 change: Interfaces.C does not provide a long_long type.
4280 2010-06-22 Emmanuel Briot <briot@adacore.com>
4282 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
4283 native user's guide, since this document contains the two versions.
4284 * gcc-interface/Make-lang.in: Update doc dependencies.
4286 2010-06-22 Robert Dewar <dewar@adacore.com>
4288 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
4290 2010-06-22 Emmanuel Briot <briot@adacore.com>
4292 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
4293 not build this file on its own (only through gnat_ugn.texi).
4294 Remove macro definitions and insert simpler version in gnat_ugn.texi.
4296 2010-06-22 Robert Dewar <dewar@adacore.com>
4298 * ali-util.ads: Minor comment update.
4299 * g-socthi-mingw.adb: Minor reformatting.
4301 2010-06-22 Ed Falis <falis@adacore.com>
4303 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
4304 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
4305 for specific versions of VxWorks.
4307 2010-06-22 Emmanuel Briot <briot@adacore.com>
4309 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
4310 related sections from user's guide and reference manual, since they
4311 have now been merged together into a separate document (projects.texi).
4312 This removes a lot of duplication where attributes where described
4314 The grammar for the project files is now in each of the sections
4315 (packages,expressions,...) instead of being duplicates in two other
4316 sections (one in the user's guide that contained the full grammar,
4317 and various sections in the rm that contained extracts of the same
4319 Added the full list of all supported attributes, since existing lists
4321 Rename "associative array" into "indexed attribute"
4322 Remove sections that were duplicates ("External References in
4323 Project Files" and "External Values", and "Project Extensions"
4324 for instance). The list of valid packages in project files is now in
4327 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4329 * sem_ch3.adb (Add_Internal_Interface_Entities): If
4330 Find_Primitive_Covering_Interface does not find the operation, it may
4331 be because of a name conflict between the inherited operation and a
4332 local non-overloadable name. In that case look for the operation among
4333 the primitive operations of the type. This search must succeed
4334 regardless of visibility.
4336 2010-06-22 Pascal Obry <obry@adacore.com>
4338 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
4339 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
4342 2010-06-22 Robert Dewar <dewar@adacore.com>
4344 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
4346 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
4349 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4351 * s-intman-vxworks.ads: Code clean up.
4353 2010-06-22 Thomas Quinot <quinot@adacore.com>
4355 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
4356 dereference, construct actual subtype of designated object to generate
4357 proper bounds checks.
4359 2010-06-22 Thomas Quinot <quinot@adacore.com>
4361 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
4362 Read_Withed_ALIs, which is more descriptive.
4364 2010-06-22 Pascal Obry <obry@adacore.com>
4366 * g-sothco.ads: Minor reformatting.
4367 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
4368 C_Sendmsg implementation.
4369 (C_Sendmsg): Do not use lock (not needed).
4370 (C_Recvmsg): Likewise and also do not wait for incoming data.
4372 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4374 * uintp.adb: Fix scope error in operator call.
4376 2010-06-22 Vincent Celier <celier@adacore.com>
4378 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
4379 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
4380 autoconfiguration is needed, fail indicating that no config project
4381 file can be found, as there is no autoconfiguration on VMS.
4383 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4385 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
4386 for an operator in a functional notation, when operands are universal.
4388 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4390 * gcc-interface/Make-lang.in: Update dependencies.
4392 2010-06-22 Robert Dewar <dewar@adacore.com>
4394 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
4396 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
4397 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
4399 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
4402 2010-06-22 Vincent Celier <celier@adacore.com>
4404 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
4405 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
4407 2010-06-22 Pascal Obry <obry@adacore.com>
4409 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
4411 (C_Recvmsg): Make sure the routine is atomic. Also fully
4412 fill vectors in the proper order.
4413 (C_Sendmsg): Make sure the routine is atomic.
4415 2010-06-22 Robert Dewar <dewar@adacore.com>
4417 * sem_ch8.adb: Update comment.
4418 * sem_res.adb: Minor code reorganization (use Ekind_In).
4420 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4422 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
4423 name is a call, use the number of actuals to determine whether this is
4424 a binary or unary operator, rather than relying on later information
4425 to resolve the overload.
4427 2010-06-22 Robert Dewar <dewar@adacore.com>
4429 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
4431 2010-06-22 Robert Dewar <dewar@adacore.com>
4433 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
4434 * sem_eval.adb: Minor reformatting.
4436 2010-06-22 Vincent Celier <celier@adacore.com>
4438 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
4439 to gnatlink, except on Open VMS.
4440 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
4441 object directories if -nostdlib is used.
4443 2010-06-22 Robert Dewar <dewar@adacore.com>
4445 * sem_util.adb (Is_Delegate): Put in proper alpha order.
4446 * sem_eval.adb: Minor reformatting.
4448 2010-06-22 Robert Dewar <dewar@adacore.com>
4450 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
4451 * exp_aggr.adb: Minor comment changes and reformatting.
4452 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
4454 * sem_util.ads: Add some missing pragma Inline's.
4456 2010-06-22 Thomas Quinot <quinot@adacore.com>
4458 * sem_util.adb (Build_Actual_Subtype): Record original expression in
4459 Related_Expression attribute of the constructed subtype.
4460 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
4461 Node24 on types for...
4462 (Related_Expression): Make attribute available on types as well.
4464 2010-06-22 Gary Dismukes <dismukes@adacore.com>
4466 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
4467 of Directly_Designated_Type when the type argument is an access type.
4468 (Find_Interface_Tag): Retrieve Designated_Type instead of
4469 Directly_Designated_Type when the type argument is an access type.
4470 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
4471 Directly_Designated_Type of each access discriminant.
4472 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
4473 instead of Directly_Designated_Type when the operand and target types
4476 2010-06-22 Thomas Quinot <quinot@adacore.com>
4478 * exp_aggr.adb (Flatten): Return False if one choice is statically
4479 known to be out of bounds.
4481 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4483 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
4484 a parameterless function call, preserve parentheses of original
4485 expression, for proper handling by pretty printer.
4486 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
4487 procedure, to handle quietly identifiers that have no entity names.
4488 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
4489 elsif_part is missing, it has been rewritten as a nested if, and there
4490 is no useful information on the current value of the variable.
4492 2010-06-22 Gary Dismukes <dismukes@adacore.com>
4494 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
4495 discriminals to the current scope.
4496 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
4497 scope, which could overwrite a different already set value.
4499 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4501 * sem_res.adb (Valid_Conversion): If expression is a predefined
4502 operator, use sloc of type of interpretation to improve error message
4503 when operand is of some derived type.
4504 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
4506 2010-06-22 Emmanuel Briot <briot@adacore.com>
4508 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
4509 that it can set out parameters as well. When a process has died, reset
4510 its Input_Fd to Invalid_Fd, so that when using multiple processes we
4511 can find out which process has died.
4513 2010-06-22 Thomas Quinot <quinot@adacore.com>
4515 * sem_eval.adb (Find_Universal_Operator_Type): New
4516 subprogram to identify the operand type of an operator on universal
4517 operands, when an explicit scope indication is present. Diagnose the
4518 case where such a call is ambiguous.
4519 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
4520 Use the above to identify the operand type so it can be properly
4522 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
4523 type, done in an arbitrary, possibly incorrect type (the presence of
4524 some numeric type in the scope is checked for legality, but when more
4525 than one such type is in the scope, we just pick a random one, not
4526 necessarily the expected one).
4527 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
4530 2010-06-22 Robert Dewar <dewar@adacore.com>
4532 * sem_eval.adb: Minor reformatting.
4534 2010-06-22 Robert Dewar <dewar@adacore.com>
4536 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
4537 Expression_With_Actions to clean up the code generated when folding
4538 constant expressions.
4540 2010-06-22 Vincent Celier <celier@adacore.com>
4542 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
4545 2010-06-22 Vincent Celier <celier@adacore.com>
4547 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
4548 found, check if it's path has aready been found, whatever its index.
4550 2010-06-22 Robert Dewar <dewar@adacore.com>
4552 * atree.adb, gnatbind.adb: Minor reformatting.
4553 Minor code reorganization.
4555 2010-06-21 Robert Dewar <dewar@adacore.com>
4557 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
4558 known at compile time.
4560 2010-06-21 Gary Dismukes <dismukes@adacore.com>
4562 * atree.adb: Fix comment typo.
4564 2010-06-21 Ed Schonberg <schonberg@adacore.com>
4566 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
4567 whether a universal arithmetic expression in a conversion, which is
4568 rewritten from a function call with an expanded name, is ambiguous.
4570 2010-06-21 Vincent Celier <celier@adacore.com>
4572 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
4573 source files in specified list of sources.
4574 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
4576 (Add_Source): Set the Location of the new source
4577 (Process_Exceptions_File_Based): Call Add_Source with the Location
4578 (Get_Sources_From_File): If an exception is found, set its Listed to
4580 (Find_Sources): When Source_Files is specified, if an exception is
4581 found, set its Listed to True. Remove any exception that is not in a
4582 specified list of sources.
4583 * prj.ads (Source_Data): New component Location
4585 2010-06-21 Vincent Celier <celier@adacore.com>
4587 * gnatbind.adb (Closure_Sources): Global table, moved from block.
4589 2010-06-21 Thomas Quinot <quinot@adacore.com>
4591 * sem_res.adb: Minor reformatting.
4592 * atree.adb: New debugging hook "rr" for node rewrites.
4594 2010-06-21 Robert Dewar <dewar@adacore.com>
4596 * g-expect.ads, g-expect.adb: Minor reformatting.
4598 2010-06-21 Emmanuel Briot <briot@adacore.com>
4600 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
4602 2010-06-21 Arnaud Charlet <charlet@adacore.com>
4604 * gcc-interface/Make-lang.in: Update dependencies.
4606 2010-06-21 Thomas Quinot <quinot@adacore.com>
4608 * bindgen.ads: Update comments.
4610 2010-06-21 Vincent Celier <celier@adacore.com>
4612 * gnatbind.adb: Suppress dupicates when listing the sources in the
4613 closure (switch -R).
4615 2010-06-21 Emmanuel Briot <briot@adacore.com>
4617 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
4620 2010-06-21 Emmanuel Briot <briot@adacore.com>
4622 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
4624 (Expect_Internal): No longer raises an exception, so that it can set
4625 out parameters as well. When a process has died, reset its Input_Fd
4626 to Invalid_Fd, so that when using multiple processes we can find out
4627 which process has died.
4629 2010-06-21 Robert Dewar <dewar@adacore.com>
4631 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
4632 checks.adb, sem_res.adb: Minor reformatting. Add comments.
4634 2010-06-21 Ed Schonberg <schonberg@adacore.com>
4636 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
4637 rederivation associated with a full declaration in a private part, and
4638 there is a partial view that derives the same parent subprogram, the
4639 new entity does not become visible. This check must be applied to
4640 interface operations as well.
4642 2010-06-21 Thomas Quinot <quinot@adacore.com>
4644 * checks.adb: Add comments.
4645 * prj-nmsc.adb: Minor reformatting.
4647 2010-06-21 Thomas Quinot <quinot@adacore.com>
4649 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
4650 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
4651 extract bounds, to ensure that we get the proper captured values,
4652 rather than an expression that may have changed value since the point
4653 where the subtype was elaborated.
4654 (Find_Body_Discriminal): New utility subprogram to share code
4656 (Eval_Attribute): For the case of a subtype bound that references a
4657 discriminant of the current concurrent type, insert appropriate
4658 discriminal reference.
4659 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
4660 requeue to an entry in a family in the current task, use corresponding
4662 (Analyze_Accept_Statement): Rely on expansion of attribute references
4663 to insert proper discriminal references in range check for entry in
4666 2010-06-21 Emmanuel Briot <briot@adacore.com>
4668 * s-regpat.adb (Compile): Fix handling of big patterns.
4670 2010-06-21 Robert Dewar <dewar@adacore.com>
4672 * a-tifiio.adb: Minor reformatting.
4674 2010-06-21 Pascal Obry <obry@adacore.com>
4676 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
4679 2010-06-21 Javier Miranda <miranda@adacore.com>
4681 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
4684 2010-06-21 Ed Schonberg <schonberg@adacore.com>
4686 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
4687 to hold the result, indicate that the target of the declaration does
4688 not need an initialization, to prevent spurious errors when
4689 Initialize_Scalars is enabled.
4691 2010-06-21 Ed Schonberg <schonberg@adacore.com>
4693 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
4694 Fore is not bound by line length. The Fore parameter of the internal
4695 procedure that performs the operation is an integer.
4697 2010-06-21 Thomas Quinot <quinot@adacore.com>
4699 * sem_res.adb, checks.adb: Minor reformatting.
4701 2010-06-21 Emmanuel Briot <briot@adacore.com>
4703 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
4705 (Insert_Operator_Before): New subprogram, avoids duplicated code
4706 (Compile): Avoid doing two compilations when the pattern matcher ends
4709 2010-06-21 Emmanuel Briot <briot@adacore.com>
4711 * s-regpat.adb: Improve debug traces
4712 (Dump): Change output format to keep it smaller.
4714 2010-06-21 Javier Miranda <miranda@adacore.com>
4716 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
4717 output to the output file when this routine completes its work.
4719 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
4721 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
4722 for loop. Call build_constructor_from_list directly in the CICO case.
4724 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4726 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
4727 declaration appears in the same unit and ealier than the renamed
4728 entity, retain generated body to prevent order-of-elaboration issues in
4731 2010-06-18 Arnaud Charlet <charlet@adacore.com>
4733 * s-tpoben.adb: Update comments.
4735 2010-06-18 Robert Dewar <dewar@adacore.com>
4737 * debug.adb: Minor comment change.
4739 2010-06-18 Javier Miranda <miranda@adacore.com>
4741 * exp_cg.adb: Code clean up.
4742 * debug.adb: Complete documentation of switch -gnatd.Z.
4743 * gcc-interface/misc.c (callgraph_info_file): Declare.
4745 2010-06-18 Javier Miranda <miranda@adacore.com>
4747 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
4749 2010-06-18 Thomas Quinot <quinot@adacore.com>
4751 * sprint.ads: Minor reformatting.
4752 * output.ads: Update obsolete comment.
4754 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4756 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
4757 an external intrinsic operation (e.g. a GCC numeric function) indicate
4758 that the renaming entity has the same characteristics, so a call to it
4759 is properly expanded.
4761 2010-06-18 Javier Miranda <miranda@adacore.com>
4763 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
4764 support for dispatch table/callgraph info generation.
4765 * gcc-interface/Make-lang.in: Update dependencies.
4767 2010-06-18 Robert Dewar <dewar@adacore.com>
4769 * exp_ch6.adb: Minor reformatting.
4770 * gnatname.adb: Add comment.
4772 2010-06-18 Vincent Celier <celier@adacore.com>
4774 * gnatname.adb (Scan_Args): When --and is used, make sure that the
4775 dynamic tables in the newly allocated Argument_Data are properly
4778 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
4780 * gnat1drv.adb: Fix comment.
4782 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4784 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
4785 renaming, re-expand the call with the renamed subprogram if that one
4786 is marked inlined as well.
4788 2010-06-18 Gary Dismukes <dismukes@adacore.com>
4790 * gnat1drv.adb (Adjust_Global_Switches): Enable
4791 Use_Expression_With_Actions for AAMP and VM targets.
4793 2010-06-18 Vincent Celier <celier@adacore.com>
4795 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
4797 2010-06-18 Thomas Quinot <quinot@adacore.com>
4799 * exp_ch4.adb: Minor reformatting.
4801 2010-06-18 Javier Miranda <miranda@adacore.com>
4803 * debug.ads Add documentation on -gnatd.Z.
4805 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4807 * sem_elim.adb: Proper error message on improperly eliminated instances
4809 2010-06-18 Vincent Celier <celier@adacore.com>
4811 * prj.ads (Response_File_Format): New value GCC.
4813 2010-06-18 Thomas Quinot <quinot@adacore.com>
4815 * gnat1drv.adb: Minor reformatting.
4817 2010-06-18 Robert Dewar <dewar@adacore.com>
4819 * make.adb, sem_cat.adb: Minor reformatting.
4820 * sem_eval.adb: Fix typos.
4822 2010-06-18 Pascal Obry <obry@adacore.com>
4824 * prj-nmsc.adb: Fix source filenames casing in debug output.
4826 2010-06-18 Robert Dewar <dewar@adacore.com>
4828 * gnatcmd.adb: Minor reformatting.
4830 2010-06-18 Robert Dewar <dewar@adacore.com>
4832 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
4833 condition and both sub-expressions are static (and result is selected
4836 2010-06-18 Robert Dewar <dewar@adacore.com>
4838 * g-pehage.adb: Minor reformatting
4840 2010-06-18 Pascal Obry <obry@adacore.com>
4842 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
4845 2010-06-18 Arnaud Charlet <charlet@adacore.com>
4847 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4848 dependencies. Fix target pairs on darwin.
4849 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
4851 2010-06-18 Pascal Obry <obry@adacore.com>
4853 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
4855 2010-06-18 Vincent Celier <celier@adacore.com>
4857 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
4858 configuration pragmas file and, if -U is not used, for a local one.
4860 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4862 * sem_elim.adb (Check_Eliminated): Use full information on entity name
4863 when it is given in the pragma by a selected component.
4864 (Check_For_Eliminated_Subprogram): Do no emit error if within a
4865 instance body that is itself within a generic unit.
4866 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
4867 eliminated, mark as well the anonymous subprogram that is its alias
4868 and appears within the wrapper package.
4870 2010-06-18 Bob Duff <duff@adacore.com>
4872 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
4873 Raise an exception if the output file cannot be opened. Add comments.
4875 2010-06-18 Thomas Quinot <quinot@adacore.com>
4877 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
4878 not illegal per E.2.2(7) if it occurs in the private part of a
4881 2010-06-18 Arnaud Charlet <charlet@adacore.com>
4883 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
4884 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
4885 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
4886 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
4887 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
4888 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
4889 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
4890 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
4891 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
4892 errout.ads: Update comments. Minor reformatting.
4894 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
4895 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
4896 a-strunb.adb (Big_String. Big_String_Access): New type.
4898 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
4899 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
4900 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
4902 2010-06-18 Geert Bosch <bosch@adacore.com>
4904 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
4907 2010-06-18 Robert Dewar <dewar@adacore.com>
4909 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
4912 2010-06-18 Robert Dewar <dewar@adacore.com>
4914 * sprint.adb: Minor format change for N_Expression_With_Actions.
4915 * repinfo.adb: Minor reformatting.
4917 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4919 * sem_elim.adb (Check_Eliminated): If within a subunit, use
4920 Defining_Entity to obtain the name of the entity in the proper body, to
4921 properly handle both separate packages and subprograms.
4923 2010-06-18 Emmanuel Briot <briot@adacore.com>
4925 * prj-nmsc.adb (Check_File): New parameter Display_Path.
4927 2010-06-18 Thomas Quinot <quinot@adacore.com>
4929 * g-socket.adb, g-socket.ads (Null_Selector): New object.
4931 2010-06-18 Pascal Obry <obry@adacore.com>
4933 * gnat_ugn.texi: Minor clarification.
4935 2010-06-18 Emmanuel Briot <briot@adacore.com>
4937 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
4938 code when using the project dir as the source dir.
4939 (Search_Directories): use the normalized name for the source directory,
4940 where symbolic names have potentially been resolved.
4942 2010-06-18 Robert Dewar <dewar@adacore.com>
4944 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
4945 when we create N_Expression_With_Actions node.
4946 (Expand_Short_Circuit): Ditto.
4948 2010-06-18 Robert Dewar <dewar@adacore.com>
4950 * exp_util.adb: Minor reformatting.
4952 2010-06-18 Thomas Quinot <quinot@adacore.com>
4954 * types.ads: Clean up obsolete comments
4955 * tbuild.adb: Minor reformatting.
4956 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
4957 exp_strm.adb, aa_drive.adb: Minor reformatting.
4958 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
4959 intrinsic with an Interface_Name denotes an imported back-end builtin,
4960 and must be rewritten into a call, not left in the tree as an operator,
4961 so return False in that case.
4963 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
4965 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
4967 2010-06-18 Robert Dewar <dewar@adacore.com>
4969 * scos.ads: Add proposed output for case expression
4971 2010-06-18 Jose Ruiz <ruiz@adacore.com>
4973 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
4974 RTSS modules, we need to use the Microsoft linker.
4976 2010-06-18 Robert Dewar <dewar@adacore.com>
4978 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
4979 expression (cannot count on a particular branch being executed).
4980 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
4981 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
4982 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
4983 within case expression.
4984 * expander.adb (Expand): Add call to Expand_N_Case_Expression
4985 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
4986 (P_Case_Expression): New procedure
4987 (P_Case_Expression_Alternative): New procedure
4988 * par.adb (P_Case_Expression): New procedure
4989 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
4991 * sem.adb (Analyze): Add call to Analyze_Case_Expression
4992 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
4993 this is a documentation change only.
4994 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
4995 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
4997 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
4998 * sem_res.adb (Resolve_Case_Expression): New procedure.
4999 * sem_scil.adb (Find_SCIL_Node): Add processing for
5000 N_Case_Expression_Alternative.
5001 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
5002 (N_Case_Expression_Alternative): New node.
5003 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
5004 N_Case_Expression and N_Case_Expression_Alternative.
5006 2010-06-18 Robert Dewar <dewar@adacore.com>
5008 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
5010 * gnat1drv.adb: Fix typo.
5012 2010-06-18 Robert Dewar <dewar@adacore.com>
5014 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
5016 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
5017 gnat style for -gnatg.
5018 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
5020 2010-06-18 Thomas Quinot <quinot@adacore.com>
5022 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
5024 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
5027 2010-06-18 Robert Dewar <dewar@adacore.com>
5029 * sprint.adb: Minor change in output format for expression wi actions.
5030 * par-ch3.adb: Minor code reorganization. Minor reformatting.
5031 * sem_ch5.adb: Minor comment fix.
5033 2010-06-18 Robert Dewar <dewar@adacore.com>
5035 * debug.adb: New debug flag -gnatd.L to control
5036 Back_End_Handles_Limited_Types.
5037 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
5038 limited case if Back_End_Handles_Limited_Types is True.
5039 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
5040 simplify expansion if Use_Expression_With_Actions is True.
5041 * gnat1drv.adb (Adjust_Global_Switches): Set
5042 Back_End_Handles_Limited_Types.
5043 * opt.ads (Back_End_Handles_Limited_Types): New flag.
5045 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5047 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
5048 intrinsic operator if expansion is not enabled, because in an
5049 instantiation the original operator must be present to verify the
5050 legality of the operation.
5052 2010-06-18 Robert Dewar <dewar@adacore.com>
5054 * exp_disp.adb, sem_ch12.adb: Minor reformatting
5056 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5058 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
5059 the class-wide type for a private extension, and the completion is a
5060 subtype, set the type of the class-wide type to the base type of the
5063 2010-06-18 Robert Dewar <dewar@adacore.com>
5065 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
5066 sem_intr.adb, sem_eval.adb: Minor reformatting
5068 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5070 * sem_type.adb (Is_Ancestor): If either type is private, examine full
5073 2010-06-18 Thomas Quinot <quinot@adacore.com>
5075 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
5076 parameter rather than IN OUT.
5078 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5080 * exp_ch6.adb: Add extra guard.
5082 2010-06-18 Gary Dismukes <dismukes@adacore.com>
5084 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
5085 accessibility level of a function call from the level of the innermost
5086 enclosing dynamic scope.
5087 (Innermost_Master_Scope_Depth): New function to find the depth of the
5088 nearest dynamic scope enclosing a node.
5090 2010-06-18 Tristan Gingold <gingold@adacore.com>
5092 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
5094 2010-06-18 Thomas Quinot <quinot@adacore.com>
5096 * g-socket.ads: Minor reformatting.
5098 2010-06-18 Vincent Celier <celier@adacore.com>
5100 * make.adb (Must_Compile): New Boolean global variable
5101 (Main_On_Command_Line): New Boolean global variable
5102 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
5103 even when the project is externally built.
5104 (Start_Compile_If_Possible): Compile in -aL directories if
5105 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
5106 when the project is externally built.
5107 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
5108 invoked with -f -u and one or several mains on the command line.
5109 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
5110 main is specified on the command line.
5112 2010-06-18 Ed Schonberg <schonberg@adacore.com>
5114 * sem_ch6.adb (Build_Body_For_Inline): Handle
5115 extended_return_statements.
5116 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
5117 containing extented_return statements.
5118 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
5119 constrained, do not build subtype declaration.
5121 2010-06-18 Robert Dewar <dewar@adacore.com>
5123 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
5124 Warn on assigning to packed atomic component.
5126 2010-06-18 Robert Dewar <dewar@adacore.com>
5128 * sem_util.ads: Minor reformatting
5129 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
5130 Expression_With_Actions).
5131 * snames.ads-tmpl: Minor comment fix
5133 2010-06-18 Robert Dewar <dewar@adacore.com>
5135 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
5136 (Set_Imported): Use Import_Interface_Present to control message output
5137 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
5138 * gnat_rm.texi: Document that we can have pragma Import and pragma
5139 Interface for the same subprogram.
5141 2010-06-18 Robert Dewar <dewar@adacore.com>
5143 * lib-xref.adb (Generate_Reference): Fix bad reference to
5144 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
5146 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
5148 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
5150 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
5151 Use set_gnu_expr_location_from_node to set location information on the
5154 2010-06-17 Arnaud Charlet <charlet@adacore.com>
5156 * gcc-interface/Make-lang.in: Update dependencies.
5158 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5160 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
5163 2010-06-17 Robert Dewar <dewar@adacore.com>
5165 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
5166 style check messages.
5167 * sem_res.adb (Resolve_Call): Don't call
5168 Check_For_Eliminated_Subprogram if we are analyzing within a spec
5171 2010-06-17 Robert Dewar <dewar@adacore.com>
5173 * debug.adb: Add documentation for debug flags .X and .Y
5174 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
5175 Use_Expression_With_Actions.
5176 * gnat1drv.adb (Adjust_Global_Switches): Set
5177 Use_Expression_With_Actions.
5178 * opt.ads (Use_Expression_With_Actions): New switch.
5180 2010-06-17 Robert Dewar <dewar@adacore.com>
5182 * exp_intr.adb: Minor code reorganization (use UI_Max)
5183 * sem_intr.adb: use underlying type to check legality.
5184 * einfo.adb (Known_Static_Esize): False for generic types
5185 (Known_Static_RM_Size): False for generic types
5186 * einfo.ads (Known_Static_Esize): False for generic types
5187 (Known_Static_RM_Size): False for generic types
5189 2010-06-17 Robert Dewar <dewar@adacore.com>
5191 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
5193 2010-06-17 Robert Dewar <dewar@adacore.com>
5195 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
5196 node when expanding short circuit form with actions present for right
5198 * exp_ch4.adb: Minor reformatting
5199 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
5200 if right opeand has actions present, and debug flag -gnatd.X is set.
5201 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
5203 * nlists.adb (Prepend_List): New procedure
5204 (Prepend_List_To): New procedure
5205 * nlists.ads (Prepend_List): New procedure
5206 (Prepend_List_To): New procedure
5207 * sem.adb: Add processing for Expression_With_Actions
5208 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
5209 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
5210 * sem_res.adb: Add processing for Expression_With_Actions.
5211 * sem_scil.adb: Add processing for Expression_With_Actions
5212 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
5213 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
5215 2010-06-17 Doug Rupp <rupp@adacore.com>
5217 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
5218 involved both have underlying integer types.
5219 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
5220 to an intrinsic operator when the operand types or sizes are not
5222 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
5223 64/32 Address/Integer works.
5225 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5227 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
5228 that it marks a unit as needed by a spec only if the corresponding
5229 instantiation appears in that spec (and not in the corresponding body).
5230 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
5231 in the pragma Eliminate has been parsed as a child unit, but the
5232 current compilation unit is in fact the parent in which the subunit is
5235 2010-06-17 Vincent Celier <celier@adacore.com>
5237 * gnat_rm.texi: Fix typo
5239 2010-06-17 Robert Dewar <dewar@adacore.com>
5241 * sem_util.adb: Minor reformatting
5243 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5245 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
5246 instance, the clause now denotes the instance body. Traverse the
5247 corresponding spec because there may be no other dependence that will
5248 force the traversal of its own context.
5250 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5252 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
5253 Install_Limited_Context_Clauses, to determine whether a limited_with in
5254 some parent of the current unit designates some other parent, in which
5255 case the limited_with clause must not be installed.
5256 (In_Context): Refine test.
5258 2010-06-17 Gary Dismukes <dismukes@adacore.com>
5260 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
5261 type with a dispatching equality operator that is overridden (for a
5262 tagged full type), don't include the overridden equality in the list of
5263 primitives. The overridden equality is detected by testing for an
5264 Aliased field that references the overriding equality.
5266 2010-06-17 Robert Dewar <dewar@adacore.com>
5268 * freeze.adb: Minor reformatting.
5270 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
5272 * gnat_ugn.texi: Add a section introducing gdbserver.
5274 2010-06-17 Thomas Quinot <quinot@adacore.com>
5276 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
5279 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5281 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
5282 constrained discriminated parent that is a private type.
5283 (Analyze_Record_Aggregate): when collecting inherited discriminants,
5284 handle properly an ancestor type that is a constrained private type.
5286 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5288 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
5289 protected, use the protected_subprogram_body only if the original
5290 subprogram has not been eliminated.
5292 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5294 * freeze.adb (Freeze_Expression): The designated type of an
5295 access_to_suprogram type can only be frozen if all types in its profile
5298 2010-06-17 Robert Dewar <dewar@adacore.com>
5300 * par.adb: Minor comment fix
5301 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
5303 2010-06-17 Doug Rupp <rupp@adacore.com>
5305 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
5306 change Address to Short_Address in functions where both must be the
5307 same size for intrinsics to work.
5309 2010-06-17 Thomas Quinot <quinot@adacore.com>
5311 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
5312 not denote a (private) component of a protected object.
5314 2010-06-17 Bob Duff <duff@adacore.com>
5316 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
5319 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
5321 * gnat_ugn.texi: Update the documentation about GDB re: exception
5324 2010-06-17 Arnaud Charlet <charlet@adacore.com>
5326 * gnatvsn.ads: Bump to 4.6 version.
5328 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5330 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
5331 designated type of the generated pointer is the type of the original
5332 expression, not that of the function call itself, because the return
5333 type may be an untagged derived type and the function may be an
5334 inherited operation.
5336 2010-06-17 Robert Dewar <dewar@adacore.com>
5338 * exp_ch4.adb: Minor reformatting.
5340 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5342 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
5343 N_Component_Association nodes, to indicate that a component association
5344 of an extension aggregate denotes the value of a discriminant of an
5345 ancestor type that has been constrained by the derivation.
5346 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
5347 double expansion of the aggregate appearing in a context that delays
5348 expansion, to prevent double insertion of discriminant values when the
5349 aggregate is reanalyzed.
5351 2010-06-17 Arnaud Charlet <charlet@adacore.com>
5353 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
5354 Allocator as the Related_Node of Return_Obj_Access in call to
5355 Make_Temporary below as this would create a sort of infinite
5358 2010-06-17 Ben Brosgol <brosgol@adacore.com>
5360 * gnat_ugn.texi: Update gnatcheck doc.
5362 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5364 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
5365 incomplete view of the type that is not tagged, and the full type is a
5366 tagged extension, create class_wide type now, and warn that the
5367 incomplete view should be tagged as well.
5369 2010-06-17 Vincent Celier <celier@adacore.com>
5371 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
5372 Update the last line of the usage, indicating what commands do not
5373 accept project file switches.
5374 * vms_conv.adb: Do not issue usage line for GNAT SYNC
5375 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
5377 * gnat_ugn.texi: Document the relaxed rules for library directories in
5378 externally built library projects.
5380 2010-06-17 Doug Rupp <rupp@adacore.com>
5382 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
5384 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
5385 * gcc-interface/Makefile.in: Update VMS target pairs.
5387 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
5389 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
5390 compatible with Windows NT 4.0 which doesn't provide this function.
5392 2010-06-17 Vincent Celier <celier@adacore.com>
5394 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
5395 different timestamps but the checksum is the same, issue a short
5398 2010-06-17 Arnaud Charlet <charlet@adacore.com>
5400 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
5401 it means that we cannot reset interrupt handlers since this would
5402 require potentially sending the abort signal to the Server_Task.
5404 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5406 * exp_ch4.adb: expand NOT for VMS types.
5407 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
5409 2010-06-17 Sergey Rybin <rybin@adacore.com>
5411 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
5412 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
5415 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5417 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
5418 protected operation if the subprogram has been eliminated.
5420 2010-06-17 Vincent Celier <celier@adacore.com>
5422 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
5423 directories associated with a library to be any directory when the
5424 library project is externally built.
5426 2010-06-17 Vincent Celier <celier@adacore.com>
5428 * make.adb (Check): If switch -m is used, deallocate the memory that
5429 may be allocated when computing the checksum.
5431 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
5433 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
5434 (C_Sendmsg): Likewise.
5436 2010-06-17 Thomas Quinot <quinot@adacore.com>
5438 * sem_res.adb: Update comments.
5440 2010-06-17 Vincent Celier <celier@adacore.com>
5442 * back_end.adb (Scan_Compiler_Arguments): Process last argument
5444 2010-06-17 Robert Dewar <dewar@adacore.com>
5446 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
5447 * layout.adb, freeze.adb: Use Make_Temporary.
5449 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
5451 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
5452 .NET/JVM normally as this is now perfectly supported by the backend.
5454 2010-06-17 Pascal Obry <obry@adacore.com>
5456 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
5458 2010-06-17 Vincent Celier <celier@adacore.com>
5460 * make.adb (Collect_Arguments_And_Compile): Create include path file
5461 only when -x is specified.
5463 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
5465 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
5466 Objects_Path, defaulted to True. Only create include path file if
5467 Include_Path is True, only create objects path file if Objects_Path is
5469 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
5470 Objects_Path, defaulted to True.
5471 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
5474 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5476 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
5477 determine whether it has the controlling type, when the formal is an
5480 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
5482 * s-crtl.ads (ssize_t): New type.
5483 (read): Fix signature.
5485 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
5486 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
5487 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
5488 (C_Sendmsg): Likewise.
5489 * g-socthi.adb (Syscall_Recvmsg): Likewise.
5490 (Syscall_Sendmsg): Likewise.
5491 (C_Recvmsg): Likewise.
5492 (C_Sendmsg): Likewise.
5493 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
5494 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
5495 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
5496 (C_Sendmsg): Likewise.
5497 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
5498 (C_Sendmsg): Likewise.
5499 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
5500 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
5501 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
5502 (C_Sendmsg): Likewise.
5503 * g-socthi-vms.adb (C_Recvmsg): Likewise.
5504 (C_Sendmsg): Likewise.
5505 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
5506 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
5507 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
5508 (C_Sendmsg): Likewise.
5509 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
5510 (C_Sendmsg): Likewise.
5511 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
5512 (Write): Likewise to call 'write'.
5513 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
5514 (Write): Use correct type to call System.CRTL.write.
5515 * s-tasdeb.adb (Write): Likewise.
5517 2010-06-17 Vincent Celier <celier@adacore.com>
5519 * prj-proc.adb (Copy_Package_Declarations): Change argument name
5520 Naming_Restricted to Restricted. If Restricted is True, do not copy the
5521 value of attribute Linker_Options.
5523 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
5525 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
5526 (Case_Statement_to_gnu): Adjust.
5527 (Loop_Statement_to_gnu): Likewise.
5528 (Subprogram_Body_to_gnu): Likewise.
5529 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
5530 (Compilation_Unit_to_gnu): Likewise.
5532 2010-06-17 Robert Dewar <dewar@adacore.com>
5534 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
5535 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
5536 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
5537 sem_dist.adb, sem_util.adb: Use Make_Temporary
5538 * itypes.ads, tbuild.ads: Minor comment update
5539 * exp_ch9.adb, exp_dist.adb: Minor reformatting
5541 2010-06-17 Thomas Quinot <quinot@adacore.com>
5543 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
5545 2010-06-17 Robert Dewar <dewar@adacore.com>
5547 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
5549 2010-06-17 Thomas Quinot <quinot@adacore.com>
5551 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
5553 2010-06-17 Robert Dewar <dewar@adacore.com>
5555 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
5556 * tbuild.ads (Make_Temporary): More comment updates
5557 * tbuild.adb: Minor reformatting
5559 2010-06-17 Robert Dewar <dewar@adacore.com>
5561 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
5562 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
5564 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
5566 (Make_Temporary): Add more extensive documentation
5568 2010-06-17 Robert Dewar <dewar@adacore.com>
5570 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
5571 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
5572 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
5573 where the slice's actions are inserted.
5574 (Decompose_Expr): Account for possible rewriting of slice bounds
5575 resulting from side effects suppression caused by the above freezing,
5576 so that folding of bounds is preserved by such rewriting.
5578 2010-06-17 Robert Dewar <dewar@adacore.com>
5580 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
5582 * freeze.adb (Freeze_Record_Type): Add call to
5583 Check_Record_Representation_Clause.
5584 * sem_ch13.adb (Check_Record_Representation_Clause): New function
5585 (Analyze_Record_Representation_Clause): Split out overlap code into
5587 (Check_Component_Overlap): Moved inside
5588 Check_Record_Representation_Clause.
5589 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
5591 2010-06-17 Robert Dewar <dewar@adacore.com>
5593 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
5595 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
5596 sem_eval.adb: Use Ekind_In
5598 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5600 * sem_ch8.adb: better error message for illegal inherited discriminant
5602 2010-06-17 Vincent Celier <celier@adacore.com>
5604 * bindusg.adb: Remove lines for -A and -C
5605 * gnat_ugn.texi: Remove all documentation and examples of switches -A
5606 and -C for gnatbind and gnatlink.
5607 * gnatlink.adb (Usage): Remove lines for -A and -C
5608 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
5610 * gcc-interface/Make-lang.in: Update dependencies.
5612 2010-06-17 Vincent Celier <celier@adacore.com>
5614 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
5615 local Argument_List variable Args.
5616 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
5618 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
5619 for subsequent switches in Args.
5620 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
5622 * gcc-interface/Make-lang.in: Update dependencies.
5624 2010-06-17 Robert Dewar <dewar@adacore.com>
5626 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
5627 Equivalent_Type to match documentation.
5629 2010-06-17 Robert Dewar <dewar@adacore.com>
5631 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
5632 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
5633 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
5635 2010-06-17 Thomas Quinot <quinot@adacore.com>
5637 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
5639 2010-06-17 Thomas Quinot <quinot@adacore.com>
5641 * freeze.adb (Freeze_Expression): Short circuit operators are valid
5642 freeze node insertion points.
5644 2010-06-17 Robert Dewar <dewar@adacore.com>
5646 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
5647 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
5649 2010-06-17 Gary Dismukes <dismukes@adacore.com>
5651 * layout.adb (Layout_Type): Broaden test for setting an array type's
5652 Component_Size to include all scalar types, not just discrete types
5653 (components of real types were missed).
5654 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
5655 on the itype created for an index (consistent with Make_Index and
5656 avoids possible Assert_Failures).
5658 2010-06-17 Robert Dewar <dewar@adacore.com>
5660 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
5661 * einfo.adb: Minor code reformatting (use Ekind_In)
5663 2010-06-17 Robert Dewar <dewar@adacore.com>
5665 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
5668 2010-06-17 Vincent Celier <celier@adacore.com>
5670 * back_end.adb: Minor comment updates
5671 * switch-c.adb: Remove dependencies on gcc C sources
5672 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
5675 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5677 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
5678 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
5679 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
5680 Remove use of Node field in SCOs table
5681 (Output_Header): Set 'd' to initially disable pragma entry
5682 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
5683 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
5684 Use C2 field of pragma decision header to indicate enabled.
5685 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
5686 * gcc-interface/Make-lang.in: Update dependencies.
5688 2010-06-17 Vincent Celier <celier@adacore.com>
5690 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
5691 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
5692 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
5693 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
5695 * switch-c.adb: Copied a number of global declarations from
5697 (Len_Arg): New function copied from back_end.adb
5698 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
5699 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
5700 Switch_Subsequently_Cancelled.
5701 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
5702 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
5703 with -lexc on Tru64.
5705 2010-06-17 Robert Dewar <dewar@adacore.com>
5707 * prj.ads, prj.adb: Minor reformatting
5709 2010-06-17 Thomas Quinot <quinot@adacore.com>
5711 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
5712 CP line for a disabled pragma.
5714 2010-06-17 Emmanuel Briot <briot@adacore.com>
5716 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
5718 (Process_Declarative_Item): An invalid value in an typed variable
5719 declaration is no longer always fatal.
5721 2010-06-16 Arnaud Charlet <charlet@adacore.com>
5723 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
5724 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
5727 2010-06-16 Javier Miranda <miranda@adacore.com>
5729 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
5730 node referenced by the SCIL node of dispatching "=" to skip the tags
5733 2010-06-16 Ed Schonberg <schonberg@adacore.com>
5735 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
5736 to prevent cascaded errors and compilation aborts.
5738 2010-06-16 Robert Dewar <dewar@adacore.com>
5740 * back_end.adb (Switch_Subsequently_Cancelled): New function
5741 Move declarations to package body level to support this change
5742 * back_end.ads (Switch_Subsequently_Cancelled): New function
5743 * gnat_ugn.texi: Document -gnat-p switch
5744 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
5745 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
5746 * usage.adb: Add line for -gnat-p switch
5747 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
5749 2010-06-16 Robert Dewar <dewar@adacore.com>
5751 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
5754 2010-06-16 Robert Dewar <dewar@adacore.com>
5756 * exp_disp.adb: Minor reformatting
5758 2010-06-16 Ed Schonberg <schonberg@adacore.com>
5760 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
5761 base type only if it was not previously created for the partial view.
5763 2010-06-16 Thomas Quinot <quinot@adacore.com>
5765 * tbuild.ads: Minor comment fix
5767 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
5769 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
5770 (gnu_except_ptr_stack): Change type to VEC. Update comment.
5771 (gnu_elab_proc_stack): Likewise.
5772 (gnu_return_label_stack): Likewise.
5773 (gnu_loop_label_stack): Likewise.
5774 (gnu_switch_label_stack): Likewise.
5775 (gnu_constraint_label_stack): Likewise.
5776 (gnu_storage_error_label_stack): Likewise.
5777 (gnu_program_error_label_stack): Likewise.
5778 (push_exception_label_stack): Take a VEC ** instead of a tree *.
5779 (push_stack): Likewise. Remove unused second parameter. Update
5781 (pop_stack): Take a VEC * instead of a tree *. Update callers.
5782 (gigi): Initialize stacks as VECs.
5783 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
5784 (Case_Statement_to_gnu): Likewise.
5785 (Subprogram_Body_to_gnu): Likewise.
5786 (call_to_gnu): Likewise.
5787 (Exception_Handler_to_gnu_sjlj): Likewise.
5788 (gnat_to_gnu): Likewise.
5789 (get_exception_label): Likewise.
5791 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5793 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
5794 anonymous base generated when the parent is a constrained discriminated
5795 type, propagate interface list to first subtype because it may appear
5796 in a current instance within the extension part of the derived type
5797 declaration, and its own subtype declaration has not been elaborated
5799 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
5800 determine whether it has the controlling type.
5802 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
5804 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
5805 raise of CE, SE and PE have the reason correctly set and are properly
5806 expanded before stopping the expansions of .NET/JVM exceptions.
5808 2010-06-14 Robert Dewar <dewar@adacore.com>
5810 * opt.ads (Check_Policy_List): Add some clarifying comments
5811 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
5812 on rewritten Assert pragma.
5814 2010-06-14 Gary Dismukes <dismukes@adacore.com>
5816 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
5817 controlled operations, so that they will be treated as overriding even
5818 if the overridden subprogram is marked Is_Hidden, as long as the
5819 overridden subprogram's parent subprogram is not hidden.
5821 2010-06-14 Robert Dewar <dewar@adacore.com>
5823 * debug.adb: Entry for gnatw.d no longer specific for while loops
5824 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
5825 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
5826 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
5827 new calling sequence to include test for EXIT WHEN.
5828 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
5830 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
5832 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
5834 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
5835 PRAGMA, not to pragma identifier).
5836 (Next_Exit_Statement): New attribute of N_Exit_Statement node
5838 2010-06-14 Robert Dewar <dewar@adacore.com>
5840 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
5843 2010-06-14 Robert Dewar <dewar@adacore.com>
5845 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
5846 missing pragma argument identifier.
5848 2010-06-14 Robert Dewar <dewar@adacore.com>
5850 * atree.ads, atree.adb (Ekind_In): New functions.
5852 2010-06-14 Robert Dewar <dewar@adacore.com>
5854 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
5856 2010-06-14 Robert Dewar <dewar@adacore.com>
5858 * usage.adb (Usage): Redo documentation of -gnatwa.
5860 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5862 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
5863 an untagged incomplete type that is a limited view.
5865 2010-06-14 Sergey Rybin <rybin@adacore.com>
5867 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
5870 2010-06-14 Thomas Quinot <quinot@adacore.com>
5872 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
5873 factoring duplicated code between...
5874 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
5875 * a-envvar.ads: Minor reformatting
5877 2010-06-14 Arnaud Charlet <charlet@adacore.com>
5879 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
5881 (Scan_ALI): Take into account new Visibility field.
5882 (Visibility_Kind): New type.
5883 (Xref_Entity_Record): Replace Lib field by Visibility.
5885 * gcc-interface/Make-lang.in: Update dependencies.
5887 2010-06-14 Pascal Obry <obry@adacore.com>
5889 * raise.h: Remove unused defintions.
5891 2010-06-14 Bob Duff <duff@adacore.com>
5893 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
5894 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
5895 the incorrect error "proper body expected".
5896 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
5897 allowed here" error in case of subunits, which was triggered by the
5898 above change to P_Subunit.
5900 2010-06-14 Sergey Rybin <rybin@adacore.com>
5902 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
5904 2010-06-14 Thomas Quinot <quinot@adacore.com>
5906 * lib-util.adb: Minor code reorganization.
5908 2010-06-14 Robert Dewar <dewar@adacore.com>
5910 * ali.adb (Scan_ALI): Implement reading and storing of N lines
5911 (Known_ALI_Lines): Add entry for 'N' (notes)
5912 * ali.ads (Notes): New table to store Notes information
5913 * alloc.ads: Add entries for Notes table
5914 * lib-util.adb (Write_Info_Int): New procedure
5915 (Write_Info_Slit): New procedure
5916 (Write_Info_Uint): New procedure
5917 * lib-util.ads (Write_Info_Int): New procedure
5918 (Write_Info_Slit): New procedure
5919 (Write_Info_Uint): New procedure
5920 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
5921 * lib-writ.ads: Update documentation for N (Notes) lines
5922 * lib.adb (Store_Note): New procedure
5923 * lib.ads (Notes): New table
5924 (Store_Note): New procedure
5925 * sem_prag.adb: Call Store_Note for affected pragmas
5927 2010-06-14 Thomas Quinot <quinot@adacore.com>
5929 * socket.c: Fix wrong condition in #ifdef
5930 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
5931 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
5932 because on VMS this type is a 32-bit pointer which is not compatible
5933 with the default for C pointers for code compiled with gcc on that
5936 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5938 * sem_util (Is_VMS_Operator): New predicate to determine whether an
5939 operator is an intrinsic operator declared in the DEC system extension.
5940 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
5941 if the operator is a VMS intrinsic.
5942 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
5943 constant-folded if the operands are signed and the operator is a VMS
5946 2010-06-14 Robert Dewar <dewar@adacore.com>
5948 * g-socket.adb, gnatcmd.adb: Minor reformatting.
5950 2010-06-14 Pascal Obry <obry@adacore.com>
5952 * s-finimp.adb: Fix typo.
5953 * raise.h: Remove duplicate blank line.
5955 2010-06-14 Vincent Celier <celier@adacore.com>
5957 * prj-nmsc.adb (Add_Sources): Always set the object file and the
5958 switches file names, as the configuration of the language may change
5959 in an extending project.
5960 (Process_Naming_Scheme): For sources of projects that are extended, set
5961 the configuration of the language from the highest extending project
5962 where the language is declared.
5964 2010-06-14 Gary Dismukes <dismukes@adacore.com>
5966 * sem_res.adb (Resolve_Call): For infinite recursion check, test
5967 whether the called subprogram is inherited from a containing
5969 (Same_Or_Aliased_Subprograms): New function
5971 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5973 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
5974 use-visible, check whether it is a primitive for more than one type.
5976 2010-06-14 Robert Dewar <dewar@adacore.com>
5978 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
5980 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
5981 Has_Pragma_Unmodified flag.
5983 2010-06-14 Thomas Quinot <quinot@adacore.com>
5985 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
5986 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
5987 now done in GNAT.Sockets if necessary.
5988 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
5989 Ensure mutual exclusion for netdb operations if the target platform
5991 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
5992 struct hostent as an opaque type to improve portability.
5993 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
5994 gethostbyYYY using proprietary VxWorks API so that a uniform interface
5995 is available for the Ada side.
5996 * gcc-interface/Makefile.in: Remove g-sttsne-*
5997 * gcc-interface/Make-lang.in: Update dependencies.
5999 2010-06-14 Vincent Celier <celier@adacore.com>
6001 * gnatcmd.adb (Mapping_File): New function.
6003 2010-06-14 Javier Miranda <miranda@adacore.com>
6005 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
6007 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6009 * ali.adb: Fix typo.
6010 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
6012 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6014 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
6017 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
6018 the context does not have a homonym of the selector, emit default
6021 2010-06-14 Robert Dewar <dewar@adacore.com>
6023 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
6026 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6028 * lib-xref.ads: Doc updates:
6029 - Allocate 'Q' for #include entity kind
6031 - Allocate 'g' for regular macros
6032 - Allocate 'G' for function-like macros
6034 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6036 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
6037 Indicates that there is an instantiation in the current unit that
6038 loaded the body of the unit denoted by the with_clause.
6039 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
6040 whether a with_clause in the current context denotes the unit that
6041 holds the generic declaration, and mark the with_clause accordingly.
6042 (Instantiate_Package_Body): call Mark_Context.
6043 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
6044 whether a given body should be traversed before the spec of the main
6047 2010-06-14 Ed Falis <falis@adacore.com>
6049 * sysdep.c: Fix 653 build against vThreads headers.
6051 2010-06-14 Robert Dewar <dewar@adacore.com>
6053 * sinfo.ads: Minor reformatting.
6055 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6057 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
6058 the spec has been generated for a body without spec that carries an
6059 Inline_Always pragma.
6061 2010-06-14 Arnaud Charlet <charlet@adacore.com>
6063 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
6066 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
6068 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
6069 declaration for VMs, as those are useless and might lead to duplicated
6070 local variable names in the generated code.
6071 * gcc-interface/Make-lang.in: Update dependencies.
6073 2010-06-14 Robert Dewar <dewar@adacore.com>
6075 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
6077 2010-06-14 Robert Dewar <dewar@adacore.com>
6079 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
6080 is renamed as Has_Following_Address_Clause.
6081 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
6082 to allow the caller to avoid Initialize_Scalars having an effect.
6083 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
6084 scalars with an address clause specified.
6085 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
6086 to allow the caller to avoid Initialize_Scalars having an effect.
6087 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
6088 (where it was called Has_Address_Clause).
6089 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
6090 (where it was called Has_Address_Clause).
6091 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
6092 problems for Initialize_Scalars (since we no longer initialize objects
6093 with an address clause.
6095 2010-06-14 Robert Dewar <dewar@adacore.com>
6097 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
6100 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6102 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
6103 on the entity of an implicitly generated postcondition procedure.
6105 2010-06-14 Thomas Quinot <quinot@adacore.com>
6107 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
6108 Discriminant_Constraint elist from full view to private view.
6110 2010-06-14 Robert Dewar <dewar@adacore.com>
6112 * sem_res.adb: Minor reformatting.
6114 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6116 * sem.adb: New version of unit traversal.
6118 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
6119 within a generic unit in the table of delayed calls.
6121 2010-06-14 Robert Dewar <dewar@adacore.com>
6123 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
6125 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6127 * sem_ch12.adb (Save_References): If an identifier has been rewritten
6128 during analysis as an explicit dereference, keep the reference implicit
6129 in the generic, but preserve the entity if global. This prevents
6130 malformed generic trees in the presence of some nested generics.
6132 2010-06-14 Sergey Rybin <rybin@adacore.com>
6134 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
6135 tool with '-files=' option. Also fix some small errors (wrong brackets)
6137 2010-06-14 Vincent Celier <celier@adacore.com>
6139 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
6140 the ALI files on the command line.
6142 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
6143 the same value as the parameter of the same name.
6144 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
6146 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
6147 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
6148 emit version symbols only for the units of the library.
6149 (Gen_Versions_C): Ditto.
6151 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6153 * sem_ch4.adb: Fix typo.
6155 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
6157 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
6158 vector IO doesn't work at default value properly.
6160 2010-06-14 Doug Rupp <rupp@adacore.com>
6162 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
6164 2010-06-14 Vincent Celier <celier@adacore.com>
6166 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
6167 sources of the project if a switch -files= is used.
6169 2010-06-14 Thomas Quinot <quinot@adacore.com>
6171 * exp_attr.adb: Minor reformatting.
6173 2010-06-14 Gary Dismukes <dismukes@adacore.com>
6175 * gnat_ugn.texi: Minor typo fixes and wording changes.
6177 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6179 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
6180 prefixed form, do not re-analyze first actual, which may need an
6181 implicit dereference.
6182 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
6183 prefixed notation, the analysis will rewrite the node, and possible
6184 errors appear in the rewritten name of the node.
6185 * sem_res.adb: If a call is ambiguous because its first parameter is
6186 an overloaded call, report list of candidates, to clarify ambiguity of
6189 2010-06-14 Doug Rupp <rupp@adacore.com>
6191 * s-auxdec-vms-alpha.adb: New package body implementing legacy
6192 VAX instructions with Asm insertions.
6193 * s-auxdec-vms_64.ads: Inline VAX queue functions
6194 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
6195 that show up only on VMS.
6196 * gcc-interface/Makefile.in: Provide translation for
6197 s-auxdec-vms-alpha.adb.
6199 2010-06-14 Olivier Hainque <hainque@adacore.com>
6201 * initialize.c (VxWorks section): Update comments.
6203 2010-06-14 Robert Dewar <dewar@adacore.com>
6205 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
6207 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
6209 * init.c: Code clean up.
6211 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6213 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
6214 not insert address clause in table for later validation if type of
6215 entity is generic, to prevent possible spurious errors.
6217 * sem_ch8.adb: Code clean up.
6219 2010-06-14 Ben Brosgol <brosgol@adacore.com>
6221 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
6222 texi2pdf and texi2html.
6223 Document how to change scheduling properties on HP-UX.
6225 2010-06-14 Thomas Quinot <quinot@adacore.com>
6227 * g-socket.ads: Remove misleading comments.
6229 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
6231 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
6232 CLI_Target as this prevents proper detection of exported names
6233 duplicates when the exported language is different to CIL.
6234 (Process_Interface_Name): Add check for CIL convention exports,
6235 replacing the old one from Check_Duplicated_Export_Name.
6237 2010-06-14 Matthew Heaney <heaney@adacore.com>
6239 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
6240 and new last satisfy constraints.
6241 (Delete_Last): prevent overflow for subtraction of index values
6242 (To_Vector): prevent overflow for addition of index values
6244 2010-06-14 Ed Schonberg <schonberg@adacore.com>
6246 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
6247 rewritten call, preserve the resulting type to prevent spurious errors,
6248 when the call is implicitly dereferenced in the context of an in-out
6251 * checks.adb (Apply_Discriminant_Check): If the target of the
6252 assignment is a renaming of a heap object, create constrained type for
6255 2010-06-14 Pascal Obry <obry@adacore.com>
6257 * prj-proc.adb: Fix copy of object directory for extending projects.
6259 2010-06-14 Jose Ruiz <ruiz@adacore.com>
6261 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
6262 (__gnat_install_handler, PowerPC linux): Activate the alternative
6265 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
6267 * gnat_rm.texi: Move to GFDL version 1.3.
6268 * gnat-style.texi: Ditto.
6269 * gnat_ugn.texi: Ditto.
6271 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
6274 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
6277 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
6279 * gcc-interface/utils.c (update_pointer_to): Initialize last.
6281 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
6283 * gcc-interface/ada-tree.h: Fix formatting nits.
6285 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6287 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
6289 (init_dummy_type): Likewise.
6290 (gnat_pushlevel): Likewise.
6292 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
6293 (Subprogram_Body_to_gnu): Likewise.
6294 (Compilation_Unit_to_gnu): Likewise.
6295 (start_stmt_group): Likewise.
6296 (extract_encoding): Likewise.
6297 (decode_name): Likewise.
6299 * gcc-interface/misc.c (gnat_printable_name): Likewise.
6301 * gcc-interface/decl.c (annotate_value): Likewise.
6303 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
6305 (struct lang_decl): Likewise.
6306 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
6307 (SET_DECL_LANG_SPECIFIC): Likewise.
6309 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
6311 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
6312 * gcc-interface/lang-specs.h: Likewise.
6314 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
6317 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
6319 2010-06-01 Arnaud Charlet <charlet@adacore.com>
6321 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
6323 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
6325 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
6326 TYPE_DECL of the equivalent type instead of building a new one.
6328 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
6330 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
6331 Fix nits in comments.
6332 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
6333 * gcc-interface/trans.c (gigi): Likewise.
6334 (Attribute_to_gnu): Likewise.
6335 (Case_Statement_to_gnu): Likewise.
6336 (gnat_to_gnu): Adjust warning message.
6337 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
6338 (build_vms_descriptor32): Likewise.
6340 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
6342 * gcc-interface/decl.c: Pretend to be a backend file by undefining
6343 IN_GCC_FRONTEND (still need rtl.h here).
6345 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
6347 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
6348 (gigi): Adjust call to set_stack_check_libfunc.
6350 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
6352 * gcc-interface/utils.c: Do not include rtl.h.
6354 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
6356 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
6357 and gimple.h. Explain why rtl.h has to be included.
6358 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
6359 * gcc-interface/targtyps.c: Do not include tm_p.h
6360 * gcc-interface/utils2.c: Do not include flags.h.
6361 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
6362 and explain why it has to be included.
6363 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
6365 Include function.h and explain why. Explain why except.h is included.
6366 (enumerate_modes): Remove unused function.
6367 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
6368 * gcc-interface/Make-lang.in: Update dependencies.
6370 2010-05-25 Joseph Myers <joseph@codesourcery.com>
6372 * gcc-interface/misc.c (internal_error_function): Add context
6373 parameter. Use it to access show_column flag and instead of using
6374 global_dc. Call warn_if_plugins.
6375 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
6377 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
6379 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
6380 * gcc-interface/trans.c (unshare_save_expr): Delete.
6381 (gigi): Do not unshare trees under SAVE_EXPRs here.
6383 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6385 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
6387 * gcc-interface/utils.c (build_function_stub): Likewise.
6389 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6391 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
6392 for Wuninitialized without -O.
6394 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6396 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
6397 ADT_exception_data_name_id.
6398 (exception_data_name_id): New define.
6399 * gcc-interface/trans.c (gigi): Initialize it.
6400 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
6401 exception type for standard exception definitions. Do not make them
6403 <E_Record_Type>: Equate fields of types associated with an exception
6404 definition to those of the standard exception type.
6406 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
6408 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
6410 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
6412 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
6413 code, improve comments and fix formatting nits.
6415 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
6417 * gcc-interface/utils.c (update_pointer_to): Return early if the old
6418 pointer already points to the new type. Chain the old pointer and its
6419 variants at the end of new pointer's chain after updating them.
6421 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
6423 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
6424 built for interfaces.
6425 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
6426 imported_p instead of Is_Imported when considering constants.
6427 Do not promote alignment of exported objects.
6428 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
6430 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6432 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
6433 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
6434 constants really constant.
6435 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
6437 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6439 * gcc-interface/decl.c (make_aligning_type): Declare the type.
6441 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6443 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
6444 expressions of variant part of record types declared at library level.
6446 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6448 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
6449 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
6450 (rest_of_record_type_compilation): Adjust call to create_field_decl.
6451 (make_descriptor_field): Likewise and pass correctly typed constants.
6452 (build_unc_object_type): Likewise.
6453 (unchecked_convert): Likewise.
6454 * gcc-interface/decl.c (elaborate_expression_2): New static function.
6455 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
6456 Adjust call to create_field_decl.
6457 (make_aligning_type): Likewise.
6458 (make_packable_type): Likewise.
6459 (maybe_pad_type): Likewise.
6460 (gnat_to_gnu_field): Likewise.
6461 (components_to_record): Likewise.
6462 (create_field_decl_from): Likewise.
6463 (create_variant_part_from): Remove superfluous test.
6464 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
6466 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6468 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
6469 (build_unc_object_type_from_ptr): Likewise.
6470 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
6471 and pass it to create_type_decl. Declare the type. Simplify.
6472 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
6473 it to build_unc_object_type.
6474 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
6475 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
6476 (gnat_to_gnu): Likewise.
6477 * gcc-interface/utils2.c (build_allocator): Likewise.
6479 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
6482 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
6484 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6486 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
6488 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
6491 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
6493 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
6495 * gnathtml.pl: Use 755 as mask for new directories.
6497 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
6499 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
6500 constant constructors before taking their address.
6502 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
6504 * exp_dbug.ads: Fix outdated description. Mention link between XVS
6506 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
6507 XVZ variable as unit size of XVS type.
6508 (maybe_pad_type): Likewise.
6510 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
6512 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
6513 use memmove if the array type is bit-packed.
6515 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
6517 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
6518 build_common_tree_nodes.
6520 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
6522 * gsocket.h: Make sure that winsock2.h is included before windows.h.
6524 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
6526 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
6529 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
6531 * uintp.h (UI_Lt): Declare.
6532 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
6533 computation in sizetype.
6534 <E_Array_Subtype>: Use unified handling for all index types. Do not
6535 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
6537 (annotate_value): Change test for negative values.
6538 (validate_size): Apply test for negative values on GNAT nodes.
6539 (set_rm_size): Likewise.
6540 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
6541 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
6542 for negative values.
6543 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
6544 (builtin_type_for_size): Adjust definition of signed_size_type_node.
6545 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
6546 lengths against zero.
6548 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
6550 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
6551 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
6552 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
6553 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
6554 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
6555 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
6557 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
6558 flag_signed_char. Tag sizetype with "size_type" moniker.
6559 * gcc-interface/trans.c (gigi): Add standard_character parameter.
6560 Remove useless built-in types. Equate unsigned_char_type_node to
6561 Standard.Character. Use it instead of char_type_node throughout.
6562 (Attribute_to_gnu): Likewise.
6563 (gnat_to_gnu): Likewise.
6564 * gcc-interface/utils2.c (build_call_raise): Likewise.
6566 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
6568 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
6569 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
6570 (sbitsize_one_node): New macro.
6571 (sbitsize_unit_node): Likewise.
6572 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
6573 latent bug in the computation of subrange_p. Fold wider_p predicate.
6574 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
6575 the final comparison.
6576 (make_aligning_type): Build real negation and use sizetype throughout
6577 the offset computation.
6578 (maybe_pad_type): Do not issue the warning when the new size expression
6580 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
6581 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
6583 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
6585 (gnat_to_gnu) <N_Free_Statement>: Likewise.
6586 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
6587 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
6588 constants in sizetype. Remove dead code and tweak comments. Generate
6589 equality instead of inequality comparisons for zero length tests.
6591 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6593 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
6594 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
6595 <object>: Do not create the fake PARM_DECL if no debug info is needed.
6596 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
6597 purposes if no debug info is needed.
6598 Fix formatting. Reorder and add comments.
6599 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
6600 variable and remove obsolete comment.
6601 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
6602 (convert_vms_descriptor32): Likewise.
6603 (convert): Remove dead code.
6604 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
6605 the reference to the P_ARRAY pointer.
6606 <POINTER_TYPE>: Likewise.
6607 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
6608 (gnat_init_decl_processing): Delete, move contents to...
6609 * gcc-interface/misc.c (gnat_init): ...here.
6611 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6613 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
6614 calls. Return true for conversion from a record subtype to its type.
6616 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6618 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
6619 lieu of integer_type_node for boolean operations.
6620 (choices_to_gnu): Likewise.
6621 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
6622 (Loop_Statement_to_gnu): Likewise.
6623 (establish_gnat_vms_condition_handler): Likewise.
6624 (Exception_Handler_to_gnu_sjlj): Likewise.
6625 (gnat_to_gnu): Likewise.
6626 (build_unary_op_trapv): Likewise.
6627 (build_binary_op_trapv): Likewise.
6628 (emit_range_check): Likewise.
6629 (emit_index_check): Likewise.
6630 (convert_with_check): Likewise.
6631 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
6632 (convert_vms_descriptor32): Likewise.
6633 (convert_vms_descriptor): Likewise.
6634 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
6635 (compare_arrays): Use boolean instead of integer constants.
6636 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
6637 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
6639 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
6640 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
6641 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
6642 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
6643 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
6644 for boolean operations.
6645 (fill_vms_descriptor): Likewise. Fix formatting nits.
6647 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6649 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
6650 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
6652 (LOOP_STMT_COND): ...this.
6653 (LOOP_STMT_BOTTOM_COND_P): New flag.
6654 (LOOP_STMT_TOP_UPDATE_P): Likewise.
6655 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
6656 (can_equal_min_val_p): New static inline function.
6657 (can_equal_max_val_p): Likewise.
6658 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
6659 new LOOP_STMT semantics. Use two different strategies depending on
6660 whether optimization is enabled to translate the loop.
6661 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
6663 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6665 * uintp.adb (UI_From_Dint): Remove useless code.
6666 (UI_From_Int): Likewise.
6667 * uintp.h: Reorder declarations.
6668 (UI_From_gnu): Declare.
6669 (UI_Base): Likewise.
6670 (Vector_Template): Likewise.
6671 (Vector_To_Uint): Likewise.
6674 * gcc-interface/gigi.h: Tweak comments.
6675 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
6676 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
6678 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
6679 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
6680 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
6681 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
6684 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6686 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
6688 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
6689 (smaller_form_type_p): ...this. Change parameter and variable names.
6690 (call_to_gnu): Use the nominal type of the parameter to create the
6691 temporary if it's a smaller form of the actual type.
6692 (addressable_p): Return false if the actual type is integral and its
6693 size is greater than that of the expected type.
6695 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6697 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
6698 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
6699 (process_attributes): Delete.
6700 (post_error_ne_num): Change parameter name.
6701 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
6702 with -g3. Remove a couple of obsolete lines. Minor tweaks.
6703 If type annotating mode, operate on trees to compute the adjustment to
6704 the sizes of tagged types. Fix long line.
6705 (cannot_be_superflat_p): Tweak head comment.
6706 (annotate_value): Fold local constant.
6707 (set_rm_size): Fix long line.
6708 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
6709 (Attribute_to_gnu): Fix long line.
6710 <Attr_Size>: Remove useless assertion.
6711 Reorder statements. Use size_binop routine.
6712 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
6713 Create local variables for the label and the test. Tweak comments.
6714 (Subprogram_Body_to_gnu): Reset cfun to NULL.
6715 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
6716 (process_inlined_subprograms): Integrate into...
6717 (Compilation_Unit_to_gnu): ...this.
6718 (gnat_to_gnu): Fix long line.
6719 (post_error_ne_num): Change parameter name.
6720 * gcc-interface/utils.c (process_attributes): Static-ify.
6721 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
6722 (create_type_decl): Add comment.
6723 (create_var_decl_1): Process the attributes after adding the VAR_DECL
6724 to the current binding level.
6725 (create_subprog_decl): Likewise for the FUNCTION_DECL.
6726 (end_subprog_body): Do not reset cfun to NULL.
6727 (build_vms_descriptor32): Fix long line.
6728 (build_vms_descriptor): Likewise.
6729 (handle_nonnull_attribute): Likewise.
6730 (convert_vms_descriptor64): Likewise.
6731 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
6732 (gnat_protect_expr): Fix thinko.
6734 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6736 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
6737 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
6738 before translating the top-level node.
6739 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
6740 <N_Object_Declaration>: Likewise.
6741 <N_Assignment_Statement>: Likewise.
6742 <N_Unchecked_Type_Conversion>: Likewise.
6743 (call_to_gnu): Remove kludge.
6744 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
6745 associated with user returns to be preserved.
6746 (gnat_to_gnu): Add special code to deal with boolean rvalues.
6747 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
6749 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
6750 <INDIRECT_REF>: Call build_fold_indirect_ref.
6752 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
6754 * g-socket.adb: A target can have multiple missing errno's. This
6755 will result in multiple errno's being defined as -1. Because of this
6756 we can not use a case but must use a series of if's to avoid
6757 a duplicate case error in GNAT.Sockets.Resolve_Error.
6759 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6761 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
6762 a statement. Otherwise, if at top-level, push the processing of the
6763 elaboration routine. In the misaligned case, issue the error messages
6764 again on entry and create the temporary explicitly. Do not issue them
6766 For a function call, emit the range check if necessary.
6767 In the copy-in copy-out case, create the temporary for the return
6769 Do not unnecessarily convert by-ref parameters to the formal's type.
6770 Remove obsolete guards in conditions.
6771 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
6772 target to call_to_gnu in all cases.
6773 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
6774 (addressable_p) <CONSTRUCTOR>: Return false if not static.
6775 <COMPOUND_EXPR>: New case.
6776 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
6777 expression if it has unconstrained array type.
6778 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
6779 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
6782 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6784 * gcc-interface/trans.c (gigi): Do not start statement group.
6785 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
6786 Start statement group and push binding level here...
6787 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
6788 Do not push fake contexts at top level. Remove redundant code.
6789 (call_to_gnu): Rename a local variable and constify another.
6790 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
6791 (set_current_block_context): Set it as the group's block.
6792 (gnat_init_decl_processing): Delete unrelated init code.
6793 (end_subprog_body): Use NULL_TREE.
6795 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6797 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
6798 side-effects of actual parameters before the call.
6800 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6802 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
6804 (set_rm_size): Reorder and remove obsolete test.
6806 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
6808 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
6809 (gigi): Adjust ATTRIBUTE_UNUSED markers.
6810 * gcc-interface/gadaint.h: New file.
6811 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
6812 (__gnat_to_canonical_file_spec): Remove declaration.
6813 (number_names): Delete.
6814 (number_files): Likewise.
6816 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
6819 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
6821 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
6823 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
6824 Ekind. Return early for class-wide types. Do not compute initializer
6825 unless necessary. Reuse the tree for an associated class-wide type
6826 only if processing its root type.
6828 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
6830 * gsocket.h: Run-time can no longer be built without network
6831 OS headers available. Changing RTEMS GNAT build procedure to
6832 reflect this and letting run-time build use network .h files.
6834 2010-04-13 Duncan Sands <baldrick@free.fr>
6836 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
6837 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
6839 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6841 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
6842 (parent_name_id): New macro.
6843 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
6844 * gcc-interface/trans.c (gigi): Initialize it.
6845 (lvalue_required_p) <N_Type_Conversion>: New case.
6846 <N_Qualified_Expression>: Likewise.
6847 <N_Allocator>: Likewise.
6848 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
6850 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6852 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
6853 (DECL_CONST_ADDRESS_P): New macro.
6854 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
6855 (SAME_FIELD_P): Likewise.
6856 * gcc-interface/decl.c (constructor_address_p): New static function.
6857 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
6858 the return value of above function.
6859 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
6860 passed by reference.
6861 <E_Record_Subtype>: Likewise.
6862 Set TREE_ADDRESSABLE on the type if it passed by reference.
6863 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
6864 (create_field_decl_from): Likewise.
6865 (substitute_in_type): Likewise.
6866 (purpose_member_field): Use SAME_FIELD_P.
6867 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
6868 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
6869 parameter and adjust recursive calls.
6870 <N_Explicit_Dereference>: New case.
6871 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
6872 Adjust calls to lvalue_required_p. Do not return the initializer of a
6873 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
6874 (call_to_gnu): Delay issuing error message for a misaligned actual and
6875 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
6876 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
6877 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
6878 type is passed by reference.
6879 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
6880 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
6881 (build_simple_component_ref): Use SAME_FIELD_P.
6883 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
6885 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
6886 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
6887 front-end's predicate Is_By_Reference_Type. Use consistent order and
6888 remove ??? comment. Use original conversion in all cases, if any.
6889 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
6890 (convert): Use local copy in more cases.
6891 <INDIRECT_REF>: Remove deactivated code.
6892 (unchecked_convert): Use a couple of local copies.
6894 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
6896 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
6898 (lvalue_required_p) <N_Attribute_Reference>: Call it.
6899 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
6900 folding the result only if lvalue_required_for_attribute_p is true.
6901 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
6902 typed constant to build_component_ref.
6903 (unchecked_convert): Likewise.
6904 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
6905 (build_allocator): Likewise.
6907 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
6909 * gcc-interface/utils2.c (build_cond_expr): Take the address and
6910 dereference if the result type is passed by reference.
6912 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
6914 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
6915 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
6916 goto to the next statement.
6918 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
6920 * gcc-interface/gigi.h (maybe_variable): Delete.
6921 (protect_multiple_eval): Likewise.
6922 (maybe_stabilize_reference): Likewise.
6923 (gnat_save_expr): Declare.
6924 (gnat_protect_expr): Likewise.
6925 (gnat_stabilize_reference): Likewise.
6926 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
6927 gnat_stabilize_reference.
6928 (maybe_variable): Delete.
6929 (elaborate_expression_1): Use gnat_save_expr.
6930 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
6931 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
6932 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
6933 <N_Slice>: Use gnat_protect_exp.
6934 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
6935 <N_In>: Use gnat_protect_expr.
6936 Pass NULL to gnat_stabilize_reference.
6937 (build_unary_op_trapv): Use gnat_protect_expr.
6938 (build_binary_op_trapv): Likewise.
6939 (emit_range_check): Likewise.
6940 (emit_index_check): Likewise.
6941 (convert_with_check): Likewise.
6942 (protect_multiple_eval): Move to utils2.c file.
6943 (maybe_stabilize_reference): Merge into...
6944 (gnat_stabilize_reference): ...this. Move to utils2.c file.
6945 (gnat_stabilize_reference_1): Likewise.
6946 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
6947 instead of protect_multiple_eval.
6948 * gcc-interface/utils2.c (compare_arrays): Likewise.
6949 (nonbinary_modular_operation): Likewise.
6950 (maybe_wrap_malloc): Likewise.
6951 (build_allocator): Likewise.
6952 (gnat_save_expr): New function.
6953 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
6954 in common cases. Propagate TREE_READONLY onto dereferences.
6955 (gnat_stabilize_reference_1): Move from trans.c file.
6956 (gnat_stabilize_reference): Likewise.
6958 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
6960 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
6961 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
6962 node. Use the type of the operand to set TREE_READONLY.
6963 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
6964 _REF node. Do not overwrite TREE_READONLY.
6965 (call_to_gnu): Rename local variable and fix various nits. In the
6966 copy-in/copy-out case, build the SAVE_EXPR manually.
6967 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
6968 and fold the computations.
6969 (protect_multiple_eval): Always save entire fat pointers.
6970 (maybe_stabilize_reference): Minor tweaks.
6971 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
6972 tcc_type and tcc_statement.
6973 * gcc-interface/utils.c (convert_to_fat_pointer): Call
6974 protect_multiple_eval in lieu of save_expr.
6975 (convert): Minor tweaks.
6976 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
6977 (builtin_type_for_size): Call gnat_type_for_size directly.
6978 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
6979 (contains_null_expr): Likewise
6980 (gnat_build_constructor): Do not call it.
6981 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
6982 instead of gnat_stabilize_reference to protect the operands.
6983 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
6985 (maybe_wrap_malloc): Likewise.
6986 (build_allocator): Likewise.
6987 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
6988 (gnat_mark_addressable): Rename parameter.
6990 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
6992 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
6993 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
6994 (TYPE_RETURNS_BY_REF_P): Rename into.
6995 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
6996 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
6997 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
6998 (build_return_expr): Likewise.
6999 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
7000 Rename local variables. If the return Mechanism is By_Reference, pass
7001 return_by_invisible_ref_p to create_subprog_type instead of toggling
7002 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
7003 the mechanism. Use regular return for contrained types with non-static
7004 size and return by invisible reference for unconstrained return types
7005 with default discriminants. Update comment.
7006 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
7007 returns by invisible reference, turn the RESULT_DECL into a pointer.
7008 Do not handle DECL_BY_REF_P in the CICO case here.
7009 (call_to_gnu): Remove code handling return by target pointer. For a
7010 function call, if the return type has non-constant size, generate the
7011 assignment with an INIT_EXPR.
7012 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
7013 If the function returns by invisible reference, build the copy return
7015 (add_decl_expr): Initialize the variable with an INIT_EXPR.
7016 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
7017 Adjust for renaming of macros. Copy the node only when necessary.
7018 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
7019 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
7020 (convert_from_reference): Delete.
7021 (is_byref_result): Likewise.
7022 (gnat_genericize_r): Likewise.
7023 (gnat_genericize): Likewise.
7024 (end_subprog_body): Do not call gnat_genericize.
7025 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
7026 (build_return_expr): Adjust parameter names, logic and comment.
7028 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
7030 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
7031 if the size is small enough. Propagate the alignment if there is an
7032 alignment clause on the original array type.
7033 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
7034 Deal with under-aligned packed array types. Copy the size onto the
7035 justified modular type and don't lay it out again. Likewise for the
7036 padding type built for other under-aligned subtypes.
7037 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
7040 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
7042 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
7043 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
7045 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
7047 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
7048 do not set the result type if there is a specified target and do not
7049 convert the result in any cases.
7050 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
7051 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
7053 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
7055 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
7057 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
7060 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
7061 pointer base types are variant of each other. Apply special treatment
7062 for null to fat pointer types in all cases.
7064 2010-01-28 Pascal Obry <obry@adacore.com>
7066 * s-win32.ads: Add some missing constants.
7068 2010-01-28 Vincent Celier <celier@adacore.com>
7070 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
7073 2010-01-28 Robert Dewar <dewar@adacore.com>
7075 * gnat_rm.texi: Minor correction
7077 2010-01-27 Pascal Obry <obry@adacore.com>
7079 * g-awk.adb: ensure that an AWK session is reusable.
7081 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
7083 * g-regist.adb (For_Every_Key): Fix previous change.
7086 2010-01-27 Thomas Quinot <quinot@adacore.com>
7088 * lib-writ.ads: Current version of spec for new N (note) ALI lines
7090 2010-01-27 Yannick Moy <moy@adacore.com>
7092 * a-cdlili.adb (Insert): Correct exception message when cursor
7093 designates wrong list.
7095 2010-01-27 Vincent Celier <celier@adacore.com>
7097 * gnatcmd.adb: When there is only one main specified, the package
7098 support Switches (<main>) and attribute Switches is specified for the
7099 main, use these switches, instead of Default_Switches ("Ada").
7101 2010-01-27 Robert Dewar <dewar@adacore.com>
7103 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
7105 * exp_disp.adb: Minor reformatting
7107 2010-01-27 Tristan Gingold <gingold@adacore.com>
7109 * seh_init.c: Use __ImageBase instead of _ImageBase.
7111 2010-01-27 Javier Miranda <miranda@adacore.com>
7113 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
7114 profile of interface thunks. The type of the controlling formal is now
7115 the covered interface type (instead of the target tagged type).
7117 2010-01-27 Sergey Rybin <rybin@adacore.com>
7119 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
7121 2010-01-27 Robert Dewar <dewar@adacore.com>
7123 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
7124 changed from Expr to N.
7126 2010-01-26 Thomas Quinot <quinot@adacore.com>
7128 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
7129 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
7132 2010-01-26 Vincent Celier <celier@adacore.com>
7134 * prj-attr.adb: Add new attribute Library_Install_Name_Option
7135 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
7136 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
7137 attributes Run_Path_Option and Library_Install_Name_Option.
7138 * prj.ads (Project_Configuration): Replace component
7139 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
7140 component Library_Install_Name_Option.
7141 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
7142 Replace Run_Path_Origin_Supported with Run_Path_Origin
7144 2010-01-26 Ed Schonberg <schonberg@adacore.com>
7146 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
7147 is not hidden by a homograph declared in another actual package.
7149 2010-01-26 Robert Dewar <dewar@adacore.com>
7151 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
7152 decisions for pragmas Assert, Check, Precondition, Postcondition if
7154 * scos.ads: Update comments.
7155 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
7156 Also remove obsolete code for CT (exit point) SCOs.
7158 2010-01-26 Thomas Quinot <quinot@adacore.com>
7160 * switch-c.adb: Fix handling of -gnatz*
7162 2010-01-26 Robert Dewar <dewar@adacore.com>
7164 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
7165 qualifiers for FOR/WHILE loops
7166 * scos.ads: Use separate type letters F/W for for/while loops
7168 2010-01-26 Robert Dewar <dewar@adacore.com>
7170 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
7171 entries per line, one for each statement in the sequence).
7172 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
7173 size from 100 to 10_000 for SC_Array to avoid any real possibility of
7174 overflow. Output decisions in for loops.
7175 Exclude labels from CS lines.
7176 * scos.ads: Clarify that label is not included in the entry point
7178 2010-01-26 Robert Dewar <dewar@adacore.com>
7180 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
7181 format of statement sequence SCO entries (one location/statement).
7182 * put_scos.adb (Put_SCOs): Implement new format of CS lines
7183 * scos.ads: Update comments.
7184 * sem_eval.adb: Minor reformatting.
7186 2010-01-26 Robert Dewar <dewar@adacore.com>
7188 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
7189 (Extend_Statement_Sequence): New procedures
7190 (Traverse_Declarations_Or_Statements): New handling for exits.
7192 2010-01-26 Robert Dewar <dewar@adacore.com>
7194 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
7197 2010-01-26 Robert Dewar <dewar@adacore.com>
7199 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
7200 * scos.ads: Clarify handling of logical operators
7202 2010-01-26 Arnaud Charlet <charlet@adacore.com>
7204 * s-tpoben.adb: Update comments.
7206 2010-01-26 Robert Dewar <dewar@adacore.com>
7208 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
7211 2010-01-26 Robert Dewar <dewar@adacore.com>
7213 * scos.ads: Clean up documentation, remove obsolete XOR references
7214 2010-01-26 Vincent Celier <celier@adacore.com>
7216 * gnat_ugn.texi: Complete documentation on the restrictions for
7217 combined options in -gnatxxx switches.
7220 2010-01-26 Arnaud Charlet <charlet@adacore.com>
7222 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
7223 a controlled operation, abort is already deferred at this point, so we
7224 need to use Defer_Abort_Nestable.
7226 2010-01-26 Vincent Celier <celier@adacore.com>
7228 * prj-conf.adb (Get_Config_Switches): Check for a default language for
7229 a project extending a project with no languages.
7231 2010-01-26 Vincent Celier <celier@adacore.com>
7233 * switch-c.adb (Scan_Front_End_Switches): Take into account options
7234 that follow -gnatef.
7235 Allow -gnateG to be followed by other options.
7237 2010-01-26 Robert Dewar <dewar@adacore.com>
7239 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
7240 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
7243 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
7245 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
7246 that allows to iterate over all subkeys of a key.
7248 2010-01-26 Ed Falis <falis@adacore.com>
7250 * sysdep.c: enable NFS for VxWorks MILS
7251 * env.c: enable __gnat_environ for VxWorks MILS
7252 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
7254 2010-01-25 Bob Duff <duff@adacore.com>
7256 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
7257 is an internally-generated positional aggregate, and the bounds are
7258 already correctly set. We don't want to overwrite those bounds with
7259 bounds determined by context.
7261 2010-01-25 Robert Dewar <dewar@adacore.com>
7263 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
7264 exp_ch9.adb, g-sechas.ads: Minor reformatting.
7266 2010-01-25 Thomas Quinot <quinot@adacore.com>
7268 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
7269 integer type) before subtracting 1, otherwise the computation may wrap
7270 (because size_t is modular) and cause the conversion to fail.
7272 2010-01-25 Ed Falis <falis@adacore.com>
7274 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
7276 2010-01-25 Vincent Celier <celier@adacore.com>
7278 * prj-attr.adb: New attribute Run_Path_Origin_Required
7279 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
7280 attribute Run_Path_Origin_Required.
7281 * prj.ads (Project_Configuration): New component
7282 Run_Path_Origin_Supported.
7283 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
7285 2010-01-25 Ed Schonberg <schonberg@adacore.com>
7287 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
7288 have errors, do not continue resolution of the aggregate.
7289 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
7290 the array type indicates an error.
7292 2010-01-25 Bob Duff <duff@adacore.com>
7294 * sinfo.ads: Minor comment fixes.
7296 2010-01-25 Bob Duff <duff@adacore.com>
7298 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
7300 2010-01-25 Arnaud Charlet <charlet@adacore.com>
7302 * gnatvsn.ads (Current_Year): Update.
7304 2010-01-25 Florian Villoing <villoing@adacore.com>
7306 * gnat_ugn.texi: Fix typo.
7308 2010-01-25 Thomas Quinot <quinot@adacore.com>
7310 * scos.ads: Update specification.
7312 2010-01-25 Ed Schonberg <schonberg@adacore.com>
7314 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
7315 enclosing subprogram has no previous spec, attach postcondition
7316 procedure to the defining entity for the body.
7318 2010-01-25 Ed Schonberg <schonberg@adacore.com>
7320 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
7321 initialization procedure of the ancestor part of an extension aggregate
7322 if it is an interface type.
7324 2010-01-25 Vincent Celier <celier@adacore.com>
7326 * gnatlink.adb (Process_Binder_File): The directory for the shared
7327 version of libgcc in the run path options is found in the subdirectory
7328 indicated by __gnat_default_libgcc_subdir.
7329 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
7332 2010-01-25 Ed Schonberg <schonberg@adacore.com>
7334 * sem_prag.adb: More flexible pragma Annotate.
7336 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
7338 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
7339 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
7341 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
7343 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
7345 2010-01-18 Jan Hubicka <jh@suse.cz>
7348 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
7349 unit local variables.
7351 2010-01-17 Laurent GUERBY <laurent@guerby.net>
7353 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
7355 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
7357 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
7358 * system-linux-armeb.ads, system-linux-armel.ads: New files.
7360 2010-01-09 Simon Wright <simon@pushface.org>
7363 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
7368 Copyright (C) 2010 Free Software Foundation, Inc.
7370 Copying and distribution of this file, with or without modification,
7371 are permitted in any medium without royalty provided the copyright
7372 notice and this notice are preserved.