1 2013-08-08 Eric Botcazou <ebotcazou@adacore.com>
3 * gcc-interface/Makefile.in (TOOLS_LIBS): Pick C object files from the
4 compiler build and use standard library variables.
5 (../../vxaddr2line$(exeext): Do not depend on targext.o and adjust.
6 (gnatmake-re): Do not depend on targext.o.
7 (gnatlink-re): Do not depend on link.o and targext.o.
8 (../../gnatmake$(exeext): Likewise.
9 (../../gnatlink$(exeext): Likewise.
11 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
13 * gcc-interface/gigi.h: Fix typos.
14 * gcc-interface/trans.c: Likewise.
15 * gcc-interface/utils2.c: Likewise.
16 * gnat_rm.texi: Likewise.
17 * gnat_ugn.texi: Likewise.
18 * raise-gcc.c: Likewise.
19 * sigtramp-ppcvxw.c: Likewise.
21 * terminals.c: Likewise.
23 2013-07-20 Eric Botcazou <ebotcazou@adacore.com>
26 * gcc-interface/ada.h (CAT): Fix typo.
28 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
30 * einfo.adb (Get_Pragma): Handle the retrieval of delayed
31 pragmas stored in N_Contract nodes.
32 * einfo.ads (Get_Pragma): Update the comment on usage.
33 * sem_prag.adb (Check_Precondition_Postcondition): Retain a copy
34 of the pragma when it applies to a body that acts as a spec. The
35 copy is preanalyzed and chained on the contract of the body.
37 2013-07-08 Robert Dewar <dewar@adacore.com>
39 * rtsfind.adb: Minor comment fix.
41 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
43 * sem_ch4.adb (Check_Ghost_Subprogram_Call): Do not check the placement
44 of a Ghost function call when the enclosing context is being
47 2013-07-08 Ed Schonberg <schonberg@adacore.com>
49 * exp_ch6.adb (Expand_Inlined_Call, Process_Formals): If the
50 expression in a return statement is a numeric literal, qualify
51 it with the return type for proper resolution.
53 2013-07-08 Robert Dewar <dewar@adacore.com>
55 * sem.ads: Minor comment updates.
56 * s-restri.ads, exp_ch6.adb, lib-load.ads, exp_ch3.adb, sem_ch10.adb:
59 2013-07-08 Robert Dewar <dewar@adacore.com>
61 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
63 * gnat_rm.texi: Add missing menu entry for Attribute Ref Add
64 documentation for attribute Restriction_Set.
65 * lib-writ.adb (Write_With_Lines): Generate special W lines
67 * lib-writ.ads: Document special use of W lines for
69 * lib.ads (Restriction_Set_Dependences): New table.
70 * par-ch4.adb (Is_Parameterless_Attribute): Add Loop_Entry to
71 list (Scan_Name_Extension_Apostrophe): Remove kludge test for
72 Loop_Entry (Scan_Name_Extension_Apostrophe): Handle No_Dependence
74 * restrict.adb (Check_SPARK_Restriction): Put in Alfa order
75 (OK_No_Dependence_Unit_Name): New function.
76 * restrict.ads (OK_No_Dependence_Unit_Name): New function.
77 * rtsfind.adb: Minor reformatting Minor code reorganization.
78 * sem_attr.adb (Analyze_Attribute): Add processing for
80 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
81 Remove Check_Unit_Name and use new function
82 OK_No_Dependence_Unit_Name instead.
83 * sinfo.ads: Minor comment updates.
84 * snames.ads-tmpl: Add entry for Restriction_Set attribute.
86 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
88 * exp_ch4.adb (Apply_Accessibility_Check): Remove local constant
89 Pool_Id and local variable Free_Stmt. Do not deallocate the faulty
90 object as "free" is not available on all targets/profiles.
92 2013-07-08 Robert Dewar <dewar@adacore.com>
94 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle
95 Storage_Size aspect for task type in case discriminant is
97 (Analyze_Attribute_Definition_Clause): Do not flag Storage_Size
98 attribute definition clause as obsolescent if from aspect.
100 2013-07-08 Robert Dewar <dewar@adacore.com>
102 * gnat_rm.texi: Add documentation for Img returning a function.
103 * par-prag.adb: Minor reformatting.
104 * restrict.adb: Minor reformatting and code reorganization.
106 2013-07-08 Ed Schonberg <schonberg@adacore.com>
108 * sem_res.adb: add guard to ASIS transform.
110 2013-07-08 Ed Schonberg <schonberg@adacore.com>
112 * exp_ch9.adb (Expand_N_Asynchronous_Select): If the trigger
113 of the asynchronous select is a dispatching call, transform the
114 abortable part into a procedure, to avoid duplication of local
115 loop variables that may appear within.
117 2013-07-08 Vincent Celier <celier@adacore.com>
119 * projects.texi: Update the documentation of suffixes in package
122 2013-07-08 Ed Schonberg <schonberg@adacore.com>
124 * sem_ch6.adb (Conforming_Types): Anonymous_access_to_subprograsm
125 types are type conformant if the designated type of one is
126 protected and the other is not. Convention only matters when
127 checking subtype conformance.
129 2013-07-08 Ed Schonberg <schonberg@adacore.com>
131 * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate
132 back the fully resolved operands to the original function call
133 so that all semantic information remains available to ASIS.
135 2013-07-08 Ed Schonberg <schonberg@adacore.com>
137 * sem_ch4.adb: minor reformatting (remove obsolete comment).
138 * sem_ch9.adb: improve error message on illegal trigger.
140 2013-07-08 Robert Dewar <dewar@adacore.com>
142 * sem_prag.adb: Minor reformatting.
144 2013-07-08 Robert Dewar <dewar@adacore.com>
146 * gnatcmd.adb: Minor reformatting.
148 2013-07-08 Robert Dewar <dewar@adacore.com>
150 * targparm.adb (Get_Target_Parameters): Recognize pragma
151 Partition_Elaboration_Policy.
153 2013-07-08 Robert Dewar <dewar@adacore.com>
155 * gnat_ugn.texi: Minor update to mention partition elaboration policy.
157 2013-07-08 Ed Schonberg <schonberg@adacore.com>
159 * sem_ch4.adb (Comple_Object_Operation): Revert previous change.
160 (Analyze_Indexed_Component_Form): In ASIS mode, if node has been
161 transformed but not rewritten as a function call (as is the case
162 in a generic), analyze it as such.
164 2013-07-08 Thomas Quinot <quinot@adacore.com>
166 * gnat_rm.texi: Minor rewording: add missing word "operators"
167 in documentation for restriction No_Direct_Boolean_Operator.
169 2013-07-08 Robert Dewar <dewar@adacore.com>
171 * errout.adb (Set_Msg_Txt): No longer sets Is_Style_Msg,
172 Is_Warning_Msg, or Is_Unconditional_Msg (all are set elsewhere
174 * errout.ads: Insertions ! and !! no longer have to be at the
175 end of the message, they can be anywhere in the message.
176 * erroutc.adb (Test_Style_Warning_Serious_Unconditional_Msg):
177 Replaces Test_Style_Warning_Serious_Msg
178 * erroutc.ads (Has_Double_Exclam): New flag New comments for
179 existing flags (Test_Style_Warning_Serious_Unconditional_Msg):
180 Replaces Test_Style_Warning_Serious_Msg
181 * errutil.adb (Test_Style_Warning_Serious_Unconditional_Msg):
182 Replaces Test_Style_Warning_Serious_Msg
184 2013-07-08 Robert Dewar <dewar@adacore.com>
186 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings):
187 Recognize SPARK_05 as synonym for SPARK in restrictions pragma.
188 * restrict.ads, restrict.adb (SPARK_Hides): Table moved to body, only
190 * scng.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb,
191 sem_res.adb, sem_util.adb: Use restriction SPARK_05 instead of SPARK.
192 * snames.ads-tmpl (Name_No_Obsolescent_Features): New entry.
194 2013-07-08 Vincent Celier <celier@adacore.com>
196 * gnatcmd.adb (Check_Files): Use a response file for gnatls
199 2013-07-08 Gary Dismukes <dismukes@adacore.com>
201 * freeze.adb: Minor typo fixes.
203 2013-07-08 Robert Dewar <dewar@adacore.com>
205 * gnat_rm.texi: Document SPARK_05 (replaces SPARK) Document
206 obsolete recognition of SPARK Document all other obsolete synonyms
207 for old restrictions.
208 * restrict.adb (Check_SPARK_Restriction): SPARK_05 replaces
209 SPARK (Process_Restriction_Synonyms): Handle SPARK as synonym
211 * restrict.ads: Restriction SPARK_05 replaces SPARK.
212 * s-rident.ads: Replace restriction SPARK by SPARK_05 Add SPARK
213 as synonym for SPARK_05.
214 * sem_prag.adb: Minor reformatting.
215 * snames.ads-tmpl: Add entries for Name_SPARK and Name_SPARK_05.
217 2013-07-08 Robert Dewar <dewar@adacore.com>
219 * sem_dim.adb: Minor error message change.
220 * freeze.adb (Freeze_Entity, array type case): Extend handling
221 of Implicit_Packing to handle multi-dimensional array case.
222 * gnat_rm.texi: Update doc on Implicit_Packing.
224 2013-07-08 Robert Dewar <dewar@adacore.com>
226 * exp_ch4.adb: Minor reformatting.
228 2013-07-08 Ed Schonberg <schonberg@adacore.com>
230 * sem_ch4.adb (Complete_Object_Operation): In ASIS mode, if
231 the parent node is a selected component and the analysis as a
232 call is successful, set the type of the selector in the parent
233 node for subsequent checks, because the rewriting of the node
234 does not take place during pre-analysis.
236 2013-07-08 Robert Dewar <dewar@adacore.com>
238 * sem_ch8.adb, exp_ch3.adb: Minor reformatting.
240 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
242 * exp_ch4.adb (Expand_N_Op_Eq): When comparing two
243 Bounded_Strings, use the predefined equality function of the
244 root Super_String type.
246 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
248 * exp_ch4.adb (Create_Alternative): Removed.
249 (Expand_N_If_Expression): Remove constant
250 In_Case_Or_If_Expression. Add local variable
251 Ptr_Typ. Inspect the "then" and "else" action lists
252 for transient controlled objects and generate code to
253 finalize them. (Is_Controlled_Function_Call): Removed.
254 (Process_Action): Update the comment on usage. Update the call
255 to Process_Transient_Object. There is no need to continue the
256 traversal of the object itself.
257 (Process_Actions): New routine.
258 (Process_Transient_Object): Moved to the top level of Exp_Ch4. Add
259 a new formal and update the related comment on usage.
260 * exp_util.adb (Within_Case_Or_If_Expression): Start the search
261 from the parent of the node.
263 2013-07-08 Robert Dewar <dewar@adacore.com>
265 * a-cusyqu.ads, a-cbprqu.ads, s-interr.ads, a-cuprqu.ads,
266 a-cbsyqu.ads: Minor reformatting (proper formatting of overriding).
268 2013-07-08 Ed Schonberg <schonberg@adacore.com>
270 * sem_ch8.adb (Attribute_Renaming): Treat 'Img as an attribute
271 that can be renamed as a function.
273 2013-07-08 Thomas Quinot <quinot@adacore.com>
275 * g-socket.ads: Document target dependency: FIONBIO may or may not
276 be inherited from listening socket by accepted socket.
278 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
280 * exp_ch4.adb (Apply_Accessibility_Check): Do not deallocate the object
281 on targets that can't deallocate.
283 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
285 * exp_ch3.adb (Freeze_Type): Generate a
286 subpools-related accessibility check only on profiles that
287 include the corresponding library unit.
289 2013-07-08 Gary Dismukes <dismukes@adacore.com>
291 * sem_ch8.adb: Minor typo fixes.
293 2013-07-08 Javier Miranda <miranda@adacore.com>
295 * sem_ch8.adb (Save_Scope_Stack): Adding documentation.
296 (Restore_Scope_Stack): Remove the elements of the list when the
297 visibility of each entity is restored.
299 2013-07-08 Robert Dewar <dewar@adacore.com>
301 * exp_ch9.adb, sem.ads, sem_util.adb: Minor reformatting.
303 2013-07-08 Robert Dewar <dewar@adacore.com>
305 * sem_ch8.adb, sem_ch8.ads: Minor reformatting.
307 2013-07-08 Gary Dismukes <dismukes@adacore.com>
309 * gnat_rm.texi: Minor reformatting and rewording for consistency.
311 2013-07-08 Bob Duff <duff@adacore.com>
313 * exp_ch3.adb (Build_Master): If Desig_Type is an incomplete
314 view coming from a limited-with'ed package, use the nonlimited
315 view in case it has tasks.
317 2013-07-08 Javier Miranda <miranda@adacore.com>
319 * sem_ch8.ad[sb] (Save_Scope_Stack): Modified to return the list
320 of entities which have been temporarily removed from immediate
322 (Restore_Scope_Stack): Modified to receive an
323 additional parameter with the list of entities whose immediate
324 visibility must be restored.
325 * sem.adb (Do_Analyze): Use new version of
326 Save_Scope_Stack/Restore_Scope_Stack
327 * sem_ch12.adb (Inline_Instance_Body): Use new version of
328 Save_Scope_Stack and Restore_Scope_Stack
330 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
332 * sem_prag.adb (Analyze_Pragma): Remove
333 variable Unit_Prag. Remove the check on duplicate mode for the
334 configuration form of the pragma.
335 (Redefinition_Error): Removed.
337 2013-07-08 Robert Dewar <dewar@adacore.com>
339 * lib.ads, gnat_rm.texi, einfo.ads, sem_ch13.adb: Minor reformatting
342 2013-07-08 Ed Schonberg <schonberg@adacore.com>
344 * sem_prag.adb (Analyze_PPC_In_Decl_Part): In ASIS mode,
345 pre-analyze only the original expression attached to the source
346 aspect, not the relocated expression of the pragma, to prevent
347 malformed trees in ASIS mode.
348 * sem_ch13.adb (Analyze_Aspect_Specifications): Revert previous
349 patch: the expression in the aspect for pre/post must be relocated
350 to the pragma for proper analysis.
352 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
354 * aspects.adb: Add an entry for SPARK_Mode in table Canonical_Aspect.
355 * aspects.ads: Add an entry for SPARK_Mode in tables Aspect_Id,
356 Aspect_Argument, Aspect_Names.
357 * atree.adb (Node32): New routine.
358 (Set_Node32): New routine.
359 * atree.ads (Node32): New routine.
360 (Set_Node32): New routine.
361 * einfo.adb: Node32 is now used as SPARK_Mode_Pragmas.
362 (Set_SPARK_Mode_Pragmas): New routine.
363 (SPARK_Mode_Pragmas): New routine.
364 (Write_Field32_Name): Add and entry for SPARK_Modes.
365 * einfo.ads: Add attribute SPARK_Mode_Pragmas along with usage
367 (Set_SPARK_Mode_Pragmas): New routine and
369 (SPARK_Mode_Pragmas): New routine and pragma Inline.
370 * gnat_rm.texi: Add sections explaining the syntax and semantics
371 of aspect/pragma SPARK_Mode.
372 * gnat_ugn.texi: Add pragma SPARK_Mode to the list of
373 configuration pragmas.
374 * lib.adb (Set_SPARK_Mode_Pragma): New routine.
375 (SPARK_Mode_Pragma): New routine.
376 * lib.ads: Alphabetize the comments on fields of record
377 Unit_Record. Add new field SPARK_Mode_Pragma along with
378 comment on its usage. Update the layout of record Unit_Record.
379 (Set_SPARK_Mode_Pragma): New routine and pragma Inline.
380 (SPARK_Mode_Pragma): New routine and pragma Inline.
381 * lib-load.adb (Create_Dummy_Package_Unit): Initialize
382 field SPARK_Mode_Pragma.
383 (Load_Main_Source): Initialize field SPARK_Mode_Pragma.
384 (Load_Unit): Initialize field SPARK_Mode_Pragma.
385 * lib-writ.adb (Add_Preprocessing_Dependency): Initialize field
387 (Ensure_System_Dependency): Initialize field SPARK_Mode_Pragma.
388 * opt.ads: Alphabetize verification flags. Store the
389 compilation-wide SPARK mode in variable Global_SPARK_Mode.
390 * par-prag.adb: Pragma SPARK_Mode does not need special processing
392 * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect
393 SPARK_Mode into a pragma.
394 (Check_Aspect_At_Freeze_Point): Aspect SPARK_Mode does not need
396 * sem_prag.adb: Add an entry for SPARK_Mode in table Sig_Flags.
397 (Analyze_Pragma): Add processing for pragma SPARK_Mode.
398 (Get_SPARK_Mode_Id): New routine.
399 (Is_Elaboration_SPARK_Mode): New routine.
400 (Is_Private_SPARK_Mode): New routine.
401 * sem_prag.ads (Get_SPARK_Mode_Id): New routine.
402 (Is_Elaboration_SPARK_Mode): New routine.
403 (Is_Private_SPARK_Mode): New routine.
404 * sinfo.ads: Update the comment on the usage of field Next_Pragma.
405 * snames.ads-tmpl: Add new predefined name for SPARK_Mode and
406 Auto. Add new pragma Id for SPARK_Mode.
407 * types.ads: Add new type SPARK_Mode_Id.
409 2013-07-05 Ed Schonberg <schonberg@adacore.com>
411 * sem_ch13.adb (Analyze_Aspect_Specifications): For
412 pre/postconditions copy the expression to the generated pragma,
413 to avoid sharing between the original aspect and the pragma node,
414 because in ASIS_Mode both will be independently analyzed.
416 2013-07-05 Ed Schonberg <schonberg@adacore.com>
418 * exp_ch3.adb (Build_Variant_Record_Equality): Add pairs of
419 formals for each discriminant of an unchecked union.
420 (Make_Eq_Case): Suprogram accepts a list of discriminants. Nested
421 variants are supported. New helper function Corresponding_Formal.
422 * exp_ch4.adb (Build_Equality_Call): For unchecked unions,
423 loop through discriminants to create list of inferred values,
424 and modify call to equality routine accordingly.
426 2013-07-05 Claire Dross <dross@adacore.com>
428 * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
429 a-cforse.ads, a-cofove.ads: Add preconditions when needed +
430 container types are not tagged any more.
432 2013-07-05 Thomas Quinot <quinot@adacore.com>
434 * freeze.adb (Freeze_Entity): For an object with captured
435 initialization statements, do not remove Init_Stmts from the
436 enclosing list, as Freeze_All might rely on it to know where to
439 2013-07-05 Robert Dewar <dewar@adacore.com>
441 * exp_ch4.adb, a-cfdlli.ads, a-ngelfu.ads, s-bignum.adb: Minor
444 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
446 * exp_ch4.adb (Expand_Composite_Equality): Use the full view
447 when the base type is private.
449 2013-07-05 Claire Dross <dross@adacore.com>
451 * a-cfdlli.ads: Add preconditions when needed.
453 2013-07-05 Robert Dewar <dewar@adacore.com>
455 * sem_ch8.adb: Minor reformatting.
457 2013-07-05 Ed Schonberg <schonberg@adacore.com>
459 * sem_ch3.adb (Access_Subprogram_Declaration): Use
460 Generate_Reference_To_Formals.
461 * lib-xref.adb (Generate_Reference_To_Formals): In the case of
462 access to subprograms, the formals are found in the designated
465 2013-07-05 Robert Dewar <dewar@adacore.com>
467 * gnat_ugn.texi: Document that comments can be lined up with
468 previous non-blank line.
469 * styleg.adb (Check_Comment): Allow indentation to match previous
470 non-blank line (Same_Column_As_Previous_Line): New function
472 2013-07-05 Robert Dewar <dewar@adacore.com>
474 * gnat_rm.texi: Update doc on missing pragmas.
475 * sem_ch12.adb: Minor comment additions.
477 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
479 * sem_prag.adb (Analyze_Pragma): Ensure that
480 Contract_Cases, Depends and Global are analyzed when they apply
481 to a subprogram compilation unit. The pragmas are all added
482 unconditionally to the construct's contract. This ensures that
483 proof tools can locate the pragmas.
485 2013-07-05 Ed Schonberg <schonberg@adacore.com>
487 * sem_ch8.adb (Freeze_Actual_Profile): An instance within
488 a generic unit does not freeze a generic private type of the
489 enclosing generic. This rule must also apply to a type derived
490 from a generic private type.
492 2013-07-05 Arnaud Charlet <charlet@adacore.com>
494 * gnat_rm.texi: Add missing documentation for pragmas.
496 2013-07-05 Yannick Moy <moy@adacore.com>
498 * sem_ch12.adb: Minor comment.
500 2013-07-05 Robert Dewar <dewar@adacore.com>
502 * gnat_rm.texi: Document that -gnatR and -gnatD cannot be used
504 * switch-c.adb: Do not allow -gnatD and -gnatR to both be
507 2013-07-05 Robert Dewar <dewar@adacore.com>
509 * gnat_rm.texi: Add missing documentation for pragmas.
510 * sem_ch8.adb: Minor reformatting.
511 * gnat_ugn.texi: Document that -gnatR and -gnatD cannot be used
514 2013-07-05 Yannick Moy <moy@adacore.com>
516 * sem_ch12.ads, sem_ch12.adb (Need_Subprogram_Instance_Body): Force
517 instance of subprogram body in SPARK mode, by testing Expander_Active
518 (set in SPARK mode) instead of Full_Expander_Active (not set in
520 * sem_ch8.adb: Minor reformatting.
522 2013-07-05 Robert Dewar <dewar@adacore.com>
524 * freeze.adb (Freeze_Entity): Remove test of obsolete flag
525 Propagate_Exceptions, and associated useless code that did
527 * gnat_rm.texi: Add documentation for obsolete pragma
528 Propagate_Exceptions.
529 * opt.ads (Propagate_Exceptions): Obsolete flag removed.
530 * sem_prag.adb (Analyze_Pragma, case Propagate_Exceptions):
531 Remove useless and obsolete setting of Propagate_Exceptions flag.
533 2013-07-05 Robert Dewar <dewar@adacore.com>
535 * gnat_rm.texi, sem_prag.adb: Minor comment/text fixes.
537 2013-07-05 Robert Dewar <dewar@adacore.com>
539 * gnat_rm.texi: Add missing doc for various pragmas.
541 2013-07-05 Robert Dewar <dewar@adacore.com>
543 * par_sco.adb, sem_ch12.adb, par-ch5.adb: Minor reformatting.
544 * gnat_rm.texi: Document pragma Profile_Warnings.
545 * restrict.ads, sem_prag.adb: Minor reformatting.
547 2013-07-05 Ed Schonberg <schonberg@adacore.com>
549 * sem_ch12.adb (Check_Formal_Package_Instance): Handle properly
550 a formal subprogram that was defaulted in the formal package.
552 2013-07-05 Thomas Quinot <quinot@adacore.com>
554 * par_sco.adb (Traverse_Declarations_Or_Statements): Ignore
555 N_Implicit_Label_Declaration nodes.
557 2013-07-05 Robert Dewar <dewar@adacore.com>
559 * a-cfhase.adb, sem_prag.adb, a-cfhama.adb: Minor reformatting.
561 2013-07-05 Ed Schonberg <schonberg@adacore.com>
563 * sem_ch12.adb (Copy_Generic_Node): Check that name in function
564 call is a valid entity name before preserving entity in generic
567 2013-07-05 Thomas Quinot <quinot@adacore.com>
569 * par-ch5.adb: Minor reformatting.
571 2013-07-05 Thomas Quinot <quinot@adacore.com>
573 * sinfo.ads: Minor clarification to documentation for
574 N_Implicit_Label_Declaration.
576 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
578 * a-except-2005.adb, a-except.adb: Add constant Rmsg_17. Correct the
579 values of all remaining constants.
580 (Rcheck_35): New routine along with pragmas Export and No_Return.
581 (Rcheck_PE_Aliased_Parameters): New routine along with pragmas
582 Export and No_Return.
583 (Rcheck_PE_All_Guards_Closed,
584 Rcheck_PE_Bad_Predicated_Generic_Type,
585 Rcheck_PE_Current_Task_In_Entry_Body,
586 Rcheck_PE_Duplicated_Entry_Address, Rcheck_PE_Explicit_Raise,
587 Rcheck_PE_Implicit_Return, Rcheck_PE_Misaligned_Address_Value,
588 Rcheck_PE_Missing_Return, Rcheck_PE_Overlaid_Controlled_Object,
589 Rcheck_PE_Potentially_Blocking_Operation
590 Rcheck_PE_Stubbed_Subprogram_Called,
591 Rcheck_PE_Unchecked_Union_Restriction,
592 Rcheck_PE_Non_Transportable_Actual, Rcheck_SE_Empty_Storage_Pool,
593 Rcheck_SE_Explicit_Raise, Rcheck_SE_Infinite_Recursion,
594 Rcheck_SE_Object_Too_Large, Rcheck_PE_Finalize_Raised_Exception):
595 Update the use of Rmsg_XX.
596 (Rcheck_17, Rcheck_18, Rcheck_19,
597 Rcheck_20, Rcheck_21, Rcheck_22, Rcheck_23, Rcheck_24, Rcheck_25,
598 Rcheck_26, Rcheck_27, Rcheck_28, Rcheck_29, Rcheck_30, Rcheck_31,
599 Rcheck_32, Rcheck_33, Rcheck_34, Rcheck_35): Update corresponding
601 * checks.adb: Add with and use clause for Stringt.
602 (Apply_Parameter_Aliasing_Checks): Make constant Loc visible in
603 all subprograms of Apply_Parameter_Aliasing_Checks. Remove local
604 variable Cond. Initialize Check at the start of the routine. Use
605 routine Overlap_Check to construct a simple or a detailed run-time
606 check. Update the creation of the simple check.
607 (Overlap_Check): New routine.
608 * exp_ch11.adb (Get_RT_Exception_Name): Add a value for
609 PE_Aliased_Parameters.
610 * types.ads: Add new enumeration literal
611 PE_Aliased_Parameters. Update the corresponding integer values
612 of all RT_Exception_Code literals.
613 * types.h: Add new constant PE_Aliased_Parameters. Correct the
614 values of all remaining constants.
616 2013-07-05 Yannick Moy <moy@adacore.com>
618 * gnat_rm.texi: Minor renaming of SPARK into SPARK 2005 in
621 2013-07-05 Ed Schonberg <schonberg@adacore.com>
623 * sem_prag.adb (Analyze_PPC_In_Decl_Part): For a class-wide
624 condition, when replacing the name of a formal by a conversion
625 to the class-wide type, exempt selector names that appear in
626 parameter associations.
628 2013-06-13 Eric Botcazou <ebotcazou@adacore.com>
630 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): Delete.
631 * gcc-interface/gigi.h (annotate_object): Adjust prototype.
632 (convert_vms_descriptor): Likewise.
633 * gcc-interface/decl.c (gnat_to_gnu_param): Do not pass fat pointer
634 types by double dereference.
635 (annotate_object): Remove BY_DOUBLE_REF parameter and adjust.
636 (gnat_to_gnu_entity): Adjust calls to annotate_object.
637 * gcc-interface/trans.c (Identifier_to_gnu): Do not deal with double
639 (Call_to_gnu): Likewise.
640 (build_function_stub): Adjust call to convert_vms_descriptor.
641 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
642 * gcc-interface/utils.c (convert_vms_descriptor): Remove BY_REF
643 parameter and adjust.
645 2013-05-30 Eric Botcazou <ebotcazou@adacore.com>
647 * gcc-interface/Makefile.in (arm% androideabi): Robustify.
649 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
651 * gcc-interface/decl.c: (gnat_to_gnu_entity): In ASIS mode, do not
652 check that access types have a set size.
654 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
656 * gcc-interface/decl.c (vinfo_t): New type and associated vector.
657 (components_to_record): Change return type to bool.
658 Lay out the variants in two passes. Do not force a specific layout for
659 the variant part if the variants do not have a representation clause.
660 Take the alignment of the variant part into account when laying out
661 variants without rep clause in a record type with a partial rep clause.
662 (create_rep_part): Do not set the position of the field.
664 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
666 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Last_Bit>: Add kludge
667 to avoid generating an overflow for -1.
669 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
671 * gcc-interface/gigi.h (create_type_decl): Adjust prototype.
672 (create_label_decl): Complete prototype.
673 (process_attributes): Declare.
674 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust multiple calls to
675 create_type_decl throughout.
676 <E_Enumeration_Type>: Do the layout of the type manually and call
677 process_attributes on it. Reindent.
678 <E_Enumeration_Subtype>: Minor tweak.
679 <E_Floating_Point_Subtype>: Reindent.
680 <E_Array_Subtype>: Call process_attributes on the array type built
681 for a packed array type.
682 <E_Record_Type>: Call process_attributes on the type.
683 <E_Record_Subtype>: Likewise.
684 <E_Access_Type>: Likewise.
685 <E_Subprogram_Type>: Likewise.
686 Likewise for all types at the end of the processing.
687 * gcc-interface/utils.c (make_aligning_type): Adjust call to
689 (maybe_pad_type): Likewise.
690 (create_index_type): Likewise.
691 (create_type_decl): Remove attr_list parameter and associated code.
692 (create_var_decl_1): Call process_attributes on the variable.
693 (process_attributes): Take a pointer to the object and add in_place
694 and gnat_node parameters and adjust throughout.
695 <ATTR_MACHINE_ATTRIBUTE>: Pass ATTR_FLAG_TYPE_IN_PLACE only on demand
696 and set the input location.
697 Zap the attribute list at the end.
698 (create_subprog_decl): Call process_attributes on the subprogram.
699 (build_unc_object_type): Adjust call to create_type_decl.
700 (handle_vector_type_attribute): Remove dead code.
702 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
704 * gcc-interface/gigi.h (make_aligning_type): Adjust prototype.
705 * gcc-interface/utils.c (make_aligning_type): Take GNAT_NODE parameter
706 for the position of the associated TYPE_DECL.
707 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust call to above.
708 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
710 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
712 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not prematurely
713 elaborate the full view of a type with a freeze node.
714 * gcc-interface/trans.c (process_type): Add explicit predicate.
716 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
718 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Always build the
719 UNC variable for aliased objects with unconstrained nominal subtype.
721 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
723 * gcc-interface/gigi.h (gnat_init_gcc_fp): Declare.
724 * gcc-interface/trans.c (gigi): Call it.
725 * gcc-interface/misc.c (gnat_init_gcc_fp): New function.
727 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
729 * gcc-interface/gigi.h (enum inline_status_t): New type.
730 (create_subprog_decl): Adjust prototype.
731 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Adjust
732 calls to create_subprog_decl.
733 (get_minimal_subprog_decl): Likewise.
734 * gcc-interface/trans.c (gigi): Likewise.
735 (build_raise_check): Likewise.
736 (establish_gnat_vms_condition_handler): Likewise.
737 (Compilation_Unit_to_gnu): Likewise.
738 (gnat_to_gnu): Likewise.
739 * gcc-interface/utils.c (create_subprog_decl): Change inline_flag
740 parameter to inline_status and implement for suppressed inlining.
742 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
744 * gcc-interface/ada-tree.h (LOOP_STMT_NO_UNROLL): New define.
745 (LOOP_STMT_UNROLL): Likewise.
746 (LOOP_STMT_NO_VECTOR): Likewise.
747 (LOOP_STMT_VECTOR): Likewise.
748 * gcc-interface/trans.c (struct loop_info_d): Replace label field
750 (Pragma_to_gnu) <Pragma_Loop_Optimize>: New case.
751 (Loop_Statement_to_gnu): Save the loop statement onto the stack
752 instead of the label.
753 (gnat_to_gnu) <N_Exit_Statement>: Retrieve the loop label.
755 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
757 * gcc-interface/trans.c: Include diagnostic.h and opts.h.
758 (Pragma_to_gnu) <Pragma_Warnings>: New case.
760 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
762 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Constify
763 a handful of local variables.
764 For a derived untagged type that renames discriminants, change the type
765 of the stored discriminants to a subtype with the bounds of the type
766 of the visible discriminants.
767 (build_subst_list): Rename local variable.
769 2013-05-16 Jason Merrill <jason@redhat.com>
771 * gcc-interface/Make-lang.in (gnat1$(exeext)): Use link mutex.
773 2013-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
776 * gcc-interface/Makefile.in: Allow for amd64 solaris2.
778 2013-05-07 Eric Botcazou <ebotcazou@adacore.com>
781 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Use
782 int_const_binop to shift bounds by 1 when they are integer constants.
784 2013-04-25 Arnaud Charlet <charlet@adacore.com>>
786 * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Exclude s-init.ad{s,b}
788 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
790 * checks.adb (Apply_Predicate_Check): Update the comment associated
791 with the call to Check_Expression_Against_Static_Predicate.
792 * sem_ch3.adb (Analyze_Object_Declaration): Update the comment
793 associated with the call to Check_Expression_Against_Static_Predicate.
794 * sem_util.adb (Check_Expression_Against_Static_Predicate):
795 Broaden the check from a static expression to an expression with
796 a known value at compile time.
797 * sem_util.ads (Check_Expression_Against_Static_Predicate): Update
800 2013-04-25 Thomas Quinot <quinot@adacore.com>
802 * exp_attr.adb (Expand_N_Attribute_Reference, cases Position,
803 First_Bit, and Last_Bit): Fix incorrect test in implementation of
806 2013-04-25 Claire Dross <dross@adacore.com>
808 * a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads, a-cfhama.adb,
809 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads
810 (Query_Element): Removed.
811 (Update_Element): Removed.
812 (Insert): The version with no New_Item specified is removed.
816 Every check of fields Busy and Lock has been removed.
818 2013-04-25 Robert Dewar <dewar@adacore.com>
820 * sem_prag.adb (Analyze_Pragma, case Contract_Cases): Remove
821 call to S14_Pragma (Find_Related_Subprogram): Require proper
822 placement in subprogram body (Find_Related_Subprogram): Detect
823 duplicates for all cases (Find_Related_Subprogram): Handle case
824 of spec nested inside body.
826 2013-04-25 Arnaud Charlet <charlet@adacore.com>
828 * par-prag.adb: Fix typo.
830 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
832 * checks.adb (Apply_Predicate_Check): If the type has a static
833 predicate and the expression is also static, check whether the
834 expression satisfies the predicate.
835 * sem_ch3.adb (Analyze_Object_Declaration): If the type has a
836 static predicate and the expression is also static, see if the
837 expression satisfies the predicate.
838 * sem_util.adb: Alphabetize several routines.
839 (Check_Expression_Against_Static_Predicate): New routine.
840 * sem_util.ads (Check_Expression_Against_Static_Predicate): New routine.
842 2013-04-25 Robert Dewar <dewar@adacore.com>
844 * gnat_rm.texi: Document Reason argument for pragma Warnings.
845 * par-prag.adb: Handle Reason parameter for pragma Warnings.
846 * sem_prag.adb (Analyze_Pragma, case Warnings): Allow Reason argument.
847 * snames.ads-tmpl (Name_Reason): New name entry.
849 2013-04-25 Yannick Moy <moy@adacore.com>
851 * exp_spark.adb (Expand_SPARK_N_In): Remove procedure.
852 (Expand_SPARK): Remove special expansion for membership tests.
854 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
856 * exp_ch3.adb (Expand_N_Object_Declaration): Update all places
857 that should use constant Base_Typ. When building an invariant
858 check, account for invariants coming from the base type. Prevent
859 the creation of a junk invariant check when the related object
860 is of an array type and it is initialized with an aggregate.
861 * exp_util.adb (Make_Invariant_Call): Typ is now a variable. Use
862 the base type to create an invariant call when the type of the
863 expression is a composite subtype.
865 2013-04-25 Vasiliy Fofanov <fofanov@adacore.com>
867 * a-cborse.adb: Fix minor typo.
869 2013-04-25 Ed Schonberg <schonberg@adacore.com>
871 * sem_ch6.adb (Different_Generic_Profile): A spec and body
872 match in an instance if a subtype declaration that renames a
873 generic actual with the same name appears between spec and body.
875 2013-04-25 Robert Dewar <dewar@adacore.com>
877 * sem_util.adb: Minor reformatting.
879 2013-04-25 Ed Schonberg <schonberg@adacore.com>
881 * exp_aggr.adb (Expand_N_Aggregate): Use special circuitry to
882 fold strings with a single others choice only if there are no
883 expressions in the aggregate.
885 2013-04-25 Arnaud Charlet <charlet@adacore.com>
887 * gnat_ugn.texi: Update doc on Ada 2012 default mode.
889 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
891 * exp_ch6.adb: Add with and use clause for Stringt.
892 (Expand_Contract_Cases): Moved from sem_ch6. Add formal parameters
893 Decls and Stmts along with comments on their usage.
894 * exp_ch6.ads (Expand_Contract_Cases): Moved from sem_ch6.
895 * sem_ch6.adb (Expand_Contract_Cases): Moved to exp_ch6.
896 (Process_Contract_Cases): Update the call to Expand_Contract_Cases.
898 2013-04-25 Ed Schonberg <schonberg@adacore.com>
900 * gnat_rm.texi: Minor editing, to clarify use of dimension aspects.
901 * sem_util.adb (Is_OK_Variable_For_Out_Formal): Reject an
902 aggregate for a packed type, which may be converted into an
903 unchecked conversion of an object.
905 2013-04-25 Robert Dewar <dewar@adacore.com>
907 * sem_prag.adb: Minor code reorganization (correct misspelling
909 * sem_util.adb, aspects.ads, sem_ch6.adb: Minor reformatting.
910 * gnat_rm.texi: Document impl-defined aspects.
911 * sem_dim.adb, sem_dim.ads, gnat_ugn.texi, s-dimmks.ads: Minor
914 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
916 * einfo.adb (Set_Abstract_States): The attribute now applies
918 * sem_ch4.adb (Referenced): Moved to sem_util.
919 * sem_ch7.adb (Unit_Requires_Body): A [generic] package with
920 a non-null abstract state needs a body.
921 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Update the calls
922 to Collect_Subprogram_Inputs_Outputs.
923 (Analyze_Global_Item): Verify the proper usage of an item with mode
924 In_Out or Output relative to the enclosing context.
925 (Analyze_Pragma): Abstract_State can now be applied to a generic
926 package. Do not reset the Analyzed flag for pragmas Depends and Global
927 as this is not needed.
928 (Appears_In): Moved to library level.
929 (Check_Mode_Restiction_In_Enclosing_Context): New routine.
930 (Collect_Subprogram_Inputs_Outputs): Moved to library level. Add
931 formal parameters Subp_Id, Subp_Inputs, Subp_Outputs and Global
932 seen along with comments on usage.
933 * sem_util.ads, sem_util.adb (Referenced): New routine.
935 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
937 * sem_ch6.adb (Expand_Contract_Cases): Generate
938 detailed error messages only when switch -gnateE is in effect.
940 2013-04-25 Yannick Moy <moy@adacore.com>
942 * sem_attr.adb (Analyze_Attribute): Do not issue
943 an error for a possibly misplaced 'Result or 'Old attribute when
944 analyzing the aspect.
946 2013-04-25 Robert Dewar <dewar@adacore.com>
948 * sem_ch12.adb, sem_util.adb, sem_ch4.adb: Minor reformatting.
950 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
952 * sem_ch4.adb (Analyze_Quantified_Expression):
953 Add local variable Loop_Id. Verify that the loop variable
954 is used within the condition of the quantified expression.
955 (Referenced): New routine.
957 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
959 * sem_case.adb (Analyze_Choices): Enhance the error message
960 given on a bad use of subtype predicate.
961 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Enhance
962 the error message given on a bad use of subtype predicate.
963 * sem_util.adb (Bad_Predicated_Subtype_Use): Add formal parameter
964 Suggest_Static. Emit an extra error message advising how to
965 remedy the bad use of the predicate if the context warrants it.
966 * sem_util.ads (Bad_Predicated_Subtype_Use): Add formal parameter
967 Suggest_Static along with a comment explaining its usage.
969 2013-04-25 Ed Schonberg <schonberg@adacore.com>
971 * sem_disp.adb (Check_Dispatching_Operation): Further refinement
972 to checks for AI05-0125: the check for a hidden primitive that
973 may be overridden by the new declaration only applies if the
974 hidden operation is never declared. This is not the case if the
975 operation is declared in a parent unit.
977 2013-04-25 Robert Dewar <dewar@adacore.com>
979 * debug.adb: Remove d.X and d.Y entries and documentation.
980 * exp_ch4.adb (Expand_N_If_Expression): Remove special code used
981 if expression with actions not available (now always available).
982 (Expand_Short_Circuit_Operator): Same change.
983 * gnat1drv.adb (Adjust_Global_Switches) Remove setting
984 Use_Expression_With_Actions flag, since this is now obsolete.
985 * opt.ads (Use_Expression_Actions): Removed (always True now).
986 * sinfo.ads: Minor comment updates.
988 2013-04-25 Ed Schonberg <schonberg@adacore.com>
990 * sem_ch12.adb (Check_Generic_Actuals): If an actual is an array
991 subtype whose base type is currently private, install full view
992 when compiling instance body.
994 2013-04-25 Ed Schonberg <schonberg@adacore.com>
996 * sem_disp.adb (Check_Dispatching_Operation): Refine checks for
997 AI05-0125: the check for a hidden primitive that may be overridden
998 by the new declaration is only performed if the declaration comes
999 from source, and it must carry an explicit overriding indicator.
1001 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1003 * einfo.adb (Abstract_States): The attribute now applies to
1005 * sem_ch3.adb (Analyze_Object_Declaration): Check whether an
1006 object declaration introduces an illegal hidden state.
1007 * sem_prag.adb (Analyze_Abstract_State): Check whether a state
1008 declaration introduces an illegal hidden state.
1009 * sem_util.ads, sem_util.adb (Check_No_Hidden_State): New routine.
1011 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1013 * exp_ch6.adb (Is_Build_In_Place_Function_Call): The call may
1014 be to a protected function, in which case the name in the call
1015 is a selected component.
1017 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1019 * sem_ch4.adb (Analyze_Quantified_Expression):
1020 Warn on a suspicious use of quantifier "some" when "all" was meant.
1021 (No_Else_Or_Trivial_True): New routine.
1023 2013-04-25 Robert Dewar <dewar@adacore.com>
1025 * einfo.ads, einfo.adb: Put back with/use for Namet.
1026 (Get_Pragma): New name (wi new spec) for Find_Pragma.
1027 * sem_ch6.adb: Change name Find_Pragma to Get_Pragma with
1028 different interface.
1030 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1032 * sem_ch3.adb (Is_Visible_Component): In an instance all
1033 components are visible.
1035 2013-04-25 Matthew Heaney <heaney@adacore.com>
1037 * a-rbtgbo.adb, a-crbtgo.adb (Generic_Equal): do not test for
1038 tampering when container empty.
1039 * a-crbtgk.adb (Ceiling, Find, Floor): ditto.
1040 (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint):
1043 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1045 * par-ch12.adb: Move aspects from package specification to
1046 generic package declaration.
1047 * sem_ch12.adb: Analyze aspect specifications before building
1048 and analyzing the generic copy, so that the generated pragmas
1049 are properly taken into account.
1050 * sem_ch13.adb: For compilation unit aspects that apply to a
1051 generic package declaration, insert corresponding pragmas ahead
1052 of visible declarations.
1053 * sprint.adb: Display properly the aspects of a generic type
1056 2013-04-25 Robert Dewar <dewar@adacore.com>
1058 * frontend.adb: Minor reformatting.
1060 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1062 * einfo.ads: Extend documentation on use of Is_Private_Ancestor
1064 * sem_ch3.adb (Is_Visible_Component): Refine predicate for the
1065 case of untagged types derived from private types, to reject
1066 illegal selected components.
1068 2013-04-25 Gary Dismukes <dismukes@adacore.com>
1070 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): Test
1071 for case of selecting from an unexpanded implicit dereference
1072 and do not make a recursive call on such a prefix.
1074 2013-04-25 Doug Rupp <rupp@adacore.com>
1076 * targparm.adb (VXF{_Str}): New tag for vaxfloat.
1077 (Get_Target_Parameters): Handle VXF tag.
1078 * targparm.ads (VAX_Float_On_Target): New boolean.
1079 * system-vms-ia64.ads (VAX_Float): New boolean.
1080 * frontend.adb (Frontend): Handle VAX float boolean.
1082 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1084 * einfo.ads, einfo.adb: Remove with and use clauses for Namet.
1085 (Find_Pragma): New routine.
1086 * sem_util.ads, sem_util.adb (Find_Pragma): Moved to einfo.
1088 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1090 * sem_ch13.adb (Add_Call): Do not capture the nature of the inherited
1092 (Add_Predicates): Save the static predicate for diagnostics and error
1094 (Process_PPCs): Remove local variables Dynamic_Predicate_Present and
1095 Static_Predicate_Present. Add local variable Static_Pred. Ensure that
1096 the expression of a static predicate is static.
1098 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1100 * einfo.adb (Is_Ghost_Subprogram): Remove useless code.
1102 2013-04-25 Robert Dewar <dewar@adacore.com>
1104 * gnat_rm.texi: Minor addition of index entry.
1106 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1108 * sem_ch6.adb (Check_Access_Invariants): Test whether an
1109 invariant procedure is empty before generating a call to it.
1110 (Has_Enabled_Predicate): New routine.
1111 (Has_Null_Body): New routine.
1112 (Process_PPCs): Test whether an invariant procedure is
1113 empty before generating a call to it. Test whether predicates are
1114 enabled for a particular type before generating a predicate call.
1115 * sem_util.ads, sem_util.adb (Find_Pragma): New routine.
1117 2013-04-25 Robert Dewar <dewar@adacore.com>
1119 * sem_ch7.adb, einfo.adb, repinfo.adb, snames.adb-tmpl,
1120 snames.ads-tmpl: Minor reformatting.
1122 2013-04-25 Thomas Quinot <quinot@adacore.com>
1124 * sem_ch7.adb: Minor reformatting.
1126 2013-04-25 Robert Dewar <dewar@adacore.com>
1128 * gnat_rm.texi: Minor fix to Loop_Variant doc (Loop_Entry allowed).
1129 * s-tarest.adb: Minor reformatting.
1131 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1133 * aspects.ads, aspects.adb: Remove aspect Ghost from all relevant
1135 * einfo.adb: Remove with and use clause for Aspects.
1136 (Is_Ghost_Function): Removed.
1137 (Is_Ghost_Entity): New routine.
1138 (Is_Ghost_Subprogram): New routine.
1139 * einfo.ads: Remove synthesized attribute Is_Ghost_Function
1140 along with its uses in entities. Add synthesized attributes
1141 Is_Ghost_Entity and Is_Ghost_Subprogram along with uses in related
1143 (Is_Ghost_Function): Removed.
1144 (Is_Ghost_Entity): New routine.
1145 (Is_Ghost_Subprogram): New routine.
1146 * par-prag.adb: Remove pragma Ghost from the processing machinery.
1147 * repinfo.adb (List_Mechanisms): Add a value for convention Ghost.
1148 * sem_attr.adb (Analyze_Access_Attribute): Update the check
1149 for ghost subprograms.
1150 * sem_ch4.adb (Analyze_Call): Update the check for calls
1151 to ghost subprograms.
1152 (Check_Ghost_Function_Call): Removed.
1153 (Check_Ghost_Subprogram_Call): New routine.
1154 * sem_ch6.adb (Check_Convention): Rewritten.
1155 (Check_Overriding_Indicator): Remove the check for overriding
1157 (Convention_Of): New routine.
1158 * sem_ch12.adb (Preanalyze_Actuals): Update the check for ghost
1159 generic actual subprograms.
1160 * sem_mech.adb (Set_Mechanisms): Add an entry for convention Ghost.
1161 * sem_prag.adb: Remove the value for pragma Ghost from
1163 (Analyze_Pragma): Remove the processing for pragma Ghost.
1164 (Process_Convention): Emit an error when a ghost
1165 subprogram attempts to override.
1166 (Set_Convention_From_Pragma): Emit an error when a ghost subprogram
1167 attempts to override.
1168 * sinfo.ads: Clarify the usage of field Label_Construct.
1169 * snames.adb-tmpl (Get_Convention_Id): Add an entry for
1170 predefined name Ghost.
1171 (Get_Convention_Name): Add an entry for convention Ghost.
1172 * snames.ads-tmpl: Move predefined name Ghost to the sublist
1173 denoting conventions. Add convention id Ghost. Remove pragma
1176 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1178 * sem_ch7.adb (Swap_Private_Dependents): Do no recurse on child
1179 units if within a generic hierarchy.
1181 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1183 * exp_ch6.adb (Expand_Actuals): Add a predicate check on an
1184 actual the related type has a predicate function.
1185 * sem_ch3.adb (Constant_Redeclaration): Ensure that the related
1186 type has an invariant procedure before building a call to it.
1187 * sem_ch6.adb (Append_Enabled_Item): New routine.
1188 (Check_Access_Invariants): Use routine
1189 Append_Enabled_Item to chain onto the list of postconditions.
1190 (Contains_Enabled_Pragmas): Removed.
1191 (Expand_Contract_Cases): Use routine Append_Enabled_Item to chain onto
1192 the list of postconditions.
1193 (Invariants_Or_Predicates_Present): Removed.
1194 (Process_PPCs): Partially reimplemented.
1196 2013-04-24 Sergey Rybin <rybin@adacore.com frybin>
1198 * tree_io.ads: Update ASIS_Version_Number because of changes
1199 in the way how entities are chained in a scope by means of
1202 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1204 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
1205 Storage_Size): If the clause is not from an aspect, insert
1206 assignment to size variable of task type at the point of the
1207 clause, not after the task definition, to prevent access before
1208 elaboration in the back-end.
1210 2013-04-24 Yannick Moy <moy@adacore.com>
1212 * sem_prag.adb (Sig_Flags): Set correct value for Pragma_Assume.
1214 2013-04-24 Yannick Moy <moy@adacore.com>
1216 * gnat_rm.texi: Document 'Loop_Entry.
1218 2013-04-24 Jose Ruiz <ruiz@adacore.com>
1220 * s-tassta.adb, s-tarest.adb (Task_Wrapper): Start looking for
1221 fall-back termination handlers from the parents, because they apply
1222 only to dependent tasks.
1223 * s-solita.adb (Task_Termination_Handler_T): Do not look for fall-back
1224 termination handlers because the environment task has no parent,
1225 and if it defines one of these handlers it does not apply to
1226 itself because they apply only to dependent tasks.
1228 2013-04-24 Robert Dewar <dewar@adacore.com>
1230 * sem_type.adb, exp_attr.adb, exp_ch4.adb: Minor reformatting.
1232 2013-04-24 Robert Dewar <dewar@adacore.com>
1234 * gnat_rm.texi: Document 'Update attribute.
1235 * sem_attr.adb (Analyze_Attribute, case Update): Remove call
1236 to S14_Attribute (S14_Attribute): removed.
1238 2013-04-24 Robert Dewar <dewar@adacore.com>
1240 * interfac.ads: Add size clauses for IEEE_Float_32/64
1242 2013-04-24 Claire Dross <dross@adacore.com>
1244 * gnat1drv.adb (Adjust_Global_Switches): Remove
1245 special assignment of Use_Expression_With_Actions for SPARK_Mode.
1247 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1249 * checks.adb (Apply_Predicate_Check): Check for the presence
1250 of the dynamic predicate aspect when trying to determine if the
1251 predicate of a type is non-static.
1252 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
1253 for the presence of the dynamic predicate aspect when trying to
1254 determine if the predicate of a type is non- static.
1255 * sem_ch13.adb (Add_Call): Capture the nature of the
1256 inherited ancestor predicate.
1257 (Build_Predicate_Functions): Update comments. Rewrite the checks on
1258 static predicate application. Complain about the form of a non-static
1259 expression only when the type is static.
1261 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1263 * sem_prag.adb: Add guard to tree traversal.
1265 2013-04-24 Vincent Celier <celier@adacore.com>
1267 * clean.adb (Clean): Remove local variable Root_Environment,
1268 use Makeutl.Root_Environment instead.
1269 * gnatcmd.adb: Remove local variable Root_Environment, use
1270 Makeutl.Root_Environment instead.
1271 * make.adb (Gnatmake): Remove local variable Root_Environment,
1272 use Makeutl.Root_Environment instead.
1273 * prj-makr.adb: Remove local variable Root_Environment, use
1274 Makeutl.Root_Environment instead.
1276 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1278 * exp_attr.adb (Expand_Loop_Entry_Attribute): Clarify the
1279 extraction of the declarative part of the conditional block. Move
1280 the processing of simple infinite loops to the start of the
1281 expansion logic. Correct the check which determines whether the
1282 proper scope is installed in visibility.
1283 * sem_attr.adb (Analyze_Attribute): Add local variable Attr
1284 to keep track of the attribute in case the enclosing indexed
1285 component has to be rewritten. When searching for the enclosing
1286 loop, start from the proper attribute reference in case of a
1287 rewriting. Do not allow for 'Loop_Entry to appear in pragma
1288 Assert. Replace loop variable J with Index. Set the type of the
1290 * sem_ch5.adb (Check_Unreachable_Code): Detect a specialized
1291 block that services a loop statement subject to at least one
1292 'Loop_Entry attribute.
1294 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1296 * sem_type.adb (Disambiguate): In Ada 2012 mode, when trying to
1297 resolve a fixed point operation, use first subtype to determine
1298 whether type and operator are declared in the same list of
1301 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1303 * par-ch6.adb (P_Subprogram): Detect an illegal
1304 placement of the aspect specification list in the context of
1305 expression functions.
1307 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1309 * exp_ch4.adb (Expand_N_Allocator): If the designated object
1310 has tasks, and the pointer type is an itype that has no master
1311 id, create a master renaming in the current context, which can
1312 only be an init_proc.
1314 2013-04-24 Robert Dewar <dewar@adacore.com>
1316 * sem_ch3.adb, sem_ch7.adb: Minor reformatting.
1317 * gnat_rm.texi: Document pragma Loop_Invariant.
1318 * sem_attr.adb (Analyze_Attribute, case Loop_Entry): This is
1319 no longer an S14_Attribute.
1320 * sem_prag.adb (Analyze_Pragma, case Loop_Invariant): Combine
1321 processing with Assert, allow message parameter, remove call
1324 2013-04-24 Thomas Quinot <quinot@adacore.com>
1326 * exp_ch4.adb: Minor reformatting.
1328 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1330 * sem_ch7.adb (Swap_Private_Dependents): New internal routine
1331 to Install_Private_Declarations, to make the installation of
1332 private dependents recursive in the presence of child units.
1333 * sem_ch3.adb (Build_Discriminated_Subtype): Initialize properly
1334 the Private_Dependents of a private subtype.
1336 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1338 * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the
1339 retrieval of the block declarations.
1340 * par-ch4.adb (P_Name): Let the name parsing machinery create
1341 a sequence of nested indexed components for attribute Loop_Entry.
1342 * sem_attr.adb (Analyze_Attribute): Add local constant
1343 Context. Reimplement part of the analysis of attribute Loop_Entry.
1344 (Convert_To_Indexed_Component): Removed.
1345 * sem_ch4.adb (Analyze_Indexed_Component_Form): Do not analyze
1346 an indexed component after it has been rewritten into attribute
1349 2013-04-24 Yannick Moy <moy@adacore.com>
1351 * snames.ads-tmpl: Minor change to list
1352 Loop_(In)variant not in configuration pragma.
1353 * sem_ch3.adb (Analyze_Declarations): Do not look at the original node
1354 for analyzing the expressions in pre/postconditions.
1356 2013-04-24 Robert Dewar <dewar@adacore.com>
1358 * gnatcmd.adb, xref_lib.adb, gnatls.adb, sem_ch13.adb: Minor
1361 2013-04-24 Yannick Moy <moy@adacore.com>
1363 * sem_ch6.adb (Analyze_Generic_Subprogram_Body,
1364 Analyze_Subprogram_Body_Helper): Reset contract node to Empty
1365 before setting entity to E_Subprogram_Body.
1366 * sem_ch8.adb (Analyze_Subprogram_Renaming): Reset contract node to
1367 Empty before setting entity to E_Subprogram_Body.
1369 2013-04-24 Vincent Celier <celier@adacore.com>
1371 * gnat_ugn.texi: Document new gnatls switch -aPdir.
1372 * gnatcmd.adb: Pass switch -aP<dir> to gnatls.
1373 * gnatls.adb (Scan_Ls_Arg): Process new switch -aP<dir>. Issue
1374 a warning for unknown switches.
1375 (Usage): Add line for new switch -aPdir.
1377 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1379 * sem_util.adb, sem_util.ads (Is_Limited_Class_Wide_Type): Return true
1380 if the type comes from a limited view, so that task attributes can be
1383 2013-04-24 Yannick Moy <moy@adacore.com>
1385 * checks.adb (Apply_Float_Conversion_Check): Do not apply checks if
1386 full expansion is not enabled.
1388 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1390 * sem_ch6.adb (Create_Extra_Formals): In Ada 2012, create extra
1391 formals if the type does not yet have a completion, and thus
1392 has no underlying view.
1394 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1396 * sem_ch13.adb (Analyze_Aspect_Specifications): Treat an aspect
1397 specification for Address as a reference, to suppress warnings
1398 on entities that may be read by an external device.
1400 2013-04-24 Sergey Rybin <rybin@adacore.com frybin>
1402 * gnat_ugn.texi: Add description of '--help' and '--version'
1403 options for ASIS tools: gnatelim, gnatmetric, gnatstub, gnatpp.
1405 2013-04-24 Arnaud Charlet <charlet@adacore.com>
1407 * gnat_rm.texi: Minor syntax fix.
1409 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1411 * exp_attr.adb (Expand_Loop_Entry_Attribute): Add extra comments on
1412 what and why is being analyzed. Remove the decoration of renamings as
1413 this simply falls out of the general analysis mechanism.
1415 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1417 * sem_res.adb (Explain_Redundancy): New routine.
1418 (Resolve_Equality_Op): Place the error concerning a redundant
1419 comparison to True at the "=". Try to explain the nature of the
1422 2013-04-24 Javier Miranda <miranda@adacore.com>
1425 * checks.adb, exp_ch6.adb (Install_Null_Excluding_Check): No
1426 check in interface thunks since it is performed at the caller
1428 (Expand_Simple_Function_Return): No accessibility check
1429 needed in thunks since the check is done by the target routine.
1431 2013-04-24 Vincent Celier <celier@adacore.com>
1433 * xref_lib.adb (Add_Entity): Use the canonical file names
1434 so that source file names with capital letters are found on
1435 platforms where file names are case insensitive.
1437 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1439 * par-ch4.adb (P_Name): Continue to parse the name extension when the
1440 construct is attribute Loop_Entry. Do not convert the attribute
1441 reference into an indexed component when there is at least one
1442 expression / range following 'Loop_Entry.
1444 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1446 * sem_ch6.adb (Contains_Enabled_Pragmas): New routine.
1447 (Process_PPCs): Generate procedure _Postconditions
1448 only when the context has invariants or predicates or enabled
1451 2013-04-24 Thomas Quinot <quinot@adacore.com>
1453 * g-socket.adb (Host_Entry): Introduce intermediate copy of
1454 memory location pointed to by Hostent_H_Addr, as it might not
1455 have sufficient alignment.
1457 2013-04-24 Yannick Moy <moy@adacore.com>
1459 * repinfo.adb (List_Rep_Info): Set the value of Unit_Casing before
1460 calling subprograms which may read it.
1462 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1464 * einfo.adb: Remove Loop_Entry_Attributes from the usage of
1465 nodes. Flag 260 is now used.
1466 (Has_Loop_Entry_Attributes): New routine.
1467 (Loop_Entry_Attributes): Removed.
1468 (Set_Has_Loop_Entry_Attributes): New routine.
1469 (Set_Loop_Entry_Attributes): Removed.
1470 (Write_Entity_Flags): Write out Flag 260.
1471 (Write_Field10_Name): Remove the output for Loop_Entry_Attributes.
1472 * einfo.ads: Remove attribute Loop_Entry_Attributes,
1473 its related comment and uses in nodes. Add new attribute
1474 Has_Loop_Entry_Attributes, related comment and uses in loop nodes.
1475 (Has_Loop_Entry_Attributes): New routine and pragma Inline.
1476 (Loop_Entry_Attributes): Removed along with pragma Inline.
1477 (Set_Has_Loop_Entry_Attributes): New routine and pragma Inline.
1478 (Set_Loop_Entry_Attributes): Removed along with pragma Inline.
1479 * exp_attr.adb (Expand_Loop_Entry_Attribute): New routine.
1480 (Expand_N_Attribute_Reference): Expand attribute 'Loop_Entry.
1481 * exp_ch5.adb: Remove with and use clause for Elists.
1482 (Expand_Loop_Entry_Attributes): Removed.
1483 (Expand_N_Loop_Statement): Add local variable Stmt. Rename local
1484 constant Isc to Scheme. When a loop is subject to attribute
1485 'Loop_Entry, retrieve the nested loop from the conditional
1486 block. Move the processing of controlled object at the end of
1488 * sem_attr.adb (Analyze_Attribute): Do not chain attribute
1489 'Loop_Entry to its related loop.
1490 * sem_ch5.adb (Analyze_Loop_Statement): Add local variable
1491 Stmt. When the iteration scheme mentions attribute 'Loop_Entry,
1492 the entire loop is rewritten into a block. Retrieve the nested
1493 loop in such cases to complete the analysis.
1494 * sem_util.ads, sem_util.adb (Find_Loop_In_Conditional_Block): New
1496 (Subject_To_Loop_Entry_Attributes): New routine.
1498 2013-04-24 Robert Dewar <dewar@adacore.com>
1500 * exp_prag.adb (Expand_Loop_Variant): Generate pragma Check
1501 (Loop_Variant, xxx) rather than Assert (xxx).
1502 * gnat_rm.texi: Document pragma Loop_Variant.
1503 * sem_prag.adb (Analyze_Pragma, case Loop_Variant): Remove call
1506 2013-04-24 Yannick Moy <moy@adacore.com>
1508 * adabkend.adb, ali-util.adb, ali.adb, debug.adb,
1509 errout.adb, errout.ads, erroutc.adb, exp_ch3.adb, exp_ch4.adb,
1510 exp_ch6.adb, exp_ch7.adb, exp_dbug.adb, exp_util.adb,
1511 expander.adb, freeze.adb, gnat1drv.adb, lib-writ.adb,
1512 lib-writ.ads, lib-xref.adb, lib-xref.ads, opt.adb, opt.ads,
1513 restrict.adb, sem_aggr.adb, sem_attr.adb, sem_ch3.adb,
1514 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_eval.adb, sem_prag.adb,
1515 sem_res.adb, sem_util.adb: Everything with name
1516 'Alfa' renamed in 'SPARK'. Update comments.
1517 Renaming of units with name 'Alfa', renamed with 'SPARK' instead.
1518 * exp_alfa.adb: renamed exp_spark.adb.
1519 * exp_alfa.ads: renamed exp_spark.ads.
1520 * get_alfa.adb: renamed get_spark_xrefs.adb.
1521 * get_alfa.ads: renamed get_spark_xrefs.ads.
1522 * lib-xref-alfa.adb: renamed lib-xref-spark_specific.adb.
1523 * put_alfa.adb: renamed put_spark_xrefs.adb.
1524 * put_alfa.ads: renamed put_spark_xrefs.ads.
1525 * alfa.adb: renamed spark_xrefs.adb.
1526 * alfa.ads: renamed spark_xrefs.ads.
1527 * alfa_test.adb: renamed spark_xrefs_test.adb.
1528 * gcc-interface/Make-lang.in: Update dependencies.
1530 2013-04-24 Robert Dewar <dewar@adacore.com>
1532 * gnat_rm.texi: Document pragma Assume.
1533 * sem_prag.adb (Analyze_Pragma, case Assume): Now processed as
1534 part of Assert, and no longer requires -gnatd.F
1536 2013-04-24 Robert Dewar <dewar@adacore.com>
1538 * gnat_rm.texi: Document pragma Assert_And_Cut.
1539 * sem_prag.adb (Analyze_Pragma, case Assert_And_Cut): Remove
1542 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1544 * sem_aux.adb: Add guard in Available_View.
1546 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1548 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Use
1549 Find_Related_Subprogram to find the associated subprogram.
1550 (Analyze_Global_In_Decl_List): Use Find_Related_Subprogram
1551 to find the associated subprogram.
1552 (Analyze_Pragma): Use Find_Related_Subprogram to find the associated
1555 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1557 * exp_ch6.adb: Remove with and use clause for Sem_Prag.
1558 (Freeze_Subprogram): Call Analyze_Subprogram_Contract to analyze
1559 the contract of a subprogram.
1560 * sem_ch3.adb: Remove with and use clause for Sem_Prag.
1561 (Analyze_Declarations): Call Analyze_Subprogram_Contract to
1562 analyze the contract of a subprogram.
1563 * sem_ch6.adb (Analyze_Subprogram_Contract): New routine.
1564 (Check_Subprogram_Contract): Removed.
1565 * sem_ch6.ads (Analyze_Subprogram_Contract): New routine.
1566 (Check_Subprogram_Contract): Removed.
1567 (Expand_Contract_Cases): Add a guard against malformed contract cases.
1568 * sem_ch13.adb (Analyze_Aspect_Specifications): Call
1569 Decorate_Delayed_Aspect_And_Pragma to decorate aspects
1570 Contract_Cases, Depends and Global. Reimplement the analysis of
1571 aspect Contract_Cases.
1572 (Decorate_Delayed_Aspect_And_Pragma): New routine.
1573 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): New routine.
1574 (Analyze_CTC_In_Decl_Part): Removed.
1575 (Analyze_Pragma): Reimplement the analysis of pragma Contract_Cases.
1576 (Analyze_Test_Case_In_Decl_Part): New routine.
1577 (Find_Related_Subprogram): New routine.
1578 (Requires_Profile_Installation): Add new formal Prag. Update
1579 the logic to take into account the origin of the pragma.
1580 * sem_prag.ads (Analyze_Contract_Cases_In_Decl_Part): New routine.
1581 (Analyze_CTC_In_Decl_Part): Removed.
1582 (Analyze_Test_Case_In_Decl_Part): New routine.
1584 2013-04-24 Robert Dewar <dewar@adacore.com>
1586 * sem_prag.adb (Process_Convention): Move Stdcall tests to
1587 Set_Convention_From_Pragma so that they are applied to each
1588 entry of a homonym set.
1589 (Process_Convention): Don't try to set convention if already set.
1591 2013-04-24 Robert Dewar <dewar@adacore.com>
1593 * gnatbind.adb: Minor reformatting.
1595 2013-04-24 Vincent Celier <celier@adacore.com>
1597 * clean.adb (Gnatclean): Add the default project search
1598 directories in the project search path after scanning the
1599 switches on the command line.
1600 (Initialize): Do not put the default project search directories in the
1601 project search path.
1602 * gnatcmd.adb (GNATcmd): Add the default project search
1603 directories in the project search path after scanning the switches
1604 on the command line.
1605 * make.adb (Initialize): Add the default project search
1606 directories in the project search path after scanning the switches
1607 on the command line.
1609 2013-04-24 Yannick Moy <moy@adacore.com>
1611 * restrict.ads (Restriction_Warnings): Initialize with all False value.
1613 2013-04-24 Robert Dewar <dewar@adacore.com>
1615 * checks.ads, checks.adb (Predicate_Checks_Suppressed): New function.
1616 * exp_util.ads, exp_util.adb (Make_Predicate_Check): Check setting of
1618 * snames.ads-tmpl (Name_Predicate_Check): New check name.
1619 * types.ads (Predicate_Check): New definition.
1620 * gnat_rm.texi: Add documentation for Predicate_Check.
1622 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1624 * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): If this
1625 is a renaming of predefined equality for an untagged record,
1626 add generated body to the freeze actions for the subprogram, to
1627 prevent freezing issues when the record has incomplete components.
1628 * exp_ch4.adb (Expand_Composite_Equality): If the type is a type
1629 without completion, return a predefined comparison instead of
1630 just False. This may happen when building the expression for
1631 record equality, when some component has a type whose completion
1632 has not been seen yet. The operation will be analyzed an expanded
1633 after the type has been frozen, at which point all component
1634 types will have been completed, or an error reported.
1636 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1638 * sem_ch13.adb (Analyze_Aspect_Specifications): Do not delay
1639 analysis of a Convention aspect.
1641 2013-04-24 Eric Botcazou <ebotcazou@adacore.com>
1643 * fe.h (Machine_Overflows_On_Target): New macro and declaration.
1644 (Signed_Zeros_On_Target): Likewise.
1646 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1648 * exp_ch6.adb: Add with and use clause for Sem_Prag.
1649 (Freeze_Subprogram): Analyze all delayed aspects for a null
1650 procedure so that they are available when analyzing the
1651 internally-generated _Postconditions routine.
1652 * exp_ch13.adb: Remove with and use clause for Sem_Prag.
1653 (Expand_N_Freeze_Entity): Move the code that analyzes delayed
1654 aspects of null procedures to exp_ch6.Freeze_Subprogram.
1655 * sem_prag.adb (Analyze_Abstract_State): Update the check on
1656 volatile requirements.
1658 2013-04-24 Bob Duff <duff@adacore.com>
1660 * ali-util.ads (Source_Record): New component Stamp_File
1661 to record from whence the Stamp came.
1662 * ali-util.adb (Set_Source_Table): Set Stamp_File component.
1663 * bcheck.adb (Check_Consistency): Print additional information in
1665 * gnatbind.adb (Gnatbind): Print additional information in
1668 2013-04-24 Robert Dewar <dewar@adacore.com>
1670 * exp_ch13.adb, sem_prag.adb: Update comments.
1671 * sem_ch3.adb, exp_ch9.adb, g-socket.adb, sem_ch13.adb: Minor
1674 2013-04-24 Doug Rupp <rupp@adacore.com>
1676 * vms_data.ads (/{NO}INHIBIT-EXEC): Document new default behavior.
1678 2013-04-24 Yannick Moy <moy@adacore.com>
1680 * sinfo.ads: Minor correction of typo.
1682 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1684 * sem_ch3.adb: Create packed array only when expander is
1687 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1689 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Install the formals only
1690 when the context warrants it.
1691 (Analyze_Global_In_Decl_List): Install the formals only when
1692 the context warrants it.
1693 (Requires_Profile_Installation): New routine.
1695 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1697 * exp_ch6.adb (Expand_N_Simple_Return_Statement): When the return
1698 type is a discriminated private type that does not require use
1699 of the secondary stack, a constrained subtype of the underlying
1700 type is created to convey the proper object size to the backend.
1701 If the return type is originally a private type, the return
1702 expression is wrapped in an unchecked_conversion. If the return
1703 expression is used subsequently in a call to the postcondition
1704 function, this conversion must be undone to prevent a spurious
1705 error on the analysis of that call.
1707 2013-04-23 Kai Tietz <ktietz@redhat.com>
1710 * raise-gcc.c (__SEH__): Additional check that SjLj isn't active.
1712 2013-04-23 Eric Botcazou <ebotcazou@adacore.com>
1713 Pascal Obry <obry@adacore.com>
1715 * gcc-interface/Makefile.in (targ): Fix target name check.
1716 (../../gnatmake$(exeext)): Add '+' for LTO.
1717 (../../gnatlink$(exeext)): Likewise.
1719 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
1721 * exp_ch9.adb (Build_PPC_Wrapper): Correct the traversal of
1722 pre- and post-conditions.
1723 (Expand_N_Task_Type_Declaration):
1724 Use the correct attribute to check for pre- and post-conditions.
1725 * exp_ch13.adb (Expand_N_Freeze_Entity): Correct the traversal of
1726 pre- and post-conditions. Analyze delayed classification items.
1727 * freeze.adb (Freeze_Entity): Use the correct attribute to
1728 check for pre- and post- conditions.
1729 * sem_ch3.adb (Analyze_Declarations): Correct the traversal
1730 of pre- and post-conditions as well as contract- and
1731 test-cases. Analyze delayed pragmas Depends and Global.
1732 * sem_ch6.adb (Check_Subprogram_Contract): Use the correct
1733 attribute to check for pre- and post-conditions, as well as
1734 contract-cases and test-cases. (List_Inherited_Pre_Post_Aspects):
1735 Correct the traversal of pre- and post- conditions.
1736 (Process_Contract_Cases): Update the comment on usage. Correct
1737 the traversal of contract-cases.
1738 (Process_Post_Conditions): Update the comment on usage. Correct the
1739 traversal of pre- and post-conditions.
1740 (Process_PPCs): Correct the traversal of pre- and post-conditions.
1741 (Spec_Postconditions): Use the correct
1742 attribute to check for pre- and post- conditions, as well as
1743 contract-cases and test-cases.
1744 * sem_ch13.adb (Analyze_Aspect_Specifications): Reimplement the
1745 actions related to aspects Depends and Global. Code refactoring
1746 for pre- and post-conditions.
1747 (Insert_Delayed_Pragma): New routine.
1748 * sem_prag.adb (Add_Item): New routine.
1749 (Analyze_Depends_In_Decl_Part): New routine.
1750 (Analyze_Global_In_Decl_Part): New routine.
1751 (Analyze_Pragma): Reimplement the actions related to aspects Depends and
1752 Global. Verify that a body acts as a spec for pragma Contract_Cases.
1753 (Chain_PPC): Use Add_Contract_Item to chain a pragma.
1754 (Chain_CTC): Correct the traversal of contract-
1755 and test-cases. Use Add_Contract_Item to chain a pragma.
1756 (Chain_Contract_Cases): Correct the traversal of contract-
1757 and test-cases. Use Add_Contract_Item to chain a pragma.
1758 (Check_Precondition_Postcondition): Update the comment on usage.
1759 (Check_Test_Case): Update the comment on usage.
1760 * sem_prag.ads (Analyze_Depends_In_Decl_Part): New routine.
1761 (Analyze_Global_In_Decl_Part): New routine.
1762 * sem_util.ads, sem_util.adb (Add_Contract_Item): New routine.
1763 * sinfo.adb (Classifications): New routine.
1764 (Contract_Test_Cases): New routine.
1765 (Pre_Post_Conditions): New routine.
1766 (Set_Classifications): New routine.
1767 (Set_Contract_Test_Cases): New routine.
1768 (Set_Pre_Post_Conditions): New routine.
1769 (Set_Spec_CTC_List): Removed.
1770 (Set_Spec_PPC_List): Removed.
1771 (Spec_CTC_List): Removed.
1772 (Spec_PPC_List): Removed.
1773 * sinfo.ads: Update the structure of N_Contruct along with all
1775 (Classifications): New routine and pragma Inline.
1776 (Contract_Test_Cases): New routine and pragma Inline.
1777 (Pre_Post_Conditions): New routine and pragma Inline.
1778 (Set_Classifications): New routine and pragma Inline.
1779 (Set_Contract_Test_Cases): New routine and pragma Inline.
1780 (Set_Pre_Post_Conditions): New routine and pragma Inline.
1781 (Set_Spec_CTC_List): Removed.
1782 (Set_Spec_PPC_List): Removed.
1783 (Spec_CTC_List): Removed.
1784 (Spec_PPC_List): Removed.
1786 2013-04-23 Doug Rupp <rupp@adacore.com>
1788 * init.c (GNAT$STOP) [VMS]: Bump sigargs[0] count by 2
1789 to account for LIB$STOP not having the chance to add the PC and
1792 2013-04-23 Robert Dewar <dewar@adacore.com>
1794 * sem_ch13.adb: Minor code reorganization (remove some redundant
1796 * sem_ch3.adb, sem_prag.adb: Minor reformatting.
1798 2013-04-23 Yannick Moy <moy@adacore.com>
1800 * einfo.ads: Minor typo fix.
1801 * sem_ch13.adb (Build_Predicate_Functions): Reject cases where
1802 Static_Predicate is applied to a non-scalar or non-static type.
1803 * sem_prag.adb: Minor typo fix.
1805 2013-04-23 Doug Rupp <rupp@adacore.com>
1807 * init.c (GNAT$STOP) [VMS]: New function.
1809 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1811 * sem_ch3.adb: Add exp_pakd to context.
1812 (Constrain_Component_Type): If the component of the parent is
1813 packed, and the record subtype being built is already frozen,
1814 as is the case for an itype, the component type itself will not
1815 be frozen, and the packed array type for it must be constructed
1818 2013-04-23 Thomas Quinot <quinot@adacore.com>
1820 * g-socket.adb, g-socket.ads (Set_Close_On_Exec): New subprogram.
1822 2013-04-23 Yannick Moy <moy@adacore.com>
1824 * err_vars.ads (Error_Msg_Qual_Level): Set variable to zero
1826 * opt.ads (Multiple_Unit_Index): Set variable to zero at declaration.
1827 * sem_util.adb (NCT_Table_Entries): Set variable to zero at declaration.
1828 * set_targ.ads (Num_FPT_Modes): Set variable to zero at declaration.
1829 * stylesw.adb (Save_Style_Check_Options): Protect testing the
1830 value of Style_Check_Comments_Spacing by a previous test that
1831 Style_Check_Comments is True.
1833 2013-04-23 Thomas Quinot <quinot@adacore.com>
1835 * sem_prag.adb, sem_prag.ads (Effective_Name): Rename to
1836 Original_Name, and move declaration to package body as this
1837 subprogram is not used from outside. Also clarify documentation.
1839 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1841 * exp_ch6.adb (Expand_N_Subprogram_Body): When compiling with
1842 initialize_scalars, disable predicate checks on the generated
1843 assignment to an out scalar parameter.
1845 2013-04-23 Gary Dismukes <dismukes@adacore.com>
1847 * sem_ch4.adb (Analyze_Allocator): Remove error
1848 check for "constrained in partial view" constraints entirely.
1850 2013-04-23 Robert Dewar <dewar@adacore.com>
1852 * einfo.ads, sem_prag.ads: Minor reformatting.
1853 * errout.ads: Comment update.
1855 2013-04-23 Yannick Moy <moy@adacore.com>
1857 * exp_ch5.adb: Minor typo.
1859 2013-04-23 Thomas Quinot <quinot@adacore.com>
1861 * gnat_ugn.texi: Fix typo.
1863 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1865 * einfo.ads: Minor documentation clarification.
1867 2013-04-23 Bob Duff <duff@adacore.com>
1869 * types.ads: Fix incorrect comment.
1871 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1873 * sem_aux.adb sem_aux.ads (Effectively_has_Constrained_Partial_View):
1874 Rename subprogram as Object_Type_Has_Constrained_Partial_View, better
1875 description of purpose.
1876 * checks.adb (Apply_Discriminant_Check): Use above renaming.
1877 * sem_ch4.adb (Analyze_Allocator): Check Has_Constrained_Partial_View
1878 of the base type, rather than using the Object_Type predicate.
1879 * sem_attr.adb (Analyze_Attribute, case 'Access): Use above renaming.
1880 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): ditto.
1881 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Constrained): Ditto.
1882 * exp_ch4.adb (Expand_N_Allocator): Ditto.
1884 2013-04-23 Robert Dewar <dewar@adacore.com>
1886 * exp_prag.adb (Expand_Pragma_Check): Check for Assert rather
1888 * sem_prag.adb (Is_Valid_Assertion_Kind): Moved to spec
1889 (Effective_Name): New function (Analyze_Pragma, case Check):
1890 Disallow [Statement_]Assertions (Check_Kind): Implement
1891 Statement_Assertions (Check_Applicable_Policy): Use Effective_Name
1892 (Is_Valid_Assertion_Kind): Allow Statement_Assertions.
1893 * sem_prag.ads (Is_Valid_Assertion_Kind): Moved here from body
1894 (Effective_Name): New function.
1895 * sem_res.adb: Minor reformatting.
1896 * snames.ads-tmpl (Name_Statement_Assertions): New entry.
1897 * gnat_rm.texi: Add documentation of new assertion kind
1898 Statement_Assertions.
1900 2013-04-23 Robert Dewar <dewar@adacore.com>
1902 * sinfo.ads, einfo.adb, sem_res.adb, exp_ch6.adb, aspects.adb: Minor
1903 reformatting and code clean up.
1905 2013-04-23 Vincent Celier <celier@adacore.com>
1907 * prj-part.ads, prj-conf.ads: Minor comment updates.
1909 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1911 * einfo.adb (Predicate_Function): For a private type, retrieve
1912 predicate function from full view.
1913 * aspects.adb (Find_Aspect): Ditto.
1914 * exp_ch6.adb (Expand_Actuals): If the formal is class-wide and
1915 the actual is a definite type, apply predicate check after call.
1916 * sem_res.adb: Do not apply a predicate check before the call to
1917 a generated Init_Proc.
1919 2013-04-23 Robert Dewar <dewar@adacore.com>
1921 * sem_ch13.adb (Analyze_Aspect_Specifications): Significant
1922 rewrite to make sure Is_Ignore is properly captured when aspect
1924 * sem_ch6.adb: Minor reformatting.
1925 * sem_prag.adb (Analyze_Pragma): Do not test policy at time of
1926 pragma for the case of a pragma coming from an aspect (already
1927 tested when we analyzed the aspect).
1929 2013-04-23 Vincent Celier <celier@adacore.com>
1931 * prj-conf.adb (Parse_Project_And_Apply_Config): New
1932 Boolean parameter Implicit_Project, defaulted to False. Call
1933 Prj.Part.Parse with Implicit_Project.
1934 * prj-conf.ads (Parse_Project_And_Apply_Config): New Boolean
1935 parameter Implicit_Project, defaulted to False.
1936 * prj-part.adb (Parse_Single_Project): New Boolean parameter
1937 Implicit_Project, defaulted to False. When Implicit_Project is
1938 True, change the Directory of the project node to the Current_Dir.
1939 * prj-part.ads (Parse): New Boolean parameter, defaulted to False
1941 2013-04-23 Robert Dewar <dewar@adacore.com>
1943 * exp_util.adb: Minor reformatting.
1945 2013-04-23 Robert Dewar <dewar@adacore.com>
1947 * xoscons.adb: Minor reformatting.
1949 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
1951 * sem_prag.adb (Check_Mode): Ensure that a
1952 self-referential output appears in both input and output lists of
1953 the subprogram as categorized by aspect Global.
1954 (Check_Usage): Rename formal parameters to better illustrate their
1955 function. Update all uses of the said formals.
1957 2013-04-23 Thomas Quinot <quinot@adacore.com>
1959 * exp_util.adb, exp_util.ads (Fully_Qualified_Name_String): New
1960 parameter Append_NUL to make NUL-termination optional.
1961 * exp_dist.adb: Consistently use the above throughout instead of
1962 Get_Library_Unit_Name_String.
1964 2013-04-23 Robert Dewar <dewar@adacore.com>
1966 * sem_util.adb, sem_res.adb, prj-tree.adb, prj-tree.ads: Minor
1969 2013-04-23 Pascal Obry <obry@adacore.com>
1971 * xoscons.adb: Remove unused use clause, minor code clean-up.
1973 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1975 * sem_util.ads, sem_util.adb: Code cleanup for Is_Expression_Function
1976 (can apply to any scope entity).
1977 * sem_res.adb (Resolve_Call): If the call is within another
1978 expression function it does not constitute a freeze point.
1980 2013-04-23 Yannick Moy <moy@adacore.com>
1982 * exp_ch6.adb (Expand_Actuals): Test that Subp
1983 is overloadable before testing if it's an inherited operation.
1985 2013-04-23 Robert Dewar <dewar@adacore.com>
1987 * a-envvar.adb, a-envvar.ads, exp_util.adb, sem_ch12.adb: Minor
1990 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1992 * sem_ch3.adb (Analyze_Object_Declarations): Undo previous patch.
1993 * exp_util.adb (Expand_Subtype_From_Expr): If the expression
1994 is a source entity and the declaration is for an aliased
1995 unconstrained array, create a new subtype so that the flag
1996 Is_Constr_Subt_For_UN_Aliased does not pollute other entities.
1998 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
2000 * aspects.adb: Move tables Base_Aspect and Inherited_Aspect
2001 from the spec to the body.
2002 (Find_Aspect): Update the call to Get_Aspect_Id.
2003 (Get_Aspect_Id): New version that takes an aspect specification.
2004 * aspects.ads: Reorganize all aspect related tables.
2005 (Get_Aspect_Id): New version that takes an aspect specification.
2006 * par_sco.adb (Traverse_Aspects): Update the call to Get_Aspect_Id.
2007 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Update
2008 the call to Get_Aspect_Id.
2009 * sem_ch13.adb (Analyze_Aspect_At_Freeze_Point): Update the
2010 call to Get_Aspect_Id. (Analyze_Aspect_Specifications): Update
2011 the call to Get_Aspect_Id. Update the call to Impl_Defined_Aspect.
2013 2013-04-23 Robert Dewar <dewar@adacore.com>
2015 * sem_prag.adb (Fix_Error): Rewrite to do more accurate job
2016 of getting proper name in the case where pragma comes from
2018 * sem_ch3.adb, sinfo.ads, par-ch6.adb, exp_ch6.adb: Minor reformatting.
2020 2013-04-23 Yannick Moy <moy@adacore.com>
2022 * sem_ch6.adb (Process_PPCs): Do not filter postconditions based on
2025 2013-04-23 Thomas Quinot <quinot@adacore.com>
2027 * par_sco.adb (Traverse_Aux_Decls): Minor code reorganization.
2029 2013-04-23 Doug Rupp <rupp@adacore.com>
2031 * init.c: Move facility macros outside IN_RTS.
2033 2013-04-23 Thomas Quinot <quinot@adacore.com>
2035 * freeze.adb (Freeze_Entity): For the case of a bit-packed
2036 array time that is known at compile time to have more that
2037 Integer'Last+1 elements, issue an error, since such arrays are
2040 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
2042 * sem_prag.adb (Analyze_Dependency_Clause): Update all calls to
2043 Analyze_Input_Output.
2044 (Analyze_Input_List): Update all calls to Analyze_Input_Output.
2045 (Analyze_Input_Output): Add formal parameter Self_Ref along with
2046 comment on its usage. Update all calls to Analyze_Input_Output.
2047 (Analyze_Pragma): Add new local variable Self_Ref to capture
2048 the presence of a self-referential dependency clause. Update
2049 all calls to Analyze_Input_Output.
2050 (Check_Mode): Add formal parameter Self_Ref along with comment on its
2051 usage. Verify the legality of a self-referential output.
2053 2013-04-23 Ed Schonberg <schonberg@adacore.com>
2055 * exp_ch6.adb: Add predicate checks on by-copy parameter.
2057 2013-04-23 Vincent Celier <celier@adacore.com>
2059 * a-envvar.adb, a-envvar.ads (Value): New.
2061 2013-04-22 Yannick Moy <moy@adacore.com>
2063 * exp_prag.adb (Expand_Pragma_Loop_Variant): Rewrite pragma as
2064 null statement if ignored.
2065 * sem_ch6.adb (Expand_Contract_Cases): Do nothing if pragma is ignored.
2066 * sem_prag.adb (Analyze_Pragma): Keep analyzing ignored pragmas.
2068 2013-04-22 Hristian Kirtchev <kirtchev@adacore.com>
2070 * sem_prag.adb (Analyze_Contract_Case): New routine.
2071 (Analyze_Pragma): Aspect/pragma Contract_Cases can
2072 now be associated with a library level subprogram.
2073 Add circuitry to detect illegal uses of aspect/pragma Contract_Cases
2074 in a subprogram body.
2075 (Chain_Contract_Cases): Rename formal parameter Subp_Decl to
2076 Subp_Id. Remove local constant Subp. The entity of the subprogram
2077 is now obtained via the formal paramter.
2079 2013-04-22 Ed Schonberg <schonberg@adacore.com>
2081 * sem_ch3.adb (Analyze_Object_Declaration): Do not set
2082 Is_Constr_Subt_For_Unc_Aliased on the subtype of the expression,
2083 if the expression is a source entity.
2085 2013-04-22 Yannick Moy <moy@adacore.com>
2087 * exp_prag.adb, sinfo.ads, sem_prag.ads: Minor correction of typos in
2089 * sem_ch6.adb (Expand_Contract_Cases): Add location to message.
2091 2013-04-22 Thomas Quinot <quinot@adacore.com>
2093 * sem_prag.adb (Fix_Error): For a pragma rewritten from another
2094 pragma, fix up error message to include original pragma name.
2095 * par_sco.adb: Minor reformatting.
2097 2013-04-22 Robert Dewar <dewar@adacore.com>
2099 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb,
2100 sem_ch6.adb, opt.ads: Minor reformatting.
2102 2013-04-22 Pascal Obry <obry@adacore.com>
2104 * gnat_ugn.texi, prj-nmsc.adb, projects.texi: Add check for
2105 Library_Standalone and Library_Kind.
2107 2013-04-22 Ed Schonberg <schonberg@adacore.com>
2109 * exp_ch6.adb (Expand_Actuals): If the call is to an
2110 inherited operation and the actual is a by-reference type with
2111 predicates, add predicate call to post-call actions.
2112 * sem_util.adb (Is_Inherited_Operation_For_Type): Fix coding
2113 error: a type declaration has a defining identifier, not an Etype.
2114 * sem_res.adb: Restore code removed because of above error.
2116 2013-04-22 Doug Rupp <rupp@adacore.com>
2118 * init.c (__gnat_handle_vms_condition): Also match C$_SIGINT.
2120 2013-04-22 Yannick Moy <moy@adacore.com>
2122 * gnat_rm.texi, exp_util.adb, sem_prag.adb, sem_prag.ads, par-ch2.adb,
2123 opt.ads, sem_ch13.adb: Minor correction of typos in comments/doc.
2125 2013-04-22 Vincent Celier <celier@adacore.com>
2127 * prj-nmsc.adb (Check_Library_Attributes): Set Library_Dir to
2128 No_Path_Information only when Directories_Must_Exist_In_Projects
2130 (Get_Directories): Set Object_Directory
2131 or Exec_Directory to No_Path_Information only when
2132 Directories_Must_Exist_In_Projects is False.
2134 2013-04-22 Yannick Moy <moy@adacore.com>
2136 * par-prag.adb, sem_attr.adb, sem_ch6.adb, sem_prag.adb, sem_warn.adb,
2137 snames.ads-tmpl, sinfo.ads, sem_util.ads: Remove all references to
2138 Pragma_Contract_Case and Name_Contract_Case.
2140 2013-04-22 Yannick Moy <moy@adacore.com>
2142 * aspects.ads, aspects.adb, sem_ch13.adb: Removal of references to
2144 * gnat_ugn.texi, gnat_rm.texi Description of Contract_Case replaced by
2145 description of Contract_Cases.
2147 2013-04-12 Robert Dewar <dewar@adacore.com>
2149 * makeutl.adb, prj-nmsc.adb: Minor reformatting.
2151 2013-04-12 Robert Dewar <dewar@adacore.com>
2153 * exp_util.adb (Make_Invariant_Call): Use Check_Kind instead
2155 * gnat_rm.texi (Check_Policy): Update documentation for new
2156 Check_Policy syntax.
2157 * sem_prag.adb (Check_Kind): Replaces Check_Enabled
2158 (Analyze_Pragma, case Check_Policy): Rework to accomodate new
2159 syntax (like Assertion_Policy).
2160 * sem_prag.ads (Check_Kind): Replaces Check_Enabled.
2162 2013-04-12 Doug Rupp <rupp@adacore.com>
2164 * init.c (SS$_CONTROLC, SS$_CONTINUE) [VMS]: New macros.
2165 (__gnat_handle_vms_condition) [VMS]: Dispatch on the Crtl/C user
2166 handler if installed.
2167 * ctrl_c.c (__gnat_install_int_handler)
2168 [VMS]: Install a dummy sigaction handler to trigger the real
2169 user handler dispatch in init.c/__gnat_handle_vms_condition.
2170 (__gnat_uninstall_int_handler) [VMS]: Likewise.
2172 2013-04-12 Vincent Celier <celier@adacore.com>
2174 * clean.adb (Parse_Cmd_Line): Set Directories_Must_Exist_In_Projects
2175 to False if switch is specified.
2176 * makeutl.adb (Initialize_Source_Record): Do not look for the
2177 object file if there is no object directory.
2178 * opt.ads (Directories_Must_Exist_In_Projects): New Boolean
2179 variable, defaulted to True.
2180 * prj-nmsc.adb (Check_Library_Attributes): Do not fail if library
2181 directory does not exist when Directories_Must_Exist_In_Projects is
2183 (Get_Directories): Do not fail when the object or the exec directory
2184 do not exist when Directories_Must_Exist_In_Projects is False.
2186 2013-04-12 Robert Dewar <dewar@adacore.com>
2188 * namet.adb, namet.ads: Minor addition (7 arg version of Nam_In).
2189 * exp_prag.adb, sem_ch3.adb, sem_intr.adb, sem_type.adb, exp_util.adb,
2190 sem_aux.adb, exp_ch9.adb, sem_ch7.adb, sem_ch10.adb, sem_prag.adb,
2191 par-ch2.adb, tbuild.adb, rtsfind.adb, freeze.adb, sem_util.adb,
2192 sem_res.adb, sem_attr.adb, exp_ch2.adb, prj-makr.adb, sem_elab.adb,
2193 exp_ch4.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, par-prag.adb,
2194 prj-nmsc.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
2195 sem_eval.adb, exp_intr.adb, sem_ch13.adb, exp_cg.adb, lib-xref.adb,
2196 sem_disp.adb, exp_ch3.adb: Minor code reorganization (use Nam_In).
2198 2013-04-12 Doug Rupp <rupp@adacore.com>
2200 * init.c: Don't clobber condition code on VMS.
2202 2013-04-12 Robert Dewar <dewar@adacore.com>
2204 * exp_aggr.adb: Minor reformatting.
2205 * namet.ads, namet.adb (Nam_In): New functions.
2207 2013-04-12 Robert Dewar <dewar@adacore.com>
2209 * einfo.adb (Has_Dynamic_Predicate_Aspect): New flag.
2210 (Has_Static_Predicate_Aspect): New flag.
2211 * einfo.ads (Has_Dynamic_Predicate_Aspect): New flag.
2212 (Has_Static_Predicate_Aspect): New flag.
2213 * exp_ch9.adb: Minor reformatting.
2214 * exp_util.adb (Make_Invariant_Call): Check_Enabled now handles
2216 * gnat1drv.adb: Remove setting of Debug_Pragmas_Enabled,
2217 since this switch is gone and control of Debug is done with
2219 * gnat_rm.texi: Update documentation for Assertion_Policy and
2220 Check_Policy pragmas.
2221 * opt.adb (Debug_Pragmas_Disabled[_Config]): Removed
2222 (Debug_Pragmas_Enabled[_Config]): Removed Since debug now
2223 controlled by Assertion_Enabled.
2224 * opt.ads (Debug_Pragmas_Disabled[_Config]): Removed
2225 (Debug_Pragmas_Enabled[_Config]): Removed Since debug now
2226 controlled by Assertion_Enabled.
2227 * par-ch2.adb (Scan_Pragma_Argument_Association): Allow new
2229 * sem_attr.adb: Minor reformatting.
2230 * sem_ch13.adb (Analyze_Aspect_Specification): Disable aspect
2231 if DISABLE policy applies.
2232 * sem_ch6.adb (Grab_PPC): Check original name of aspect for
2233 aspect from pragma (Process_PPCs): Properly check assertion policy.
2234 * sem_prag.adb (Check_Enabled): Rewritten for new Assertion_Policy
2235 (Check_Appicable_Policy): New procedure.
2236 (Is_Valid_Assertion_Kind): New function.
2237 (Rewrite_Assertion_Kind): New procedure.
2238 (Analyze_Pragma): Handle case of disabled assertion pragma.
2239 (Analyze_Pragma, case Assertion_Policy): Rewritten for Ada 2012.
2240 (Analyze_Pragma, case Check): Deal with 'Class possibilities.
2241 (Analyze_Pragma, case Check_Policy): Deal with 'Class possibilities.
2242 (Analyze_Pragma, case Contract_Class): New handling of ignored pragma.
2243 (Analyze_Pragma, case Debug): New control with Assertion_Policy.
2244 (Analyze_Pragma, case Debug_Policy): Now consistent with
2246 (Analyze_Pragma, case Loop_Invariant): New handling of ignored
2248 (Analyze_Pragma, case Loop_Variant): New handling of ignored pragma.
2249 (Analyze_Pragma, case Precondition): Use proper name for Check pragma.
2250 (Analyze_Pragma, case Check_Enabled): Rewritten for new policy stuff.
2251 * sem_prag.ads (Check_Enabled): Rewritten for new
2252 Assertion_Policy stuff.
2253 (Check_Appicable_Policy): New procedure.
2254 * sinfo.adb (Is_Disabled): New flag.
2255 (Is_Ignored): New flag.
2256 * sinfo.ads (Is_Disabled): New flag.
2257 (Is_Ignored): New flag.
2258 (N_Pragma_Argument_Association): New 'Class forms.
2259 * snames.ads-tmpl: New names Name_uPre, Name_uPost,
2260 Name_uType_Invariant, Name_uInvariant.
2261 * switch-c.adb: Remove setting of Debug_Pragmas_Enabled for -gnata.
2262 * tree_io.ads (ASIS_Version_Number): Updated (remove
2263 read write of obsolete flags Debug_Pragmas_Disabled and
2264 Debug_Pragmas_Enabled.
2266 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2268 * exp_aggr.adb (Get_Explicit_Discriminant_Value): Subsidiary
2269 of Build_Record_Aggr_Code, used to retrieve explicit values
2270 for inherited discriminants in an extension aggregate, when the
2271 ancestor type is unconstrained.
2273 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2275 * sem_attr.adb (Check_Stream_Attribute): If restriction
2276 No_Default_Stream_Attributes is active, it is illegal to use a
2277 predefined elementary type stream attribute either by itself,
2278 or more importantly as part of the attribute subprogram for a
2279 composite type. However, if the broader restriction No_Streams
2280 is active, then stream operations are not generated, and there
2283 2013-04-12 Robert Dewar <dewar@adacore.com>
2285 * gnatbind.adb: Minor reformatting.
2287 2013-04-12 Bob Duff <duff@adacore.com>
2289 * sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a
2290 call only in the static elaboration model.
2292 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2294 * sem_prag.adb (Analyze_Input_List): Detect an illegal dependency
2295 clause where both input and output lists are null.
2296 (Analyze_Pragma): Update the grammar of pragma Depends.
2298 2013-04-12 Vincent Celier <celier@adacore.com>
2300 * gnatbind.adb (No_Restriction_List): Exclude restrictions that
2301 take a parameter value, not a count.
2302 * prj.ads, prj.adb (Remove_All_Restricted_Languages): New procedure.
2303 * projects.texi: Complete documentation of attribute Roots.
2305 2013-04-12 Thomas Quinot <quinot@adacore.com>
2307 * exp_ch3.adb, exp_util.ads, checks.adb, freeze.adb, sem_attr.adb,
2308 sem_ch3.adb: Minor reformatting.
2309 * exp_ch4.adb (Size_In_Storage_Elements): Minor documentation
2310 improvement: note that the computation is pessimistic for bit
2312 * gnat_rm.texi (Range_Length): Fix minor error in description
2315 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2317 * aspects.adb (Find_Aspect): New routine.
2318 (Find_Value_Of_Aspect): New routine.
2319 (Has_Aspect): Reimplemented.
2320 * aspects.ads (Find_Aspect): New routine.
2321 (Find_Value_Of_Aspect): New routine, previously known as Find_Aspect.
2322 * exp_ch5.adb (Expand_Iterator_Loop): Update the call to Find_Aspect.
2323 * exp_util.adb (Is_Iterated_Container): Update the call to Find_Aspect.
2324 * sem_ch4.adb (Try_Container_Indexing): Update calls to Find_Aspect.
2325 * sem_ch5.adb (Analyze_Iterator_Specification): Update
2326 the call to Find_Aspect. Use function Has_Aspect for better
2328 (Preanalyze_Range): Use function Has_Aspect for better readability.
2329 * sem_ch13.adb (Check_One_Function): Update the call to Find_Aspect.
2330 * sem_prag.adb (Analyze_Pragma): There is no longer need to
2331 look at the parent to extract the corresponding pragma for
2334 2013-04-12 Robert Dewar <dewar@adacore.com>
2336 * checks.adb, sem_elab.adb, repinfo.adb, sem_ch4.adb, restrict.adb,
2337 restrict.ads: Minor reformatting.
2339 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2341 * lib-xref.adb: Retrieve original name of classwide type if any.
2343 2013-04-12 Thomas Quinot <quinot@adacore.com>
2345 * exp_ch11.ads: Minor reformatting.
2347 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2349 * aspects.adb: Alphabetize subprogram bodies in this unit. Add
2350 an entry for Aspect_Ghost in the table of canonical aspects.
2351 (Has_Aspect): New routine.
2352 * aspects.ads: Add Aspect_Ghost to all relevant
2353 tables. Alphabetize subprograms in this unit.
2354 (Has_Aspect): New routine.
2355 * einfo.adb: Add with and use clauses for Aspects.
2356 (Is_Ghost_Function): New routine.
2357 * einfo.ads: Add new synthesized attribute Is_Ghost_Function and
2358 update the structure of the related nodes.
2359 (Is_Ghost_Function): New routine.
2360 * exp_ch4.adb (Find_Enclosing_Context): Use routine
2361 Is_Body_Or_Package_Declaration to terminate a search.
2362 (Is_Body_Or_Unit): Removed.
2363 * exp_util.adb (Within_Case_Or_If_Expression): Use routine
2364 Is_Body_Or_Package_Declaration to terminate a search.
2365 * par-prag.adb: Add pragma Ghost to the list of pragmas that do
2366 not need special processing by the parser.
2367 * sem_attr.adb (Analyze_Access_Attribute): Detect an
2368 illegal use of 'Access where the prefix is a ghost function.
2369 (Analyze_Attribute): Use routine Is_Body_Or_Package_Declaration
2370 to terminate a search. (Check_References_In_Prefix): Use routine
2371 Is_Body_Or_Package_Declaration to terminate a search.
2372 * sem_ch4.adb (Analyze_Call): Mark a function when it appears
2373 inside an assertion expression. Verify the legality of a call
2374 to a ghost function.
2375 (Check_Ghost_Function_Call): New routine.
2376 * sem_ch6.adb (Analyze_Function_Call): Code reformatting. Move
2377 the setting of attribute In_Assertion_Expression to Analyze_Call.
2378 (Check_Overriding_Indicator): Detect an illegal attempt to
2379 override a function with a ghost function.
2380 * sem_ch12.adb (Preanalyze_Actuals): Detect an illegal use of
2381 a ghost function as a generic actual.
2382 * sem_elab.adb (Check_Internal_Call_Continue): Update the call
2384 * sem_prag.adb: Add an entry for pragma Ghost in the table
2385 of significant arguments.
2386 (Analyze_Pragma): Do not analyze
2387 an "others" case guard. Add processing for pragma Ghost. Use
2388 Preanalyze_Assert_Expression when analyzing the expression of
2389 pragmas Loop_Invariant and Loop_Variant.
2390 * sem_util.adb (Get_Subprogram_Entity): Reimplemented.
2391 (Is_Body_Or_Package_Declaration): New routine.
2392 * sem_util.ads: Alphabetize subprotrams in this unit.
2393 (Is_Body_Or_Package_Declaration): New routine.
2394 * sinfo.adb (In_Assertion): Rename to In_Assertion_Expression.
2395 (Set_In_Assertion): Rename to Set_In_Assertion_Expression.
2396 * sinfo.ads: Rename flag In_Assertion to In_Assertion_Expression
2397 to better reflect its use. Update all places that mention the flag.
2398 (In_Assertion): Rename to In_Assertion_Expression. Update
2399 related pragma Inline. (Set_In_Assertion): Rename to
2400 Set_In_Assertion_Expression. Update related pragma Inline.
2401 * snames.ads-tmpl: Add new predefined name Ghost. Add new pragma
2404 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2406 * sem_prag.adb (Set_Imported): Do not generate error for multiple
2407 Import in CodePeer mode.
2408 * s-rident.ads: Fix minor typo.
2410 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2412 * checks.adb (Insert_Valid_Check): Do not insert validity check
2413 in the body of the generated predicate function, to prevent
2416 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2418 * s-rident.ads: Add various missing Ada 2012 restrictions:
2419 No_Access_Parameter_Allocators, No_Coextensions,
2420 No_Use_Of_Attribute, No_Use_Of_Pragma.
2421 * snames.ads-tmpl: Add corresponding names.
2422 * restrict.ads restrict.adb: Subprograms and data structures to
2423 handle aspects No_Use_Of_Attribute and No_Use_Of_Pragma.
2424 * sem_ch4.adb: Correct name of restrictions is
2425 No_Standard_Allocators_After_Elaboration.
2426 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Check
2427 violation of restriction No_Use_Of_Attribute.
2428 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2429 Set restrictions No_Use_Of_Pragma and No_Use_Of_Attribute.
2430 (Analyze_Pragma): Check violation of restriction No_Use_Of_Pragma.
2431 * sem_res.adb: Check restrictions No_Access_Parameter_Allocators
2432 and No_Coextensions.
2433 * bcheck.adb: Correct name of restrictions is
2434 No_Standard_Allocators_After_Elaboration.
2435 * gnatbind.adb: Correct name of restrictions is
2436 No_Standard_Allocators_After_Elaboration.
2438 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2440 * sem_prag.adb (Analyze_Pragma, (Check_Mode_Restriction_In_Function):
2441 Correct error message format.
2443 2013-04-12 Robert Dewar <dewar@adacore.com>
2445 * sem_attr.adb: Minor reformatting.
2447 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2449 * sem_elab.adb (Within_Elaborate_All): Do not examine a context
2450 item that has not been analyzed, because the unit may have errors,
2451 or the context item may come from a proper unit inserted at the
2452 point of a stub and not analyzed yet.
2454 2013-04-12 Thomas Quinot <quinot@adacore.com>
2456 * gnat1drv.adb, repinfo.adb, repinfo.ads (Repinfo.List_Array_Info,
2457 List_Record_Info): Also include scalar storage order information in
2460 2013-04-12 Yannick Moy <moy@adacore.com>
2462 * sem_ch6.adb (Process_Contract_Cases): Update code to apply to
2463 Contract_Cases instead of Contract_Case pragma.
2465 2013-04-12 Robert Dewar <dewar@adacore.com>
2467 * a-cfdlli.ads, g-socket.adb, s-fileio.adb: Minor reformatting.
2469 2013-04-12 Yannick Moy <moy@adacore.com>
2471 * sem_attr.adb (Analyze_Attribute): Update analyse of
2472 Attribute_Old and Attribute_Result so they are allowed in the
2473 right-hand-side of an association in a Contract_Cases pragma.
2474 * sem_prag.adb (Analyze_CTC_In_Decl_Part): Add pre-analysis of
2475 the expressions in a Contract_Cases pragma.
2477 2013-04-12 Robert Dewar <dewar@adacore.com>
2479 * sem.ads, opt.ads: Minor comment edits.
2480 * sem_warn.adb, sem_ch6.adb: Minor reformatting.
2482 2013-04-12 Claire Dross <dross@adacore.com>
2484 * a-cfdlli.adb a-cfdlli.ads (List, Not_No_Element, Iterate,
2485 Reverse_Iterate, Query_Element, Update_Element, Read, Write): Removed,
2486 not suitable for formal analysis.
2488 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2490 * sem_prag.adb (Analyze_Abstract_State): Use Defining entity
2491 to locate package entity, which may be a child unit.
2493 2013-04-12 Thomas Quinot <quinot@adacore.com>
2495 * g-socket.adb, g-socket.ads (Connect_Socket, version with timeout): If
2496 the specified timeout is 0, do not attempt to determine whether the
2497 connection succeeded.
2499 2013-04-12 Doug Rupp <rupp@adacore.com>
2501 * s-fileio.adb (Form_RMS Context_Key): Fix some thinkos.
2503 2013-04-12 Doug Rupp <rupp@adacore.com>
2505 * s-fileio.adb: Minor reformatting.
2507 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2509 * sem_warn.adb (Check_Infinite_Loop_Warning): Do not warn if
2510 the last statement in the analyzed loop is an unconditional
2513 2013-04-12 Robert Dewar <dewar@adacore.com>
2515 * opt.ads (Style_Check_Main): New switch.
2516 * sem.adb (Semantics): Set Style_Check flag properly for new
2517 unit to be analyzed.
2518 * sem_ch10.adb (Analyze_With_Clause): Don't reset Style_Check,
2519 the proper setting of this flag is now part of the Semantics
2521 * switch-c.adb (Scan_Front_End_Switches): Set Style_Check_Main
2522 for -gnatg and -gnaty
2524 2013-04-12 Doug Rupp <rupp@adacore.com>
2526 * s-crtl.ads (fopen, freopen): Add vms_form parameter
2527 * i-cstrea.ads (fopen, freopen): Likewise.
2528 * adaint.h (__gnat_fopen, __gnat_freopen): Likewise.
2529 * adaint.c (__gnat_fopen, __gnat_freopen): Likewise.
2530 [VMS]: Split out RMS keys and call CRTL function appropriately.
2531 * s-fileio.adb (Form_VMS_RMS_Keys, Form_RMS_Context_Key): New
2533 (Open, Reset): Call Form_VMS_RMS_Keys. Call fopen,freopen with
2535 * gnat_rm.texi: Document implemented RMS keys.
2537 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2539 * sem_ch13.adb (Analyze_Aspect_Specifications):
2540 Insert the corresponding pragma for aspect Abstract_State at
2541 the top of the visible declarations of the related package.
2542 Previously this was only done when the package is a compilation
2545 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2547 * gnat_ugn.texi: Further menu clean ups.
2548 * sem_prag.adb, opt.ads: Minor reformatting.
2549 * sem_util.ads: Minor comment fix.
2551 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2553 * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect
2554 Depends is now a delayed aspect. The delay is required
2555 due to the interplay between aspects Depends and Global.
2556 (Check_Aspect_At_Freeze_Point): Add an entry for aspect Depends.
2557 * sem_prag.adb: Reformat various error messages.
2558 (Add_Item): New subsidiary routine.
2559 (Analyze_Pragma): Add new variables
2560 Global_Seen, Result_Seen, Subp_Inputs and Subp_Outputs. The
2561 analysis of pragma Depends now has the capability to check
2562 the proper mode and usage of subprogram inputs and outputs.
2563 (Appears_In): New routine.
2564 (Check_Function_Return): New routine.
2565 (Check_Mode): New routine.
2566 (Check_Usage): New routine.
2567 (Collect_Subprogram_Inputs_Outputs): New routine.
2569 2013-04-12 Bob Duff <duff@adacore.com>
2571 * par-ch7.adb (P_Package): Initialize Sloc in the newly-pushed scope
2574 2013-04-12 Robert Dewar <dewar@adacore.com>
2576 * switch-c.adb: Minor fix to wording of error message for
2579 2013-04-12 Robert Dewar <dewar@adacore.com>
2581 * impunit.adb: Add s-multip and s-mudido to list of impl defined
2583 * gnat_rm.texi: Add documentation for
2584 System.Multiprocessors[.Dispatching_Domains].
2586 2013-04-12 Ben Brosgol <brosgol@adacore.com>
2588 * gnat_ugn.texi: Completion of menu cleanups.
2590 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2592 * sem_prag.adb (Diagnose_Multiple_Pragmas): Relax the rules
2593 in Relaxed_RM_Semantics.
2595 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2597 * set_targ.adb (elab code): Add support for non gcc back-ends
2598 where save_argv is null.
2600 2013-04-12 Robert Dewar <dewar@adacore.com>
2602 * gnat1drv.adb (Gnat1drv): Test Target_Dependent_Info_Write_Name.
2603 * opt.ads (Target_Dependent_Info_Read): Add _Name, now an access
2604 type (Target_Dependent_Info_Write): Add _Name, now an access type.
2605 * set_targ.adb (Write_Target_Dependent_Values): Use name
2606 from -gnatet switch stored in Target_Dependent_Info_Write_Name
2607 (Read_Target_Dependent_Values): Use name from -gnateT switch
2608 stored in Target_Dependent_Info_Read_Name.
2609 * switch-c.adb: New form of -gnatet and -gnateT switches.
2610 * usage.adb: New form of -gnatet and -gnateT switches with
2613 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2615 * gcc-interface/decl.c (elaborate_expression_1): Skip only constant
2616 arithmetics when looking for a read-only variable in the expression.
2618 2013-04-11 Javier Miranda <miranda@adacore.com>
2620 * check.ads, exp_ch6.adb (Install_Null_Excluding_Check): No check in
2621 interface thunks since it is performed at the caller side.
2622 (Expand_Simple_Function_Return): No accessibility check needed in thunks
2623 since the check is done by the target routine.
2625 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2627 * sem_prag.adb (Analyze_Pragma, case Priority): pre-analyze
2628 expression with type Any_Priority.
2629 * exp_ch9.adb (Initialize_Protection): Check that the value
2630 of the priority expression is within the bounds of the proper
2633 2013-04-11 Robert Dewar <dewar@adacore.com>
2635 * sem_prag.adb, prj-env.adb: Minor reformatting.
2637 2013-04-11 Ben Brosgol <brosgol@adacore.com>
2639 * gnat_ugn.texi: Clean ups.
2641 2013-04-11 Yannick Moy <moy@adacore.com>
2643 * set_targ.adb: Minor comment update.
2645 2013-04-11 Pascal Obry <obry@adacore.com>
2647 * gnat_ugn.texi: Remove obsolete comment about DLL calling
2650 2013-04-11 Javier Miranda <miranda@adacore.com>
2652 * exp_ch6.adb (Expand_Call): For the call to the target primitive
2653 of an interface thunks do not compute the extra actuals; just
2654 propagate the extra actuals received by the thunk.
2655 * exp_disp.adb (Expand_Interface_Thunk): Decorate new attribute
2657 * sem_ch6.adb (Create_Extra_Formals): Do not generate extra
2658 formals in interface thunks whose target primitive has no extra
2661 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2663 * sem_prag.adb (Analyze_Pragma): Detect
2664 a renaming by looking at the Renamed_Object attribute.
2665 (Is_Renaming): Removed.
2667 2013-04-11 Vincent Celier <celier@adacore.com>
2669 * prj-env.adb (Initialize_Default_Project_Path): Take
2670 into account a project path file, specified by environment
2671 variable GPR_PROJECT_PATH_FILE, before taking into account
2673 * projects.texi: Add documentation for GPR_PROJECT_PATH_FILE
2675 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2677 * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
2678 a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
2679 a-cfdlli.adb, a-cfdlli.ads, a-cborma.adb, a-cborma.ads, a-cidlli.adb,
2680 a-cidlli.ads, a-ciormu.adb, a-ciormu.ads, a-cihase.adb, a-cihase.ads,
2681 a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads, a-cbhama.adb,
2682 a-cbhama.ads, a-cborse.adb, a-cborse.ads, a-ciorma.adb, a-cobove.adb,
2683 a-ciorma.ads, a-cobove.ads, a-coormu.adb, a-coormu.ads, a-cohase.adb,
2684 a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbhase.adb, a-cbhase.ads:
2685 Move Iterator operations from body to private part of spec.
2687 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2689 * ttypes.ads, get_targ.ads: More minor rewording of comments.
2691 2013-04-11 Johannes Kanig <kanig@adacore.com>
2693 * debug.adb: Document use of switch -gnatd.Z.
2695 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2697 * sem_prag.adb (Analyze_Pragma): Both pragma Depends and Global can now
2698 support renamings of entire objects. Legal renamings are replaced by
2699 the object they rename.
2700 (Is_Renaming): New routine.
2702 2013-04-11 Yannick Moy <moy@adacore.com>
2704 * set_targ.adb, opt.ads: Minor changes in comments.
2706 2013-04-11 Ben Brosgol <brosgol@adacore.com>
2708 * gnat_ugn.texi: Minor clean ups.
2710 2013-04-11 Robert Dewar <dewar@adacore.com>
2712 * nlists.ads, nlists.adb, treepr.adb, treepr.ads: Move debugging
2713 function p from Nlists to Treepr.
2715 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2717 * sem_disp.adb (Check_Dispatching_Context): If the context is
2718 a contract for a null procedure defer error reporting until
2719 postcondition body is created.
2720 * exp_ch13.adb (Expand_N_Freeze_Entity): If the entity is a
2721 null procedure, complete the analysis of its contracts so that
2722 calls within classwide conditions are properly rewritten as
2725 2013-04-11 Thomas Quinot <quinot@adacore.com>
2727 * sem_ch10.adb, sem_ch12.adb: Minor reformatting.
2729 2013-04-11 Robert Dewar <dewar@adacore.com>
2731 * exp_attr.adb, sem_res.adb, sem_attr.adb: Minor reformatting.
2733 2013-04-11 Robert Dewar <dewar@adacore.com>
2735 * atree.adb, atree.ads (Node31): New function.
2736 (Set_Node31): New procedure.
2738 2013-04-11 Robert Dewar <dewar@adacore.com>
2740 * errout.ads: Minor typo correction.
2742 2013-04-11 Javier Miranda <miranda@adacore.com>
2744 * einfo.ad[sb] (Thunk_Entity/Set_Thunk_Entity): New attribute.
2746 2013-04-11 Robert Dewar <dewar@adacore.com>
2748 * back_end.adb (Register_Back_End_Types): Moved to Get_Targ
2749 * back_end.ads (C_String): Moved to Get_Targ
2750 (Register_Type_Proc): Moved to Get_Targ (Register_Back_End_Types):
2752 * cstand.adb (Register_Float_Type): New interface
2753 (Create_Back_End_Float_Types): Use entries in FPT_Mode_Table.
2754 * get_targ.adb (Register_Back_End_Types): Moved here from
2756 * get_targ.ads (C_String): Moved here from Back_End
2757 (Register_Type_Proc): Moved here from Back_End
2758 (Register_Back_End_Types): here from Back_End.
2759 * gnat1drv.adb (GGnat11drv): Add call to
2760 Write_Target_Dependent_Values;
2761 * lib-writ.ads, lib-writ.adb (Write_ALI): Remove section writing
2762 obsolete target dependent info.
2763 * opt.ads (Generate_Target_Dependent_Info):
2764 Removed (Target_Dependent_Info_Read): New flag
2765 (Target_Dependent_Info_Write): New flag
2766 * output.adb: Minor comment change
2767 * s-os_lib.ads: Minor reformatting
2768 * set_targ.ads, set_targ.adb: Minor reformatting.
2769 * switch-c.adb (Scan_Switches.First_Ptr): New variable
2770 (Scan_Front_End_Switches): Check -gnatd.b, -gnateT come first
2771 (Scan_Front_End_Switches): Handle -gnatet, -gnateT
2772 * ttypes.ads: Remove documentation section on target dependent
2773 info in ali file Remove four letter codes, no longer used Instead
2774 of using Get_Targ.Get_xxx, we use Set_Targ.xxx
2775 * usage.adb: Add usage lines for -gnatet/-gnateT
2776 * gcc-interface/Make-lang.in: Update dependencies.
2778 2013-04-11 Thomas Quinot <quinot@adacore.com>
2780 * sem_ch4.adb: Update documentation.
2781 * sinfo.ads (N_Expression_With_Actions): Ditto.
2783 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2785 * sem_ch13.adb (Analyze_Aspect_Specifications):
2786 Add a guard to prevent the double insertion of the same aspect
2787 into a rep item list. This previously led to a circularity.
2789 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2791 * sem_attr.adb (Eval_Attribute, case 'Access): Reject attribute
2792 reference if the prefix is the dereference of an anonymous access
2794 * exp_attr.adb (Expand_N_Attribute_Reference, Access_Cases): Handle
2795 properly a reference to the current instance of a protected type
2796 from within a protected subprogram.
2797 * sem_res.adb (Find_Unique_Access_Type): Treat
2798 Attribute_Access_Type like Allocator_Type when resolving an
2801 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2803 * xgnatugn.adb: Remove obsolete comments.
2805 2013-04-11 Robert Dewar <dewar@adacore.com>
2807 * back_end.ads, back_end.adb: Minor reformatting.
2808 * set_targ.ads, set_targ.adb: New files.
2810 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2812 * sem_case.adb (Check_Against_Predicate): New routine.
2813 (Check_Choices): When the type covered by the list of choices
2814 is a static subtype with a static predicate, check all choices
2815 agains the predicate.
2816 (Issue_Msg): All versions removed.
2817 (Missing_Choice): New routines.
2818 * sem_ch4.adb: Code and comment reformatting.
2819 (Analyze_Case_Expression): Do not check the choices when the case
2820 expression is being preanalyzed and the type of the expression
2821 is a subtype with a static predicate.
2822 (Has_Static_Predicate): New routine.
2823 * sem_ch13.adb: Code and comment reformatting. (Build_Range):
2824 Always build a range even if the low and hi bounds denote the
2825 same value. This is needed by the machinery in Check_Choices.
2826 (Build_Static_Predicate): Always build a range even if the low and
2827 hi bounds denote the same value. This is needed by the machinery
2830 2013-04-11 Robert Dewar <dewar@adacore.com>
2832 * einfo.ads, sem_util.adb, exp_ch6.adb, xgnatugn.adb: Minor
2835 2013-04-11 Doug Rupp <rupp@adacore.com>
2837 * gnatlink.adb: Fold program basename to lower case on VMS for
2840 2013-04-11 Matthew Heaney <heaney@adacore.com>
2842 * a-rbtgbo.adb (Generic_Equal): Initialize Result variable before
2845 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2847 * xgnatugn.adb: Remove dead code (handling of @ifset/@ifclear).
2849 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2851 * gnat_ugn.texi: Remove some use of ifset in menus. Not strictly
2852 needed, and seems to confuse some versions of makeinfo.
2854 2013-04-11 Javier Miranda <miranda@adacore.com>
2856 * einfo.adb (Is_Thunk): Remove assertion.
2857 (Set_Is_Thunk): Add assertion.
2858 * einfo.ads (Is_Thunk): Complete documentation.
2859 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Code cleanup.
2860 * exp_ch3.ad[sb] (Is_Variable_Size_Array): Moved to sem_util
2861 (Is_Variable_Size_Record): Moved to sem_util
2862 * exp_ch6.adb (Expand_Call): Code cleanup.
2863 (Expand_N_Extended_Return_Statement): Code cleanup.
2864 (Expand_Simple_Function_Return): Code cleanup.
2865 * exp_disp.adb Remove dependency on exp_ch3
2866 (Expand_Interface_Thunk): Add minimum decoration needed to set
2868 * sem_ch3.ad[sb] (Is_Constant_Bound): moved to sem_util
2869 * sem_util.ad[sb] (Is_Constant_Bound): Moved from
2870 sem_ch3 (Is_Variable_Size_Array): Moved from exp_ch3
2871 (Is_Variable_Size_Record): Moved from exp_ch3
2873 2013-04-11 Javier Miranda <miranda@adacore.com>
2875 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Do
2876 not add cleanup actions in thunks associated with interface types.
2877 * exp_ch3.ad[sb] (Is_Variable_Size_Record): Move declaration to
2879 * exp_ch4.adb (Tagged_Conversion): Update call to
2880 Expand_Interface_Conversion since the parameter Is_Static is no
2882 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Adding
2883 assertion to ensure that interface thunks are never handled by
2885 (Expand_N_Simple_Function_Return): Do not rewrite this statement
2886 as an extended return statement in interface thunks, and do not
2887 perform copy in the secondary stack if the return statement is
2889 * exp_disp.adb (Expand_Dispatching_Call): No longer displace
2890 the pointer to the returned object in functions returning interface
2892 (Expand_Interface_Thunk): For functions returning interface types
2893 displace the pointer to the returned object.
2894 (Expand_Interface_Conversion): Remove formal
2895 Is_Static since this subprogram can now evaluate it locally.
2896 * sem_ch3.adb (Add_Internal_Interface_Entities): For functions
2897 propagate the type returned by the covered interface primitive to
2898 the internal interface entity. Needed by the thunk to generate
2899 the code which displaces "this" to reference the corresponding
2900 secondary dispatch table.
2901 * sem_disp.adb (Propagate_Tag): Update call to
2902 Expand_Interface_Conversion since the parameter Is_Static is no
2904 * sem_res.adb (Resolve_Type_Conversion): Update calls to
2905 Expand_Interface_Conversion since the parameter Is_Static is no
2906 longer needed plus code cleanup.
2908 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2910 * init.c (RETURN_ADDR_OFFSET): Delete as unused.
2912 2013-04-11 Robert Dewar <dewar@adacore.com>
2914 * a-crbtgk.adb, a-ciorse.adb, a-crbtgo.adb, a-coorse.adb, a-rbtgbo.adb,
2915 a-cborse.adb, a-rbtgso.adb, exp_ch3.adb: Minor reformatting.
2917 2013-04-11 Yannick Moy <moy@adacore.com>
2919 * exp_ch4.adb (Expand_N_Selected_Component): Do not expand
2920 discriminant check for Unchecked_Union.
2921 * sem_res.adb (Resolve_Selected_Component): Set flag
2922 Do_Discriminant_Check even when expansion is not performed.
2923 * sinfo.ads (Do_Discriminant_Check): Update documentation for the case
2926 2013-04-11 Thomas Quinot <quinot@adacore.com>
2928 * sem_ch13.adb (Same_Representation): Two types with different scalar
2929 storage order never have the same representation.
2931 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2933 * xgnatugn.adb (Push_Conditional): Simplify handling,
2934 no longer need to keep track of "excluding" sections.
2935 (Currently_Excluding): Removed.
2936 (Process_Source_File):
2937 Set unw/vms flag so that texinfo can do the whole handling of
2938 @ifset/@ifclear sections. Fix handling of nested @ifset/@ifclear
2940 * gnat_ugn.texi: Add a section on performing unassisted install
2943 2013-04-11 Johannes Kanig <kanig@adacore.com>
2945 * debug.adb: Document usage of -gnatd.Q switch.
2947 2013-04-11 Matthew Heaney <heaney@adacore.com>
2949 * a-crbtgk.adb (Ceiling, Find, Floor): Adjust locks
2950 before element comparisons.
2951 (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint):
2953 * a-crbtgo.adb, a-rbtgbo.adb (Generic_Equal): Adjust locks before
2954 element comparisons.
2955 * a-rbtgso.adb (Difference, Intersection): Adjust locks
2956 before element comparisons.
2957 (Is_Subset, Overlap): Ditto
2958 (Symmetric_Difference, Union): Ditto
2959 * a-btgbso.adb (Set_Difference, Set_Intersection): Adjust locks
2960 before element comparisons.
2961 (Set_Subset, Set_Overlap): Ditto
2962 (Set_Symmetric_Difference, Set_Union): Ditto
2963 * a-coorse.adb, a-ciorse.adb, a-cborse.adb
2964 (Update_Element_Preserving_Key): Adjust locks before element
2965 comparisons (Replace_Element): Ditto
2967 2013-04-11 Pascal Obry <obry@adacore.com>
2969 * prj-attr.adb, projects.texi, snames.ads-tmpl: Remove Build_Slaves
2972 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2974 * exp_ch3.adb (Build_Equivalent_Aggregate): Subsidiary of
2975 Expand_N_Object_Declaration, used to construct an aggregate
2976 with static components whenever possible, so that objects of a
2977 discriminated type can be initialized without calling the init.
2980 2013-04-11 Vincent Celier <celier@adacore.com>
2982 * prj-makr.adb (Process_Directory): On VMS, always delete,
2983 then recreate the temporary file with Create_Output_Text_File,
2984 otherwise the output redirection does not work properly.
2986 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2988 * urealp.ads: Fix minor typo.
2990 2013-04-11 Fabien Chouteau <chouteau@adacore.com>
2992 * cio.c (mktemp): Don't use tmpnam function from the
2993 system on VxWorks in kernel mode.
2995 2013-04-11 Vincent Celier <celier@adacore.com>
2997 * make.adb (Compile): Clarify the error message reported
2998 when gnatmake refuses to compile a runtime source.
2999 (Start_Compile_If_Possible): Ditto.
3001 2013-04-11 Vincent Celier <celier@adacore.com>
3003 * gnat_ugn.texi: Add documentation about -gnatc and gnatmake.
3005 2013-04-11 Vincent Celier <celier@adacore.com>
3007 * switch-c.adb: Document internal switches.
3008 * usage.adb: Remove lines for internal switches: -gnatea, -gnateO,
3009 -gnatez and -gnateO.
3011 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3013 * par-ch6.adb (P_Subprogram): Attach aspects to subprogram stub.
3014 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Allow aspects on
3016 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze generated
3017 pre/post pragmas at once before analyzing the proper body.
3018 * sem_prag.adb (Chain_PPC): Handle pragma that comes from an
3019 aspect on a subprogram stub.
3020 * aspects.adb: Aspect specifications can appear on a
3021 subprogram_Body_Stub.
3023 2013-04-11 Vincent Celier <celier@adacore.com>
3025 * gnatname.adb: Minor comment fix.
3027 2013-04-11 Vincent Celier <celier@adacore.com>
3029 * prj-makr.adb (Process_Directory): Create a new temporary
3030 file for each invocation of the compiler, in directory pointed
3031 by environment variable TMPDIR if it exists.
3033 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3035 * gnat_ugn.texi: Minor editing/clean ups.
3037 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3039 * sem_ch6.adb (Analyze_Null_Procedure): New subprogram, mostly
3040 extracted from Analyze_Subprogram_Declaration, to handle null
3041 procedure declarations that in ada 2012 can be completions of
3042 previous declarations.
3044 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3046 * sem_prag.adb (Entity_Of): Moved to Exp_Util.
3047 * exp_util.ads, exp_util.adb (Entity_Of): New routine.
3049 2013-04-11 Robert Dewar <dewar@adacore.com>
3051 * g-spipat.ads: Minor comment fix.
3053 2013-04-11 Robert Dewar <dewar@adacore.com>
3055 * sem_prag.adb, sem_util.adb, sem_res.adb, exp_ch4.adb: Minor
3058 2013-04-11 Thomas Quinot <quinot@adacore.com>
3060 * exp_util.ads (Fully_Qualified_Name_String): Document that the
3061 constructed literal is the entity name in all upper case.
3063 2013-04-11 Thomas Quinot <quinot@adacore.com>
3065 * sem_util.adb (Set_Entity_With_Style_Check): Fix logic of
3066 check for implementation defined identifiers.
3068 2013-04-11 Yannick Moy <moy@adacore.com>
3070 * checks.adb (Apply_Type_Conversion_Checks): Add an explanation
3071 of why range check and length are put on different nodes.
3072 * exp_ch4.adb (Apply_Type_Conversion_Checks): Remove check marks
3073 when doing their expansion.
3075 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3077 * sem_util.ads, sem_util.adb (Get_Incomplete_View_Of_Ancestor):
3078 New function to implement the notion introduced in RM 7.3.1
3079 (5.2/3): in a child unit, a derived type is within the derivation
3080 class of an ancestor declared in a parent unit, even if there
3081 is an intermediate derivation that does not see the full view
3083 * sem_res.adb (Valid_Conversion): if all else fails, examine if an
3084 incomplete view of an ancestor makes a numeric conversion legal.
3086 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3088 * sem_ch6.adb: in Ada2012 operators can only have in
3091 2013-04-11 Vincent Celier <celier@adacore.com>
3093 * makeutl.adb (Create_Binder_Mapping_File): Do not put into
3094 the mapping file ALI files of sources that have been replaced.
3096 2013-04-11 Vincent Celier <celier@adacore.com>
3098 * projects.texi: Add subsection Duplicate Sources in Projects.
3100 2013-04-11 Vincent Celier <celier@adacore.com>
3102 * gnat_ugn.texi: Add documentation for gnatmake switch -droot_dir/**
3104 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3106 * init.c (__gnat_install_handler): Only set up an alternate
3107 stack when installing a signal handler for SIGSEGV.
3109 2013-04-11 Thomas Quinot <quinot@adacore.com>
3111 * g-socket.adb (Connect_Socket, timeout version): Call
3112 underlying connect operation directly, not through the 2-argument
3113 Connect_Socket thick binding, in order to avoid raising a junk
3114 exception for the EINPROGRESS return.
3116 2013-04-11 Robert Dewar <dewar@adacore.com>
3118 * a-cdlili.adb: Minor addition of pragma Warnings (Off).
3120 2013-04-11 Robert Dewar <dewar@adacore.com>
3122 * hostparm.ads: Minor reformatting.
3124 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3126 * aspects.ads, aspects.adb: Add Aspect_Depends to all the relevant
3128 * elists.ads, elists.adb (Contains): New routine.
3129 * par-prag.adb: Pragma Depends does not need any special treatment
3131 * sem_ch13.adb (Analyze_Aspect_Specifications):
3132 Transform aspect Depends into a corresponding pragma.
3133 (Check_Aspect_At_Freeze_Point): Aspect Depends does not need
3134 inspection at its freeze point.
3135 * sem_prag.adb (Analyze_Pragma): Perform analysis and
3136 normalization of pragma Depends. Remove the use of function
3137 Is_Duplicate_Item. Use End_Scope to uninstalle the formal
3138 parameters of a subprogram. Add a value for pragma Depends in
3140 (Is_Duplicate_Item): Removed.
3141 * snames.ads-tmpl: Add predefined name for Depends as well as
3142 a pragma identifier.
3144 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3146 * gnat1drv.adb: Minor code clean up.
3148 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3150 * debug.adb, sem_ch13.adb (Analyze_Enumeration_Representation_Clause):
3151 Ignore enumeration rep clauses by default in CodePeer mode, unless
3152 -gnatd.I is specified.
3154 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3156 * sem_util.adb (Safe_To_Capture_Value): If the node belongs to
3157 an expression that has been attached to the else_actions of an
3158 if-expression, the capture is not safe.
3160 2013-04-11 Yannick Moy <moy@adacore.com>
3162 * checks.adb (Apply_Type_Conversion_Checks): Put check mark on type
3163 conversion for arrays.
3165 2013-04-11 Robert Dewar <dewar@adacore.com>
3167 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
3169 2013-04-11 Johannes Kanig <kanig@adacore.com>
3171 * adabkend.adb: Minor comment addition.
3173 2013-04-11 Matthew Heaney <heaney@adacore.com>
3175 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb ("="): Increment
3176 lock counts before entering loop.
3178 (Is_Sorted, Merge, Sort): Ditto.
3179 (Reverse_Find): Ditto.
3180 (Splice_Internal): Internal operation to refactor splicing logic.
3181 (Splice): Some logic moved into Splice_Internal.
3183 2013-04-11 Johannes Kanig <kanig@adacore.com>
3185 * adabkend.adb (Scan_Compiler_Arguments): Do not call
3186 Set_Output_Object_File_Name in Alfa_Mode
3187 * gnat1drv.adb (Adjust_Global_Switches): Take Alfa_Mode into account.
3188 * opt.ads: Fix documentation.
3190 2013-04-11 Robert Dewar <dewar@adacore.com>
3192 * sem_res.adb: Minor code reorganization and comment fixes.
3193 * sem_type.adb: Minor reformatting.
3195 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3197 * exp_ch4.adb (Process_Transient_Object): Add new
3198 local variable Fin_Call. Remove and explain ??? comment. Use the
3199 Actions of logical operators "and then" and "or else" to insert
3200 the generated finalization call.
3202 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3204 * gnat_rm.texi: Fix typo.
3206 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3208 * sem_res.adb: Minor reformatting.
3210 2013-04-11 Robert Dewar <dewar@adacore.com>
3212 * atree.h: Add declarations for Flag255-Flag289 Fix declaration
3213 of Field30 (was wrong, but no effect, since not yet referenced by
3214 back end) Add declarations for Field31-Field35 Add declarations
3216 * einfo.ads, einfo.adb (Has_Invariants): No longer applies to
3218 (Has_Predicates): No longer applies to functions.
3219 (Is_Predicate_Function): New flag.
3220 (Is_Predicate_Function_M): New flag.
3221 (Is_Invariant_Procedure): New flag.
3222 (Predicate_Function_M): New function.
3223 (Set_Predicate_Function_M): New procedure.
3224 * exp_ch11.adb (Expand_N_Raise_Expression): Take care of special
3225 case of appearing in predicate used for membership test.
3226 * exp_ch3.adb (Insert_Component_Invariant_Checks): Set
3227 Is_Invariant_Procedure flag.
3228 * exp_ch4.adb (Expand_Op_In): Call special predicate function
3229 that takes care of raise_expression nodes in the predicate.
3230 * exp_util.ads, exp_util.adb (Make_Predicate_Call): Add argument Mem for
3232 * sem_ch13.adb (Build_Predicate_Functions): New name for
3233 Build_Predicate_Function. Major rewrite to take care of raise
3234 expression in predicate for membership tests.
3235 * sem_res.adb (Resolve_Actuals): Include both predicate functions
3236 in defense against infinite predicate function loops.
3237 * sinfo.ads, sinfo.adb (Convert_To_Return_False): New flag.
3239 2013-04-11 Robert Dewar <dewar@adacore.com>
3241 * sem_prag.adb: Minor reformatting.
3243 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3245 * lib-xref.adb: Generate reference for component of anonymous
3248 2013-04-11 Robert Dewar <dewar@adacore.com>
3250 * stand.ads: Minor reformatting.
3252 2013-04-11 Matthew Heaney <heaney@adacore.com>
3254 * a-convec.adb, a-coinve.adb, a-cobove.adb ("="): Increment lock
3255 counts before entering loop.
3256 (Find, Find_Index): Ditto.
3257 (Is_Sorted, Merge, Sort): Ditto.
3258 (Reverse_Find, Reverse_Find_Index): Ditto.
3260 2013-04-11 Robert Dewar <dewar@adacore.com>
3262 * exp_ch11.ads, exp_ch11.adb (Expand_N_Raise_Expression): New procedure.
3263 * exp_util.adb (Insert_Actions): Add entry for N_Raise_Expression.
3264 * expander.adb: Add call to Expand_N_Raise_Expression.
3265 * par-ch11.adb (P_Raise_Expression): New procedure.
3266 * par-ch4.adb (P_Relation): Handle Raise_Expression.
3267 * par.adb (P_Raise_Expression): New procedure.
3268 * sem.adb: Add handling for N_Raise_Expression.
3269 * sem_ch11.ads, sem_ch11.adb (Analyze_Raise_Expression): New procedure.
3270 * sem_res.adb (Resolve): Add handling for N_Raise_Expression.
3271 * sinfo.ads, sinfo.adb (N_Raise_Expression): New node.
3272 * sprint.adb (Sprint_Node_Actual): Add handling for N_Raise_Expression.
3273 * stand.ads (Any_Type): Document use with N_Raise_Expression.
3275 2013-04-11 Vincent Celier <celier@adacore.com>
3277 * gnat_ugn.texi: Remove section "The Development Environments"
3278 now that all predefined attributes are documented, including
3279 those in package IDE.
3281 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3283 * sem_ch6.adb: Preserve parent link in copy of expression.
3285 2013-04-11 Vincent Celier <celier@adacore.com>
3287 * projects.texi: Complete rewrite of the subsection Attributes
3288 in section "Project file Reference".
3290 2013-04-11 Robert Dewar <dewar@adacore.com>
3292 * exp_ch4.adb: Minor reformatting.
3294 2013-04-11 Robert Dewar <dewar@adacore.com>
3296 * exp_ch4.adb (Expand_Concatenate): Remove wrapping in
3297 expression-with-actions node. No longer needed given fix to
3298 sem_prag and caused loss of some useful warnings.
3299 * sem.ads: Minor reformatting.
3300 * sem_prag.adb (Check_Disabled): Removed, to be replaced by not
3301 Check_Enabled. These two routines were curiously incompatible
3303 (Analyze_Pragma, case Check): Make sure we do
3304 not expand the string argument if the check is disabled. Avoid
3305 use of Check_Disabled, which resulted in missing analysis in
3307 * sem_prag.ads (Check_Disabled): Removed, to be replaced by not
3308 Check_Enabled. These two routines were curiously incompatible
3311 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3313 * exp_ch4.adb (Process_Transient_Object): Use
3314 an unchecked conversion when associating a transient controlled
3315 object with its "hook".
3317 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3319 * sem_prag.adb (Analyze_Pragma, case
3320 Preelaborable_Initialization): The pragma is legal if it comes
3321 from an aspect on the private view of the type, even though its
3322 analysis point takes place later at the freeze point.
3324 2013-04-11 Robert Dewar <dewar@adacore.com>
3326 * sem_ch6.adb: Minor reformatting.
3328 2013-04-11 Yannick Moy <moy@adacore.com>
3330 * ali-util.adb (Read_Withed_ALIs): Do not consider it an error to
3331 read ALI files with No_Object=True in Alfa mode.
3332 * gnat1drv.adb: Set appropriately Back_End_Mode in Alfa mode, whether
3333 this is during frame condition generation of translation to Why.
3335 2013-04-11 Robert Dewar <dewar@adacore.com>
3337 * exp_ch4.adb: Minor code reorganization
3338 * types.ads: Minor reformatting.
3340 2013-04-11 Johannes Kanig <kanig@adacore.com>
3342 * opt.ads New global boolean Frame_Condition_Mode to avoid
3343 referring to command line switch.
3344 * gnat1drv.adb (Gnat1drv) set frame condition mode when -gnatd.G
3345 is present, and disable Code generation in that case. Disable
3346 ALI file generation when switch is *not* present.
3348 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3350 * sem_ch6.adb (Analyze_Expression_Function): Perform the
3351 pre-analysis on a copy of the expression, to prevent downstream
3352 visbility issues involving operators and instantiations.
3354 2013-04-11 Johannes Kanig <kanig@adacore.com>
3356 * debug.adb: Reservation and documentation for -gnatd.G switch.
3357 * gnat1drv.adb (Adjust_Global_Switches) Take into account -gnatd.G
3358 switch, and set ALI file generation accordingly.
3360 2013-04-11 Robert Dewar <dewar@adacore.com>
3362 * exp_ch4.adb, exp_dist.adb: Minor reformatting.
3363 * gnat_rm.texi, gnat_ugn.texi: -020 Add documentation clarifying that
3364 check names introduced with pragma Check_Name are suppressed by -gnatp.
3366 2013-04-11 Vincent Celier <celier@adacore.com>
3368 * gnat_ugn.texi, projects.texi: Move chapter "Tools Supporting Project
3369 Files" from projects.texi to gnat_ugn.texi.
3371 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3373 * gcc-interface/Make-lang.in: Update dependencies.
3375 2013-04-11 Yannick Moy <moy@adacore.com>
3377 * gnat1drv.adb (Adjust_Global_Switches): Allow missing body in Alfa
3380 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3382 * exp_ch4.adb (Expand_N_Allocator): Detect the
3383 allocation of an anonymous controlled object where the type of
3384 the context is named. Use the pool and finalization master of
3385 the named access type to allocate the object.
3387 2013-04-11 Vincent Celier <celier@adacore.com>
3389 * gnat_ugn.texi: Remove most mentions of gprbuild.
3390 * projects.texi: Remove all mentions of asociative array
3393 2013-04-11 Robert Dewar <dewar@adacore.com>
3395 * sem_prag.adb, sem_attr.adb, gnat1drv.adb, prj-makr.adb,
3396 opt.ads, sem_ch13.adb: Minor reformatting.
3397 * debug.adb: Minor comment fix (remove junk .I doc).
3399 2013-04-11 Thomas Quinot <quinot@adacore.com>
3401 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Rtsfind.PCS_Version, case
3402 PolyORB): Bump to 6.
3403 (Exp_Dist.PolyORB_Support): Replace TC_Build with
3406 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3408 * debug.adb, sem_prag.adb, par-ch2.adb, sem_attr.adb, gnat1drv.adb,
3409 exp_disp.adb, opt.ads, sem_ch13.adb (Relaxed_RM_Semantics): New flag.
3410 Enable this flag in CodePeer mode, and also via -gnatd.M.
3411 Replace some uses of CodePeer_Mode by Relaxed_RM_Semantics.
3413 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3415 * sem_ch8.adb (Check_Constrained_Object): If a subtype is created
3416 from the renamed object in an object renaming declaration with
3417 an unconstrained nominal subtype, freeze the created subtype at
3418 once, to prevent order of elaboration issues in the backend.
3420 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3422 * exp_aggr.adb (Aggr_Size_OK): Refine setting of Max_Aggr_Size
3423 in particular in CodePeer mode.
3425 2013-04-11 Vincent Celier <celier@adacore.com>
3427 * gnat_ugn.texi: Add documentation for backup copies of project
3430 2013-04-11 Tristan Gingold <gingold@adacore.com>
3432 * gnat_rm.texi: Add Detect_BLocking in the ravenscar profile
3435 2013-04-11 Vincent Celier <celier@adacore.com>
3437 * gnatname.adb (Scan_Args): Recognize new switch --no-backup
3438 (Usage): Add line for --no-backup.
3439 * opt.ads (No_Backup): New Boolean variable, initialized to False.
3440 (Ada_Version_Default): Switch to Ada 2012 by default.
3441 * prj-makr.adb (Initialize): Create a backup for an existing
3442 project file if gnatname is not invoked with --no-backup.
3444 2013-04-11 Thomas Quinot <quinot@adacore.com>
3446 * exp_ch4.adb: Minor code improvement: replace various calls to
3447 Make_If_Statement in expansion with Make_Implicit_If_Statement.
3449 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3451 * ali.adb: Fix minor typo.
3453 2013-04-11 Thomas Quinot <quinot@adacore.com>
3455 * exp_ch4.adb (Find_Enclosing_Context): Add missing case of
3456 N_Procedure_Call_Statement.
3458 2013-04-11 Robert Dewar <dewar@adacore.com>
3460 * debug.adb: Minor comment fix.
3462 2013-04-11 Johannes Kanig <kanig@adacore.com>
3464 * debug.adb: Remove comment for -gnatd.G.
3466 2013-04-11 Thomas Quinot <quinot@adacore.com>
3468 * exp_ch4.adb (Expand_Record_Equality.Suitable_Element):
3469 Remove recursive routine, replace with...
3470 (Expand_Record_Equality.Element_To_Compare): New subroutine,
3471 implement iterative search for next element to compare.
3472 Add explanatory comment in the tagged case.
3474 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3476 * sem_ch5.adb: remove spurious warning from non-empty loop.
3477 * sem_ch8.adb (Enclosing_Instance): Make public to other routines
3478 in the package, in order to suppress redundant semantic checks
3479 on subprogram renamings in nested instantiations.
3481 2013-04-11 Robert Dewar <dewar@adacore.com>
3483 * errout.ads: Minor reformatting.
3484 * sem_eval.adb (Why_Not_Static): Now issues continuation messages
3485 (Why_Not_Static): Test for aggregates behind string literals.
3486 * sem_eval.ads (Why_Not_Static): Now issues continuation messages.
3488 2013-04-11 Robert Dewar <dewar@adacore.com>
3490 * exp_ch4.adb (Expand_Concatenation): Wrap expansion in
3491 Expressions_With_Actions.
3493 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3495 * sem_ch6.adb (Base_Types_Match): For an actual type in an
3496 instance, the base type may itself be a subtype, so find true
3497 base type to determine compatibility.
3499 2013-04-11 Robert Dewar <dewar@adacore.com>
3501 * s-osprim-mingw.adb, sem_ch3.adb, sem_prag.adb, sem_util.adb.
3502 makeutl.adb, sem_ch8.adb: Minor reformatting.
3504 2013-04-11 Vincent Celier <celier@adacore.com>
3506 * gnat_ugn.texi: Minor fixes for VMS.
3507 * ug_words: Minor addition: -gnato? => /OVERFLOW_CHECKS=?.
3509 2013-04-11 Robert Dewar <dewar@adacore.com>
3511 * usage.adb (Usage): Minor edit to -gnatW message
3513 2013-04-11 Robert Dewar <dewar@adacore.com>
3515 * exp_aggr.adb (Expand_N_Aggregate): Add circuit for handling
3516 others for string literal case. Also add big ??? comment about
3517 this new code, which should be redundant, but is not.
3518 * sem_eval.adb (Eval_Concatenation): Handle non-static case
3519 properly (Eval_String_Literal): Handle non-static literal properly
3521 2013-03-20 Tobias Burnus <burnus@net-b.de>
3523 * i-fortra.ads: Update comment, add Ada 2012's optional
3524 Star and Kind data types for enhanced interoperability.
3526 2013-03-16 Eric Botcazou <ebotcazou@adacore.com>
3528 * gnatvsn.ads (Library_Version): Bump to 4.9.
3530 2013-03-08 Cesar Strauss <cestrauss@gmail.com>
3533 * seh_init.c (Raise_From_Signal_Handler): Declare as no-return.
3534 (__gnat_SEH_error_handler): Likewise. Remove final return.
3536 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3538 * gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring
3539 out for an unimplemented attribute.
3541 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3543 * gcc-interface/decl.c (gnat_to_gnu_field): Remove the wrapper around
3544 a misaligned integral type if a size is specified for the field.
3546 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3548 * gcc-interface/trans.c (Raise_Error_to_gnu) <CE_Index_Check_Failed>:
3549 Record the unpadded type of the index type on the RCI stack.
3551 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3553 * gcc-interface/trans.c (emit_range_check): Assert that the range type
3554 is a numerical type and remove useless local variables.
3556 2013-02-25 Eric Botcazou <ebotcazou@adacore.com>
3558 * gcc-interface/ada-tree.h: Back out change accidentally committed.
3560 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3563 * gnat-style.texi (@title): Remove @hfill.
3564 * projects.texi: Avoid line wrapping inside of @pxref or @xref.
3566 2013-02-14 Rainer Emrich <rainer@emrich-ebersheim.de>
3569 * tracebak.c: Cast from pointer via FARPROC.
3571 2013-02-07 Simon Wright <simon@pushface.org>
3574 * init.c (__darwin_major_version): New function for x86-64/Darwin.
3575 (__gnat_adjust_context_for_raise) [Darwin]: Disable the workaround
3576 on Darwin 12 and above.
3578 2013-02-06 Rainer Emrich <rainer@emrich-ebersheim.de>
3581 * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via
3582 SECURITY_DESCRIPTOR *
3583 (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE
3584 (__gnat_portable_spawn): Fix cast to char* const*
3585 (add_handle): Cast from pointer via void **
3586 (add_handle): Cast from pointer via int *
3587 (__gnat_locate_exec_on_path): Cast from pointer via TCHAR *
3588 (__gnat_locate_exec_on_path): Cast from pointer via char *
3589 * initialize.c (append_arg): Cast from pointer via LPWSTR
3590 (__gnat_initialize): Cast from pointer via LPWSTR
3591 * seh_init.c (__gnat_map_SEH): Cast from pointer via FARPROC
3593 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3595 * gcc-interface/Make-lang.in: Enable System.Stack_Checking.Operations
3596 target pairs on VxWorks 5 only.
3598 2013-02-06 Arnaud Charlet <charlet@adacore.com>
3600 * gcc-interface/Make-lang.in: Update dependencies.
3602 2013-02-06 Vincent Celier <celier@adacore.com>
3604 * prj-proc.adb (Process_Aggregated_Projects): Use a new project
3605 node tree for each project tree rooted at an aggregated project.
3607 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3609 * sem_util.adb (Is_Interface_Conversion): New routine.
3610 (Object_Access_Level): Detect an interface conversion
3611 that has been rewritten into a different construct. Use the
3612 original form of the conversion to find the access level of
3615 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3617 * einfo.ads (Has_Pragma_No_Inline): New flag using Flag201.
3618 (Has_Pragma_No_Inline): Declare and mark as inline.
3619 (Set_Has_Pragma_No_Inline): Likewise.
3620 * einfo.adb (Has_Pragma_No_Inline): New function.
3621 (Set_Has_Pragma_No_Inline): New procedure.
3622 (Write_Entity_Flags): Handle Has_Pragma_No_Inline.
3623 * snames.ads-tmpl (Name_No_Inline): New pragma-related name.
3624 (Pragma_Id): Add Pragma_No_Inline value.
3625 * par-prag.adb (Prag): Handle Pragma_Inline.
3626 * sem_prag.adb (Inline_Status): New enumeration type.
3627 (Process_Inline): Change Active parameter
3628 to Inline_Status and add support for suppressed inlining.
3629 (Analyze_Pragma) <Pragma_Inline>: Adjust to above change.
3630 <Pragma_Inline_Always>: Likewise.
3631 <Pragma_No_Inline>: Implement new pragma No_Inline.
3632 (Sig_Flags): Add Pragma_No_Inline.
3633 * gnat_rm.texi (Implementation Defined Pragmas): Add No_Inline.
3634 * gnat_ugn.texi (Switches for gcc): Mention Pragma No_Inline.
3636 2013-02-06 Pascal Obry <obry@adacore.com>
3638 * s-osprim-mingw.adb (Clock): Make sure we copy all data locally
3639 to avoid interleaved modifications that could happen from another
3640 task calling Get_Base_Data.
3641 (Get_Base_Data): Make it a critical section. Avoid updating if another
3642 task has already done it.
3644 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3646 * sem_prag.adb: Minor reformatting.
3648 2013-02-06 Pascal Obry <obry@adacore.com>
3650 * s-tasloc.ads: Set System.Task_Lock to preelaborate.
3652 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3654 * snames.ads-tmpl (Name_Loop_Optimize, Name_No_Unroll,
3655 Name_Unroll, Name_No_Vector, Name_Vector): New pragma-related
3657 (Pragma_Id): Add Pragma_Loop_Optimize value.
3658 * par-prag.adb (Prag): Handle Pragma_Loop_Optimize.
3659 * sem_prag.adb (Check_Loop_Invariant_Variant_Placement): Rename to...
3660 (Check_Loop_Pragma_Placement): ...this.
3662 <Pragma_Loop_Invariant>: Adjust to above renaming.
3663 <Loop_Variant>: Likewise.
3664 <Pragma_Loop_Optimize>: Implement new pragma Loop_Optimize.
3665 (Sig_Flags): Add Pragma_Loop_Optimize.
3666 * gnat_rm.texi (Implementation Defined Pragmas): Add Loop_Optimize.
3667 * gnat_ugn.texi (Vectorization of loops): Mention Loop_Optimize.
3669 2013-02-06 Robert Dewar <dewar@adacore.com>
3671 * osint.ads: Minor fix of typo.
3673 2013-02-06 Sergey Rybin <rybin@adacore.com frybin>
3675 * gnat_ugn.texi: gnatmetric: update the documentation of
3676 complexity metrics for Ada 2012.
3678 2013-02-06 Javier Miranda <miranda@adacore.com>
3680 * exp_disp.adb (Make_Secondary_DT): Code cleanup:
3681 remove useless initialization.
3683 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3685 * sem_ch3.adb (Build_Discriminant_Constraints): Do not
3686 generate overflow checks on a discriminant expression if the
3687 discriminant constraint is applied to a private type that has
3688 a full view, because the check will be applied when the full
3689 view is elaborated. Removing the redundant check is not just
3690 an optimization, but it prevents spurious assembler errors,
3691 because of the way the backend generates names for expressions
3692 that require overflow checking.
3694 2013-02-06 Pascal Obry <obry@adacore.com>
3696 * s-osprim-mingw.adb: Removes workaround for an old GNU/Linker
3697 limitation on Windows.
3707 (Clock): Use variable corresponding to access.
3708 (Get_Base_Time): Likewise.
3709 (Monotonic_Clock): Likewise.
3711 2013-02-06 Vincent Celier <celier@adacore.com>
3713 * make.adb (Gnatmake): When gnatmake is called with a project
3714 file, do not invoke gnatbind with -I-.
3715 * makeutl.adb (Create_Binder_Mapping_File): Rewrite function. Get
3716 the infos from all the sources.
3718 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3720 * snames.ads-tmpl: Add Name_Overriding_Renamings and pragma
3721 Overriding_Renamings.
3722 * par-prag.adb: Recognize pragma Overriding_Renamings.
3723 * opt.ads (Overriding_Renamings): flag to control compatibility
3724 mode with Rational compiler, replaces Rational_Profile flag.
3725 * sem_ch8.adb (Analyze_Subprogram_Renaming): When
3726 Overriding_Renamings is enabled, accept renaming declarations
3727 where the new subprogram renames and overrides a locally inherited
3728 operation. Improve error message for some illegal renamings.
3729 * sem_prag.adb (Analyze_Pragma): Add case for Overriding_Renamings.
3730 (Set_Rational_Profile): The Rational_Profile enables
3731 Overriding_Renamings, Implicit_Packing, and Use_Vads_Size.
3733 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3735 * sem_util.adb: Set parent of copied aggregate component, to
3736 prevent infinite loop.
3738 2013-02-06 Robert Dewar <dewar@adacore.com>
3740 * sem_ch3.adb, sem_ch10.adb: Minor reformatting.
3741 * exp_disp.adb: Minor comment update.
3742 * comperr.ads, osint.ads, rtsfind.adb, sem_prag.adb: Minor addition of
3745 2013-02-06 Thomas Quinot <quinot@adacore.com>
3747 * targparm.ads, sem_ch13.adb (Support_Nondefault_SSO): New target
3748 parameter, defaulted to False for now, indicates targets where
3749 non-default scalar storage order may be specified.
3751 2013-02-06 Thomas Quinot <quinot@adacore.com>
3753 * sprint.adb (Write_Itype): Treat E_Record_Subtype_With_Private
3754 same as E_Record_Subtype. Display E_Class_Wide_Subtype as
3757 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3759 * sem_ch3.adb (Complete_Private_Subtype): Inherit the
3760 Has_Unknown_Discriminants from the full view of the base type.
3762 2013-02-06 Tristan Gingold <gingold@adacore.com>
3764 * raise-gcc.c: Remove useless includes (sys/stat.h, adaint.h)
3765 Enclosing debugging functions within #ifndef inhibit_libc to
3766 support builds without full C headers.
3768 2013-02-06 Thomas Quinot <quinot@adacore.com>
3770 * gnat_rm.texi: Add a minimal example of Scalar_Storage_Order.
3772 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3774 * sem_ch10.adb (Install_Limited_Withed_Unit): Add a missing
3775 check to detect a parent-child relationship between two units in
3776 order to correctly bypass the installation of a limited view. In
3777 other words, the comment on the intended usage of the check was
3778 correct, but the code itself did not reflect the behavior.
3780 2013-02-06 Javier Miranda <miranda@adacore.com>
3782 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate the
3783 runtime check on assignment to tagged types if compiling with checks
3786 2013-02-06 Robert Dewar <dewar@adacore.com>
3788 * exp_util.adb, checks.adb, sem_ch12.adb, sem_res.adb, prj-conf.adb,
3789 s-os_lib.adb: Minor reformatting
3791 2013-02-06 Vincent Celier <celier@adacore.com>
3793 * ug_words: Add -gnateY = /IGNORE_STYLE_CHECKS_PRAGMAS.
3795 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3797 * snames.ads-tmpl: Add Name_Rational and pragma Rational.
3798 * par-prag.adb: Recognize pragma Rational.
3799 * opt.ads (Rational_Profile): flag to control compatibility mode
3800 with Rational compiler.
3801 * sem_ch8.adb (Analyze_Subprogram_Renaming): When Rational profile
3802 is enable, accept renaming declarations where the new subprogram
3803 and the renamed entity have the same name.
3804 * sem_prag.adb (analyze_pragma): Add pragma Rational, and recognize
3805 Rational as a profile.
3807 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3809 * exp_ch5.adb (Expand_Loop_Entry_Attributes): When
3810 dealing with a for loop that iterates over a subtype indication
3811 with a range, use the low and high bounds of the subtype.
3813 2013-02-06 Nicolas Roche <roche@adacore.com>
3815 * s-os_lib.adb (Normalize_Arguments): Arguments containing tabs should
3818 2013-02-06 Vincent Celier <celier@adacore.com>
3820 * prj-conf.adb (Process_Project_And_Apply_Config): New variable
3821 Conf_Project. New recursive procedure Check_Project to find a non
3822 aggregate project and put its Project_Id in Conf_Project. Fails if
3823 no such project can be found.
3824 (Get_Or_Create_Configuration_File): New parameter Conf_Project.
3825 (Do_Autoconf): Use project directory of project Conf_Project to store
3826 the generated configuration project file.
3827 * prj-conf.ads (Get_Or_Create_Configuration_File): New parameter
3830 2013-02-06 Javier Miranda <miranda@adacore.com>
3832 * sem_res.adb (Resolve_Actuals): Generate a read
3833 reference for out-mode parameters in the cases specified by
3836 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3838 * sem_attr.adb (Resolve_Attribute): Do not resolve the prefix of
3839 Loop_Entry, instead wait until the attribute has been expanded. The
3840 delay ensures that any generated checks or temporaries are inserted
3841 before the relocated prefix.
3843 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3845 * sem_ch12.adb: Code clean up.
3847 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3849 * checks.adb (Apply_Discriminant_Check): Look for discriminant
3850 constraint in full view of private type when needed.
3851 * sem_ch12.adb (Validate_Array_Type_Instance): Specialize
3852 previous patch to components types that are private and without
3855 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3857 * exp_ch4.adb (Find_Enclosing_Context): Recognize
3858 a simple return statement as one of the cases that require special
3859 processing with respect to temporary controlled function results.
3860 (Process_Transient_Object): Do attempt to finalize a temporary
3861 controlled function result when the associated context is
3862 a simple return statement. Instead, leave this task to the
3863 general finalization mechanism.
3865 2013-02-06 Thomas Quinot <quinot@adacore.com>
3867 * einfo.ads: Minor reformatting.
3868 (Status_Flag_Or_Transient_Decl): Add ??? comment.
3870 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3872 * exp_ch4.adb (Expand_N_Expression_With_Actions): Rewritten. This
3873 routine should be able to properly detect controlled transient
3874 objects in its actions and generate the appropriate finalization
3876 * exp_ch6.adb (Enclosing_Context): Removed.
3877 (Expand_Ctrl_Function_Call): Remove local subprogram and
3878 constant. Use routine Within_Case_Or_If_Expression to determine
3879 whether the lifetime of the function result must be extended to
3880 match that of the context.
3881 * exp_util.ads, exp_util.adb (Within_Case_Or_If_Expression): New
3884 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3886 * sem_ch12.adb (Validate_Array_Type_Instance): Extend check
3887 for subtype matching of component type of formal array type,
3888 to avoid spurious error when component type is a separate actual
3889 in the instance, and there may be a discrepancy between private
3890 and full view of component type.
3892 2013-02-06 Robert Dewar <dewar@adacore.com>
3894 * s-dim.ads, clean.adb: Minor reformatting.
3896 2013-02-06 Javier Miranda <miranda@adacore.com>
3898 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Undo previous patch.
3899 (Can_Split_Unconstrained_Function): Only split the inlined function if
3900 the compiler generates the code of its body.
3902 2013-02-06 Robert Dewar <dewar@adacore.com>
3904 * exp_prag.adb, sem_ch3.adb, exp_attr.adb, sem_prag.adb, sem_ch6.adb,
3905 exp_intr.adb, exp_dist.adb, sem_ch13.adb: Internal clean up for
3908 2013-02-06 Robert Dewar <dewar@adacore.com>
3910 * gnat_rm.texi: Minor text updates for pragma Warning.
3912 2013-02-06 Geert Bosch <bosch@adacore.com>
3914 * s-multip.adb (Number_Of_CPUs): Short-circuit in case of
3917 2013-02-06 Vincent Celier <celier@adacore.com>
3919 * clean.adb (Delete): On VMS use host notation to delete all files.
3921 2013-02-06 Robert Dewar <dewar@adacore.com>
3923 * sem_prag.adb, sem_ch6.adb, prj-conf.adb, erroutc.adb: Minor
3926 2013-02-06 Gary Dismukes <dismukes@adacore.com>
3928 * sem_ch6.adb (Check_For_Primitive_Subprogram): Test for
3929 the special case of a user-defined equality that overrides
3930 the predefined equality of a nonderived type declared in a
3932 * sem_util.adb (Collect_Primitive_Operations): Add test for
3933 Is_Primitive when looping over the subprograms following a type,
3934 to catch the case of primitives such as a user-defined equality,
3935 which otherwise won't be found when the type is not a derived
3936 type and is declared in a declarative part.
3938 2013-02-06 Vincent Celier <celier@adacore.com>
3940 * prj-conf.adb (Check_Target): Always return True when Target
3941 is empty (Get_Or_Create_Configuration_File.Get_Project_Target):
3942 New procedure to get the value of attribute Target in the main
3944 (Get_Or_Create_Configuration_File.Do_Autoconf): No
3945 need to get the value of attribute Target in the main project.
3946 (Get_Or_Create_Configuration_File): Call Get_Project_Target and
3947 use the target fom this call.
3949 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3951 * erroutc.adb (Validate_Specific_Warning): Do not issue the
3952 warning about an ineffective Pragma Warnings for -Wxxx warnings.
3953 * sem_prag.adb (Analyze_Pragma) <Warnings>: Accept -Wxxx warnings.
3954 * gnat_rm.texi (Pragma Warnings): Document coordination with
3955 warnings of the GCC back-end.
3957 2013-02-06 Javier Miranda <miranda@adacore.com>
3959 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build the body
3960 of an inlined function if we do not generate code for the function.
3962 2013-02-06 Pascal Obry <obry@adacore.com>
3964 * s-os_lib.adb (Locate_Exec_On_Path): Call Normalize_Pathname
3965 with Resolve_Links set to False.
3967 2013-02-03 Eric Botcazou <ebotcazou@adacore.com>
3969 * gcc-interface/decl.c: Include diagnostic-core.h.
3970 (gnat_to_gnu_entity) <E_Array_Type>: Sorry if Reverse_Storage_Order
3971 is set on the entity.
3972 <E_Record_Type>: Likewise.
3973 * gcc-interface/Make-lang.in (ada/decl.o): Add $(DIAGNOSTIC_CORE_H).
3975 2013-01-29 Ben Brosgol <brosgol@adacore.com>
3977 * gnat_rm.texi: Fixed typos. Minor edits.
3979 2013-01-29 Bob Duff <duff@adacore.com>
3981 * a-convec.adb: Minor reformatting.
3983 2013-01-29 Pascal Obry <obry@adacore.com>
3985 * tempdir.adb, tempdir.ads (Use_Temp_Dir): Set wether to use the temp
3988 2013-01-29 Ed Schonberg <schonberg@adacore.com>
3990 * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Preserve loop
3991 identifier only if it comes from source.
3992 (Expand_N_Loop_Statement): If the domain of iteration is an
3993 enumeration type with a representation clause, remove from
3994 visibility the loop identifier before rewriting the loop as a
3995 block with a declaration for said identifier.
3996 * sem_util.adb (Remove_Homonym): Handle properly the default case.
3998 2013-01-29 Vincent Celier <celier@adacore.com>
4000 * prj-proc.adb: Minor comment spelling fix.
4002 2013-01-29 Pascal Obry <obry@adacore.com>
4004 * prj-proc.adb (Process_Expression_Variable_Decl): Prepend
4005 Project_Path to current environment.
4007 2013-01-29 Thomas Quinot <quinot@adacore.com>
4009 * sprint.adb (Sprint_Node_Actual): Output freeze nodes for
4010 itypes even if Dump_Freeze_Null is not set.
4012 2013-01-29 Robert Dewar <dewar@adacore.com>
4014 * sem_util.adb: Minor reformatting.
4015 * s-rident.ads: Minor comment fixes.
4017 2013-01-29 Pascal Obry <obry@adacore.com>
4019 * prj-env.ads, prj-env.adb (Add_Directories): Add parameter to
4020 control if the path is prepended or appended.
4022 2013-01-29 Ed Schonberg <schonberg@adacore.com>
4024 * sem_ch6.adb (Analyze_Expression_Function): An expression
4025 function declaration is not a subprogram declaration, and thus
4026 cannot appear in a protected definition.
4028 2013-01-29 Hristian Kirtchev <kirtchev@adacore.com>
4030 * exp_util.adb (Insert_Actions): When new
4031 actions come from the expression of the expression with actions,
4032 then they must be added to the list of existing actions.
4034 2013-01-29 Eric Botcazou <ebotcazou@adacore.com>
4036 * sem_ch3.adb (Analyze_Subtype_Declaration) <Private_Kind>: For
4037 the subtype of a constrained private type with discriminants
4038 that has got a full view, show that the completion is a clone
4041 2013-01-29 Javier Miranda <miranda@adacore.com>
4043 * errout.ads, errout.adb (Get_Ignore_Errors): New subprogram.
4044 * opt.ads (Warn_On_Overlap): Update documentation.
4045 * sem_aggr.adb (Resolve_Aggregate, Resolve_Extension_Aggregate):
4046 Check function writable actuals.
4047 * sem_ch3.adb (Build_Derived_Record_Type,
4048 Record_Type_Declaration): Check function writable actuals.
4049 * sem_ch4.adb (Analyze_Range): Check function writable actuals.
4050 * sem_ch5.adb (Analyze_Assignment): Remove code of the initial
4051 implementation of AI05-0144.
4052 * sem_ch6.adb (Analyze_Function_Return,
4053 (Analyze_Procedure_Call.Analyze_Call_And_Resolve): Remove code
4054 of the initial implementation of AI05-0144.
4055 * sem_res.adb (Resolve): Remove code of the initial implementation.
4056 (Resolve_Actuals): Call Check_Function_Writable_Actuals and remove call
4057 of the initial implementation.
4058 (Resolve_Arithmetic_Op, Resolve_Logical_Op,
4059 Resolve_Membership_Op): Check function writable actuals.
4060 * sem_util.ad[sb] (Actuals_In_Call): Removed
4061 (Check_Order_Dependence): Removed (Save_Actual): Removed
4062 (Check_Function_Writable_Actuals): New subprogram.
4063 * usage.adb (Usage): Update documentation.
4064 * warnsw.adb (Set_Warning_Switch): Enable warn_on_overlap when
4065 setting all warnings.
4067 2013-01-29 Robert Dewar <dewar@adacore.com>
4069 * a-calend-vms.adb: Minor comment fix.
4071 2013-01-29 Robert Dewar <dewar@adacore.com>
4073 * mlib-utl.adb, gnatlink.adb: Avoid reference to ASCII.Back_Slash
4074 because of casing issues.
4075 * sem_util.ads: Minor comment fix.
4076 * style.adb (Check_Identifier): Set proper casing for entities
4078 * styleg.adb: Minor comment improvement.
4079 * stylesw.ads (Style_Check_Standard): Fix bad comments.
4081 2013-01-29 Hristian Kirtchev <kirtchev@adacore.com>
4083 * sem_prag.adb: Add the grammar for pragmas Abstract_State and Global.
4084 (Analyze_Pragma): Push the scope of the related subprogram and install
4085 its formals once before starting the analysis of the [moded] global
4088 2013-01-29 Pascal Obry <obry@adacore.com>
4090 * prj-proc.adb (Process_Expression_Variable_Decl): Always handle
4091 relative paths in Project_Path as relative to the aggregate
4092 project location. Note that this was what was documented.
4094 2013-01-29 Vincent Celier <celier@adacore.com>
4096 * gnatcmd.adb: For "gnat stub -P ...", do not check the naming
4097 scheme for Ada, when Ada is not a language for the project.
4099 2013-01-29 Ed Schonberg <schonberg@adacore.com>
4101 * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
4102 Is_Generic_Actual_Type flag in a nested instance.
4103 * sem_ch12.adb (Restore_Private_Views): Preserve
4104 Is_Generic_Actual_Type flag if actual is a Generic_Actual_Type
4105 of an enclosing instance.
4106 * sem_util.adb (Corresponding_Generic_Type): Handle generic actual
4107 which is an actual of an enclosing instance.
4108 * sem_type.adb (Real_Actual): If a generic_actual_type is the
4109 formal of an enclosing generic and thus renames the corresponding
4110 actual, use the actual of the enclosing instance to resolve
4111 spurious ambiguities in instantiations when two formals are
4112 instantiated with the same actual.
4114 2013-01-29 Robert Dewar <dewar@adacore.com>
4116 * gnat_rm.texi: Document all Ada 2005 and Ada 2012 pragmas as
4117 being available as implementation-defined pragmas in earlier
4120 2013-01-29 Vincent Celier <celier@adacore.com>
4122 * clean.adb (Delete): On VMS, delete all versions of the file.
4124 2013-01-29 Robert Dewar <dewar@adacore.com>
4126 * par-ch6.adb (No_Constraint_Maybe_Expr_Func): New procedure.
4127 * par-util.adb (No_Constraint): Undo special handling, moved
4130 2013-01-29 Robert Dewar <dewar@adacore.com>
4132 * aspects.ads: Aspect Warnings is implementation defined Add
4133 some other missing entries to impl-defined list Mark Warnings
4134 as GNAT pragma in main list.
4135 * sem_ch8.adb: Process aspects for all cases of renaming
4138 2013-01-29 Robert Dewar <dewar@adacore.com>
4140 * sem_ch6.adb (Analyze_Function_Call): Set In_Assertion flag.
4141 * sem_elab.adb (Check_Internal_Call_Continue): Do not issue
4142 warnings about possible elaboration error if call is within
4144 * sinfo.ads, sinfo.adb (In_Assertion): New flag in N_Function_Call node.
4146 2013-01-29 Robert Dewar <dewar@adacore.com>
4148 * a-calend-vms.adb, g-eacodu-vms.adb, g-trasym-vms-alpha.adb,
4149 * s-auxdec-vms-ia64.adb, s-mastop-vms.adb, s-osprim-vms.adb,
4150 s-tasdeb-vms.adb: Replace pragma Interface by pragma Import.
4152 2013-01-29 Robert Dewar <dewar@adacore.com>
4154 * opt.ads (Ignore_Style_Checks_Pragmas): New flag.
4155 * par-prag.adb (Par, case Style_Checks): Recognize
4156 Ignore_Style_Checks_Pragmas.
4157 * sem_prag.adb (Analyze_Pragma, case Style_Checks): Recognize
4158 Ignore_Style_Checks_Pragmas.
4159 * switch-c.adb: Recognize -gnateY switch.
4160 * usage.adb: Add documentation for "-gnateY".
4161 * vms_data.ads: Add IGNORE_STYLE_CHECKS_PRAGMAS (-gnateY).
4163 2013-01-29 Vincent Celier <celier@adacore.com>
4165 * clean.adb (Clean_Executables): Add Sid component when calling
4167 * make.adb: When inserting in the Queue, add the Source_Id
4168 (Sid) when it is known (Start_Compile_If_Possible): When the
4169 Source_Id is known (Sid), get the path name of the ALI file
4170 (Full_Lib_File) from it, to avoid finding old ALI files in other
4172 * makeutl.ads (Source_Info): New Source_Id component Sid in
4173 Format_Gnatmake variant.
4175 2013-01-29 Robert Dewar <dewar@adacore.com>
4177 * gnat_ugn.texi: Document -gnateY.
4179 2013-01-29 Doug Rupp <rupp@adacore.com>
4181 * s-osinte-vms.ads, s-taprop-vms.adb, system-vms_64.ads,
4182 system-vms-ia64.ads: Replace pragma Interface by pragma Import.
4184 2013-01-29 Robert Dewar <dewar@adacore.com>
4186 * atree.ads, atree.adb (Node30): New function.
4187 (Set_Node30): New procedure.
4188 (Num_Extension_Nodes): Change to 5 (activate new fields/flags).
4189 * atree.h: Add macros for Field30 and Node30.
4190 * einfo.ads, einfo.adb: Move some fields to avoid duplexing.
4191 * treepr.adb (Print_Entity_Information): Print fields 30-35.
4193 2013-01-29 Robert Dewar <dewar@adacore.com>
4195 * sem_prag.adb (Analyze_Pragma, case Interface): Consider to
4196 be a violation of No_Obsolescent_Features even in Ada 95. Also
4197 generates a warning in -gnatwj mode.
4198 (Analyze_Pragma, case Interface_Name): Generates a warning in -gnatwj
4200 * gnat_ugn.texi: Additional documentation on -gnatwj and pragma
4203 2013-01-29 Vincent Celier <celier@adacore.com>
4205 * snames.ads-tmpl: Add new standard name Trailing_Switches.
4207 2013-01-29 Ed Schonberg <schonberg@adacore.com>
4209 * sem_disp.adb (Check_Controlling_Type): If a designated type T
4210 of an anonymous access type is a limited view of a tagged type,
4211 it can be a controlling type only if the subprogram is in the
4214 2013-01-29 Vincent Celier <celier@adacore.com>
4216 * gnatcmd.adb: Use the project where the config pragmas file is
4217 declared to get its path.
4219 2013-01-29 Vincent Celier <celier@adacore.com>
4221 * prj-attr.adb: New attribute Linker'Trailing_Switches.
4223 2013-01-22 Eric Botcazou <ebotcazou@adacore.com>
4225 * gcc-interface/trans.c (gnat_to_gnu) <N_Expression_With_Actions>: Do
4226 not translate the Etype of the node before translating the Actions.
4228 2013-01-22 Eric Botcazou <ebotcazou@adacore.com>
4230 * gcc-interface/trans.c (Pragma_to_gnu) <Name_Space>: Use optimize_size
4231 instead of optimize and adjust warning message.
4232 (Compilation_Unit_to_gnu): Process pragmas preceding the unit.
4234 2013-01-22 Tristan Gingold <gingold@adacore.com>
4236 * gcc-interface/gigi.h (ADT_unhandled_except_decl,
4237 ADT_unhandled_others_decl): New.
4238 (unhandled_others_decl, unhandled_except_decl): Define.
4239 * gcc-interface/trans.c: Include common/common-target.h.
4240 (gigi): Initialize them.
4241 (Subprogram_Body_to_gnu): On SEH targets, wrap the body of the main
4242 function in a try/catch clause.
4244 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4246 * gcc-interface/Make-lang.in (COMMON_ADAFLAGS): Remove -gnata.
4247 (CHECKING_ADAFLAGS): New.
4248 (ALL_ADAFLAGS): Include CHECKING_ADAFLAGS.
4250 2013-01-10 Eric Botcazou <ebotcazou@adacore.com>
4252 * gcc-interface/config-lang.in (boot_language_boot_flags): Delete.
4253 * gcc-interface/Make-lang.in (BOOT_ADAFLAGS): Likewise.
4255 2013-01-07 Eric Botcazou <ebotcazou@adacore.com>
4257 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Adjust
4258 comment about type extension with discriminants.
4259 <E_Record_Subtype>: Remove useless test and reorder conditions.
4260 (elaborate_entity) <E_Record_Subtype>: Likewise.
4262 2013-01-07 Richard Biener <rguenther@suse.de>
4265 * gcc-interface/Make-lang.in (ada.install-common): Always apply
4266 program_transform_name.
4268 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4270 * gnatvsn.ads (Current_Year): Bump to 2013.
4272 2013-01-06 Olivier Hainque <hainque@adacore.com>
4274 * gcc-interface/decl.c (gnat_to_gnu_field): Emit a specialized
4275 diagnostic for component size mismatch wrt volatile requirements.
4276 Add a gcc_unreachable() at the end of the checks for size. Split
4277 the check on volatile for positions into one check on atomic and
4278 a subsequent one on volatile.
4280 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4282 * gcc-interface/decl.c (elaborate_entity) <E_Record_Type>: Delete.
4284 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4286 * gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Do not
4287 pack the field of the record type made for a misaligned type.
4289 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4291 * gcc-interface/decl.c (annotate_value) <COMPONENT_REF>: Be prepared
4292 for discriminants inherited from parent record types.
4294 2013-01-04 Robert Dewar <dewar@adacore.com>
4296 * warnsw.adb: Minor fixes to -gnatw.d handling.
4298 2013-01-04 Robert Dewar <dewar@adacore.com>
4300 * einfo.adb, atree.adb: Enlarge entities to make 63 more flags, 6 more
4303 2013-01-04 Joel Brobecker <brobecker@adacore.com>
4305 * gnat_ugn.texi: Fix typo.
4307 2013-01-04 Robert Dewar <dewar@adacore.com>
4309 * gnat_rm.texi: Document alignment choice for subtypes.
4311 2013-01-04 Robert Dewar <dewar@adacore.com>
4313 * validsw.ads: Minor fix to comment.
4315 2013-01-04 Doug Rupp <rupp@adacore.com>
4317 * Makefile.rtl (GNATRTL_NONTASKING_OBJS,
4318 GNATRTL_ALTIVEC_OBJS): Factor g-al* objects.
4319 * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Add g-al* sources.
4320 (GNATRTL_ALTIVEC_OBJS): Override to null for VMS.
4321 Rename leon vxworks toolchain as leon-wrs-vxworks.
4322 * gcc-interface/Make-lang.in: Update dependencies
4324 2013-01-04 Pascal Obry <obry@adacore.com>
4326 * prj.ads (For_Each_Source): Add Locally_Removed parameter.
4327 (Source_Iterator): Add Locally_Removed field.
4328 * prj.adb (For_Each_Source): Ignore Locally_Removed files if needed.
4331 2013-01-04 Robert Dewar <dewar@adacore.com>
4333 * exp_attr.adb: Minor reformatting.
4335 2013-01-04 Robert Dewar <dewar@adacore.com>
4337 * checks.adb (Insert_Valid_Check): Fix handling of renamed
4338 packed array element.
4339 * exp_ch4.adb (Expand_Concatenate): Fix some missing parent
4340 fields in generated code.
4341 * exp_util.adb (Side_Effect_Free): Improve detection of cases
4344 2013-01-04 Robert Dewar <dewar@adacore.com>
4346 * sinfo.ads: Clean up order of N_xxx subtypes
4348 2013-01-04 Vincent Celier <celier@adacore.com>
4350 * prj-conf.adb (Check_Target): Allow --autoconf= with no target.
4352 2013-01-04 Robert Dewar <dewar@adacore.com>
4354 * types.ads, prj-conf.adb, par-tchk.adb: Minor reformatting.
4356 2013-01-04 Robert Dewar <dewar@adacore.com>
4358 * par-ch6.adb (P_Subprogram): Better handling of missing IS
4359 after expression function.
4360 * par-util.adb (No_Constraint): Improve handling to avoid bad warnings.
4362 2013-01-04 Robert Dewar <dewar@adacore.com>
4364 * exp_util.ads, exp_util.adb (Insert_Actions): In expression with
4365 actions case, new actions are appended to the sequence rather than
4368 2013-01-04 Robert Dewar <dewar@adacore.com>
4370 * gnat_ugn.texi: Document -gnatw.d/w.D (does no apply in VMS mode).
4371 * usage.adb: Add lines for -gnatw.d/w.D switches.
4372 * warnsw.adb: Minor fixes (some missing cases of setting
4373 Warning_Doc_Switch). Reject -gnatw.d and -gnatw.D in VMS mode.
4375 2013-01-04 Robert Dewar <dewar@adacore.com>
4377 * exp_util.adb (Remove_Side_Effects): Make sure scope suppress
4378 is restored on exit.
4380 2013-01-04 Robert Dewar <dewar@adacore.com>
4382 * usage.adb: Document -gnateF (check overflow for predefined Float).
4384 2013-01-04 Robert Dewar <dewar@adacore.com>
4386 * sem_res.adb (Resolve_Type_Conversion): Remove incorrect
4387 prevention of call to Apply_Type_Conversion_Checks, which resulted
4388 in missing check flags in formal mode.
4390 2013-01-04 Vincent Celier <celier@adacore.com>
4392 * makeutl.ads (Db_Switch_Args): New table used by gprbuild.
4393 * prj-conf.adb (Check_Builder_Switches): Check for switches
4394 --config= (Get_Db_Switches): New procedure to get the --db
4395 switches so that they are used when invoking gprconfig in
4397 (Do_Autoconf): When invoking gprconfig, use the --db switches, if any.
4399 2013-01-04 Pascal Obry <obry@adacore.com>
4401 * prj-nmsc.adb: Minor reformatting.
4403 2013-01-04 Vincent Celier <celier@adacore.com>
4405 * makeutl.ads (Root_Environment): New variable, moved rom
4406 gprbuild (Load_Standard_Base): New Boolean variable, moved
4408 * prj-conf.adb (Check_Builder_Switches): New procedure to check
4409 for switch --RTS in package Builder. If a runtime specified
4410 by --RTS is a relative path name, but not a base name, then
4411 find the path on the Project Search Path.
4412 (Do_Autoconf): Call Check_Builder_Switches.
4413 (Locate_Runtime): New procedure, moved from gprbuild, to get the
4414 absolute paths of runtimes when they are not specified as a base name.
4415 * prj-conf.ads (Locate_Runtime): New procedure, moved from gprbuild.
4417 2013-01-04 Ed Schonberg <schonberg@adacore.com>
4419 * sem_ch3.adb (Build_Private_Derived_Type): Set
4420 Has_Private_Ancestor on type derived from an untagged private
4421 type whose full view has discriminants
4422 * sem_aggr.adb (Resolve_Record_Aggregate): Reject non-extension
4423 aggregate for untagged record type with private ancestor.
4425 2013-01-04 Thomas Quinot <quinot@adacore.com>
4427 * sem_elab.adb, sem_ch3.adb: Minor reformatting.
4429 2013-01-04 Robert Dewar <dewar@adacore.com>
4431 * table.adb: Minor reformatting.
4433 2013-01-04 Ed Schonberg <schonberg@adacore.com>
4435 * sem_ch10.adb (Check_Redundant_Withs): A with_clause that does
4436 not come from source does not generate a warning for redundant
4439 2013-01-04 Hristian Kirtchev <kirtchev@adacore.com>
4441 * aspects.adb, aspects.ads: Add Aspect_Global to all relevant tables.
4442 * par-prag.adb: Add pragma Global to the list of pragmas that
4443 do not need special processing by the parser.
4444 * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect
4445 Global into a pragma without any form of legality checks. The
4446 work is done by Analyze_Pragma. The aspect and pragma are both
4447 marked as needing delayed processing. Insert the corresponding
4448 pragma of aspect Abstract_State in the visible declarations of the
4450 (Check_Aspect_At_Freeze_Point): Aspect Global
4451 does not need processing even though it is marked as delayed.
4452 Alphabetize the list on aspect names.
4453 * sem_prag.adb: Add a value for pragma Global in table Sig_Flags.
4454 (Analyze_Pragma): Add ??? comment about the grammar of pragma
4455 Abstract_State. Move the error location from the pragma to the
4456 state to improve the quality of error placement. Add legality
4457 checks for pragma Global.
4458 * snames.ads-tmpl Add the following specially recognized names
4460 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
4462 * sem_ch3.adb: Fix minor typo.
4464 2013-01-04 Ed Schonberg <schonberg@adacore.com>
4466 * par-ch13.adb (Aspect_Specifications_Present): In Strict mode,
4467 accept an aspect name followed by a comma, indicating a defaulted
4470 2013-01-04 Joel Brobecker <brobecker@adacore.com brobecker>
4472 * gnat_ugn.texi: Document procedure to codesign GDB on Darwin.
4473 Update doc on gnattest --separates switch.
4475 2013-01-04 Thomas Quinot <quinot@adacore.com>
4477 * s-chepoo.ads: Minor reformatting.
4479 2013-01-04 Arnaud Charlet <charlet@adacore.com>
4481 * usage.adb: Remove mention of -gnatN in usage.
4483 2013-01-04 Robert Dewar <dewar@adacore.com>
4485 * exp_prag.adb, gnatcmd.adb, exp_util.adb, table.adb, sem_prag.adb,
4486 freeze.adb, sem_ch4.adb, sem_warn.adb, opt.ads, exp_aggr.adb,
4487 prj-conf.adb, sem_ch13.adb: Minor reformatting.
4489 2013-01-04 Thomas Quinot <quinot@adacore.com>
4491 * sinfo.ads: Minor documentation update.
4493 2013-01-04 Thomas Quinot <quinot@adacore.com>
4495 * sem_ch3.adb, einfo.adb (Analyze_Object_Declaration): Do not set Ekind
4496 before resolving initialization expression.
4498 2013-01-04 Hristian Kirtchev <kirtchev@adacore.com>
4500 * checks.adb (Generate_Index_Checks): Delay the generation of
4501 the check for an indexed component where the prefix mentions
4502 Loop_Entry until the attribute has been properly expanded.
4503 * exp_ch5.adb (Expand_Loop_Entry_Attributes): Perform minor
4504 decoration of the constant that captures the value of Loop_Entry's
4505 prefix at the entry point into a loop. Generate index checks
4506 for an attribute reference that has been transformed into an
4509 2013-01-04 Thomas Quinot <quinot@adacore.com>
4511 * exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb, exp_aggr.adb,
4512 sem_ch13.adb (Exp_Aggr.Collect_Initialization_Statements): Nothing to
4513 do if Obj is already frozen.
4514 (Exp_Util.Find_Init_Call): Rename to...
4515 (Exp_Util.Remove_Init_Call): New subprogram, renamed from
4516 Find_Init_Call. Remove the initialization call from the enclosing
4517 list if found, and if it is from an Initialization_Statements
4518 attribute, reset it.
4519 (Exp_Util.Append_Freeze_Action): Minor code reorganization.
4520 (Exp_Util.Append_Freeze_Actions): Ensure a freeze node has been
4521 allocated (as is already done in Append_Freeze_Action).
4522 (Freeze.Freeze_Entity): For an object with captured
4523 Initialization_Statements and non-delayed freezeing, unwrap the
4524 initialization statements and insert and them directly in the
4526 (Sem_Ch13.Check_Address_Clause): For an object
4527 with Initialization_Statements and an address clause, unwrap the
4528 initialization statements when moving them to the freeze actions.
4530 2013-01-03 Pascal Obry <obry@adacore.com>
4532 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package remote and
4533 corresponding attibutes.
4535 2013-01-03 Thomas Quinot <quinot@adacore.com>
4537 * exp_aggr.adb: Minor comment improvement.
4539 2013-01-03 Hristian Kirtchev <kirtchev@adacore.com>
4541 * aspects.adb, aspects.ads: Add Aspect_Abstract_State to all the
4543 * einfo.ads, einfo.adb: Add Integrity_Level and Refined_State to
4544 the description of fields (Abstract_States): New routine.
4545 (Integrity_Level): New routine.
4546 (Has_Property): New routine.
4547 (Is_Input_State): New routine.
4548 (Is_Null_State): New routine.
4549 (Is_Output_State): New routine.
4550 (Is_Volatile_State): New routine.
4551 (Refined_State): New routine.
4552 (Set_Abstract_States): New routine.
4553 (Set_Integrity_Level): New routine.
4554 (Set_Refined_State): New routine.
4555 (Write_Field8_Name): Add proper output for E_Abstract_State.
4556 (Write_Field9_Name): Add proper output for E_Abstract_State.
4557 (Write_Field25_Name): Add proper output for E_Package.
4558 * lib-xref.ads: Add new letter for an abstract state.
4559 * par-prag.adb: Add pragma Abstract_State to the list of pragma
4560 that do not need special processing by the parser.
4561 * sem_ch13.adb (Analyze_Aspect_Specifications): Convert
4562 aspect Abstract_State into a pragma without any form
4563 of legality checks. The work is done by Analyze_Pragma.
4564 (Check_Aspect_At_Freeze_Point): Aspect Abstract_State does not
4565 require delayed analysis.
4566 * sem_prag.adb: Add a value for pragma Abstract_State in table
4568 (Analyze_Pragma): Add legality checks for pragma
4569 Abstract_State. Analysis of individual states introduces a state
4570 abstraction entity into the visibility chain.
4571 * snames.ads-tmpl: Add new names for abstract state and
4572 integrity. Add new pragma id for abstract state.
4574 2013-01-03 Bob Duff <duff@adacore.com>
4576 * table.adb (Reallocate): Calculate new Length in
4577 Long_Integer to avoid overflow.
4579 2013-01-03 Thomas Quinot <quinot@adacore.com>
4581 * sem_ch3.adb, sinfo.ads, freeze.adb, sem_ch4.adb, exp_aggr.adb
4582 (Sem_Ch3.Analyze_Object_Declaration): Set Ekind early so that
4583 it is set properly when expanding the initialization expression.
4584 (Freeze.Check_Address_Clause): Transfer initialization expression
4585 to an assignment in the freeze actions, so that the object is
4586 initialized only after being elaborated by GIGI.
4587 (Sinfo (comments), Sem_Ch4.Analyze_Expression_With_Actions): Allow
4588 a Null_Statement as the expression in an Expression_With_Actions.
4589 (Exp_Aggr.Collect_Initialization_Statements): New subprogram
4590 shared by expansion of record and array aggregates, used to
4591 capture statements for an aggregate used to initalize an object
4592 into an Expression_With_Actions (which acts as a container for
4594 (Exp_Aggr.Convert_Aggr_In_Obj_Decl): Use the above to
4595 capture initialization statements, instead of the previously
4596 existing loop which left freeze nodes out of the capturing
4597 construct (causing out of order elaboration crashes in GIGI).
4598 (Exp_Aggr.Expand_Array_Aggregate): Use the above to capture
4599 initialization statements (this was previously not done for
4600 arrays). Also do not unconditionally prevent in place expansion
4601 for an object with address clause.
4603 2013-01-03 Thomas Quinot <quinot@adacore.com>
4605 * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Check that
4606 a record extension has the same scalar storage order as the parent type.
4608 2013-01-03 Thomas Quinot <quinot@adacore.com>
4610 * exp_ch4.adb: Add comment.
4612 2013-01-03 Vincent Celier <celier@adacore.com>
4614 * prj.adb: Minor spelling error correction in comment.
4616 2013-01-03 Vincent Celier <celier@adacore.com>
4618 * gnatcmd.adb (GNATCmd): If a single main has been specified
4619 as an absolute path, use its simple file name to find specific
4620 switches, instead of the absolute path.
4622 2013-01-03 Javier Miranda <miranda@adacore.com>
4624 * sem_warn.adb (Warn_On_Overlapping_Actuals): For overlapping
4625 parameters that are record types or array types generate warnings
4626 only compiling under -gnatw.i
4627 * opt.ads (Extensions_Allowed): Restore previous documentation.
4629 2013-01-03 Vincent Celier <celier@adacore.com>
4631 * prj-conf.adb (Do_Autoconf): If Target is specified in the
4632 main project, but not on the command line, use the Target in
4633 the project to invoke gprconfig in auto-configuration.
4634 * makeutl.ads (Default_Config_Name): New constant String.
4636 2013-01-03 Arnaud Charlet <charlet@adacore.com>
4638 * usage.adb: Minor: fix typo in usage.
4640 2013-01-03 Thomas Quinot <quinot@adacore.com>
4642 * sem_ch13.adb (Analyze_Record_Representation_Clause): Reject
4643 an illegal component clause for an inherited component in a
4646 2013-01-03 Emmanuel Briot <briot@adacore.com>
4648 * xref_lib.adb (Parse_Identifier_Info): Fix handling of arrays, which
4649 have information in the ALI file for both the index and the component
4652 2013-01-03 Emmanuel Briot <briot@adacore.com>
4654 * projects.texi: Fix error in documenting the project path
4655 computed for an aggregate project.
4657 2013-01-03 Javier Miranda <miranda@adacore.com>
4659 * sem_warn.adb (Warn_On_Overlapping_Actuals): Adding documentation
4660 plus restricting the functionality of this routine to cover the
4661 cases described in the Ada 2012 reference manual. The previous
4662 extended support is now available under -gnatX.
4663 * s-tassta.adb (Finalize_Global_Tasks): Addition of a dummy
4664 variable to call Timed_Sleep. Required to avoid warning on
4665 overlapping out-mode actuals.
4666 * opt.ads (Extensions_Allowed): Update documentation.
4668 2013-01-03 Tristan Gingold <gingold@adacore.com>
4670 * s-arit64.ads: Use Multiply_With_Ovflo_Check as __gnat_mulv64.
4672 * gcc-interface/Makefile.in: Remove reference to arit64.c.
4674 2013-01-03 Thomas Quinot <quinot@adacore.com>
4676 * checks.adb, checks.ads (Apply_Address_Clause_Check): The check must
4677 be generated at the start of the freeze actions for the entity, not
4678 before (or after) the freeze node.
4680 2013-01-03 Thomas Quinot <quinot@adacore.com>
4682 * exp_aggr.adb (Exp_Aggr.Convert_Aggregate_In_Obj_Decl):
4683 Reorganize code to capture initialization statements in a block,
4684 so that freeze nodes are excluded from the captured block.
4686 2013-01-03 Thomas Quinot <quinot@adacore.com>
4688 * exp_ch11.adb: Minor reformatting.
4690 2013-01-03 Thomas Quinot <quinot@adacore.com>
4692 * exp_util.adb, einfo.adb, einfo.ads, freeze.adb, exp_aggr.adb,
4693 sem_ch13.adb (Einfo.Initialization_Statements,
4694 Einfo.Set_Initialization_Statements): New entity attribute
4696 (Exp_Util.Find_Init_Call): Handle case of an object initialized
4697 by an aggregate converted to a block of assignment statements.
4698 (Freeze.Check_Address_Clause): Do not clear Has_Delayed_Freeze
4699 even for objects that require a constant address, because the
4700 address expression might involve entities that have yet to be
4701 elaborated at the point of the object declaration.
4702 (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): For a type that does
4703 not require a transient scope, capture the assignment statements
4704 in a block so that they can be moved down after elaboration of
4705 an address clause if needed.
4706 (Sem_Ch13.Check_Constant_Address_Clause.Check_Expr_Constants,
4707 case N_Unchecked_Conversion): Do not replace operand subtype with
4708 its base type as this violates a GIGI invariant if the operand
4709 is an identifier (in which case the etype of the identifier
4710 is expected to be equal to that of the denoted entity).
4712 2013-01-03 Javier Miranda <miranda@adacore.com>
4714 * sem_util.ads, sem_util.adb (Denotes_Same_Object): Extend the
4715 functionality of this routine to cover cases described in the Ada 2012
4718 2013-01-03 Ed Schonberg <schonberg@adacore.com>
4720 * sem_elab.adb (Set_Elaboration_Constraint): Handle properly
4721 a 'Access attribute reference when the subprogram is called
4724 2013-01-03 Arnaud Charlet <charlet@adacore.com>
4726 * s-tpobop.adb (PO_Do_Or_Queue): Refine assertion, since a
4727 select statement may be called from a controlled (e.g. Initialize)
4728 operation and have abort always deferred.
4730 2013-01-03 Robert Dewar <dewar@adacore.com>
4732 * sem_ch8.adb, einfo.ads, einfo.adb: Minor code reorganization.
4734 2013-01-03 Javier Miranda <miranda@adacore.com>
4736 * exp_ch3.adb (Make_Controlling_Function_Wrappers): Exclude
4737 internal entities associated with interfaces and add minimum
4738 decoration to the defining entity of the generated wrapper to
4739 allow overriding interface primitives.
4740 * sem_disp.ads (Override_Dispatching_Operation): Addition of a
4741 new formal (Is_Wrapper).
4742 * sem_disp.adb (Override_Dispatching_Operation): When overriding
4743 interface primitives the new formal helps identifying that the
4744 new operation is not fully decorated.
4746 2013-01-03 Thomas Quinot <quinot@adacore.com>
4748 * sem_ch7.adb, sem_ch10.adb, einfo.adb, einfo.ads, sem_ch12.adb,
4749 rtsfind.adb, sem_elab.adb, sem_ch4.adb, sem_ch8.adb
4750 (Einfo.Is_Visible_Child_Unit, Einfo.Set_Is_Visible_Child_Unit):
4751 Rename to Is_Visible_Lib_Unit, Set_Is_Visible_Lib_Unit, and
4752 update spec accordingly (now also applies to root library units).
4753 (Sem_Ch10.Analyze_Subunit.Analyze_Subunit_Context): Toggle above flag
4754 on root library units, not only child units.
4755 (Sem_Ch10.Install[_Limited]_Withed_Unit): Same.
4756 (Sem_Ch10.Remove_Unit_From_Visibility): Reset Is_Visible_Lib_Unit
4757 even for root library units.
4758 (Sem_Ch8.Find_Expanded_Name): A selected component form whose prefix is
4759 Standard is an expanded name for a root library unit.
4761 2013-01-03 Thomas Quinot <quinot@adacore.com>
4763 * exp_ch3.adb: Minor reformatting.
4765 2013-01-03 Olivier Hainque <hainque@adacore.com>
4767 * tracebak.c: Reinstate changes to support ppc-lynx178.
4769 2013-01-03 Ed Schonberg <schonberg@adacore.com>
4771 * atree.ads: Minor reformatting and documentation enhancement.
4773 2013-01-03 Ed Schonberg <schonberg@adacore.com>
4775 * exp_ch3.adb (Expand_N_Object_Declaration): If the object has
4776 a class-wide type and a renaming declaration is created for it,
4777 preserve entity chain, which already contains generated internal
4778 types. This ensures that freezing actions are properly generated
4779 for all objects declared subsequently in the same scope, and
4780 that debugging information is generated for them.
4781 * sem_util.adb, sem_util.ads (we): New debugging routine, to
4782 display entity chain of a given scope.
4784 2013-01-03 Robert Dewar <dewar@adacore.com>
4786 * exp_intr.adb: Minor reformatting.
4788 2013-01-03 Robert Dewar <dewar@adacore.com>
4790 * einfo.adb: Minor reformatting.
4792 2013-01-03 Pascal Obry <obry@adacore.com>
4794 * adaint.c, adaint.h (__gnat_get_module_name): Removed.
4795 (__gnat_is_module_name_supported): Removed.
4796 * s-win32.ads: Add some needed definitions.
4797 * g-trasym.ads: Update comments.
4799 2013-01-03 Robert Dewar <dewar@adacore.com>
4801 * layout.adb (Set_Composite_Alignment): Fix problems of
4802 interactions with Optimize_Alignment set to Space.
4804 2013-01-03 Thomas Quinot <quinot@adacore.com>
4806 * exp_disp.adb: Minor reformatting.
4808 2013-01-02 Richard Biener <rguenther@suse.de>
4811 * gcc-interface/Makefile.in: Add $(GMPINC) to includes.
4813 2013-01-02 Thomas Quinot <quinot@adacore.com>
4815 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Remove
4816 side effects from Tag_Arg early, doing it too late may cause a
4817 crash due to inconsistent Parent link.
4818 * sem_ch8.adb, einfo.ads: Minor reformatting.
4820 2013-01-02 Robert Dewar <dewar@adacore.com>
4822 * einfo.ads, einfo.adb (Has_Independent_Components): New flag.
4823 * freeze.adb (Size_Known): We do not know the size of a packed
4824 record if it has atomic components, by reference type components,
4825 or independent components.
4826 * sem_prag.adb (Analyze_Pragma, case Independent_Components): Set new
4827 flag Has_Independent_Components.
4829 2013-01-02 Yannick Moy <moy@adacore.com>
4831 * opt.ads (Warn_On_Suspicious_Contract): Set to True by default.
4832 * usage.adb (Usage): Update usage message.
4834 2013-01-02 Pascal Obry <obry@adacore.com>
4836 * adaint.c (__gnat_is_module_name_supported): New constant.
4838 2013-01-02 Ed Schonberg <schonberg@adacore.com>
4840 * sem_attr.adb (Check_Array_Type): Reject an attribute reference on an
4841 array whose component type does not have a completion.
4843 2013-01-02 Geert Bosch <bosch@adacore.com>
4845 * a-nllcef.ads, a-nlcefu.ads, a-nscefu.ads: Make Pure.
4847 2013-01-02 Robert Dewar <dewar@adacore.com>
4849 * par_sco.adb: Minor reformatting.
4851 2013-01-02 Javier Miranda <miranda@adacore.com>
4853 * sem_aggr.adb (Resolve_Array_Aggregate): Remove dead code.
4855 2013-01-02 Olivier Hainque <hainque@adacore.com>
4857 * a-exctra.ads (Get_PC): New function.
4859 2013-01-02 Thomas Quinot <quinot@adacore.com>
4861 * sem_ch8.adb: Minor reformatting.
4863 2013-01-02 Thomas Quinot <quinot@adacore.com>
4865 * sem_ch7.adb: Minor reformatting.
4867 2013-01-02 Thomas Quinot <quinot@adacore.com>
4869 * freeze.adb (Check_Component_Storage_Order): Do not crash on
4872 2013-01-02 Robert Dewar <dewar@adacore.com>
4874 * gnat1drv.adb, targparm.adb, targparm.ads: Minor name change: add
4875 On_Target to Atomic_Sync_Default.
4877 2013-01-02 Robert Dewar <dewar@adacore.com>
4879 * sem_warn.adb (Warn_On_Known_Condition): Suppress warning for
4880 comparison of attribute result with constant
4881 * a-ststio.adb, s-direio.adb, s-rannum.adb: Remove unnecessary pragma
4882 Warnings (Off, "..");
4884 2013-01-02 Yannick Moy <moy@adacore.com>
4886 * sem_prag.ads: Minor correction of comment.
4888 2013-01-02 Thomas Quinot <quinot@adacore.com>
4890 * par_sco.adb (Traverse_Package_Declaration): The first
4891 declaration in a nested package is dominated by the preceding
4892 declaration in the enclosing scope.
4894 2013-01-02 Pascal Obry <obry@adacore.com>
4896 * adaint.c, adaint.h (__gnat_get_module_name): Return the actual
4897 module containing a given address.
4899 2013-01-02 Thomas Quinot <quinot@adacore.com>
4901 * sem_ch3.adb: Minor reformatting.
4903 2013-01-02 Pascal Obry <obry@adacore.com>
4905 * cstreams.c (__gnat_ftell64): New routine. Use _ftelli64 on
4906 Win64 and default to ftell on other platforms.
4907 (__gnat_fsek64): Likewise.
4908 * i-cstrea.ads: Add fssek64 and ftell64 specs.
4909 * s-crtl.ads: Likewise.
4910 * a-ststio.adb, s-direio.adb (Size): Use 64 bits version when required.
4911 (Set_Position): Likewise.
4913 2013-01-02 Thomas Quinot <quinot@adacore.com>
4915 * par_sco.adb: Generate X SCOs for default expressions in
4916 subprogram body stubs. Do not generate any SCO for package,
4917 task, or protected body stubs.
4919 2013-01-02 Ed Schonberg <schonberg@adacore.com>
4921 * sem_ch3.adb: Further improvement to ASIS mode for anonymous
4922 access to protected subprograms.
4924 2013-01-02 Robert Dewar <dewar@adacore.com>
4926 * par_sco.adb, vms_data.ads: Minor reformatting.
4928 2013-01-02 Thomas Quinot <quinot@adacore.com>
4930 * par_sco.adb (Traverse_Declarations_Or_Statement): Function
4931 form, returning value of Current_Dominant upon exit, for chaining
4933 (Traverse_Declarations_Or_Statement.Traverse_One, case
4934 N_Block_Statement): First statement is dominated by last declaration.
4935 (Traverse_Subprogram_Or_Task_Body): Ditto.
4936 (Traverse_Package_Declaration): First private
4937 declaration is dominated by last visible declaration.
4938 (Traverse_Sync_Definition): Ditto.
4940 2013-01-02 Thomas Quinot <quinot@adacore.com>
4942 * gnat_rm.texi: Restrict the requirement for Scalar_Storage_Order
4943 matching Bit_Order to record types only, since array types do not
4946 2013-01-02 Vincent Celier <celier@adacore.com>
4948 * gnat_ugn.texi: Remove documentation of -gnateO, which is an
4950 * usage.adb: Indicate that -gnateO is an internal switch.
4952 2013-01-02 Thomas Quinot <quinot@adacore.com>
4954 * par_sco.adb: Add SCO generation for task types and single
4956 * get_scos.adb: When adding an instance table entry for a
4957 non-nested instantiation, make sure the Enclosing_Instance is
4960 2013-01-02 Hristian Kirtchev <kirtchev@adacore.com>
4962 * sem_attr.adb (Analyze_Attribute): Skip the special _Parent
4963 scope generated for subprogram inlining purposes while trying
4964 to locate the enclosing function.
4965 * sem_prag.adb (Analyze_Pragma): Preanalyze the boolean
4966 expression of pragma Postcondition when the pragma comes from
4967 source and appears inside a subprogram body.
4969 2013-01-02 Thomas Quinot <quinot@adacore.com>
4971 * switch-c.adb, fe.h, back_end.adb: Enable generation of instantiation
4972 information in debug info unconditionally when using -fdump-scos,
4973 instead of relying on a separate command line switch -fdebug-instances.
4974 * gcc-interface/Make-lang.in: Update dependencies.
4976 2013-01-02 Ed Schonberg <schonberg@adacore.com>
4978 * sem_ch12.adb: Additional refinement of predicate.
4980 2013-01-02 Vincent Celier <celier@adacore.com>
4982 * vms_data.ads: Remove incorrect spaces at end of descriptions
4983 of qualifiers for single switch.
4985 2013-01-02 Ben Brosgol <brosgol@adacore.com>
4987 * gnat_rm.texi: Minor edits / wordsmithing in section on pragma
4988 Check_Float_Overflow.
4990 2013-01-02 Thomas Quinot <quinot@adacore.com>
4992 * sprint.adb (Sprint_Node_Actual): Do not add extra parens for
4993 a conditional expression (CASE or IF expression) that already
4994 has parens. Also omit ELSE keyword for an IF expression without
4997 2013-01-02 Thomas Quinot <quinot@adacore.com>
4999 * gnat1drv.adb (Adjust_Global_Switches): Adjust back-end
5000 flag_debug_instances here, after front-end switches have been
5003 2013-01-02 Vincent Celier <celier@adacore.com>
5005 * usage.adb: Minor reformatting.
5007 2013-01-02 Arnaud Charlet <charlet@adacore.com>
5009 * opt.ads: Fix typo.
5011 2013-01-02 Thomas Quinot <quinot@adacore.com>
5013 * par_sco.adb: Generate P decision SCOs for SPARK pragmas
5014 Assume and Loop_Invariant.
5016 2013-01-02 Robert Dewar <dewar@adacore.com>
5018 * vms_data.ads: Add entry for Float_Check_Valid (-gnateF).
5019 * ug_words: Add entry for Float_Check_Overflow.
5020 * usage.adb: Minor reformatting.
5021 * gnat_ugn.texi: Add documentation for -gnateF (Check_Float_Overflow).
5023 2013-01-02 Vincent Celier <celier@adacore.com>
5025 * gnat_ugn.texi: Add documentation for switches -gnateA, -gnated,
5026 -gnateO=, -gnatet and -gnateV.
5027 * ug_words: Add qualifiers equivalent to -gnateA, -gnated,
5028 -gnatet and -gnateV.
5029 * usage.adb: Add lines for -gnatea, -gnateO and -gnatez.
5030 * vms_data.ads: Add new compiler qualifiers /ALIASING_CHECK
5031 (-gnateA), /DISABLE_ATOMIC_SYNCHRONIZATION (-gnated),
5032 /PARAMETER_VALIDITY_CHECK (-gnateV) and /TARGET_DEPENDENT_INFO
5035 2013-01-02 Robert Dewar <dewar@adacore.com>
5037 * checks.adb (Apply_Scalar_Range_Check): Implement Check_Float_Overflow.
5038 * opt.ads, opt.adb: Handle flags Check_Float_Overflow[_Config].
5039 * par-prag.adb: Add dummy entry for pragma Check_Float_Overflow.
5040 * sem_prag.adb: Implement pragma Check_Float_Overflow.
5041 * snames.ads-tmpl: Add entries for pragma Check_Float_Overflow.
5042 * switch-c.adb: Recognize -gnateF switch.
5043 * tree_io.ads: Update ASIS version number.
5044 * gnat_rm.texi: Add documentation of pragma Check_Float_Overflow.
5046 2013-01-02 Robert Dewar <dewar@adacore.com>
5048 * checks.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
5049 exp_disp.adb, exp_dist.adb, exp_intr.adb, exp_prag.adb, exp_util.adb,
5050 freeze.adb, gnat1drv.adb, inline.adb, layout.adb, lib-xref.adb,
5051 par-ch10.adb, par-labl.adb, par-load.adb, par-util.adb, restrict.adb,
5052 sem_ch13.adb, sem_ch4.adb, sem_ch6.adb, sem_dim.adb, sem_elab.adb,
5053 sem_res.adb, sem_warn.adb, sinput-l.adb: Add tags to warning messages.
5054 * sem_ch6.ads, warnsw.ads, opt.ads: Minor comment updates.
5056 2013-01-02 Robert Dewar <dewar@adacore.com>
5058 * err_vars.ads: Minor comment fix.
5060 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5062 * sem_ch12.adb: Refine predicate.
5064 2013-01-02 Robert Dewar <dewar@adacore.com>
5066 * errout.ads: Minor comment fixes.
5067 * opt.ads: Minor comment additions.
5068 * exp_aggr.adb: Add tags to warning messages
5069 * exp_ch11.adb, exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_aggr.adb,
5070 sem_attr.adb, sem_case.adb, sem_cat.adb, sem_ch3.adb, sem_ch4.adb,
5071 sem_ch5.adb, sem_disp.adb, sem_dist.adb, sem_elab.adb, sem_eval.adb,
5072 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb, sem_util.adb,
5073 sem_warn.adb: Add tags to warning messages
5075 2013-01-02 Doug Rupp <rupp@adacore.com>
5077 * init.c [VMS] Remove subtest on reason mask for ACCVIO that is a C_E.
5079 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5081 * sem_ch12.adb: Recover source name for renamed packagea.
5083 2013-01-02 Robert Dewar <dewar@adacore.com>
5085 * errout.adb (Set_Msg_Insertion_Warning): Correct typo causing
5086 tests to fail if insertion sequence is at end of message string.
5087 * opt.ads: Minor comment fixes and additions.
5088 * sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_ch10.adb, sem_ch11.adb,
5089 sem_ch12.adb, sem_ch13.adb: Add tags to warning messages.
5090 * sem_ch6.ads, sem_ch6.adb (Cannot_Inline): Deal with warning message
5091 tags. Add tags to warning messages.
5093 2013-01-02 Robert Dewar <dewar@adacore.com>
5095 * err_vars.ads (Warning_Doc_Switch): New flag.
5096 * errout.adb (Error_Msg_Internal): Implement new warning flag
5097 doc tag stuff (Set_Msg_Insertion_Warning): New procedure.
5098 * errout.ads: Document new insertion sequences ?? ?x? ?.x?
5099 * erroutc.adb (Output_Msg_Text): Handle ?? and ?x? warning doc
5101 * erroutc.ads (Warning_Msg_Char): New variable.
5102 (Warn_Chr): New field in error message object.
5103 * errutil.adb (Error_Msg): Set Warn_Chr in error message object.
5104 * sem_ch13.adb: Minor reformatting.
5105 * warnsw.adb: Add handling for -gnatw.d and -gnatw.D
5106 (Warning_Doc_Switch).
5107 * warnsw.ads: Add handling of -gnatw.d/.D switches (warning
5110 2013-01-02 Robert Dewar <dewar@adacore.com>
5112 * opt.ads: Minor reformatting.
5114 2013-01-02 Doug Rupp <rupp@adacore.com>
5116 * init.c: Reorganize VMS section.
5117 (scan_condtions): New function for scanning condition tables.
5118 (__gnat_handle_vms_condtion): Use actual exception name for imported
5119 exceptions vice IMPORTED_EXCEPTION.
5120 Move condition table scanning into separate function. Move formerly
5121 special handled conditions to system condition table. Use SYS$PUTMSG
5122 output to fill exception message field for formally special handled
5123 condtions, in particular HPARITH to provide more clues about cause and
5124 location then raised from the translated image.
5126 2013-01-02 Thomas Quinot <quinot@adacore.com>
5128 * sem_ch13.adb (Analyze_Aspect_Specifications): For a Pre/Post
5129 aspect that applies to a library subprogram, prepend corresponding
5130 pragma to the Pragmas_After list, in order for split AND THEN
5131 sections to be processed in the expected order.
5133 2013-01-02 Thomas Quinot <quinot@adacore.com>
5135 * exp_prag.adb (Expand_Pragma_Check): The statements generated
5136 for the pragma must have the sloc of the pragma, not the
5137 sloc of the condition, otherwise this creates anomalies in the
5138 generated debug information that confuse coverage analysis tools.
5140 2013-01-02 Thomas Quinot <quinot@adacore.com>
5142 * sem_ch13.adb: Minor reformatting.
5144 2013-01-02 Arnaud Charlet <charlet@adacore.com>
5146 * g-excact.ads (Core_Dump): Clarify that this subprogram does
5147 not dump cores under Windows.
5149 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5151 * sem_ch8.adb (Analyze_Primitive_Renamed_Operation): The prefixed
5152 view of a subprogram has convention Intrnnsic, and a renaming
5153 of a prefixed view cannot be the prefix of an Access attribute.
5155 2013-01-02 Robert Dewar <dewar@adacore.com>
5157 * restrict.adb: Minor reformatting.
5159 2013-01-02 Thomas Quinot <quinot@adacore.com>
5161 * exp_prag.adb: Minor reformatting.
5163 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5165 * sem_ch12.adb (Get_Associated_Node): If the node is an
5166 identifier that denotes an unconstrained array in an object
5167 declaration, it is rewritten as the name of an anonymous
5168 subtype whose bounds are given by the initial expression in the
5169 declaration. When checking whether that identifier is global
5170 reference, use the original node, not the local generated subtype.
5172 2013-01-02 Olivier Hainque <hainque@adacore.com>
5174 * tracebak.c: Revert previous change, incomplete.
5176 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5178 * sem_ch13.adb (Analyze_Aspect_Specifications): If the aspect
5179 appears on a subprogram body that acts as a spec, place the
5180 corresponding pragma in the declarations of the body, so that
5181 e.g. pre/postcondition checks can be generated appropriately.
5183 2013-01-02 Robert Dewar <dewar@adacore.com>
5185 * sem_ch3.adb: Minor reformatting and code reorganization.
5187 2013-01-02 Vincent Celier <celier@adacore.com>
5189 * switch-m.adb (Normalize_Compiler_Switches): Record the
5190 complete switch -fstack-check=specific instead of its shorter
5191 alias -fstack-check.
5193 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5195 * sem_ch3.adb (Derive_Subprogram): Enforce RM 6.3.1 (8):
5196 if the derived type is a tagged generic formal type with
5197 unknown discriminants, the inherited operation has convention
5198 Intrinsic. As such, the 'Access attribute cannot be applied to it.
5200 2013-01-02 Thomas Quinot <quinot@adacore.com>
5202 * sem_attr.adb: Minor reformatting.
5204 2013-01-02 Thomas Quinot <quinot@adacore.com>
5206 * par_sco.adb: Add SCO generation for S of protected types and
5207 single protected object declarations.
5209 2013-01-02 Robert Dewar <dewar@adacore.com>
5211 * sem_eval.adb, osint.ads: Minor reformatting.
5213 2013-01-02 Hristian Kirtchev <kirtchev@adacore.com>
5215 * sem_prag.adb (Analyze_Pragma): Check the legality of pragma Assume.
5217 2013-01-02 Thomas Quinot <quinot@adacore.com>
5219 * sem_eval.adb (Compile_Time_Compare): For static operands, we
5220 can perform a compile time comparison even if in preanalysis mode.
5222 2013-01-02 Thomas Quinot <quinot@adacore.com>
5224 * par_sco.adb (SCO_Record): Always use
5225 Traverse_Declarations_Or_Statements to process the library level
5226 declaration, so that SCOs are properly generated for its aspects.
5228 2013-01-02 Thomas Quinot <quinot@adacore.com>
5230 * scos.ads (In_Decision): Add missing entry for 'a'.
5231 * sem_prag.adb (Analyze_Pragma, case pragma Check): Omit
5232 call to Set_SCO_Pragma_Enabled for Invariant and Predicate.
5233 * sem_ch13.adb: Minor comment update.
5235 Copyright (C) 2013 Free Software Foundation, Inc.
5237 Copying and distribution of this file, with or without modification,
5238 are permitted in any medium without royalty provided the copyright
5239 notice and this notice are preserved.