1 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
3 * gcc-interface/gigi.h: Likewise.
4 * gcc-interface/trans.c: Likewise.
5 * gcc-interface/utils2.c: Likewise.
6 * gnat_rm.texi: Likewise.
7 * gnat_ugn.texi: Likewise.
8 * raise-gcc.c: Likewise.
9 * sigtramp-ppcvxw.c: Likewise.
11 * terminals.c: Likewise.
13 2013-07-20 Eric Botcazou <ebotcazou@adacore.com>
16 * gcc-interface/ada.h (CAT): Fix typo.
18 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
20 * einfo.adb (Get_Pragma): Handle the retrieval of delayed
21 pragmas stored in N_Contract nodes.
22 * einfo.ads (Get_Pragma): Update the comment on usage.
23 * sem_prag.adb (Check_Precondition_Postcondition): Retain a copy
24 of the pragma when it applies to a body that acts as a spec. The
25 copy is preanalyzed and chained on the contract of the body.
27 2013-07-08 Robert Dewar <dewar@adacore.com>
29 * rtsfind.adb: Minor comment fix.
31 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
33 * sem_ch4.adb (Check_Ghost_Subprogram_Call): Do not check the placement
34 of a Ghost function call when the enclosing context is being
37 2013-07-08 Ed Schonberg <schonberg@adacore.com>
39 * exp_ch6.adb (Expand_Inlined_Call, Process_Formals): If the
40 expression in a return statement is a numeric literal, qualify
41 it with the return type for proper resolution.
43 2013-07-08 Robert Dewar <dewar@adacore.com>
45 * sem.ads: Minor comment updates.
46 * s-restri.ads, exp_ch6.adb, lib-load.ads, exp_ch3.adb, sem_ch10.adb:
49 2013-07-08 Robert Dewar <dewar@adacore.com>
51 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
53 * gnat_rm.texi: Add missing menu entry for Attribute Ref Add
54 documentation for attribute Restriction_Set.
55 * lib-writ.adb (Write_With_Lines): Generate special W lines
57 * lib-writ.ads: Document special use of W lines for
59 * lib.ads (Restriction_Set_Dependences): New table.
60 * par-ch4.adb (Is_Parameterless_Attribute): Add Loop_Entry to
61 list (Scan_Name_Extension_Apostrophe): Remove kludge test for
62 Loop_Entry (Scan_Name_Extension_Apostrophe): Handle No_Dependence
64 * restrict.adb (Check_SPARK_Restriction): Put in Alfa order
65 (OK_No_Dependence_Unit_Name): New function.
66 * restrict.ads (OK_No_Dependence_Unit_Name): New function.
67 * rtsfind.adb: Minor reformatting Minor code reorganization.
68 * sem_attr.adb (Analyze_Attribute): Add processing for
70 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
71 Remove Check_Unit_Name and use new function
72 OK_No_Dependence_Unit_Name instead.
73 * sinfo.ads: Minor comment updates.
74 * snames.ads-tmpl: Add entry for Restriction_Set attribute.
76 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
78 * exp_ch4.adb (Apply_Accessibility_Check): Remove local constant
79 Pool_Id and local variable Free_Stmt. Do not deallocate the faulty
80 object as "free" is not available on all targets/profiles.
82 2013-07-08 Robert Dewar <dewar@adacore.com>
84 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle
85 Storage_Size aspect for task type in case discriminant is
87 (Analyze_Attribute_Definition_Clause): Do not flag Storage_Size
88 attribute definition clause as obsolescent if from aspect.
90 2013-07-08 Robert Dewar <dewar@adacore.com>
92 * gnat_rm.texi: Add documentation for Img returning a function.
93 * par-prag.adb: Minor reformatting.
94 * restrict.adb: Minor reformatting and code reorganization.
96 2013-07-08 Ed Schonberg <schonberg@adacore.com>
98 * sem_res.adb: add guard to ASIS transform.
100 2013-07-08 Ed Schonberg <schonberg@adacore.com>
102 * exp_ch9.adb (Expand_N_Asynchronous_Select): If the trigger
103 of the asynchronous select is a dispatching call, transform the
104 abortable part into a procedure, to avoid duplication of local
105 loop variables that may appear within.
107 2013-07-08 Vincent Celier <celier@adacore.com>
109 * projects.texi: Update the documentation of suffixes in package
112 2013-07-08 Ed Schonberg <schonberg@adacore.com>
114 * sem_ch6.adb (Conforming_Types): Anonymous_access_to_subprograsm
115 types are type conformant if the designated type of one is
116 protected and the other is not. Convention only matters when
117 checking subtype conformance.
119 2013-07-08 Ed Schonberg <schonberg@adacore.com>
121 * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate
122 back the fully resolved operands to the original function call
123 so that all semantic information remains available to ASIS.
125 2013-07-08 Ed Schonberg <schonberg@adacore.com>
127 * sem_ch4.adb: minor reformatting (remove obsolete comment).
128 * sem_ch9.adb: improve error message on illegal trigger.
130 2013-07-08 Robert Dewar <dewar@adacore.com>
132 * sem_prag.adb: Minor reformatting.
134 2013-07-08 Robert Dewar <dewar@adacore.com>
136 * gnatcmd.adb: Minor reformatting.
138 2013-07-08 Robert Dewar <dewar@adacore.com>
140 * targparm.adb (Get_Target_Parameters): Recognize pragma
141 Partition_Elaboration_Policy.
143 2013-07-08 Robert Dewar <dewar@adacore.com>
145 * gnat_ugn.texi: Minor update to mention partition elaboration policy.
147 2013-07-08 Ed Schonberg <schonberg@adacore.com>
149 * sem_ch4.adb (Comple_Object_Operation): Revert previous change.
150 (Analyze_Indexed_Component_Form): In ASIS mode, if node has been
151 transformed but not rewritten as a function call (as is the case
152 in a generic), analyze it as such.
154 2013-07-08 Thomas Quinot <quinot@adacore.com>
156 * gnat_rm.texi: Minor rewording: add missing word "operators"
157 in documentation for restriction No_Direct_Boolean_Operator.
159 2013-07-08 Robert Dewar <dewar@adacore.com>
161 * errout.adb (Set_Msg_Txt): No longer sets Is_Style_Msg,
162 Is_Warning_Msg, or Is_Unconditional_Msg (all are set elsewhere
164 * errout.ads: Insertions ! and !! no longer have to be at the
165 end of the message, they can be anywhere in the message.
166 * erroutc.adb (Test_Style_Warning_Serious_Unconditional_Msg):
167 Replaces Test_Style_Warning_Serious_Msg
168 * erroutc.ads (Has_Double_Exclam): New flag New comments for
169 existing flags (Test_Style_Warning_Serious_Unconditional_Msg):
170 Replaces Test_Style_Warning_Serious_Msg
171 * errutil.adb (Test_Style_Warning_Serious_Unconditional_Msg):
172 Replaces Test_Style_Warning_Serious_Msg
174 2013-07-08 Robert Dewar <dewar@adacore.com>
176 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings):
177 Recognize SPARK_05 as synonym for SPARK in restrictions pragma.
178 * restrict.ads, restrict.adb (SPARK_Hides): Table moved to body, only
180 * scng.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb,
181 sem_res.adb, sem_util.adb: Use restriction SPARK_05 instead of SPARK.
182 * snames.ads-tmpl (Name_No_Obsolescent_Features): New entry.
184 2013-07-08 Vincent Celier <celier@adacore.com>
186 * gnatcmd.adb (Check_Files): Use a response file for gnatls
189 2013-07-08 Gary Dismukes <dismukes@adacore.com>
191 * freeze.adb: Minor typo fixes.
193 2013-07-08 Robert Dewar <dewar@adacore.com>
195 * gnat_rm.texi: Document SPARK_05 (replaces SPARK) Document
196 obsolete recognition of SPARK Document all other obsolete synonyms
197 for old restrictions.
198 * restrict.adb (Check_SPARK_Restriction): SPARK_05 replaces
199 SPARK (Process_Restriction_Synonyms): Handle SPARK as synonym
201 * restrict.ads: Restriction SPARK_05 replaces SPARK.
202 * s-rident.ads: Replace restriction SPARK by SPARK_05 Add SPARK
203 as synonym for SPARK_05.
204 * sem_prag.adb: Minor reformatting.
205 * snames.ads-tmpl: Add entries for Name_SPARK and Name_SPARK_05.
207 2013-07-08 Robert Dewar <dewar@adacore.com>
209 * sem_dim.adb: Minor error message change.
210 * freeze.adb (Freeze_Entity, array type case): Extend handling
211 of Implicit_Packing to handle multi-dimensional array case.
212 * gnat_rm.texi: Update doc on Implicit_Packing.
214 2013-07-08 Robert Dewar <dewar@adacore.com>
216 * exp_ch4.adb: Minor reformatting.
218 2013-07-08 Ed Schonberg <schonberg@adacore.com>
220 * sem_ch4.adb (Complete_Object_Operation): In ASIS mode, if
221 the parent node is a selected component and the analysis as a
222 call is successful, set the type of the selector in the parent
223 node for subsequent checks, because the rewriting of the node
224 does not take place during pre-analysis.
226 2013-07-08 Robert Dewar <dewar@adacore.com>
228 * sem_ch8.adb, exp_ch3.adb: Minor reformatting.
230 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
232 * exp_ch4.adb (Expand_N_Op_Eq): When comparing two
233 Bounded_Strings, use the predefined equality function of the
234 root Super_String type.
236 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
238 * exp_ch4.adb (Create_Alternative): Removed.
239 (Expand_N_If_Expression): Remove constant
240 In_Case_Or_If_Expression. Add local variable
241 Ptr_Typ. Inspect the "then" and "else" action lists
242 for transient controlled objects and generate code to
243 finalize them. (Is_Controlled_Function_Call): Removed.
244 (Process_Action): Update the comment on usage. Update the call
245 to Process_Transient_Object. There is no need to continue the
246 traversal of the object itself.
247 (Process_Actions): New routine.
248 (Process_Transient_Object): Moved to the top level of Exp_Ch4. Add
249 a new formal and update the related comment on usage.
250 * exp_util.adb (Within_Case_Or_If_Expression): Start the search
251 from the parent of the node.
253 2013-07-08 Robert Dewar <dewar@adacore.com>
255 * a-cusyqu.ads, a-cbprqu.ads, s-interr.ads, a-cuprqu.ads,
256 a-cbsyqu.ads: Minor reformatting (proper formatting of overriding).
258 2013-07-08 Ed Schonberg <schonberg@adacore.com>
260 * sem_ch8.adb (Attribute_Renaming): Treat 'Img as an attribute
261 that can be renamed as a function.
263 2013-07-08 Thomas Quinot <quinot@adacore.com>
265 * g-socket.ads: Document target dependency: FIONBIO may or may not
266 be inherited from listening socket by accepted socket.
268 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
270 * exp_ch4.adb (Apply_Accessibility_Check): Do not deallocate the object
271 on targets that can't deallocate.
273 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
275 * exp_ch3.adb (Freeze_Type): Generate a
276 subpools-related accessibility check only on profiles that
277 include the corresponding library unit.
279 2013-07-08 Gary Dismukes <dismukes@adacore.com>
281 * sem_ch8.adb: Minor typo fixes.
283 2013-07-08 Javier Miranda <miranda@adacore.com>
285 * sem_ch8.adb (Save_Scope_Stack): Adding documentation.
286 (Restore_Scope_Stack): Remove the elements of the list when the
287 visibility of each entity is restored.
289 2013-07-08 Robert Dewar <dewar@adacore.com>
291 * exp_ch9.adb, sem.ads, sem_util.adb: Minor reformatting.
293 2013-07-08 Robert Dewar <dewar@adacore.com>
295 * sem_ch8.adb, sem_ch8.ads: Minor reformatting.
297 2013-07-08 Gary Dismukes <dismukes@adacore.com>
299 * gnat_rm.texi: Minor reformatting and rewording for consistency.
301 2013-07-08 Bob Duff <duff@adacore.com>
303 * exp_ch3.adb (Build_Master): If Desig_Type is an incomplete
304 view coming from a limited-with'ed package, use the nonlimited
305 view in case it has tasks.
307 2013-07-08 Javier Miranda <miranda@adacore.com>
309 * sem_ch8.ad[sb] (Save_Scope_Stack): Modified to return the list
310 of entities which have been temporarily removed from immediate
312 (Restore_Scope_Stack): Modified to receive an
313 additional parameter with the list of entities whose immediate
314 visibility must be restored.
315 * sem.adb (Do_Analyze): Use new version of
316 Save_Scope_Stack/Restore_Scope_Stack
317 * sem_ch12.adb (Inline_Instance_Body): Use new version of
318 Save_Scope_Stack and Restore_Scope_Stack
320 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
322 * sem_prag.adb (Analyze_Pragma): Remove
323 variable Unit_Prag. Remove the check on duplicate mode for the
324 configuration form of the pragma.
325 (Redefinition_Error): Removed.
327 2013-07-08 Robert Dewar <dewar@adacore.com>
329 * lib.ads, gnat_rm.texi, einfo.ads, sem_ch13.adb: Minor reformatting
332 2013-07-08 Ed Schonberg <schonberg@adacore.com>
334 * sem_prag.adb (Analyze_PPC_In_Decl_Part): In ASIS mode,
335 pre-analyze only the original expression attached to the source
336 aspect, not the relocated expression of the pragma, to prevent
337 malformed trees in ASIS mode.
338 * sem_ch13.adb (Analyze_Aspect_Specifications): Revert previous
339 patch: the expression in the aspect for pre/post must be relocated
340 to the pragma for proper analysis.
342 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
344 * aspects.adb: Add an entry for SPARK_Mode in table Canonical_Aspect.
345 * aspects.ads: Add an entry for SPARK_Mode in tables Aspect_Id,
346 Aspect_Argument, Aspect_Names.
347 * atree.adb (Node32): New routine.
348 (Set_Node32): New routine.
349 * atree.ads (Node32): New routine.
350 (Set_Node32): New routine.
351 * einfo.adb: Node32 is now used as SPARK_Mode_Pragmas.
352 (Set_SPARK_Mode_Pragmas): New routine.
353 (SPARK_Mode_Pragmas): New routine.
354 (Write_Field32_Name): Add and entry for SPARK_Modes.
355 * einfo.ads: Add attribute SPARK_Mode_Pragmas along with usage
357 (Set_SPARK_Mode_Pragmas): New routine and
359 (SPARK_Mode_Pragmas): New routine and pragma Inline.
360 * gnat_rm.texi: Add sections explaining the syntax and semantics
361 of aspect/pragma SPARK_Mode.
362 * gnat_ugn.texi: Add pragma SPARK_Mode to the list of
363 configuration pragmas.
364 * lib.adb (Set_SPARK_Mode_Pragma): New routine.
365 (SPARK_Mode_Pragma): New routine.
366 * lib.ads: Alphabetize the comments on fields of record
367 Unit_Record. Add new field SPARK_Mode_Pragma along with
368 comment on its usage. Update the layout of record Unit_Record.
369 (Set_SPARK_Mode_Pragma): New routine and pragma Inline.
370 (SPARK_Mode_Pragma): New routine and pragma Inline.
371 * lib-load.adb (Create_Dummy_Package_Unit): Initialize
372 field SPARK_Mode_Pragma.
373 (Load_Main_Source): Initialize field SPARK_Mode_Pragma.
374 (Load_Unit): Initialize field SPARK_Mode_Pragma.
375 * lib-writ.adb (Add_Preprocessing_Dependency): Initialize field
377 (Ensure_System_Dependency): Initialize field SPARK_Mode_Pragma.
378 * opt.ads: Alphabetize verification flags. Store the
379 compilation-wide SPARK mode in variable Global_SPARK_Mode.
380 * par-prag.adb: Pragma SPARK_Mode does not need special processing
382 * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect
383 SPARK_Mode into a pragma.
384 (Check_Aspect_At_Freeze_Point): Aspect SPARK_Mode does not need
386 * sem_prag.adb: Add an entry for SPARK_Mode in table Sig_Flags.
387 (Analyze_Pragma): Add processing for pragma SPARK_Mode.
388 (Get_SPARK_Mode_Id): New routine.
389 (Is_Elaboration_SPARK_Mode): New routine.
390 (Is_Private_SPARK_Mode): New routine.
391 * sem_prag.ads (Get_SPARK_Mode_Id): New routine.
392 (Is_Elaboration_SPARK_Mode): New routine.
393 (Is_Private_SPARK_Mode): New routine.
394 * sinfo.ads: Update the comment on the usage of field Next_Pragma.
395 * snames.ads-tmpl: Add new predefined name for SPARK_Mode and
396 Auto. Add new pragma Id for SPARK_Mode.
397 * types.ads: Add new type SPARK_Mode_Id.
399 2013-07-05 Ed Schonberg <schonberg@adacore.com>
401 * sem_ch13.adb (Analyze_Aspect_Specifications): For
402 pre/postconditions copy the expression to the generated pragma,
403 to avoid sharing between the original aspect and the pragma node,
404 because in ASIS_Mode both will be independently analyzed.
406 2013-07-05 Ed Schonberg <schonberg@adacore.com>
408 * exp_ch3.adb (Build_Variant_Record_Equality): Add pairs of
409 formals for each discriminant of an unchecked union.
410 (Make_Eq_Case): Suprogram accepts a list of discriminants. Nested
411 variants are supported. New helper function Corresponding_Formal.
412 * exp_ch4.adb (Build_Equality_Call): For unchecked unions,
413 loop through discriminants to create list of inferred values,
414 and modify call to equality routine accordingly.
416 2013-07-05 Claire Dross <dross@adacore.com>
418 * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
419 a-cforse.ads, a-cofove.ads: Add preconditions when needed +
420 container types are not tagged any more.
422 2013-07-05 Thomas Quinot <quinot@adacore.com>
424 * freeze.adb (Freeze_Entity): For an object with captured
425 initialization statements, do not remove Init_Stmts from the
426 enclosing list, as Freeze_All might rely on it to know where to
429 2013-07-05 Robert Dewar <dewar@adacore.com>
431 * exp_ch4.adb, a-cfdlli.ads, a-ngelfu.ads, s-bignum.adb: Minor
434 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
436 * exp_ch4.adb (Expand_Composite_Equality): Use the full view
437 when the base type is private.
439 2013-07-05 Claire Dross <dross@adacore.com>
441 * a-cfdlli.ads: Add preconditions when needed.
443 2013-07-05 Robert Dewar <dewar@adacore.com>
445 * sem_ch8.adb: Minor reformatting.
447 2013-07-05 Ed Schonberg <schonberg@adacore.com>
449 * sem_ch3.adb (Access_Subprogram_Declaration): Use
450 Generate_Reference_To_Formals.
451 * lib-xref.adb (Generate_Reference_To_Formals): In the case of
452 access to subprograms, the formals are found in the designated
455 2013-07-05 Robert Dewar <dewar@adacore.com>
457 * gnat_ugn.texi: Document that comments can be lined up with
458 previous non-blank line.
459 * styleg.adb (Check_Comment): Allow indentation to match previous
460 non-blank line (Same_Column_As_Previous_Line): New function
462 2013-07-05 Robert Dewar <dewar@adacore.com>
464 * gnat_rm.texi: Update doc on missing pragmas.
465 * sem_ch12.adb: Minor comment additions.
467 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
469 * sem_prag.adb (Analyze_Pragma): Ensure that
470 Contract_Cases, Depends and Global are analyzed when they apply
471 to a subprogram compilation unit. The pragmas are all added
472 unconditionally to the construct's contract. This ensures that
473 proof tools can locate the pragmas.
475 2013-07-05 Ed Schonberg <schonberg@adacore.com>
477 * sem_ch8.adb (Freeze_Actual_Profile): An instance within
478 a generic unit does not freeze a generic private type of the
479 enclosing generic. This rule must also apply to a type derived
480 from a generic private type.
482 2013-07-05 Arnaud Charlet <charlet@adacore.com>
484 * gnat_rm.texi: Add missing documentation for pragmas.
486 2013-07-05 Yannick Moy <moy@adacore.com>
488 * sem_ch12.adb: Minor comment.
490 2013-07-05 Robert Dewar <dewar@adacore.com>
492 * gnat_rm.texi: Document that -gnatR and -gnatD cannot be used
494 * switch-c.adb: Do not allow -gnatD and -gnatR to both be
497 2013-07-05 Robert Dewar <dewar@adacore.com>
499 * gnat_rm.texi: Add missing documentation for pragmas.
500 * sem_ch8.adb: Minor reformatting.
501 * gnat_ugn.texi: Document that -gnatR and -gnatD cannot be used
504 2013-07-05 Yannick Moy <moy@adacore.com>
506 * sem_ch12.ads, sem_ch12.adb (Need_Subprogram_Instance_Body): Force
507 instance of subprogram body in SPARK mode, by testing Expander_Active
508 (set in SPARK mode) instead of Full_Expander_Active (not set in
510 * sem_ch8.adb: Minor reformatting.
512 2013-07-05 Robert Dewar <dewar@adacore.com>
514 * freeze.adb (Freeze_Entity): Remove test of obsolete flag
515 Propagate_Exceptions, and associated useless code that did
517 * gnat_rm.texi: Add documentation for obsolete pragma
518 Propagate_Exceptions.
519 * opt.ads (Propagate_Exceptions): Obsolete flag removed.
520 * sem_prag.adb (Analyze_Pragma, case Propagate_Exceptions):
521 Remove useless and obsolete setting of Propagate_Exceptions flag.
523 2013-07-05 Robert Dewar <dewar@adacore.com>
525 * gnat_rm.texi, sem_prag.adb: Minor comment/text fixes.
527 2013-07-05 Robert Dewar <dewar@adacore.com>
529 * gnat_rm.texi: Add missing doc for various pragmas.
531 2013-07-05 Robert Dewar <dewar@adacore.com>
533 * par_sco.adb, sem_ch12.adb, par-ch5.adb: Minor reformatting.
534 * gnat_rm.texi: Document pragma Profile_Warnings.
535 * restrict.ads, sem_prag.adb: Minor reformatting.
537 2013-07-05 Ed Schonberg <schonberg@adacore.com>
539 * sem_ch12.adb (Check_Formal_Package_Instance): Handle properly
540 a formal subprogram that was defaulted in the formal package.
542 2013-07-05 Thomas Quinot <quinot@adacore.com>
544 * par_sco.adb (Traverse_Declarations_Or_Statements): Ignore
545 N_Implicit_Label_Declaration nodes.
547 2013-07-05 Robert Dewar <dewar@adacore.com>
549 * a-cfhase.adb, sem_prag.adb, a-cfhama.adb: Minor reformatting.
551 2013-07-05 Ed Schonberg <schonberg@adacore.com>
553 * sem_ch12.adb (Copy_Generic_Node): Check that name in function
554 call is a valid entity name before preserving entity in generic
557 2013-07-05 Thomas Quinot <quinot@adacore.com>
559 * par-ch5.adb: Minor reformatting.
561 2013-07-05 Thomas Quinot <quinot@adacore.com>
563 * sinfo.ads: Minor clarification to documentation for
564 N_Implicit_Label_Declaration.
566 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
568 * a-except-2005.adb, a-except.adb: Add constant Rmsg_17. Correct the
569 values of all remaining constants.
570 (Rcheck_35): New routine along with pragmas Export and No_Return.
571 (Rcheck_PE_Aliased_Parameters): New routine along with pragmas
572 Export and No_Return.
573 (Rcheck_PE_All_Guards_Closed,
574 Rcheck_PE_Bad_Predicated_Generic_Type,
575 Rcheck_PE_Current_Task_In_Entry_Body,
576 Rcheck_PE_Duplicated_Entry_Address, Rcheck_PE_Explicit_Raise,
577 Rcheck_PE_Implicit_Return, Rcheck_PE_Misaligned_Address_Value,
578 Rcheck_PE_Missing_Return, Rcheck_PE_Overlaid_Controlled_Object,
579 Rcheck_PE_Potentially_Blocking_Operation
580 Rcheck_PE_Stubbed_Subprogram_Called,
581 Rcheck_PE_Unchecked_Union_Restriction,
582 Rcheck_PE_Non_Transportable_Actual, Rcheck_SE_Empty_Storage_Pool,
583 Rcheck_SE_Explicit_Raise, Rcheck_SE_Infinite_Recursion,
584 Rcheck_SE_Object_Too_Large, Rcheck_PE_Finalize_Raised_Exception):
585 Update the use of Rmsg_XX.
586 (Rcheck_17, Rcheck_18, Rcheck_19,
587 Rcheck_20, Rcheck_21, Rcheck_22, Rcheck_23, Rcheck_24, Rcheck_25,
588 Rcheck_26, Rcheck_27, Rcheck_28, Rcheck_29, Rcheck_30, Rcheck_31,
589 Rcheck_32, Rcheck_33, Rcheck_34, Rcheck_35): Update corresponding
591 * checks.adb: Add with and use clause for Stringt.
592 (Apply_Parameter_Aliasing_Checks): Make constant Loc visible in
593 all subprograms of Apply_Parameter_Aliasing_Checks. Remove local
594 variable Cond. Initialize Check at the start of the routine. Use
595 routine Overlap_Check to construct a simple or a detailed run-time
596 check. Update the creation of the simple check.
597 (Overlap_Check): New routine.
598 * exp_ch11.adb (Get_RT_Exception_Name): Add a value for
599 PE_Aliased_Parameters.
600 * types.ads: Add new enumeration literal
601 PE_Aliased_Parameters. Update the corresponding integer values
602 of all RT_Exception_Code literals.
603 * types.h: Add new constant PE_Aliased_Parameters. Correct the
604 values of all remaining constants.
606 2013-07-05 Yannick Moy <moy@adacore.com>
608 * gnat_rm.texi: Minor renaming of SPARK into SPARK 2005 in
611 2013-07-05 Ed Schonberg <schonberg@adacore.com>
613 * sem_prag.adb (Analyze_PPC_In_Decl_Part): For a class-wide
614 condition, when replacing the name of a formal by a conversion
615 to the class-wide type, exempt selector names that appear in
616 parameter associations.
618 2013-06-13 Eric Botcazou <ebotcazou@adacore.com>
620 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): Delete.
621 * gcc-interface/gigi.h (annotate_object): Adjust prototype.
622 (convert_vms_descriptor): Likewise.
623 * gcc-interface/decl.c (gnat_to_gnu_param): Do not pass fat pointer
624 types by double dereference.
625 (annotate_object): Remove BY_DOUBLE_REF parameter and adjust.
626 (gnat_to_gnu_entity): Adjust calls to annotate_object.
627 * gcc-interface/trans.c (Identifier_to_gnu): Do not deal with double
629 (Call_to_gnu): Likewise.
630 (build_function_stub): Adjust call to convert_vms_descriptor.
631 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
632 * gcc-interface/utils.c (convert_vms_descriptor): Remove BY_REF
633 parameter and adjust.
635 2013-05-30 Eric Botcazou <ebotcazou@adacore.com>
637 * gcc-interface/Makefile.in (arm% androideabi): Robustify.
639 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
641 * gcc-interface/decl.c: (gnat_to_gnu_entity): In ASIS mode, do not
642 check that access types have a set size.
644 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
646 * gcc-interface/decl.c (vinfo_t): New type and associated vector.
647 (components_to_record): Change return type to bool.
648 Lay out the variants in two passes. Do not force a specific layout for
649 the variant part if the variants do not have a representation clause.
650 Take the alignment of the variant part into account when laying out
651 variants without rep clause in a record type with a partial rep clause.
652 (create_rep_part): Do not set the position of the field.
654 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
656 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Last_Bit>: Add kludge
657 to avoid generating an overflow for -1.
659 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
661 * gcc-interface/gigi.h (create_type_decl): Adjust prototype.
662 (create_label_decl): Complete prototype.
663 (process_attributes): Declare.
664 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust multiple calls to
665 create_type_decl throughout.
666 <E_Enumeration_Type>: Do the layout of the type manually and call
667 process_attributes on it. Reindent.
668 <E_Enumeration_Subtype>: Minor tweak.
669 <E_Floating_Point_Subtype>: Reindent.
670 <E_Array_Subtype>: Call process_attributes on the array type built
671 for a packed array type.
672 <E_Record_Type>: Call process_attributes on the type.
673 <E_Record_Subtype>: Likewise.
674 <E_Access_Type>: Likewise.
675 <E_Subprogram_Type>: Likewise.
676 Likewise for all types at the end of the processing.
677 * gcc-interface/utils.c (make_aligning_type): Adjust call to
679 (maybe_pad_type): Likewise.
680 (create_index_type): Likewise.
681 (create_type_decl): Remove attr_list parameter and associated code.
682 (create_var_decl_1): Call process_attributes on the variable.
683 (process_attributes): Take a pointer to the object and add in_place
684 and gnat_node parameters and adjust throughout.
685 <ATTR_MACHINE_ATTRIBUTE>: Pass ATTR_FLAG_TYPE_IN_PLACE only on demand
686 and set the input location.
687 Zap the attribute list at the end.
688 (create_subprog_decl): Call process_attributes on the subprogram.
689 (build_unc_object_type): Adjust call to create_type_decl.
690 (handle_vector_type_attribute): Remove dead code.
692 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
694 * gcc-interface/gigi.h (make_aligning_type): Adjust prototype.
695 * gcc-interface/utils.c (make_aligning_type): Take GNAT_NODE parameter
696 for the position of the associated TYPE_DECL.
697 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust call to above.
698 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
700 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
702 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not prematurely
703 elaborate the full view of a type with a freeze node.
704 * gcc-interface/trans.c (process_type): Add explicit predicate.
706 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
708 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Always build the
709 UNC variable for aliased objects with unconstrained nominal subtype.
711 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
713 * gcc-interface/gigi.h (gnat_init_gcc_fp): Declare.
714 * gcc-interface/trans.c (gigi): Call it.
715 * gcc-interface/misc.c (gnat_init_gcc_fp): New function.
717 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
719 * gcc-interface/gigi.h (enum inline_status_t): New type.
720 (create_subprog_decl): Adjust prototype.
721 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Adjust
722 calls to create_subprog_decl.
723 (get_minimal_subprog_decl): Likewise.
724 * gcc-interface/trans.c (gigi): Likewise.
725 (build_raise_check): Likewise.
726 (establish_gnat_vms_condition_handler): Likewise.
727 (Compilation_Unit_to_gnu): Likewise.
728 (gnat_to_gnu): Likewise.
729 * gcc-interface/utils.c (create_subprog_decl): Change inline_flag
730 parameter to inline_status and implement for suppressed inlining.
732 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
734 * gcc-interface/ada-tree.h (LOOP_STMT_NO_UNROLL): New define.
735 (LOOP_STMT_UNROLL): Likewise.
736 (LOOP_STMT_NO_VECTOR): Likewise.
737 (LOOP_STMT_VECTOR): Likewise.
738 * gcc-interface/trans.c (struct loop_info_d): Replace label field
740 (Pragma_to_gnu) <Pragma_Loop_Optimize>: New case.
741 (Loop_Statement_to_gnu): Save the loop statement onto the stack
742 instead of the label.
743 (gnat_to_gnu) <N_Exit_Statement>: Retrieve the loop label.
745 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
747 * gcc-interface/trans.c: Include diagnostic.h and opts.h.
748 (Pragma_to_gnu) <Pragma_Warnings>: New case.
750 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
752 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Constify
753 a handful of local variables.
754 For a derived untagged type that renames discriminants, change the type
755 of the stored discriminants to a subtype with the bounds of the type
756 of the visible discriminants.
757 (build_subst_list): Rename local variable.
759 2013-05-16 Jason Merrill <jason@redhat.com>
761 * gcc-interface/Make-lang.in (gnat1$(exeext)): Use link mutex.
763 2013-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
766 * gcc-interface/Makefile.in: Allow for amd64 solaris2.
768 2013-05-07 Eric Botcazou <ebotcazou@adacore.com>
771 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Use
772 int_const_binop to shift bounds by 1 when they are integer constants.
774 2013-04-25 Arnaud Charlet <charlet@adacore.com>>
776 * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Exclude s-init.ad{s,b}
778 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
780 * checks.adb (Apply_Predicate_Check): Update the comment associated
781 with the call to Check_Expression_Against_Static_Predicate.
782 * sem_ch3.adb (Analyze_Object_Declaration): Update the comment
783 associated with the call to Check_Expression_Against_Static_Predicate.
784 * sem_util.adb (Check_Expression_Against_Static_Predicate):
785 Broaden the check from a static expression to an expression with
786 a known value at compile time.
787 * sem_util.ads (Check_Expression_Against_Static_Predicate): Update
790 2013-04-25 Thomas Quinot <quinot@adacore.com>
792 * exp_attr.adb (Expand_N_Attribute_Reference, cases Position,
793 First_Bit, and Last_Bit): Fix incorrect test in implementation of
796 2013-04-25 Claire Dross <dross@adacore.com>
798 * a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads, a-cfhama.adb,
799 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads
800 (Query_Element): Removed.
801 (Update_Element): Removed.
802 (Insert): The version with no New_Item specified is removed.
806 Every check of fields Busy and Lock has been removed.
808 2013-04-25 Robert Dewar <dewar@adacore.com>
810 * sem_prag.adb (Analyze_Pragma, case Contract_Cases): Remove
811 call to S14_Pragma (Find_Related_Subprogram): Require proper
812 placement in subprogram body (Find_Related_Subprogram): Detect
813 duplicates for all cases (Find_Related_Subprogram): Handle case
814 of spec nested inside body.
816 2013-04-25 Arnaud Charlet <charlet@adacore.com>
818 * par-prag.adb: Fix typo.
820 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
822 * checks.adb (Apply_Predicate_Check): If the type has a static
823 predicate and the expression is also static, check whether the
824 expression satisfies the predicate.
825 * sem_ch3.adb (Analyze_Object_Declaration): If the type has a
826 static predicate and the expression is also static, see if the
827 expression satisfies the predicate.
828 * sem_util.adb: Alphabetize several routines.
829 (Check_Expression_Against_Static_Predicate): New routine.
830 * sem_util.ads (Check_Expression_Against_Static_Predicate): New routine.
832 2013-04-25 Robert Dewar <dewar@adacore.com>
834 * gnat_rm.texi: Document Reason argument for pragma Warnings.
835 * par-prag.adb: Handle Reason parameter for pragma Warnings.
836 * sem_prag.adb (Analyze_Pragma, case Warnings): Allow Reason argument.
837 * snames.ads-tmpl (Name_Reason): New name entry.
839 2013-04-25 Yannick Moy <moy@adacore.com>
841 * exp_spark.adb (Expand_SPARK_N_In): Remove procedure.
842 (Expand_SPARK): Remove special expansion for membership tests.
844 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
846 * exp_ch3.adb (Expand_N_Object_Declaration): Update all places
847 that should use constant Base_Typ. When building an invariant
848 check, account for invariants coming from the base type. Prevent
849 the creation of a junk invariant check when the related object
850 is of an array type and it is initialized with an aggregate.
851 * exp_util.adb (Make_Invariant_Call): Typ is now a variable. Use
852 the base type to create an invariant call when the type of the
853 expression is a composite subtype.
855 2013-04-25 Vasiliy Fofanov <fofanov@adacore.com>
857 * a-cborse.adb: Fix minor typo.
859 2013-04-25 Ed Schonberg <schonberg@adacore.com>
861 * sem_ch6.adb (Different_Generic_Profile): A spec and body
862 match in an instance if a subtype declaration that renames a
863 generic actual with the same name appears between spec and body.
865 2013-04-25 Robert Dewar <dewar@adacore.com>
867 * sem_util.adb: Minor reformatting.
869 2013-04-25 Ed Schonberg <schonberg@adacore.com>
871 * exp_aggr.adb (Expand_N_Aggregate): Use special circuitry to
872 fold strings with a single others choice only if there are no
873 expressions in the aggregate.
875 2013-04-25 Arnaud Charlet <charlet@adacore.com>
877 * gnat_ugn.texi: Update doc on Ada 2012 default mode.
879 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
881 * exp_ch6.adb: Add with and use clause for Stringt.
882 (Expand_Contract_Cases): Moved from sem_ch6. Add formal parameters
883 Decls and Stmts along with comments on their usage.
884 * exp_ch6.ads (Expand_Contract_Cases): Moved from sem_ch6.
885 * sem_ch6.adb (Expand_Contract_Cases): Moved to exp_ch6.
886 (Process_Contract_Cases): Update the call to Expand_Contract_Cases.
888 2013-04-25 Ed Schonberg <schonberg@adacore.com>
890 * gnat_rm.texi: Minor editing, to clarify use of dimension aspects.
891 * sem_util.adb (Is_OK_Variable_For_Out_Formal): Reject an
892 aggregate for a packed type, which may be converted into an
893 unchecked conversion of an object.
895 2013-04-25 Robert Dewar <dewar@adacore.com>
897 * sem_prag.adb: Minor code reorganization (correct misspelling
899 * sem_util.adb, aspects.ads, sem_ch6.adb: Minor reformatting.
900 * gnat_rm.texi: Document impl-defined aspects.
901 * sem_dim.adb, sem_dim.ads, gnat_ugn.texi, s-dimmks.ads: Minor
904 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
906 * einfo.adb (Set_Abstract_States): The attribute now applies
908 * sem_ch4.adb (Referenced): Moved to sem_util.
909 * sem_ch7.adb (Unit_Requires_Body): A [generic] package with
910 a non-null abstract state needs a body.
911 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Update the calls
912 to Collect_Subprogram_Inputs_Outputs.
913 (Analyze_Global_Item): Verify the proper usage of an item with mode
914 In_Out or Output relative to the enclosing context.
915 (Analyze_Pragma): Abstract_State can now be applied to a generic
916 package. Do not reset the Analyzed flag for pragmas Depends and Global
917 as this is not needed.
918 (Appears_In): Moved to library level.
919 (Check_Mode_Restiction_In_Enclosing_Context): New routine.
920 (Collect_Subprogram_Inputs_Outputs): Moved to library level. Add
921 formal parameters Subp_Id, Subp_Inputs, Subp_Outputs and Global
922 seen along with comments on usage.
923 * sem_util.ads, sem_util.adb (Referenced): New routine.
925 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
927 * sem_ch6.adb (Expand_Contract_Cases): Generate
928 detailed error messages only when switch -gnateE is in effect.
930 2013-04-25 Yannick Moy <moy@adacore.com>
932 * sem_attr.adb (Analyze_Attribute): Do not issue
933 an error for a possibly misplaced 'Result or 'Old attribute when
934 analyzing the aspect.
936 2013-04-25 Robert Dewar <dewar@adacore.com>
938 * sem_ch12.adb, sem_util.adb, sem_ch4.adb: Minor reformatting.
940 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
942 * sem_ch4.adb (Analyze_Quantified_Expression):
943 Add local variable Loop_Id. Verify that the loop variable
944 is used within the condition of the quantified expression.
945 (Referenced): New routine.
947 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
949 * sem_case.adb (Analyze_Choices): Enhance the error message
950 given on a bad use of subtype predicate.
951 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Enhance
952 the error message given on a bad use of subtype predicate.
953 * sem_util.adb (Bad_Predicated_Subtype_Use): Add formal parameter
954 Suggest_Static. Emit an extra error message advising how to
955 remedy the bad use of the predicate if the context warrants it.
956 * sem_util.ads (Bad_Predicated_Subtype_Use): Add formal parameter
957 Suggest_Static along with a comment explaining its usage.
959 2013-04-25 Ed Schonberg <schonberg@adacore.com>
961 * sem_disp.adb (Check_Dispatching_Operation): Further refinement
962 to checks for AI05-0125: the check for a hidden primitive that
963 may be overridden by the new declaration only applies if the
964 hidden operation is never declared. This is not the case if the
965 operation is declared in a parent unit.
967 2013-04-25 Robert Dewar <dewar@adacore.com>
969 * debug.adb: Remove d.X and d.Y entries and documentation.
970 * exp_ch4.adb (Expand_N_If_Expression): Remove special code used
971 if expression with actions not available (now always available).
972 (Expand_Short_Circuit_Operator): Same change.
973 * gnat1drv.adb (Adjust_Global_Switches) Remove setting
974 Use_Expression_With_Actions flag, since this is now obsolete.
975 * opt.ads (Use_Expression_Actions): Removed (always True now).
976 * sinfo.ads: Minor comment updates.
978 2013-04-25 Ed Schonberg <schonberg@adacore.com>
980 * sem_ch12.adb (Check_Generic_Actuals): If an actual is an array
981 subtype whose base type is currently private, install full view
982 when compiling instance body.
984 2013-04-25 Ed Schonberg <schonberg@adacore.com>
986 * sem_disp.adb (Check_Dispatching_Operation): Refine checks for
987 AI05-0125: the check for a hidden primitive that may be overridden
988 by the new declaration is only performed if the declaration comes
989 from source, and it must carry an explicit overriding indicator.
991 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
993 * einfo.adb (Abstract_States): The attribute now applies to
995 * sem_ch3.adb (Analyze_Object_Declaration): Check whether an
996 object declaration introduces an illegal hidden state.
997 * sem_prag.adb (Analyze_Abstract_State): Check whether a state
998 declaration introduces an illegal hidden state.
999 * sem_util.ads, sem_util.adb (Check_No_Hidden_State): New routine.
1001 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1003 * exp_ch6.adb (Is_Build_In_Place_Function_Call): The call may
1004 be to a protected function, in which case the name in the call
1005 is a selected component.
1007 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1009 * sem_ch4.adb (Analyze_Quantified_Expression):
1010 Warn on a suspicious use of quantifier "some" when "all" was meant.
1011 (No_Else_Or_Trivial_True): New routine.
1013 2013-04-25 Robert Dewar <dewar@adacore.com>
1015 * einfo.ads, einfo.adb: Put back with/use for Namet.
1016 (Get_Pragma): New name (wi new spec) for Find_Pragma.
1017 * sem_ch6.adb: Change name Find_Pragma to Get_Pragma with
1018 different interface.
1020 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1022 * sem_ch3.adb (Is_Visible_Component): In an instance all
1023 components are visible.
1025 2013-04-25 Matthew Heaney <heaney@adacore.com>
1027 * a-rbtgbo.adb, a-crbtgo.adb (Generic_Equal): do not test for
1028 tampering when container empty.
1029 * a-crbtgk.adb (Ceiling, Find, Floor): ditto.
1030 (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint):
1033 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1035 * par-ch12.adb: Move aspects from package specification to
1036 generic package declaration.
1037 * sem_ch12.adb: Analyze aspect specifications before building
1038 and analyzing the generic copy, so that the generated pragmas
1039 are properly taken into account.
1040 * sem_ch13.adb: For compilation unit aspects that apply to a
1041 generic package declaration, insert corresponding pragmas ahead
1042 of visible declarations.
1043 * sprint.adb: Display properly the aspects of a generic type
1046 2013-04-25 Robert Dewar <dewar@adacore.com>
1048 * frontend.adb: Minor reformatting.
1050 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1052 * einfo.ads: Extend documentation on use of Is_Private_Ancestor
1054 * sem_ch3.adb (Is_Visible_Component): Refine predicate for the
1055 case of untagged types derived from private types, to reject
1056 illegal selected components.
1058 2013-04-25 Gary Dismukes <dismukes@adacore.com>
1060 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): Test
1061 for case of selecting from an unexpanded implicit dereference
1062 and do not make a recursive call on such a prefix.
1064 2013-04-25 Doug Rupp <rupp@adacore.com>
1066 * targparm.adb (VXF{_Str}): New tag for vaxfloat.
1067 (Get_Target_Parameters): Handle VXF tag.
1068 * targparm.ads (VAX_Float_On_Target): New boolean.
1069 * system-vms-ia64.ads (VAX_Float): New boolean.
1070 * frontend.adb (Frontend): Handle VAX float boolean.
1072 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1074 * einfo.ads, einfo.adb: Remove with and use clauses for Namet.
1075 (Find_Pragma): New routine.
1076 * sem_util.ads, sem_util.adb (Find_Pragma): Moved to einfo.
1078 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1080 * sem_ch13.adb (Add_Call): Do not capture the nature of the inherited
1082 (Add_Predicates): Save the static predicate for diagnostics and error
1084 (Process_PPCs): Remove local variables Dynamic_Predicate_Present and
1085 Static_Predicate_Present. Add local variable Static_Pred. Ensure that
1086 the expression of a static predicate is static.
1088 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1090 * einfo.adb (Is_Ghost_Subprogram): Remove useless code.
1092 2013-04-25 Robert Dewar <dewar@adacore.com>
1094 * gnat_rm.texi: Minor addition of index entry.
1096 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1098 * sem_ch6.adb (Check_Access_Invariants): Test whether an
1099 invariant procedure is empty before generating a call to it.
1100 (Has_Enabled_Predicate): New routine.
1101 (Has_Null_Body): New routine.
1102 (Process_PPCs): Test whether an invariant procedure is
1103 empty before generating a call to it. Test whether predicates are
1104 enabled for a particular type before generating a predicate call.
1105 * sem_util.ads, sem_util.adb (Find_Pragma): New routine.
1107 2013-04-25 Robert Dewar <dewar@adacore.com>
1109 * sem_ch7.adb, einfo.adb, repinfo.adb, snames.adb-tmpl,
1110 snames.ads-tmpl: Minor reformatting.
1112 2013-04-25 Thomas Quinot <quinot@adacore.com>
1114 * sem_ch7.adb: Minor reformatting.
1116 2013-04-25 Robert Dewar <dewar@adacore.com>
1118 * gnat_rm.texi: Minor fix to Loop_Variant doc (Loop_Entry allowed).
1119 * s-tarest.adb: Minor reformatting.
1121 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1123 * aspects.ads, aspects.adb: Remove aspect Ghost from all relevant
1125 * einfo.adb: Remove with and use clause for Aspects.
1126 (Is_Ghost_Function): Removed.
1127 (Is_Ghost_Entity): New routine.
1128 (Is_Ghost_Subprogram): New routine.
1129 * einfo.ads: Remove synthesized attribute Is_Ghost_Function
1130 along with its uses in entities. Add synthesized attributes
1131 Is_Ghost_Entity and Is_Ghost_Subprogram along with uses in related
1133 (Is_Ghost_Function): Removed.
1134 (Is_Ghost_Entity): New routine.
1135 (Is_Ghost_Subprogram): New routine.
1136 * par-prag.adb: Remove pragma Ghost from the processing machinery.
1137 * repinfo.adb (List_Mechanisms): Add a value for convention Ghost.
1138 * sem_attr.adb (Analyze_Access_Attribute): Update the check
1139 for ghost subprograms.
1140 * sem_ch4.adb (Analyze_Call): Update the check for calls
1141 to ghost subprograms.
1142 (Check_Ghost_Function_Call): Removed.
1143 (Check_Ghost_Subprogram_Call): New routine.
1144 * sem_ch6.adb (Check_Convention): Rewritten.
1145 (Check_Overriding_Indicator): Remove the check for overriding
1147 (Convention_Of): New routine.
1148 * sem_ch12.adb (Preanalyze_Actuals): Update the check for ghost
1149 generic actual subprograms.
1150 * sem_mech.adb (Set_Mechanisms): Add an entry for convention Ghost.
1151 * sem_prag.adb: Remove the value for pragma Ghost from
1153 (Analyze_Pragma): Remove the processing for pragma Ghost.
1154 (Process_Convention): Emit an error when a ghost
1155 subprogram attempts to override.
1156 (Set_Convention_From_Pragma): Emit an error when a ghost subprogram
1157 attempts to override.
1158 * sinfo.ads: Clarify the usage of field Label_Construct.
1159 * snames.adb-tmpl (Get_Convention_Id): Add an entry for
1160 predefined name Ghost.
1161 (Get_Convention_Name): Add an entry for convention Ghost.
1162 * snames.ads-tmpl: Move predefined name Ghost to the sublist
1163 denoting conventions. Add convention id Ghost. Remove pragma
1166 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1168 * sem_ch7.adb (Swap_Private_Dependents): Do no recurse on child
1169 units if within a generic hierarchy.
1171 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1173 * exp_ch6.adb (Expand_Actuals): Add a predicate check on an
1174 actual the related type has a predicate function.
1175 * sem_ch3.adb (Constant_Redeclaration): Ensure that the related
1176 type has an invariant procedure before building a call to it.
1177 * sem_ch6.adb (Append_Enabled_Item): New routine.
1178 (Check_Access_Invariants): Use routine
1179 Append_Enabled_Item to chain onto the list of postconditions.
1180 (Contains_Enabled_Pragmas): Removed.
1181 (Expand_Contract_Cases): Use routine Append_Enabled_Item to chain onto
1182 the list of postconditions.
1183 (Invariants_Or_Predicates_Present): Removed.
1184 (Process_PPCs): Partially reimplemented.
1186 2013-04-24 Sergey Rybin <rybin@adacore.com frybin>
1188 * tree_io.ads: Update ASIS_Version_Number because of changes
1189 in the way how entities are chained in a scope by means of
1192 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1194 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
1195 Storage_Size): If the clause is not from an aspect, insert
1196 assignment to size variable of task type at the point of the
1197 clause, not after the task definition, to prevent access before
1198 elaboration in the back-end.
1200 2013-04-24 Yannick Moy <moy@adacore.com>
1202 * sem_prag.adb (Sig_Flags): Set correct value for Pragma_Assume.
1204 2013-04-24 Yannick Moy <moy@adacore.com>
1206 * gnat_rm.texi: Document 'Loop_Entry.
1208 2013-04-24 Jose Ruiz <ruiz@adacore.com>
1210 * s-tassta.adb, s-tarest.adb (Task_Wrapper): Start looking for
1211 fall-back termination handlers from the parents, because they apply
1212 only to dependent tasks.
1213 * s-solita.adb (Task_Termination_Handler_T): Do not look for fall-back
1214 termination handlers because the environment task has no parent,
1215 and if it defines one of these handlers it does not apply to
1216 itself because they apply only to dependent tasks.
1218 2013-04-24 Robert Dewar <dewar@adacore.com>
1220 * sem_type.adb, exp_attr.adb, exp_ch4.adb: Minor reformatting.
1222 2013-04-24 Robert Dewar <dewar@adacore.com>
1224 * gnat_rm.texi: Document 'Update attribute.
1225 * sem_attr.adb (Analyze_Attribute, case Update): Remove call
1226 to S14_Attribute (S14_Attribute): removed.
1228 2013-04-24 Robert Dewar <dewar@adacore.com>
1230 * interfac.ads: Add size clauses for IEEE_Float_32/64
1232 2013-04-24 Claire Dross <dross@adacore.com>
1234 * gnat1drv.adb (Adjust_Global_Switches): Remove
1235 special assignment of Use_Expression_With_Actions for SPARK_Mode.
1237 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1239 * checks.adb (Apply_Predicate_Check): Check for the presence
1240 of the dynamic predicate aspect when trying to determine if the
1241 predicate of a type is non-static.
1242 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
1243 for the presence of the dynamic predicate aspect when trying to
1244 determine if the predicate of a type is non- static.
1245 * sem_ch13.adb (Add_Call): Capture the nature of the
1246 inherited ancestor predicate.
1247 (Build_Predicate_Functions): Update comments. Rewrite the checks on
1248 static predicate application. Complain about the form of a non-static
1249 expression only when the type is static.
1251 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1253 * sem_prag.adb: Add guard to tree traversal.
1255 2013-04-24 Vincent Celier <celier@adacore.com>
1257 * clean.adb (Clean): Remove local variable Root_Environment,
1258 use Makeutl.Root_Environment instead.
1259 * gnatcmd.adb: Remove local variable Root_Environment, use
1260 Makeutl.Root_Environment instead.
1261 * make.adb (Gnatmake): Remove local variable Root_Environment,
1262 use Makeutl.Root_Environment instead.
1263 * prj-makr.adb: Remove local variable Root_Environment, use
1264 Makeutl.Root_Environment instead.
1266 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1268 * exp_attr.adb (Expand_Loop_Entry_Attribute): Clarify the
1269 extraction of the declarative part of the conditional block. Move
1270 the processing of simple infinite loops to the start of the
1271 expansion logic. Correct the check which determines whether the
1272 proper scope is installed in visibility.
1273 * sem_attr.adb (Analyze_Attribute): Add local variable Attr
1274 to keep track of the attribute in case the enclosing indexed
1275 component has to be rewritten. When searching for the enclosing
1276 loop, start from the proper attribute reference in case of a
1277 rewriting. Do not allow for 'Loop_Entry to appear in pragma
1278 Assert. Replace loop variable J with Index. Set the type of the
1280 * sem_ch5.adb (Check_Unreachable_Code): Detect a specialized
1281 block that services a loop statement subject to at least one
1282 'Loop_Entry attribute.
1284 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1286 * sem_type.adb (Disambiguate): In Ada 2012 mode, when trying to
1287 resolve a fixed point operation, use first subtype to determine
1288 whether type and operator are declared in the same list of
1291 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1293 * par-ch6.adb (P_Subprogram): Detect an illegal
1294 placement of the aspect specification list in the context of
1295 expression functions.
1297 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1299 * exp_ch4.adb (Expand_N_Allocator): If the designated object
1300 has tasks, and the pointer type is an itype that has no master
1301 id, create a master renaming in the current context, which can
1302 only be an init_proc.
1304 2013-04-24 Robert Dewar <dewar@adacore.com>
1306 * sem_ch3.adb, sem_ch7.adb: Minor reformatting.
1307 * gnat_rm.texi: Document pragma Loop_Invariant.
1308 * sem_attr.adb (Analyze_Attribute, case Loop_Entry): This is
1309 no longer an S14_Attribute.
1310 * sem_prag.adb (Analyze_Pragma, case Loop_Invariant): Combine
1311 processing with Assert, allow message parameter, remove call
1314 2013-04-24 Thomas Quinot <quinot@adacore.com>
1316 * exp_ch4.adb: Minor reformatting.
1318 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1320 * sem_ch7.adb (Swap_Private_Dependents): New internal routine
1321 to Install_Private_Declarations, to make the installation of
1322 private dependents recursive in the presence of child units.
1323 * sem_ch3.adb (Build_Discriminated_Subtype): Initialize properly
1324 the Private_Dependents of a private subtype.
1326 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1328 * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the
1329 retrieval of the block declarations.
1330 * par-ch4.adb (P_Name): Let the name parsing machinery create
1331 a sequence of nested indexed components for attribute Loop_Entry.
1332 * sem_attr.adb (Analyze_Attribute): Add local constant
1333 Context. Reimplement part of the analysis of attribute Loop_Entry.
1334 (Convert_To_Indexed_Component): Removed.
1335 * sem_ch4.adb (Analyze_Indexed_Component_Form): Do not analyze
1336 an indexed component after it has been rewritten into attribute
1339 2013-04-24 Yannick Moy <moy@adacore.com>
1341 * snames.ads-tmpl: Minor change to list
1342 Loop_(In)variant not in configuration pragma.
1343 * sem_ch3.adb (Analyze_Declarations): Do not look at the original node
1344 for analyzing the expressions in pre/postconditions.
1346 2013-04-24 Robert Dewar <dewar@adacore.com>
1348 * gnatcmd.adb, xref_lib.adb, gnatls.adb, sem_ch13.adb: Minor
1351 2013-04-24 Yannick Moy <moy@adacore.com>
1353 * sem_ch6.adb (Analyze_Generic_Subprogram_Body,
1354 Analyze_Subprogram_Body_Helper): Reset contract node to Empty
1355 before setting entity to E_Subprogram_Body.
1356 * sem_ch8.adb (Analyze_Subprogram_Renaming): Reset contract node to
1357 Empty before setting entity to E_Subprogram_Body.
1359 2013-04-24 Vincent Celier <celier@adacore.com>
1361 * gnat_ugn.texi: Document new gnatls switch -aPdir.
1362 * gnatcmd.adb: Pass switch -aP<dir> to gnatls.
1363 * gnatls.adb (Scan_Ls_Arg): Process new switch -aP<dir>. Issue
1364 a warning for unknown switches.
1365 (Usage): Add line for new switch -aPdir.
1367 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1369 * sem_util.adb, sem_util.ads (Is_Limited_Class_Wide_Type): Return true
1370 if the type comes from a limited view, so that task attributes can be
1373 2013-04-24 Yannick Moy <moy@adacore.com>
1375 * checks.adb (Apply_Float_Conversion_Check): Do not apply checks if
1376 full expansion is not enabled.
1378 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1380 * sem_ch6.adb (Create_Extra_Formals): In Ada 2012, create extra
1381 formals if the type does not yet have a completion, and thus
1382 has no underlying view.
1384 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1386 * sem_ch13.adb (Analyze_Aspect_Specifications): Treat an aspect
1387 specification for Address as a reference, to suppress warnings
1388 on entities that may be read by an external device.
1390 2013-04-24 Sergey Rybin <rybin@adacore.com frybin>
1392 * gnat_ugn.texi: Add description of '--help' and '--version'
1393 options for ASIS tools: gnatelim, gnatmetric, gnatstub, gnatpp.
1395 2013-04-24 Arnaud Charlet <charlet@adacore.com>
1397 * gnat_rm.texi: Minor syntax fix.
1399 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1401 * exp_attr.adb (Expand_Loop_Entry_Attribute): Add extra comments on
1402 what and why is being analyzed. Remove the decoration of renamings as
1403 this simply falls out of the general analysis mechanism.
1405 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1407 * sem_res.adb (Explain_Redundancy): New routine.
1408 (Resolve_Equality_Op): Place the error concerning a redundant
1409 comparison to True at the "=". Try to explain the nature of the
1412 2013-04-24 Javier Miranda <miranda@adacore.com>
1415 * checks.adb, exp_ch6.adb (Install_Null_Excluding_Check): No
1416 check in interface thunks since it is performed at the caller
1418 (Expand_Simple_Function_Return): No accessibility check
1419 needed in thunks since the check is done by the target routine.
1421 2013-04-24 Vincent Celier <celier@adacore.com>
1423 * xref_lib.adb (Add_Entity): Use the canonical file names
1424 so that source file names with capital letters are found on
1425 platforms where file names are case insensitive.
1427 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1429 * par-ch4.adb (P_Name): Continue to parse the name extension when the
1430 construct is attribute Loop_Entry. Do not convert the attribute
1431 reference into an indexed component when there is at least one
1432 expression / range following 'Loop_Entry.
1434 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1436 * sem_ch6.adb (Contains_Enabled_Pragmas): New routine.
1437 (Process_PPCs): Generate procedure _Postconditions
1438 only when the context has invariants or predicates or enabled
1441 2013-04-24 Thomas Quinot <quinot@adacore.com>
1443 * g-socket.adb (Host_Entry): Introduce intermediate copy of
1444 memory location pointed to by Hostent_H_Addr, as it might not
1445 have sufficient alignment.
1447 2013-04-24 Yannick Moy <moy@adacore.com>
1449 * repinfo.adb (List_Rep_Info): Set the value of Unit_Casing before
1450 calling subprograms which may read it.
1452 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1454 * einfo.adb: Remove Loop_Entry_Attributes from the usage of
1455 nodes. Flag 260 is now used.
1456 (Has_Loop_Entry_Attributes): New routine.
1457 (Loop_Entry_Attributes): Removed.
1458 (Set_Has_Loop_Entry_Attributes): New routine.
1459 (Set_Loop_Entry_Attributes): Removed.
1460 (Write_Entity_Flags): Write out Flag 260.
1461 (Write_Field10_Name): Remove the output for Loop_Entry_Attributes.
1462 * einfo.ads: Remove attribute Loop_Entry_Attributes,
1463 its related comment and uses in nodes. Add new attribute
1464 Has_Loop_Entry_Attributes, related comment and uses in loop nodes.
1465 (Has_Loop_Entry_Attributes): New routine and pragma Inline.
1466 (Loop_Entry_Attributes): Removed along with pragma Inline.
1467 (Set_Has_Loop_Entry_Attributes): New routine and pragma Inline.
1468 (Set_Loop_Entry_Attributes): Removed along with pragma Inline.
1469 * exp_attr.adb (Expand_Loop_Entry_Attribute): New routine.
1470 (Expand_N_Attribute_Reference): Expand attribute 'Loop_Entry.
1471 * exp_ch5.adb: Remove with and use clause for Elists.
1472 (Expand_Loop_Entry_Attributes): Removed.
1473 (Expand_N_Loop_Statement): Add local variable Stmt. Rename local
1474 constant Isc to Scheme. When a loop is subject to attribute
1475 'Loop_Entry, retrieve the nested loop from the conditional
1476 block. Move the processing of controlled object at the end of
1478 * sem_attr.adb (Analyze_Attribute): Do not chain attribute
1479 'Loop_Entry to its related loop.
1480 * sem_ch5.adb (Analyze_Loop_Statement): Add local variable
1481 Stmt. When the iteration scheme mentions attribute 'Loop_Entry,
1482 the entire loop is rewritten into a block. Retrieve the nested
1483 loop in such cases to complete the analysis.
1484 * sem_util.ads, sem_util.adb (Find_Loop_In_Conditional_Block): New
1486 (Subject_To_Loop_Entry_Attributes): New routine.
1488 2013-04-24 Robert Dewar <dewar@adacore.com>
1490 * exp_prag.adb (Expand_Loop_Variant): Generate pragma Check
1491 (Loop_Variant, xxx) rather than Assert (xxx).
1492 * gnat_rm.texi: Document pragma Loop_Variant.
1493 * sem_prag.adb (Analyze_Pragma, case Loop_Variant): Remove call
1496 2013-04-24 Yannick Moy <moy@adacore.com>
1498 * adabkend.adb, ali-util.adb, ali.adb, debug.adb,
1499 errout.adb, errout.ads, erroutc.adb, exp_ch3.adb, exp_ch4.adb,
1500 exp_ch6.adb, exp_ch7.adb, exp_dbug.adb, exp_util.adb,
1501 expander.adb, freeze.adb, gnat1drv.adb, lib-writ.adb,
1502 lib-writ.ads, lib-xref.adb, lib-xref.ads, opt.adb, opt.ads,
1503 restrict.adb, sem_aggr.adb, sem_attr.adb, sem_ch3.adb,
1504 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_eval.adb, sem_prag.adb,
1505 sem_res.adb, sem_util.adb: Everything with name
1506 'Alfa' renamed in 'SPARK'. Update comments.
1507 Renaming of units with name 'Alfa', renamed with 'SPARK' instead.
1508 * exp_alfa.adb: renamed exp_spark.adb.
1509 * exp_alfa.ads: renamed exp_spark.ads.
1510 * get_alfa.adb: renamed get_spark_xrefs.adb.
1511 * get_alfa.ads: renamed get_spark_xrefs.ads.
1512 * lib-xref-alfa.adb: renamed lib-xref-spark_specific.adb.
1513 * put_alfa.adb: renamed put_spark_xrefs.adb.
1514 * put_alfa.ads: renamed put_spark_xrefs.ads.
1515 * alfa.adb: renamed spark_xrefs.adb.
1516 * alfa.ads: renamed spark_xrefs.ads.
1517 * alfa_test.adb: renamed spark_xrefs_test.adb.
1518 * gcc-interface/Make-lang.in: Update dependencies.
1520 2013-04-24 Robert Dewar <dewar@adacore.com>
1522 * gnat_rm.texi: Document pragma Assume.
1523 * sem_prag.adb (Analyze_Pragma, case Assume): Now processed as
1524 part of Assert, and no longer requires -gnatd.F
1526 2013-04-24 Robert Dewar <dewar@adacore.com>
1528 * gnat_rm.texi: Document pragma Assert_And_Cut.
1529 * sem_prag.adb (Analyze_Pragma, case Assert_And_Cut): Remove
1532 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1534 * sem_aux.adb: Add guard in Available_View.
1536 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1538 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Use
1539 Find_Related_Subprogram to find the associated subprogram.
1540 (Analyze_Global_In_Decl_List): Use Find_Related_Subprogram
1541 to find the associated subprogram.
1542 (Analyze_Pragma): Use Find_Related_Subprogram to find the associated
1545 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1547 * exp_ch6.adb: Remove with and use clause for Sem_Prag.
1548 (Freeze_Subprogram): Call Analyze_Subprogram_Contract to analyze
1549 the contract of a subprogram.
1550 * sem_ch3.adb: Remove with and use clause for Sem_Prag.
1551 (Analyze_Declarations): Call Analyze_Subprogram_Contract to
1552 analyze the contract of a subprogram.
1553 * sem_ch6.adb (Analyze_Subprogram_Contract): New routine.
1554 (Check_Subprogram_Contract): Removed.
1555 * sem_ch6.ads (Analyze_Subprogram_Contract): New routine.
1556 (Check_Subprogram_Contract): Removed.
1557 (Expand_Contract_Cases): Add a guard against malformed contract cases.
1558 * sem_ch13.adb (Analyze_Aspect_Specifications): Call
1559 Decorate_Delayed_Aspect_And_Pragma to decorate aspects
1560 Contract_Cases, Depends and Global. Reimplement the analysis of
1561 aspect Contract_Cases.
1562 (Decorate_Delayed_Aspect_And_Pragma): New routine.
1563 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): New routine.
1564 (Analyze_CTC_In_Decl_Part): Removed.
1565 (Analyze_Pragma): Reimplement the analysis of pragma Contract_Cases.
1566 (Analyze_Test_Case_In_Decl_Part): New routine.
1567 (Find_Related_Subprogram): New routine.
1568 (Requires_Profile_Installation): Add new formal Prag. Update
1569 the logic to take into account the origin of the pragma.
1570 * sem_prag.ads (Analyze_Contract_Cases_In_Decl_Part): New routine.
1571 (Analyze_CTC_In_Decl_Part): Removed.
1572 (Analyze_Test_Case_In_Decl_Part): New routine.
1574 2013-04-24 Robert Dewar <dewar@adacore.com>
1576 * sem_prag.adb (Process_Convention): Move Stdcall tests to
1577 Set_Convention_From_Pragma so that they are applied to each
1578 entry of a homonym set.
1579 (Process_Convention): Don't try to set convention if already set.
1581 2013-04-24 Robert Dewar <dewar@adacore.com>
1583 * gnatbind.adb: Minor reformatting.
1585 2013-04-24 Vincent Celier <celier@adacore.com>
1587 * clean.adb (Gnatclean): Add the default project search
1588 directories in the project search path after scanning the
1589 switches on the command line.
1590 (Initialize): Do not put the default project search directories in the
1591 project search path.
1592 * gnatcmd.adb (GNATcmd): Add the default project search
1593 directories in the project search path after scanning the switches
1594 on the command line.
1595 * make.adb (Initialize): Add the default project search
1596 directories in the project search path after scanning the switches
1597 on the command line.
1599 2013-04-24 Yannick Moy <moy@adacore.com>
1601 * restrict.ads (Restriction_Warnings): Initialize with all False value.
1603 2013-04-24 Robert Dewar <dewar@adacore.com>
1605 * checks.ads, checks.adb (Predicate_Checks_Suppressed): New function.
1606 * exp_util.ads, exp_util.adb (Make_Predicate_Check): Check setting of
1608 * snames.ads-tmpl (Name_Predicate_Check): New check name.
1609 * types.ads (Predicate_Check): New definition.
1610 * gnat_rm.texi: Add documentation for Predicate_Check.
1612 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1614 * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): If this
1615 is a renaming of predefined equality for an untagged record,
1616 add generated body to the freeze actions for the subprogram, to
1617 prevent freezing issues when the record has incomplete components.
1618 * exp_ch4.adb (Expand_Composite_Equality): If the type is a type
1619 without completion, return a predefined comparison instead of
1620 just False. This may happen when building the expression for
1621 record equality, when some component has a type whose completion
1622 has not been seen yet. The operation will be analyzed an expanded
1623 after the type has been frozen, at which point all component
1624 types will have been completed, or an error reported.
1626 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1628 * sem_ch13.adb (Analyze_Aspect_Specifications): Do not delay
1629 analysis of a Convention aspect.
1631 2013-04-24 Eric Botcazou <ebotcazou@adacore.com>
1633 * fe.h (Machine_Overflows_On_Target): New macro and declaration.
1634 (Signed_Zeros_On_Target): Likewise.
1636 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1638 * exp_ch6.adb: Add with and use clause for Sem_Prag.
1639 (Freeze_Subprogram): Analyze all delayed aspects for a null
1640 procedure so that they are available when analyzing the
1641 internally-generated _Postconditions routine.
1642 * exp_ch13.adb: Remove with and use clause for Sem_Prag.
1643 (Expand_N_Freeze_Entity): Move the code that analyzes delayed
1644 aspects of null procedures to exp_ch6.Freeze_Subprogram.
1645 * sem_prag.adb (Analyze_Abstract_State): Update the check on
1646 volatile requirements.
1648 2013-04-24 Bob Duff <duff@adacore.com>
1650 * ali-util.ads (Source_Record): New component Stamp_File
1651 to record from whence the Stamp came.
1652 * ali-util.adb (Set_Source_Table): Set Stamp_File component.
1653 * bcheck.adb (Check_Consistency): Print additional information in
1655 * gnatbind.adb (Gnatbind): Print additional information in
1658 2013-04-24 Robert Dewar <dewar@adacore.com>
1660 * exp_ch13.adb, sem_prag.adb: Update comments.
1661 * sem_ch3.adb, exp_ch9.adb, g-socket.adb, sem_ch13.adb: Minor
1664 2013-04-24 Doug Rupp <rupp@adacore.com>
1666 * vms_data.ads (/{NO}INHIBIT-EXEC): Document new default behavior.
1668 2013-04-24 Yannick Moy <moy@adacore.com>
1670 * sinfo.ads: Minor correction of typo.
1672 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1674 * sem_ch3.adb: Create packed array only when expander is
1677 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1679 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Install the formals only
1680 when the context warrants it.
1681 (Analyze_Global_In_Decl_List): Install the formals only when
1682 the context warrants it.
1683 (Requires_Profile_Installation): New routine.
1685 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1687 * exp_ch6.adb (Expand_N_Simple_Return_Statement): When the return
1688 type is a discriminated private type that does not require use
1689 of the secondary stack, a constrained subtype of the underlying
1690 type is created to convey the proper object size to the backend.
1691 If the return type is originally a private type, the return
1692 expression is wrapped in an unchecked_conversion. If the return
1693 expression is used subsequently in a call to the postcondition
1694 function, this conversion must be undone to prevent a spurious
1695 error on the analysis of that call.
1697 2013-04-23 Kai Tietz <ktietz@redhat.com>
1700 * raise-gcc.c (__SEH__): Additional check that SjLj isn't active.
1702 2013-04-23 Eric Botcazou <ebotcazou@adacore.com>
1703 Pascal Obry <obry@adacore.com>
1705 * gcc-interface/Makefile.in (targ): Fix target name check.
1706 (../../gnatmake$(exeext)): Add '+' for LTO.
1707 (../../gnatlink$(exeext)): Likewise.
1709 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
1711 * exp_ch9.adb (Build_PPC_Wrapper): Correct the traversal of
1712 pre- and post-conditions.
1713 (Expand_N_Task_Type_Declaration):
1714 Use the correct attribute to check for pre- and post-conditions.
1715 * exp_ch13.adb (Expand_N_Freeze_Entity): Correct the traversal of
1716 pre- and post-conditions. Analyze delayed classification items.
1717 * freeze.adb (Freeze_Entity): Use the correct attribute to
1718 check for pre- and post- conditions.
1719 * sem_ch3.adb (Analyze_Declarations): Correct the traversal
1720 of pre- and post-conditions as well as contract- and
1721 test-cases. Analyze delayed pragmas Depends and Global.
1722 * sem_ch6.adb (Check_Subprogram_Contract): Use the correct
1723 attribute to check for pre- and post-conditions, as well as
1724 contract-cases and test-cases. (List_Inherited_Pre_Post_Aspects):
1725 Correct the traversal of pre- and post- conditions.
1726 (Process_Contract_Cases): Update the comment on usage. Correct
1727 the traversal of contract-cases.
1728 (Process_Post_Conditions): Update the comment on usage. Correct the
1729 traversal of pre- and post-conditions.
1730 (Process_PPCs): Correct the traversal of pre- and post-conditions.
1731 (Spec_Postconditions): Use the correct
1732 attribute to check for pre- and post- conditions, as well as
1733 contract-cases and test-cases.
1734 * sem_ch13.adb (Analyze_Aspect_Specifications): Reimplement the
1735 actions related to aspects Depends and Global. Code refactoring
1736 for pre- and post-conditions.
1737 (Insert_Delayed_Pragma): New routine.
1738 * sem_prag.adb (Add_Item): New routine.
1739 (Analyze_Depends_In_Decl_Part): New routine.
1740 (Analyze_Global_In_Decl_Part): New routine.
1741 (Analyze_Pragma): Reimplement the actions related to aspects Depends and
1742 Global. Verify that a body acts as a spec for pragma Contract_Cases.
1743 (Chain_PPC): Use Add_Contract_Item to chain a pragma.
1744 (Chain_CTC): Correct the traversal of contract-
1745 and test-cases. Use Add_Contract_Item to chain a pragma.
1746 (Chain_Contract_Cases): Correct the traversal of contract-
1747 and test-cases. Use Add_Contract_Item to chain a pragma.
1748 (Check_Precondition_Postcondition): Update the comment on usage.
1749 (Check_Test_Case): Update the comment on usage.
1750 * sem_prag.ads (Analyze_Depends_In_Decl_Part): New routine.
1751 (Analyze_Global_In_Decl_Part): New routine.
1752 * sem_util.ads, sem_util.adb (Add_Contract_Item): New routine.
1753 * sinfo.adb (Classifications): New routine.
1754 (Contract_Test_Cases): New routine.
1755 (Pre_Post_Conditions): New routine.
1756 (Set_Classifications): New routine.
1757 (Set_Contract_Test_Cases): New routine.
1758 (Set_Pre_Post_Conditions): New routine.
1759 (Set_Spec_CTC_List): Removed.
1760 (Set_Spec_PPC_List): Removed.
1761 (Spec_CTC_List): Removed.
1762 (Spec_PPC_List): Removed.
1763 * sinfo.ads: Update the structure of N_Contruct along with all
1765 (Classifications): New routine and pragma Inline.
1766 (Contract_Test_Cases): New routine and pragma Inline.
1767 (Pre_Post_Conditions): New routine and pragma Inline.
1768 (Set_Classifications): New routine and pragma Inline.
1769 (Set_Contract_Test_Cases): New routine and pragma Inline.
1770 (Set_Pre_Post_Conditions): New routine and pragma Inline.
1771 (Set_Spec_CTC_List): Removed.
1772 (Set_Spec_PPC_List): Removed.
1773 (Spec_CTC_List): Removed.
1774 (Spec_PPC_List): Removed.
1776 2013-04-23 Doug Rupp <rupp@adacore.com>
1778 * init.c (GNAT$STOP) [VMS]: Bump sigargs[0] count by 2
1779 to account for LIB$STOP not having the chance to add the PC and
1782 2013-04-23 Robert Dewar <dewar@adacore.com>
1784 * sem_ch13.adb: Minor code reorganization (remove some redundant
1786 * sem_ch3.adb, sem_prag.adb: Minor reformatting.
1788 2013-04-23 Yannick Moy <moy@adacore.com>
1790 * einfo.ads: Minor typo fix.
1791 * sem_ch13.adb (Build_Predicate_Functions): Reject cases where
1792 Static_Predicate is applied to a non-scalar or non-static type.
1793 * sem_prag.adb: Minor typo fix.
1795 2013-04-23 Doug Rupp <rupp@adacore.com>
1797 * init.c (GNAT$STOP) [VMS]: New function.
1799 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1801 * sem_ch3.adb: Add exp_pakd to context.
1802 (Constrain_Component_Type): If the component of the parent is
1803 packed, and the record subtype being built is already frozen,
1804 as is the case for an itype, the component type itself will not
1805 be frozen, and the packed array type for it must be constructed
1808 2013-04-23 Thomas Quinot <quinot@adacore.com>
1810 * g-socket.adb, g-socket.ads (Set_Close_On_Exec): New subprogram.
1812 2013-04-23 Yannick Moy <moy@adacore.com>
1814 * err_vars.ads (Error_Msg_Qual_Level): Set variable to zero
1816 * opt.ads (Multiple_Unit_Index): Set variable to zero at declaration.
1817 * sem_util.adb (NCT_Table_Entries): Set variable to zero at declaration.
1818 * set_targ.ads (Num_FPT_Modes): Set variable to zero at declaration.
1819 * stylesw.adb (Save_Style_Check_Options): Protect testing the
1820 value of Style_Check_Comments_Spacing by a previous test that
1821 Style_Check_Comments is True.
1823 2013-04-23 Thomas Quinot <quinot@adacore.com>
1825 * sem_prag.adb, sem_prag.ads (Effective_Name): Rename to
1826 Original_Name, and move declaration to package body as this
1827 subprogram is not used from outside. Also clarify documentation.
1829 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1831 * exp_ch6.adb (Expand_N_Subprogram_Body): When compiling with
1832 initialize_scalars, disable predicate checks on the generated
1833 assignment to an out scalar parameter.
1835 2013-04-23 Gary Dismukes <dismukes@adacore.com>
1837 * sem_ch4.adb (Analyze_Allocator): Remove error
1838 check for "constrained in partial view" constraints entirely.
1840 2013-04-23 Robert Dewar <dewar@adacore.com>
1842 * einfo.ads, sem_prag.ads: Minor reformatting.
1843 * errout.ads: Comment update.
1845 2013-04-23 Yannick Moy <moy@adacore.com>
1847 * exp_ch5.adb: Minor typo.
1849 2013-04-23 Thomas Quinot <quinot@adacore.com>
1851 * gnat_ugn.texi: Fix typo.
1853 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1855 * einfo.ads: Minor documentation clarification.
1857 2013-04-23 Bob Duff <duff@adacore.com>
1859 * types.ads: Fix incorrect comment.
1861 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1863 * sem_aux.adb sem_aux.ads (Effectively_has_Constrained_Partial_View):
1864 Rename subprogram as Object_Type_Has_Constrained_Partial_View, better
1865 description of purpose.
1866 * checks.adb (Apply_Discriminant_Check): Use above renaming.
1867 * sem_ch4.adb (Analyze_Allocator): Check Has_Constrained_Partial_View
1868 of the base type, rather than using the Object_Type predicate.
1869 * sem_attr.adb (Analyze_Attribute, case 'Access): Use above renaming.
1870 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): ditto.
1871 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Constrained): Ditto.
1872 * exp_ch4.adb (Expand_N_Allocator): Ditto.
1874 2013-04-23 Robert Dewar <dewar@adacore.com>
1876 * exp_prag.adb (Expand_Pragma_Check): Check for Assert rather
1878 * sem_prag.adb (Is_Valid_Assertion_Kind): Moved to spec
1879 (Effective_Name): New function (Analyze_Pragma, case Check):
1880 Disallow [Statement_]Assertions (Check_Kind): Implement
1881 Statement_Assertions (Check_Applicable_Policy): Use Effective_Name
1882 (Is_Valid_Assertion_Kind): Allow Statement_Assertions.
1883 * sem_prag.ads (Is_Valid_Assertion_Kind): Moved here from body
1884 (Effective_Name): New function.
1885 * sem_res.adb: Minor reformatting.
1886 * snames.ads-tmpl (Name_Statement_Assertions): New entry.
1887 * gnat_rm.texi: Add documentation of new assertion kind
1888 Statement_Assertions.
1890 2013-04-23 Robert Dewar <dewar@adacore.com>
1892 * sinfo.ads, einfo.adb, sem_res.adb, exp_ch6.adb, aspects.adb: Minor
1893 reformatting and code clean up.
1895 2013-04-23 Vincent Celier <celier@adacore.com>
1897 * prj-part.ads, prj-conf.ads: Minor comment updates.
1899 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1901 * einfo.adb (Predicate_Function): For a private type, retrieve
1902 predicate function from full view.
1903 * aspects.adb (Find_Aspect): Ditto.
1904 * exp_ch6.adb (Expand_Actuals): If the formal is class-wide and
1905 the actual is a definite type, apply predicate check after call.
1906 * sem_res.adb: Do not apply a predicate check before the call to
1907 a generated Init_Proc.
1909 2013-04-23 Robert Dewar <dewar@adacore.com>
1911 * sem_ch13.adb (Analyze_Aspect_Specifications): Significant
1912 rewrite to make sure Is_Ignore is properly captured when aspect
1914 * sem_ch6.adb: Minor reformatting.
1915 * sem_prag.adb (Analyze_Pragma): Do not test policy at time of
1916 pragma for the case of a pragma coming from an aspect (already
1917 tested when we analyzed the aspect).
1919 2013-04-23 Vincent Celier <celier@adacore.com>
1921 * prj-conf.adb (Parse_Project_And_Apply_Config): New
1922 Boolean parameter Implicit_Project, defaulted to False. Call
1923 Prj.Part.Parse with Implicit_Project.
1924 * prj-conf.ads (Parse_Project_And_Apply_Config): New Boolean
1925 parameter Implicit_Project, defaulted to False.
1926 * prj-part.adb (Parse_Single_Project): New Boolean parameter
1927 Implicit_Project, defaulted to False. When Implicit_Project is
1928 True, change the Directory of the project node to the Current_Dir.
1929 * prj-part.ads (Parse): New Boolean parameter, defaulted to False
1931 2013-04-23 Robert Dewar <dewar@adacore.com>
1933 * exp_util.adb: Minor reformatting.
1935 2013-04-23 Robert Dewar <dewar@adacore.com>
1937 * xoscons.adb: Minor reformatting.
1939 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
1941 * sem_prag.adb (Check_Mode): Ensure that a
1942 self-referential output appears in both input and output lists of
1943 the subprogram as categorized by aspect Global.
1944 (Check_Usage): Rename formal parameters to better illustrate their
1945 function. Update all uses of the said formals.
1947 2013-04-23 Thomas Quinot <quinot@adacore.com>
1949 * exp_util.adb, exp_util.ads (Fully_Qualified_Name_String): New
1950 parameter Append_NUL to make NUL-termination optional.
1951 * exp_dist.adb: Consistently use the above throughout instead of
1952 Get_Library_Unit_Name_String.
1954 2013-04-23 Robert Dewar <dewar@adacore.com>
1956 * sem_util.adb, sem_res.adb, prj-tree.adb, prj-tree.ads: Minor
1959 2013-04-23 Pascal Obry <obry@adacore.com>
1961 * xoscons.adb: Remove unused use clause, minor code clean-up.
1963 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1965 * sem_util.ads, sem_util.adb: Code cleanup for Is_Expression_Function
1966 (can apply to any scope entity).
1967 * sem_res.adb (Resolve_Call): If the call is within another
1968 expression function it does not constitute a freeze point.
1970 2013-04-23 Yannick Moy <moy@adacore.com>
1972 * exp_ch6.adb (Expand_Actuals): Test that Subp
1973 is overloadable before testing if it's an inherited operation.
1975 2013-04-23 Robert Dewar <dewar@adacore.com>
1977 * a-envvar.adb, a-envvar.ads, exp_util.adb, sem_ch12.adb: Minor
1980 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1982 * sem_ch3.adb (Analyze_Object_Declarations): Undo previous patch.
1983 * exp_util.adb (Expand_Subtype_From_Expr): If the expression
1984 is a source entity and the declaration is for an aliased
1985 unconstrained array, create a new subtype so that the flag
1986 Is_Constr_Subt_For_UN_Aliased does not pollute other entities.
1988 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
1990 * aspects.adb: Move tables Base_Aspect and Inherited_Aspect
1991 from the spec to the body.
1992 (Find_Aspect): Update the call to Get_Aspect_Id.
1993 (Get_Aspect_Id): New version that takes an aspect specification.
1994 * aspects.ads: Reorganize all aspect related tables.
1995 (Get_Aspect_Id): New version that takes an aspect specification.
1996 * par_sco.adb (Traverse_Aspects): Update the call to Get_Aspect_Id.
1997 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Update
1998 the call to Get_Aspect_Id.
1999 * sem_ch13.adb (Analyze_Aspect_At_Freeze_Point): Update the
2000 call to Get_Aspect_Id. (Analyze_Aspect_Specifications): Update
2001 the call to Get_Aspect_Id. Update the call to Impl_Defined_Aspect.
2003 2013-04-23 Robert Dewar <dewar@adacore.com>
2005 * sem_prag.adb (Fix_Error): Rewrite to do more accurate job
2006 of getting proper name in the case where pragma comes from
2008 * sem_ch3.adb, sinfo.ads, par-ch6.adb, exp_ch6.adb: Minor reformatting.
2010 2013-04-23 Yannick Moy <moy@adacore.com>
2012 * sem_ch6.adb (Process_PPCs): Do not filter postconditions based on
2015 2013-04-23 Thomas Quinot <quinot@adacore.com>
2017 * par_sco.adb (Traverse_Aux_Decls): Minor code reorganization.
2019 2013-04-23 Doug Rupp <rupp@adacore.com>
2021 * init.c: Move facility macros outside IN_RTS.
2023 2013-04-23 Thomas Quinot <quinot@adacore.com>
2025 * freeze.adb (Freeze_Entity): For the case of a bit-packed
2026 array time that is known at compile time to have more that
2027 Integer'Last+1 elements, issue an error, since such arrays are
2030 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
2032 * sem_prag.adb (Analyze_Dependency_Clause): Update all calls to
2033 Analyze_Input_Output.
2034 (Analyze_Input_List): Update all calls to Analyze_Input_Output.
2035 (Analyze_Input_Output): Add formal parameter Self_Ref along with
2036 comment on its usage. Update all calls to Analyze_Input_Output.
2037 (Analyze_Pragma): Add new local variable Self_Ref to capture
2038 the presence of a self-referential dependency clause. Update
2039 all calls to Analyze_Input_Output.
2040 (Check_Mode): Add formal parameter Self_Ref along with comment on its
2041 usage. Verify the legality of a self-referential output.
2043 2013-04-23 Ed Schonberg <schonberg@adacore.com>
2045 * exp_ch6.adb: Add predicate checks on by-copy parameter.
2047 2013-04-23 Vincent Celier <celier@adacore.com>
2049 * a-envvar.adb, a-envvar.ads (Value): New.
2051 2013-04-22 Yannick Moy <moy@adacore.com>
2053 * exp_prag.adb (Expand_Pragma_Loop_Variant): Rewrite pragma as
2054 null statement if ignored.
2055 * sem_ch6.adb (Expand_Contract_Cases): Do nothing if pragma is ignored.
2056 * sem_prag.adb (Analyze_Pragma): Keep analyzing ignored pragmas.
2058 2013-04-22 Hristian Kirtchev <kirtchev@adacore.com>
2060 * sem_prag.adb (Analyze_Contract_Case): New routine.
2061 (Analyze_Pragma): Aspect/pragma Contract_Cases can
2062 now be associated with a library level subprogram.
2063 Add circuitry to detect illegal uses of aspect/pragma Contract_Cases
2064 in a subprogram body.
2065 (Chain_Contract_Cases): Rename formal parameter Subp_Decl to
2066 Subp_Id. Remove local constant Subp. The entity of the subprogram
2067 is now obtained via the formal paramter.
2069 2013-04-22 Ed Schonberg <schonberg@adacore.com>
2071 * sem_ch3.adb (Analyze_Object_Declaration): Do not set
2072 Is_Constr_Subt_For_Unc_Aliased on the subtype of the expression,
2073 if the expression is a source entity.
2075 2013-04-22 Yannick Moy <moy@adacore.com>
2077 * exp_prag.adb, sinfo.ads, sem_prag.ads: Minor correction of typos in
2079 * sem_ch6.adb (Expand_Contract_Cases): Add location to message.
2081 2013-04-22 Thomas Quinot <quinot@adacore.com>
2083 * sem_prag.adb (Fix_Error): For a pragma rewritten from another
2084 pragma, fix up error message to include original pragma name.
2085 * par_sco.adb: Minor reformatting.
2087 2013-04-22 Robert Dewar <dewar@adacore.com>
2089 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb,
2090 sem_ch6.adb, opt.ads: Minor reformatting.
2092 2013-04-22 Pascal Obry <obry@adacore.com>
2094 * gnat_ugn.texi, prj-nmsc.adb, projects.texi: Add check for
2095 Library_Standalone and Library_Kind.
2097 2013-04-22 Ed Schonberg <schonberg@adacore.com>
2099 * exp_ch6.adb (Expand_Actuals): If the call is to an
2100 inherited operation and the actual is a by-reference type with
2101 predicates, add predicate call to post-call actions.
2102 * sem_util.adb (Is_Inherited_Operation_For_Type): Fix coding
2103 error: a type declaration has a defining identifier, not an Etype.
2104 * sem_res.adb: Restore code removed because of above error.
2106 2013-04-22 Doug Rupp <rupp@adacore.com>
2108 * init.c (__gnat_handle_vms_condition): Also match C$_SIGINT.
2110 2013-04-22 Yannick Moy <moy@adacore.com>
2112 * gnat_rm.texi, exp_util.adb, sem_prag.adb, sem_prag.ads, par-ch2.adb,
2113 opt.ads, sem_ch13.adb: Minor correction of typos in comments/doc.
2115 2013-04-22 Vincent Celier <celier@adacore.com>
2117 * prj-nmsc.adb (Check_Library_Attributes): Set Library_Dir to
2118 No_Path_Information only when Directories_Must_Exist_In_Projects
2120 (Get_Directories): Set Object_Directory
2121 or Exec_Directory to No_Path_Information only when
2122 Directories_Must_Exist_In_Projects is False.
2124 2013-04-22 Yannick Moy <moy@adacore.com>
2126 * par-prag.adb, sem_attr.adb, sem_ch6.adb, sem_prag.adb, sem_warn.adb,
2127 snames.ads-tmpl, sinfo.ads, sem_util.ads: Remove all references to
2128 Pragma_Contract_Case and Name_Contract_Case.
2130 2013-04-22 Yannick Moy <moy@adacore.com>
2132 * aspects.ads, aspects.adb, sem_ch13.adb: Removal of references to
2134 * gnat_ugn.texi, gnat_rm.texi Description of Contract_Case replaced by
2135 description of Contract_Cases.
2137 2013-04-12 Robert Dewar <dewar@adacore.com>
2139 * makeutl.adb, prj-nmsc.adb: Minor reformatting.
2141 2013-04-12 Robert Dewar <dewar@adacore.com>
2143 * exp_util.adb (Make_Invariant_Call): Use Check_Kind instead
2145 * gnat_rm.texi (Check_Policy): Update documentation for new
2146 Check_Policy syntax.
2147 * sem_prag.adb (Check_Kind): Replaces Check_Enabled
2148 (Analyze_Pragma, case Check_Policy): Rework to accomodate new
2149 syntax (like Assertion_Policy).
2150 * sem_prag.ads (Check_Kind): Replaces Check_Enabled.
2152 2013-04-12 Doug Rupp <rupp@adacore.com>
2154 * init.c (SS$_CONTROLC, SS$_CONTINUE) [VMS]: New macros.
2155 (__gnat_handle_vms_condition) [VMS]: Dispatch on the Crtl/C user
2156 handler if installed.
2157 * ctrl_c.c (__gnat_install_int_handler)
2158 [VMS]: Install a dummy sigaction handler to trigger the real
2159 user handler dispatch in init.c/__gnat_handle_vms_condition.
2160 (__gnat_uninstall_int_handler) [VMS]: Likewise.
2162 2013-04-12 Vincent Celier <celier@adacore.com>
2164 * clean.adb (Parse_Cmd_Line): Set Directories_Must_Exist_In_Projects
2165 to False if switch is specified.
2166 * makeutl.adb (Initialize_Source_Record): Do not look for the
2167 object file if there is no object directory.
2168 * opt.ads (Directories_Must_Exist_In_Projects): New Boolean
2169 variable, defaulted to True.
2170 * prj-nmsc.adb (Check_Library_Attributes): Do not fail if library
2171 directory does not exist when Directories_Must_Exist_In_Projects is
2173 (Get_Directories): Do not fail when the object or the exec directory
2174 do not exist when Directories_Must_Exist_In_Projects is False.
2176 2013-04-12 Robert Dewar <dewar@adacore.com>
2178 * namet.adb, namet.ads: Minor addition (7 arg version of Nam_In).
2179 * exp_prag.adb, sem_ch3.adb, sem_intr.adb, sem_type.adb, exp_util.adb,
2180 sem_aux.adb, exp_ch9.adb, sem_ch7.adb, sem_ch10.adb, sem_prag.adb,
2181 par-ch2.adb, tbuild.adb, rtsfind.adb, freeze.adb, sem_util.adb,
2182 sem_res.adb, sem_attr.adb, exp_ch2.adb, prj-makr.adb, sem_elab.adb,
2183 exp_ch4.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, par-prag.adb,
2184 prj-nmsc.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
2185 sem_eval.adb, exp_intr.adb, sem_ch13.adb, exp_cg.adb, lib-xref.adb,
2186 sem_disp.adb, exp_ch3.adb: Minor code reorganization (use Nam_In).
2188 2013-04-12 Doug Rupp <rupp@adacore.com>
2190 * init.c: Don't clobber condition code on VMS.
2192 2013-04-12 Robert Dewar <dewar@adacore.com>
2194 * exp_aggr.adb: Minor reformatting.
2195 * namet.ads, namet.adb (Nam_In): New functions.
2197 2013-04-12 Robert Dewar <dewar@adacore.com>
2199 * einfo.adb (Has_Dynamic_Predicate_Aspect): New flag.
2200 (Has_Static_Predicate_Aspect): New flag.
2201 * einfo.ads (Has_Dynamic_Predicate_Aspect): New flag.
2202 (Has_Static_Predicate_Aspect): New flag.
2203 * exp_ch9.adb: Minor reformatting.
2204 * exp_util.adb (Make_Invariant_Call): Check_Enabled now handles
2206 * gnat1drv.adb: Remove setting of Debug_Pragmas_Enabled,
2207 since this switch is gone and control of Debug is done with
2209 * gnat_rm.texi: Update documentation for Assertion_Policy and
2210 Check_Policy pragmas.
2211 * opt.adb (Debug_Pragmas_Disabled[_Config]): Removed
2212 (Debug_Pragmas_Enabled[_Config]): Removed Since debug now
2213 controlled by Assertion_Enabled.
2214 * opt.ads (Debug_Pragmas_Disabled[_Config]): Removed
2215 (Debug_Pragmas_Enabled[_Config]): Removed Since debug now
2216 controlled by Assertion_Enabled.
2217 * par-ch2.adb (Scan_Pragma_Argument_Association): Allow new
2219 * sem_attr.adb: Minor reformatting.
2220 * sem_ch13.adb (Analyze_Aspect_Specification): Disable aspect
2221 if DISABLE policy applies.
2222 * sem_ch6.adb (Grab_PPC): Check original name of aspect for
2223 aspect from pragma (Process_PPCs): Properly check assertion policy.
2224 * sem_prag.adb (Check_Enabled): Rewritten for new Assertion_Policy
2225 (Check_Appicable_Policy): New procedure.
2226 (Is_Valid_Assertion_Kind): New function.
2227 (Rewrite_Assertion_Kind): New procedure.
2228 (Analyze_Pragma): Handle case of disabled assertion pragma.
2229 (Analyze_Pragma, case Assertion_Policy): Rewritten for Ada 2012.
2230 (Analyze_Pragma, case Check): Deal with 'Class possibilities.
2231 (Analyze_Pragma, case Check_Policy): Deal with 'Class possibilities.
2232 (Analyze_Pragma, case Contract_Class): New handling of ignored pragma.
2233 (Analyze_Pragma, case Debug): New control with Assertion_Policy.
2234 (Analyze_Pragma, case Debug_Policy): Now consistent with
2236 (Analyze_Pragma, case Loop_Invariant): New handling of ignored
2238 (Analyze_Pragma, case Loop_Variant): New handling of ignored pragma.
2239 (Analyze_Pragma, case Precondition): Use proper name for Check pragma.
2240 (Analyze_Pragma, case Check_Enabled): Rewritten for new policy stuff.
2241 * sem_prag.ads (Check_Enabled): Rewritten for new
2242 Assertion_Policy stuff.
2243 (Check_Appicable_Policy): New procedure.
2244 * sinfo.adb (Is_Disabled): New flag.
2245 (Is_Ignored): New flag.
2246 * sinfo.ads (Is_Disabled): New flag.
2247 (Is_Ignored): New flag.
2248 (N_Pragma_Argument_Association): New 'Class forms.
2249 * snames.ads-tmpl: New names Name_uPre, Name_uPost,
2250 Name_uType_Invariant, Name_uInvariant.
2251 * switch-c.adb: Remove setting of Debug_Pragmas_Enabled for -gnata.
2252 * tree_io.ads (ASIS_Version_Number): Updated (remove
2253 read write of obsolete flags Debug_Pragmas_Disabled and
2254 Debug_Pragmas_Enabled.
2256 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2258 * exp_aggr.adb (Get_Explicit_Discriminant_Value): Subsidiary
2259 of Build_Record_Aggr_Code, used to retrieve explicit values
2260 for inherited discriminants in an extension aggregate, when the
2261 ancestor type is unconstrained.
2263 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2265 * sem_attr.adb (Check_Stream_Attribute): If restriction
2266 No_Default_Stream_Attributes is active, it is illegal to use a
2267 predefined elementary type stream attribute either by itself,
2268 or more importantly as part of the attribute subprogram for a
2269 composite type. However, if the broader restriction No_Streams
2270 is active, then stream operations are not generated, and there
2273 2013-04-12 Robert Dewar <dewar@adacore.com>
2275 * gnatbind.adb: Minor reformatting.
2277 2013-04-12 Bob Duff <duff@adacore.com>
2279 * sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a
2280 call only in the static elaboration model.
2282 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2284 * sem_prag.adb (Analyze_Input_List): Detect an illegal dependency
2285 clause where both input and output lists are null.
2286 (Analyze_Pragma): Update the grammar of pragma Depends.
2288 2013-04-12 Vincent Celier <celier@adacore.com>
2290 * gnatbind.adb (No_Restriction_List): Exclude restrictions that
2291 take a parameter value, not a count.
2292 * prj.ads, prj.adb (Remove_All_Restricted_Languages): New procedure.
2293 * projects.texi: Complete documentation of attribute Roots.
2295 2013-04-12 Thomas Quinot <quinot@adacore.com>
2297 * exp_ch3.adb, exp_util.ads, checks.adb, freeze.adb, sem_attr.adb,
2298 sem_ch3.adb: Minor reformatting.
2299 * exp_ch4.adb (Size_In_Storage_Elements): Minor documentation
2300 improvement: note that the computation is pessimistic for bit
2302 * gnat_rm.texi (Range_Length): Fix minor error in description
2305 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2307 * aspects.adb (Find_Aspect): New routine.
2308 (Find_Value_Of_Aspect): New routine.
2309 (Has_Aspect): Reimplemented.
2310 * aspects.ads (Find_Aspect): New routine.
2311 (Find_Value_Of_Aspect): New routine, previously known as Find_Aspect.
2312 * exp_ch5.adb (Expand_Iterator_Loop): Update the call to Find_Aspect.
2313 * exp_util.adb (Is_Iterated_Container): Update the call to Find_Aspect.
2314 * sem_ch4.adb (Try_Container_Indexing): Update calls to Find_Aspect.
2315 * sem_ch5.adb (Analyze_Iterator_Specification): Update
2316 the call to Find_Aspect. Use function Has_Aspect for better
2318 (Preanalyze_Range): Use function Has_Aspect for better readability.
2319 * sem_ch13.adb (Check_One_Function): Update the call to Find_Aspect.
2320 * sem_prag.adb (Analyze_Pragma): There is no longer need to
2321 look at the parent to extract the corresponding pragma for
2324 2013-04-12 Robert Dewar <dewar@adacore.com>
2326 * checks.adb, sem_elab.adb, repinfo.adb, sem_ch4.adb, restrict.adb,
2327 restrict.ads: Minor reformatting.
2329 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2331 * lib-xref.adb: Retrieve original name of classwide type if any.
2333 2013-04-12 Thomas Quinot <quinot@adacore.com>
2335 * exp_ch11.ads: Minor reformatting.
2337 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2339 * aspects.adb: Alphabetize subprogram bodies in this unit. Add
2340 an entry for Aspect_Ghost in the table of canonical aspects.
2341 (Has_Aspect): New routine.
2342 * aspects.ads: Add Aspect_Ghost to all relevant
2343 tables. Alphabetize subprograms in this unit.
2344 (Has_Aspect): New routine.
2345 * einfo.adb: Add with and use clauses for Aspects.
2346 (Is_Ghost_Function): New routine.
2347 * einfo.ads: Add new synthesized attribute Is_Ghost_Function and
2348 update the structure of the related nodes.
2349 (Is_Ghost_Function): New routine.
2350 * exp_ch4.adb (Find_Enclosing_Context): Use routine
2351 Is_Body_Or_Package_Declaration to terminate a search.
2352 (Is_Body_Or_Unit): Removed.
2353 * exp_util.adb (Within_Case_Or_If_Expression): Use routine
2354 Is_Body_Or_Package_Declaration to terminate a search.
2355 * par-prag.adb: Add pragma Ghost to the list of pragmas that do
2356 not need special processing by the parser.
2357 * sem_attr.adb (Analyze_Access_Attribute): Detect an
2358 illegal use of 'Access where the prefix is a ghost function.
2359 (Analyze_Attribute): Use routine Is_Body_Or_Package_Declaration
2360 to terminate a search. (Check_References_In_Prefix): Use routine
2361 Is_Body_Or_Package_Declaration to terminate a search.
2362 * sem_ch4.adb (Analyze_Call): Mark a function when it appears
2363 inside an assertion expression. Verify the legality of a call
2364 to a ghost function.
2365 (Check_Ghost_Function_Call): New routine.
2366 * sem_ch6.adb (Analyze_Function_Call): Code reformatting. Move
2367 the setting of attribute In_Assertion_Expression to Analyze_Call.
2368 (Check_Overriding_Indicator): Detect an illegal attempt to
2369 override a function with a ghost function.
2370 * sem_ch12.adb (Preanalyze_Actuals): Detect an illegal use of
2371 a ghost function as a generic actual.
2372 * sem_elab.adb (Check_Internal_Call_Continue): Update the call
2374 * sem_prag.adb: Add an entry for pragma Ghost in the table
2375 of significant arguments.
2376 (Analyze_Pragma): Do not analyze
2377 an "others" case guard. Add processing for pragma Ghost. Use
2378 Preanalyze_Assert_Expression when analyzing the expression of
2379 pragmas Loop_Invariant and Loop_Variant.
2380 * sem_util.adb (Get_Subprogram_Entity): Reimplemented.
2381 (Is_Body_Or_Package_Declaration): New routine.
2382 * sem_util.ads: Alphabetize subprotrams in this unit.
2383 (Is_Body_Or_Package_Declaration): New routine.
2384 * sinfo.adb (In_Assertion): Rename to In_Assertion_Expression.
2385 (Set_In_Assertion): Rename to Set_In_Assertion_Expression.
2386 * sinfo.ads: Rename flag In_Assertion to In_Assertion_Expression
2387 to better reflect its use. Update all places that mention the flag.
2388 (In_Assertion): Rename to In_Assertion_Expression. Update
2389 related pragma Inline. (Set_In_Assertion): Rename to
2390 Set_In_Assertion_Expression. Update related pragma Inline.
2391 * snames.ads-tmpl: Add new predefined name Ghost. Add new pragma
2394 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2396 * sem_prag.adb (Set_Imported): Do not generate error for multiple
2397 Import in CodePeer mode.
2398 * s-rident.ads: Fix minor typo.
2400 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2402 * checks.adb (Insert_Valid_Check): Do not insert validity check
2403 in the body of the generated predicate function, to prevent
2406 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2408 * s-rident.ads: Add various missing Ada 2012 restrictions:
2409 No_Access_Parameter_Allocators, No_Coextensions,
2410 No_Use_Of_Attribute, No_Use_Of_Pragma.
2411 * snames.ads-tmpl: Add corresponding names.
2412 * restrict.ads restrict.adb: Subprograms and data structures to
2413 handle aspects No_Use_Of_Attribute and No_Use_Of_Pragma.
2414 * sem_ch4.adb: Correct name of restrictions is
2415 No_Standard_Allocators_After_Elaboration.
2416 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Check
2417 violation of restriction No_Use_Of_Attribute.
2418 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2419 Set restrictions No_Use_Of_Pragma and No_Use_Of_Attribute.
2420 (Analyze_Pragma): Check violation of restriction No_Use_Of_Pragma.
2421 * sem_res.adb: Check restrictions No_Access_Parameter_Allocators
2422 and No_Coextensions.
2423 * bcheck.adb: Correct name of restrictions is
2424 No_Standard_Allocators_After_Elaboration.
2425 * gnatbind.adb: Correct name of restrictions is
2426 No_Standard_Allocators_After_Elaboration.
2428 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2430 * sem_prag.adb (Analyze_Pragma, (Check_Mode_Restriction_In_Function):
2431 Correct error message format.
2433 2013-04-12 Robert Dewar <dewar@adacore.com>
2435 * sem_attr.adb: Minor reformatting.
2437 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2439 * sem_elab.adb (Within_Elaborate_All): Do not examine a context
2440 item that has not been analyzed, because the unit may have errors,
2441 or the context item may come from a proper unit inserted at the
2442 point of a stub and not analyzed yet.
2444 2013-04-12 Thomas Quinot <quinot@adacore.com>
2446 * gnat1drv.adb, repinfo.adb, repinfo.ads (Repinfo.List_Array_Info,
2447 List_Record_Info): Also include scalar storage order information in
2450 2013-04-12 Yannick Moy <moy@adacore.com>
2452 * sem_ch6.adb (Process_Contract_Cases): Update code to apply to
2453 Contract_Cases instead of Contract_Case pragma.
2455 2013-04-12 Robert Dewar <dewar@adacore.com>
2457 * a-cfdlli.ads, g-socket.adb, s-fileio.adb: Minor reformatting.
2459 2013-04-12 Yannick Moy <moy@adacore.com>
2461 * sem_attr.adb (Analyze_Attribute): Update analyse of
2462 Attribute_Old and Attribute_Result so they are allowed in the
2463 right-hand-side of an association in a Contract_Cases pragma.
2464 * sem_prag.adb (Analyze_CTC_In_Decl_Part): Add pre-analysis of
2465 the expressions in a Contract_Cases pragma.
2467 2013-04-12 Robert Dewar <dewar@adacore.com>
2469 * sem.ads, opt.ads: Minor comment edits.
2470 * sem_warn.adb, sem_ch6.adb: Minor reformatting.
2472 2013-04-12 Claire Dross <dross@adacore.com>
2474 * a-cfdlli.adb a-cfdlli.ads (List, Not_No_Element, Iterate,
2475 Reverse_Iterate, Query_Element, Update_Element, Read, Write): Removed,
2476 not suitable for formal analysis.
2478 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2480 * sem_prag.adb (Analyze_Abstract_State): Use Defining entity
2481 to locate package entity, which may be a child unit.
2483 2013-04-12 Thomas Quinot <quinot@adacore.com>
2485 * g-socket.adb, g-socket.ads (Connect_Socket, version with timeout): If
2486 the specified timeout is 0, do not attempt to determine whether the
2487 connection succeeded.
2489 2013-04-12 Doug Rupp <rupp@adacore.com>
2491 * s-fileio.adb (Form_RMS Context_Key): Fix some thinkos.
2493 2013-04-12 Doug Rupp <rupp@adacore.com>
2495 * s-fileio.adb: Minor reformatting.
2497 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2499 * sem_warn.adb (Check_Infinite_Loop_Warning): Do not warn if
2500 the last statement in the analyzed loop is an unconditional
2503 2013-04-12 Robert Dewar <dewar@adacore.com>
2505 * opt.ads (Style_Check_Main): New switch.
2506 * sem.adb (Semantics): Set Style_Check flag properly for new
2507 unit to be analyzed.
2508 * sem_ch10.adb (Analyze_With_Clause): Don't reset Style_Check,
2509 the proper setting of this flag is now part of the Semantics
2511 * switch-c.adb (Scan_Front_End_Switches): Set Style_Check_Main
2512 for -gnatg and -gnaty
2514 2013-04-12 Doug Rupp <rupp@adacore.com>
2516 * s-crtl.ads (fopen, freopen): Add vms_form parameter
2517 * i-cstrea.ads (fopen, freopen): Likewise.
2518 * adaint.h (__gnat_fopen, __gnat_freopen): Likewise.
2519 * adaint.c (__gnat_fopen, __gnat_freopen): Likewise.
2520 [VMS]: Split out RMS keys and call CRTL function appropriately.
2521 * s-fileio.adb (Form_VMS_RMS_Keys, Form_RMS_Context_Key): New
2523 (Open, Reset): Call Form_VMS_RMS_Keys. Call fopen,freopen with
2525 * gnat_rm.texi: Document implemented RMS keys.
2527 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2529 * sem_ch13.adb (Analyze_Aspect_Specifications):
2530 Insert the corresponding pragma for aspect Abstract_State at
2531 the top of the visible declarations of the related package.
2532 Previously this was only done when the package is a compilation
2535 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2537 * gnat_ugn.texi: Further menu clean ups.
2538 * sem_prag.adb, opt.ads: Minor reformatting.
2539 * sem_util.ads: Minor comment fix.
2541 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2543 * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect
2544 Depends is now a delayed aspect. The delay is required
2545 due to the interplay between aspects Depends and Global.
2546 (Check_Aspect_At_Freeze_Point): Add an entry for aspect Depends.
2547 * sem_prag.adb: Reformat various error messages.
2548 (Add_Item): New subsidiary routine.
2549 (Analyze_Pragma): Add new variables
2550 Global_Seen, Result_Seen, Subp_Inputs and Subp_Outputs. The
2551 analysis of pragma Depends now has the capability to check
2552 the proper mode and usage of subprogram inputs and outputs.
2553 (Appears_In): New routine.
2554 (Check_Function_Return): New routine.
2555 (Check_Mode): New routine.
2556 (Check_Usage): New routine.
2557 (Collect_Subprogram_Inputs_Outputs): New routine.
2559 2013-04-12 Bob Duff <duff@adacore.com>
2561 * par-ch7.adb (P_Package): Initialize Sloc in the newly-pushed scope
2564 2013-04-12 Robert Dewar <dewar@adacore.com>
2566 * switch-c.adb: Minor fix to wording of error message for
2569 2013-04-12 Robert Dewar <dewar@adacore.com>
2571 * impunit.adb: Add s-multip and s-mudido to list of impl defined
2573 * gnat_rm.texi: Add documentation for
2574 System.Multiprocessors[.Dispatching_Domains].
2576 2013-04-12 Ben Brosgol <brosgol@adacore.com>
2578 * gnat_ugn.texi: Completion of menu cleanups.
2580 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2582 * sem_prag.adb (Diagnose_Multiple_Pragmas): Relax the rules
2583 in Relaxed_RM_Semantics.
2585 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2587 * set_targ.adb (elab code): Add support for non gcc back-ends
2588 where save_argv is null.
2590 2013-04-12 Robert Dewar <dewar@adacore.com>
2592 * gnat1drv.adb (Gnat1drv): Test Target_Dependent_Info_Write_Name.
2593 * opt.ads (Target_Dependent_Info_Read): Add _Name, now an access
2594 type (Target_Dependent_Info_Write): Add _Name, now an access type.
2595 * set_targ.adb (Write_Target_Dependent_Values): Use name
2596 from -gnatet switch stored in Target_Dependent_Info_Write_Name
2597 (Read_Target_Dependent_Values): Use name from -gnateT switch
2598 stored in Target_Dependent_Info_Read_Name.
2599 * switch-c.adb: New form of -gnatet and -gnateT switches.
2600 * usage.adb: New form of -gnatet and -gnateT switches with
2603 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2605 * gcc-interface/decl.c (elaborate_expression_1): Skip only constant
2606 arithmetics when looking for a read-only variable in the expression.
2608 2013-04-11 Javier Miranda <miranda@adacore.com>
2610 * check.ads, exp_ch6.adb (Install_Null_Excluding_Check): No check in
2611 interface thunks since it is performed at the caller side.
2612 (Expand_Simple_Function_Return): No accessibility check needed in thunks
2613 since the check is done by the target routine.
2615 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2617 * sem_prag.adb (Analyze_Pragma, case Priority): pre-analyze
2618 expression with type Any_Priority.
2619 * exp_ch9.adb (Initialize_Protection): Check that the value
2620 of the priority expression is within the bounds of the proper
2623 2013-04-11 Robert Dewar <dewar@adacore.com>
2625 * sem_prag.adb, prj-env.adb: Minor reformatting.
2627 2013-04-11 Ben Brosgol <brosgol@adacore.com>
2629 * gnat_ugn.texi: Clean ups.
2631 2013-04-11 Yannick Moy <moy@adacore.com>
2633 * set_targ.adb: Minor comment update.
2635 2013-04-11 Pascal Obry <obry@adacore.com>
2637 * gnat_ugn.texi: Remove obsolete comment about DLL calling
2640 2013-04-11 Javier Miranda <miranda@adacore.com>
2642 * exp_ch6.adb (Expand_Call): For the call to the target primitive
2643 of an interface thunks do not compute the extra actuals; just
2644 propagate the extra actuals received by the thunk.
2645 * exp_disp.adb (Expand_Interface_Thunk): Decorate new attribute
2647 * sem_ch6.adb (Create_Extra_Formals): Do not generate extra
2648 formals in interface thunks whose target primitive has no extra
2651 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2653 * sem_prag.adb (Analyze_Pragma): Detect
2654 a renaming by looking at the Renamed_Object attribute.
2655 (Is_Renaming): Removed.
2657 2013-04-11 Vincent Celier <celier@adacore.com>
2659 * prj-env.adb (Initialize_Default_Project_Path): Take
2660 into account a project path file, specified by environment
2661 variable GPR_PROJECT_PATH_FILE, before taking into account
2663 * projects.texi: Add documentation for GPR_PROJECT_PATH_FILE
2665 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2667 * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
2668 a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
2669 a-cfdlli.adb, a-cfdlli.ads, a-cborma.adb, a-cborma.ads, a-cidlli.adb,
2670 a-cidlli.ads, a-ciormu.adb, a-ciormu.ads, a-cihase.adb, a-cihase.ads,
2671 a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads, a-cbhama.adb,
2672 a-cbhama.ads, a-cborse.adb, a-cborse.ads, a-ciorma.adb, a-cobove.adb,
2673 a-ciorma.ads, a-cobove.ads, a-coormu.adb, a-coormu.ads, a-cohase.adb,
2674 a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbhase.adb, a-cbhase.ads:
2675 Move Iterator operations from body to private part of spec.
2677 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2679 * ttypes.ads, get_targ.ads: More minor rewording of comments.
2681 2013-04-11 Johannes Kanig <kanig@adacore.com>
2683 * debug.adb: Document use of switch -gnatd.Z.
2685 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2687 * sem_prag.adb (Analyze_Pragma): Both pragma Depends and Global can now
2688 support renamings of entire objects. Legal renamings are replaced by
2689 the object they rename.
2690 (Is_Renaming): New routine.
2692 2013-04-11 Yannick Moy <moy@adacore.com>
2694 * set_targ.adb, opt.ads: Minor changes in comments.
2696 2013-04-11 Ben Brosgol <brosgol@adacore.com>
2698 * gnat_ugn.texi: Minor clean ups.
2700 2013-04-11 Robert Dewar <dewar@adacore.com>
2702 * nlists.ads, nlists.adb, treepr.adb, treepr.ads: Move debugging
2703 function p from Nlists to Treepr.
2705 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2707 * sem_disp.adb (Check_Dispatching_Context): If the context is
2708 a contract for a null procedure defer error reporting until
2709 postcondition body is created.
2710 * exp_ch13.adb (Expand_N_Freeze_Entity): If the entity is a
2711 null procedure, complete the analysis of its contracts so that
2712 calls within classwide conditions are properly rewritten as
2715 2013-04-11 Thomas Quinot <quinot@adacore.com>
2717 * sem_ch10.adb, sem_ch12.adb: Minor reformatting.
2719 2013-04-11 Robert Dewar <dewar@adacore.com>
2721 * exp_attr.adb, sem_res.adb, sem_attr.adb: Minor reformatting.
2723 2013-04-11 Robert Dewar <dewar@adacore.com>
2725 * atree.adb, atree.ads (Node31): New function.
2726 (Set_Node31): New procedure.
2728 2013-04-11 Robert Dewar <dewar@adacore.com>
2730 * errout.ads: Minor typo correction.
2732 2013-04-11 Javier Miranda <miranda@adacore.com>
2734 * einfo.ad[sb] (Thunk_Entity/Set_Thunk_Entity): New attribute.
2736 2013-04-11 Robert Dewar <dewar@adacore.com>
2738 * back_end.adb (Register_Back_End_Types): Moved to Get_Targ
2739 * back_end.ads (C_String): Moved to Get_Targ
2740 (Register_Type_Proc): Moved to Get_Targ (Register_Back_End_Types):
2742 * cstand.adb (Register_Float_Type): New interface
2743 (Create_Back_End_Float_Types): Use entries in FPT_Mode_Table.
2744 * get_targ.adb (Register_Back_End_Types): Moved here from
2746 * get_targ.ads (C_String): Moved here from Back_End
2747 (Register_Type_Proc): Moved here from Back_End
2748 (Register_Back_End_Types): here from Back_End.
2749 * gnat1drv.adb (GGnat11drv): Add call to
2750 Write_Target_Dependent_Values;
2751 * lib-writ.ads, lib-writ.adb (Write_ALI): Remove section writing
2752 obsolete target dependent info.
2753 * opt.ads (Generate_Target_Dependent_Info):
2754 Removed (Target_Dependent_Info_Read): New flag
2755 (Target_Dependent_Info_Write): New flag
2756 * output.adb: Minor comment change
2757 * s-os_lib.ads: Minor reformatting
2758 * set_targ.ads, set_targ.adb: Minor reformatting.
2759 * switch-c.adb (Scan_Switches.First_Ptr): New variable
2760 (Scan_Front_End_Switches): Check -gnatd.b, -gnateT come first
2761 (Scan_Front_End_Switches): Handle -gnatet, -gnateT
2762 * ttypes.ads: Remove documentation section on target dependent
2763 info in ali file Remove four letter codes, no longer used Instead
2764 of using Get_Targ.Get_xxx, we use Set_Targ.xxx
2765 * usage.adb: Add usage lines for -gnatet/-gnateT
2766 * gcc-interface/Make-lang.in: Update dependencies.
2768 2013-04-11 Thomas Quinot <quinot@adacore.com>
2770 * sem_ch4.adb: Update documentation.
2771 * sinfo.ads (N_Expression_With_Actions): Ditto.
2773 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2775 * sem_ch13.adb (Analyze_Aspect_Specifications):
2776 Add a guard to prevent the double insertion of the same aspect
2777 into a rep item list. This previously led to a circularity.
2779 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2781 * sem_attr.adb (Eval_Attribute, case 'Access): Reject attribute
2782 reference if the prefix is the dereference of an anonymous access
2784 * exp_attr.adb (Expand_N_Attribute_Reference, Access_Cases): Handle
2785 properly a reference to the current instance of a protected type
2786 from within a protected subprogram.
2787 * sem_res.adb (Find_Unique_Access_Type): Treat
2788 Attribute_Access_Type like Allocator_Type when resolving an
2791 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2793 * xgnatugn.adb: Remove obsolete comments.
2795 2013-04-11 Robert Dewar <dewar@adacore.com>
2797 * back_end.ads, back_end.adb: Minor reformatting.
2798 * set_targ.ads, set_targ.adb: New files.
2800 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2802 * sem_case.adb (Check_Against_Predicate): New routine.
2803 (Check_Choices): When the type covered by the list of choices
2804 is a static subtype with a static predicate, check all choices
2805 agains the predicate.
2806 (Issue_Msg): All versions removed.
2807 (Missing_Choice): New routines.
2808 * sem_ch4.adb: Code and comment reformatting.
2809 (Analyze_Case_Expression): Do not check the choices when the case
2810 expression is being preanalyzed and the type of the expression
2811 is a subtype with a static predicate.
2812 (Has_Static_Predicate): New routine.
2813 * sem_ch13.adb: Code and comment reformatting. (Build_Range):
2814 Always build a range even if the low and hi bounds denote the
2815 same value. This is needed by the machinery in Check_Choices.
2816 (Build_Static_Predicate): Always build a range even if the low and
2817 hi bounds denote the same value. This is needed by the machinery
2820 2013-04-11 Robert Dewar <dewar@adacore.com>
2822 * einfo.ads, sem_util.adb, exp_ch6.adb, xgnatugn.adb: Minor
2825 2013-04-11 Doug Rupp <rupp@adacore.com>
2827 * gnatlink.adb: Fold program basename to lower case on VMS for
2830 2013-04-11 Matthew Heaney <heaney@adacore.com>
2832 * a-rbtgbo.adb (Generic_Equal): Initialize Result variable before
2835 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2837 * xgnatugn.adb: Remove dead code (handling of @ifset/@ifclear).
2839 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2841 * gnat_ugn.texi: Remove some use of ifset in menus. Not strictly
2842 needed, and seems to confuse some versions of makeinfo.
2844 2013-04-11 Javier Miranda <miranda@adacore.com>
2846 * einfo.adb (Is_Thunk): Remove assertion.
2847 (Set_Is_Thunk): Add assertion.
2848 * einfo.ads (Is_Thunk): Complete documentation.
2849 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Code cleanup.
2850 * exp_ch3.ad[sb] (Is_Variable_Size_Array): Moved to sem_util
2851 (Is_Variable_Size_Record): Moved to sem_util
2852 * exp_ch6.adb (Expand_Call): Code cleanup.
2853 (Expand_N_Extended_Return_Statement): Code cleanup.
2854 (Expand_Simple_Function_Return): Code cleanup.
2855 * exp_disp.adb Remove dependency on exp_ch3
2856 (Expand_Interface_Thunk): Add minimum decoration needed to set
2858 * sem_ch3.ad[sb] (Is_Constant_Bound): moved to sem_util
2859 * sem_util.ad[sb] (Is_Constant_Bound): Moved from
2860 sem_ch3 (Is_Variable_Size_Array): Moved from exp_ch3
2861 (Is_Variable_Size_Record): Moved from exp_ch3
2863 2013-04-11 Javier Miranda <miranda@adacore.com>
2865 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Do
2866 not add cleanup actions in thunks associated with interface types.
2867 * exp_ch3.ad[sb] (Is_Variable_Size_Record): Move declaration to
2869 * exp_ch4.adb (Tagged_Conversion): Update call to
2870 Expand_Interface_Conversion since the parameter Is_Static is no
2872 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Adding
2873 assertion to ensure that interface thunks are never handled by
2875 (Expand_N_Simple_Function_Return): Do not rewrite this statement
2876 as an extended return statement in interface thunks, and do not
2877 perform copy in the secondary stack if the return statement is
2879 * exp_disp.adb (Expand_Dispatching_Call): No longer displace
2880 the pointer to the returned object in functions returning interface
2882 (Expand_Interface_Thunk): For functions returning interface types
2883 displace the pointer to the returned object.
2884 (Expand_Interface_Conversion): Remove formal
2885 Is_Static since this subprogram can now evaluate it locally.
2886 * sem_ch3.adb (Add_Internal_Interface_Entities): For functions
2887 propagate the type returned by the covered interface primitive to
2888 the internal interface entity. Needed by the thunk to generate
2889 the code which displaces "this" to reference the corresponding
2890 secondary dispatch table.
2891 * sem_disp.adb (Propagate_Tag): Update call to
2892 Expand_Interface_Conversion since the parameter Is_Static is no
2894 * sem_res.adb (Resolve_Type_Conversion): Update calls to
2895 Expand_Interface_Conversion since the parameter Is_Static is no
2896 longer needed plus code cleanup.
2898 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2900 * init.c (RETURN_ADDR_OFFSET): Delete as unused.
2902 2013-04-11 Robert Dewar <dewar@adacore.com>
2904 * a-crbtgk.adb, a-ciorse.adb, a-crbtgo.adb, a-coorse.adb, a-rbtgbo.adb,
2905 a-cborse.adb, a-rbtgso.adb, exp_ch3.adb: Minor reformatting.
2907 2013-04-11 Yannick Moy <moy@adacore.com>
2909 * exp_ch4.adb (Expand_N_Selected_Component): Do not expand
2910 discriminant check for Unchecked_Union.
2911 * sem_res.adb (Resolve_Selected_Component): Set flag
2912 Do_Discriminant_Check even when expansion is not performed.
2913 * sinfo.ads (Do_Discriminant_Check): Update documentation for the case
2916 2013-04-11 Thomas Quinot <quinot@adacore.com>
2918 * sem_ch13.adb (Same_Representation): Two types with different scalar
2919 storage order never have the same representation.
2921 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2923 * xgnatugn.adb (Push_Conditional): Simplify handling,
2924 no longer need to keep track of "excluding" sections.
2925 (Currently_Excluding): Removed.
2926 (Process_Source_File):
2927 Set unw/vms flag so that texinfo can do the whole handling of
2928 @ifset/@ifclear sections. Fix handling of nested @ifset/@ifclear
2930 * gnat_ugn.texi: Add a section on performing unassisted install
2933 2013-04-11 Johannes Kanig <kanig@adacore.com>
2935 * debug.adb: Document usage of -gnatd.Q switch.
2937 2013-04-11 Matthew Heaney <heaney@adacore.com>
2939 * a-crbtgk.adb (Ceiling, Find, Floor): Adjust locks
2940 before element comparisons.
2941 (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint):
2943 * a-crbtgo.adb, a-rbtgbo.adb (Generic_Equal): Adjust locks before
2944 element comparisons.
2945 * a-rbtgso.adb (Difference, Intersection): Adjust locks
2946 before element comparisons.
2947 (Is_Subset, Overlap): Ditto
2948 (Symmetric_Difference, Union): Ditto
2949 * a-btgbso.adb (Set_Difference, Set_Intersection): Adjust locks
2950 before element comparisons.
2951 (Set_Subset, Set_Overlap): Ditto
2952 (Set_Symmetric_Difference, Set_Union): Ditto
2953 * a-coorse.adb, a-ciorse.adb, a-cborse.adb
2954 (Update_Element_Preserving_Key): Adjust locks before element
2955 comparisons (Replace_Element): Ditto
2957 2013-04-11 Pascal Obry <obry@adacore.com>
2959 * prj-attr.adb, projects.texi, snames.ads-tmpl: Remove Build_Slaves
2962 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2964 * exp_ch3.adb (Build_Equivalent_Aggregate): Subsidiary of
2965 Expand_N_Object_Declaration, used to construct an aggregate
2966 with static components whenever possible, so that objects of a
2967 discriminated type can be initialized without calling the init.
2970 2013-04-11 Vincent Celier <celier@adacore.com>
2972 * prj-makr.adb (Process_Directory): On VMS, always delete,
2973 then recreate the temporary file with Create_Output_Text_File,
2974 otherwise the output redirection does not work properly.
2976 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2978 * urealp.ads: Fix minor typo.
2980 2013-04-11 Fabien Chouteau <chouteau@adacore.com>
2982 * cio.c (mktemp): Don't use tmpnam function from the
2983 system on VxWorks in kernel mode.
2985 2013-04-11 Vincent Celier <celier@adacore.com>
2987 * make.adb (Compile): Clarify the error message reported
2988 when gnatmake refuses to compile a runtime source.
2989 (Start_Compile_If_Possible): Ditto.
2991 2013-04-11 Vincent Celier <celier@adacore.com>
2993 * gnat_ugn.texi: Add documentation about -gnatc and gnatmake.
2995 2013-04-11 Vincent Celier <celier@adacore.com>
2997 * switch-c.adb: Document internal switches.
2998 * usage.adb: Remove lines for internal switches: -gnatea, -gnateO,
2999 -gnatez and -gnateO.
3001 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3003 * par-ch6.adb (P_Subprogram): Attach aspects to subprogram stub.
3004 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Allow aspects on
3006 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze generated
3007 pre/post pragmas at once before analyzing the proper body.
3008 * sem_prag.adb (Chain_PPC): Handle pragma that comes from an
3009 aspect on a subprogram stub.
3010 * aspects.adb: Aspect specifications can appear on a
3011 subprogram_Body_Stub.
3013 2013-04-11 Vincent Celier <celier@adacore.com>
3015 * gnatname.adb: Minor comment fix.
3017 2013-04-11 Vincent Celier <celier@adacore.com>
3019 * prj-makr.adb (Process_Directory): Create a new temporary
3020 file for each invocation of the compiler, in directory pointed
3021 by environment variable TMPDIR if it exists.
3023 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3025 * gnat_ugn.texi: Minor editing/clean ups.
3027 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3029 * sem_ch6.adb (Analyze_Null_Procedure): New subprogram, mostly
3030 extracted from Analyze_Subprogram_Declaration, to handle null
3031 procedure declarations that in ada 2012 can be completions of
3032 previous declarations.
3034 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3036 * sem_prag.adb (Entity_Of): Moved to Exp_Util.
3037 * exp_util.ads, exp_util.adb (Entity_Of): New routine.
3039 2013-04-11 Robert Dewar <dewar@adacore.com>
3041 * g-spipat.ads: Minor comment fix.
3043 2013-04-11 Robert Dewar <dewar@adacore.com>
3045 * sem_prag.adb, sem_util.adb, sem_res.adb, exp_ch4.adb: Minor
3048 2013-04-11 Thomas Quinot <quinot@adacore.com>
3050 * exp_util.ads (Fully_Qualified_Name_String): Document that the
3051 constructed literal is the entity name in all upper case.
3053 2013-04-11 Thomas Quinot <quinot@adacore.com>
3055 * sem_util.adb (Set_Entity_With_Style_Check): Fix logic of
3056 check for implementation defined identifiers.
3058 2013-04-11 Yannick Moy <moy@adacore.com>
3060 * checks.adb (Apply_Type_Conversion_Checks): Add an explanation
3061 of why range check and length are put on different nodes.
3062 * exp_ch4.adb (Apply_Type_Conversion_Checks): Remove check marks
3063 when doing their expansion.
3065 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3067 * sem_util.ads, sem_util.adb (Get_Incomplete_View_Of_Ancestor):
3068 New function to implement the notion introduced in RM 7.3.1
3069 (5.2/3): in a child unit, a derived type is within the derivation
3070 class of an ancestor declared in a parent unit, even if there
3071 is an intermediate derivation that does not see the full view
3073 * sem_res.adb (Valid_Conversion): if all else fails, examine if an
3074 incomplete view of an ancestor makes a numeric conversion legal.
3076 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3078 * sem_ch6.adb: in Ada2012 operators can only have in
3081 2013-04-11 Vincent Celier <celier@adacore.com>
3083 * makeutl.adb (Create_Binder_Mapping_File): Do not put into
3084 the mapping file ALI files of sources that have been replaced.
3086 2013-04-11 Vincent Celier <celier@adacore.com>
3088 * projects.texi: Add subsection Duplicate Sources in Projects.
3090 2013-04-11 Vincent Celier <celier@adacore.com>
3092 * gnat_ugn.texi: Add documentation for gnatmake switch -droot_dir/**
3094 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3096 * init.c (__gnat_install_handler): Only set up an alternate
3097 stack when installing a signal handler for SIGSEGV.
3099 2013-04-11 Thomas Quinot <quinot@adacore.com>
3101 * g-socket.adb (Connect_Socket, timeout version): Call
3102 underlying connect operation directly, not through the 2-argument
3103 Connect_Socket thick binding, in order to avoid raising a junk
3104 exception for the EINPROGRESS return.
3106 2013-04-11 Robert Dewar <dewar@adacore.com>
3108 * a-cdlili.adb: Minor addition of pragma Warnings (Off).
3110 2013-04-11 Robert Dewar <dewar@adacore.com>
3112 * hostparm.ads: Minor reformatting.
3114 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3116 * aspects.ads, aspects.adb: Add Aspect_Depends to all the relevant
3118 * elists.ads, elists.adb (Contains): New routine.
3119 * par-prag.adb: Pragma Depends does not need any special treatment
3121 * sem_ch13.adb (Analyze_Aspect_Specifications):
3122 Transform aspect Depends into a corresponding pragma.
3123 (Check_Aspect_At_Freeze_Point): Aspect Depends does not need
3124 inspection at its freeze point.
3125 * sem_prag.adb (Analyze_Pragma): Perform analysis and
3126 normalization of pragma Depends. Remove the use of function
3127 Is_Duplicate_Item. Use End_Scope to uninstalle the formal
3128 parameters of a subprogram. Add a value for pragma Depends in
3130 (Is_Duplicate_Item): Removed.
3131 * snames.ads-tmpl: Add predefined name for Depends as well as
3132 a pragma identifier.
3134 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3136 * gnat1drv.adb: Minor code clean up.
3138 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3140 * debug.adb, sem_ch13.adb (Analyze_Enumeration_Representation_Clause):
3141 Ignore enumeration rep clauses by default in CodePeer mode, unless
3142 -gnatd.I is specified.
3144 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3146 * sem_util.adb (Safe_To_Capture_Value): If the node belongs to
3147 an expression that has been attached to the else_actions of an
3148 if-expression, the capture is not safe.
3150 2013-04-11 Yannick Moy <moy@adacore.com>
3152 * checks.adb (Apply_Type_Conversion_Checks): Put check mark on type
3153 conversion for arrays.
3155 2013-04-11 Robert Dewar <dewar@adacore.com>
3157 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
3159 2013-04-11 Johannes Kanig <kanig@adacore.com>
3161 * adabkend.adb: Minor comment addition.
3163 2013-04-11 Matthew Heaney <heaney@adacore.com>
3165 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb ("="): Increment
3166 lock counts before entering loop.
3168 (Is_Sorted, Merge, Sort): Ditto.
3169 (Reverse_Find): Ditto.
3170 (Splice_Internal): Internal operation to refactor splicing logic.
3171 (Splice): Some logic moved into Splice_Internal.
3173 2013-04-11 Johannes Kanig <kanig@adacore.com>
3175 * adabkend.adb (Scan_Compiler_Arguments): Do not call
3176 Set_Output_Object_File_Name in Alfa_Mode
3177 * gnat1drv.adb (Adjust_Global_Switches): Take Alfa_Mode into account.
3178 * opt.ads: Fix documentation.
3180 2013-04-11 Robert Dewar <dewar@adacore.com>
3182 * sem_res.adb: Minor code reorganization and comment fixes.
3183 * sem_type.adb: Minor reformatting.
3185 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3187 * exp_ch4.adb (Process_Transient_Object): Add new
3188 local variable Fin_Call. Remove and explain ??? comment. Use the
3189 Actions of logical operators "and then" and "or else" to insert
3190 the generated finalization call.
3192 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3194 * gnat_rm.texi: Fix typo.
3196 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3198 * sem_res.adb: Minor reformatting.
3200 2013-04-11 Robert Dewar <dewar@adacore.com>
3202 * atree.h: Add declarations for Flag255-Flag289 Fix declaration
3203 of Field30 (was wrong, but no effect, since not yet referenced by
3204 back end) Add declarations for Field31-Field35 Add declarations
3206 * einfo.ads, einfo.adb (Has_Invariants): No longer applies to
3208 (Has_Predicates): No longer applies to functions.
3209 (Is_Predicate_Function): New flag.
3210 (Is_Predicate_Function_M): New flag.
3211 (Is_Invariant_Procedure): New flag.
3212 (Predicate_Function_M): New function.
3213 (Set_Predicate_Function_M): New procedure.
3214 * exp_ch11.adb (Expand_N_Raise_Expression): Take care of special
3215 case of appearing in predicate used for membership test.
3216 * exp_ch3.adb (Insert_Component_Invariant_Checks): Set
3217 Is_Invariant_Procedure flag.
3218 * exp_ch4.adb (Expand_Op_In): Call special predicate function
3219 that takes care of raise_expression nodes in the predicate.
3220 * exp_util.ads, exp_util.adb (Make_Predicate_Call): Add argument Mem for
3222 * sem_ch13.adb (Build_Predicate_Functions): New name for
3223 Build_Predicate_Function. Major rewrite to take care of raise
3224 expression in predicate for membership tests.
3225 * sem_res.adb (Resolve_Actuals): Include both predicate functions
3226 in defense against infinite predicate function loops.
3227 * sinfo.ads, sinfo.adb (Convert_To_Return_False): New flag.
3229 2013-04-11 Robert Dewar <dewar@adacore.com>
3231 * sem_prag.adb: Minor reformatting.
3233 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3235 * lib-xref.adb: Generate reference for component of anonymous
3238 2013-04-11 Robert Dewar <dewar@adacore.com>
3240 * stand.ads: Minor reformatting.
3242 2013-04-11 Matthew Heaney <heaney@adacore.com>
3244 * a-convec.adb, a-coinve.adb, a-cobove.adb ("="): Increment lock
3245 counts before entering loop.
3246 (Find, Find_Index): Ditto.
3247 (Is_Sorted, Merge, Sort): Ditto.
3248 (Reverse_Find, Reverse_Find_Index): Ditto.
3250 2013-04-11 Robert Dewar <dewar@adacore.com>
3252 * exp_ch11.ads, exp_ch11.adb (Expand_N_Raise_Expression): New procedure.
3253 * exp_util.adb (Insert_Actions): Add entry for N_Raise_Expression.
3254 * expander.adb: Add call to Expand_N_Raise_Expression.
3255 * par-ch11.adb (P_Raise_Expression): New procedure.
3256 * par-ch4.adb (P_Relation): Handle Raise_Expression.
3257 * par.adb (P_Raise_Expression): New procedure.
3258 * sem.adb: Add handling for N_Raise_Expression.
3259 * sem_ch11.ads, sem_ch11.adb (Analyze_Raise_Expression): New procedure.
3260 * sem_res.adb (Resolve): Add handling for N_Raise_Expression.
3261 * sinfo.ads, sinfo.adb (N_Raise_Expression): New node.
3262 * sprint.adb (Sprint_Node_Actual): Add handling for N_Raise_Expression.
3263 * stand.ads (Any_Type): Document use with N_Raise_Expression.
3265 2013-04-11 Vincent Celier <celier@adacore.com>
3267 * gnat_ugn.texi: Remove section "The Development Environments"
3268 now that all predefined attributes are documented, including
3269 those in package IDE.
3271 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3273 * sem_ch6.adb: Preserve parent link in copy of expression.
3275 2013-04-11 Vincent Celier <celier@adacore.com>
3277 * projects.texi: Complete rewrite of the subsection Attributes
3278 in section "Project file Reference".
3280 2013-04-11 Robert Dewar <dewar@adacore.com>
3282 * exp_ch4.adb: Minor reformatting.
3284 2013-04-11 Robert Dewar <dewar@adacore.com>
3286 * exp_ch4.adb (Expand_Concatenate): Remove wrapping in
3287 expression-with-actions node. No longer needed given fix to
3288 sem_prag and caused loss of some useful warnings.
3289 * sem.ads: Minor reformatting.
3290 * sem_prag.adb (Check_Disabled): Removed, to be replaced by not
3291 Check_Enabled. These two routines were curiously incompatible
3293 (Analyze_Pragma, case Check): Make sure we do
3294 not expand the string argument if the check is disabled. Avoid
3295 use of Check_Disabled, which resulted in missing analysis in
3297 * sem_prag.ads (Check_Disabled): Removed, to be replaced by not
3298 Check_Enabled. These two routines were curiously incompatible
3301 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3303 * exp_ch4.adb (Process_Transient_Object): Use
3304 an unchecked conversion when associating a transient controlled
3305 object with its "hook".
3307 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3309 * sem_prag.adb (Analyze_Pragma, case
3310 Preelaborable_Initialization): The pragma is legal if it comes
3311 from an aspect on the private view of the type, even though its
3312 analysis point takes place later at the freeze point.
3314 2013-04-11 Robert Dewar <dewar@adacore.com>
3316 * sem_ch6.adb: Minor reformatting.
3318 2013-04-11 Yannick Moy <moy@adacore.com>
3320 * ali-util.adb (Read_Withed_ALIs): Do not consider it an error to
3321 read ALI files with No_Object=True in Alfa mode.
3322 * gnat1drv.adb: Set appropriately Back_End_Mode in Alfa mode, whether
3323 this is during frame condition generation of translation to Why.
3325 2013-04-11 Robert Dewar <dewar@adacore.com>
3327 * exp_ch4.adb: Minor code reorganization
3328 * types.ads: Minor reformatting.
3330 2013-04-11 Johannes Kanig <kanig@adacore.com>
3332 * opt.ads New global boolean Frame_Condition_Mode to avoid
3333 referring to command line switch.
3334 * gnat1drv.adb (Gnat1drv) set frame condition mode when -gnatd.G
3335 is present, and disable Code generation in that case. Disable
3336 ALI file generation when switch is *not* present.
3338 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3340 * sem_ch6.adb (Analyze_Expression_Function): Perform the
3341 pre-analysis on a copy of the expression, to prevent downstream
3342 visbility issues involving operators and instantiations.
3344 2013-04-11 Johannes Kanig <kanig@adacore.com>
3346 * debug.adb: Reservation and documentation for -gnatd.G switch.
3347 * gnat1drv.adb (Adjust_Global_Switches) Take into account -gnatd.G
3348 switch, and set ALI file generation accordingly.
3350 2013-04-11 Robert Dewar <dewar@adacore.com>
3352 * exp_ch4.adb, exp_dist.adb: Minor reformatting.
3353 * gnat_rm.texi, gnat_ugn.texi: -020 Add documentation clarifying that
3354 check names introduced with pragma Check_Name are suppressed by -gnatp.
3356 2013-04-11 Vincent Celier <celier@adacore.com>
3358 * gnat_ugn.texi, projects.texi: Move chapter "Tools Supporting Project
3359 Files" from projects.texi to gnat_ugn.texi.
3361 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3363 * gcc-interface/Make-lang.in: Update dependencies.
3365 2013-04-11 Yannick Moy <moy@adacore.com>
3367 * gnat1drv.adb (Adjust_Global_Switches): Allow missing body in Alfa
3370 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3372 * exp_ch4.adb (Expand_N_Allocator): Detect the
3373 allocation of an anonymous controlled object where the type of
3374 the context is named. Use the pool and finalization master of
3375 the named access type to allocate the object.
3377 2013-04-11 Vincent Celier <celier@adacore.com>
3379 * gnat_ugn.texi: Remove most mentions of gprbuild.
3380 * projects.texi: Remove all mentions of asociative array
3383 2013-04-11 Robert Dewar <dewar@adacore.com>
3385 * sem_prag.adb, sem_attr.adb, gnat1drv.adb, prj-makr.adb,
3386 opt.ads, sem_ch13.adb: Minor reformatting.
3387 * debug.adb: Minor comment fix (remove junk .I doc).
3389 2013-04-11 Thomas Quinot <quinot@adacore.com>
3391 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Rtsfind.PCS_Version, case
3392 PolyORB): Bump to 6.
3393 (Exp_Dist.PolyORB_Support): Replace TC_Build with
3396 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3398 * debug.adb, sem_prag.adb, par-ch2.adb, sem_attr.adb, gnat1drv.adb,
3399 exp_disp.adb, opt.ads, sem_ch13.adb (Relaxed_RM_Semantics): New flag.
3400 Enable this flag in CodePeer mode, and also via -gnatd.M.
3401 Replace some uses of CodePeer_Mode by Relaxed_RM_Semantics.
3403 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3405 * sem_ch8.adb (Check_Constrained_Object): If a subtype is created
3406 from the renamed object in an object renaming declaration with
3407 an unconstrained nominal subtype, freeze the created subtype at
3408 once, to prevent order of elaboration issues in the backend.
3410 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3412 * exp_aggr.adb (Aggr_Size_OK): Refine setting of Max_Aggr_Size
3413 in particular in CodePeer mode.
3415 2013-04-11 Vincent Celier <celier@adacore.com>
3417 * gnat_ugn.texi: Add documentation for backup copies of project
3420 2013-04-11 Tristan Gingold <gingold@adacore.com>
3422 * gnat_rm.texi: Add Detect_BLocking in the ravenscar profile
3425 2013-04-11 Vincent Celier <celier@adacore.com>
3427 * gnatname.adb (Scan_Args): Recognize new switch --no-backup
3428 (Usage): Add line for --no-backup.
3429 * opt.ads (No_Backup): New Boolean variable, initialized to False.
3430 (Ada_Version_Default): Switch to Ada 2012 by default.
3431 * prj-makr.adb (Initialize): Create a backup for an existing
3432 project file if gnatname is not invoked with --no-backup.
3434 2013-04-11 Thomas Quinot <quinot@adacore.com>
3436 * exp_ch4.adb: Minor code improvement: replace various calls to
3437 Make_If_Statement in expansion with Make_Implicit_If_Statement.
3439 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3441 * ali.adb: Fix minor typo.
3443 2013-04-11 Thomas Quinot <quinot@adacore.com>
3445 * exp_ch4.adb (Find_Enclosing_Context): Add missing case of
3446 N_Procedure_Call_Statement.
3448 2013-04-11 Robert Dewar <dewar@adacore.com>
3450 * debug.adb: Minor comment fix.
3452 2013-04-11 Johannes Kanig <kanig@adacore.com>
3454 * debug.adb: Remove comment for -gnatd.G.
3456 2013-04-11 Thomas Quinot <quinot@adacore.com>
3458 * exp_ch4.adb (Expand_Record_Equality.Suitable_Element):
3459 Remove recursive routine, replace with...
3460 (Expand_Record_Equality.Element_To_Compare): New subroutine,
3461 implement iterative search for next element to compare.
3462 Add explanatory comment in the tagged case.
3464 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3466 * sem_ch5.adb: remove spurious warning from non-empty loop.
3467 * sem_ch8.adb (Enclosing_Instance): Make public to other routines
3468 in the package, in order to suppress redundant semantic checks
3469 on subprogram renamings in nested instantiations.
3471 2013-04-11 Robert Dewar <dewar@adacore.com>
3473 * errout.ads: Minor reformatting.
3474 * sem_eval.adb (Why_Not_Static): Now issues continuation messages
3475 (Why_Not_Static): Test for aggregates behind string literals.
3476 * sem_eval.ads (Why_Not_Static): Now issues continuation messages.
3478 2013-04-11 Robert Dewar <dewar@adacore.com>
3480 * exp_ch4.adb (Expand_Concatenation): Wrap expansion in
3481 Expressions_With_Actions.
3483 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3485 * sem_ch6.adb (Base_Types_Match): For an actual type in an
3486 instance, the base type may itself be a subtype, so find true
3487 base type to determine compatibility.
3489 2013-04-11 Robert Dewar <dewar@adacore.com>
3491 * s-osprim-mingw.adb, sem_ch3.adb, sem_prag.adb, sem_util.adb.
3492 makeutl.adb, sem_ch8.adb: Minor reformatting.
3494 2013-04-11 Vincent Celier <celier@adacore.com>
3496 * gnat_ugn.texi: Minor fixes for VMS.
3497 * ug_words: Minor addition: -gnato? => /OVERFLOW_CHECKS=?.
3499 2013-04-11 Robert Dewar <dewar@adacore.com>
3501 * usage.adb (Usage): Minor edit to -gnatW message
3503 2013-04-11 Robert Dewar <dewar@adacore.com>
3505 * exp_aggr.adb (Expand_N_Aggregate): Add circuit for handling
3506 others for string literal case. Also add big ??? comment about
3507 this new code, which should be redundant, but is not.
3508 * sem_eval.adb (Eval_Concatenation): Handle non-static case
3509 properly (Eval_String_Literal): Handle non-static literal properly
3511 2013-03-20 Tobias Burnus <burnus@net-b.de>
3513 * i-fortra.ads: Update comment, add Ada 2012's optional
3514 Star and Kind data types for enhanced interoperability.
3516 2013-03-16 Eric Botcazou <ebotcazou@adacore.com>
3518 * gnatvsn.ads (Library_Version): Bump to 4.9.
3520 2013-03-08 Cesar Strauss <cestrauss@gmail.com>
3523 * seh_init.c (Raise_From_Signal_Handler): Declare as no-return.
3524 (__gnat_SEH_error_handler): Likewise. Remove final return.
3526 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3528 * gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring
3529 out for an unimplemented attribute.
3531 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3533 * gcc-interface/decl.c (gnat_to_gnu_field): Remove the wrapper around
3534 a misaligned integral type if a size is specified for the field.
3536 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3538 * gcc-interface/trans.c (Raise_Error_to_gnu) <CE_Index_Check_Failed>:
3539 Record the unpadded type of the index type on the RCI stack.
3541 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3543 * gcc-interface/trans.c (emit_range_check): Assert that the range type
3544 is a numerical type and remove useless local variables.
3546 2013-02-25 Eric Botcazou <ebotcazou@adacore.com>
3548 * gcc-interface/ada-tree.h: Back out change accidentally committed.
3550 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3553 * gnat-style.texi (@title): Remove @hfill.
3554 * projects.texi: Avoid line wrapping inside of @pxref or @xref.
3556 2013-02-14 Rainer Emrich <rainer@emrich-ebersheim.de>
3559 * tracebak.c: Cast from pointer via FARPROC.
3561 2013-02-07 Simon Wright <simon@pushface.org>
3564 * init.c (__darwin_major_version): New function for x86-64/Darwin.
3565 (__gnat_adjust_context_for_raise) [Darwin]: Disable the workaround
3566 on Darwin 12 and above.
3568 2013-02-06 Rainer Emrich <rainer@emrich-ebersheim.de>
3571 * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via
3572 SECURITY_DESCRIPTOR *
3573 (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE
3574 (__gnat_portable_spawn): Fix cast to char* const*
3575 (add_handle): Cast from pointer via void **
3576 (add_handle): Cast from pointer via int *
3577 (__gnat_locate_exec_on_path): Cast from pointer via TCHAR *
3578 (__gnat_locate_exec_on_path): Cast from pointer via char *
3579 * initialize.c (append_arg): Cast from pointer via LPWSTR
3580 (__gnat_initialize): Cast from pointer via LPWSTR
3581 * seh_init.c (__gnat_map_SEH): Cast from pointer via FARPROC
3583 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3585 * gcc-interface/Make-lang.in: Enable System.Stack_Checking.Operations
3586 target pairs on VxWorks 5 only.
3588 2013-02-06 Arnaud Charlet <charlet@adacore.com>
3590 * gcc-interface/Make-lang.in: Update dependencies.
3592 2013-02-06 Vincent Celier <celier@adacore.com>
3594 * prj-proc.adb (Process_Aggregated_Projects): Use a new project
3595 node tree for each project tree rooted at an aggregated project.
3597 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3599 * sem_util.adb (Is_Interface_Conversion): New routine.
3600 (Object_Access_Level): Detect an interface conversion
3601 that has been rewritten into a different construct. Use the
3602 original form of the conversion to find the access level of
3605 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3607 * einfo.ads (Has_Pragma_No_Inline): New flag using Flag201.
3608 (Has_Pragma_No_Inline): Declare and mark as inline.
3609 (Set_Has_Pragma_No_Inline): Likewise.
3610 * einfo.adb (Has_Pragma_No_Inline): New function.
3611 (Set_Has_Pragma_No_Inline): New procedure.
3612 (Write_Entity_Flags): Handle Has_Pragma_No_Inline.
3613 * snames.ads-tmpl (Name_No_Inline): New pragma-related name.
3614 (Pragma_Id): Add Pragma_No_Inline value.
3615 * par-prag.adb (Prag): Handle Pragma_Inline.
3616 * sem_prag.adb (Inline_Status): New enumeration type.
3617 (Process_Inline): Change Active parameter
3618 to Inline_Status and add support for suppressed inlining.
3619 (Analyze_Pragma) <Pragma_Inline>: Adjust to above change.
3620 <Pragma_Inline_Always>: Likewise.
3621 <Pragma_No_Inline>: Implement new pragma No_Inline.
3622 (Sig_Flags): Add Pragma_No_Inline.
3623 * gnat_rm.texi (Implementation Defined Pragmas): Add No_Inline.
3624 * gnat_ugn.texi (Switches for gcc): Mention Pragma No_Inline.
3626 2013-02-06 Pascal Obry <obry@adacore.com>
3628 * s-osprim-mingw.adb (Clock): Make sure we copy all data locally
3629 to avoid interleaved modifications that could happen from another
3630 task calling Get_Base_Data.
3631 (Get_Base_Data): Make it a critical section. Avoid updating if another
3632 task has already done it.
3634 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3636 * sem_prag.adb: Minor reformatting.
3638 2013-02-06 Pascal Obry <obry@adacore.com>
3640 * s-tasloc.ads: Set System.Task_Lock to preelaborate.
3642 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3644 * snames.ads-tmpl (Name_Loop_Optimize, Name_No_Unroll,
3645 Name_Unroll, Name_No_Vector, Name_Vector): New pragma-related
3647 (Pragma_Id): Add Pragma_Loop_Optimize value.
3648 * par-prag.adb (Prag): Handle Pragma_Loop_Optimize.
3649 * sem_prag.adb (Check_Loop_Invariant_Variant_Placement): Rename to...
3650 (Check_Loop_Pragma_Placement): ...this.
3652 <Pragma_Loop_Invariant>: Adjust to above renaming.
3653 <Loop_Variant>: Likewise.
3654 <Pragma_Loop_Optimize>: Implement new pragma Loop_Optimize.
3655 (Sig_Flags): Add Pragma_Loop_Optimize.
3656 * gnat_rm.texi (Implementation Defined Pragmas): Add Loop_Optimize.
3657 * gnat_ugn.texi (Vectorization of loops): Mention Loop_Optimize.
3659 2013-02-06 Robert Dewar <dewar@adacore.com>
3661 * osint.ads: Minor fix of typo.
3663 2013-02-06 Sergey Rybin <rybin@adacore.com frybin>
3665 * gnat_ugn.texi: gnatmetric: update the documentation of
3666 complexity metrics for Ada 2012.
3668 2013-02-06 Javier Miranda <miranda@adacore.com>
3670 * exp_disp.adb (Make_Secondary_DT): Code cleanup:
3671 remove useless initialization.
3673 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3675 * sem_ch3.adb (Build_Discriminant_Constraints): Do not
3676 generate overflow checks on a discriminant expression if the
3677 discriminant constraint is applied to a private type that has
3678 a full view, because the check will be applied when the full
3679 view is elaborated. Removing the redundant check is not just
3680 an optimization, but it prevents spurious assembler errors,
3681 because of the way the backend generates names for expressions
3682 that require overflow checking.
3684 2013-02-06 Pascal Obry <obry@adacore.com>
3686 * s-osprim-mingw.adb: Removes workaround for an old GNU/Linker
3687 limitation on Windows.
3697 (Clock): Use variable corresponding to access.
3698 (Get_Base_Time): Likewise.
3699 (Monotonic_Clock): Likewise.
3701 2013-02-06 Vincent Celier <celier@adacore.com>
3703 * make.adb (Gnatmake): When gnatmake is called with a project
3704 file, do not invoke gnatbind with -I-.
3705 * makeutl.adb (Create_Binder_Mapping_File): Rewrite function. Get
3706 the infos from all the sources.
3708 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3710 * snames.ads-tmpl: Add Name_Overriding_Renamings and pragma
3711 Overriding_Renamings.
3712 * par-prag.adb: Recognize pragma Overriding_Renamings.
3713 * opt.ads (Overriding_Renamings): flag to control compatibility
3714 mode with Rational compiler, replaces Rational_Profile flag.
3715 * sem_ch8.adb (Analyze_Subprogram_Renaming): When
3716 Overriding_Renamings is enabled, accept renaming declarations
3717 where the new subprogram renames and overrides a locally inherited
3718 operation. Improve error message for some illegal renamings.
3719 * sem_prag.adb (Analyze_Pragma): Add case for Overriding_Renamings.
3720 (Set_Rational_Profile): The Rational_Profile enables
3721 Overriding_Renamings, Implicit_Packing, and Use_Vads_Size.
3723 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3725 * sem_util.adb: Set parent of copied aggregate component, to
3726 prevent infinite loop.
3728 2013-02-06 Robert Dewar <dewar@adacore.com>
3730 * sem_ch3.adb, sem_ch10.adb: Minor reformatting.
3731 * exp_disp.adb: Minor comment update.
3732 * comperr.ads, osint.ads, rtsfind.adb, sem_prag.adb: Minor addition of
3735 2013-02-06 Thomas Quinot <quinot@adacore.com>
3737 * targparm.ads, sem_ch13.adb (Support_Nondefault_SSO): New target
3738 parameter, defaulted to False for now, indicates targets where
3739 non-default scalar storage order may be specified.
3741 2013-02-06 Thomas Quinot <quinot@adacore.com>
3743 * sprint.adb (Write_Itype): Treat E_Record_Subtype_With_Private
3744 same as E_Record_Subtype. Display E_Class_Wide_Subtype as
3747 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3749 * sem_ch3.adb (Complete_Private_Subtype): Inherit the
3750 Has_Unknown_Discriminants from the full view of the base type.
3752 2013-02-06 Tristan Gingold <gingold@adacore.com>
3754 * raise-gcc.c: Remove useless includes (sys/stat.h, adaint.h)
3755 Enclosing debugging functions within #ifndef inhibit_libc to
3756 support builds without full C headers.
3758 2013-02-06 Thomas Quinot <quinot@adacore.com>
3760 * gnat_rm.texi: Add a minimal example of Scalar_Storage_Order.
3762 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3764 * sem_ch10.adb (Install_Limited_Withed_Unit): Add a missing
3765 check to detect a parent-child relationship between two units in
3766 order to correctly bypass the installation of a limited view. In
3767 other words, the comment on the intended usage of the check was
3768 correct, but the code itself did not reflect the behavior.
3770 2013-02-06 Javier Miranda <miranda@adacore.com>
3772 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate the
3773 runtime check on assignment to tagged types if compiling with checks
3776 2013-02-06 Robert Dewar <dewar@adacore.com>
3778 * exp_util.adb, checks.adb, sem_ch12.adb, sem_res.adb, prj-conf.adb,
3779 s-os_lib.adb: Minor reformatting
3781 2013-02-06 Vincent Celier <celier@adacore.com>
3783 * ug_words: Add -gnateY = /IGNORE_STYLE_CHECKS_PRAGMAS.
3785 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3787 * snames.ads-tmpl: Add Name_Rational and pragma Rational.
3788 * par-prag.adb: Recognize pragma Rational.
3789 * opt.ads (Rational_Profile): flag to control compatibility mode
3790 with Rational compiler.
3791 * sem_ch8.adb (Analyze_Subprogram_Renaming): When Rational profile
3792 is enable, accept renaming declarations where the new subprogram
3793 and the renamed entity have the same name.
3794 * sem_prag.adb (analyze_pragma): Add pragma Rational, and recognize
3795 Rational as a profile.
3797 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3799 * exp_ch5.adb (Expand_Loop_Entry_Attributes): When
3800 dealing with a for loop that iterates over a subtype indication
3801 with a range, use the low and high bounds of the subtype.
3803 2013-02-06 Nicolas Roche <roche@adacore.com>
3805 * s-os_lib.adb (Normalize_Arguments): Arguments containing tabs should
3808 2013-02-06 Vincent Celier <celier@adacore.com>
3810 * prj-conf.adb (Process_Project_And_Apply_Config): New variable
3811 Conf_Project. New recursive procedure Check_Project to find a non
3812 aggregate project and put its Project_Id in Conf_Project. Fails if
3813 no such project can be found.
3814 (Get_Or_Create_Configuration_File): New parameter Conf_Project.
3815 (Do_Autoconf): Use project directory of project Conf_Project to store
3816 the generated configuration project file.
3817 * prj-conf.ads (Get_Or_Create_Configuration_File): New parameter
3820 2013-02-06 Javier Miranda <miranda@adacore.com>
3822 * sem_res.adb (Resolve_Actuals): Generate a read
3823 reference for out-mode parameters in the cases specified by
3826 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3828 * sem_attr.adb (Resolve_Attribute): Do not resolve the prefix of
3829 Loop_Entry, instead wait until the attribute has been expanded. The
3830 delay ensures that any generated checks or temporaries are inserted
3831 before the relocated prefix.
3833 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3835 * sem_ch12.adb: Code clean up.
3837 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3839 * checks.adb (Apply_Discriminant_Check): Look for discriminant
3840 constraint in full view of private type when needed.
3841 * sem_ch12.adb (Validate_Array_Type_Instance): Specialize
3842 previous patch to components types that are private and without
3845 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3847 * exp_ch4.adb (Find_Enclosing_Context): Recognize
3848 a simple return statement as one of the cases that require special
3849 processing with respect to temporary controlled function results.
3850 (Process_Transient_Object): Do attempt to finalize a temporary
3851 controlled function result when the associated context is
3852 a simple return statement. Instead, leave this task to the
3853 general finalization mechanism.
3855 2013-02-06 Thomas Quinot <quinot@adacore.com>
3857 * einfo.ads: Minor reformatting.
3858 (Status_Flag_Or_Transient_Decl): Add ??? comment.
3860 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3862 * exp_ch4.adb (Expand_N_Expression_With_Actions): Rewritten. This
3863 routine should be able to properly detect controlled transient
3864 objects in its actions and generate the appropriate finalization
3866 * exp_ch6.adb (Enclosing_Context): Removed.
3867 (Expand_Ctrl_Function_Call): Remove local subprogram and
3868 constant. Use routine Within_Case_Or_If_Expression to determine
3869 whether the lifetime of the function result must be extended to
3870 match that of the context.
3871 * exp_util.ads, exp_util.adb (Within_Case_Or_If_Expression): New
3874 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3876 * sem_ch12.adb (Validate_Array_Type_Instance): Extend check
3877 for subtype matching of component type of formal array type,
3878 to avoid spurious error when component type is a separate actual
3879 in the instance, and there may be a discrepancy between private
3880 and full view of component type.
3882 2013-02-06 Robert Dewar <dewar@adacore.com>
3884 * s-dim.ads, clean.adb: Minor reformatting.
3886 2013-02-06 Javier Miranda <miranda@adacore.com>
3888 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Undo previous patch.
3889 (Can_Split_Unconstrained_Function): Only split the inlined function if
3890 the compiler generates the code of its body.
3892 2013-02-06 Robert Dewar <dewar@adacore.com>
3894 * exp_prag.adb, sem_ch3.adb, exp_attr.adb, sem_prag.adb, sem_ch6.adb,
3895 exp_intr.adb, exp_dist.adb, sem_ch13.adb: Internal clean up for
3898 2013-02-06 Robert Dewar <dewar@adacore.com>
3900 * gnat_rm.texi: Minor text updates for pragma Warning.
3902 2013-02-06 Geert Bosch <bosch@adacore.com>
3904 * s-multip.adb (Number_Of_CPUs): Short-circuit in case of
3907 2013-02-06 Vincent Celier <celier@adacore.com>
3909 * clean.adb (Delete): On VMS use host notation to delete all files.
3911 2013-02-06 Robert Dewar <dewar@adacore.com>
3913 * sem_prag.adb, sem_ch6.adb, prj-conf.adb, erroutc.adb: Minor
3916 2013-02-06 Gary Dismukes <dismukes@adacore.com>
3918 * sem_ch6.adb (Check_For_Primitive_Subprogram): Test for
3919 the special case of a user-defined equality that overrides
3920 the predefined equality of a nonderived type declared in a
3922 * sem_util.adb (Collect_Primitive_Operations): Add test for
3923 Is_Primitive when looping over the subprograms following a type,
3924 to catch the case of primitives such as a user-defined equality,
3925 which otherwise won't be found when the type is not a derived
3926 type and is declared in a declarative part.
3928 2013-02-06 Vincent Celier <celier@adacore.com>
3930 * prj-conf.adb (Check_Target): Always return True when Target
3931 is empty (Get_Or_Create_Configuration_File.Get_Project_Target):
3932 New procedure to get the value of attribute Target in the main
3934 (Get_Or_Create_Configuration_File.Do_Autoconf): No
3935 need to get the value of attribute Target in the main project.
3936 (Get_Or_Create_Configuration_File): Call Get_Project_Target and
3937 use the target fom this call.
3939 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3941 * erroutc.adb (Validate_Specific_Warning): Do not issue the
3942 warning about an ineffective Pragma Warnings for -Wxxx warnings.
3943 * sem_prag.adb (Analyze_Pragma) <Warnings>: Accept -Wxxx warnings.
3944 * gnat_rm.texi (Pragma Warnings): Document coordination with
3945 warnings of the GCC back-end.
3947 2013-02-06 Javier Miranda <miranda@adacore.com>
3949 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build the body
3950 of an inlined function if we do not generate code for the function.
3952 2013-02-06 Pascal Obry <obry@adacore.com>
3954 * s-os_lib.adb (Locate_Exec_On_Path): Call Normalize_Pathname
3955 with Resolve_Links set to False.
3957 2013-02-03 Eric Botcazou <ebotcazou@adacore.com>
3959 * gcc-interface/decl.c: Include diagnostic-core.h.
3960 (gnat_to_gnu_entity) <E_Array_Type>: Sorry if Reverse_Storage_Order
3961 is set on the entity.
3962 <E_Record_Type>: Likewise.
3963 * gcc-interface/Make-lang.in (ada/decl.o): Add $(DIAGNOSTIC_CORE_H).
3965 2013-01-29 Ben Brosgol <brosgol@adacore.com>
3967 * gnat_rm.texi: Fixed typos. Minor edits.
3969 2013-01-29 Bob Duff <duff@adacore.com>
3971 * a-convec.adb: Minor reformatting.
3973 2013-01-29 Pascal Obry <obry@adacore.com>
3975 * tempdir.adb, tempdir.ads (Use_Temp_Dir): Set wether to use the temp
3978 2013-01-29 Ed Schonberg <schonberg@adacore.com>
3980 * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Preserve loop
3981 identifier only if it comes from source.
3982 (Expand_N_Loop_Statement): If the domain of iteration is an
3983 enumeration type with a representation clause, remove from
3984 visibility the loop identifier before rewriting the loop as a
3985 block with a declaration for said identifier.
3986 * sem_util.adb (Remove_Homonym): Handle properly the default case.
3988 2013-01-29 Vincent Celier <celier@adacore.com>
3990 * prj-proc.adb: Minor comment spelling fix.
3992 2013-01-29 Pascal Obry <obry@adacore.com>
3994 * prj-proc.adb (Process_Expression_Variable_Decl): Prepend
3995 Project_Path to current environment.
3997 2013-01-29 Thomas Quinot <quinot@adacore.com>
3999 * sprint.adb (Sprint_Node_Actual): Output freeze nodes for
4000 itypes even if Dump_Freeze_Null is not set.
4002 2013-01-29 Robert Dewar <dewar@adacore.com>
4004 * sem_util.adb: Minor reformatting.
4005 * s-rident.ads: Minor comment fixes.
4007 2013-01-29 Pascal Obry <obry@adacore.com>
4009 * prj-env.ads, prj-env.adb (Add_Directories): Add parameter to
4010 control if the path is prepended or appended.
4012 2013-01-29 Ed Schonberg <schonberg@adacore.com>
4014 * sem_ch6.adb (Analyze_Expression_Function): An expression
4015 function declaration is not a subprogram declaration, and thus
4016 cannot appear in a protected definition.
4018 2013-01-29 Hristian Kirtchev <kirtchev@adacore.com>
4020 * exp_util.adb (Insert_Actions): When new
4021 actions come from the expression of the expression with actions,
4022 then they must be added to the list of existing actions.
4024 2013-01-29 Eric Botcazou <ebotcazou@adacore.com>
4026 * sem_ch3.adb (Analyze_Subtype_Declaration) <Private_Kind>: For
4027 the subtype of a constrained private type with discriminants
4028 that has got a full view, show that the completion is a clone
4031 2013-01-29 Javier Miranda <miranda@adacore.com>
4033 * errout.ads, errout.adb (Get_Ignore_Errors): New subprogram.
4034 * opt.ads (Warn_On_Overlap): Update documentation.
4035 * sem_aggr.adb (Resolve_Aggregate, Resolve_Extension_Aggregate):
4036 Check function writable actuals.
4037 * sem_ch3.adb (Build_Derived_Record_Type,
4038 Record_Type_Declaration): Check function writable actuals.
4039 * sem_ch4.adb (Analyze_Range): Check function writable actuals.
4040 * sem_ch5.adb (Analyze_Assignment): Remove code of the initial
4041 implementation of AI05-0144.
4042 * sem_ch6.adb (Analyze_Function_Return,
4043 (Analyze_Procedure_Call.Analyze_Call_And_Resolve): Remove code
4044 of the initial implementation of AI05-0144.
4045 * sem_res.adb (Resolve): Remove code of the initial implementation.
4046 (Resolve_Actuals): Call Check_Function_Writable_Actuals and remove call
4047 of the initial implementation.
4048 (Resolve_Arithmetic_Op, Resolve_Logical_Op,
4049 Resolve_Membership_Op): Check function writable actuals.
4050 * sem_util.ad[sb] (Actuals_In_Call): Removed
4051 (Check_Order_Dependence): Removed (Save_Actual): Removed
4052 (Check_Function_Writable_Actuals): New subprogram.
4053 * usage.adb (Usage): Update documentation.
4054 * warnsw.adb (Set_Warning_Switch): Enable warn_on_overlap when
4055 setting all warnings.
4057 2013-01-29 Robert Dewar <dewar@adacore.com>
4059 * a-calend-vms.adb: Minor comment fix.
4061 2013-01-29 Robert Dewar <dewar@adacore.com>
4063 * mlib-utl.adb, gnatlink.adb: Avoid reference to ASCII.Back_Slash
4064 because of casing issues.
4065 * sem_util.ads: Minor comment fix.
4066 * style.adb (Check_Identifier): Set proper casing for entities
4068 * styleg.adb: Minor comment improvement.
4069 * stylesw.ads (Style_Check_Standard): Fix bad comments.
4071 2013-01-29 Hristian Kirtchev <kirtchev@adacore.com>
4073 * sem_prag.adb: Add the grammar for pragmas Abstract_State and Global.
4074 (Analyze_Pragma): Push the scope of the related subprogram and install
4075 its formals once before starting the analysis of the [moded] global
4078 2013-01-29 Pascal Obry <obry@adacore.com>
4080 * prj-proc.adb (Process_Expression_Variable_Decl): Always handle
4081 relative paths in Project_Path as relative to the aggregate
4082 project location. Note that this was what was documented.
4084 2013-01-29 Vincent Celier <celier@adacore.com>
4086 * gnatcmd.adb: For "gnat stub -P ...", do not check the naming
4087 scheme for Ada, when Ada is not a language for the project.
4089 2013-01-29 Ed Schonberg <schonberg@adacore.com>
4091 * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
4092 Is_Generic_Actual_Type flag in a nested instance.
4093 * sem_ch12.adb (Restore_Private_Views): Preserve
4094 Is_Generic_Actual_Type flag if actual is a Generic_Actual_Type
4095 of an enclosing instance.
4096 * sem_util.adb (Corresponding_Generic_Type): Handle generic actual
4097 which is an actual of an enclosing instance.
4098 * sem_type.adb (Real_Actual): If a generic_actual_type is the
4099 formal of an enclosing generic and thus renames the corresponding
4100 actual, use the actual of the enclosing instance to resolve
4101 spurious ambiguities in instantiations when two formals are
4102 instantiated with the same actual.
4104 2013-01-29 Robert Dewar <dewar@adacore.com>
4106 * gnat_rm.texi: Document all Ada 2005 and Ada 2012 pragmas as
4107 being available as implementation-defined pragmas in earlier
4110 2013-01-29 Vincent Celier <celier@adacore.com>
4112 * clean.adb (Delete): On VMS, delete all versions of the file.
4114 2013-01-29 Robert Dewar <dewar@adacore.com>
4116 * par-ch6.adb (No_Constraint_Maybe_Expr_Func): New procedure.
4117 * par-util.adb (No_Constraint): Undo special handling, moved
4120 2013-01-29 Robert Dewar <dewar@adacore.com>
4122 * aspects.ads: Aspect Warnings is implementation defined Add
4123 some other missing entries to impl-defined list Mark Warnings
4124 as GNAT pragma in main list.
4125 * sem_ch8.adb: Process aspects for all cases of renaming
4128 2013-01-29 Robert Dewar <dewar@adacore.com>
4130 * sem_ch6.adb (Analyze_Function_Call): Set In_Assertion flag.
4131 * sem_elab.adb (Check_Internal_Call_Continue): Do not issue
4132 warnings about possible elaboration error if call is within
4134 * sinfo.ads, sinfo.adb (In_Assertion): New flag in N_Function_Call node.
4136 2013-01-29 Robert Dewar <dewar@adacore.com>
4138 * a-calend-vms.adb, g-eacodu-vms.adb, g-trasym-vms-alpha.adb,
4139 * s-auxdec-vms-ia64.adb, s-mastop-vms.adb, s-osprim-vms.adb,
4140 s-tasdeb-vms.adb: Replace pragma Interface by pragma Import.
4142 2013-01-29 Robert Dewar <dewar@adacore.com>
4144 * opt.ads (Ignore_Style_Checks_Pragmas): New flag.
4145 * par-prag.adb (Par, case Style_Checks): Recognize
4146 Ignore_Style_Checks_Pragmas.
4147 * sem_prag.adb (Analyze_Pragma, case Style_Checks): Recognize
4148 Ignore_Style_Checks_Pragmas.
4149 * switch-c.adb: Recognize -gnateY switch.
4150 * usage.adb: Add documentation for "-gnateY".
4151 * vms_data.ads: Add IGNORE_STYLE_CHECKS_PRAGMAS (-gnateY).
4153 2013-01-29 Vincent Celier <celier@adacore.com>
4155 * clean.adb (Clean_Executables): Add Sid component when calling
4157 * make.adb: When inserting in the Queue, add the Source_Id
4158 (Sid) when it is known (Start_Compile_If_Possible): When the
4159 Source_Id is known (Sid), get the path name of the ALI file
4160 (Full_Lib_File) from it, to avoid finding old ALI files in other
4162 * makeutl.ads (Source_Info): New Source_Id component Sid in
4163 Format_Gnatmake variant.
4165 2013-01-29 Robert Dewar <dewar@adacore.com>
4167 * gnat_ugn.texi: Document -gnateY.
4169 2013-01-29 Doug Rupp <rupp@adacore.com>
4171 * s-osinte-vms.ads, s-taprop-vms.adb, system-vms_64.ads,
4172 system-vms-ia64.ads: Replace pragma Interface by pragma Import.
4174 2013-01-29 Robert Dewar <dewar@adacore.com>
4176 * atree.ads, atree.adb (Node30): New function.
4177 (Set_Node30): New procedure.
4178 (Num_Extension_Nodes): Change to 5 (activate new fields/flags).
4179 * atree.h: Add macros for Field30 and Node30.
4180 * einfo.ads, einfo.adb: Move some fields to avoid duplexing.
4181 * treepr.adb (Print_Entity_Information): Print fields 30-35.
4183 2013-01-29 Robert Dewar <dewar@adacore.com>
4185 * sem_prag.adb (Analyze_Pragma, case Interface): Consider to
4186 be a violation of No_Obsolescent_Features even in Ada 95. Also
4187 generates a warning in -gnatwj mode.
4188 (Analyze_Pragma, case Interface_Name): Generates a warning in -gnatwj
4190 * gnat_ugn.texi: Additional documentation on -gnatwj and pragma
4193 2013-01-29 Vincent Celier <celier@adacore.com>
4195 * snames.ads-tmpl: Add new standard name Trailing_Switches.
4197 2013-01-29 Ed Schonberg <schonberg@adacore.com>
4199 * sem_disp.adb (Check_Controlling_Type): If a designated type T
4200 of an anonymous access type is a limited view of a tagged type,
4201 it can be a controlling type only if the subprogram is in the
4204 2013-01-29 Vincent Celier <celier@adacore.com>
4206 * gnatcmd.adb: Use the project where the config pragmas file is
4207 declared to get its path.
4209 2013-01-29 Vincent Celier <celier@adacore.com>
4211 * prj-attr.adb: New attribute Linker'Trailing_Switches.
4213 2013-01-22 Eric Botcazou <ebotcazou@adacore.com>
4215 * gcc-interface/trans.c (gnat_to_gnu) <N_Expression_With_Actions>: Do
4216 not translate the Etype of the node before translating the Actions.
4218 2013-01-22 Eric Botcazou <ebotcazou@adacore.com>
4220 * gcc-interface/trans.c (Pragma_to_gnu) <Name_Space>: Use optimize_size
4221 instead of optimize and adjust warning message.
4222 (Compilation_Unit_to_gnu): Process pragmas preceding the unit.
4224 2013-01-22 Tristan Gingold <gingold@adacore.com>
4226 * gcc-interface/gigi.h (ADT_unhandled_except_decl,
4227 ADT_unhandled_others_decl): New.
4228 (unhandled_others_decl, unhandled_except_decl): Define.
4229 * gcc-interface/trans.c: Include common/common-target.h.
4230 (gigi): Initialize them.
4231 (Subprogram_Body_to_gnu): On SEH targets, wrap the body of the main
4232 function in a try/catch clause.
4234 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4236 * gcc-interface/Make-lang.in (COMMON_ADAFLAGS): Remove -gnata.
4237 (CHECKING_ADAFLAGS): New.
4238 (ALL_ADAFLAGS): Include CHECKING_ADAFLAGS.
4240 2013-01-10 Eric Botcazou <ebotcazou@adacore.com>
4242 * gcc-interface/config-lang.in (boot_language_boot_flags): Delete.
4243 * gcc-interface/Make-lang.in (BOOT_ADAFLAGS): Likewise.
4245 2013-01-07 Eric Botcazou <ebotcazou@adacore.com>
4247 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Adjust
4248 comment about type extension with discriminants.
4249 <E_Record_Subtype>: Remove useless test and reorder conditions.
4250 (elaborate_entity) <E_Record_Subtype>: Likewise.
4252 2013-01-07 Richard Biener <rguenther@suse.de>
4255 * gcc-interface/Make-lang.in (ada.install-common): Always apply
4256 program_transform_name.
4258 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4260 * gnatvsn.ads (Current_Year): Bump to 2013.
4262 2013-01-06 Olivier Hainque <hainque@adacore.com>
4264 * gcc-interface/decl.c (gnat_to_gnu_field): Emit a specialized
4265 diagnostic for component size mismatch wrt volatile requirements.
4266 Add a gcc_unreachable() at the end of the checks for size. Split
4267 the check on volatile for positions into one check on atomic and
4268 a subsequent one on volatile.
4270 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4272 * gcc-interface/decl.c (elaborate_entity) <E_Record_Type>: Delete.
4274 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4276 * gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Do not
4277 pack the field of the record type made for a misaligned type.
4279 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4281 * gcc-interface/decl.c (annotate_value) <COMPONENT_REF>: Be prepared
4282 for discriminants inherited from parent record types.
4284 2013-01-04 Robert Dewar <dewar@adacore.com>
4286 * warnsw.adb: Minor fixes to -gnatw.d handling.
4288 2013-01-04 Robert Dewar <dewar@adacore.com>
4290 * einfo.adb, atree.adb: Enlarge entities to make 63 more flags, 6 more
4293 2013-01-04 Joel Brobecker <brobecker@adacore.com>
4295 * gnat_ugn.texi: Fix typo.
4297 2013-01-04 Robert Dewar <dewar@adacore.com>
4299 * gnat_rm.texi: Document alignment choice for subtypes.
4301 2013-01-04 Robert Dewar <dewar@adacore.com>
4303 * validsw.ads: Minor fix to comment.
4305 2013-01-04 Doug Rupp <rupp@adacore.com>
4307 * Makefile.rtl (GNATRTL_NONTASKING_OBJS,
4308 GNATRTL_ALTIVEC_OBJS): Factor g-al* objects.
4309 * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Add g-al* sources.
4310 (GNATRTL_ALTIVEC_OBJS): Override to null for VMS.
4311 Rename leon vxworks toolchain as leon-wrs-vxworks.
4312 * gcc-interface/Make-lang.in: Update dependencies
4314 2013-01-04 Pascal Obry <obry@adacore.com>
4316 * prj.ads (For_Each_Source): Add Locally_Removed parameter.
4317 (Source_Iterator): Add Locally_Removed field.
4318 * prj.adb (For_Each_Source): Ignore Locally_Removed files if needed.
4321 2013-01-04 Robert Dewar <dewar@adacore.com>
4323 * exp_attr.adb: Minor reformatting.
4325 2013-01-04 Robert Dewar <dewar@adacore.com>
4327 * checks.adb (Insert_Valid_Check): Fix handling of renamed
4328 packed array element.
4329 * exp_ch4.adb (Expand_Concatenate): Fix some missing parent
4330 fields in generated code.
4331 * exp_util.adb (Side_Effect_Free): Improve detection of cases
4334 2013-01-04 Robert Dewar <dewar@adacore.com>
4336 * sinfo.ads: Clean up order of N_xxx subtypes
4338 2013-01-04 Vincent Celier <celier@adacore.com>
4340 * prj-conf.adb (Check_Target): Allow --autoconf= with no target.
4342 2013-01-04 Robert Dewar <dewar@adacore.com>
4344 * types.ads, prj-conf.adb, par-tchk.adb: Minor reformatting.
4346 2013-01-04 Robert Dewar <dewar@adacore.com>
4348 * par-ch6.adb (P_Subprogram): Better handling of missing IS
4349 after expression function.
4350 * par-util.adb (No_Constraint): Improve handling to avoid bad warnings.
4352 2013-01-04 Robert Dewar <dewar@adacore.com>
4354 * exp_util.ads, exp_util.adb (Insert_Actions): In expression with
4355 actions case, new actions are appended to the sequence rather than
4358 2013-01-04 Robert Dewar <dewar@adacore.com>
4360 * gnat_ugn.texi: Document -gnatw.d/w.D (does no apply in VMS mode).
4361 * usage.adb: Add lines for -gnatw.d/w.D switches.
4362 * warnsw.adb: Minor fixes (some missing cases of setting
4363 Warning_Doc_Switch). Reject -gnatw.d and -gnatw.D in VMS mode.
4365 2013-01-04 Robert Dewar <dewar@adacore.com>
4367 * exp_util.adb (Remove_Side_Effects): Make sure scope suppress
4368 is restored on exit.
4370 2013-01-04 Robert Dewar <dewar@adacore.com>
4372 * usage.adb: Document -gnateF (check overflow for predefined Float).
4374 2013-01-04 Robert Dewar <dewar@adacore.com>
4376 * sem_res.adb (Resolve_Type_Conversion): Remove incorrect
4377 prevention of call to Apply_Type_Conversion_Checks, which resulted
4378 in missing check flags in formal mode.
4380 2013-01-04 Vincent Celier <celier@adacore.com>
4382 * makeutl.ads (Db_Switch_Args): New table used by gprbuild.
4383 * prj-conf.adb (Check_Builder_Switches): Check for switches
4384 --config= (Get_Db_Switches): New procedure to get the --db
4385 switches so that they are used when invoking gprconfig in
4387 (Do_Autoconf): When invoking gprconfig, use the --db switches, if any.
4389 2013-01-04 Pascal Obry <obry@adacore.com>
4391 * prj-nmsc.adb: Minor reformatting.
4393 2013-01-04 Vincent Celier <celier@adacore.com>
4395 * makeutl.ads (Root_Environment): New variable, moved rom
4396 gprbuild (Load_Standard_Base): New Boolean variable, moved
4398 * prj-conf.adb (Check_Builder_Switches): New procedure to check
4399 for switch --RTS in package Builder. If a runtime specified
4400 by --RTS is a relative path name, but not a base name, then
4401 find the path on the Project Search Path.
4402 (Do_Autoconf): Call Check_Builder_Switches.
4403 (Locate_Runtime): New procedure, moved from gprbuild, to get the
4404 absolute paths of runtimes when they are not specified as a base name.
4405 * prj-conf.ads (Locate_Runtime): New procedure, moved from gprbuild.
4407 2013-01-04 Ed Schonberg <schonberg@adacore.com>
4409 * sem_ch3.adb (Build_Private_Derived_Type): Set
4410 Has_Private_Ancestor on type derived from an untagged private
4411 type whose full view has discriminants
4412 * sem_aggr.adb (Resolve_Record_Aggregate): Reject non-extension
4413 aggregate for untagged record type with private ancestor.
4415 2013-01-04 Thomas Quinot <quinot@adacore.com>
4417 * sem_elab.adb, sem_ch3.adb: Minor reformatting.
4419 2013-01-04 Robert Dewar <dewar@adacore.com>
4421 * table.adb: Minor reformatting.
4423 2013-01-04 Ed Schonberg <schonberg@adacore.com>
4425 * sem_ch10.adb (Check_Redundant_Withs): A with_clause that does
4426 not come from source does not generate a warning for redundant
4429 2013-01-04 Hristian Kirtchev <kirtchev@adacore.com>
4431 * aspects.adb, aspects.ads: Add Aspect_Global to all relevant tables.
4432 * par-prag.adb: Add pragma Global to the list of pragmas that
4433 do not need special processing by the parser.
4434 * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect
4435 Global into a pragma without any form of legality checks. The
4436 work is done by Analyze_Pragma. The aspect and pragma are both
4437 marked as needing delayed processing. Insert the corresponding
4438 pragma of aspect Abstract_State in the visible declarations of the
4440 (Check_Aspect_At_Freeze_Point): Aspect Global
4441 does not need processing even though it is marked as delayed.
4442 Alphabetize the list on aspect names.
4443 * sem_prag.adb: Add a value for pragma Global in table Sig_Flags.
4444 (Analyze_Pragma): Add ??? comment about the grammar of pragma
4445 Abstract_State. Move the error location from the pragma to the
4446 state to improve the quality of error placement. Add legality
4447 checks for pragma Global.
4448 * snames.ads-tmpl Add the following specially recognized names
4450 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
4452 * sem_ch3.adb: Fix minor typo.
4454 2013-01-04 Ed Schonberg <schonberg@adacore.com>
4456 * par-ch13.adb (Aspect_Specifications_Present): In Strict mode,
4457 accept an aspect name followed by a comma, indicating a defaulted
4460 2013-01-04 Joel Brobecker <brobecker@adacore.com brobecker>
4462 * gnat_ugn.texi: Document procedure to codesign GDB on Darwin.
4463 Update doc on gnattest --separates switch.
4465 2013-01-04 Thomas Quinot <quinot@adacore.com>
4467 * s-chepoo.ads: Minor reformatting.
4469 2013-01-04 Arnaud Charlet <charlet@adacore.com>
4471 * usage.adb: Remove mention of -gnatN in usage.
4473 2013-01-04 Robert Dewar <dewar@adacore.com>
4475 * exp_prag.adb, gnatcmd.adb, exp_util.adb, table.adb, sem_prag.adb,
4476 freeze.adb, sem_ch4.adb, sem_warn.adb, opt.ads, exp_aggr.adb,
4477 prj-conf.adb, sem_ch13.adb: Minor reformatting.
4479 2013-01-04 Thomas Quinot <quinot@adacore.com>
4481 * sinfo.ads: Minor documentation update.
4483 2013-01-04 Thomas Quinot <quinot@adacore.com>
4485 * sem_ch3.adb, einfo.adb (Analyze_Object_Declaration): Do not set Ekind
4486 before resolving initialization expression.
4488 2013-01-04 Hristian Kirtchev <kirtchev@adacore.com>
4490 * checks.adb (Generate_Index_Checks): Delay the generation of
4491 the check for an indexed component where the prefix mentions
4492 Loop_Entry until the attribute has been properly expanded.
4493 * exp_ch5.adb (Expand_Loop_Entry_Attributes): Perform minor
4494 decoration of the constant that captures the value of Loop_Entry's
4495 prefix at the entry point into a loop. Generate index checks
4496 for an attribute reference that has been transformed into an
4499 2013-01-04 Thomas Quinot <quinot@adacore.com>
4501 * exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb, exp_aggr.adb,
4502 sem_ch13.adb (Exp_Aggr.Collect_Initialization_Statements): Nothing to
4503 do if Obj is already frozen.
4504 (Exp_Util.Find_Init_Call): Rename to...
4505 (Exp_Util.Remove_Init_Call): New subprogram, renamed from
4506 Find_Init_Call. Remove the initialization call from the enclosing
4507 list if found, and if it is from an Initialization_Statements
4508 attribute, reset it.
4509 (Exp_Util.Append_Freeze_Action): Minor code reorganization.
4510 (Exp_Util.Append_Freeze_Actions): Ensure a freeze node has been
4511 allocated (as is already done in Append_Freeze_Action).
4512 (Freeze.Freeze_Entity): For an object with captured
4513 Initialization_Statements and non-delayed freezeing, unwrap the
4514 initialization statements and insert and them directly in the
4516 (Sem_Ch13.Check_Address_Clause): For an object
4517 with Initialization_Statements and an address clause, unwrap the
4518 initialization statements when moving them to the freeze actions.
4520 2013-01-03 Pascal Obry <obry@adacore.com>
4522 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package remote and
4523 corresponding attibutes.
4525 2013-01-03 Thomas Quinot <quinot@adacore.com>
4527 * exp_aggr.adb: Minor comment improvement.
4529 2013-01-03 Hristian Kirtchev <kirtchev@adacore.com>
4531 * aspects.adb, aspects.ads: Add Aspect_Abstract_State to all the
4533 * einfo.ads, einfo.adb: Add Integrity_Level and Refined_State to
4534 the description of fields (Abstract_States): New routine.
4535 (Integrity_Level): New routine.
4536 (Has_Property): New routine.
4537 (Is_Input_State): New routine.
4538 (Is_Null_State): New routine.
4539 (Is_Output_State): New routine.
4540 (Is_Volatile_State): New routine.
4541 (Refined_State): New routine.
4542 (Set_Abstract_States): New routine.
4543 (Set_Integrity_Level): New routine.
4544 (Set_Refined_State): New routine.
4545 (Write_Field8_Name): Add proper output for E_Abstract_State.
4546 (Write_Field9_Name): Add proper output for E_Abstract_State.
4547 (Write_Field25_Name): Add proper output for E_Package.
4548 * lib-xref.ads: Add new letter for an abstract state.
4549 * par-prag.adb: Add pragma Abstract_State to the list of pragma
4550 that do not need special processing by the parser.
4551 * sem_ch13.adb (Analyze_Aspect_Specifications): Convert
4552 aspect Abstract_State into a pragma without any form
4553 of legality checks. The work is done by Analyze_Pragma.
4554 (Check_Aspect_At_Freeze_Point): Aspect Abstract_State does not
4555 require delayed analysis.
4556 * sem_prag.adb: Add a value for pragma Abstract_State in table
4558 (Analyze_Pragma): Add legality checks for pragma
4559 Abstract_State. Analysis of individual states introduces a state
4560 abstraction entity into the visibility chain.
4561 * snames.ads-tmpl: Add new names for abstract state and
4562 integrity. Add new pragma id for abstract state.
4564 2013-01-03 Bob Duff <duff@adacore.com>
4566 * table.adb (Reallocate): Calculate new Length in
4567 Long_Integer to avoid overflow.
4569 2013-01-03 Thomas Quinot <quinot@adacore.com>
4571 * sem_ch3.adb, sinfo.ads, freeze.adb, sem_ch4.adb, exp_aggr.adb
4572 (Sem_Ch3.Analyze_Object_Declaration): Set Ekind early so that
4573 it is set properly when expanding the initialization expression.
4574 (Freeze.Check_Address_Clause): Transfer initialization expression
4575 to an assignment in the freeze actions, so that the object is
4576 initialized only after being elaborated by GIGI.
4577 (Sinfo (comments), Sem_Ch4.Analyze_Expression_With_Actions): Allow
4578 a Null_Statement as the expression in an Expression_With_Actions.
4579 (Exp_Aggr.Collect_Initialization_Statements): New subprogram
4580 shared by expansion of record and array aggregates, used to
4581 capture statements for an aggregate used to initalize an object
4582 into an Expression_With_Actions (which acts as a container for
4584 (Exp_Aggr.Convert_Aggr_In_Obj_Decl): Use the above to
4585 capture initialization statements, instead of the previously
4586 existing loop which left freeze nodes out of the capturing
4587 construct (causing out of order elaboration crashes in GIGI).
4588 (Exp_Aggr.Expand_Array_Aggregate): Use the above to capture
4589 initialization statements (this was previously not done for
4590 arrays). Also do not unconditionally prevent in place expansion
4591 for an object with address clause.
4593 2013-01-03 Thomas Quinot <quinot@adacore.com>
4595 * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Check that
4596 a record extension has the same scalar storage order as the parent type.
4598 2013-01-03 Thomas Quinot <quinot@adacore.com>
4600 * exp_ch4.adb: Add comment.
4602 2013-01-03 Vincent Celier <celier@adacore.com>
4604 * prj.adb: Minor spelling error correction in comment.
4606 2013-01-03 Vincent Celier <celier@adacore.com>
4608 * gnatcmd.adb (GNATCmd): If a single main has been specified
4609 as an absolute path, use its simple file name to find specific
4610 switches, instead of the absolute path.
4612 2013-01-03 Javier Miranda <miranda@adacore.com>
4614 * sem_warn.adb (Warn_On_Overlapping_Actuals): For overlapping
4615 parameters that are record types or array types generate warnings
4616 only compiling under -gnatw.i
4617 * opt.ads (Extensions_Allowed): Restore previous documentation.
4619 2013-01-03 Vincent Celier <celier@adacore.com>
4621 * prj-conf.adb (Do_Autoconf): If Target is specified in the
4622 main project, but not on the command line, use the Target in
4623 the project to invoke gprconfig in auto-configuration.
4624 * makeutl.ads (Default_Config_Name): New constant String.
4626 2013-01-03 Arnaud Charlet <charlet@adacore.com>
4628 * usage.adb: Minor: fix typo in usage.
4630 2013-01-03 Thomas Quinot <quinot@adacore.com>
4632 * sem_ch13.adb (Analyze_Record_Representation_Clause): Reject
4633 an illegal component clause for an inherited component in a
4636 2013-01-03 Emmanuel Briot <briot@adacore.com>
4638 * xref_lib.adb (Parse_Identifier_Info): Fix handling of arrays, which
4639 have information in the ALI file for both the index and the component
4642 2013-01-03 Emmanuel Briot <briot@adacore.com>
4644 * projects.texi: Fix error in documenting the project path
4645 computed for an aggregate project.
4647 2013-01-03 Javier Miranda <miranda@adacore.com>
4649 * sem_warn.adb (Warn_On_Overlapping_Actuals): Adding documentation
4650 plus restricting the functionality of this routine to cover the
4651 cases described in the Ada 2012 reference manual. The previous
4652 extended support is now available under -gnatX.
4653 * s-tassta.adb (Finalize_Global_Tasks): Addition of a dummy
4654 variable to call Timed_Sleep. Required to avoid warning on
4655 overlapping out-mode actuals.
4656 * opt.ads (Extensions_Allowed): Update documentation.
4658 2013-01-03 Tristan Gingold <gingold@adacore.com>
4660 * s-arit64.ads: Use Multiply_With_Ovflo_Check as __gnat_mulv64.
4662 * gcc-interface/Makefile.in: Remove reference to arit64.c.
4664 2013-01-03 Thomas Quinot <quinot@adacore.com>
4666 * checks.adb, checks.ads (Apply_Address_Clause_Check): The check must
4667 be generated at the start of the freeze actions for the entity, not
4668 before (or after) the freeze node.
4670 2013-01-03 Thomas Quinot <quinot@adacore.com>
4672 * exp_aggr.adb (Exp_Aggr.Convert_Aggregate_In_Obj_Decl):
4673 Reorganize code to capture initialization statements in a block,
4674 so that freeze nodes are excluded from the captured block.
4676 2013-01-03 Thomas Quinot <quinot@adacore.com>
4678 * exp_ch11.adb: Minor reformatting.
4680 2013-01-03 Thomas Quinot <quinot@adacore.com>
4682 * exp_util.adb, einfo.adb, einfo.ads, freeze.adb, exp_aggr.adb,
4683 sem_ch13.adb (Einfo.Initialization_Statements,
4684 Einfo.Set_Initialization_Statements): New entity attribute
4686 (Exp_Util.Find_Init_Call): Handle case of an object initialized
4687 by an aggregate converted to a block of assignment statements.
4688 (Freeze.Check_Address_Clause): Do not clear Has_Delayed_Freeze
4689 even for objects that require a constant address, because the
4690 address expression might involve entities that have yet to be
4691 elaborated at the point of the object declaration.
4692 (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): For a type that does
4693 not require a transient scope, capture the assignment statements
4694 in a block so that they can be moved down after elaboration of
4695 an address clause if needed.
4696 (Sem_Ch13.Check_Constant_Address_Clause.Check_Expr_Constants,
4697 case N_Unchecked_Conversion): Do not replace operand subtype with
4698 its base type as this violates a GIGI invariant if the operand
4699 is an identifier (in which case the etype of the identifier
4700 is expected to be equal to that of the denoted entity).
4702 2013-01-03 Javier Miranda <miranda@adacore.com>
4704 * sem_util.ads, sem_util.adb (Denotes_Same_Object): Extend the
4705 functionality of this routine to cover cases described in the Ada 2012
4708 2013-01-03 Ed Schonberg <schonberg@adacore.com>
4710 * sem_elab.adb (Set_Elaboration_Constraint): Handle properly
4711 a 'Access attribute reference when the subprogram is called
4714 2013-01-03 Arnaud Charlet <charlet@adacore.com>
4716 * s-tpobop.adb (PO_Do_Or_Queue): Refine assertion, since a
4717 select statement may be called from a controlled (e.g. Initialize)
4718 operation and have abort always deferred.
4720 2013-01-03 Robert Dewar <dewar@adacore.com>
4722 * sem_ch8.adb, einfo.ads, einfo.adb: Minor code reorganization.
4724 2013-01-03 Javier Miranda <miranda@adacore.com>
4726 * exp_ch3.adb (Make_Controlling_Function_Wrappers): Exclude
4727 internal entities associated with interfaces and add minimum
4728 decoration to the defining entity of the generated wrapper to
4729 allow overriding interface primitives.
4730 * sem_disp.ads (Override_Dispatching_Operation): Addition of a
4731 new formal (Is_Wrapper).
4732 * sem_disp.adb (Override_Dispatching_Operation): When overriding
4733 interface primitives the new formal helps identifying that the
4734 new operation is not fully decorated.
4736 2013-01-03 Thomas Quinot <quinot@adacore.com>
4738 * sem_ch7.adb, sem_ch10.adb, einfo.adb, einfo.ads, sem_ch12.adb,
4739 rtsfind.adb, sem_elab.adb, sem_ch4.adb, sem_ch8.adb
4740 (Einfo.Is_Visible_Child_Unit, Einfo.Set_Is_Visible_Child_Unit):
4741 Rename to Is_Visible_Lib_Unit, Set_Is_Visible_Lib_Unit, and
4742 update spec accordingly (now also applies to root library units).
4743 (Sem_Ch10.Analyze_Subunit.Analyze_Subunit_Context): Toggle above flag
4744 on root library units, not only child units.
4745 (Sem_Ch10.Install[_Limited]_Withed_Unit): Same.
4746 (Sem_Ch10.Remove_Unit_From_Visibility): Reset Is_Visible_Lib_Unit
4747 even for root library units.
4748 (Sem_Ch8.Find_Expanded_Name): A selected component form whose prefix is
4749 Standard is an expanded name for a root library unit.
4751 2013-01-03 Thomas Quinot <quinot@adacore.com>
4753 * exp_ch3.adb: Minor reformatting.
4755 2013-01-03 Olivier Hainque <hainque@adacore.com>
4757 * tracebak.c: Reinstate changes to support ppc-lynx178.
4759 2013-01-03 Ed Schonberg <schonberg@adacore.com>
4761 * atree.ads: Minor reformatting and documentation enhancement.
4763 2013-01-03 Ed Schonberg <schonberg@adacore.com>
4765 * exp_ch3.adb (Expand_N_Object_Declaration): If the object has
4766 a class-wide type and a renaming declaration is created for it,
4767 preserve entity chain, which already contains generated internal
4768 types. This ensures that freezing actions are properly generated
4769 for all objects declared subsequently in the same scope, and
4770 that debugging information is generated for them.
4771 * sem_util.adb, sem_util.ads (we): New debugging routine, to
4772 display entity chain of a given scope.
4774 2013-01-03 Robert Dewar <dewar@adacore.com>
4776 * exp_intr.adb: Minor reformatting.
4778 2013-01-03 Robert Dewar <dewar@adacore.com>
4780 * einfo.adb: Minor reformatting.
4782 2013-01-03 Pascal Obry <obry@adacore.com>
4784 * adaint.c, adaint.h (__gnat_get_module_name): Removed.
4785 (__gnat_is_module_name_supported): Removed.
4786 * s-win32.ads: Add some needed definitions.
4787 * g-trasym.ads: Update comments.
4789 2013-01-03 Robert Dewar <dewar@adacore.com>
4791 * layout.adb (Set_Composite_Alignment): Fix problems of
4792 interactions with Optimize_Alignment set to Space.
4794 2013-01-03 Thomas Quinot <quinot@adacore.com>
4796 * exp_disp.adb: Minor reformatting.
4798 2013-01-02 Richard Biener <rguenther@suse.de>
4801 * gcc-interface/Makefile.in: Add $(GMPINC) to includes.
4803 2013-01-02 Thomas Quinot <quinot@adacore.com>
4805 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Remove
4806 side effects from Tag_Arg early, doing it too late may cause a
4807 crash due to inconsistent Parent link.
4808 * sem_ch8.adb, einfo.ads: Minor reformatting.
4810 2013-01-02 Robert Dewar <dewar@adacore.com>
4812 * einfo.ads, einfo.adb (Has_Independent_Components): New flag.
4813 * freeze.adb (Size_Known): We do not know the size of a packed
4814 record if it has atomic components, by reference type components,
4815 or independent components.
4816 * sem_prag.adb (Analyze_Pragma, case Independent_Components): Set new
4817 flag Has_Independent_Components.
4819 2013-01-02 Yannick Moy <moy@adacore.com>
4821 * opt.ads (Warn_On_Suspicious_Contract): Set to True by default.
4822 * usage.adb (Usage): Update usage message.
4824 2013-01-02 Pascal Obry <obry@adacore.com>
4826 * adaint.c (__gnat_is_module_name_supported): New constant.
4828 2013-01-02 Ed Schonberg <schonberg@adacore.com>
4830 * sem_attr.adb (Check_Array_Type): Reject an attribute reference on an
4831 array whose component type does not have a completion.
4833 2013-01-02 Geert Bosch <bosch@adacore.com>
4835 * a-nllcef.ads, a-nlcefu.ads, a-nscefu.ads: Make Pure.
4837 2013-01-02 Robert Dewar <dewar@adacore.com>
4839 * par_sco.adb: Minor reformatting.
4841 2013-01-02 Javier Miranda <miranda@adacore.com>
4843 * sem_aggr.adb (Resolve_Array_Aggregate): Remove dead code.
4845 2013-01-02 Olivier Hainque <hainque@adacore.com>
4847 * a-exctra.ads (Get_PC): New function.
4849 2013-01-02 Thomas Quinot <quinot@adacore.com>
4851 * sem_ch8.adb: Minor reformatting.
4853 2013-01-02 Thomas Quinot <quinot@adacore.com>
4855 * sem_ch7.adb: Minor reformatting.
4857 2013-01-02 Thomas Quinot <quinot@adacore.com>
4859 * freeze.adb (Check_Component_Storage_Order): Do not crash on
4862 2013-01-02 Robert Dewar <dewar@adacore.com>
4864 * gnat1drv.adb, targparm.adb, targparm.ads: Minor name change: add
4865 On_Target to Atomic_Sync_Default.
4867 2013-01-02 Robert Dewar <dewar@adacore.com>
4869 * sem_warn.adb (Warn_On_Known_Condition): Suppress warning for
4870 comparison of attribute result with constant
4871 * a-ststio.adb, s-direio.adb, s-rannum.adb: Remove unnecessary pragma
4872 Warnings (Off, "..");
4874 2013-01-02 Yannick Moy <moy@adacore.com>
4876 * sem_prag.ads: Minor correction of comment.
4878 2013-01-02 Thomas Quinot <quinot@adacore.com>
4880 * par_sco.adb (Traverse_Package_Declaration): The first
4881 declaration in a nested package is dominated by the preceding
4882 declaration in the enclosing scope.
4884 2013-01-02 Pascal Obry <obry@adacore.com>
4886 * adaint.c, adaint.h (__gnat_get_module_name): Return the actual
4887 module containing a given address.
4889 2013-01-02 Thomas Quinot <quinot@adacore.com>
4891 * sem_ch3.adb: Minor reformatting.
4893 2013-01-02 Pascal Obry <obry@adacore.com>
4895 * cstreams.c (__gnat_ftell64): New routine. Use _ftelli64 on
4896 Win64 and default to ftell on other platforms.
4897 (__gnat_fsek64): Likewise.
4898 * i-cstrea.ads: Add fssek64 and ftell64 specs.
4899 * s-crtl.ads: Likewise.
4900 * a-ststio.adb, s-direio.adb (Size): Use 64 bits version when required.
4901 (Set_Position): Likewise.
4903 2013-01-02 Thomas Quinot <quinot@adacore.com>
4905 * par_sco.adb: Generate X SCOs for default expressions in
4906 subprogram body stubs. Do not generate any SCO for package,
4907 task, or protected body stubs.
4909 2013-01-02 Ed Schonberg <schonberg@adacore.com>
4911 * sem_ch3.adb: Further improvement to ASIS mode for anonymous
4912 access to protected subprograms.
4914 2013-01-02 Robert Dewar <dewar@adacore.com>
4916 * par_sco.adb, vms_data.ads: Minor reformatting.
4918 2013-01-02 Thomas Quinot <quinot@adacore.com>
4920 * par_sco.adb (Traverse_Declarations_Or_Statement): Function
4921 form, returning value of Current_Dominant upon exit, for chaining
4923 (Traverse_Declarations_Or_Statement.Traverse_One, case
4924 N_Block_Statement): First statement is dominated by last declaration.
4925 (Traverse_Subprogram_Or_Task_Body): Ditto.
4926 (Traverse_Package_Declaration): First private
4927 declaration is dominated by last visible declaration.
4928 (Traverse_Sync_Definition): Ditto.
4930 2013-01-02 Thomas Quinot <quinot@adacore.com>
4932 * gnat_rm.texi: Restrict the requirement for Scalar_Storage_Order
4933 matching Bit_Order to record types only, since array types do not
4936 2013-01-02 Vincent Celier <celier@adacore.com>
4938 * gnat_ugn.texi: Remove documentation of -gnateO, which is an
4940 * usage.adb: Indicate that -gnateO is an internal switch.
4942 2013-01-02 Thomas Quinot <quinot@adacore.com>
4944 * par_sco.adb: Add SCO generation for task types and single
4946 * get_scos.adb: When adding an instance table entry for a
4947 non-nested instantiation, make sure the Enclosing_Instance is
4950 2013-01-02 Hristian Kirtchev <kirtchev@adacore.com>
4952 * sem_attr.adb (Analyze_Attribute): Skip the special _Parent
4953 scope generated for subprogram inlining purposes while trying
4954 to locate the enclosing function.
4955 * sem_prag.adb (Analyze_Pragma): Preanalyze the boolean
4956 expression of pragma Postcondition when the pragma comes from
4957 source and appears inside a subprogram body.
4959 2013-01-02 Thomas Quinot <quinot@adacore.com>
4961 * switch-c.adb, fe.h, back_end.adb: Enable generation of instantiation
4962 information in debug info unconditionally when using -fdump-scos,
4963 instead of relying on a separate command line switch -fdebug-instances.
4964 * gcc-interface/Make-lang.in: Update dependencies.
4966 2013-01-02 Ed Schonberg <schonberg@adacore.com>
4968 * sem_ch12.adb: Additional refinement of predicate.
4970 2013-01-02 Vincent Celier <celier@adacore.com>
4972 * vms_data.ads: Remove incorrect spaces at end of descriptions
4973 of qualifiers for single switch.
4975 2013-01-02 Ben Brosgol <brosgol@adacore.com>
4977 * gnat_rm.texi: Minor edits / wordsmithing in section on pragma
4978 Check_Float_Overflow.
4980 2013-01-02 Thomas Quinot <quinot@adacore.com>
4982 * sprint.adb (Sprint_Node_Actual): Do not add extra parens for
4983 a conditional expression (CASE or IF expression) that already
4984 has parens. Also omit ELSE keyword for an IF expression without
4987 2013-01-02 Thomas Quinot <quinot@adacore.com>
4989 * gnat1drv.adb (Adjust_Global_Switches): Adjust back-end
4990 flag_debug_instances here, after front-end switches have been
4993 2013-01-02 Vincent Celier <celier@adacore.com>
4995 * usage.adb: Minor reformatting.
4997 2013-01-02 Arnaud Charlet <charlet@adacore.com>
4999 * opt.ads: Fix typo.
5001 2013-01-02 Thomas Quinot <quinot@adacore.com>
5003 * par_sco.adb: Generate P decision SCOs for SPARK pragmas
5004 Assume and Loop_Invariant.
5006 2013-01-02 Robert Dewar <dewar@adacore.com>
5008 * vms_data.ads: Add entry for Float_Check_Valid (-gnateF).
5009 * ug_words: Add entry for Float_Check_Overflow.
5010 * usage.adb: Minor reformatting.
5011 * gnat_ugn.texi: Add documentation for -gnateF (Check_Float_Overflow).
5013 2013-01-02 Vincent Celier <celier@adacore.com>
5015 * gnat_ugn.texi: Add documentation for switches -gnateA, -gnated,
5016 -gnateO=, -gnatet and -gnateV.
5017 * ug_words: Add qualifiers equivalent to -gnateA, -gnated,
5018 -gnatet and -gnateV.
5019 * usage.adb: Add lines for -gnatea, -gnateO and -gnatez.
5020 * vms_data.ads: Add new compiler qualifiers /ALIASING_CHECK
5021 (-gnateA), /DISABLE_ATOMIC_SYNCHRONIZATION (-gnated),
5022 /PARAMETER_VALIDITY_CHECK (-gnateV) and /TARGET_DEPENDENT_INFO
5025 2013-01-02 Robert Dewar <dewar@adacore.com>
5027 * checks.adb (Apply_Scalar_Range_Check): Implement Check_Float_Overflow.
5028 * opt.ads, opt.adb: Handle flags Check_Float_Overflow[_Config].
5029 * par-prag.adb: Add dummy entry for pragma Check_Float_Overflow.
5030 * sem_prag.adb: Implement pragma Check_Float_Overflow.
5031 * snames.ads-tmpl: Add entries for pragma Check_Float_Overflow.
5032 * switch-c.adb: Recognize -gnateF switch.
5033 * tree_io.ads: Update ASIS version number.
5034 * gnat_rm.texi: Add documentation of pragma Check_Float_Overflow.
5036 2013-01-02 Robert Dewar <dewar@adacore.com>
5038 * checks.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
5039 exp_disp.adb, exp_dist.adb, exp_intr.adb, exp_prag.adb, exp_util.adb,
5040 freeze.adb, gnat1drv.adb, inline.adb, layout.adb, lib-xref.adb,
5041 par-ch10.adb, par-labl.adb, par-load.adb, par-util.adb, restrict.adb,
5042 sem_ch13.adb, sem_ch4.adb, sem_ch6.adb, sem_dim.adb, sem_elab.adb,
5043 sem_res.adb, sem_warn.adb, sinput-l.adb: Add tags to warning messages.
5044 * sem_ch6.ads, warnsw.ads, opt.ads: Minor comment updates.
5046 2013-01-02 Robert Dewar <dewar@adacore.com>
5048 * err_vars.ads: Minor comment fix.
5050 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5052 * sem_ch12.adb: Refine predicate.
5054 2013-01-02 Robert Dewar <dewar@adacore.com>
5056 * errout.ads: Minor comment fixes.
5057 * opt.ads: Minor comment additions.
5058 * exp_aggr.adb: Add tags to warning messages
5059 * exp_ch11.adb, exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_aggr.adb,
5060 sem_attr.adb, sem_case.adb, sem_cat.adb, sem_ch3.adb, sem_ch4.adb,
5061 sem_ch5.adb, sem_disp.adb, sem_dist.adb, sem_elab.adb, sem_eval.adb,
5062 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb, sem_util.adb,
5063 sem_warn.adb: Add tags to warning messages
5065 2013-01-02 Doug Rupp <rupp@adacore.com>
5067 * init.c [VMS] Remove subtest on reason mask for ACCVIO that is a C_E.
5069 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5071 * sem_ch12.adb: Recover source name for renamed packagea.
5073 2013-01-02 Robert Dewar <dewar@adacore.com>
5075 * errout.adb (Set_Msg_Insertion_Warning): Correct typo causing
5076 tests to fail if insertion sequence is at end of message string.
5077 * opt.ads: Minor comment fixes and additions.
5078 * sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_ch10.adb, sem_ch11.adb,
5079 sem_ch12.adb, sem_ch13.adb: Add tags to warning messages.
5080 * sem_ch6.ads, sem_ch6.adb (Cannot_Inline): Deal with warning message
5081 tags. Add tags to warning messages.
5083 2013-01-02 Robert Dewar <dewar@adacore.com>
5085 * err_vars.ads (Warning_Doc_Switch): New flag.
5086 * errout.adb (Error_Msg_Internal): Implement new warning flag
5087 doc tag stuff (Set_Msg_Insertion_Warning): New procedure.
5088 * errout.ads: Document new insertion sequences ?? ?x? ?.x?
5089 * erroutc.adb (Output_Msg_Text): Handle ?? and ?x? warning doc
5091 * erroutc.ads (Warning_Msg_Char): New variable.
5092 (Warn_Chr): New field in error message object.
5093 * errutil.adb (Error_Msg): Set Warn_Chr in error message object.
5094 * sem_ch13.adb: Minor reformatting.
5095 * warnsw.adb: Add handling for -gnatw.d and -gnatw.D
5096 (Warning_Doc_Switch).
5097 * warnsw.ads: Add handling of -gnatw.d/.D switches (warning
5100 2013-01-02 Robert Dewar <dewar@adacore.com>
5102 * opt.ads: Minor reformatting.
5104 2013-01-02 Doug Rupp <rupp@adacore.com>
5106 * init.c: Reorganize VMS section.
5107 (scan_condtions): New function for scanning condition tables.
5108 (__gnat_handle_vms_condtion): Use actual exception name for imported
5109 exceptions vice IMPORTED_EXCEPTION.
5110 Move condition table scanning into separate function. Move formerly
5111 special handled conditions to system condition table. Use SYS$PUTMSG
5112 output to fill exception message field for formally special handled
5113 condtions, in particular HPARITH to provide more clues about cause and
5114 location then raised from the translated image.
5116 2013-01-02 Thomas Quinot <quinot@adacore.com>
5118 * sem_ch13.adb (Analyze_Aspect_Specifications): For a Pre/Post
5119 aspect that applies to a library subprogram, prepend corresponding
5120 pragma to the Pragmas_After list, in order for split AND THEN
5121 sections to be processed in the expected order.
5123 2013-01-02 Thomas Quinot <quinot@adacore.com>
5125 * exp_prag.adb (Expand_Pragma_Check): The statements generated
5126 for the pragma must have the sloc of the pragma, not the
5127 sloc of the condition, otherwise this creates anomalies in the
5128 generated debug information that confuse coverage analysis tools.
5130 2013-01-02 Thomas Quinot <quinot@adacore.com>
5132 * sem_ch13.adb: Minor reformatting.
5134 2013-01-02 Arnaud Charlet <charlet@adacore.com>
5136 * g-excact.ads (Core_Dump): Clarify that this subprogram does
5137 not dump cores under Windows.
5139 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5141 * sem_ch8.adb (Analyze_Primitive_Renamed_Operation): The prefixed
5142 view of a subprogram has convention Intrnnsic, and a renaming
5143 of a prefixed view cannot be the prefix of an Access attribute.
5145 2013-01-02 Robert Dewar <dewar@adacore.com>
5147 * restrict.adb: Minor reformatting.
5149 2013-01-02 Thomas Quinot <quinot@adacore.com>
5151 * exp_prag.adb: Minor reformatting.
5153 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5155 * sem_ch12.adb (Get_Associated_Node): If the node is an
5156 identifier that denotes an unconstrained array in an object
5157 declaration, it is rewritten as the name of an anonymous
5158 subtype whose bounds are given by the initial expression in the
5159 declaration. When checking whether that identifier is global
5160 reference, use the original node, not the local generated subtype.
5162 2013-01-02 Olivier Hainque <hainque@adacore.com>
5164 * tracebak.c: Revert previous change, incomplete.
5166 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5168 * sem_ch13.adb (Analyze_Aspect_Specifications): If the aspect
5169 appears on a subprogram body that acts as a spec, place the
5170 corresponding pragma in the declarations of the body, so that
5171 e.g. pre/postcondition checks can be generated appropriately.
5173 2013-01-02 Robert Dewar <dewar@adacore.com>
5175 * sem_ch3.adb: Minor reformatting and code reorganization.
5177 2013-01-02 Vincent Celier <celier@adacore.com>
5179 * switch-m.adb (Normalize_Compiler_Switches): Record the
5180 complete switch -fstack-check=specific instead of its shorter
5181 alias -fstack-check.
5183 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5185 * sem_ch3.adb (Derive_Subprogram): Enforce RM 6.3.1 (8):
5186 if the derived type is a tagged generic formal type with
5187 unknown discriminants, the inherited operation has convention
5188 Intrinsic. As such, the 'Access attribute cannot be applied to it.
5190 2013-01-02 Thomas Quinot <quinot@adacore.com>
5192 * sem_attr.adb: Minor reformatting.
5194 2013-01-02 Thomas Quinot <quinot@adacore.com>
5196 * par_sco.adb: Add SCO generation for S of protected types and
5197 single protected object declarations.
5199 2013-01-02 Robert Dewar <dewar@adacore.com>
5201 * sem_eval.adb, osint.ads: Minor reformatting.
5203 2013-01-02 Hristian Kirtchev <kirtchev@adacore.com>
5205 * sem_prag.adb (Analyze_Pragma): Check the legality of pragma Assume.
5207 2013-01-02 Thomas Quinot <quinot@adacore.com>
5209 * sem_eval.adb (Compile_Time_Compare): For static operands, we
5210 can perform a compile time comparison even if in preanalysis mode.
5212 2013-01-02 Thomas Quinot <quinot@adacore.com>
5214 * par_sco.adb (SCO_Record): Always use
5215 Traverse_Declarations_Or_Statements to process the library level
5216 declaration, so that SCOs are properly generated for its aspects.
5218 2013-01-02 Thomas Quinot <quinot@adacore.com>
5220 * scos.ads (In_Decision): Add missing entry for 'a'.
5221 * sem_prag.adb (Analyze_Pragma, case pragma Check): Omit
5222 call to Set_SCO_Pragma_Enabled for Invariant and Predicate.
5223 * sem_ch13.adb: Minor comment update.
5225 Copyright (C) 2013 Free Software Foundation, Inc.
5227 Copying and distribution of this file, with or without modification,
5228 are permitted in any medium without royalty provided the copyright
5229 notice and this notice are preserved.