1 2010-10-08 Robert Dewar <dewar@adacore.com>
3 * sem_aggr.adb: Minor reformatting.
5 2010-10-08 Robert Dewar <dewar@adacore.com>
7 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
8 sequence for soft hyphen for Character'Image case.
9 * rtsfind.ads (Image_Character_05): New entry
10 * s-imgcha.adb (Image_Character_05): New procedurew
11 * s-imgcha.ads (Image_Character_05): New procedure
12 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
14 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
15 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
18 2010-10-08 Robert Dewar <dewar@adacore.com>
20 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
21 for case of Wide_[Wide_]Character.
23 2010-10-08 Robert Dewar <dewar@adacore.com>
25 * exp_ch3.adb: Minor reformating
26 Minor code reorganization.
28 2010-10-08 Javier Miranda <miranda@adacore.com>
30 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
31 pragmas CIL_Constructor and Java_Constructor.
32 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
33 predefined primitives for CIL/Java tagged types.
35 2010-10-08 Robert Dewar <dewar@adacore.com>
37 * sem_ch6.adb: Minor reformatting.
39 2010-10-08 Robert Dewar <dewar@adacore.com>
41 * gnat1drv.adb: Add call to Validate_Independence.
42 * par-prag.adb: Add dummy entries for Independent,
43 Independent_Componentsa.
44 * sem_ch13.adb (Validate_Independence): New procedure
45 (Initialize): Initialize address clause and independence check tables
46 * sem_ch13.ads (Independence_Checks): New table
47 (Validate_Independence): New procedure
48 * sem_prag.adb: Add processing for pragma Independent[_Components]
49 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
51 2010-10-08 Ed Schonberg <schonberg@adacore.com>
53 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
54 component with box initialization, if the component is a variant record
55 use the values of the discriminants to select the proper variant for
56 further box initialization.
58 2010-10-08 Thomas Quinot <quinot@adacore.com>
60 * xsnames.adb: Remove obsolete file.
61 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
63 2010-10-08 Ed Schonberg <schonberg@adacore.com>
65 * exp_aggr.adb: Complete previous change.
67 2010-10-08 Ed Schonberg <schonberg@adacore.com>
69 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
70 extended return must match statically the return subtype of the
71 enclosing function if the type is an elementary type or if it is
74 2010-10-08 Vincent Celier <celier@adacore.com>
76 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
77 names. Do not report the same duplicate unit several times.
78 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
79 defaulted to False, to avoid reporting the same unit as duplicate
82 2010-10-08 Ed Schonberg <schonberg@adacore.com>
84 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
85 others choice is a literal analyze it now to enable later optimizations.
86 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
87 and components can be handled by the backend even if it is of a limited
90 2010-10-08 Arnaud Charlet <charlet@adacore.com>
92 * a-rttiev.adb (task Timer): Since this package may be elaborated
93 before System.Interrupt, we need to call Setup_Interrupt_Mask
94 explicitly to ensure that this task has the proper signal mask.
96 2010-10-08 Robert Dewar <dewar@adacore.com>
98 * freeze.adb (Freeze_Entity): For array case, move some processing for
99 pragma Pack, Component_Size clause and atomic/volatile components here
100 instead of trying to do the job in Sem_Ch13 and Freeze.
101 * layout.adb: Use new Addressable function
102 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
103 Component_Size): Move some handling to freeze point in
104 Freeze.Freeze_Entity.
105 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
106 freeze point in Freese.Freeze_Entity.
107 * sem_util.ads, sem_util.adb (Addressable): New function.
109 2010-10-08 Robert Dewar <dewar@adacore.com>
111 * sprint.adb: Minor reformatting.
113 2010-10-08 Javier Miranda <miranda@adacore.com>
115 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
117 2010-10-08 Robert Dewar <dewar@adacore.com>
119 * sem_ch3.adb: Minor reformatting.
121 2010-10-08 Vincent Celier <celier@adacore.com>
123 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
125 * prj-proc.adb (Expression): Process string list external references.
126 * prj-strt.adb (External_Reference): Parse external_as_list external
128 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
129 (Set_Expression_Kind_Of): Ditto
130 * prj.adb (Initialize): Set external_as_list as a reserved word
131 * projects.texi: Document new string external reference external_as_list
132 * scans.ads (Token_Type): New token Tok_External_As_List
133 * snames.ads-tmpl: New standard name Name_External_As_List
135 2010-10-08 Thomas Quinot <quinot@adacore.com>
137 * sem_prag.adb: Minor reformatting.
139 2010-10-08 Ed Schonberg <schonberg@adacore.com>
141 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
142 instance, it is legal to derive from a non-limited actual when the
143 formal type is untagged limited.
144 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
145 analyzed formal as Generic_Parent_Type, to simplify later checks.
147 2010-10-08 Ed Schonberg <schonberg@adacore.com>
149 * sem_res.adb (Insert_Default): If default value is already a
150 raise_constraint_error do not rewrite it as new raise node, to prevent
151 infinite loops in the warning removal machinery.
153 2010-10-08 Robert Dewar <dewar@adacore.com>
155 * sem_util.adb, sem_prag.adb: Minor reformatting
157 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
159 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
160 Add section on pragma Implemented.
162 2010-10-08 Ed Schonberg <schonberg@adacore.com>
164 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
165 concrete parent with a concrete constructor, the inherited constructor
166 is abstract even if the derived type is a null extension.
168 2010-10-08 Thomas Quinot <quinot@adacore.com>
170 * sem_ch4.adb: Minor reformatting.
172 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
174 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
175 (Implemented_By_Entry): Removed.
176 (Set_Implemented_By_Entry): Removed.
177 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
178 * einfo.ads: Remove flag Implemented_By_Entry and its usage in entities.
179 (Implemented_By_Entry): Removed along with its associated pragma Inline.
180 (Set_Implemented_By_Entry): Removed along with its associated pragma
182 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
183 (Build_Dispatching_Call_Equivalent): New routine.
184 (Build_Dispatching_Requeue): New routine.
185 (Build_Dispatching_Requeue_To_Any): New routine.
186 (Build_Normal_Requeue): New routine.
187 (Build_Skip_Statement): New routine.
188 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
190 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
192 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
194 (Check_Pragma_Implemented): New routines.
195 (Inherit_Pragma_Implemented): New routine.
196 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
198 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
199 and adding Implemented.
200 (Ada_2012_Pragma): New routine.
201 (Analyze_Pragma, case Implemented): Perform all necessary checks
202 concerning pragma Implemented and register the pragma as a
203 representation item with the procedure_LOCAL_NAME.
204 (Analyze_Pragma, case Implemented_By_Entry): Removed.
205 * sem_util.adb (Implementation_Kind): New routine.
206 * sem_util.ads (Implementation_Kind): New routine.
207 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
208 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
209 add Pragma_Implemented. Add special names By_Any, By_Entry and
210 By_Protected_Procedure.
212 2010-10-08 Javier Miranda <miranda@adacore.com>
214 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
215 variable Has_Static_DT by invocation of function Building_Static_DT.
217 2010-10-08 Vincent Celier <celier@adacore.com>
219 * g-dirope.adb (Remove_Dir): Do not change the current directory when
220 doing a recursive remove of a subdirectory.
222 2010-10-08 Javier Miranda <miranda@adacore.com>
224 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
225 * exp_disp.adb (Make_Secondary_DT): Factorize code.
226 (Make_DT): Factorize code.
228 2010-10-08 Robert Dewar <dewar@adacore.com>
230 * sem_ch4.adb: Minor reformatting.
232 2010-10-08 Robert Dewar <dewar@adacore.com>
234 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
237 2010-10-08 Thomas Quinot <quinot@adacore.com>
239 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
240 consistency with Gen_T in Instantiate_Type.
241 Introduce constant A_Gen_Obj to avoid repeated queries for
242 Defining_Identifier (Analyzed_Formal).
244 2010-10-08 Vincent Celier <celier@adacore.com>
246 * prj-nmsc.adb: Minor comment fix.
248 2010-10-07 Robert Dewar <dewar@adacore.com>
250 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
251 * gcc-interface/Make-lang.in: Update dependencies.
253 2010-10-07 Ed Schonberg <schonberg@adacore.com>
255 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
256 unit, if the type of the formal is declared in a parent unit and is not
257 a formal itself, the actual must be located from an enclosing parent
258 instance by normal visibility.
260 2010-10-07 Ed Schonberg <schonberg@adacore.com>
262 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
263 indicator is illegal for an uninitialized allocator.
265 2010-10-07 Robert Dewar <dewar@adacore.com>
267 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
268 Component_Size): Complete previous change.
270 2010-10-07 Vincent Celier <celier@adacore.com>
272 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
273 even for keywords, to avoid having the checksum to depend on the Ada
276 2010-10-07 Gary Dismukes <dismukes@adacore.com>
278 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
279 exp_ch3.adb: Minor reformatting.
281 2010-10-07 Robert Dewar <dewar@adacore.com>
283 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
284 Component_Size): It is now illegal to give an incorrect component size
285 clause in the case of aliased or atomic components.
286 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
287 an effective pragma Pack in the case of aliased or atomic components.
289 2010-10-07 Steve Baird <baird@adacore.com>
291 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
292 in the case of a violation of an active No_Task_Hierarchy restriction.
294 2010-10-07 Ed Schonberg <schonberg@adacore.com>
296 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
297 type is non-limited, an actual for it cannot be limited.
299 2010-10-07 Robert Dewar <dewar@adacore.com>
301 * einfo.ads (No_Pool_Assigned): Update documentation.
302 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
303 Storage_Size): We only set No_Pool_Assigned if the expression is a
304 static constant and zero.
305 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
306 should be an error not a warning.
308 2010-10-07 Ed Schonberg <schonberg@adacore.com>
310 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
311 where an aggregate in an assignment can be built directly into the
312 target, and does not require the creation of a temporary that may
315 2010-10-07 Ed Schonberg <schonberg@adacore.com>
317 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
318 in a record aggregate can correspond to several components of
319 anonymous access types, as long as the designated subtypes match.
321 2010-10-07 Robert Dewar <dewar@adacore.com>
323 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
324 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
325 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
326 spelling parametrize(d) => parameterize(d).
328 2010-10-07 Robert Dewar <dewar@adacore.com>
330 * sem_ch12.adb: Add comment.
331 * sem_ch6.adb: Minor reformatting.
333 2010-10-07 Robert Dewar <dewar@adacore.com>
335 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
336 Pexp to Pf_Rec constants
337 (P_Subprogram): Expression is always enclosed in parentheses
338 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
339 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
341 2010-10-07 Ed Schonberg <schonberg@adacore.com>
343 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
344 checks on functions that return an abstract type or have a controlling
345 result whose designated type is an abstract type.
346 (Check_Private_Overriding): Implement Ada2012 checks on functions
347 declared in the private part, if an abstract type is involved.
348 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
349 reject a generic function that returns an abstract type.
350 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
351 function has a controlling access result, check that the tag of the
352 return value matches the designated type of the return expression.
354 2010-10-07 Robert Dewar <dewar@adacore.com>
356 * par-ch6.adb: Fix error in handling of parametrized expressions.
357 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
359 (P_Simple_Expression): Better message for qualified expression prefix
360 * s-crc32.adb: Minor reformatting.
361 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
362 storage pool (this test is moved to Sem_Intr).
363 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
364 empty storage pool, moved here from Exp_Intr and made into error.
365 (Check_Intrinsic_Call): Remove assumption in generating not-null free
366 warning that the name of the instantiation is Free.
367 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
369 * types.ads: Remove storage size clauses from big types (since we may
370 need to do deallocations, which are now illegal for empty pools).
372 2010-10-07 Sergey Rybin <rybin@adacore.com>
374 * gnat_ugn.texi: Add missing word.
376 2010-10-07 Robert Dewar <dewar@adacore.com>
378 * exp_util.adb (Insert_Actions): Add handling of
379 N_Parametrized_Expression.
380 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
381 * sem.adb: Add entry for N_Parametrized_Expression
382 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
383 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
384 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
385 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
386 * par-ch4.adb: Minor reformatting.
388 2010-10-07 Robert Dewar <dewar@adacore.com>
390 * scng.adb (Skip_Other_Format_Characters): New procedure
391 (Start_Of_Wide_Character): New procedure
392 (Scan): Use Start_Of_Wide_Character where appropriate
393 (Scan): Improve error message for other_format chars in identifier
394 (Scan): Allow other_format chars between tokens
396 2010-10-07 Javier Miranda <miranda@adacore.com>
398 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
399 Add missing support for explicit dereferences.
401 2010-10-07 Robert Dewar <dewar@adacore.com>
403 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
405 2010-10-07 Robert Dewar <dewar@adacore.com>
407 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
408 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
409 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
410 Exp_Util.Fully_Qualified_Name_String.
412 2010-10-07 Robert Dewar <dewar@adacore.com>
414 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
415 * sem_res.adb (Resolve_Call): A call to
416 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
417 No_Relative_Delay (AI-0211).
419 2010-10-07 Ed Schonberg <schonberg@adacore.com>
421 * sem_ch10.adb: Small change in error message.
423 2010-10-07 Robert Dewar <dewar@adacore.com>
425 * tbuild.ads: Minor reformatting.
427 2010-10-07 Robert Dewar <dewar@adacore.com>
429 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
431 2010-10-07 Arnaud Charlet <charlet@adacore.com>
433 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
435 2010-10-07 Robert Dewar <dewar@adacore.com>
437 * sem_res.adb: Minor reformatting
439 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
441 * gnat_ugn.texi: Minor editing.
442 * opt.ads: Document that scripts rely on specific formats in opt.ads
444 2010-10-07 Robert Dewar <dewar@adacore.com>
446 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
447 (To_Upper_Case): Fix to be inverse of To_Lower_Case
448 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
449 (To_Upper_Case): Fix to be inverse of To_Lower_Case
451 2010-10-07 Robert Dewar <dewar@adacore.com>
453 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
454 * impunit.adb: Add entries for a-wichha/a-zchhan
455 * Makefile.rtl: Add entries for a-wichha/a-zchhan
457 2010-10-07 Vincent Celier <celier@adacore.com>
459 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
460 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
461 replaced source, check that none of the replaced sources are in the
463 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
464 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
465 replaced with a source with a different file name, put it in the hash
466 table Replaced_Sources.
467 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
468 one replaced source, check if it has the same file name as the current
469 source; if it has, remove it from the hash table Replaced_Sources.
470 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
471 * prj.ads (Replaced_Source_HTable): New hash table
472 (Project_Tree_Data): New components Replaced_Sources and
473 Replaced_Source_Number.
475 2010-10-07 Ed Schonberg <schonberg@adacore.com>
477 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
478 proper flag to prevent a double elaboration check on the same call.
479 * exp_util.adb (Insert_Actions): If the enclosing node is an
480 Expression_With_Actions and it has been analyzed already, find
481 insertion point further up in the tree.
483 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
485 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
486 local variables. Remove the general restriction which prohibits the
487 application of record rep clauses to Unchecked_Union types. Add Ada
488 2012 check to detect improper naming of an Unchecked_Union
489 discriminant in record rep clause.
490 * sem_prag.adb: Add with and use clause for Exp_Ch7.
491 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
492 type to all invocations of Check_Component and Check_Variant.
493 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
494 Rewritten. Add Ada 2012 check to detect improper use of formal
495 private types and private extensions as component types of an
496 Unchecked_Union declared inside a generic body.
497 (Check_Variant): Add formal parameter UU_Typ. Propagate the
498 Unchecked_Union type to all calls of Check_Component. Signal that the
499 current component comes from the variant part of an Unchecked_Union
501 (Inside_Generic_Body): New routine.
503 2010-10-07 Ed Schonberg <schonberg@adacore.com>
505 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
506 equality operation for a record component, verify that both formals
507 have the same type, and the result type is boolean.
509 2010-10-07 Vincent Celier <celier@adacore.com>
511 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
512 binder generated file, look for both b~xxx and b__xxx as gprbuild
513 always uses b__ as the prefix of such files.
515 2010-10-07 Thomas Quinot <quinot@adacore.com>
517 * sem_res.adb: Minor reformatting.
519 2010-10-07 Arnaud Charlet <charlet@adacore.com>
521 * debug.adb: Update -gnatd.J documentation.
523 2010-10-07 Robert Dewar <dewar@adacore.com>
525 * gnat_rm.texi: Document handling of invalid values
526 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
528 (UTF_To_Upper_Case): New function.
530 2010-10-07 Robert Dewar <dewar@adacore.com>
532 * sem_attr.adb: Minor reformatting.
533 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
534 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
536 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
538 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
539 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
540 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
542 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
544 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
545 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
548 2010-10-07 Javier Miranda <miranda@adacore.com>
550 * a-tags.ads: Use new support for pragma Ada_2012 with function
553 2010-10-07 Ed Schonberg <schonberg@adacore.com>
555 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
556 sequence of statements.
558 2010-10-07 Vincent Celier <celier@adacore.com>
560 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
562 2010-10-07 Javier Miranda <miranda@adacore.com>
564 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
565 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
566 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
568 2010-10-07 Arnaud Charlet <charlet@adacore.com>
570 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
571 (Analyze_Package_Instantiation): No longer analyze systematically a
572 generic body in CodePeer mode.
573 * freeze.adb, sem_attr.adb: Update comments.
575 2010-10-05 Robert Dewar <dewar@adacore.com>
577 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
580 2010-10-05 Pascal Obry <obry@adacore.com>
582 * gnat_rm.texi: Fix typo.
584 2010-10-05 Arnaud Charlet <charlet@adacore.com>
586 * gnat_ugn.texi: Add note about identifiers with same name and
589 2010-10-05 Robert Dewar <dewar@adacore.com>
591 * sem_ch4.adb: Minor reformatting.
592 * a-direct.ads: Minor comment update.
594 2010-10-05 Javier Miranda <miranda@adacore.com>
596 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
597 no longer required after change in New_Overloaded_Entity.
598 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
599 the fragment of code that handles derivations of interface primitives.
600 Add missing dependence on global variable Inside_Freezing_Actions to
601 ensure the correct management of internal interface entities.
602 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
603 of the global variable Inside_Freezing_Actions to ensure that internal
604 interface entities are well handled by New_Overloaded_Entity.
605 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
606 and complete the algorithm to catch hidden primitives derived of
607 private type that covers the interface.
608 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
611 2010-10-05 Robert Dewar <dewar@adacore.com>
613 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
614 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
615 Minor code reorganization (use Nkind_In).
617 2010-10-05 Ed Schonberg <schonberg@adacore.com>
619 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
622 2010-10-05 Vincent Celier <celier@adacore.com>
624 * gnatbind.adb: If the main library file is not for a suitable main
625 program, change the error message.
627 2010-10-05 Vincent Celier <celier@adacore.com>
629 * a-direct.ads: Minor spelling error fixes in comments.
630 * gnat_rm.texi: Add three entries in "Implementation Defined
631 Characteristics" for the interpretations of the Form parameters in
634 2010-10-05 Robert Dewar <dewar@adacore.com>
636 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
637 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
638 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
642 2010-10-05 Ed Schonberg <schonberg@adacore.com>
644 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
645 an explicit dereference of an access to function, the prefix is not
646 interpreted as a parameterless call.
648 2010-10-05 Ed Schonberg <schonberg@adacore.com>
650 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
653 2010-10-05 Vincent Celier <celier@adacore.com>
655 * make.adb (Switches_Of): Allow wild cards in index of attributes
657 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
658 of the associative array as a glob regular expression.
659 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
660 Allow_Wildcards, defaulted to False.
661 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
662 * projects.texi: Document that attribute Switches (<file name>) may
663 use wild cards in the index.
665 2010-10-05 Robert Dewar <dewar@adacore.com>
667 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
668 einfo.adb: Minor reformatting.
669 * debug.adb: Remove obsolete documentation for d.Z flag.
671 2010-10-05 Vincent Celier <celier@adacore.com>
673 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
674 switch --create-info-file=.
675 * gnat_ugn.texi: Add documentation for new gnatmake switch
678 2010-10-05 Ed Schonberg <schonberg@adacore.com>
680 * sem_ch3.adb: Do not elaborate type definition if syntax error.
682 2010-10-05 Javier Miranda <miranda@adacore.com>
684 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
685 to generate the full-qualified names of its corresponding spec.
686 This facilitates locating the corresponing body when reading
689 2010-10-05 Thomas Quinot <quinot@adacore.com>
691 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
692 canonical name without serial number only if the helper is becoming a
693 primitive of the type.
695 2010-10-05 Javier Miranda <miranda@adacore.com>
697 * exp_disp.adb (Make_DT): Minor code reorganization.
699 2010-10-05 Ed Schonberg <schonberg@adacore.com>
701 * par-ch6.adb: improve recovery with extra paren in function spec.
703 2010-10-05 Quentin Ochem <ochem@adacore.com>
705 * prj-tree.ads: Project_Path is now aliased.
707 2010-10-05 Thomas Quinot <quinot@adacore.com>
709 * checks.adb: Minor reformatting.
711 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
713 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
714 (Shared_Libgcc): New aliased variable.
715 (Shared_Libgcc_Switch): New constant.
716 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
717 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
719 * gcc-interface/Make-lang.in: Update dependencies.
721 2010-10-05 Vincent Celier <celier@adacore.com>
723 * prj-part.adb (Parse_Simple_Project): When checking if a child project
724 imports its parent project, also look in projects being extended by
727 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
729 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
731 2010-10-05 Javier Miranda <miranda@adacore.com>
733 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
734 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
735 activate this output.
737 2010-10-05 Arnaud Charlet <charlet@adacore.com>
739 * back_end.adb (Call_Back_End): Generate an error message when scil
740 generation is enabled, and no scil back-end (by default) is available.
742 2010-10-05 Javier Miranda <miranda@adacore.com>
744 * debug.adb: Update documentation because -gnatd.Z is no longer required
745 to generate the call-graph information.
747 2010-10-05 Javier Miranda <miranda@adacore.com>
749 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
750 runtime access check by an equivalent expansion that causes
751 no problems in the VM backend. The original expansion was
752 not good for the VM backends because when Tagged_Type_Expansion
753 is disabled the attribute Access_Disp_Table is not available.
755 2010-10-05 Ed Schonberg <schonberg@adacore.com>
757 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
758 is class-wide and T1 is its specific type.
760 2010-10-05 Ed Schonberg <schonberg@adacore.com>
762 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
764 2010-10-05 Vincent Celier <celier@adacore.com>
766 * back_end.ads: Minor spelling error correction.
768 2010-10-05 Arnaud Charlet <charlet@adacore.com>
770 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
771 warnings when -gnatC is specified here so that warnings can be
772 re-enabled explicitly.
773 (Adjust_Global_Switches): No longer suppress warnings.
775 2010-10-05 Vincent Celier <celier@adacore.com>
777 * makeutl.adb: Minor reformatting.
779 2010-10-05 Ed Schonberg <schonberg@adacore.com>
781 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
782 non-discrete type appears as an actual in a call.
784 2010-10-05 Vincent Celier <celier@adacore.com>
786 * make.adb (Scan_Make_Arg): Take into account new switch
788 * makeusg.adb: Add line for new switch --source-info=file.
789 * makeutl.ads (Source_Info_Option): New constant String for new builder
791 * prj-conf.adb: Put subprograms in alphabetical order
792 (Process_Project_And_Apply_Config): Read/write an eventual source info
794 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
796 (Look_For_Sources): If a source info file was successfully read, get the
797 source data from the data read from the source info file.
798 * prj-util.adb (Source_Info_Table): New table
799 (Source_Info_Project_HTable): New hash table
800 (Create): New procedure
801 (Put (File), Put_Line): New procedures
802 (Write_Source_Info_File): New procedure
803 (Read_Source_Info_File): New procedure
804 (Initialize): New procedure
805 (Source_Info_Of): New procedure
806 (Next): New procedure
807 (Close): When file is an out file, fail if the buffer cannot be written
808 or if the file cannot be close successfully.
809 (Get_Line): Fail if file is an out file
810 * prj-util.ads (Create): New procedure
811 (Put (File), Put_Line): New procedures
812 (Write_Source_Info_File): New procedure
813 (Read_Source_Info_File): New procedure
814 (Source_Info_Data): New record type
815 (Source_Info_Iterator): New private type
816 (Initialize): New procedure
817 (Source_Info_Of): New procedure
818 (Next): New procedure
819 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
820 Source_Info_File_Exists.
822 2010-10-05 Ed Schonberg <schonberg@adacore.com>
824 * exp_ch4.adb: Fix typo.
826 2010-10-05 Thomas Quinot <quinot@adacore.com>
828 * lib-writ.adb: Minor reformatting.
830 2010-10-05 Javier Miranda <miranda@adacore.com>
832 * sem_ch3.adb (Access_Definition): Remove useless code.
834 2010-10-05 Emmanuel Briot <briot@adacore.com>
836 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
837 (Deep_Copy): Removed, not used.
839 2010-10-05 Javier Miranda <miranda@adacore.com>
841 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
842 move code that searches in the list of primitives of a tagged type for
843 the entity that will be overridden by user-defined routines.
844 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
845 previously located in routine Add_Internal_Interface_Entities.
846 * sem_disp.ads (Find_Primitive_Covering_Interface): Update documentation
847 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
848 availability of attribute Alias.
850 2010-10-05 Ed Falis <falis@adacore.com>
852 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
853 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
854 Move definition of intContext to System.OS_Interface.
855 Add necessary variants in System.VxWorks.Extensions.
857 2010-10-05 Doug Rupp <rupp@adacore.com>
859 * s-asthan-vms-alpha.adb: On VMS, a task using
860 pragma AST_Entry exhibits a memory leak when the task terminates
861 because the vector allocated for the AST interface is not freed. Fixed
862 by making the vector a controlled type.
864 2010-10-05 Emmanuel Briot <briot@adacore.com>
866 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
867 a "**" pattern properly exists, and report an error otherwise.
869 2010-10-05 Emmanuel Briot <briot@adacore.com>
871 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
873 2010-10-05 Emmanuel Briot <briot@adacore.com>
875 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
877 Extract some code from Get_Directories, to share with the handling
878 of aggregate projects (for the Project_Files attributes)
880 2010-10-05 Emmanuel Briot <briot@adacore.com>
882 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
883 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
884 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New type.
886 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
888 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
890 2010-10-05 Emmanuel Briot <briot@adacore.com>
892 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
893 (Aggregate projects): added support for parsing aggregate projects.
894 In particular, check the presence and value of the new attributes
895 related to aggregate projects, ie Project_Files, Project_Path
897 (Check_Attribute_Allowed, Check_Package_Allowed,
898 Rename_Obsolescent_Attributes): new subprogram, extracting code
899 from existing subprogram to keep their sizes smaller.
900 (Check_Aggregate_Project, Check_Abstract_Project,
901 Check_Missing_Sources): new subprograms
902 (Check): remove comments that duplicated either the name of the
903 following subprogram call, or the comment on that subprogram.
904 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
905 from Parse_Single_Project.
906 (Check_Aggregate_Imports): new subprogram.
908 2010-10-05 Vincent Celier <celier@adacore.com>
910 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
911 file has not been generated for the current source, for example if it
912 has been generated for the spec, but we are compiling the body.
914 2010-10-05 Bob Duff <duff@adacore.com>
916 * xgnatugn.adb: Remove unused procedure.
918 2010-10-04 Vincent Celier <celier@adacore.com>
920 * a-direct.adb (Copy_File): Interpret the Form parameter and call
921 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
922 the Form parameter contains an incorrect value for field preserve= or
924 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
925 parameter is ignored.
926 (Copy_File): Indicate the interpretation of the Form parameter.
928 2010-10-04 Vincent Celier <celier@adacore.com>
930 * make.adb (Gnatmake): When there are no foreign languages declared and
931 a main in attribute Main of the main project does not exist or is a
932 source of another project, fail immediately before attempting
935 2010-10-04 Javier Miranda <miranda@adacore.com>
937 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
938 used to convert a node referencing a tag to a class-wide interface type.
939 * exp_disp.adb (Convert_Tag_To_Interface): New function.
940 (Expand_Interface_Conversion): Replace invocation of
941 Unchecked_Conversion by new function Convert_Tag_To_Interface.
942 (Write_DT): Add support for null primitives.
943 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
944 cleanup code that handles interface conversions and avoid unchecked
945 conversion of referenced tag components.
946 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
947 unrequired conversions when generating a dispatching call to _assign.
948 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
950 2010-10-04 Ed Schonberg <schonberg@adacore.com>
952 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
953 parent is a binary boolean operation and the operand is an unpacked
955 (Build_Boolean_Array_Proc_Call): If the operands are both negations, the
956 operands of the rewritten node are the operands of the negations, not
957 the negations themselves.
959 2010-10-04 Robert Dewar <dewar@adacore.com>
961 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
962 name of entity to biased warning msg.
963 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
964 biased rep (wrong and never worked anyway).
966 2010-10-04 Arnaud Charlet <charlet@adacore.com>
968 * sem_elab.adb: Minor reformatting.
970 2010-10-04 Ed Schonberg <schonberg@adacore.com>
972 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
973 an access_to_protected subprogram type, and convert null value into
974 corresponding aggregate.
976 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
978 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
980 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
982 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
983 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
986 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
988 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
989 for N_Operator_Symbol.
990 (Indicate_Name_And_Type): Likewise.
991 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
992 * sem_res.adb (Resolve): Likewise.
993 * sem_type.adb (Add_One_Interp): Likewise.
994 (Disambiguate): Likewise.
996 2010-10-04 Vincent Celier <celier@adacore.com>
998 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
999 than ALI file timestamp, return null.
1001 2010-10-04 Vincent Celier <celier@adacore.com>
1003 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length set to 79
1004 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
1005 replaces global constant with the same name. When a line is too long,
1006 indent properly the next continuation line.
1007 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
1008 from 50 to 255, defaulted to 255, to indicate the maximum length of
1009 lines in the project file.
1011 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
1013 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
1014 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
1015 of Traverse_Func on it to look for subprogram references in a body.
1016 Call Check_Subprogram_Refs on the body of inlined subprograms at the
1017 outer level and keep clearing the Is_Public flag of subprograms as long
1018 as it returns OK. Do not look at anything else than subprograms once
1019 an inlined subprogram has been seen.
1021 2010-10-04 Javier Miranda <miranda@adacore.com>
1023 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
1024 the target object is an interface.
1025 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
1026 interface type then we generate an implicit conversion to force
1027 displacement of the pointer to the object to reference the secondary
1028 dispatch table associated with the interface.
1030 2010-10-04 Robert Dewar <dewar@adacore.com>
1032 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
1033 Enumeration_Rep_Expr to point to the literal, not the identifier.
1034 (Analyze_Enumeration_Representation_Clause): Improve error message for
1035 size too small for enum rep value
1036 (Analyze_Enumeration_Representation_Clause): Fix size test to use proper
1037 size (RM_Size, not Esize).
1039 2010-10-04 Robert Dewar <dewar@adacore.com>
1041 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
1043 2010-10-04 Javier Miranda <miranda@adacore.com>
1045 * exp_cg.adb (Write_Call_Info): Code clean up.
1047 2010-10-04 Arnaud Charlet <charlet@adacore.com>
1049 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
1051 2010-10-04 Robert Dewar <dewar@adacore.com>
1053 * exp_cg.adb: Minor code reorganization
1055 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
1057 2010-10-04 Bob Duff <duff@adacore.com>
1059 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
1060 to make a qualified expression into a name (syntax-wise), then do not
1061 consider it redundant.
1063 2010-10-04 Thomas Quinot <quinot@adacore.com>
1065 * sem_warn.ads: Fix typo.
1067 2010-10-04 Javier Miranda <miranda@adacore.com>
1069 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
1071 (Write_Call_Info): Add missing support for renamed primitives.
1073 2010-10-04 Thomas Quinot <quinot@adacore.com>
1075 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
1076 code between Make_Component_List_Assign and Make_Field_Assign.
1078 2010-10-04 Vincent Celier <celier@adacore.com>
1080 * prj-nmsc.adb (Get_Directories): For non extending projects that
1081 declare that they have no sources, do not create a non existing object
1082 or exec directory if builder switch -p is used.
1084 2010-10-04 Sergey Rybin <rybin@adacore.com>
1086 * gnat_ugn.texi (gnatcheck): Change the description of the report file
1089 2010-10-04 Ed Falis <falis@adacore.com>
1091 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
1092 determine whether Set_True is called from a task or an ISR.
1093 (Set_True): test for being in a task context before trying to
1094 dereference Defer_Abort or Undefer_Abort.
1096 2010-10-04 Robert Dewar <dewar@adacore.com>
1098 * sem_res.adb, sinput-l.adb: Minor reformatting.
1100 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
1102 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
1103 check when the target object is an interface since the expression of
1104 the right hand side must only cover the interface.
1106 2010-10-04 Vincent Celier <celier@adacore.com>
1108 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
1109 loading the main source, so that if it is preprocessed and -gnateG is
1110 used, the preprocessed file is written.
1111 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
1112 if a subunit is from the main unit when it is loaded.
1113 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
1114 to True before loading a subunit.
1115 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
1116 to True when the main is a generic unit before loading one of its
1118 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
1119 file only for the main unit (spec, body and subunits).
1121 2010-10-04 Vincent Celier <celier@adacore.com>
1123 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
1124 specified and the processed file cannot be written. Just issue a
1125 warning and continue.
1127 2010-10-04 Thomas Quinot <quinot@adacore.com>
1129 * sem_res.adb: Minor reformatting.
1131 2010-10-04 Ed Schonberg <schonberg@adacore.com>
1133 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
1134 is an overridden inherited operation, the desired operation is the
1135 overriding one, which is the alias of the visible one.
1137 2010-10-04 Ed Schonberg <schonberg@adacore.com>
1139 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
1140 present before deleting from the tree, when an inherited function with
1141 a controlling result that returns a null extension is overridden by a
1142 later declaration or body.
1144 2010-10-04 Gary Dismukes <dismukes@adacore.com>
1146 * checks.adb: Update comment.
1148 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1150 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
1151 and define as variables.
1152 (gnat_post_options): Set optimize and optimize_size variables.
1154 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
1156 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
1157 are not defined by target.
1159 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
1161 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
1163 2010-09-28 Richard Henderson <rth@redhat.com>
1165 * gcc-interface/misc.c (gnat_eh_personality): Use
1166 targetm.except_unwind_info.
1168 2010-09-28 Jan Hubicka <jh@suse.cz>
1170 * gcc-interface/utils.c (handle_leaf_attribute): New function.
1171 (gnat_internal_attribute_tables): Add leaf.
1173 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1175 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
1176 -include-directory, -include-directory=, -no-standard-includes,
1177 -no-standard-libraries): New.
1179 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
1181 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
1182 build_array_type with calls to build_nonshared_array_type.
1183 (substitute_in_type): Likewise.
1184 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
1185 (LANG_HOOKS_TYPE_HASH_EQ): Define.
1186 (gnat_post_options): Add 'static' keyword.
1187 (gnat_type_hash_eq): New static function.
1188 * gcc-interface/utils.c (fntype_same_flags_p): New function.
1189 (create_subprog_type): Call it.
1190 (create_index_type): Call build_nonshared_range_type and tidy up.
1191 (create_range_type): Likewise.
1192 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
1194 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1196 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
1198 (end_subprog_body): If the body is a BIND_EXPR, make its associated
1199 block the top-level one.
1200 (build_function_stub): Build a statement group for the whole function.
1201 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
1202 is used, create the enclosing block early and process first the OUT
1205 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1207 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
1208 not generate debug info for individual enumerators.
1210 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1212 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
1213 type instead of enumeral type as the dummy type built for the template
1214 type of fat pointers.
1216 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1218 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
1219 (gnat_zaplevel): Likewise.
1220 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
1221 binding level for an external constant.
1222 <E_Constant>: Force the local context and create a fake scope before
1223 translating the defining expression of an external constant.
1224 <object>: Treat external constants at the global level explicitly for
1225 renaming declarations.
1226 (elaborate_expression_1): Force the variable to be static if the
1227 expression is global.
1228 * gcc-interface/trans.c (get_elaboration_procedure): New function.
1229 (call_to_gnu): Use it.
1230 (gnat_to_gnu): Likewise.
1231 <N_Object_Declaration>: Do not test Is_Public to force the creation of
1232 an initialization variable.
1233 (add_decl_expr): Discard the statement if the declaration is external.
1234 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
1235 the current block if it is external.
1236 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
1237 (gnat_zaplevel): New global function.
1239 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1241 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
1242 variables against zero in all cases.
1243 (rest_of_type_decl_compilation): Likewise.
1244 * gcc-interface/trans.c (gigi): Pass properly typed constants to
1246 (call_to_gnu): Fix formatting.
1247 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
1248 (Exception_Handler_to_gnu_zcx): Likewise.
1249 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
1251 expressions in presence of a freeze node.
1253 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
1255 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
1256 expressions for external constants that are aggregates.
1257 * gcc-interface/utils2.c (build_simple_component_ref): If the field
1258 is an inherited component in an extension, look through the extension.
1260 2010-09-10 Vincent Celier <celier@adacore.com>
1262 * projects.texi: Add documentation for package extensions
1263 Add some documentation for attributes Leading_Library_Options and
1264 Linker'Leading_Switches.
1266 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1268 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
1269 disabled, compute subtype for all string types.
1271 2010-09-10 Robert Dewar <dewar@adacore.com>
1273 * gnat_ugn.texi: Add documentation for -gnatw.s/S
1274 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1275 Component_Size): Implement warning on overriden size clause.
1276 (Analyze_Record_Representation_Clause): Implement warning on overriden
1278 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
1280 * ug_words: Add entries for -gnatw.s/S.
1281 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
1282 * gcc-interface/Make-lang.in: Update dependencies.
1284 2010-09-10 Vincent Celier <celier@adacore.com>
1286 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
1287 a package with the same name from an imported or extended project.
1288 * prj-proc.adb (Process_Declarative_Items): Process package extensions
1290 2010-09-10 Bob Duff <duff@adacore.com>
1292 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
1295 2010-09-10 Robert Dewar <dewar@adacore.com>
1297 * sem.adb: Minor reformatting.
1299 2010-09-10 Bob Duff <duff@adacore.com>
1301 * s-os_lib.ads, g-expect.ads: Add comments.
1303 2010-09-10 Robert Dewar <dewar@adacore.com>
1305 * exp_ch5.adb: Minor reformatting.
1307 2010-09-10 Thomas Quinot <quinot@adacore.com>
1309 * scos.ads: Add comments.
1311 2010-09-10 Vincent Celier <celier@adacore.com>
1313 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
1315 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
1317 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
1318 for a controlled build-in-place function call which appears in an
1319 anonymous context. The transient scope ensures that the intermediate
1320 function result is cleaned up after the master is left.
1321 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
1322 of the transient scope. This is now done in Exand_Call which covers
1323 additional cases other than secondary stack release.
1325 2010-09-10 Arnaud Charlet <charlet@adacore.com>
1327 * sem.adb (Do_Unit_And_Dependents): Add guard.
1329 2010-09-10 Robert Dewar <dewar@adacore.com>
1331 * exp_ch5.adb: Update comments.
1332 * exp_dist.adb: Minor reformatting.
1334 2010-09-10 Robert Dewar <dewar@adacore.com>
1336 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
1338 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
1339 * usage.adb: Add lines for -gnatw.h/H
1340 * gnat_ugn.texi: Add documentation for J519-010
1341 Warn on record holes/gaps
1342 * ug_words: Add entries for -gnatw.h/-gnatw.H
1343 * vms_data.ads: Add entries for [NO]AVOIDGAPS
1345 2010-09-10 Gary Dismukes <dismukes@adacore.com>
1347 * sem_ch6.adb: Update comment.
1349 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1351 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
1352 of full view analyzed after analyzing the corresponding record
1353 declaration, to prevent spurious name conflicts with original
1356 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
1358 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
1359 just issue a warning, but continue with the normal processing.
1361 2010-09-10 Robert Dewar <dewar@adacore.com>
1363 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
1366 2010-09-10 Thomas Quinot <quinot@adacore.com>
1368 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
1369 Build_TypeCode_Call): For a subtype inserted for the expansion of a
1370 generic actual type, go to the underlying type of the original actual
1373 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1375 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
1376 guard around the increment statement, to prevent an off-by-one-value
1377 on the last iteration.
1379 2010-09-10 Vincent Celier <celier@adacore.com>
1381 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
1382 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
1383 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
1384 "at run time" in comments and error/warning messages.
1386 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1388 * exp_cg.adb: Handle properly bodies without specs.
1390 2010-09-10 Emmanuel Briot <briot@adacore.com>
1392 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
1393 present, and the user requested to either ignore this or display a
1394 warning (as opposed to an error), we still need to register the
1397 2010-09-10 Robert Dewar <dewar@adacore.com>
1399 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
1400 now done in In_Extended_Main_Source_Unit.
1401 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
1402 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
1403 as Parsing_Main_Extended_Source.
1404 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
1406 * lib-load.adb (Load_Unit): Add PMES parameter
1407 Set PMES appropriately in all calls to Load_Unit
1408 * lib-load.ads (Load_Unit): Add PMES parameter
1409 * lib.adb (In_Extended_Main_Source_Unit): When called with
1410 Compiler_State set to Parsing, test new flag
1411 Compiling_Main_Extended_Source.
1412 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
1413 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
1414 as Parsing_Main_Extended_Source
1415 * par-load.adb (Load): Set PMES properly in call to Load_Unit
1417 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1419 * exp_cg.adb: Use proper entity to handle overloads.
1420 * sem_res.adb (Check_Parameterless_Call): An operator node without
1421 actuals cannot be a call, and must be treated as a string.
1423 2010-09-10 Robert Dewar <dewar@adacore.com>
1425 * frontend.adb: Minor reformatting.
1427 2010-09-10 Robert Dewar <dewar@adacore.com>
1429 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
1430 * par-ch5.adb (P_Condition): Move from body to spec
1431 * par.adb (Ch5.P_Condition): Move from body to spec
1433 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1435 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
1436 the call table is private, use its full view to generate information
1439 2010-09-10 Jose Ruiz <ruiz@adacore.com>
1441 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
1442 pattern matching to detect predefined primitive operations take into
1443 account that there can be an extra suffix related to body-nested
1446 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1448 * s-pooglo.ads: Add overriding indicators.
1450 2010-09-10 Vincent Celier <celier@adacore.com>
1452 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
1453 /64_MALLOC (for -H64).
1455 2010-09-10 Robert Dewar <dewar@adacore.com>
1457 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
1458 (Error_Msg_NW): Test Parsing_Main_Subunit flag
1459 * errout.ads (Parsing_Main_Subunit): New flag
1460 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
1461 * par-ch6.adb: Minor style fix (remove redandant parentheses)
1462 * par-ch9.adb: Minor style fix (remove redundant parens)
1463 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
1465 2010-09-10 Vincent Celier <celier@adacore.com>
1467 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
1468 function of the same name in Makeutl.
1469 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
1470 of removed procedure when creating a binder mapping file.
1471 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
1473 * makeutl.ads (Create_Binder_Mapping_File): New function
1475 2010-09-10 Jose Ruiz <ruiz@adacore.com>
1477 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
1478 separator when trying the pattern matching to detect predefined
1479 primitive operations.
1481 2010-09-10 Robert Dewar <dewar@adacore.com>
1483 * bindgen.adb, atree.adb: Minor reformatting.
1485 2010-09-10 Ben Brosgol <brosgol@adacore.com>
1487 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
1490 2010-09-10 Doug Rupp <rupp@adacore.com>
1492 * bindgen.adb: Minor comment fix for -H switch.
1494 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1496 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
1497 library unit now, by traversing tree before context is expanded.
1498 (Write_Call_Info): Use enclosing unit name directly.
1499 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
1500 tree earlier, to ensure that subsequent declarations are analyzed in a
1501 connected structure.
1502 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
1505 2010-09-10 Robert Dewar <dewar@adacore.com>
1507 * symbols-processing-vms-alpha.adb: Minor reformatting.
1509 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
1511 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
1512 __gnat_install_handler in case the binder is called with -n.
1514 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1516 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
1517 sloc for renaming declaration and set Comes_From_Source properly to
1518 ensure that references are properly generated for an object declaration
1519 that is built in place.
1521 2010-09-10 Tristan Gingold <gingold@adacore.com>
1523 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
1525 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
1526 * gcc-interface/Makefile.in: gnat.hlp is now generated by
1529 2010-09-10 Bob Duff <duff@adacore.com>
1531 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
1532 := ...;", remove side effects from the right-hand side, because they
1533 might affect the value of the left-hand side, but the left-hand side is
1534 first READ (so we can do shifting and masking) and then written back,
1535 which would cause the side effects to be incorrectly overwritten.
1537 2010-09-10 Robert Dewar <dewar@adacore.com>
1539 * sem_ch4.adb: Minor reformatting.
1540 * exp_ch6.adb: Add comment on testing limited on full type
1541 * gnat_rm.texi: Add documentation on Pure_Function.
1543 2010-09-10 Vincent Celier <celier@adacore.com>
1545 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
1546 as a source of another project and of another language.
1548 2010-09-10 Robert Dewar <dewar@adacore.com>
1550 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
1552 * freeze.adb (Check_Unsigned_Type): Ditto.
1553 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
1554 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
1555 (Set_Scalar_Range_For_Subtype): Ditto.
1556 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
1558 2010-09-10 Robert Dewar <dewar@adacore.com>
1560 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
1562 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
1563 rather than parens for fixed constants.
1564 * sprint.ads: Use square brackets rather than parens for fixed constants
1565 * urealp.adb (UR_Write): Use square brackets rather than parens
1566 (UR_Write): Add Brackets argument
1567 (UR_Write): Add many more special cases to output literals
1568 * urealp.ads (UR_Write): Use square brackets rather than parens
1569 (UR_Write): Add Brackets argument
1571 2010-09-10 Robert Dewar <dewar@adacore.com>
1573 * sem_ch4.adb: Minor reformatting.
1575 2010-09-10 Richard Guenther <rguenther@suse.de>
1577 * gcc-interface/utils.c (create_index_type): Use build_range_type.
1579 2010-09-10 Arnaud Charlet <charlet@adacore.com>
1581 * vms_cmds.ads: New.
1583 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
1585 * exp_dbug.ads: Mention enhanced encoding for array types.
1587 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
1589 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
1590 unsupported in VM targets. Display a warning in this case.
1592 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1594 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
1595 not reset Sloc when printing keyword "new".
1597 2010-09-10 Vincent Celier <celier@adacore.com>
1599 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
1600 GNAT_DRIVER_COMMAND_LINE.
1602 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1604 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
1605 clause, process the body at once.
1607 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1609 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
1610 conversion is the expression is a qualified expression used to
1611 disambiguate a function call.
1613 2010-09-10 Vincent Celier <celier@adacore.com>
1615 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
1616 as a source of another project and of another language.
1618 2010-09-10 Robert Dewar <dewar@adacore.com>
1620 * prj-util.adb: Minor reformatting.
1622 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
1624 * exp_disp.adb: Minor reformatting.
1626 2010-09-10 Arnaud Charlet <charlet@adacore.com>
1628 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
1631 2010-09-10 Thomas Quinot <quinot@adacore.com>
1633 * sem_res.adb: Minor reformatting.
1634 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
1635 magic constants for task master levels (instead, reference
1636 named numbers from System.Tasking).
1638 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
1640 * gnatvsn.ads (Ver_Prefix): New constant string.
1641 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
1642 (Gen_Output_File_C): Likewise.
1643 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
1646 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1648 * sem.adb (Walk_Library_Items): Do not traverse children of the main
1649 unit, to prevent spurious circularities in the walk order.
1650 (Depends_On_Main): Use elsewhere to prevent circularities when the body
1651 of an ancestor of the main unit depends on a child of the main unit.
1653 2010-09-10 Robert Dewar <dewar@adacore.com>
1655 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
1656 sem_ch3.adb: Minor reformatting.
1658 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1660 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
1661 that is a renaming must be derived like any other primitive operation,
1662 the renamed operation is not relevant to the derivation.
1664 2010-09-10 Robert Dewar <dewar@adacore.com>
1666 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
1667 * checks.adb: Minor reformatting.
1669 2010-09-10 Robert Dewar <dewar@adacore.com>
1671 * gnat_ugn.texi: Add section on intent of style checking options.
1673 2010-09-10 Arnaud Charlet <charlet@adacore.com>
1675 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
1677 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1679 * sem_ch3.adb: Improve error message on derivation from class-wide type
1681 2010-09-10 Steve Baird <baird@adacore.com>
1683 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
1684 generation when Generate_SCIL is True.
1686 2010-09-10 Geert Bosch <bosch@adacore.com>
1688 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
1689 validity of executable name and removing any existing executable
1690 (Gnatlink): Call Check_Existing_Executable.
1692 2010-09-10 Arnaud Charlet <charlet@adacore.com>
1694 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
1695 initialization of Task_Alternate_Stack here, cleaner since in case of
1696 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
1699 2010-09-10 Thomas Quinot <quinot@adacore.com>
1701 * s-fileio.adb, a-dirval.adb: Minor reformatting.
1703 2010-09-10 Emmanuel Briot <briot@adacore.com>
1705 * prj-util.adb (Executable_Of): Fix CE when the project does not
1706 contain a Builder package.
1708 2010-09-10 Vincent Celier <celier@adacore.com>
1710 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
1711 to the project path, if Prefix and Target_Name are defined.
1712 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
1714 2010-09-10 Ed Schonberg <schonberg@adacore.com>
1716 * checks.adb (Ensure_Valid): If the expression is a boolean expression
1717 or short-circuit operation, do no emit a validity check: only the
1718 elementary operands of the expression need checking.
1720 2010-09-10 Ben Brosgol <brosgol@adacore.com>
1722 * gnat_rm.texi: Document Short_Descriptors.
1724 2010-09-10 Arnaud Charlet <charlet@adacore.com>
1726 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
1727 initialize to Null_Address.
1728 (Enter_Task): Do not set up an alternate stack for foreign threads.
1730 2010-09-10 Robert Dewar <dewar@adacore.com>
1732 * opt.adb (Short_Descriptors): New flag
1733 (Short_Descriptors_Config): New flag
1734 * opt.ads (Short_Descriptors): New flag
1735 (Short_Descriptors_Config): New flag
1736 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
1737 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors pragma
1738 (Analyze_Pragma): Implement Short_Descriptors pragma
1739 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
1741 2010-09-10 Emmanuel Briot <briot@adacore.com>
1743 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
1744 project's Executable_Suffix.
1746 2010-09-10 Robert Dewar <dewar@adacore.com>
1748 * g-pehage.ads: Minor reformatting
1750 * gnat_ugn.texi: Clarifying comment on -gnatyc
1751 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
1754 2010-09-10 Tristan Gingold <gingold@adacore.com>
1756 * Make-generated.in (gnat.hlp): New rule.
1758 2010-09-10 Emmanuel Briot <briot@adacore.com>
1760 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
1763 2010-09-10 Robert Dewar <dewar@adacore.com>
1765 * einfo.adb: Minor code cleanup: Add assertion to
1766 Set_Corresponding_Protected_Entry.
1768 2010-09-10 Bob Duff <duff@adacore.com>
1770 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
1771 the output to standard output.
1773 2010-09-09 Vincent Celier <celier@adacore.com>
1775 * gnat_ugn.texi: Add documentation for new gnatmake switch
1777 * make.adb (Map_File): New global variable to store the value of switch
1779 (Gnatmake): Add switch -M to gnatlink if buider switch --create-map-file
1781 (Scan_Make_Arg): Recognize switch --create-map-file
1782 * makeutl.ads (Create_Map_File_Switch): New constant string for new
1783 gnatmake and gprbuild switch --create-map-file.
1785 2010-09-09 Robert Dewar <dewar@adacore.com>
1787 * sinput-p.ads: Minor comment update.
1789 2010-09-09 Arnaud Charlet <charlet@adacore.com>
1791 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
1792 Entry_Call.State if needed so that the call is marked as cancelled by
1793 Check_Pending_Actions_For_Entry_Call.
1794 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
1795 this procedure may be called from a controlled operation
1796 (Initialize/Finalize).
1798 2010-09-09 Vadim Godunko <godunko@adacore.com>
1800 * impunit.adb: Correct spelling of package's name in the comment.
1802 2010-09-09 Robert Dewar <dewar@adacore.com>
1804 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
1807 2010-09-09 Robert Dewar <dewar@adacore.com>
1809 * impunit.adb: Add entry for a-izteio.
1810 * checks.adb: Add comment.
1811 * debug.adb, exp_disp.adb: Minor reformatting.
1812 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
1814 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1816 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
1817 discriminant cannot be assumed to be the same value because they may
1818 refer to bounds of a component of two different instances of a
1821 2010-09-09 Gary Dismukes <dismukes@adacore.com>
1823 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
1824 operands of an operator to the type of an enclosing conversion, rewrite
1825 the operator so the conversion can't be flagged as redundant.
1826 Remove useless assignments to Typ and Rtyp.
1828 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
1830 * gnat_ugn.texi: Fix another long line.
1832 2010-09-09 Bob Duff <duff@adacore.com>
1834 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
1837 2010-09-09 Matthew Heaney <heaney@adacore.com>
1839 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
1840 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
1841 Replace_Element, Reverse_Elements, Swap): Change exception message to
1842 correctly indicate kind of tampering (cursor or element).
1843 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
1844 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
1845 Swap_Links, Replace_Element, Swap): Ditto.
1846 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
1847 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
1848 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
1849 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
1850 Generic_Replace_Element): Ditto
1851 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
1852 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
1853 Replace_Element): Ditto.
1854 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
1855 Symmetric_Difference, Union, Include, Replace): Ditto
1857 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1859 * sprint.adb (Write_Id): If the parent node is an expanded name, check
1860 that its entity_or_associated_node is an entity before writing it out.
1861 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
1862 constructors, there is no need for a dispatch table pointer because the
1863 table is fully inherited from the C++ code.
1865 2010-09-09 Thomas Quinot <quinot@adacore.com>
1867 * projects.texi: Fix wrong identifiers on package end lines in project
1869 * exp_ch6.adb: Minor reformatting.
1871 2010-09-09 Tristan Gingold <gingold@adacore.com>
1873 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
1875 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
1877 * gnat_ugn.texi: Fix description of -O3 optimization level.
1879 2010-09-09 Yannick Moy <moy@adacore.com>
1881 * a-cihama.adb, a-cohama.adb: Fix comments.
1883 2010-09-09 Arnaud Charlet <charlet@adacore.com>
1885 * i-cexten.ads: Add comments.
1886 (Signed_128): New type, used by some C bindings.
1887 * debug.adb: Update comment.
1889 2010-09-09 Sergey Rybin <rybin@adacore.com>
1891 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
1892 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
1893 the tool should process Ada 2005 sources.
1895 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1897 * sem_ch12.adb (Remove_Parent): If the scope containing the child
1898 instance is a block, examine the enclosing scope to determine if it is
1901 2010-09-09 Doug Rupp <rupp@adacore.com>
1903 * sem_prag.adb (pragma Ident): Pass --identification= vice
1905 * gnatlink.adb (Linker_Options): Look for --identification= vice
1908 2010-09-09 Gary Dismukes <dismukes@adacore.com>
1910 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
1911 inserting and analyzing the object declaration for the temporary object
1912 created to hold a 'Old value, push the scope for the subprogram where
1913 the object is inserted, so that its Scope (and that of related objects)
1914 will be set properly.
1916 2010-09-09 Vincent Celier <celier@adacore.com>
1918 * prj.adb (Get_Object_Directory): Return object directory display name
1919 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
1920 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
1921 return this value, otherwise return the default for the platform.
1923 2010-09-09 Arnaud Charlet <charlet@adacore.com>
1925 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1926 dependencies. Remove handling of gnatlbr.
1927 Do not remove s-stratt-xdr for the run-time when installing.
1929 2010-09-09 Robert Dewar <dewar@adacore.com>
1931 * sem_attr.adb: Minor reformatting.
1933 2010-09-09 Thomas Quinot <quinot@adacore.com>
1935 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
1936 unsigned long, not an int.
1938 2010-09-09 Vincent Celier <celier@adacore.com>
1940 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
1941 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
1942 we are not checking for equality of path or file names.
1944 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1946 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
1947 array reference, reset the Analyzed flag so that it is properly
1948 expanded when the resulting object declaration is analyzed.
1950 2010-09-09 Vincent Celier <celier@adacore.com>
1952 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
1955 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
1957 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
1958 VX_SPE_TASK option, so disable it.
1960 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1962 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
1964 (Is_Subunit_Of_Main): Handle null nodes properly.
1966 2010-09-09 Robert Dewar <dewar@adacore.com>
1968 * par-ch2.adb: Update comments.
1970 2010-09-09 Ben Brosgol <brosgol@adacore.com>
1972 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
1974 2010-09-09 Arnaud Charlet <charlet@adacore.com>
1976 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
1977 do not generate an error for compatibility with legacy code.
1978 ignored when generating SCIL.
1979 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
1981 2010-09-09 Thomas Quinot <quinot@adacore.com>
1983 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
1984 s-strxdr.adb to s-stratt-xdr.adb
1986 2010-09-09 Robert Dewar <dewar@adacore.com>
1988 * ali-util.adb (Obsolescent_Check): Removed.
1989 * gprep.adb (Obsolescent_Check): Removed.
1990 Remove Obsolescent_Check parameter in Scng instantiation
1991 * prj-err.adb (Obsolescent_Check): Removed.
1992 * prj-err.ads (Obsolescent_Check): Removed.
1993 Remove Obsolescent_Check parameter in Scng instantiation
1994 * scans.ads (Based_Literal_Uses_Colon): New flag
1995 * scn.adb (Obsolscent_Check_Flag): Removed
1996 (Obsolscent_Check): Removed
1997 (Set_Obsolescent_Check): Removed
1998 (Post_Scan): Add handling for obsolescent features
1999 * scn.ads (Obsolscent_Check): Removed
2000 (Set_Obsolescent_Check): Removed
2001 (Post_Scan): Can no longer be inlined
2002 Remove Obsolescent_Check from instantiation of Scng
2003 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
2004 (Nlit): Remove handling of obsolescent check
2005 (Scan, case '%'): Remove handling of obsolescent check
2006 (Scan, case '|'): Call Post_Scan
2007 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
2008 * scng.ads Remove Obsolescent_Check argument from Scng generic
2009 (Post_Scan): Now called for Tok_Vertical_Bar
2010 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
2012 2010-09-09 Doug Rupp <rupp@adacore.com>
2014 * gnatlbr.adb: Removed.
2015 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
2017 2010-09-09 Robert Dewar <dewar@adacore.com>
2019 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
2022 2010-09-09 Vincent Celier <celier@adacore.com>
2024 * gnatlbr.adb: Remove redundant conversions.
2026 2010-09-09 Vincent Celier <celier@adacore.com>
2028 * prj-proc.adb: Minor comment spelling error fix.
2029 * osint.ads (Env_Vars_Case_Sensitive): Use function
2030 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
2033 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2035 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
2036 resolution of conditional expressions whose dependent expressions are
2037 anonymous access types.
2039 2010-09-09 Robert Dewar <dewar@adacore.com>
2041 * a-ststio.adb: Minor code reorganization.
2042 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
2044 * types.ads: Minor reformatting.
2045 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
2046 redundant conversions.
2047 * output.adb: Minor reformatting.
2048 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
2050 * opt.ads: Add pragma Ordered for Verbosity_Level.
2051 * prj.ads: Add pragma Ordered for type Verbosity.
2053 2010-09-09 Vincent Celier <celier@adacore.com>
2055 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
2057 (Canonical_Case_Env_Var_Name): Ditto
2059 2010-09-09 Bob Duff <duff@adacore.com>
2061 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
2063 2010-09-09 Robert Dewar <dewar@adacore.com>
2065 * cstand.adb: Mark Boolean and Character types as Ordered
2066 * einfo.adb (Has_Pragma_Ordered): New flag
2067 * einfo.ads (Has_Pragma_Ordered): New flag
2068 * g-calend.ads: Mark Day_Name as Ordered
2069 * opt.ads: Mark Ada_Version_Type as Ordered
2070 (Warn_On_Unordered_Enumeration_Type): New flag
2071 * par-prag.adb: Add procdessing for pragma Ordered
2072 * s-ficobl.ads (Read_File_Mode): New subtype
2073 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
2074 * s-taskin.ads: Mark Entry_Call_State as ordered
2075 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
2077 * sem_ch6.ads: Mark Conformance_Type as Ordered
2078 * sem_prag.adb: Implement pragma Ordered
2079 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
2080 (Resolve_Comparison_Op): Diagnose unordered comparison
2081 (Resolve_Range): Diagnose unordered range
2082 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
2084 * snames.ads-tmpl: Add entry for pragma Ordered
2085 * style.ads (Check_Enumeration_Subrange): Removed
2086 * styleg.adb (Check_Enumeration_Subrange): Removed
2087 * styleg.ads (Check_Enumeration_Subrange): Removed
2088 * stylesw.adb: Remove handling of -gnatyE switch
2089 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
2090 * vms_data.ads: Remove -gnatyE entries
2091 Add -gnatw.u entries
2092 * ug_words: Entries for -gnatw.u and -gnatw.U
2093 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
2094 * gnat_rm.texi: Document pragma Ordered.
2095 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
2096 * s-tpobop.adb: Remove comparison on unordered enumeration type.
2098 2010-09-09 Vincent Celier <celier@adacore.com>
2100 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
2101 for VMS and Windows, and 1 for all other platforms.
2102 * adaint.h: New function __gnat_get_env_vars_case_sensitive
2103 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
2104 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
2105 Canonical_Case_File_Name, as we are dealing with environment variables,
2108 2010-09-09 Robert Dewar <dewar@adacore.com>
2110 * sem_util.adb: Minor reformatting
2112 2010-09-09 Vincent Celier <celier@adacore.com>
2114 * vms_data.ads: Add documentation for S_Make_Single.
2116 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2118 * sem_util.adb (Same_Object): include formal parameters.
2120 2010-09-09 Vincent Celier <celier@adacore.com>
2122 * make.adb (Queue): New package implementing a new impementation of the
2123 queue, taking into account the new switch --single-compile-per-obj-dir.
2124 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
2125 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
2126 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
2128 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
2129 switch --single-compile-per-obj-dir.
2130 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
2131 switch --single-compile-per-obj-dir.
2132 * gnat_ugn.texi: Add documentation for new gnatmake switch
2133 --single-compile-per-obj-dir.
2135 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2137 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
2139 2010-09-09 Javier Miranda <miranda@adacore.com>
2141 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
2142 (Replace_Type): Code cleanup.
2143 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
2145 2010-09-09 Thomas Quinot <quinot@adacore.com>
2147 * exp_ch8.adb: Minor reformatting.
2149 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2151 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
2152 Corresponding_Protected_Entry.
2154 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2156 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
2157 inequality, it is always rewritten as the negation of the corresponding
2159 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
2160 the predefined equality of an untagged record, create a body at the
2161 point of the renaming, to capture the current meaning of equality for
2164 2010-09-09 Robert Dewar <dewar@adacore.com>
2166 * sem.adb, sem_warn.adb: Minor reformatting.
2168 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2170 * sem_ch6.adb: Improve error message on untagged equality.
2171 * sem.adb (Semantics): Include subprogram bodies that act as spec.
2173 2010-09-09 Javier Miranda <miranda@adacore.com>
2175 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
2177 2010-09-09 Robert Dewar <dewar@adacore.com>
2179 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
2181 2010-09-09 Robert Dewar <dewar@adacore.com>
2183 * einfo.adb (Is_Aggregate_Type): New function.
2184 * einfo.ads (Aggregate_Kind): New enumeration subtype
2185 (Is_Aggregate_Type): New function.
2186 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
2189 2010-09-09 Robert Dewar <dewar@adacore.com>
2191 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
2192 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
2194 * restrict.ads, restrict.adb: Ditto.
2195 (Restriction_Check_Needed): New function
2197 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2199 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
2200 Build_Master_Entity, to find the proper scope for the master entity of
2201 a type that may contain tasks, in the presence of transient scopes.
2202 * exp_ch9.adb (Build_Master_Entity) Use new function.
2203 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
2205 2010-09-09 Vincent Celier <celier@adacore.com>
2207 * prj-attr.adb: Add new attributes Leading_Library_Options and
2208 Linker'Leading_Switches.
2209 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
2212 2010-09-09 Javier Miranda <miranda@adacore.com>
2214 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
2215 dispatching primitive covers some interface primitive is incomplete.
2216 Replace such code by the invocation of a new subprogram that provides
2218 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
2219 * sem_ch6.adb (Check_Missing_Return): Minor reformating
2220 (Check_Convention): Complete if-statement conditition when reporting
2221 errors (to avoid assertion failure).
2222 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
2223 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
2224 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
2225 overridden null interface primitives.
2226 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
2227 private type is an interface then use the parent of its full view to
2228 climb to its ancestor type.
2229 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
2230 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
2231 null interface primitives.
2232 (Is_Null_Interface_Primitive): New subprogram.
2233 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
2234 (Expand_Freeze_Record_Type): Do not generate specs of null interface
2235 subprograms because they are now generated by Analyze_Freeze_Entity.
2237 2010-09-09 Robert Dewar <dewar@adacore.com>
2239 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
2241 2010-09-09 Robert Dewar <dewar@adacore.com>
2243 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
2244 (Gen_Restrictions_C): Avoid explicit enumeration ranges
2245 (Set_String_Replace): New procedure
2246 * casing.ads (Known_Casing): New subtype declaration
2247 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
2249 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
2250 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
2251 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
2252 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
2253 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
2255 * sem_res.adb (Resolve_Range): Check for enumeration subrange style rule
2256 * sem_type.adb (Is_Array_Class_Record_Type): New.
2257 * style.ads (Check_Enumeration_Subrange): New procedure
2258 * styleg.adb (Check_Enumeration_Subrange): New procedure
2259 * styleg.ads (Check_Enumeration_Subrange): New procedure
2260 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
2261 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
2262 * usage.adb: Add line for -gnatyE
2263 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
2264 Add missing entry for NOBOOLEAN_OPERATORS
2265 * gnat_ugn.texi: Add documentation for -gnatyE
2267 2010-09-09 Robert Dewar <dewar@adacore.com>
2269 * namet.adb (Initialize): Is now a dummy procedure
2270 (Reinitialize): New procedure
2271 Call Reinitialize from package initialization
2272 * namet.ads (Initialize): Is now a dummy procedure
2273 (Reinitialize): New procedure
2274 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
2275 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
2278 2010-09-09 Bob Duff <duff@adacore.com>
2280 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
2282 2010-09-09 Robert Dewar <dewar@adacore.com>
2284 * s-bitops.adb (Raise_Error): Add exception message
2286 2010-09-09 Robert Dewar <dewar@adacore.com>
2288 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
2289 null statement after label.
2290 * sinfo.ads: Minor comment updates.
2292 2010-09-09 Robert Dewar <dewar@adacore.com>
2294 * nlists.ads, nlists.adb (In_Same_List): New function.
2295 Use Node_Or_Entity_Id where appropriate.
2296 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
2298 2010-09-09 Robert Dewar <dewar@adacore.com>
2300 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
2302 * sem_ch3.adb: Use Check_Wide_Character_Restriction
2303 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
2304 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
2305 (Find_Expanded_Name): Check violation of No_Wide_Characters
2307 2010-09-09 Robert Dewar <dewar@adacore.com>
2309 * par-ch5.adb: Minor reformatting.
2311 2010-09-09 Robert Dewar <dewar@adacore.com>
2313 * prj-env.adb: Minor code reorganization.
2314 * par-ch3.adb: Minor reformatting.
2315 * gcc-interface/Make-lang.in: Update dependencies.
2317 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2319 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
2320 a task declaration can be an entry body.
2322 2010-09-09 Javier Miranda <miranda@adacore.com>
2324 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
2325 tags of library level tagged types.
2326 (Make_Tags): Disable backend optimizations about aliasing for
2327 declarations of access to dispatch tables.
2329 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2331 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
2332 subtype for a null-excluding access type, recover the original
2333 subtype_mark to get the proper visibility on the original name.
2335 2010-09-09 Ed Schonberg <schonberg@adacore.com>
2337 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
2338 create the primitive equality operation for an untagged record. The
2339 operation is the predefined equality if no record component has a
2340 user-defined equality, or if there is a user-defined equality for the
2341 type as a whole, or when the type is derived and it has an inherited
2342 equality. Otherwise the body of the operations is built as for tagged
2344 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
2345 (Make_Eq_Body): New function to create the expanded body of the equality
2346 operation for tagged and untagged records. In both cases the operation
2347 composes, and the primitive operation of each record component is used
2348 to generate the equality function for the type.
2349 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
2350 has an abstract equality defined, replace its call with a
2351 Raise_Program_Error.
2352 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
2353 user-defined equality operator for an untagged record type does not
2354 happen after type is frozen, and appears in the visible part if partial
2355 view of type is not limited.
2357 2010-09-09 Tristan Gingold <gingold@adacore.com>
2359 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
2361 2010-09-09 Bob Duff <duff@adacore.com>
2363 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
2365 2010-09-09 Pascal Obry <obry@adacore.com>
2367 * gnat_ugn.texi: Update doc on windows related topics.
2369 2010-09-09 Geert Bosch <bosch@adacore.com>
2371 * s-fatgen.adb: Update comments.
2373 2010-09-09 Robert Dewar <dewar@adacore.com>
2375 * par-ch4.adb (Box_Error): New procedure.
2377 2010-09-09 Thomas Quinot <quinot@adacore.com>
2379 * sem.adb: Minor reformatting.
2381 2010-09-09 Pascal Obry <obry@adacore.com>
2383 * prj-env.adb: Style fix, use /and then/ and /or else/.
2384 * gnat_ugn.texi: Fix typos.
2386 2010-09-03 Joseph Myers <joseph@codesourcery.com>
2389 * gcc-interface/misc.c (gnat_init_options): Allow options with
2390 empty canonical form. Generate a single save_argv element from -I
2393 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
2395 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
2396 Attach fake PARM_DECLs to the topmost block of the function.
2398 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
2400 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
2401 for the call to a function whose return type was unconstrained.
2403 2010-08-30 Olivier Hainque <hainque@adacore.com>
2405 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
2406 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2407 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
2409 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
2411 * tracebak.c: Fix typo in comment.
2413 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2415 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
2416 * gcc-interface/trans.c: Likewise.
2417 * gcc-interface/utils.c: Likewise.
2419 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
2421 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
2423 2010-08-10 Robert Dewar <dewar@adacore.com>
2425 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
2426 * sem_util.adb: Minor reformatting.
2428 2010-08-10 Javier Miranda <miranda@adacore.com>
2430 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
2431 constructors that leave the object partially initialized.
2432 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
2433 that copies from parent of Typ the dispatch table slots of inherited
2434 C++ primitives. It handles primary and secondary dispatch tables.
2435 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
2436 use this attribute with E_Variable entities.
2437 (Set_Is_Tag): Relax assertion to allow its use with variables that
2439 (Set_Related_Type): Relax assertion to allow its use with variables
2440 that store the tag of a C++ class.
2441 (Write_26_Field_Name): Remove Related_Type.
2442 (Write_27_Field_Name): Add Related_Type.
2443 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
2444 with E_Variable entities.
2445 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
2447 * sem_util.adb (Search_Tag): Add missing support for CPP types.
2448 (Enclosing_CPP_Parent): New subprogram.
2449 (Has_Suffix): New subprogram.
2450 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
2451 closest ancestor of a type that is a C++ type.
2452 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
2454 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
2455 instance in derivations of C++ types.
2456 * exp_tss.adb (CPP_Init_Proc): New subprogram.
2457 (Is_CPP_Init_Proc): New subprogram.
2458 (Set_TSS): Handle new C++ init routines.
2459 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
2461 (CPP_Init_Proc): New subprogram.
2462 (Is_CPP_Init_Proc): New subprogram.
2463 * exp_disp.adb (CPP_Num_Prims): New subprogram.
2464 (Has_CPP_Constructors): New subprogram.
2465 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
2466 initialize slots located in the C++ part of the dispatch table.
2467 (Make_Tags): For CPP types declare variables used by the IP routine to
2468 store the C++ tag values after the first invocation of the C++
2470 (Build_CPP_Init_DT): New subprogram.
2471 (Set_CPP_Constructors): New implementation that builds an IP for each
2472 CPP constructor. These IP are wrappers of the C++ constructors that,
2473 after the first invocation of the constructor, read the C++ tags from
2474 the object and save them locally. These copies of the C++ tags are used
2475 by the IC routines to initialize tables of Ada derivations of CPP types.
2476 (Write_DT): Indicate what primitives are imported from C++
2477 * exp_disp.ads (CPP_Num_Prims): New subprogram.
2478 (Has_CPP_Constructors): New subprogram.
2479 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
2480 invoke the IC routine to inherit the slots of the parents.
2481 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
2482 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
2483 (Is_Variable_Size_Record): Factorize code calling
2484 Is_Variable_Size_Array.
2485 (Build_CPP_Init_Procedure): New subprogram that builds the tree
2486 corresponding to the procedure that initializes the C++ part of the
2487 dispatch table of an Ada tagged type that is a derivation of a CPP type.
2488 (Build_Init_Procedure): Adding documentation plus code reorganization to
2489 leave more clear the construction of the IP with C++ types.
2490 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
2491 it cannot be called after Make_Tags has been invoked.
2492 (Inherit_CPP_Tag): Removed.
2493 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
2494 located at variable offset.
2495 * freeze.ads: Minor reformating.
2496 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
2498 * gcc-interface/Make-lang.in: Update dependencies.
2500 2010-08-10 Robert Dewar <dewar@adacore.com>
2502 * a-chahan.ads: Add comments on handling of obsolescent entries.
2503 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
2504 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
2505 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
2506 * sem_attr.adb (Analyze_Access_Attribute): Call
2507 Check_Obsolescent_2005_Entity to check for access to obsolescent
2508 Ada.Characters.Handling subprogram.
2509 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
2510 type is obsolescent in Ada 2005.
2511 (Analyze_Attribute, case Constrained): Better placement of flag when
2512 flagged as obsolescent feature.
2513 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
2514 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
2515 is an obsolescent feature.
2516 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
2518 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
2519 Check_Obsolescent_2005_Entity to check for renaming obsolete
2520 Ada.Characters.Handling subprogram.
2521 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
2522 for obsolescent restrictions in Ada 2005.
2523 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
2524 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
2525 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
2526 check for obsolescent references to Ada.Characters.Handling subprograms
2528 2010-08-10 Robert Dewar <dewar@adacore.com>
2530 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
2532 2010-08-10 Robert Dewar <dewar@adacore.com>
2534 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
2535 * par-ch4.adb: Change wording of Ada 2012 messages
2536 * vms_data.ads: Add VMS entries for /2005, /12, /2012
2538 2010-08-10 Robert Dewar <dewar@adacore.com>
2540 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
2541 codes in the range 16#80#..16#7FF#.
2542 * sem_ch10.adb: Minor reformatting.
2544 2010-08-10 Arnaud Charlet <charlet@adacore.com>
2546 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
2547 generate ali files in CodePeer mode, so that a gnatmake -c -k will
2548 proceed further when possible
2549 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
2550 messages when ignoring representation clauses (-gnatI).
2552 2010-08-10 Ed Schonberg <schonberg@adacore.com>
2554 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
2555 constant-fold discriminant reference if the constraint is an object
2556 with non-static expression. Expression may contain volatile references
2557 in the presence of renamings.
2559 2010-08-10 Vincent Celier <celier@adacore.com>
2561 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
2563 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
2564 index for an associative array where it is allowed.
2566 2010-08-10 Thomas Quinot <quinot@adacore.com>
2568 * exp_attr.adb: Add comments.
2570 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
2572 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
2574 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
2576 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
2578 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
2580 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
2581 (build_vms_descriptor): Likewise.
2583 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2585 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
2586 (build_vms_descriptor32): Adjust calls to it for new parameter.
2587 (build_vms_descriptor): Likewise.
2589 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2591 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
2592 (build_variant_list): Take and return a VEC instead of a tree.
2593 (create_variant_part_from): Take a VEC instead of a tree for
2594 variant_list. Adjust accordingly.
2595 (gnat_to_gnu_entity): Adjust for changes to previous functions.
2597 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
2599 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
2601 (components_to_record): Likewise.
2602 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
2603 * gcc-interface/utils.c (max_size): Likewise.
2604 (build_vms_descriptor32): Likewise.
2605 (build_vms_descriptor): Likewise.
2607 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
2609 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
2610 (build_subst_list): Return a VEC instead of a tree.
2611 (build_variant_list): Take a VEC for subst_list. Adjust
2613 (create_field_decl_from): Likewise.
2614 (create_variant_part_from): Likewise.
2615 (copy_and_substitute_in_size): Likewise.
2616 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
2617 Free the built vector.
2619 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
2621 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
2622 allocator for large imported objects.
2624 2010-08-05 Robert Dewar <dewar@adacore.com>
2626 * gnat1drv.adb: Minor reformatting.
2628 2010-08-05 Ed Schonberg <schonberg@adacore.com>
2630 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
2631 instantiation, process its body before the spec of the main unit,
2632 because it may contain subprograms invoked in the spec of main.
2633 * einfo.ads: Add documention of delayed freeze.
2635 2010-08-05 Vincent Celier <celier@adacore.com>
2637 * prj-nmsc.adb (Process_Linker): Take into account new values for
2638 attribute Response_File_Format.
2639 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
2640 GCC_Object_List and GCC_Option_List.
2642 2010-08-05 Ed Schonberg <schonberg@adacore.com>
2644 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
2645 selected component that denotes a discriminant if it is the
2646 discriminant of a component of an unconstrained record type.
2648 2010-08-05 Ed Schonberg <schonberg@adacore.com>
2650 * exp_util.adb (Insert_Actions): If the action appears within a
2651 conditional expression that is already analyzed, insert action further
2654 2010-08-05 Robert Dewar <dewar@adacore.com>
2656 * exp_ch4.adb: Minor reformatting.
2658 2010-08-05 Thomas Quinot <quinot@adacore.com>
2660 * exp_ch4.adb: Minor reformatting
2661 * gnat1drv.adb: Minor reformatting.
2662 Minor code reorganization (use Nkind_In).
2664 2010-08-05 Ed Schonberg <schonberg@adacore.com>
2666 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
2667 determine whether the expression in an address clause for an
2668 initialized object must be constant. Code moved from freeze.adb.
2669 (Remove_Side_Effects): When the temporary is initialized with a
2670 reference, indicate that the temporary is a constant as done in all
2672 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
2673 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
2674 If object does not need a constant address, remove side effects from
2675 address expression, so it is elaborated at the point of the address
2676 clause and not at the freeze point of the object, so that elaboration
2679 2010-08-05 Vincent Celier <celier@adacore.com>
2681 * prj.adb (Is_Compilable): Return False for header files of non Ada
2684 2010-08-05 Emmanuel Briot <briot@adacore.com>
2686 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
2687 exec directory as a warning rather than an error.
2689 2010-08-05 Thomas Quinot <quinot@adacore.com>
2691 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
2694 2010-08-05 Steve Baird <baird@adacore.com>
2696 * exp_util.adb (Remove_Side_Effects): An access value which designates
2697 a volatile object of a nonvolatile type is prohibited.
2698 Do not call Make_Reference to construct a reference to such an object.
2700 2010-08-05 Robert Dewar <dewar@adacore.com>
2702 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
2703 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
2704 a-suewen.adb, a-suewen.ads: New files.
2705 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
2707 * sem_elab.adb: Minor reformatting.
2709 2010-08-05 Arnaud Charlet <charlet@adacore.com>
2711 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
2712 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
2713 in case of null Comp.
2715 2010-08-05 Robert Dewar <dewar@adacore.com>
2717 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
2719 2010-08-05 Gary Dismukes <dismukes@adacore.com>
2721 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
2722 nested access type whose designated type has tasks or is a protected
2723 object when the restrictions No_Task_Hierarchy or
2724 No_Local_Protected_Objects apply. Add ??? comment.
2725 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
2726 type is not a library-level type and No_Local_Protected_Objects applies.
2727 (Analyze_Task_Type): Give a warning when a task type is not a
2728 library-level type and No_Task_Hierarchy applies.
2730 2010-08-05 Arnaud Charlet <charlet@adacore.com>
2732 * sem.adb: Minor reformatting
2733 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
2736 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
2738 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
2740 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
2741 for the debug-only entity.
2742 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
2744 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2746 * gcc-interface/lang-specs.h: Don't pass -a options.
2748 2010-07-28 Joseph Myers <joseph@codesourcery.com>
2750 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
2751 options. Check canonical_option_num_elements on options copied.
2753 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2755 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
2756 return value type. Don't check for missing arguments here.
2758 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2760 * gcc-interface/misc.c (gnat_option_lang_mask): New.
2761 (gnat_init_options): Update prototype. Reconstruct argv array
2762 from decoded options.
2764 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
2766 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
2767 case, merge the alias set of the old pointer type.
2769 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
2771 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
2772 and recurse only for multidimensional array types instead.
2774 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
2777 * gcc-interface/utils.c (convert): Fix thinko in test.
2778 (unchecked_convert): When converting from a scalar type to a type with
2779 a different size, pad to have the same size on both sides.
2781 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
2783 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
2784 equality for the component type of array types.
2786 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2788 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2789 * gcc-interface/trans.c: Likewise.
2790 * gcc-interface/utils.c: Likewise.
2791 * gcc-interface/utils2.c: Likewise.
2793 2010-07-13 Laurent GUERBY <laurent@guerby.net>
2796 * gcc-interface/targtyps.c: Include tm_p.h.
2797 * gcc-interface/Make-lang.in: Update dependencies.
2799 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
2801 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
2804 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2806 * gcc-interface/utils.c: Include diagnostic-core.h in every file
2807 that includes toplev.h.
2809 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
2811 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
2812 Branch to common code handling the alignment of discrete types.
2813 <E_Signed_Integer_Type>: Likewise.
2814 <E_Modular_Integer_Type>: Likewise.
2816 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2818 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
2819 (gnat_handle_option): Allocate only one element for gnat_argv.
2820 (gnat_init): Do not populate gnat_argv.
2822 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2824 * gcc-interface/trans.c: Do not include tree-flow.h.
2825 * gcc-interface/Make-lang.in: Adjust dependencies.
2827 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2829 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
2830 of a TREE_LIST. Update comment.
2831 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
2832 Adjust call to gnat_build_constructor.
2833 (Attribute_to_gnu): Likewise.
2834 (gnat_to_gnu): Likewise.
2835 (pos_to_constructor): Likewise.
2836 (extract_values): Likewise.
2837 * gcc-interface/utils.c (build_template): Likewise.
2838 (convert_vms_descriptor64): Likewise.
2839 (convert_vms_descriptor32): Likewise.
2840 (convert_to_fat_pointer): Likewise.
2841 (convert): Likewise.
2842 (unchecked_convert): Likewise.
2843 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
2844 * gcc-interface/utils2.c (build_allocator): Likewise.
2845 (fill_vms_descriptor): Likewise.
2846 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
2847 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
2848 instead of TREE_LISTs.
2850 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2852 * gcc-interface/misc.c: Do not include except.h.
2853 * gcc-interface/Make-lang.in: Update dependencies.
2855 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
2857 * gcc-interface/trans.c: Include tree-flow.h.
2858 (gnu_switch_label_stack): Delete.
2859 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
2860 its associated block cannot fall through. Do not emit the final label
2861 if no cases branch to it.
2862 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
2864 2010-06-23 Thomas Quinot <quinot@adacore.com>
2866 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
2867 reference to a protected subprogram outside of the protected's scope,
2868 ensure the corresponding external subprogram is frozen before the
2871 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2873 * sem_prag.adb: Fix typo in error message.
2874 * sem.adb: Refine previous change.
2876 2010-06-23 Robert Dewar <dewar@adacore.com>
2878 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
2879 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
2880 Implement Ada 2012 string encoding packages.
2882 2010-06-23 Arnaud Charlet <charlet@adacore.com>
2884 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
2885 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
2886 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
2887 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
2889 * gcc-interface/Makefile.in: Enable use of above files.
2891 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2893 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
2894 of address clauses if if Ignore_Rep_Clauses is active.
2895 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
2896 remove address clause from tree so that it does not reach the backend.
2898 2010-06-23 Arnaud Charlet <charlet@adacore.com>
2900 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
2901 expand 'Valid from user code in CodePeer mode, will be handled by the
2904 2010-06-23 Bob Duff <duff@adacore.com>
2906 * g-comlin.ads: Minor comment improvements.
2908 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2910 * sem_res.adb (Uses_SS): The expression that initializes a controlled
2911 component of a record type may be a user-defined operator that is
2912 rewritten as a function call.
2914 2010-06-23 Bob Duff <duff@adacore.com>
2916 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
2918 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
2920 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
2921 label to the new sequence of statements. Set the sloc of the raise
2922 statement onto the new goto statements.
2924 2010-06-23 Robert Dewar <dewar@adacore.com>
2926 * a-stuten.ads, a-stuten.adb: New files.
2927 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
2928 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
2930 2010-06-23 Robert Dewar <dewar@adacore.com>
2932 * gnat_ugn.texi: Add documentation of -gnat12 switch
2933 Add documentation of -gnatX switch.
2935 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2937 * inline.ads: Include the current Ada_Version in the info for pending
2938 instance bodies, so that declaration and body are compiled with the
2940 * inline.adb: Move with_clause for Opt to spec.
2941 * sem_ch12.adb (Analyze_Package_Instantiation,
2942 Analyze_Subprogram_Instantiation): Save current Ada_Version in
2943 Pending_Instantiation information.
2944 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
2945 Inline_Package_Body): Use the Ada_Version present in the body
2948 2010-06-23 Robert Dewar <dewar@adacore.com>
2950 * usage.adb: Add documentation for -gnat12 switch.
2951 * errout.ads: Add VMS alias entry for -gnat12 switch
2952 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
2953 Add documentation for pragma Extensions_Allowed.
2954 * opt.ads: Add entry for Ada 2012 mode.
2955 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
2957 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
2959 * sem_ch13.adb: Add handling for Ada 2012 mode.
2960 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
2961 * switch-c.adb: Add handling for -gnat12 switch.
2962 Implement -gnat2005 and -gnat2012.
2963 * usage.adb: Add documentation for -gnat12 switch.
2964 * vms_data.ads: Add /12 switch for Ada 2012 mode.
2966 2010-06-23 Arnaud Charlet <charlet@adacore.com>
2968 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
2969 No_Task_Hierarchy restriction. Add comment.
2970 * exp_ch9.adb, exp_ch3.adb: Update comments.
2972 2010-06-23 Robert Dewar <dewar@adacore.com>
2974 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
2975 * sem_res.adb: Add comments.
2976 * sem_util.adb: Minor reformatting. Add comments.
2977 Change increment on Actuals_In_Call table.
2978 * opt.ads: Minor: add 'constant'.
2980 2010-06-23 Javier Miranda <miranda@adacore.com>
2982 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
2983 TSD to Null_Address if No_Dispatching_Calls is active.
2985 2010-06-23 Vincent Celier <celier@adacore.com>
2987 * a-comlin.ads: Indicate that use of this package is not supported
2988 during the elaboration of an auto-initialized Stand-Alone Library.
2990 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2992 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
2993 alignment clause on a record type to determine if a component may be
2994 misaligned. The decision must be taken in the back-end where target
2995 alignment information is known.
2997 2010-06-23 Arnaud Charlet <charlet@adacore.com>
2999 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
3000 systematically in CodePeer mode to simplify generated code.
3001 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
3002 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
3003 No_Task_Hierarchy is set instead of crasshing.
3005 2010-06-23 Thomas Quinot <quinot@adacore.com>
3007 * sem_util.adb: Minor code cleanup: test for proper entity instead of
3008 testing just Chars attribute when checking whether a given scope is
3010 * exp_ch4.adb, einfo.adb: Minor reformatting.
3012 2010-06-23 Vincent Celier <celier@adacore.com>
3015 * switch-m.adb (Normalize_Compiler_Switches): Take into account
3016 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
3017 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
3019 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3021 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
3022 operation with a universal real operand, and the right operand is a
3023 range with universal bounds, find unique fixed point that may be
3024 candidate, and warn appropriately.
3026 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3028 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
3029 properly the rare cases where VMS operators are visible through
3030 Extend_System, but the default System is being used and Address is a
3032 * sem_util.adb: Widen predicate Is_VMS_Operator.
3034 2010-06-23 Vincent Celier <celier@adacore.com>
3036 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
3039 2010-06-23 Olivier Hainque <hainque@adacore.com>
3041 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
3042 Interface_Name as foreign. These are GCC builtin imports for
3043 which Ada specific processing doesn't apply.
3045 2010-06-23 Thomas Quinot <quinot@adacore.com>
3047 * sem_ch12.adb: Minor reformatting.
3049 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3051 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
3052 determine whether an intrinsic subprogram is VMS specific.
3054 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
3056 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
3057 is present in the entity.
3059 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3061 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
3062 Fix handling of parameters.
3063 Add protection against unexpected cases.
3064 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
3065 access level, since "A" suffix is already used elsewhere. Similarly,
3066 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
3069 2010-06-23 Thomas Quinot <quinot@adacore.com>
3071 * sem_util.adb, sem_util.ads: Minor reformatting.
3073 2010-06-23 Vincent Celier <celier@adacore.com>
3075 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
3076 the previous behavior of gprclean when there are missing files.
3078 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3080 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
3081 generic body is not a fatal error.
3082 (Mark_Context): Handle properly names of child units.
3083 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
3086 2010-06-23 Vincent Celier <celier@adacore.com>
3088 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
3091 2010-06-23 Bob Duff <duff@adacore.com>
3093 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
3094 Memory_Space, because CPU_Time doesn't seem to provide any significant
3095 speed advantage in practice. Cleanup: Get rid of constant
3096 Default_Optimization; doesn't seem to add anything. Use case
3097 statements instead of if statements; seems cleaner.
3099 2010-06-23 Olivier Hainque <hainque@adacore.com>
3101 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
3102 Wshadow instead of Wextra to guard warning on absence of internal
3103 builtin decl for an import. Fix use of quote in warning text.
3104 (intrin_arglists_compatible_p): Remove processing of integer trailing
3105 args on the Ada side. Fix use of literal > in warning text.
3106 (intrin_return_compatible_p): Never warn on "function imported as
3107 procedure". Defer the void/void case to the common type compatibility
3109 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
3110 of GCC builtin imports.
3112 2010-06-23 Olivier Hainque <hainque@adacore.com>
3114 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
3116 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
3117 functions, helpers for ...
3118 (intrin_profiles_compatible_p): New function, replacement for ...
3119 (compatible_signatures_p): Removed.
3120 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
3121 attempt to bind an unregistered builtin function. When we have
3122 one, use it and warn on profile incompatibilities.
3124 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3126 * gcc-interface/Make-lang.in: Update dependencies.
3128 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3130 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
3131 for a coextension in an object declaration is a concatenation, treat
3132 coextension as dynamic.
3134 2010-06-23 Javier Miranda <miranda@adacore.com>
3136 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
3137 internal entities are added to the scope of the tagged type.
3138 (Derive_Subprograms): Do not stop derivation when we find the first
3139 internal entity that has attribute Interface_Alias. After the change
3140 done to Override_Dispatching_Operations it is no longer true that
3141 these primirives are always located at the end of the list of
3143 * einfo.ads (Primitive_Operations): Add documentation.
3144 * exp_disp.adb (Write_DT): Improve output adding to the name of the
3145 primitive a prefix indicating its corresponding tagged type.
3146 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
3147 entity covers the primitive of an interface that is not an ancestor of
3148 this tagged type then the new primitive is added at the end of the list
3149 of primitives. Required to fulfill the C++ ABI.
3151 2010-06-23 Javier Miranda <miranda@adacore.com>
3153 * atree.ads (Set_Reporting_Proc): New subprogram.
3154 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
3155 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
3156 to routines of package Scil_ll by indirect call to the registered
3158 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
3159 that is invoked when a node is allocated, replaced or rewritten.
3160 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
3161 the SCIL node. Used as argument for Set_Reporting_Proc.
3162 (Initialize): Register Copy_SCIL_Node as the reporting routine that
3163 is invoked by atree.
3165 2010-06-23 Thomas Quinot <quinot@adacore.com>
3167 * sem_ch3.ads: Minor reformatting.
3169 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3171 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
3172 always analyze the generic body and instance, because it may be needed
3174 (Mark_Context): Prepend the with clauses for needed generic units, so
3175 they appear in a better order for CodePeer.
3176 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
3178 2010-06-23 Emmanuel Briot <briot@adacore.com>
3180 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
3182 2010-06-23 Robert Dewar <dewar@adacore.com>
3184 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
3186 2010-06-23 Thomas Quinot <quinot@adacore.com>
3188 * a-tags.ads: Fix description of TSD structure.
3190 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3192 * sem_ch12.adb (Mark_Context): When indicating that the body of a
3193 generic unit is needed prior to the unit containing an instantiation,
3194 search recursively the context of the generic to add other generic
3195 bodies that may be instantiated indirectly through the current instance.
3197 2010-06-23 Robert Dewar <dewar@adacore.com>
3199 * freeze.adb: Minor reformatting.
3201 2010-06-23 Bob Duff <duff@adacore.com>
3203 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
3205 2010-06-23 Vincent Celier <celier@adacore.com>
3207 * make.adb (Compile_Sources): Complete previous change.
3209 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3211 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
3212 Constrained extra formal.
3214 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3216 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
3217 Initialize_Scalars are enabled, compile the generated equality function
3218 for a composite type with full checks enabled, so that validity checks
3219 are performed on individual components.
3221 2010-06-23 Emmanuel Briot <briot@adacore.com>
3223 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
3224 Missing_Source_Files.
3226 2010-06-23 Robert Dewar <dewar@adacore.com>
3228 * exp_ch3.adb, exp_util.adb: Minor reformatting.
3230 2010-06-23 Jose Ruiz <ruiz@adacore.com>
3232 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
3233 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
3234 Clock (without delays) use a run time which is properly initialized.
3236 2010-06-23 Vincent Celier <celier@adacore.com>
3238 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
3239 when -f -u and a main is specified on the command line. However,
3240 attempt to compile even when the ALI file is read-only when
3241 Must_Compile is True.
3243 2010-06-23 Thomas Quinot <quinot@adacore.com>
3245 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
3247 2010-06-23 Javier Miranda <miranda@adacore.com>
3249 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
3250 entities for parent types that are interfaces. Needed in generics to
3251 handle formals that implement interfaces.
3252 (Derive_Subprograms): Add assertion for derivation of tagged types that
3253 do not cover interfaces. For generics, complete code that handles
3254 derivation of type that covers interfaces because the previous
3255 condition was weak (it required only name consistency; arguments were
3256 not checked). Add new code to locate primitives covering interfaces
3257 defined in generic units or instantiatons.
3258 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
3259 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
3260 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
3261 interfaces that are parents of the type because they share the primary
3263 (Register_Primitive): Do not register primitives of interfaces that
3264 are parents of the type.
3265 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
3266 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
3267 primitives skip primitives of interfaces that are parents of the type.
3269 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3271 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
3272 attribute cannot be constant-folded if an index type is a formal type,
3273 or is derived from one.
3274 * checks.adb (Determine_Range): ditto.
3276 2010-06-23 Arnaud Charlet <charlet@adacore.com>
3278 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
3280 2010-06-23 Bob Duff <duff@adacore.com>
3282 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
3283 (Insert): Disallow nul characters.
3284 (misc output routines): Assert no nul characters.
3286 2010-06-23 Ed Schonberg <schonberg@adacore.com>
3288 * exp_ch4.adb: Use predefined unsigned type in all cases.
3290 2010-06-23 Bob Duff <duff@adacore.com>
3292 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
3293 * g-pehage.ads: Minor comment fixes.
3294 * g-pehage.adb: Minor: Add some additional debugging printouts under
3297 2010-06-23 Robert Dewar <dewar@adacore.com>
3299 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
3300 (Worse_Choice): Always prefer Pure/Preelab.
3302 2010-06-23 Vincent Celier <celier@adacore.com>
3304 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
3306 2010-06-23 Robert Dewar <dewar@adacore.com>
3308 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
3309 checking returns in generic case.
3310 (Check_Missing_Return): New procedure.
3312 2010-06-23 Robert Dewar <dewar@adacore.com>
3314 * bindgen.adb, switch-b.adb: Minor reformatting.
3316 2010-06-23 Javier Miranda <miranda@adacore.com>
3318 * frontend.adb (Frontend): Add call to initialize the new package
3320 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
3322 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
3323 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
3325 * exp_util.adb (Insert_Actions): Remove code for
3326 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
3327 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
3328 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
3329 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
3330 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
3331 * sinfo.ads (SCIL_Related_Node): Field removed.
3332 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
3333 (N_SCIL_Tag_Init): Node removed.
3334 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
3335 (Check_SCIL_Node): New implementation.
3336 (Find_SCIL_Node): Removed.
3337 * sem.adb (Analyze): Remove management of
3338 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
3339 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
3341 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
3342 Set_SCIL_Related_Node and avoid adding the SCIL node before the
3343 referenced node using Insert_Action because this is not longer required.
3344 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
3345 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
3346 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
3347 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
3348 because we no longer require to generate the SCIL node before the call.
3349 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
3350 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
3351 nodes before the referenced node using Insert_Action because this
3352 is not longer required.
3353 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
3354 update the SCIL_Node field.
3355 * sprint.adb (Sprint_Node_Actual): Remove code for
3356 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
3357 * treepr.adb (Print_Node): Print the SCIL node field (if available).
3358 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
3359 SCIL_Tag_Init nodes.
3360 * scil_ll.ads, scil_ll.adb: New files.
3361 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
3364 2010-06-23 Robert Dewar <dewar@adacore.com>
3366 * sem_ch6.adb: Minor reformatting.
3368 2010-06-23 Doug Rupp <rupp@adacore.com>
3370 * bindusg.adb (Display): Write -Hnn line.
3371 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
3373 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
3374 valid values to 32 and 64.
3375 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
3376 ENABLE, DISABLE as valid settings.
3377 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
3378 * opt.ads (Heap_Size): New global variable.
3379 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
3380 TARGET_MALLOC64 check. Fix comment.
3382 2010-06-23 Robert Dewar <dewar@adacore.com>
3384 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
3385 reformatting. Add comments.
3386 * errout.adb (Finalize): Properly adjust warning count when deleting
3389 2010-06-22 Robert Dewar <dewar@adacore.com>
3391 * errout.adb (Finalize): Set Prev pointers.
3392 (Finalize): Delete continuations for deletion by warnings off(str).
3393 * erroutc.ads: Add Prev pointer to error message structure.
3395 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3397 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
3398 child unit, examine context of parent units to locate instantiated
3399 generics whose bodies may be needed.
3400 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
3401 with_clause for the instantiated generic, examine the context of its
3402 parents, to set Withed_Body flag, so that it can be visited earlier.
3403 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
3404 an unsigned type, use a type of the proper size for the intermediate
3405 value, to prevent alignment problems on unchecked conversion.
3407 2010-06-22 Geert Bosch <bosch@adacore.com>
3409 * s-rannum.ads Change Generator type to be self-referential to allow
3410 Random to update its argument. Use "in" mode for the generator in the
3411 Reset procedures to allow them to be called from the Ada.Numerics
3412 packages without tricks.
3413 * s-rannum.adb: Use the self-referencing argument to get write access
3414 to the internal state of the random generator.
3415 * a-nudira.ads: Make Generator a derived type of
3416 System.Random_Numbers.Generator.
3417 * a-nudira.adb: Remove use of 'Unrestricted_Access.
3418 Put subprograms in alpha order and add headers.
3419 * g-mbdira.ads: Change Generator type to be self-referential.
3420 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
3422 2010-06-22 Robert Dewar <dewar@adacore.com>
3424 * freeze.adb: Minor reformatting
3425 Minor code reorganization (use Nkind_In and Ekind_In).
3427 2010-06-22 Bob Duff <duff@adacore.com>
3429 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
3430 -gnatc when a file is compiled that we cannot generate code for, not
3431 helpful and confusing.
3433 2010-06-22 Vincent Celier <celier@adacore.com>
3435 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
3438 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
3440 * s-rannum.adb: Replace constants with commented symbols.
3441 * s-rannum.ads: Explain significance of the initial value of the data
3444 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3446 * a-ngcoty.adb: Clarify comment.
3448 2010-06-22 Gary Dismukes <dismukes@adacore.com>
3450 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
3451 expansion for indexing packed arrays with small power-of-2 component
3452 sizes when the target is AAMP.
3453 (Expand_Packed_Element_Reference): Return without expansion for
3454 indexing packed arrays with small power-of-2 component sizes when the
3457 2010-06-22 Geert Bosch <bosch@adacore.com>
3459 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
3462 2010-06-22 Robert Dewar <dewar@adacore.com>
3464 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
3467 2010-06-22 Doug Rupp <rupp@adacore.com>
3469 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
3471 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
3472 (pragma Ident): Add a default ident string in the private part.
3474 2010-06-22 Robert Dewar <dewar@adacore.com>
3476 * cstand.adb: Minor reformatting.
3478 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3480 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
3481 recognize the Shift and Rotation intrinsics that are known to the
3482 compiler but have no interface name.
3484 2010-06-22 Geert Bosch <bosch@adacore.com>
3486 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
3487 scaling in case of overflow or NaN results.
3489 2010-06-22 Robert Dewar <dewar@adacore.com>
3491 * cstand.adb: Complete previous change.
3492 * g-dirope.ads: Add comment.
3493 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
3495 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3497 * cstand.adb: Add tree nodes for pragma Pack on string types.
3499 2010-06-22 Javier Miranda <miranda@adacore.com>
3501 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
3502 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
3503 formal of a primitive.
3504 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
3505 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
3506 formal of a primitive.
3507 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
3508 to obtain the last formal of a primitive.
3510 2010-06-22 Geert Bosch <bosch@adacore.com>
3512 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
3513 depending on __EMX__ or MSDOS being defined.
3514 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
3515 * a-excpol-abort.adb: Update comment indicating users of the file.
3516 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
3518 * env.c: Remove empty conditional for MSDOS.
3519 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
3522 2010-06-22 Robert Dewar <dewar@adacore.com>
3524 * s-rannum.adb: Minor reformatting.
3526 2010-06-22 Javier Miranda <miranda@adacore.com>
3528 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
3529 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
3530 package Sem_Util to package Sem_Aux.
3532 2010-06-22 Javier Miranda <miranda@adacore.com>
3534 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
3535 remove useless restriction on imported routines when building the
3538 2010-06-22 Robert Dewar <dewar@adacore.com>
3540 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
3543 2010-06-22 Javier Miranda <miranda@adacore.com>
3545 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
3546 generic subprogram declarations to ensure proper context. Add missing
3547 support for generic actuals.
3548 (Try_Primitive_Operation): Add missing support for concurrent types that
3549 have no Corresponding_Record_Type. Required to diagnose errors compiling
3550 generics or when compiling with no code generation (-gnatc).
3551 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
3552 the corresponding record type.
3553 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
3554 documentation. Do minimum decoration when processing a primitive of a
3555 concurrent tagged type that covers interfaces. Required to diagnose
3556 errors in the Object.Operation notation compiling generics or under
3558 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
3559 propagation of attribute Interface_List to the corresponding record.
3560 (Expand_N_Task_Type_Declaration): Code cleanup.
3561 (Expand_N_Protected_Type_Declaration): Code cleanup.
3563 2010-06-22 Matthew Heaney <heaney@adacore.com>
3565 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
3567 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
3569 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
3570 that is able to produce all representable floating-point numbers in the
3571 unit interval. Remove template parameter Shift_Right, no longer used.
3572 * gnat_rm.texi: Document the period of the pseudo-random number
3573 generator under the description of its algorithm.
3574 * gcc-interface/Make-lang.in: Update dependencies.
3576 2010-06-22 Thomas Quinot <quinot@adacore.com>
3578 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
3579 reference to discriminant (can be an expanded name as well as an
3582 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3584 * exp_ch6.adb: Clarify comment.
3586 2010-06-22 Geert Bosch <bosch@adacore.com>
3588 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
3589 with decimal small as decimal types, avoiding floating-point arithmetic.
3590 (Has_Decimal_Small): New function.
3591 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
3593 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
3594 callers to call the new function in Einfo that takes the entity as
3597 2010-06-22 Robert Dewar <dewar@adacore.com>
3599 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
3601 2010-06-22 Thomas Quinot <quinot@adacore.com>
3603 * sem_elab.adb: Minor reformatting.
3605 2010-06-22 Vincent Celier <celier@adacore.com>
3607 * gnatsym.adb: Put the object files in the table in increasing
3608 aphabetical order of base names.
3610 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3612 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
3613 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
3614 the corresponding discriminal within a record declaration.
3616 2010-06-22 Thomas Quinot <quinot@adacore.com>
3618 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
3619 expression referring to a discriminal of the type of the aggregate (not
3620 a discriminal of some other unrelated type), and the prefix in the
3621 generated selected component must come from Lhs, not Obj.
3623 2010-06-22 Thomas Quinot <quinot@adacore.com>
3625 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
3626 when to freeze the parent type.
3628 2010-06-22 Robert Dewar <dewar@adacore.com>
3630 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
3631 exp_aggr.adb: Minor reformatting.
3632 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
3633 GNAT.MBSS_Float_Random.
3634 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
3636 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
3638 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
3639 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
3640 (Random_Float_Template, Random): New method of creating
3641 uniform floating-point variables that allow the creation of all machine
3644 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
3646 2010-06-22 Gary Dismukes <dismukes@adacore.com>
3648 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
3649 to abstract targets to check that the type is tagged and comes from
3650 source, rather than only testing for targets of interface types. Remove
3653 2010-06-22 Vincent Celier <celier@adacore.com>
3655 * vms_data.ads: Modify the declarations of qualifiers
3656 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
3659 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3661 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
3662 expansion is disabled.
3664 2010-06-22 Robert Dewar <dewar@adacore.com>
3666 * makeusg.adb: Minor reformatting.
3668 2010-06-22 Robert Dewar <dewar@adacore.com>
3670 * types.ads: (Dint): Removed, no longer used anywhere.
3671 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
3672 (UI_Mul): Avoid use of UI_From_Dint.
3673 (UI_From_Dint): Removed, not used.
3674 * uintp.ads (UI_From_Dint): Removed, not used.
3675 (Uint_Min/Max_Simple_Mul): New constants.
3677 2010-06-22 Vincent Celier <celier@adacore.com>
3679 * clean.adb (Parse_Cmd_Line): Recognize switch
3680 --unchecked-shared-lib-imports.
3681 (Usage): Add line for switch --unchecked-shared-lib-imports
3682 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
3683 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
3684 moved from GPR_Util.
3685 * switch-m.adb (Scan_Make_Switches): Recognize switch
3686 --unchecked-shared-lib-imports.
3687 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
3688 * gnat_ugn.texi: Add documentation for new switch
3689 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
3691 2010-06-22 Javier Miranda <miranda@adacore.com>
3693 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
3694 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
3695 this patch replaces duplication of code that traverses the chain of
3696 aliased primitives by a call to routine Ultimate_Alias that
3697 provides this functionality.
3699 2010-06-22 Arnaud Charlet <charlet@adacore.com>
3701 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
3702 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
3705 2010-06-22 Thomas Quinot <quinot@adacore.com>
3707 * einfo.ads: Minor reformatting.
3709 2010-06-22 Javier Miranda <miranda@adacore.com>
3711 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
3712 eliminated primitives.
3713 (Make_DT): Avoid referencing eliminated primitives.
3714 (Register_Primitive): Do not register eliminated primitives in the
3715 dispatch table. Required to add this functionality when the program is
3716 compiled without static dispatch tables (-gnatd.t)
3718 2010-06-22 Emmanuel Briot <briot@adacore.com>
3720 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
3721 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
3722 warnings on use of internal GNAT units.
3724 2010-06-22 Jose Ruiz <ruiz@adacore.com>
3726 * s-taprop-vxworks.adb (Set_Priority): Update comments.
3728 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
3730 * s-rannum.adb: Make stylistic change to remove mystery constant in
3731 Extract_Value. Image_Numeral_Length: new symbolic constant.
3733 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3735 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
3736 Is_Synchronized_Interface, Is_Task_Interface into computable
3737 predicates, to free three flags in entity nodes.
3738 * sem_ch3.adb: Remove setting of these flags.
3740 2010-06-22 Robert Dewar <dewar@adacore.com>
3742 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
3744 * s-taprop-vxworks.adb: Add comment for Set_Priority.
3745 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
3746 * projects.texi: Move @cindex to the left margin, since otherwise we
3747 are missing entries in the index.
3749 2010-06-22 Emmanuel Briot <briot@adacore.com>
3751 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
3752 packages from the GNAT hierarchy instead of System when possible.
3753 * gcc-interface/Make-lang.in: Update dependencies.
3755 2010-06-22 Jose Ruiz <ruiz@adacore.com>
3757 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
3758 previously in place to reorder the ready queue when a task drops its
3759 priority due to the loss of inherited priority.
3761 2010-06-22 Vincent Celier <celier@adacore.com>
3763 * projects.texi: Minor spelling error fixes.
3766 2010-06-22 Emmanuel Briot <briot@adacore.com>
3768 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
3769 warnings for some with clauses.
3771 2010-06-22 Robert Dewar <dewar@adacore.com>
3773 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
3774 test to catch more cases where first subtype is the results we want.
3775 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
3776 error case, since Errout will now handle this correctly.
3777 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
3778 Update dependencies.
3780 2010-06-22 Arnaud Charlet <charlet@adacore.com>
3782 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
3783 when calling Make_Temporary.
3785 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3787 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
3788 subprogram can be associated with an entry body.
3790 2010-06-22 Robert Dewar <dewar@adacore.com>
3792 * scos.ads: Add note on membership test handling.
3794 2010-06-22 Vincent Celier <celier@adacore.com>
3796 * projects.texi: Minor spelling fixes.
3799 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
3801 * s-rannum.adb: Correct off-by-one error in Extract_Value.
3803 2010-06-22 Vincent Celier <celier@adacore.com>
3805 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
3807 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
3808 gcc command if it is too long.
3810 2010-06-22 Robert Dewar <dewar@adacore.com>
3812 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
3814 2010-06-22 Arnaud Charlet <charlet@adacore.com>
3816 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
3817 calling Make_Temporary.
3819 2010-06-22 Robert Dewar <dewar@adacore.com>
3821 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
3823 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3825 * sem_res.adb: Additional special-case for VMS.
3827 2010-06-22 Vincent Celier <celier@adacore.com>
3829 * gnatsym.adb: Minor comment fix.
3831 2010-06-22 Vincent Celier <celier@adacore.com>
3833 * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
3835 2010-06-22 Robert Dewar <dewar@adacore.com>
3837 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
3838 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
3839 Ada 95 mode as an implementation defined attribute.
3841 2010-06-22 Vincent Celier <celier@adacore.com>
3843 * bindusg.adb (Display): Update line for -R
3844 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
3845 generated files when -R is used.
3847 2010-06-22 Vincent Celier <celier@adacore.com>
3849 * prj-nmsc.adb (Lib_Data_Table): New table.
3850 (Check_Library_Attributes): Check if the same library name is used in
3851 two different projects that do not extend each other.
3853 2010-06-22 Robert Dewar <dewar@adacore.com>
3855 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
3857 2010-06-22 Vincent Celier <celier@adacore.com>
3859 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
3860 empty, make it the current working directory.
3862 2010-06-22 Thomas Quinot <quinot@adacore.com>
3864 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
3865 private type with discriminants, make sure the parent type is frozen.
3867 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
3869 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
3870 with packed array references specially.
3871 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
3872 to a component of a bit packed array if it is the prefix of 'Bit.
3873 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
3874 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
3875 'Bit reference, where the prefix involves a packed array reference.
3876 (Get_Base_And_Bit_Offset): New helper, extracted from...
3877 (Expand_Packed_Address_Reference): ...here. Call above procedure to
3878 get the outer object and offset expression.
3880 2010-06-22 Thomas Quinot <quinot@adacore.com>
3882 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
3883 * einfo.adb (Related_Expression, Set_Related_Expression): Add
3886 2010-06-22 Javier Miranda <miranda@adacore.com>
3888 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
3889 reorganization to properly check if the operation has been inherited as
3890 an abstract operation.
3892 2010-06-22 Ed Falis <falis@adacore.com>
3894 * s-osinte-vxworks.ads: Complete previous change.
3896 2010-06-22 Thomas Quinot <quinot@adacore.com>
3898 * sem_res.adb: Add comment.
3899 * projects.texi, gnat_ugn.texi: Remove macro.
3901 2010-06-22 Vincent Celier <celier@adacore.com>
3903 * prj-attr.adb: Remove project level attribute Main_Language.
3905 2010-06-22 Robert Dewar <dewar@adacore.com>
3907 * switch-b.adb, osint-b.adb: Minor reformatting.
3909 2010-06-22 Pascal Obry <obry@adacore.com>
3911 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
3912 vector if previous send was not fully successful. If only part of
3913 the vector data was sent, we exit the loop.
3915 2010-06-22 Thomas Quinot <quinot@adacore.com>
3917 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
3918 error reporting with generic types.
3920 2010-06-22 Thomas Quinot <quinot@adacore.com>
3922 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
3923 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
3924 vms_data.ads: Add a new command line switch -A to gnatbind to output
3925 the list of all ALI files for the partition.
3927 2010-06-22 Arnaud Charlet <charlet@adacore.com>
3929 * s-osinte-vxworks.ads: Fix casing.
3930 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
3931 change: Interfaces.C does not provide a long_long type.
3933 2010-06-22 Emmanuel Briot <briot@adacore.com>
3935 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
3936 native user's guide, since this document contains the two versions.
3937 * gcc-interface/Make-lang.in: Update doc dependencies.
3939 2010-06-22 Robert Dewar <dewar@adacore.com>
3941 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
3943 2010-06-22 Emmanuel Briot <briot@adacore.com>
3945 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
3946 not build this file on its own (only through gnat_ugn.texi).
3947 Remove macro definitions and insert simpler version in gnat_ugn.texi.
3949 2010-06-22 Robert Dewar <dewar@adacore.com>
3951 * ali-util.ads: Minor comment update.
3952 * g-socthi-mingw.adb: Minor reformatting.
3954 2010-06-22 Ed Falis <falis@adacore.com>
3956 * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
3957 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
3958 for specific versions of VxWorks.
3960 2010-06-22 Emmanuel Briot <briot@adacore.com>
3962 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
3963 related sections from user's guide and reference manual, since they
3964 have now been merged together into a separate document (projects.texi).
3965 This removes a lot of duplication where attributes where described
3967 The grammar for the project files is now in each of the sections
3968 (packages,expressions,...) instead of being duplicates in two other
3969 sections (one in the user's guide that contained the full grammar,
3970 and various sections in the rm that contained extracts of the same
3972 Added the full list of all supported attributes, since existing lists
3974 Rename "associative array" into "indexed attribute"
3975 Remove sections that were duplicates ("External References in
3976 Project Files" and "External Values", and "Project Extensions"
3977 for instance). The list of valid packages in project files is now in
3980 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3982 * sem_ch3.adb (Add_Internal_Interface_Entities): If
3983 Find_Primitive_Covering_Interface does not find the operation, it may
3984 be because of a name conflict between the inherited operation and a
3985 local non-overloadable name. In that case look for the operation among
3986 the primitive operations of the type. This search must succeed
3987 regardless of visibility.
3989 2010-06-22 Pascal Obry <obry@adacore.com>
3991 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
3992 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
3995 2010-06-22 Robert Dewar <dewar@adacore.com>
3997 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
3999 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
4001 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4003 * s-intman-vxworks.ads: Code clean up.
4005 2010-06-22 Thomas Quinot <quinot@adacore.com>
4007 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
4008 dereference, construct actual subtype of designated object to generate
4009 proper bounds checks.
4011 2010-06-22 Thomas Quinot <quinot@adacore.com>
4013 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
4014 Read_Withed_ALIs, which is more descriptive.
4016 2010-06-22 Pascal Obry <obry@adacore.com>
4018 * g-sothco.ads: Minor reformatting.
4019 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
4020 C_Sendmsg implementation.
4021 (C_Sendmsg): Do not use lock (not needed).
4022 (C_Recvmsg): Likewise and also do not wait for incoming data.
4024 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4026 * uintp.adb: Fix scope error in operator call.
4028 2010-06-22 Vincent Celier <celier@adacore.com>
4030 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
4031 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
4032 autoconfiguration is needed, fail indicating that no config project
4033 file can be found, as there is no autoconfiguration on VMS.
4035 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4037 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
4038 for an operator in a functional notation, when operands are universal.
4040 2010-06-22 Arnaud Charlet <charlet@adacore.com>
4042 * gcc-interface/Make-lang.in: Update dependencies.
4044 2010-06-22 Robert Dewar <dewar@adacore.com>
4046 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
4048 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
4049 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
4051 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
4054 2010-06-22 Vincent Celier <celier@adacore.com>
4056 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
4057 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
4059 2010-06-22 Pascal Obry <obry@adacore.com>
4061 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
4063 (C_Recvmsg): Make sure the routine is atomic. Also fully
4064 fill vectors in the proper order.
4065 (C_Sendmsg): Make sure the routine is atomic.
4067 2010-06-22 Robert Dewar <dewar@adacore.com>
4069 * sem_ch8.adb: Update comment.
4070 * sem_res.adb: Minor code reorganization (use Ekind_In).
4072 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4074 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
4075 name is a call, use the number of actuals to determine whether this is
4076 a binary or unary operator, rather than relying on later information
4077 to resolve the overload.
4079 2010-06-22 Robert Dewar <dewar@adacore.com>
4081 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
4083 2010-06-22 Robert Dewar <dewar@adacore.com>
4085 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
4086 * sem_eval.adb: Minor reformatting.
4088 2010-06-22 Vincent Celier <celier@adacore.com>
4090 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
4091 to gnatlink, except on Open VMS.
4092 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
4093 object directories if -nostdlib is used.
4095 2010-06-22 Robert Dewar <dewar@adacore.com>
4097 * sem_util.adb (Is_Delegate): Put in proper alpha order.
4098 * sem_eval.adb: Minor reformatting.
4100 2010-06-22 Robert Dewar <dewar@adacore.com>
4102 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
4103 * exp_aggr.adb: Minor comment changes and reformatting.
4104 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
4105 * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
4107 2010-06-22 Thomas Quinot <quinot@adacore.com>
4109 * sem_util.adb (Build_Actual_Subtype): Record original expression in
4110 Related_Expression attribute of the constructed subtype.
4111 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
4112 Node24 on types for...
4113 (Related_Expression): Make attribute available on types as well.
4115 2010-06-22 Gary Dismukes <dismukes@adacore.com>
4117 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
4118 Directly_Designated_Type when the type argument is an access type.
4119 (Find_Interface_Tag): Retrieve Designated_Type instead of
4120 Directly_Designated_Type when the type argument is an access type.
4121 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
4122 Directly_Designated_Type of each access discriminant.
4123 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
4124 instead of Directly_Designated_Type when the operand and target types
4127 2010-06-22 Thomas Quinot <quinot@adacore.com>
4129 * exp_aggr.adb (Flatten): Return False if one choice is statically
4130 known to be out of bounds.
4132 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4134 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
4135 a parameterless function call, preserve parentheses of original
4136 expression, for proper handling by pretty printer.
4137 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
4138 procedure, to handle quietly identifiers that have no entity names.
4139 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
4140 elsif_part is missing, it has been rewritten as a nested if, and there
4141 is no useful information on the current value of the variable.
4143 2010-06-22 Gary Dismukes <dismukes@adacore.com>
4145 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
4146 discriminals to the current scope.
4147 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
4148 scope, which could overwrite a different already set value.
4150 2010-06-22 Ed Schonberg <schonberg@adacore.com>
4152 * sem_res.adb (Valid_Conversion): If expression is a predefined
4153 operator, use sloc of type of interpretation to improve error message
4154 when operand is of some derived type.
4155 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
4157 2010-06-22 Emmanuel Briot <briot@adacore.com>
4159 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
4160 that it can set out parameters as well. When a process has died, reset
4161 its Input_Fd to Invalid_Fd, so that when using multiple processes we
4162 can find out which process has died.
4164 2010-06-22 Thomas Quinot <quinot@adacore.com>
4166 * sem_eval.adb (Find_Universal_Operator_Type): New
4167 subprogram to identify the operand type of an operator on universal
4168 operands, when an explicit scope indication is present. Diagnose the
4169 case where such a call is ambiguous.
4170 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
4171 Use the above to identify the operand type so it can be properly frozen.
4172 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
4173 type, done in an arbitrary, possibly incorrect type (the presence of
4174 some numeric type in the scope is checked for legality, but when more
4175 than one such type is in the scope, we just pick a random one, not
4176 necessarily the expected one).
4177 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
4180 2010-06-22 Robert Dewar <dewar@adacore.com>
4182 * sem_eval.adb: Minor reformatting.
4184 2010-06-22 Robert Dewar <dewar@adacore.com>
4186 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
4187 Expression_With_Actions to clean up the code generated when folding
4188 constant expressions.
4190 2010-06-22 Vincent Celier <celier@adacore.com>
4192 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
4195 2010-06-22 Vincent Celier <celier@adacore.com>
4197 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
4198 found, check if it's path has aready been found, whatever its index.
4200 2010-06-22 Robert Dewar <dewar@adacore.com>
4202 * atree.adb, gnatbind.adb: Minor reformatting.
4203 Minor code reorganization.
4205 2010-06-21 Robert Dewar <dewar@adacore.com>
4207 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
4208 known at compile time.
4210 2010-06-21 Gary Dismukes <dismukes@adacore.com>
4212 * atree.adb: Fix comment typo.
4214 2010-06-21 Ed Schonberg <schonberg@adacore.com>
4216 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
4217 whether a universal arithmetic expression in a conversion, which is
4218 rewritten from a function call with an expanded name, is ambiguous.
4220 2010-06-21 Vincent Celier <celier@adacore.com>
4222 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
4223 source files in specified list of sources.
4224 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
4226 (Add_Source): Set the Location of the new source
4227 (Process_Exceptions_File_Based): Call Add_Source with the Location
4228 (Get_Sources_From_File): If an exception is found, set its Listed to
4230 (Find_Sources): When Source_Files is specified, if an exception is
4231 found, set its Listed to True. Remove any exception that is not in a
4232 specified list of sources.
4233 * prj.ads (Source_Data): New component Location
4235 2010-06-21 Vincent Celier <celier@adacore.com>
4237 * gnatbind.adb (Closure_Sources): Global table, moved from block.
4239 2010-06-21 Thomas Quinot <quinot@adacore.com>
4241 * sem_res.adb: Minor reformatting.
4242 * atree.adb: New debugging hook "rr" for node rewrites.
4244 2010-06-21 Robert Dewar <dewar@adacore.com>
4246 * g-expect.ads, g-expect.adb: Minor reformatting.
4248 2010-06-21 Emmanuel Briot <briot@adacore.com>
4250 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
4252 2010-06-21 Arnaud Charlet <charlet@adacore.com>
4254 * gcc-interface/Make-lang.in: Update dependencies.
4256 2010-06-21 Thomas Quinot <quinot@adacore.com>
4258 * bindgen.ads: Update comments.
4260 2010-06-21 Vincent Celier <celier@adacore.com>
4262 * gnatbind.adb: Suppress dupicates when listing the sources in the
4263 closure (switch -R).
4265 2010-06-21 Emmanuel Briot <briot@adacore.com>
4267 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
4270 2010-06-21 Emmanuel Briot <briot@adacore.com>
4272 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
4274 (Expect_Internal): No longer raises an exception, so that it can set
4275 out parameters as well. When a process has died, reset its Input_Fd
4276 to Invalid_Fd, so that when using multiple processes we can find out
4277 which process has died.
4279 2010-06-21 Robert Dewar <dewar@adacore.com>
4281 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
4282 checks.adb, sem_res.adb: Minor reformatting. Add comments.
4284 2010-06-21 Ed Schonberg <schonberg@adacore.com>
4286 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
4287 rederivation associated with a full declaration in a private part, and
4288 there is a partial view that derives the same parent subprogram, the
4289 new entity does not become visible. This check must be applied to
4290 interface operations as well.
4292 2010-06-21 Thomas Quinot <quinot@adacore.com>
4294 * checks.adb: Add comments.
4295 * prj-nmsc.adb: Minor reformatting.
4297 2010-06-21 Thomas Quinot <quinot@adacore.com>
4299 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
4300 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
4301 extract bounds, to ensure that we get the proper captured values,
4302 rather than an expression that may have changed value since the point
4303 where the subtype was elaborated.
4304 (Find_Body_Discriminal): New utility subprogram to share code between...
4305 (Eval_Attribute): For the case of a subtype bound that references a
4306 discriminant of the current concurrent type, insert appropriate
4307 discriminal reference.
4308 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
4309 requeue to an entry in a family in the current task, use corresponding
4311 (Analyze_Accept_Statement): Rely on expansion of attribute references
4312 to insert proper discriminal references in range check for entry in
4315 2010-06-21 Emmanuel Briot <briot@adacore.com>
4317 * s-regpat.adb (Compile): Fix handling of big patterns.
4319 2010-06-21 Robert Dewar <dewar@adacore.com>
4321 * a-tifiio.adb: Minor reformatting.
4323 2010-06-21 Pascal Obry <obry@adacore.com>
4325 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
4328 2010-06-21 Javier Miranda <miranda@adacore.com>
4330 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
4333 2010-06-21 Ed Schonberg <schonberg@adacore.com>
4335 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
4336 to hold the result, indicate that the target of the declaration does
4337 not need an initialization, to prevent spurious errors when
4338 Initialize_Scalars is enabled.
4340 2010-06-21 Ed Schonberg <schonberg@adacore.com>
4342 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
4343 Fore is not bound by line length. The Fore parameter of the internal
4344 procedure that performs the operation is an integer.
4346 2010-06-21 Thomas Quinot <quinot@adacore.com>
4348 * sem_res.adb, checks.adb: Minor reformatting.
4350 2010-06-21 Emmanuel Briot <briot@adacore.com>
4352 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
4354 (Insert_Operator_Before): New subprogram, avoids duplicated code
4355 (Compile): Avoid doing two compilations when the pattern matcher ends
4358 2010-06-21 Emmanuel Briot <briot@adacore.com>
4360 * s-regpat.adb: Improve debug traces
4361 (Dump): Change output format to keep it smaller.
4363 2010-06-21 Javier Miranda <miranda@adacore.com>
4365 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
4366 output to the output file when this routine completes its work.
4368 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
4370 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
4371 for loop. Call build_constructor_from_list directly in the CICO case.
4373 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4375 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
4376 declaration appears in the same unit and ealier than the renamed
4377 entity, retain generated body to prevent order-of-elaboration issues in
4380 2010-06-18 Arnaud Charlet <charlet@adacore.com>
4382 * s-tpoben.adb: Update comments.
4384 2010-06-18 Robert Dewar <dewar@adacore.com>
4386 * debug.adb: Minor comment change.
4388 2010-06-18 Javier Miranda <miranda@adacore.com>
4390 * exp_cg.adb: Code clean up.
4391 * debug.adb: Complete documentation of switch -gnatd.Z.
4392 * gcc-interface/misc.c (callgraph_info_file): Declare.
4394 2010-06-18 Javier Miranda <miranda@adacore.com>
4396 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
4398 2010-06-18 Thomas Quinot <quinot@adacore.com>
4400 * sprint.ads: Minor reformatting.
4401 * output.ads: Update obsolete comment.
4403 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4405 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
4406 an external intrinsic operation (e.g. a GCC numeric function) indicate
4407 that the renaming entity has the same characteristics, so a call to it
4408 is properly expanded.
4410 2010-06-18 Javier Miranda <miranda@adacore.com>
4412 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
4413 support for dispatch table/callgraph info generation.
4414 * gcc-interface/Make-lang.in: Update dependencies.
4416 2010-06-18 Robert Dewar <dewar@adacore.com>
4418 * exp_ch6.adb: Minor reformatting.
4419 * gnatname.adb: Add comment.
4421 2010-06-18 Vincent Celier <celier@adacore.com>
4423 * gnatname.adb (Scan_Args): When --and is used, make sure that the
4424 dynamic tables in the newly allocated Argument_Data are properly
4427 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
4429 * gnat1drv.adb: Fix comment.
4431 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4433 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
4434 renaming, re-expand the call with the renamed subprogram if that one
4435 is marked inlined as well.
4437 2010-06-18 Gary Dismukes <dismukes@adacore.com>
4439 * gnat1drv.adb (Adjust_Global_Switches): Enable
4440 Use_Expression_With_Actions for AAMP and VM targets.
4442 2010-06-18 Vincent Celier <celier@adacore.com>
4444 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
4446 2010-06-18 Thomas Quinot <quinot@adacore.com>
4448 * exp_ch4.adb: Minor reformatting.
4450 2010-06-18 Javier Miranda <miranda@adacore.com>
4452 * debug.ads Add documentation on -gnatd.Z.
4454 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4456 * sem_elim.adb: Proper error message on improperly eliminated instances
4458 2010-06-18 Vincent Celier <celier@adacore.com>
4460 * prj.ads (Response_File_Format): New value GCC.
4462 2010-06-18 Thomas Quinot <quinot@adacore.com>
4464 * gnat1drv.adb: Minor reformatting.
4466 2010-06-18 Robert Dewar <dewar@adacore.com>
4468 * make.adb, sem_cat.adb: Minor reformatting.
4469 * sem_eval.adb: Fix typos.
4471 2010-06-18 Pascal Obry <obry@adacore.com>
4473 * prj-nmsc.adb: Fix source filenames casing in debug output.
4475 2010-06-18 Robert Dewar <dewar@adacore.com>
4477 * gnatcmd.adb: Minor reformatting.
4479 2010-06-18 Robert Dewar <dewar@adacore.com>
4481 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
4482 condition and both sub-expressions are static (and result is selected
4485 2010-06-18 Robert Dewar <dewar@adacore.com>
4487 * g-pehage.adb: Minor reformatting
4489 2010-06-18 Pascal Obry <obry@adacore.com>
4491 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
4494 2010-06-18 Arnaud Charlet <charlet@adacore.com>
4496 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4497 dependencies. Fix target pairs on darwin.
4498 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
4500 2010-06-18 Pascal Obry <obry@adacore.com>
4502 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
4504 2010-06-18 Vincent Celier <celier@adacore.com>
4506 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
4507 configuration pragmas file and, if -U is not used, for a local one.
4509 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4511 * sem_elim.adb (Check_Eliminated): Use full information on entity name
4512 when it is given in the pragma by a selected component.
4513 (Check_For_Eliminated_Subprogram): Do no emit error if within a
4514 instance body that is itself within a generic unit.
4515 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
4516 eliminated, mark as well the anonymous subprogram that is its alias
4517 and appears within the wrapper package.
4519 2010-06-18 Bob Duff <duff@adacore.com>
4521 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
4522 Raise an exception if the output file cannot be opened. Add comments.
4524 2010-06-18 Thomas Quinot <quinot@adacore.com>
4526 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
4527 not illegal per E.2.2(7) if it occurs in the private part of a
4530 2010-06-18 Arnaud Charlet <charlet@adacore.com>
4532 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
4533 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
4534 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
4535 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
4536 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
4537 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
4538 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
4539 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
4540 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
4541 errout.ads: Update comments. Minor reformatting.
4543 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
4544 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
4545 a-strunb.adb (Big_String. Big_String_Access): New type.
4547 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
4548 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
4549 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
4551 2010-06-18 Geert Bosch <bosch@adacore.com>
4553 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
4556 2010-06-18 Robert Dewar <dewar@adacore.com>
4558 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
4561 2010-06-18 Robert Dewar <dewar@adacore.com>
4563 * sprint.adb: Minor format change for N_Expression_With_Actions.
4564 * repinfo.adb: Minor reformatting.
4566 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4568 * sem_elim.adb (Check_Eliminated): If within a subunit, use
4569 Defining_Entity to obtain the name of the entity in the proper body, to
4570 properly handle both separate packages and subprograms.
4572 2010-06-18 Emmanuel Briot <briot@adacore.com>
4574 * prj-nmsc.adb (Check_File): New parameter Display_Path.
4576 2010-06-18 Thomas Quinot <quinot@adacore.com>
4578 * g-socket.adb, g-socket.ads (Null_Selector): New object.
4580 2010-06-18 Pascal Obry <obry@adacore.com>
4582 * gnat_ugn.texi: Minor clarification.
4584 2010-06-18 Emmanuel Briot <briot@adacore.com>
4586 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
4587 code when using the project dir as the source dir.
4588 (Search_Directories): use the normalized name for the source directory,
4589 where symbolic names have potentially been resolved.
4591 2010-06-18 Robert Dewar <dewar@adacore.com>
4593 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
4594 when we create N_Expression_With_Actions node.
4595 (Expand_Short_Circuit): Ditto.
4597 2010-06-18 Robert Dewar <dewar@adacore.com>
4599 * exp_util.adb: Minor reformatting.
4601 2010-06-18 Thomas Quinot <quinot@adacore.com>
4603 * types.ads: Clean up obsolete comments
4604 * tbuild.adb: Minor reformatting.
4605 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
4606 exp_strm.adb, aa_drive.adb: Minor reformatting.
4607 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
4608 intrinsic with an Interface_Name denotes an imported back-end builtin,
4609 and must be rewritten into a call, not left in the tree as an operator,
4610 so return False in that case.
4612 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
4614 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
4616 2010-06-18 Robert Dewar <dewar@adacore.com>
4618 * scos.ads: Add proposed output for case expression
4620 2010-06-18 Jose Ruiz <ruiz@adacore.com>
4622 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
4623 RTSS modules, we need to use the Microsoft linker.
4625 2010-06-18 Robert Dewar <dewar@adacore.com>
4627 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
4628 expression (cannot count on a particular branch being executed).
4629 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
4630 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
4631 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
4632 within case expression.
4633 * expander.adb (Expand): Add call to Expand_N_Case_Expression
4634 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
4635 (P_Case_Expression): New procedure
4636 (P_Case_Expression_Alternative): New procedure
4637 * par.adb (P_Case_Expression): New procedure
4638 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
4640 * sem.adb (Analyze): Add call to Analyze_Case_Expression
4641 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
4642 this is a documentation change only.
4643 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
4644 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
4646 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
4647 * sem_res.adb (Resolve_Case_Expression): New procedure.
4648 * sem_scil.adb (Find_SCIL_Node): Add processing for
4649 N_Case_Expression_Alternative.
4650 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
4651 (N_Case_Expression_Alternative): New node.
4652 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
4653 N_Case_Expression and N_Case_Expression_Alternative.
4655 2010-06-18 Robert Dewar <dewar@adacore.com>
4657 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
4658 * gnat1drv.adb: Fix typo.
4660 2010-06-18 Robert Dewar <dewar@adacore.com>
4662 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
4664 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
4665 gnat style for -gnatg.
4666 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
4668 2010-06-18 Thomas Quinot <quinot@adacore.com>
4670 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
4672 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
4675 2010-06-18 Robert Dewar <dewar@adacore.com>
4677 * sprint.adb: Minor change in output format for expression wi actions.
4678 * par-ch3.adb: Minor code reorganization. Minor reformatting.
4679 * sem_ch5.adb: Minor comment fix.
4681 2010-06-18 Robert Dewar <dewar@adacore.com>
4683 * debug.adb: New debug flag -gnatd.L to control
4684 Back_End_Handles_Limited_Types.
4685 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
4686 limited case if Back_End_Handles_Limited_Types is True.
4687 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
4688 simplify expansion if Use_Expression_With_Actions is True.
4689 * gnat1drv.adb (Adjust_Global_Switches): Set
4690 Back_End_Handles_Limited_Types.
4691 * opt.ads (Back_End_Handles_Limited_Types): New flag.
4693 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4695 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
4696 intrinsic operator if expansion is not enabled, because in an
4697 instantiation the original operator must be present to verify the
4698 legality of the operation.
4700 2010-06-18 Robert Dewar <dewar@adacore.com>
4702 * exp_disp.adb, sem_ch12.adb: Minor reformatting
4704 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4706 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
4707 the class-wide type for a private extension, and the completion is a
4708 subtype, set the type of the class-wide type to the base type of the
4711 2010-06-18 Robert Dewar <dewar@adacore.com>
4713 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
4714 sem_intr.adb, sem_eval.adb: Minor reformatting
4716 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4718 * sem_type.adb (Is_Ancestor): If either type is private, examine full
4721 2010-06-18 Thomas Quinot <quinot@adacore.com>
4723 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
4724 parameter rather than IN OUT.
4726 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4728 * exp_ch6.adb: Add extra guard.
4730 2010-06-18 Gary Dismukes <dismukes@adacore.com>
4732 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
4733 accessibility level of a function call from the level of the innermost
4734 enclosing dynamic scope.
4735 (Innermost_Master_Scope_Depth): New function to find the depth of the
4736 nearest dynamic scope enclosing a node.
4738 2010-06-18 Tristan Gingold <gingold@adacore.com>
4740 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
4742 2010-06-18 Thomas Quinot <quinot@adacore.com>
4744 * g-socket.ads: Minor reformatting.
4746 2010-06-18 Vincent Celier <celier@adacore.com>
4748 * make.adb (Must_Compile): New Boolean global variable
4749 (Main_On_Command_Line): New Boolean global variable
4750 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
4751 even when the project is externally built.
4752 (Start_Compile_If_Possible): Compile in -aL directories if
4753 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
4754 when the project is externally built.
4755 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
4756 invoked with -f -u and one or several mains on the command line.
4757 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
4758 is specified on the command line.
4760 2010-06-18 Ed Schonberg <schonberg@adacore.com>
4762 * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
4763 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
4764 containing extented_return statements.
4765 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
4766 constrained, do not build subtype declaration.
4768 2010-06-18 Robert Dewar <dewar@adacore.com>
4770 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
4771 Warn on assigning to packed atomic component.
4773 2010-06-18 Robert Dewar <dewar@adacore.com>
4775 * sem_util.ads: Minor reformatting
4776 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
4777 Expression_With_Actions).
4778 * snames.ads-tmpl: Minor comment fix
4780 2010-06-18 Robert Dewar <dewar@adacore.com>
4782 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
4783 (Set_Imported): Use Import_Interface_Present to control message output
4784 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
4785 * gnat_rm.texi: Document that we can have pragma Import and pragma
4786 Interface for the same subprogram.
4788 2010-06-18 Robert Dewar <dewar@adacore.com>
4790 * lib-xref.adb (Generate_Reference): Fix bad reference to
4791 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
4793 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
4795 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
4797 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
4798 Use set_gnu_expr_location_from_node to set location information on the
4801 2010-06-17 Arnaud Charlet <charlet@adacore.com>
4803 * gcc-interface/Make-lang.in: Update dependencies.
4805 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4807 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
4810 2010-06-17 Robert Dewar <dewar@adacore.com>
4812 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
4813 style check messages.
4814 * sem_res.adb (Resolve_Call): Don't call
4815 Check_For_Eliminated_Subprogram if we are analyzing within a spec
4818 2010-06-17 Robert Dewar <dewar@adacore.com>
4820 * debug.adb: Add documentation for debug flags .X and .Y
4821 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
4822 Use_Expression_With_Actions.
4823 * gnat1drv.adb (Adjust_Global_Switches): Set
4824 Use_Expression_With_Actions.
4825 * opt.ads (Use_Expression_With_Actions): New switch.
4827 2010-06-17 Robert Dewar <dewar@adacore.com>
4829 * exp_intr.adb: Minor code reorganization (use UI_Max)
4830 * sem_intr.adb: use underlying type to check legality.
4831 * einfo.adb (Known_Static_Esize): False for generic types
4832 (Known_Static_RM_Size): False for generic types
4833 * einfo.ads (Known_Static_Esize): False for generic types
4834 (Known_Static_RM_Size): False for generic types
4836 2010-06-17 Robert Dewar <dewar@adacore.com>
4838 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
4840 2010-06-17 Robert Dewar <dewar@adacore.com>
4842 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
4843 node when expanding short circuit form with actions present for right
4845 * exp_ch4.adb: Minor reformatting
4846 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
4847 right opeand has actions present, and debug flag -gnatd.X is set.
4848 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
4850 * nlists.adb (Prepend_List): New procedure
4851 (Prepend_List_To): New procedure
4852 * nlists.ads (Prepend_List): New procedure
4853 (Prepend_List_To): New procedure
4854 * sem.adb: Add processing for Expression_With_Actions
4855 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
4856 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
4857 * sem_res.adb: Add processing for Expression_With_Actions.
4858 * sem_scil.adb: Add processing for Expression_With_Actions
4859 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
4860 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
4862 2010-06-17 Doug Rupp <rupp@adacore.com>
4864 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
4865 involved both have underlying integer types.
4866 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
4867 to an intrinsic operator when the operand types or sizes are not
4869 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
4870 64/32 Address/Integer works.
4872 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4874 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
4875 that it marks a unit as needed by a spec only if the corresponding
4876 instantiation appears in that spec (and not in the corresponding body).
4877 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
4878 in the pragma Eliminate has been parsed as a child unit, but the
4879 current compilation unit is in fact the parent in which the subunit is
4882 2010-06-17 Vincent Celier <celier@adacore.com>
4884 * gnat_rm.texi: Fix typo
4886 2010-06-17 Robert Dewar <dewar@adacore.com>
4888 * sem_util.adb: Minor reformatting
4890 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4892 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
4893 instance, the clause now denotes the instance body. Traverse the
4894 corresponding spec because there may be no other dependence that will
4895 force the traversal of its own context.
4897 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4899 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
4900 Install_Limited_Context_Clauses, to determine whether a limited_with in
4901 some parent of the current unit designates some other parent, in which
4902 case the limited_with clause must not be installed.
4903 (In_Context): Refine test.
4905 2010-06-17 Gary Dismukes <dismukes@adacore.com>
4907 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
4908 type with a dispatching equality operator that is overridden (for a
4909 tagged full type), don't include the overridden equality in the list of
4910 primitives. The overridden equality is detected by testing for an
4911 Aliased field that references the overriding equality.
4913 2010-06-17 Robert Dewar <dewar@adacore.com>
4915 * freeze.adb: Minor reformatting.
4917 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
4919 * gnat_ugn.texi: Add a section introducing gdbserver.
4921 2010-06-17 Thomas Quinot <quinot@adacore.com>
4923 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
4926 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4928 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
4929 constrained discriminated parent that is a private type.
4930 (Analyze_Record_Aggregate): when collecting inherited discriminants,
4931 handle properly an ancestor type that is a constrained private type.
4933 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4935 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
4936 protected, use the protected_subprogram_body only if the original
4937 subprogram has not been eliminated.
4939 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4941 * freeze.adb (Freeze_Expression): The designated type of an
4942 access_to_suprogram type can only be frozen if all types in its profile
4945 2010-06-17 Robert Dewar <dewar@adacore.com>
4947 * par.adb: Minor comment fix
4948 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
4950 2010-06-17 Doug Rupp <rupp@adacore.com>
4952 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
4953 change Address to Short_Address in functions where both must be the
4954 same size for intrinsics to work.
4956 2010-06-17 Thomas Quinot <quinot@adacore.com>
4958 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
4959 not denote a (private) component of a protected object.
4961 2010-06-17 Bob Duff <duff@adacore.com>
4963 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
4966 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
4968 * gnat_ugn.texi: Update the documentation about GDB re: exception
4971 2010-06-17 Arnaud Charlet <charlet@adacore.com>
4973 * gnatvsn.ads: Bump to 4.6 version.
4975 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4977 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
4978 designated type of the generated pointer is the type of the original
4979 expression, not that of the function call itself, because the return
4980 type may be an untagged derived type and the function may be an
4981 inherited operation.
4983 2010-06-17 Robert Dewar <dewar@adacore.com>
4985 * exp_ch4.adb: Minor reformatting.
4987 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4989 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
4990 N_Component_Association nodes, to indicate that a component association
4991 of an extension aggregate denotes the value of a discriminant of an
4992 ancestor type that has been constrained by the derivation.
4993 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
4994 double expansion of the aggregate appearing in a context that delays
4995 expansion, to prevent double insertion of discriminant values when the
4996 aggregate is reanalyzed.
4998 2010-06-17 Arnaud Charlet <charlet@adacore.com>
5000 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
5001 Allocator as the Related_Node of Return_Obj_Access in call to
5002 Make_Temporary below as this would create a sort of infinite
5005 2010-06-17 Ben Brosgol <brosgol@adacore.com>
5007 * gnat_ugn.texi: Update gnatcheck doc.
5009 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5011 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
5012 incomplete view of the type that is not tagged, and the full type is a
5013 tagged extension, create class_wide type now, and warn that the
5014 incomplete view should be tagged as well.
5016 2010-06-17 Vincent Celier <celier@adacore.com>
5018 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
5019 Update the last line of the usage, indicating what commands do not
5020 accept project file switches.
5021 * vms_conv.adb: Do not issue usage line for GNAT SYNC
5022 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
5024 * gnat_ugn.texi: Document the relaxed rules for library directories in
5025 externally built library projects.
5027 2010-06-17 Doug Rupp <rupp@adacore.com>
5029 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
5031 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
5032 * gcc-interface/Makefile.in: Update VMS target pairs.
5034 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
5036 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
5037 compatible with Windows NT 4.0 which doesn't provide this function.
5039 2010-06-17 Vincent Celier <celier@adacore.com>
5041 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
5042 different timestamps but the checksum is the same, issue a short
5045 2010-06-17 Arnaud Charlet <charlet@adacore.com>
5047 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
5048 it means that we cannot reset interrupt handlers since this would
5049 require potentially sending the abort signal to the Server_Task.
5051 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5053 * exp_ch4.adb: expand NOT for VMS types.
5054 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
5056 2010-06-17 Sergey Rybin <rybin@adacore.com>
5058 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
5059 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
5062 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5064 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
5065 protected operation if the subprogram has been eliminated.
5067 2010-06-17 Vincent Celier <celier@adacore.com>
5069 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
5070 directories associated with a library to be any directory when the
5071 library project is externally built.
5073 2010-06-17 Vincent Celier <celier@adacore.com>
5075 * make.adb (Check): If switch -m is used, deallocate the memory that
5076 may be allocated when computing the checksum.
5078 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
5080 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
5081 (C_Sendmsg): Likewise.
5083 2010-06-17 Thomas Quinot <quinot@adacore.com>
5085 * sem_res.adb: Update comments.
5087 2010-06-17 Vincent Celier <celier@adacore.com>
5089 * back_end.adb (Scan_Compiler_Arguments): Process last argument
5091 2010-06-17 Robert Dewar <dewar@adacore.com>
5093 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
5094 * layout.adb, freeze.adb: Use Make_Temporary.
5096 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
5098 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
5099 .NET/JVM normally as this is now perfectly supported by the backend.
5101 2010-06-17 Pascal Obry <obry@adacore.com>
5103 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
5105 2010-06-17 Vincent Celier <celier@adacore.com>
5107 * make.adb (Collect_Arguments_And_Compile): Create include path file
5108 only when -x is specified.
5110 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
5112 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
5113 Objects_Path, defaulted to True. Only create include path file if
5114 Include_Path is True, only create objects path file if Objects_Path is
5116 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
5117 Objects_Path, defaulted to True.
5118 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
5121 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5123 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
5124 determine whether it has the controlling type, when the formal is an
5127 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
5129 * s-crtl.ads (ssize_t): New type.
5130 (read): Fix signature.
5132 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
5133 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
5134 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
5135 (C_Sendmsg): Likewise.
5136 * g-socthi.adb (Syscall_Recvmsg): Likewise.
5137 (Syscall_Sendmsg): Likewise.
5138 (C_Recvmsg): Likewise.
5139 (C_Sendmsg): Likewise.
5140 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
5141 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
5142 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
5143 (C_Sendmsg): Likewise.
5144 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
5145 (C_Sendmsg): Likewise.
5146 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
5147 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
5148 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
5149 (C_Sendmsg): Likewise.
5150 * g-socthi-vms.adb (C_Recvmsg): Likewise.
5151 (C_Sendmsg): Likewise.
5152 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
5153 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
5154 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
5155 (C_Sendmsg): Likewise.
5156 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
5157 (C_Sendmsg): Likewise.
5158 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
5159 (Write): Likewise to call 'write'.
5160 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
5161 (Write): Use correct type to call System.CRTL.write.
5162 * s-tasdeb.adb (Write): Likewise.
5164 2010-06-17 Vincent Celier <celier@adacore.com>
5166 * prj-proc.adb (Copy_Package_Declarations): Change argument name
5167 Naming_Restricted to Restricted. If Restricted is True, do not copy the
5168 value of attribute Linker_Options.
5170 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
5172 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
5173 (Case_Statement_to_gnu): Adjust.
5174 (Loop_Statement_to_gnu): Likewise.
5175 (Subprogram_Body_to_gnu): Likewise.
5176 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
5177 (Compilation_Unit_to_gnu): Likewise.
5179 2010-06-17 Robert Dewar <dewar@adacore.com>
5181 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
5182 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
5183 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
5184 sem_dist.adb, sem_util.adb: Use Make_Temporary
5185 * itypes.ads, tbuild.ads: Minor comment update
5186 * exp_ch9.adb, exp_dist.adb: Minor reformatting
5188 2010-06-17 Thomas Quinot <quinot@adacore.com>
5190 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
5192 2010-06-17 Robert Dewar <dewar@adacore.com>
5194 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
5196 2010-06-17 Thomas Quinot <quinot@adacore.com>
5198 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
5200 2010-06-17 Robert Dewar <dewar@adacore.com>
5202 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
5203 * tbuild.ads (Make_Temporary): More comment updates
5204 * tbuild.adb: Minor reformatting
5206 2010-06-17 Robert Dewar <dewar@adacore.com>
5208 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
5209 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
5211 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
5213 (Make_Temporary): Add more extensive documentation
5215 2010-06-17 Robert Dewar <dewar@adacore.com>
5217 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
5218 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
5219 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
5220 where the slice's actions are inserted.
5221 (Decompose_Expr): Account for possible rewriting of slice bounds
5222 resulting from side effects suppression caused by the above freezing,
5223 so that folding of bounds is preserved by such rewriting.
5225 2010-06-17 Robert Dewar <dewar@adacore.com>
5227 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
5228 * freeze.adb (Freeze_Record_Type): Add call to
5229 Check_Record_Representation_Clause.
5230 * sem_ch13.adb (Check_Record_Representation_Clause): New function
5231 (Analyze_Record_Representation_Clause): Split out overlap code into this
5233 (Check_Component_Overlap): Moved inside
5234 Check_Record_Representation_Clause.
5235 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
5237 2010-06-17 Robert Dewar <dewar@adacore.com>
5239 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
5241 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
5242 sem_eval.adb: Use Ekind_In
5244 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5246 * sem_ch8.adb: better error message for illegal inherited discriminant
5248 2010-06-17 Vincent Celier <celier@adacore.com>
5250 * bindusg.adb: Remove lines for -A and -C
5251 * gnat_ugn.texi: Remove all documentation and examples of switches -A
5252 and -C for gnatbind and gnatlink.
5253 * gnatlink.adb (Usage): Remove lines for -A and -C
5254 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
5256 * gcc-interface/Make-lang.in: Update dependencies.
5258 2010-06-17 Vincent Celier <celier@adacore.com>
5260 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
5261 local Argument_List variable Args.
5262 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
5264 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
5265 for subsequent switches in Args.
5266 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
5268 * gcc-interface/Make-lang.in: Update dependencies.
5270 2010-06-17 Robert Dewar <dewar@adacore.com>
5272 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
5273 Equivalent_Type to match documentation.
5275 2010-06-17 Robert Dewar <dewar@adacore.com>
5277 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
5278 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
5279 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
5281 2010-06-17 Thomas Quinot <quinot@adacore.com>
5283 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
5285 2010-06-17 Thomas Quinot <quinot@adacore.com>
5287 * freeze.adb (Freeze_Expression): Short circuit operators are valid
5288 freeze node insertion points.
5290 2010-06-17 Robert Dewar <dewar@adacore.com>
5292 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
5293 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
5295 2010-06-17 Gary Dismukes <dismukes@adacore.com>
5297 * layout.adb (Layout_Type): Broaden test for setting an array type's
5298 Component_Size to include all scalar types, not just discrete types
5299 (components of real types were missed).
5300 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
5301 on the itype created for an index (consistent with Make_Index and
5302 avoids possible Assert_Failures).
5304 2010-06-17 Robert Dewar <dewar@adacore.com>
5306 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
5307 * einfo.adb: Minor code reformatting (use Ekind_In)
5309 2010-06-17 Robert Dewar <dewar@adacore.com>
5311 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
5314 2010-06-17 Vincent Celier <celier@adacore.com>
5316 * back_end.adb: Minor comment updates
5317 * switch-c.adb: Remove dependencies on gcc C sources
5318 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
5321 2010-06-17 Ed Schonberg <schonberg@adacore.com>
5323 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
5324 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
5325 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
5326 Remove use of Node field in SCOs table
5327 (Output_Header): Set 'd' to initially disable pragma entry
5328 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
5329 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
5330 Use C2 field of pragma decision header to indicate enabled.
5331 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
5332 * gcc-interface/Make-lang.in: Update dependencies.
5334 2010-06-17 Vincent Celier <celier@adacore.com>
5336 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
5337 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
5338 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
5339 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
5341 * switch-c.adb: Copied a number of global declarations from back_end.adb
5342 (Len_Arg): New function copied from back_end.adb
5343 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
5344 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
5345 Switch_Subsequently_Cancelled.
5346 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
5347 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
5348 with -lexc on Tru64.
5350 2010-06-17 Robert Dewar <dewar@adacore.com>
5352 * prj.ads, prj.adb: Minor reformatting
5354 2010-06-17 Thomas Quinot <quinot@adacore.com>
5356 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
5357 CP line for a disabled pragma.
5359 2010-06-17 Emmanuel Briot <briot@adacore.com>
5361 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
5363 (Process_Declarative_Item): An invalid value in an typed variable
5364 declaration is no longer always fatal.
5366 2010-06-16 Arnaud Charlet <charlet@adacore.com>
5368 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
5369 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
5372 2010-06-16 Javier Miranda <miranda@adacore.com>
5374 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
5375 node referenced by the SCIL node of dispatching "=" to skip the tags
5378 2010-06-16 Ed Schonberg <schonberg@adacore.com>
5380 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
5381 to prevent cascaded errors and compilation aborts.
5383 2010-06-16 Robert Dewar <dewar@adacore.com>
5385 * back_end.adb (Switch_Subsequently_Cancelled): New function
5386 Move declarations to package body level to support this change
5387 * back_end.ads (Switch_Subsequently_Cancelled): New function
5388 * gnat_ugn.texi: Document -gnat-p switch
5389 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
5390 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
5391 * usage.adb: Add line for -gnat-p switch
5392 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
5394 2010-06-16 Robert Dewar <dewar@adacore.com>
5396 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
5399 2010-06-16 Robert Dewar <dewar@adacore.com>
5401 * exp_disp.adb: Minor reformatting
5403 2010-06-16 Ed Schonberg <schonberg@adacore.com>
5405 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
5406 base type only if it was not previously created for the partial view.
5408 2010-06-16 Thomas Quinot <quinot@adacore.com>
5410 * tbuild.ads: Minor comment fix
5412 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
5414 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
5415 (gnu_except_ptr_stack): Change type to VEC. Update comment.
5416 (gnu_elab_proc_stack): Likewise.
5417 (gnu_return_label_stack): Likewise.
5418 (gnu_loop_label_stack): Likewise.
5419 (gnu_switch_label_stack): Likewise.
5420 (gnu_constraint_label_stack): Likewise.
5421 (gnu_storage_error_label_stack): Likewise.
5422 (gnu_program_error_label_stack): Likewise.
5423 (push_exception_label_stack): Take a VEC ** instead of a tree *.
5424 (push_stack): Likewise. Remove unused second parameter. Update
5426 (pop_stack): Take a VEC * instead of a tree *. Update callers.
5427 (gigi): Initialize stacks as VECs.
5428 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
5429 (Case_Statement_to_gnu): Likewise.
5430 (Subprogram_Body_to_gnu): Likewise.
5431 (call_to_gnu): Likewise.
5432 (Exception_Handler_to_gnu_sjlj): Likewise.
5433 (gnat_to_gnu): Likewise.
5434 (get_exception_label): Likewise.
5436 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5438 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
5439 anonymous base generated when the parent is a constrained discriminated
5440 type, propagate interface list to first subtype because it may appear
5441 in a current instance within the extension part of the derived type
5442 declaration, and its own subtype declaration has not been elaborated
5444 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
5445 determine whether it has the controlling type.
5447 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
5449 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
5450 raise of CE, SE and PE have the reason correctly set and are properly
5451 expanded before stopping the expansions of .NET/JVM exceptions.
5453 2010-06-14 Robert Dewar <dewar@adacore.com>
5455 * opt.ads (Check_Policy_List): Add some clarifying comments
5456 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
5457 on rewritten Assert pragma.
5459 2010-06-14 Gary Dismukes <dismukes@adacore.com>
5461 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
5462 controlled operations, so that they will be treated as overriding even
5463 if the overridden subprogram is marked Is_Hidden, as long as the
5464 overridden subprogram's parent subprogram is not hidden.
5466 2010-06-14 Robert Dewar <dewar@adacore.com>
5468 * debug.adb: Entry for gnatw.d no longer specific for while loops
5469 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
5470 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
5471 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
5472 new calling sequence to include test for EXIT WHEN.
5473 (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
5474 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
5476 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
5478 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
5479 PRAGMA, not to pragma identifier).
5480 (Next_Exit_Statement): New attribute of N_Exit_Statement node
5482 2010-06-14 Robert Dewar <dewar@adacore.com>
5484 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
5487 2010-06-14 Robert Dewar <dewar@adacore.com>
5489 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
5490 missing pragma argument identifier.
5492 2010-06-14 Robert Dewar <dewar@adacore.com>
5494 * atree.ads, atree.adb (Ekind_In): New functions.
5496 2010-06-14 Robert Dewar <dewar@adacore.com>
5498 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
5500 2010-06-14 Robert Dewar <dewar@adacore.com>
5502 * usage.adb (Usage): Redo documentation of -gnatwa.
5504 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5506 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
5507 an untagged incomplete type that is a limited view.
5509 2010-06-14 Sergey Rybin <rybin@adacore.com>
5511 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
5514 2010-06-14 Thomas Quinot <quinot@adacore.com>
5516 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
5517 factoring duplicated code between...
5518 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
5519 * a-envvar.ads: Minor reformatting
5521 2010-06-14 Arnaud Charlet <charlet@adacore.com>
5523 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
5525 (Scan_ALI): Take into account new Visibility field.
5526 (Visibility_Kind): New type.
5527 (Xref_Entity_Record): Replace Lib field by Visibility.
5529 * gcc-interface/Make-lang.in: Update dependencies.
5531 2010-06-14 Pascal Obry <obry@adacore.com>
5533 * raise.h: Remove unused defintions.
5535 2010-06-14 Bob Duff <duff@adacore.com>
5537 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
5538 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
5539 the incorrect error "proper body expected".
5540 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
5541 allowed here" error in case of subunits, which was triggered by the
5542 above change to P_Subunit.
5544 2010-06-14 Sergey Rybin <rybin@adacore.com>
5546 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
5548 2010-06-14 Thomas Quinot <quinot@adacore.com>
5550 * lib-util.adb: Minor code reorganization.
5552 2010-06-14 Robert Dewar <dewar@adacore.com>
5554 * ali.adb (Scan_ALI): Implement reading and storing of N lines
5555 (Known_ALI_Lines): Add entry for 'N' (notes)
5556 * ali.ads (Notes): New table to store Notes information
5557 * alloc.ads: Add entries for Notes table
5558 * lib-util.adb (Write_Info_Int): New procedure
5559 (Write_Info_Slit): New procedure
5560 (Write_Info_Uint): New procedure
5561 * lib-util.ads (Write_Info_Int): New procedure
5562 (Write_Info_Slit): New procedure
5563 (Write_Info_Uint): New procedure
5564 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
5565 * lib-writ.ads: Update documentation for N (Notes) lines
5566 * lib.adb (Store_Note): New procedure
5567 * lib.ads (Notes): New table
5568 (Store_Note): New procedure
5569 * sem_prag.adb: Call Store_Note for affected pragmas
5571 2010-06-14 Thomas Quinot <quinot@adacore.com>
5573 * socket.c: Fix wrong condition in #ifdef
5574 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
5575 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
5576 because on VMS this type is a 32-bit pointer which is not compatible
5577 with the default for C pointers for code compiled with gcc on that
5580 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5582 * sem_util (Is_VMS_Operator): New predicate to determine whether an
5583 operator is an intrinsic operator declared in the DEC system extension.
5584 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
5585 if the operator is a VMS intrinsic.
5586 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
5587 constant-folded if the operands are signed and the operator is a VMS
5590 2010-06-14 Robert Dewar <dewar@adacore.com>
5592 * g-socket.adb, gnatcmd.adb: Minor reformatting.
5594 2010-06-14 Pascal Obry <obry@adacore.com>
5596 * s-finimp.adb: Fix typo.
5597 * raise.h: Remove duplicate blank line.
5599 2010-06-14 Vincent Celier <celier@adacore.com>
5601 * prj-nmsc.adb (Add_Sources): Always set the object file and the
5602 switches file names, as the configuration of the language may change
5603 in an extending project.
5604 (Process_Naming_Scheme): For sources of projects that are extended, set
5605 the configuration of the language from the highest extending project
5606 where the language is declared.
5608 2010-06-14 Gary Dismukes <dismukes@adacore.com>
5610 * sem_res.adb (Resolve_Call): For infinite recursion check, test
5611 whether the called subprogram is inherited from a containing subprogram.
5612 (Same_Or_Aliased_Subprograms): New function
5614 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5616 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
5617 use-visible, check whether it is a primitive for more than one type.
5619 2010-06-14 Robert Dewar <dewar@adacore.com>
5621 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
5623 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
5624 Has_Pragma_Unmodified flag.
5626 2010-06-14 Thomas Quinot <quinot@adacore.com>
5628 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
5629 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
5630 now done in GNAT.Sockets if necessary.
5631 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
5632 Ensure mutual exclusion for netdb operations if the target platform
5634 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
5635 hostent as an opaque type to improve portability.
5636 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
5637 gethostbyYYY using proprietary VxWorks API so that a uniform interface
5638 is available for the Ada side.
5639 * gcc-interface/Makefile.in: Remove g-sttsne-*
5640 * gcc-interface/Make-lang.in: Update dependencies.
5642 2010-06-14 Vincent Celier <celier@adacore.com>
5644 * gnatcmd.adb (Mapping_File): New function.
5646 2010-06-14 Javier Miranda <miranda@adacore.com>
5648 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
5650 2010-06-14 Arnaud Charlet <charlet@adacore.com>
5652 * ali.adb: Fix typo.
5653 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
5655 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5657 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
5660 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
5661 the context does not have a homonym of the selector, emit default
5664 2010-06-14 Robert Dewar <dewar@adacore.com>
5666 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
5669 2010-06-14 Arnaud Charlet <charlet@adacore.com>
5671 * lib-xref.ads: Doc updates:
5672 - Allocate 'Q' for #include entity kind
5674 - Allocate 'g' for regular macros
5675 - Allocate 'G' for function-like macros
5677 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5679 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
5680 Indicates that there is an instantiation in the current unit that
5681 loaded the body of the unit denoted by the with_clause.
5682 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
5683 whether a with_clause in the current context denotes the unit that
5684 holds the generic declaration, and mark the with_clause accordingly.
5685 (Instantiate_Package_Body): call Mark_Context.
5686 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
5687 whether a given body should be traversed before the spec of the main
5690 2010-06-14 Ed Falis <falis@adacore.com>
5692 * sysdep.c: Fix 653 build against vThreads headers.
5694 2010-06-14 Robert Dewar <dewar@adacore.com>
5696 * sinfo.ads: Minor reformatting.
5698 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5700 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
5701 the spec has been generated for a body without spec that carries an
5702 Inline_Always pragma.
5704 2010-06-14 Arnaud Charlet <charlet@adacore.com>
5706 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
5709 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
5711 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
5712 declaration for VMs, as those are useless and might lead to duplicated
5713 local variable names in the generated code.
5714 * gcc-interface/Make-lang.in: Update dependencies.
5716 2010-06-14 Robert Dewar <dewar@adacore.com>
5718 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
5720 2010-06-14 Robert Dewar <dewar@adacore.com>
5722 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
5723 is renamed as Has_Following_Address_Clause.
5724 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
5725 to allow the caller to avoid Initialize_Scalars having an effect.
5726 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
5727 scalars with an address clause specified.
5728 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
5729 to allow the caller to avoid Initialize_Scalars having an effect.
5730 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
5731 (where it was called Has_Address_Clause).
5732 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
5733 (where it was called Has_Address_Clause).
5734 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
5735 problems for Initialize_Scalars (since we no longer initialize objects
5736 with an address clause.
5738 2010-06-14 Robert Dewar <dewar@adacore.com>
5740 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
5743 2010-06-14 Gary Dismukes <dismukes@adacore.com>
5745 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
5746 on the entity of an implicitly generated postcondition procedure.
5748 2010-06-14 Thomas Quinot <quinot@adacore.com>
5750 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
5751 Discriminant_Constraint elist from full view to private view.
5753 2010-06-14 Robert Dewar <dewar@adacore.com>
5755 * sem_res.adb: Minor reformatting.
5757 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5759 * sem.adb: New version of unit traversal.
5761 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
5762 within a generic unit in the table of delayed calls.
5764 2010-06-14 Robert Dewar <dewar@adacore.com>
5766 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
5768 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5770 * sem_ch12.adb (Save_References): If an identifier has been rewritten
5771 during analysis as an explicit dereference, keep the reference implicit
5772 in the generic, but preserve the entity if global. This prevents
5773 malformed generic trees in the presence of some nested generics.
5775 2010-06-14 Sergey Rybin <rybin@adacore.com>
5777 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
5778 tool with '-files=' option. Also fix some small errors (wrong brackets)
5780 2010-06-14 Vincent Celier <celier@adacore.com>
5782 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
5783 the ALI files on the command line.
5785 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
5786 the same value as the parameter of the same name.
5787 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
5789 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
5790 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
5791 emit version symbols only for the units of the library.
5792 (Gen_Versions_C): Ditto.
5794 2010-06-14 Gary Dismukes <dismukes@adacore.com>
5796 * sem_ch4.adb: Fix typo.
5798 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
5800 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
5801 vector IO doesn't work at default value properly.
5803 2010-06-14 Doug Rupp <rupp@adacore.com>
5805 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
5807 2010-06-14 Vincent Celier <celier@adacore.com>
5809 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
5810 sources of the project if a switch -files= is used.
5812 2010-06-14 Thomas Quinot <quinot@adacore.com>
5814 * exp_attr.adb: Minor reformatting.
5816 2010-06-14 Gary Dismukes <dismukes@adacore.com>
5818 * gnat_ugn.texi: Minor typo fixes and wording changes.
5820 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5822 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
5823 prefixed form, do not re-analyze first actual, which may need an
5824 implicit dereference.
5825 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
5826 prefixed notation, the analysis will rewrite the node, and possible
5827 errors appear in the rewritten name of the node.
5828 * sem_res.adb: If a call is ambiguous because its first parameter is
5829 an overloaded call, report list of candidates, to clarify ambiguity of
5832 2010-06-14 Doug Rupp <rupp@adacore.com>
5834 * s-auxdec-vms-alpha.adb: New package body implementing legacy
5835 VAX instructions with Asm insertions.
5836 * s-auxdec-vms_64.ads: Inline VAX queue functions
5837 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
5838 that show up only on VMS.
5839 * gcc-interface/Makefile.in: Provide translation for
5840 s-auxdec-vms-alpha.adb.
5842 2010-06-14 Olivier Hainque <hainque@adacore.com>
5844 * initialize.c (VxWorks section): Update comments.
5846 2010-06-14 Robert Dewar <dewar@adacore.com>
5848 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
5850 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
5852 * init.c: Code clean up.
5854 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5856 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
5857 not insert address clause in table for later validation if type of
5858 entity is generic, to prevent possible spurious errors.
5860 * sem_ch8.adb: Code clean up.
5862 2010-06-14 Ben Brosgol <brosgol@adacore.com>
5864 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
5865 texi2pdf and texi2html.
5866 Document how to change scheduling properties on HP-UX.
5868 2010-06-14 Thomas Quinot <quinot@adacore.com>
5870 * g-socket.ads: Remove misleading comments.
5872 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
5874 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
5875 CLI_Target as this prevents proper detection of exported names
5876 duplicates when the exported language is different to CIL.
5877 (Process_Interface_Name): Add check for CIL convention exports,
5878 replacing the old one from Check_Duplicated_Export_Name.
5880 2010-06-14 Matthew Heaney <heaney@adacore.com>
5882 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
5883 and new last satisfy constraints.
5884 (Delete_Last): prevent overflow for subtraction of index values
5885 (To_Vector): prevent overflow for addition of index values
5887 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5889 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
5890 rewritten call, preserve the resulting type to prevent spurious errors,
5891 when the call is implicitly dereferenced in the context of an in-out
5894 * checks.adb (Apply_Discriminant_Check): If the target of the
5895 assignment is a renaming of a heap object, create constrained type for
5898 2010-06-14 Pascal Obry <obry@adacore.com>
5900 * prj-proc.adb: Fix copy of object directory for extending projects.
5902 2010-06-14 Jose Ruiz <ruiz@adacore.com>
5904 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
5905 (__gnat_install_handler, PowerPC linux): Activate the alternative
5908 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
5910 * gnat_rm.texi: Move to GFDL version 1.3.
5911 * gnat-style.texi: Ditto.
5912 * gnat_ugn.texi: Ditto.
5914 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
5917 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
5920 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
5922 * gcc-interface/utils.c (update_pointer_to): Initialize last.
5924 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
5926 * gcc-interface/ada-tree.h: Fix formatting nits.
5928 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5930 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
5932 (init_dummy_type): Likewise.
5933 (gnat_pushlevel): Likewise.
5935 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
5936 (Subprogram_Body_to_gnu): Likewise.
5937 (Compilation_Unit_to_gnu): Likewise.
5938 (start_stmt_group): Likewise.
5939 (extract_encoding): Likewise.
5940 (decode_name): Likewise.
5942 * gcc-interface/misc.c (gnat_printable_name): Likewise.
5944 * gcc-interface/decl.c (annotate_value): Likewise.
5946 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
5948 (struct lang_decl): Likewise.
5949 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
5950 (SET_DECL_LANG_SPECIFIC): Likewise.
5952 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
5954 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
5955 * gcc-interface/lang-specs.h: Likewise.
5957 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
5960 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
5962 2010-06-01 Arnaud Charlet <charlet@adacore.com>
5964 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
5966 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
5968 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
5969 TYPE_DECL of the equivalent type instead of building a new one.
5971 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
5973 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
5974 Fix nits in comments.
5975 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
5976 * gcc-interface/trans.c (gigi): Likewise.
5977 (Attribute_to_gnu): Likewise.
5978 (Case_Statement_to_gnu): Likewise.
5979 (gnat_to_gnu): Adjust warning message.
5980 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
5981 (build_vms_descriptor32): Likewise.
5983 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
5985 * gcc-interface/decl.c: Pretend to be a backend file by undefining
5986 IN_GCC_FRONTEND (still need rtl.h here).
5988 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5990 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
5991 (gigi): Adjust call to set_stack_check_libfunc.
5993 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5995 * gcc-interface/utils.c: Do not include rtl.h.
5997 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5999 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
6000 and gimple.h. Explain why rtl.h has to be included.
6001 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
6002 * gcc-interface/targtyps.c: Do not include tm_p.h
6003 * gcc-interface/utils2.c: Do not include flags.h.
6004 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
6005 and explain why it has to be included.
6006 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
6008 Include function.h and explain why. Explain why except.h is included.
6009 (enumerate_modes): Remove unused function.
6010 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
6011 * gcc-interface/Make-lang.in: Update dependencies.
6013 2010-05-25 Joseph Myers <joseph@codesourcery.com>
6015 * gcc-interface/misc.c (internal_error_function): Add context
6016 parameter. Use it to access show_column flag and instead of using
6017 global_dc. Call warn_if_plugins.
6018 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
6020 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
6022 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
6023 * gcc-interface/trans.c (unshare_save_expr): Delete.
6024 (gigi): Do not unshare trees under SAVE_EXPRs here.
6026 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6028 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
6030 * gcc-interface/utils.c (build_function_stub): Likewise.
6032 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6034 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
6035 for Wuninitialized without -O.
6037 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6039 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
6040 ADT_exception_data_name_id.
6041 (exception_data_name_id): New define.
6042 * gcc-interface/trans.c (gigi): Initialize it.
6043 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
6044 exception type for standard exception definitions. Do not make them
6046 <E_Record_Type>: Equate fields of types associated with an exception
6047 definition to those of the standard exception type.
6049 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
6051 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
6053 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
6055 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
6056 code, improve comments and fix formatting nits.
6058 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
6060 * gcc-interface/utils.c (update_pointer_to): Return early if the old
6061 pointer already points to the new type. Chain the old pointer and its
6062 variants at the end of new pointer's chain after updating them.
6064 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
6066 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
6067 built for interfaces.
6068 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
6069 imported_p instead of Is_Imported when considering constants.
6070 Do not promote alignment of exported objects.
6071 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
6073 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6075 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
6076 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
6077 constants really constant.
6078 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
6080 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6082 * gcc-interface/decl.c (make_aligning_type): Declare the type.
6084 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6086 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
6087 expressions of variant part of record types declared at library level.
6089 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6091 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
6092 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
6093 (rest_of_record_type_compilation): Adjust call to create_field_decl.
6094 (make_descriptor_field): Likewise and pass correctly typed constants.
6095 (build_unc_object_type): Likewise.
6096 (unchecked_convert): Likewise.
6097 * gcc-interface/decl.c (elaborate_expression_2): New static function.
6098 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
6099 Adjust call to create_field_decl.
6100 (make_aligning_type): Likewise.
6101 (make_packable_type): Likewise.
6102 (maybe_pad_type): Likewise.
6103 (gnat_to_gnu_field): Likewise.
6104 (components_to_record): Likewise.
6105 (create_field_decl_from): Likewise.
6106 (create_variant_part_from): Remove superfluous test.
6107 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
6109 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6111 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
6112 (build_unc_object_type_from_ptr): Likewise.
6113 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
6114 and pass it to create_type_decl. Declare the type. Simplify.
6115 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
6116 it to build_unc_object_type.
6117 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
6118 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
6119 (gnat_to_gnu): Likewise.
6120 * gcc-interface/utils2.c (build_allocator): Likewise.
6122 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
6125 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
6127 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6129 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
6131 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
6134 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
6136 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
6138 * gnathtml.pl: Use 755 as mask for new directories.
6140 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
6142 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
6143 constant constructors before taking their address.
6145 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
6147 * exp_dbug.ads: Fix outdated description. Mention link between XVS
6149 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
6150 XVZ variable as unit size of XVS type.
6151 (maybe_pad_type): Likewise.
6153 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
6155 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
6156 use memmove if the array type is bit-packed.
6158 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
6160 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
6161 build_common_tree_nodes.
6163 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
6165 * gsocket.h: Make sure that winsock2.h is included before windows.h.
6167 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
6169 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
6172 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
6174 * uintp.h (UI_Lt): Declare.
6175 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
6176 computation in sizetype.
6177 <E_Array_Subtype>: Use unified handling for all index types. Do not
6178 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
6180 (annotate_value): Change test for negative values.
6181 (validate_size): Apply test for negative values on GNAT nodes.
6182 (set_rm_size): Likewise.
6183 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
6184 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
6185 for negative values.
6186 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
6187 (builtin_type_for_size): Adjust definition of signed_size_type_node.
6188 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
6189 lengths against zero.
6191 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
6193 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
6194 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
6195 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
6196 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
6197 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
6198 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
6200 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
6201 flag_signed_char. Tag sizetype with "size_type" moniker.
6202 * gcc-interface/trans.c (gigi): Add standard_character parameter.
6203 Remove useless built-in types. Equate unsigned_char_type_node to
6204 Standard.Character. Use it instead of char_type_node throughout.
6205 (Attribute_to_gnu): Likewise.
6206 (gnat_to_gnu): Likewise.
6207 * gcc-interface/utils2.c (build_call_raise): Likewise.
6209 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
6211 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
6212 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
6213 (sbitsize_one_node): New macro.
6214 (sbitsize_unit_node): Likewise.
6215 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
6216 latent bug in the computation of subrange_p. Fold wider_p predicate.
6217 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
6218 the final comparison.
6219 (make_aligning_type): Build real negation and use sizetype throughout
6220 the offset computation.
6221 (maybe_pad_type): Do not issue the warning when the new size expression
6223 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
6224 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
6226 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
6228 (gnat_to_gnu) <N_Free_Statement>: Likewise.
6229 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
6230 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
6231 constants in sizetype. Remove dead code and tweak comments. Generate
6232 equality instead of inequality comparisons for zero length tests.
6234 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6236 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
6237 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
6238 <object>: Do not create the fake PARM_DECL if no debug info is needed.
6239 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
6240 purposes if no debug info is needed.
6241 Fix formatting. Reorder and add comments.
6242 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
6243 variable and remove obsolete comment.
6244 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
6245 (convert_vms_descriptor32): Likewise.
6246 (convert): Remove dead code.
6247 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
6248 the reference to the P_ARRAY pointer.
6249 <POINTER_TYPE>: Likewise.
6250 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
6251 (gnat_init_decl_processing): Delete, move contents to...
6252 * gcc-interface/misc.c (gnat_init): ...here.
6254 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6256 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
6257 calls. Return true for conversion from a record subtype to its type.
6259 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6261 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
6262 lieu of integer_type_node for boolean operations.
6263 (choices_to_gnu): Likewise.
6264 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
6265 (Loop_Statement_to_gnu): Likewise.
6266 (establish_gnat_vms_condition_handler): Likewise.
6267 (Exception_Handler_to_gnu_sjlj): Likewise.
6268 (gnat_to_gnu): Likewise.
6269 (build_unary_op_trapv): Likewise.
6270 (build_binary_op_trapv): Likewise.
6271 (emit_range_check): Likewise.
6272 (emit_index_check): Likewise.
6273 (convert_with_check): Likewise.
6274 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
6275 (convert_vms_descriptor32): Likewise.
6276 (convert_vms_descriptor): Likewise.
6277 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
6278 (compare_arrays): Use boolean instead of integer constants.
6279 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
6280 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
6282 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
6283 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
6284 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
6285 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
6286 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
6287 for boolean operations.
6288 (fill_vms_descriptor): Likewise. Fix formatting nits.
6290 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6292 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
6293 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
6295 (LOOP_STMT_COND): ...this.
6296 (LOOP_STMT_BOTTOM_COND_P): New flag.
6297 (LOOP_STMT_TOP_UPDATE_P): Likewise.
6298 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
6299 (can_equal_min_val_p): New static inline function.
6300 (can_equal_max_val_p): Likewise.
6301 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
6302 new LOOP_STMT semantics. Use two different strategies depending on
6303 whether optimization is enabled to translate the loop.
6304 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
6306 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6308 * uintp.adb (UI_From_Dint): Remove useless code.
6309 (UI_From_Int): Likewise.
6310 * uintp.h: Reorder declarations.
6311 (UI_From_gnu): Declare.
6312 (UI_Base): Likewise.
6313 (Vector_Template): Likewise.
6314 (Vector_To_Uint): Likewise.
6317 * gcc-interface/gigi.h: Tweak comments.
6318 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
6319 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
6321 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
6322 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
6323 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
6324 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
6327 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
6329 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
6331 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
6332 (smaller_form_type_p): ...this. Change parameter and variable names.
6333 (call_to_gnu): Use the nominal type of the parameter to create the
6334 temporary if it's a smaller form of the actual type.
6335 (addressable_p): Return false if the actual type is integral and its
6336 size is greater than that of the expected type.
6338 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6340 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
6341 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
6342 (process_attributes): Delete.
6343 (post_error_ne_num): Change parameter name.
6344 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
6345 with -g3. Remove a couple of obsolete lines. Minor tweaks.
6346 If type annotating mode, operate on trees to compute the adjustment to
6347 the sizes of tagged types. Fix long line.
6348 (cannot_be_superflat_p): Tweak head comment.
6349 (annotate_value): Fold local constant.
6350 (set_rm_size): Fix long line.
6351 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
6352 (Attribute_to_gnu): Fix long line.
6353 <Attr_Size>: Remove useless assertion.
6354 Reorder statements. Use size_binop routine.
6355 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
6356 Create local variables for the label and the test. Tweak comments.
6357 (Subprogram_Body_to_gnu): Reset cfun to NULL.
6358 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
6359 (process_inlined_subprograms): Integrate into...
6360 (Compilation_Unit_to_gnu): ...this.
6361 (gnat_to_gnu): Fix long line.
6362 (post_error_ne_num): Change parameter name.
6363 * gcc-interface/utils.c (process_attributes): Static-ify.
6364 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
6365 (create_type_decl): Add comment.
6366 (create_var_decl_1): Process the attributes after adding the VAR_DECL
6367 to the current binding level.
6368 (create_subprog_decl): Likewise for the FUNCTION_DECL.
6369 (end_subprog_body): Do not reset cfun to NULL.
6370 (build_vms_descriptor32): Fix long line.
6371 (build_vms_descriptor): Likewise.
6372 (handle_nonnull_attribute): Likewise.
6373 (convert_vms_descriptor64): Likewise.
6374 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
6375 (gnat_protect_expr): Fix thinko.
6377 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6379 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
6380 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
6381 before translating the top-level node.
6382 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
6383 <N_Object_Declaration>: Likewise.
6384 <N_Assignment_Statement>: Likewise.
6385 <N_Unchecked_Type_Conversion>: Likewise.
6386 (call_to_gnu): Remove kludge.
6387 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
6388 associated with user returns to be preserved.
6389 (gnat_to_gnu): Add special code to deal with boolean rvalues.
6390 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
6392 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
6393 <INDIRECT_REF>: Call build_fold_indirect_ref.
6395 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
6397 * g-socket.adb: A target can have multiple missing errno's. This
6398 will result in multiple errno's being defined as -1. Because of this
6399 we can not use a case but must use a series of if's to avoid
6400 a duplicate case error in GNAT.Sockets.Resolve_Error.
6402 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6404 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
6405 a statement. Otherwise, if at top-level, push the processing of the
6406 elaboration routine. In the misaligned case, issue the error messages
6407 again on entry and create the temporary explicitly. Do not issue them
6409 For a function call, emit the range check if necessary.
6410 In the copy-in copy-out case, create the temporary for the return
6412 Do not unnecessarily convert by-ref parameters to the formal's type.
6413 Remove obsolete guards in conditions.
6414 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
6415 target to call_to_gnu in all cases.
6416 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
6417 (addressable_p) <CONSTRUCTOR>: Return false if not static.
6418 <COMPOUND_EXPR>: New case.
6419 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
6420 expression if it has unconstrained array type.
6421 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
6422 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
6425 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6427 * gcc-interface/trans.c (gigi): Do not start statement group.
6428 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
6429 Start statement group and push binding level here...
6430 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
6431 Do not push fake contexts at top level. Remove redundant code.
6432 (call_to_gnu): Rename a local variable and constify another.
6433 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
6434 (set_current_block_context): Set it as the group's block.
6435 (gnat_init_decl_processing): Delete unrelated init code.
6436 (end_subprog_body): Use NULL_TREE.
6438 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6440 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
6441 side-effects of actual parameters before the call.
6443 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
6445 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
6447 (set_rm_size): Reorder and remove obsolete test.
6449 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
6451 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
6452 (gigi): Adjust ATTRIBUTE_UNUSED markers.
6453 * gcc-interface/gadaint.h: New file.
6454 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
6455 (__gnat_to_canonical_file_spec): Remove declaration.
6456 (number_names): Delete.
6457 (number_files): Likewise.
6459 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
6462 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
6464 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
6466 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
6467 Ekind. Return early for class-wide types. Do not compute initializer
6468 unless necessary. Reuse the tree for an associated class-wide type
6469 only if processing its root type.
6471 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
6473 * gsocket.h: Run-time can no longer be built without network
6474 OS headers available. Changing RTEMS GNAT build procedure to
6475 reflect this and letting run-time build use network .h files.
6477 2010-04-13 Duncan Sands <baldrick@free.fr>
6479 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
6480 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
6482 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6484 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
6485 (parent_name_id): New macro.
6486 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
6487 * gcc-interface/trans.c (gigi): Initialize it.
6488 (lvalue_required_p) <N_Type_Conversion>: New case.
6489 <N_Qualified_Expression>: Likewise.
6490 <N_Allocator>: Likewise.
6491 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
6493 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6495 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
6496 (DECL_CONST_ADDRESS_P): New macro.
6497 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
6498 (SAME_FIELD_P): Likewise.
6499 * gcc-interface/decl.c (constructor_address_p): New static function.
6500 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
6501 the return value of above function.
6502 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
6503 passed by reference.
6504 <E_Record_Subtype>: Likewise.
6505 Set TREE_ADDRESSABLE on the type if it passed by reference.
6506 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
6507 (create_field_decl_from): Likewise.
6508 (substitute_in_type): Likewise.
6509 (purpose_member_field): Use SAME_FIELD_P.
6510 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
6511 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
6512 parameter and adjust recursive calls.
6513 <N_Explicit_Dereference>: New case.
6514 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
6515 Adjust calls to lvalue_required_p. Do not return the initializer of a
6516 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
6517 (call_to_gnu): Delay issuing error message for a misaligned actual and
6518 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
6519 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
6520 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
6521 type is passed by reference.
6522 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
6523 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
6524 (build_simple_component_ref): Use SAME_FIELD_P.
6526 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
6528 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
6529 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
6530 front-end's predicate Is_By_Reference_Type. Use consistent order and
6531 remove ??? comment. Use original conversion in all cases, if any.
6532 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
6533 (convert): Use local copy in more cases.
6534 <INDIRECT_REF>: Remove deactivated code.
6535 (unchecked_convert): Use a couple of local copies.
6537 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
6539 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
6541 (lvalue_required_p) <N_Attribute_Reference>: Call it.
6542 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
6543 folding the result only if lvalue_required_for_attribute_p is true.
6544 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
6545 typed constant to build_component_ref.
6546 (unchecked_convert): Likewise.
6547 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
6548 (build_allocator): Likewise.
6550 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
6552 * gcc-interface/utils2.c (build_cond_expr): Take the address and
6553 dereference if the result type is passed by reference.
6555 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
6557 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
6558 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
6559 goto to the next statement.
6561 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
6563 * gcc-interface/gigi.h (maybe_variable): Delete.
6564 (protect_multiple_eval): Likewise.
6565 (maybe_stabilize_reference): Likewise.
6566 (gnat_save_expr): Declare.
6567 (gnat_protect_expr): Likewise.
6568 (gnat_stabilize_reference): Likewise.
6569 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
6570 gnat_stabilize_reference.
6571 (maybe_variable): Delete.
6572 (elaborate_expression_1): Use gnat_save_expr.
6573 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
6574 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
6575 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
6576 <N_Slice>: Use gnat_protect_exp.
6577 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
6578 <N_In>: Use gnat_protect_expr.
6579 Pass NULL to gnat_stabilize_reference.
6580 (build_unary_op_trapv): Use gnat_protect_expr.
6581 (build_binary_op_trapv): Likewise.
6582 (emit_range_check): Likewise.
6583 (emit_index_check): Likewise.
6584 (convert_with_check): Likewise.
6585 (protect_multiple_eval): Move to utils2.c file.
6586 (maybe_stabilize_reference): Merge into...
6587 (gnat_stabilize_reference): ...this. Move to utils2.c file.
6588 (gnat_stabilize_reference_1): Likewise.
6589 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
6590 instead of protect_multiple_eval.
6591 * gcc-interface/utils2.c (compare_arrays): Likewise.
6592 (nonbinary_modular_operation): Likewise.
6593 (maybe_wrap_malloc): Likewise.
6594 (build_allocator): Likewise.
6595 (gnat_save_expr): New function.
6596 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
6597 in common cases. Propagate TREE_READONLY onto dereferences.
6598 (gnat_stabilize_reference_1): Move from trans.c file.
6599 (gnat_stabilize_reference): Likewise.
6601 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
6603 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
6604 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
6605 node. Use the type of the operand to set TREE_READONLY.
6606 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
6607 _REF node. Do not overwrite TREE_READONLY.
6608 (call_to_gnu): Rename local variable and fix various nits. In the
6609 copy-in/copy-out case, build the SAVE_EXPR manually.
6610 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
6611 and fold the computations.
6612 (protect_multiple_eval): Always save entire fat pointers.
6613 (maybe_stabilize_reference): Minor tweaks.
6614 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
6615 tcc_type and tcc_statement.
6616 * gcc-interface/utils.c (convert_to_fat_pointer): Call
6617 protect_multiple_eval in lieu of save_expr.
6618 (convert): Minor tweaks.
6619 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
6620 (builtin_type_for_size): Call gnat_type_for_size directly.
6621 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
6622 (contains_null_expr): Likewise
6623 (gnat_build_constructor): Do not call it.
6624 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
6625 instead of gnat_stabilize_reference to protect the operands.
6626 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
6628 (maybe_wrap_malloc): Likewise.
6629 (build_allocator): Likewise.
6630 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
6631 (gnat_mark_addressable): Rename parameter.
6633 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
6635 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
6636 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
6637 (TYPE_RETURNS_BY_REF_P): Rename into.
6638 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
6639 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
6640 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
6641 (build_return_expr): Likewise.
6642 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
6643 Rename local variables. If the return Mechanism is By_Reference, pass
6644 return_by_invisible_ref_p to create_subprog_type instead of toggling
6645 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
6646 the mechanism. Use regular return for contrained types with non-static
6647 size and return by invisible reference for unconstrained return types
6648 with default discriminants. Update comment.
6649 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
6650 returns by invisible reference, turn the RESULT_DECL into a pointer.
6651 Do not handle DECL_BY_REF_P in the CICO case here.
6652 (call_to_gnu): Remove code handling return by target pointer. For a
6653 function call, if the return type has non-constant size, generate the
6654 assignment with an INIT_EXPR.
6655 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
6656 If the function returns by invisible reference, build the copy return
6658 (add_decl_expr): Initialize the variable with an INIT_EXPR.
6659 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
6660 Adjust for renaming of macros. Copy the node only when necessary.
6661 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
6662 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
6663 (convert_from_reference): Delete.
6664 (is_byref_result): Likewise.
6665 (gnat_genericize_r): Likewise.
6666 (gnat_genericize): Likewise.
6667 (end_subprog_body): Do not call gnat_genericize.
6668 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
6669 (build_return_expr): Adjust parameter names, logic and comment.
6671 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
6673 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
6674 if the size is small enough. Propagate the alignment if there is an
6675 alignment clause on the original array type.
6676 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
6677 Deal with under-aligned packed array types. Copy the size onto the
6678 justified modular type and don't lay it out again. Likewise for the
6679 padding type built for other under-aligned subtypes.
6680 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
6683 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
6685 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
6686 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
6688 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
6690 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
6691 do not set the result type if there is a specified target and do not
6692 convert the result in any cases.
6693 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
6694 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
6696 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
6698 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
6700 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
6703 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
6704 pointer base types are variant of each other. Apply special treatment
6705 for null to fat pointer types in all cases.
6707 2010-01-28 Pascal Obry <obry@adacore.com>
6709 * s-win32.ads: Add some missing constants.
6711 2010-01-28 Vincent Celier <celier@adacore.com>
6713 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
6716 2010-01-28 Robert Dewar <dewar@adacore.com>
6718 * gnat_rm.texi: Minor correction
6720 2010-01-27 Pascal Obry <obry@adacore.com>
6722 * g-awk.adb: ensure that an AWK session is reusable.
6724 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
6726 * g-regist.adb (For_Every_Key): Fix previous change.
6729 2010-01-27 Thomas Quinot <quinot@adacore.com>
6731 * lib-writ.ads: Current version of spec for new N (note) ALI lines
6733 2010-01-27 Yannick Moy <moy@adacore.com>
6735 * a-cdlili.adb (Insert): Correct exception message when cursor
6736 designates wrong list.
6738 2010-01-27 Vincent Celier <celier@adacore.com>
6740 * gnatcmd.adb: When there is only one main specified, the package
6741 support Switches (<main>) and attribute Switches is specified for the
6742 main, use these switches, instead of Default_Switches ("Ada").
6744 2010-01-27 Robert Dewar <dewar@adacore.com>
6746 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
6748 * exp_disp.adb: Minor reformatting
6750 2010-01-27 Tristan Gingold <gingold@adacore.com>
6752 * seh_init.c: Use __ImageBase instead of _ImageBase.
6754 2010-01-27 Javier Miranda <miranda@adacore.com>
6756 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
6757 profile of interface thunks. The type of the controlling formal is now
6758 the covered interface type (instead of the target tagged type).
6760 2010-01-27 Sergey Rybin <rybin@adacore.com>
6762 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
6764 2010-01-27 Robert Dewar <dewar@adacore.com>
6766 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
6767 changed from Expr to N.
6769 2010-01-26 Thomas Quinot <quinot@adacore.com>
6771 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
6772 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
6775 2010-01-26 Vincent Celier <celier@adacore.com>
6777 * prj-attr.adb: Add new attribute Library_Install_Name_Option
6778 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
6779 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6780 attributes Run_Path_Option and Library_Install_Name_Option.
6781 * prj.ads (Project_Configuration): Replace component
6782 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
6783 component Library_Install_Name_Option.
6784 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
6785 Replace Run_Path_Origin_Supported with Run_Path_Origin
6787 2010-01-26 Ed Schonberg <schonberg@adacore.com>
6789 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
6790 is not hidden by a homograph declared in another actual package.
6792 2010-01-26 Robert Dewar <dewar@adacore.com>
6794 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
6795 decisions for pragmas Assert, Check, Precondition, Postcondition if
6797 * scos.ads: Update comments.
6798 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
6799 Also remove obsolete code for CT (exit point) SCOs.
6801 2010-01-26 Thomas Quinot <quinot@adacore.com>
6803 * switch-c.adb: Fix handling of -gnatz*
6805 2010-01-26 Robert Dewar <dewar@adacore.com>
6807 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
6808 qualifiers for FOR/WHILE loops
6809 * scos.ads: Use separate type letters F/W for for/while loops
6811 2010-01-26 Robert Dewar <dewar@adacore.com>
6813 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
6814 entries per line, one for each statement in the sequence).
6815 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
6816 size from 100 to 10_000 for SC_Array to avoid any real possibility of
6817 overflow. Output decisions in for loops.
6818 Exclude labels from CS lines.
6819 * scos.ads: Clarify that label is not included in the entry point
6821 2010-01-26 Robert Dewar <dewar@adacore.com>
6823 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
6824 format of statement sequence SCO entries (one location/statement).
6825 * put_scos.adb (Put_SCOs): Implement new format of CS lines
6826 * scos.ads: Update comments.
6827 * sem_eval.adb: Minor reformatting.
6829 2010-01-26 Robert Dewar <dewar@adacore.com>
6831 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
6832 (Extend_Statement_Sequence): New procedures
6833 (Traverse_Declarations_Or_Statements): New handling for exits.
6835 2010-01-26 Robert Dewar <dewar@adacore.com>
6837 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
6840 2010-01-26 Robert Dewar <dewar@adacore.com>
6842 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
6843 * scos.ads: Clarify handling of logical operators
6845 2010-01-26 Arnaud Charlet <charlet@adacore.com>
6847 * s-tpoben.adb: Update comments.
6849 2010-01-26 Robert Dewar <dewar@adacore.com>
6851 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
6854 2010-01-26 Robert Dewar <dewar@adacore.com>
6856 * scos.ads: Clean up documentation, remove obsolete XOR references
6857 2010-01-26 Vincent Celier <celier@adacore.com>
6859 * gnat_ugn.texi: Complete documentation on the restrictions for
6860 combined options in -gnatxxx switches.
6863 2010-01-26 Arnaud Charlet <charlet@adacore.com>
6865 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
6866 a controlled operation, abort is already deferred at this point, so we
6867 need to use Defer_Abort_Nestable.
6869 2010-01-26 Vincent Celier <celier@adacore.com>
6871 * prj-conf.adb (Get_Config_Switches): Check for a default language for
6872 a project extending a project with no languages.
6874 2010-01-26 Vincent Celier <celier@adacore.com>
6876 * switch-c.adb (Scan_Front_End_Switches): Take into account options
6877 that follow -gnatef.
6878 Allow -gnateG to be followed by other options.
6880 2010-01-26 Robert Dewar <dewar@adacore.com>
6882 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
6883 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
6886 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
6888 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
6889 that allows to iterate over all subkeys of a key.
6891 2010-01-26 Ed Falis <falis@adacore.com>
6893 * sysdep.c: enable NFS for VxWorks MILS
6894 * env.c: enable __gnat_environ for VxWorks MILS
6895 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
6897 2010-01-25 Bob Duff <duff@adacore.com>
6899 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
6900 is an internally-generated positional aggregate, and the bounds are
6901 already correctly set. We don't want to overwrite those bounds with
6902 bounds determined by context.
6904 2010-01-25 Robert Dewar <dewar@adacore.com>
6906 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
6907 exp_ch9.adb, g-sechas.ads: Minor reformatting.
6909 2010-01-25 Thomas Quinot <quinot@adacore.com>
6911 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
6912 integer type) before subtracting 1, otherwise the computation may wrap
6913 (because size_t is modular) and cause the conversion to fail.
6915 2010-01-25 Ed Falis <falis@adacore.com>
6917 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
6919 2010-01-25 Vincent Celier <celier@adacore.com>
6921 * prj-attr.adb: New attribute Run_Path_Origin_Required
6922 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
6923 attribute Run_Path_Origin_Required.
6924 * prj.ads (Project_Configuration): New component
6925 Run_Path_Origin_Supported.
6926 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
6928 2010-01-25 Ed Schonberg <schonberg@adacore.com>
6930 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
6931 have errors, do not continue resolution of the aggregate.
6932 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
6933 the array type indicates an error.
6935 2010-01-25 Bob Duff <duff@adacore.com>
6937 * sinfo.ads: Minor comment fixes.
6939 2010-01-25 Bob Duff <duff@adacore.com>
6941 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
6943 2010-01-25 Arnaud Charlet <charlet@adacore.com>
6945 * gnatvsn.ads (Current_Year): Update.
6947 2010-01-25 Florian Villoing <villoing@adacore.com>
6949 * gnat_ugn.texi: Fix typo.
6951 2010-01-25 Thomas Quinot <quinot@adacore.com>
6953 * scos.ads: Update specification.
6955 2010-01-25 Ed Schonberg <schonberg@adacore.com>
6957 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
6958 enclosing subprogram has no previous spec, attach postcondition
6959 procedure to the defining entity for the body.
6961 2010-01-25 Ed Schonberg <schonberg@adacore.com>
6963 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
6964 initialization procedure of the ancestor part of an extension aggregate
6965 if it is an interface type.
6967 2010-01-25 Vincent Celier <celier@adacore.com>
6969 * gnatlink.adb (Process_Binder_File): The directory for the shared
6970 version of libgcc in the run path options is found in the subdirectory
6971 indicated by __gnat_default_libgcc_subdir.
6972 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
6975 2010-01-25 Ed Schonberg <schonberg@adacore.com>
6977 * sem_prag.adb: More flexible pragma Annotate.
6979 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
6981 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
6982 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
6984 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
6986 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
6988 2010-01-18 Jan Hubicka <jh@suse.cz>
6991 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
6992 unit local variables.
6994 2010-01-17 Laurent GUERBY <laurent@guerby.net>
6996 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
6998 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
7000 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
7001 * system-linux-armeb.ads, system-linux-armel.ads: New files.
7003 2010-01-09 Simon Wright <simon@pushface.org>
7006 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
7011 Copyright (C) 2010 Free Software Foundation, Inc.
7013 Copying and distribution of this file, with or without modification,
7014 are permitted in any medium without royalty provided the copyright
7015 notice and this notice are preserved.