1 2013-08-13 Eric Botcazou <ebotcazou@adacore.com>
3 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
4 sets of derived types in ASIS mode.
6 2013-08-13 Eric Botcazou <ebotcazou@adacore.com>
8 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace True with true.
9 (is_cplusplus_method): Likewise, and False with false.
10 (components_need_strict_alignment): Likewise.
11 * gcc-interface/misc.c (gnat_init_gcc_fp): Likewise.
12 * gcc-interface/trans.c (Loop_Statement_to_gnu): Likewise.
13 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
14 (add_cleanup): Likewise.
15 (Sloc_to_locus1): Likewise.
16 (Sloc_to_locus): Likewise.
17 (set_expr_location_from_node): Likewise.
18 * gcc-interface/utils.c (potential_alignment_gap): Likewise.
20 2013-08-13 Thomas Quinot <quinot@adacore.com>
22 * gcc-interface/trans.c (set_end_locus_from_node): Clear column info
23 for the end_locus of a block if it does not come from an End_Label.
25 2013-08-13 Thomas Quinot <quinot@adacore.com>
27 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If
28 there is no End_Label, attach cleanup actions to the sloc of the HSS
30 (Exception_Handler_to_gnu_zcx): Associate cleanup actions with the sloc
31 of the handler itself.
32 (add_cleanup): Clear column information in sloc of cleanup actions.
33 (Sloc_to_locus1): New static function.
34 (Sloc_to_locus): Call it.
35 (set_expr_location_from_node1): New static function.
36 (set_expr_location_from_node): Call it.
38 2013-08-13 Eric Botcazou <ebotcazou@adacore.com>
40 * gcc-interface/trans.c (Call_to_gnu): Deal with specific conditional
41 expressions for misaligned actual parameters.
43 2013-08-13 Eric Botcazou <ebotcazou@adacore.com>
45 * gcc-interface/trans.c (can_equal_min_or_max_val_p): Be prepared for
46 values outside of the range of the type.
48 2013-08-13 Eric Botcazou <ebotcazou@adacore.com>
50 * gcc-interface/utils2.c (build_atomic_load): Do a mere view-conversion
51 to the original type before converting to the result type.
52 (build_atomic_store): First do a conversion to the original type before
53 view-converting to the effective type, but deal with a padded type
56 2013-08-08 Eric Botcazou <ebotcazou@adacore.com>
58 * gcc-interface/Makefile.in (TOOLS_LIBS): Pick C object files from the
59 compiler build and use standard library variables.
60 (../../vxaddr2line$(exeext): Do not depend on targext.o and adjust.
61 (gnatmake-re): Do not depend on targext.o.
62 (gnatlink-re): Do not depend on link.o and targext.o.
63 (../../gnatmake$(exeext): Likewise.
64 (../../gnatlink$(exeext): Likewise.
66 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
68 * gcc-interface/gigi.h: Fix typos.
69 * gcc-interface/trans.c: Likewise.
70 * gcc-interface/utils2.c: Likewise.
71 * gnat_rm.texi: Likewise.
72 * gnat_ugn.texi: Likewise.
73 * raise-gcc.c: Likewise.
74 * sigtramp-ppcvxw.c: Likewise.
76 * terminals.c: Likewise.
78 2013-07-20 Eric Botcazou <ebotcazou@adacore.com>
81 * gcc-interface/ada.h (CAT): Fix typo.
83 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
85 * einfo.adb (Get_Pragma): Handle the retrieval of delayed
86 pragmas stored in N_Contract nodes.
87 * einfo.ads (Get_Pragma): Update the comment on usage.
88 * sem_prag.adb (Check_Precondition_Postcondition): Retain a copy
89 of the pragma when it applies to a body that acts as a spec. The
90 copy is preanalyzed and chained on the contract of the body.
92 2013-07-08 Robert Dewar <dewar@adacore.com>
94 * rtsfind.adb: Minor comment fix.
96 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
98 * sem_ch4.adb (Check_Ghost_Subprogram_Call): Do not check the placement
99 of a Ghost function call when the enclosing context is being
102 2013-07-08 Ed Schonberg <schonberg@adacore.com>
104 * exp_ch6.adb (Expand_Inlined_Call, Process_Formals): If the
105 expression in a return statement is a numeric literal, qualify
106 it with the return type for proper resolution.
108 2013-07-08 Robert Dewar <dewar@adacore.com>
110 * sem.ads: Minor comment updates.
111 * s-restri.ads, exp_ch6.adb, lib-load.ads, exp_ch3.adb, sem_ch10.adb:
114 2013-07-08 Robert Dewar <dewar@adacore.com>
116 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
118 * gnat_rm.texi: Add missing menu entry for Attribute Ref Add
119 documentation for attribute Restriction_Set.
120 * lib-writ.adb (Write_With_Lines): Generate special W lines
122 * lib-writ.ads: Document special use of W lines for
124 * lib.ads (Restriction_Set_Dependences): New table.
125 * par-ch4.adb (Is_Parameterless_Attribute): Add Loop_Entry to
126 list (Scan_Name_Extension_Apostrophe): Remove kludge test for
127 Loop_Entry (Scan_Name_Extension_Apostrophe): Handle No_Dependence
129 * restrict.adb (Check_SPARK_Restriction): Put in Alfa order
130 (OK_No_Dependence_Unit_Name): New function.
131 * restrict.ads (OK_No_Dependence_Unit_Name): New function.
132 * rtsfind.adb: Minor reformatting Minor code reorganization.
133 * sem_attr.adb (Analyze_Attribute): Add processing for
135 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
136 Remove Check_Unit_Name and use new function
137 OK_No_Dependence_Unit_Name instead.
138 * sinfo.ads: Minor comment updates.
139 * snames.ads-tmpl: Add entry for Restriction_Set attribute.
141 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
143 * exp_ch4.adb (Apply_Accessibility_Check): Remove local constant
144 Pool_Id and local variable Free_Stmt. Do not deallocate the faulty
145 object as "free" is not available on all targets/profiles.
147 2013-07-08 Robert Dewar <dewar@adacore.com>
149 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle
150 Storage_Size aspect for task type in case discriminant is
152 (Analyze_Attribute_Definition_Clause): Do not flag Storage_Size
153 attribute definition clause as obsolescent if from aspect.
155 2013-07-08 Robert Dewar <dewar@adacore.com>
157 * gnat_rm.texi: Add documentation for Img returning a function.
158 * par-prag.adb: Minor reformatting.
159 * restrict.adb: Minor reformatting and code reorganization.
161 2013-07-08 Ed Schonberg <schonberg@adacore.com>
163 * sem_res.adb: add guard to ASIS transform.
165 2013-07-08 Ed Schonberg <schonberg@adacore.com>
167 * exp_ch9.adb (Expand_N_Asynchronous_Select): If the trigger
168 of the asynchronous select is a dispatching call, transform the
169 abortable part into a procedure, to avoid duplication of local
170 loop variables that may appear within.
172 2013-07-08 Vincent Celier <celier@adacore.com>
174 * projects.texi: Update the documentation of suffixes in package
177 2013-07-08 Ed Schonberg <schonberg@adacore.com>
179 * sem_ch6.adb (Conforming_Types): Anonymous_access_to_subprograsm
180 types are type conformant if the designated type of one is
181 protected and the other is not. Convention only matters when
182 checking subtype conformance.
184 2013-07-08 Ed Schonberg <schonberg@adacore.com>
186 * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate
187 back the fully resolved operands to the original function call
188 so that all semantic information remains available to ASIS.
190 2013-07-08 Ed Schonberg <schonberg@adacore.com>
192 * sem_ch4.adb: minor reformatting (remove obsolete comment).
193 * sem_ch9.adb: improve error message on illegal trigger.
195 2013-07-08 Robert Dewar <dewar@adacore.com>
197 * sem_prag.adb: Minor reformatting.
199 2013-07-08 Robert Dewar <dewar@adacore.com>
201 * gnatcmd.adb: Minor reformatting.
203 2013-07-08 Robert Dewar <dewar@adacore.com>
205 * targparm.adb (Get_Target_Parameters): Recognize pragma
206 Partition_Elaboration_Policy.
208 2013-07-08 Robert Dewar <dewar@adacore.com>
210 * gnat_ugn.texi: Minor update to mention partition elaboration policy.
212 2013-07-08 Ed Schonberg <schonberg@adacore.com>
214 * sem_ch4.adb (Comple_Object_Operation): Revert previous change.
215 (Analyze_Indexed_Component_Form): In ASIS mode, if node has been
216 transformed but not rewritten as a function call (as is the case
217 in a generic), analyze it as such.
219 2013-07-08 Thomas Quinot <quinot@adacore.com>
221 * gnat_rm.texi: Minor rewording: add missing word "operators"
222 in documentation for restriction No_Direct_Boolean_Operator.
224 2013-07-08 Robert Dewar <dewar@adacore.com>
226 * errout.adb (Set_Msg_Txt): No longer sets Is_Style_Msg,
227 Is_Warning_Msg, or Is_Unconditional_Msg (all are set elsewhere
229 * errout.ads: Insertions ! and !! no longer have to be at the
230 end of the message, they can be anywhere in the message.
231 * erroutc.adb (Test_Style_Warning_Serious_Unconditional_Msg):
232 Replaces Test_Style_Warning_Serious_Msg
233 * erroutc.ads (Has_Double_Exclam): New flag New comments for
234 existing flags (Test_Style_Warning_Serious_Unconditional_Msg):
235 Replaces Test_Style_Warning_Serious_Msg
236 * errutil.adb (Test_Style_Warning_Serious_Unconditional_Msg):
237 Replaces Test_Style_Warning_Serious_Msg
239 2013-07-08 Robert Dewar <dewar@adacore.com>
241 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings):
242 Recognize SPARK_05 as synonym for SPARK in restrictions pragma.
243 * restrict.ads, restrict.adb (SPARK_Hides): Table moved to body, only
245 * scng.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb,
246 sem_res.adb, sem_util.adb: Use restriction SPARK_05 instead of SPARK.
247 * snames.ads-tmpl (Name_No_Obsolescent_Features): New entry.
249 2013-07-08 Vincent Celier <celier@adacore.com>
251 * gnatcmd.adb (Check_Files): Use a response file for gnatls
254 2013-07-08 Gary Dismukes <dismukes@adacore.com>
256 * freeze.adb: Minor typo fixes.
258 2013-07-08 Robert Dewar <dewar@adacore.com>
260 * gnat_rm.texi: Document SPARK_05 (replaces SPARK) Document
261 obsolete recognition of SPARK Document all other obsolete synonyms
262 for old restrictions.
263 * restrict.adb (Check_SPARK_Restriction): SPARK_05 replaces
264 SPARK (Process_Restriction_Synonyms): Handle SPARK as synonym
266 * restrict.ads: Restriction SPARK_05 replaces SPARK.
267 * s-rident.ads: Replace restriction SPARK by SPARK_05 Add SPARK
268 as synonym for SPARK_05.
269 * sem_prag.adb: Minor reformatting.
270 * snames.ads-tmpl: Add entries for Name_SPARK and Name_SPARK_05.
272 2013-07-08 Robert Dewar <dewar@adacore.com>
274 * sem_dim.adb: Minor error message change.
275 * freeze.adb (Freeze_Entity, array type case): Extend handling
276 of Implicit_Packing to handle multi-dimensional array case.
277 * gnat_rm.texi: Update doc on Implicit_Packing.
279 2013-07-08 Robert Dewar <dewar@adacore.com>
281 * exp_ch4.adb: Minor reformatting.
283 2013-07-08 Ed Schonberg <schonberg@adacore.com>
285 * sem_ch4.adb (Complete_Object_Operation): In ASIS mode, if
286 the parent node is a selected component and the analysis as a
287 call is successful, set the type of the selector in the parent
288 node for subsequent checks, because the rewriting of the node
289 does not take place during pre-analysis.
291 2013-07-08 Robert Dewar <dewar@adacore.com>
293 * sem_ch8.adb, exp_ch3.adb: Minor reformatting.
295 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
297 * exp_ch4.adb (Expand_N_Op_Eq): When comparing two
298 Bounded_Strings, use the predefined equality function of the
299 root Super_String type.
301 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
303 * exp_ch4.adb (Create_Alternative): Removed.
304 (Expand_N_If_Expression): Remove constant
305 In_Case_Or_If_Expression. Add local variable
306 Ptr_Typ. Inspect the "then" and "else" action lists
307 for transient controlled objects and generate code to
308 finalize them. (Is_Controlled_Function_Call): Removed.
309 (Process_Action): Update the comment on usage. Update the call
310 to Process_Transient_Object. There is no need to continue the
311 traversal of the object itself.
312 (Process_Actions): New routine.
313 (Process_Transient_Object): Moved to the top level of Exp_Ch4. Add
314 a new formal and update the related comment on usage.
315 * exp_util.adb (Within_Case_Or_If_Expression): Start the search
316 from the parent of the node.
318 2013-07-08 Robert Dewar <dewar@adacore.com>
320 * a-cusyqu.ads, a-cbprqu.ads, s-interr.ads, a-cuprqu.ads,
321 a-cbsyqu.ads: Minor reformatting (proper formatting of overriding).
323 2013-07-08 Ed Schonberg <schonberg@adacore.com>
325 * sem_ch8.adb (Attribute_Renaming): Treat 'Img as an attribute
326 that can be renamed as a function.
328 2013-07-08 Thomas Quinot <quinot@adacore.com>
330 * g-socket.ads: Document target dependency: FIONBIO may or may not
331 be inherited from listening socket by accepted socket.
333 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
335 * exp_ch4.adb (Apply_Accessibility_Check): Do not deallocate the object
336 on targets that can't deallocate.
338 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
340 * exp_ch3.adb (Freeze_Type): Generate a
341 subpools-related accessibility check only on profiles that
342 include the corresponding library unit.
344 2013-07-08 Gary Dismukes <dismukes@adacore.com>
346 * sem_ch8.adb: Minor typo fixes.
348 2013-07-08 Javier Miranda <miranda@adacore.com>
350 * sem_ch8.adb (Save_Scope_Stack): Adding documentation.
351 (Restore_Scope_Stack): Remove the elements of the list when the
352 visibility of each entity is restored.
354 2013-07-08 Robert Dewar <dewar@adacore.com>
356 * exp_ch9.adb, sem.ads, sem_util.adb: Minor reformatting.
358 2013-07-08 Robert Dewar <dewar@adacore.com>
360 * sem_ch8.adb, sem_ch8.ads: Minor reformatting.
362 2013-07-08 Gary Dismukes <dismukes@adacore.com>
364 * gnat_rm.texi: Minor reformatting and rewording for consistency.
366 2013-07-08 Bob Duff <duff@adacore.com>
368 * exp_ch3.adb (Build_Master): If Desig_Type is an incomplete
369 view coming from a limited-with'ed package, use the nonlimited
370 view in case it has tasks.
372 2013-07-08 Javier Miranda <miranda@adacore.com>
374 * sem_ch8.ad[sb] (Save_Scope_Stack): Modified to return the list
375 of entities which have been temporarily removed from immediate
377 (Restore_Scope_Stack): Modified to receive an
378 additional parameter with the list of entities whose immediate
379 visibility must be restored.
380 * sem.adb (Do_Analyze): Use new version of
381 Save_Scope_Stack/Restore_Scope_Stack
382 * sem_ch12.adb (Inline_Instance_Body): Use new version of
383 Save_Scope_Stack and Restore_Scope_Stack
385 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
387 * sem_prag.adb (Analyze_Pragma): Remove
388 variable Unit_Prag. Remove the check on duplicate mode for the
389 configuration form of the pragma.
390 (Redefinition_Error): Removed.
392 2013-07-08 Robert Dewar <dewar@adacore.com>
394 * lib.ads, gnat_rm.texi, einfo.ads, sem_ch13.adb: Minor reformatting
397 2013-07-08 Ed Schonberg <schonberg@adacore.com>
399 * sem_prag.adb (Analyze_PPC_In_Decl_Part): In ASIS mode,
400 pre-analyze only the original expression attached to the source
401 aspect, not the relocated expression of the pragma, to prevent
402 malformed trees in ASIS mode.
403 * sem_ch13.adb (Analyze_Aspect_Specifications): Revert previous
404 patch: the expression in the aspect for pre/post must be relocated
405 to the pragma for proper analysis.
407 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
409 * aspects.adb: Add an entry for SPARK_Mode in table Canonical_Aspect.
410 * aspects.ads: Add an entry for SPARK_Mode in tables Aspect_Id,
411 Aspect_Argument, Aspect_Names.
412 * atree.adb (Node32): New routine.
413 (Set_Node32): New routine.
414 * atree.ads (Node32): New routine.
415 (Set_Node32): New routine.
416 * einfo.adb: Node32 is now used as SPARK_Mode_Pragmas.
417 (Set_SPARK_Mode_Pragmas): New routine.
418 (SPARK_Mode_Pragmas): New routine.
419 (Write_Field32_Name): Add and entry for SPARK_Modes.
420 * einfo.ads: Add attribute SPARK_Mode_Pragmas along with usage
422 (Set_SPARK_Mode_Pragmas): New routine and
424 (SPARK_Mode_Pragmas): New routine and pragma Inline.
425 * gnat_rm.texi: Add sections explaining the syntax and semantics
426 of aspect/pragma SPARK_Mode.
427 * gnat_ugn.texi: Add pragma SPARK_Mode to the list of
428 configuration pragmas.
429 * lib.adb (Set_SPARK_Mode_Pragma): New routine.
430 (SPARK_Mode_Pragma): New routine.
431 * lib.ads: Alphabetize the comments on fields of record
432 Unit_Record. Add new field SPARK_Mode_Pragma along with
433 comment on its usage. Update the layout of record Unit_Record.
434 (Set_SPARK_Mode_Pragma): New routine and pragma Inline.
435 (SPARK_Mode_Pragma): New routine and pragma Inline.
436 * lib-load.adb (Create_Dummy_Package_Unit): Initialize
437 field SPARK_Mode_Pragma.
438 (Load_Main_Source): Initialize field SPARK_Mode_Pragma.
439 (Load_Unit): Initialize field SPARK_Mode_Pragma.
440 * lib-writ.adb (Add_Preprocessing_Dependency): Initialize field
442 (Ensure_System_Dependency): Initialize field SPARK_Mode_Pragma.
443 * opt.ads: Alphabetize verification flags. Store the
444 compilation-wide SPARK mode in variable Global_SPARK_Mode.
445 * par-prag.adb: Pragma SPARK_Mode does not need special processing
447 * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect
448 SPARK_Mode into a pragma.
449 (Check_Aspect_At_Freeze_Point): Aspect SPARK_Mode does not need
451 * sem_prag.adb: Add an entry for SPARK_Mode in table Sig_Flags.
452 (Analyze_Pragma): Add processing for pragma SPARK_Mode.
453 (Get_SPARK_Mode_Id): New routine.
454 (Is_Elaboration_SPARK_Mode): New routine.
455 (Is_Private_SPARK_Mode): New routine.
456 * sem_prag.ads (Get_SPARK_Mode_Id): New routine.
457 (Is_Elaboration_SPARK_Mode): New routine.
458 (Is_Private_SPARK_Mode): New routine.
459 * sinfo.ads: Update the comment on the usage of field Next_Pragma.
460 * snames.ads-tmpl: Add new predefined name for SPARK_Mode and
461 Auto. Add new pragma Id for SPARK_Mode.
462 * types.ads: Add new type SPARK_Mode_Id.
464 2013-07-05 Ed Schonberg <schonberg@adacore.com>
466 * sem_ch13.adb (Analyze_Aspect_Specifications): For
467 pre/postconditions copy the expression to the generated pragma,
468 to avoid sharing between the original aspect and the pragma node,
469 because in ASIS_Mode both will be independently analyzed.
471 2013-07-05 Ed Schonberg <schonberg@adacore.com>
473 * exp_ch3.adb (Build_Variant_Record_Equality): Add pairs of
474 formals for each discriminant of an unchecked union.
475 (Make_Eq_Case): Suprogram accepts a list of discriminants. Nested
476 variants are supported. New helper function Corresponding_Formal.
477 * exp_ch4.adb (Build_Equality_Call): For unchecked unions,
478 loop through discriminants to create list of inferred values,
479 and modify call to equality routine accordingly.
481 2013-07-05 Claire Dross <dross@adacore.com>
483 * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
484 a-cforse.ads, a-cofove.ads: Add preconditions when needed +
485 container types are not tagged any more.
487 2013-07-05 Thomas Quinot <quinot@adacore.com>
489 * freeze.adb (Freeze_Entity): For an object with captured
490 initialization statements, do not remove Init_Stmts from the
491 enclosing list, as Freeze_All might rely on it to know where to
494 2013-07-05 Robert Dewar <dewar@adacore.com>
496 * exp_ch4.adb, a-cfdlli.ads, a-ngelfu.ads, s-bignum.adb: Minor
499 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
501 * exp_ch4.adb (Expand_Composite_Equality): Use the full view
502 when the base type is private.
504 2013-07-05 Claire Dross <dross@adacore.com>
506 * a-cfdlli.ads: Add preconditions when needed.
508 2013-07-05 Robert Dewar <dewar@adacore.com>
510 * sem_ch8.adb: Minor reformatting.
512 2013-07-05 Ed Schonberg <schonberg@adacore.com>
514 * sem_ch3.adb (Access_Subprogram_Declaration): Use
515 Generate_Reference_To_Formals.
516 * lib-xref.adb (Generate_Reference_To_Formals): In the case of
517 access to subprograms, the formals are found in the designated
520 2013-07-05 Robert Dewar <dewar@adacore.com>
522 * gnat_ugn.texi: Document that comments can be lined up with
523 previous non-blank line.
524 * styleg.adb (Check_Comment): Allow indentation to match previous
525 non-blank line (Same_Column_As_Previous_Line): New function
527 2013-07-05 Robert Dewar <dewar@adacore.com>
529 * gnat_rm.texi: Update doc on missing pragmas.
530 * sem_ch12.adb: Minor comment additions.
532 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
534 * sem_prag.adb (Analyze_Pragma): Ensure that
535 Contract_Cases, Depends and Global are analyzed when they apply
536 to a subprogram compilation unit. The pragmas are all added
537 unconditionally to the construct's contract. This ensures that
538 proof tools can locate the pragmas.
540 2013-07-05 Ed Schonberg <schonberg@adacore.com>
542 * sem_ch8.adb (Freeze_Actual_Profile): An instance within
543 a generic unit does not freeze a generic private type of the
544 enclosing generic. This rule must also apply to a type derived
545 from a generic private type.
547 2013-07-05 Arnaud Charlet <charlet@adacore.com>
549 * gnat_rm.texi: Add missing documentation for pragmas.
551 2013-07-05 Yannick Moy <moy@adacore.com>
553 * sem_ch12.adb: Minor comment.
555 2013-07-05 Robert Dewar <dewar@adacore.com>
557 * gnat_rm.texi: Document that -gnatR and -gnatD cannot be used
559 * switch-c.adb: Do not allow -gnatD and -gnatR to both be
562 2013-07-05 Robert Dewar <dewar@adacore.com>
564 * gnat_rm.texi: Add missing documentation for pragmas.
565 * sem_ch8.adb: Minor reformatting.
566 * gnat_ugn.texi: Document that -gnatR and -gnatD cannot be used
569 2013-07-05 Yannick Moy <moy@adacore.com>
571 * sem_ch12.ads, sem_ch12.adb (Need_Subprogram_Instance_Body): Force
572 instance of subprogram body in SPARK mode, by testing Expander_Active
573 (set in SPARK mode) instead of Full_Expander_Active (not set in
575 * sem_ch8.adb: Minor reformatting.
577 2013-07-05 Robert Dewar <dewar@adacore.com>
579 * freeze.adb (Freeze_Entity): Remove test of obsolete flag
580 Propagate_Exceptions, and associated useless code that did
582 * gnat_rm.texi: Add documentation for obsolete pragma
583 Propagate_Exceptions.
584 * opt.ads (Propagate_Exceptions): Obsolete flag removed.
585 * sem_prag.adb (Analyze_Pragma, case Propagate_Exceptions):
586 Remove useless and obsolete setting of Propagate_Exceptions flag.
588 2013-07-05 Robert Dewar <dewar@adacore.com>
590 * gnat_rm.texi, sem_prag.adb: Minor comment/text fixes.
592 2013-07-05 Robert Dewar <dewar@adacore.com>
594 * gnat_rm.texi: Add missing doc for various pragmas.
596 2013-07-05 Robert Dewar <dewar@adacore.com>
598 * par_sco.adb, sem_ch12.adb, par-ch5.adb: Minor reformatting.
599 * gnat_rm.texi: Document pragma Profile_Warnings.
600 * restrict.ads, sem_prag.adb: Minor reformatting.
602 2013-07-05 Ed Schonberg <schonberg@adacore.com>
604 * sem_ch12.adb (Check_Formal_Package_Instance): Handle properly
605 a formal subprogram that was defaulted in the formal package.
607 2013-07-05 Thomas Quinot <quinot@adacore.com>
609 * par_sco.adb (Traverse_Declarations_Or_Statements): Ignore
610 N_Implicit_Label_Declaration nodes.
612 2013-07-05 Robert Dewar <dewar@adacore.com>
614 * a-cfhase.adb, sem_prag.adb, a-cfhama.adb: Minor reformatting.
616 2013-07-05 Ed Schonberg <schonberg@adacore.com>
618 * sem_ch12.adb (Copy_Generic_Node): Check that name in function
619 call is a valid entity name before preserving entity in generic
622 2013-07-05 Thomas Quinot <quinot@adacore.com>
624 * par-ch5.adb: Minor reformatting.
626 2013-07-05 Thomas Quinot <quinot@adacore.com>
628 * sinfo.ads: Minor clarification to documentation for
629 N_Implicit_Label_Declaration.
631 2013-07-05 Hristian Kirtchev <kirtchev@adacore.com>
633 * a-except-2005.adb, a-except.adb: Add constant Rmsg_17. Correct the
634 values of all remaining constants.
635 (Rcheck_35): New routine along with pragmas Export and No_Return.
636 (Rcheck_PE_Aliased_Parameters): New routine along with pragmas
637 Export and No_Return.
638 (Rcheck_PE_All_Guards_Closed,
639 Rcheck_PE_Bad_Predicated_Generic_Type,
640 Rcheck_PE_Current_Task_In_Entry_Body,
641 Rcheck_PE_Duplicated_Entry_Address, Rcheck_PE_Explicit_Raise,
642 Rcheck_PE_Implicit_Return, Rcheck_PE_Misaligned_Address_Value,
643 Rcheck_PE_Missing_Return, Rcheck_PE_Overlaid_Controlled_Object,
644 Rcheck_PE_Potentially_Blocking_Operation
645 Rcheck_PE_Stubbed_Subprogram_Called,
646 Rcheck_PE_Unchecked_Union_Restriction,
647 Rcheck_PE_Non_Transportable_Actual, Rcheck_SE_Empty_Storage_Pool,
648 Rcheck_SE_Explicit_Raise, Rcheck_SE_Infinite_Recursion,
649 Rcheck_SE_Object_Too_Large, Rcheck_PE_Finalize_Raised_Exception):
650 Update the use of Rmsg_XX.
651 (Rcheck_17, Rcheck_18, Rcheck_19,
652 Rcheck_20, Rcheck_21, Rcheck_22, Rcheck_23, Rcheck_24, Rcheck_25,
653 Rcheck_26, Rcheck_27, Rcheck_28, Rcheck_29, Rcheck_30, Rcheck_31,
654 Rcheck_32, Rcheck_33, Rcheck_34, Rcheck_35): Update corresponding
656 * checks.adb: Add with and use clause for Stringt.
657 (Apply_Parameter_Aliasing_Checks): Make constant Loc visible in
658 all subprograms of Apply_Parameter_Aliasing_Checks. Remove local
659 variable Cond. Initialize Check at the start of the routine. Use
660 routine Overlap_Check to construct a simple or a detailed run-time
661 check. Update the creation of the simple check.
662 (Overlap_Check): New routine.
663 * exp_ch11.adb (Get_RT_Exception_Name): Add a value for
664 PE_Aliased_Parameters.
665 * types.ads: Add new enumeration literal
666 PE_Aliased_Parameters. Update the corresponding integer values
667 of all RT_Exception_Code literals.
668 * types.h: Add new constant PE_Aliased_Parameters. Correct the
669 values of all remaining constants.
671 2013-07-05 Yannick Moy <moy@adacore.com>
673 * gnat_rm.texi: Minor renaming of SPARK into SPARK 2005 in
676 2013-07-05 Ed Schonberg <schonberg@adacore.com>
678 * sem_prag.adb (Analyze_PPC_In_Decl_Part): For a class-wide
679 condition, when replacing the name of a formal by a conversion
680 to the class-wide type, exempt selector names that appear in
681 parameter associations.
683 2013-06-13 Eric Botcazou <ebotcazou@adacore.com>
685 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): Delete.
686 * gcc-interface/gigi.h (annotate_object): Adjust prototype.
687 (convert_vms_descriptor): Likewise.
688 * gcc-interface/decl.c (gnat_to_gnu_param): Do not pass fat pointer
689 types by double dereference.
690 (annotate_object): Remove BY_DOUBLE_REF parameter and adjust.
691 (gnat_to_gnu_entity): Adjust calls to annotate_object.
692 * gcc-interface/trans.c (Identifier_to_gnu): Do not deal with double
694 (Call_to_gnu): Likewise.
695 (build_function_stub): Adjust call to convert_vms_descriptor.
696 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
697 * gcc-interface/utils.c (convert_vms_descriptor): Remove BY_REF
698 parameter and adjust.
700 2013-05-30 Eric Botcazou <ebotcazou@adacore.com>
702 * gcc-interface/Makefile.in (arm% androideabi): Robustify.
704 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
706 * gcc-interface/decl.c: (gnat_to_gnu_entity): In ASIS mode, do not
707 check that access types have a set size.
709 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
711 * gcc-interface/decl.c (vinfo_t): New type and associated vector.
712 (components_to_record): Change return type to bool.
713 Lay out the variants in two passes. Do not force a specific layout for
714 the variant part if the variants do not have a representation clause.
715 Take the alignment of the variant part into account when laying out
716 variants without rep clause in a record type with a partial rep clause.
717 (create_rep_part): Do not set the position of the field.
719 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
721 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Last_Bit>: Add kludge
722 to avoid generating an overflow for -1.
724 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
726 * gcc-interface/gigi.h (create_type_decl): Adjust prototype.
727 (create_label_decl): Complete prototype.
728 (process_attributes): Declare.
729 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust multiple calls to
730 create_type_decl throughout.
731 <E_Enumeration_Type>: Do the layout of the type manually and call
732 process_attributes on it. Reindent.
733 <E_Enumeration_Subtype>: Minor tweak.
734 <E_Floating_Point_Subtype>: Reindent.
735 <E_Array_Subtype>: Call process_attributes on the array type built
736 for a packed array type.
737 <E_Record_Type>: Call process_attributes on the type.
738 <E_Record_Subtype>: Likewise.
739 <E_Access_Type>: Likewise.
740 <E_Subprogram_Type>: Likewise.
741 Likewise for all types at the end of the processing.
742 * gcc-interface/utils.c (make_aligning_type): Adjust call to
744 (maybe_pad_type): Likewise.
745 (create_index_type): Likewise.
746 (create_type_decl): Remove attr_list parameter and associated code.
747 (create_var_decl_1): Call process_attributes on the variable.
748 (process_attributes): Take a pointer to the object and add in_place
749 and gnat_node parameters and adjust throughout.
750 <ATTR_MACHINE_ATTRIBUTE>: Pass ATTR_FLAG_TYPE_IN_PLACE only on demand
751 and set the input location.
752 Zap the attribute list at the end.
753 (create_subprog_decl): Call process_attributes on the subprogram.
754 (build_unc_object_type): Adjust call to create_type_decl.
755 (handle_vector_type_attribute): Remove dead code.
757 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
759 * gcc-interface/gigi.h (make_aligning_type): Adjust prototype.
760 * gcc-interface/utils.c (make_aligning_type): Take GNAT_NODE parameter
761 for the position of the associated TYPE_DECL.
762 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust call to above.
763 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
765 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
767 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not prematurely
768 elaborate the full view of a type with a freeze node.
769 * gcc-interface/trans.c (process_type): Add explicit predicate.
771 2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
773 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Always build the
774 UNC variable for aliased objects with unconstrained nominal subtype.
776 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
778 * gcc-interface/gigi.h (gnat_init_gcc_fp): Declare.
779 * gcc-interface/trans.c (gigi): Call it.
780 * gcc-interface/misc.c (gnat_init_gcc_fp): New function.
782 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
784 * gcc-interface/gigi.h (enum inline_status_t): New type.
785 (create_subprog_decl): Adjust prototype.
786 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Adjust
787 calls to create_subprog_decl.
788 (get_minimal_subprog_decl): Likewise.
789 * gcc-interface/trans.c (gigi): Likewise.
790 (build_raise_check): Likewise.
791 (establish_gnat_vms_condition_handler): Likewise.
792 (Compilation_Unit_to_gnu): Likewise.
793 (gnat_to_gnu): Likewise.
794 * gcc-interface/utils.c (create_subprog_decl): Change inline_flag
795 parameter to inline_status and implement for suppressed inlining.
797 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
799 * gcc-interface/ada-tree.h (LOOP_STMT_NO_UNROLL): New define.
800 (LOOP_STMT_UNROLL): Likewise.
801 (LOOP_STMT_NO_VECTOR): Likewise.
802 (LOOP_STMT_VECTOR): Likewise.
803 * gcc-interface/trans.c (struct loop_info_d): Replace label field
805 (Pragma_to_gnu) <Pragma_Loop_Optimize>: New case.
806 (Loop_Statement_to_gnu): Save the loop statement onto the stack
807 instead of the label.
808 (gnat_to_gnu) <N_Exit_Statement>: Retrieve the loop label.
810 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
812 * gcc-interface/trans.c: Include diagnostic.h and opts.h.
813 (Pragma_to_gnu) <Pragma_Warnings>: New case.
815 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
817 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Constify
818 a handful of local variables.
819 For a derived untagged type that renames discriminants, change the type
820 of the stored discriminants to a subtype with the bounds of the type
821 of the visible discriminants.
822 (build_subst_list): Rename local variable.
824 2013-05-16 Jason Merrill <jason@redhat.com>
826 * gcc-interface/Make-lang.in (gnat1$(exeext)): Use link mutex.
828 2013-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
831 * gcc-interface/Makefile.in: Allow for amd64 solaris2.
833 2013-05-07 Eric Botcazou <ebotcazou@adacore.com>
836 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Use
837 int_const_binop to shift bounds by 1 when they are integer constants.
839 2013-04-25 Arnaud Charlet <charlet@adacore.com>>
841 * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Exclude s-init.ad{s,b}
843 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
845 * checks.adb (Apply_Predicate_Check): Update the comment associated
846 with the call to Check_Expression_Against_Static_Predicate.
847 * sem_ch3.adb (Analyze_Object_Declaration): Update the comment
848 associated with the call to Check_Expression_Against_Static_Predicate.
849 * sem_util.adb (Check_Expression_Against_Static_Predicate):
850 Broaden the check from a static expression to an expression with
851 a known value at compile time.
852 * sem_util.ads (Check_Expression_Against_Static_Predicate): Update
855 2013-04-25 Thomas Quinot <quinot@adacore.com>
857 * exp_attr.adb (Expand_N_Attribute_Reference, cases Position,
858 First_Bit, and Last_Bit): Fix incorrect test in implementation of
861 2013-04-25 Claire Dross <dross@adacore.com>
863 * a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads, a-cfhama.adb,
864 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads
865 (Query_Element): Removed.
866 (Update_Element): Removed.
867 (Insert): The version with no New_Item specified is removed.
871 Every check of fields Busy and Lock has been removed.
873 2013-04-25 Robert Dewar <dewar@adacore.com>
875 * sem_prag.adb (Analyze_Pragma, case Contract_Cases): Remove
876 call to S14_Pragma (Find_Related_Subprogram): Require proper
877 placement in subprogram body (Find_Related_Subprogram): Detect
878 duplicates for all cases (Find_Related_Subprogram): Handle case
879 of spec nested inside body.
881 2013-04-25 Arnaud Charlet <charlet@adacore.com>
883 * par-prag.adb: Fix typo.
885 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
887 * checks.adb (Apply_Predicate_Check): If the type has a static
888 predicate and the expression is also static, check whether the
889 expression satisfies the predicate.
890 * sem_ch3.adb (Analyze_Object_Declaration): If the type has a
891 static predicate and the expression is also static, see if the
892 expression satisfies the predicate.
893 * sem_util.adb: Alphabetize several routines.
894 (Check_Expression_Against_Static_Predicate): New routine.
895 * sem_util.ads (Check_Expression_Against_Static_Predicate): New routine.
897 2013-04-25 Robert Dewar <dewar@adacore.com>
899 * gnat_rm.texi: Document Reason argument for pragma Warnings.
900 * par-prag.adb: Handle Reason parameter for pragma Warnings.
901 * sem_prag.adb (Analyze_Pragma, case Warnings): Allow Reason argument.
902 * snames.ads-tmpl (Name_Reason): New name entry.
904 2013-04-25 Yannick Moy <moy@adacore.com>
906 * exp_spark.adb (Expand_SPARK_N_In): Remove procedure.
907 (Expand_SPARK): Remove special expansion for membership tests.
909 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
911 * exp_ch3.adb (Expand_N_Object_Declaration): Update all places
912 that should use constant Base_Typ. When building an invariant
913 check, account for invariants coming from the base type. Prevent
914 the creation of a junk invariant check when the related object
915 is of an array type and it is initialized with an aggregate.
916 * exp_util.adb (Make_Invariant_Call): Typ is now a variable. Use
917 the base type to create an invariant call when the type of the
918 expression is a composite subtype.
920 2013-04-25 Vasiliy Fofanov <fofanov@adacore.com>
922 * a-cborse.adb: Fix minor typo.
924 2013-04-25 Ed Schonberg <schonberg@adacore.com>
926 * sem_ch6.adb (Different_Generic_Profile): A spec and body
927 match in an instance if a subtype declaration that renames a
928 generic actual with the same name appears between spec and body.
930 2013-04-25 Robert Dewar <dewar@adacore.com>
932 * sem_util.adb: Minor reformatting.
934 2013-04-25 Ed Schonberg <schonberg@adacore.com>
936 * exp_aggr.adb (Expand_N_Aggregate): Use special circuitry to
937 fold strings with a single others choice only if there are no
938 expressions in the aggregate.
940 2013-04-25 Arnaud Charlet <charlet@adacore.com>
942 * gnat_ugn.texi: Update doc on Ada 2012 default mode.
944 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
946 * exp_ch6.adb: Add with and use clause for Stringt.
947 (Expand_Contract_Cases): Moved from sem_ch6. Add formal parameters
948 Decls and Stmts along with comments on their usage.
949 * exp_ch6.ads (Expand_Contract_Cases): Moved from sem_ch6.
950 * sem_ch6.adb (Expand_Contract_Cases): Moved to exp_ch6.
951 (Process_Contract_Cases): Update the call to Expand_Contract_Cases.
953 2013-04-25 Ed Schonberg <schonberg@adacore.com>
955 * gnat_rm.texi: Minor editing, to clarify use of dimension aspects.
956 * sem_util.adb (Is_OK_Variable_For_Out_Formal): Reject an
957 aggregate for a packed type, which may be converted into an
958 unchecked conversion of an object.
960 2013-04-25 Robert Dewar <dewar@adacore.com>
962 * sem_prag.adb: Minor code reorganization (correct misspelling
964 * sem_util.adb, aspects.ads, sem_ch6.adb: Minor reformatting.
965 * gnat_rm.texi: Document impl-defined aspects.
966 * sem_dim.adb, sem_dim.ads, gnat_ugn.texi, s-dimmks.ads: Minor
969 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
971 * einfo.adb (Set_Abstract_States): The attribute now applies
973 * sem_ch4.adb (Referenced): Moved to sem_util.
974 * sem_ch7.adb (Unit_Requires_Body): A [generic] package with
975 a non-null abstract state needs a body.
976 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Update the calls
977 to Collect_Subprogram_Inputs_Outputs.
978 (Analyze_Global_Item): Verify the proper usage of an item with mode
979 In_Out or Output relative to the enclosing context.
980 (Analyze_Pragma): Abstract_State can now be applied to a generic
981 package. Do not reset the Analyzed flag for pragmas Depends and Global
982 as this is not needed.
983 (Appears_In): Moved to library level.
984 (Check_Mode_Restiction_In_Enclosing_Context): New routine.
985 (Collect_Subprogram_Inputs_Outputs): Moved to library level. Add
986 formal parameters Subp_Id, Subp_Inputs, Subp_Outputs and Global
987 seen along with comments on usage.
988 * sem_util.ads, sem_util.adb (Referenced): New routine.
990 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
992 * sem_ch6.adb (Expand_Contract_Cases): Generate
993 detailed error messages only when switch -gnateE is in effect.
995 2013-04-25 Yannick Moy <moy@adacore.com>
997 * sem_attr.adb (Analyze_Attribute): Do not issue
998 an error for a possibly misplaced 'Result or 'Old attribute when
999 analyzing the aspect.
1001 2013-04-25 Robert Dewar <dewar@adacore.com>
1003 * sem_ch12.adb, sem_util.adb, sem_ch4.adb: Minor reformatting.
1005 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1007 * sem_ch4.adb (Analyze_Quantified_Expression):
1008 Add local variable Loop_Id. Verify that the loop variable
1009 is used within the condition of the quantified expression.
1010 (Referenced): New routine.
1012 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1014 * sem_case.adb (Analyze_Choices): Enhance the error message
1015 given on a bad use of subtype predicate.
1016 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Enhance
1017 the error message given on a bad use of subtype predicate.
1018 * sem_util.adb (Bad_Predicated_Subtype_Use): Add formal parameter
1019 Suggest_Static. Emit an extra error message advising how to
1020 remedy the bad use of the predicate if the context warrants it.
1021 * sem_util.ads (Bad_Predicated_Subtype_Use): Add formal parameter
1022 Suggest_Static along with a comment explaining its usage.
1024 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1026 * sem_disp.adb (Check_Dispatching_Operation): Further refinement
1027 to checks for AI05-0125: the check for a hidden primitive that
1028 may be overridden by the new declaration only applies if the
1029 hidden operation is never declared. This is not the case if the
1030 operation is declared in a parent unit.
1032 2013-04-25 Robert Dewar <dewar@adacore.com>
1034 * debug.adb: Remove d.X and d.Y entries and documentation.
1035 * exp_ch4.adb (Expand_N_If_Expression): Remove special code used
1036 if expression with actions not available (now always available).
1037 (Expand_Short_Circuit_Operator): Same change.
1038 * gnat1drv.adb (Adjust_Global_Switches) Remove setting
1039 Use_Expression_With_Actions flag, since this is now obsolete.
1040 * opt.ads (Use_Expression_Actions): Removed (always True now).
1041 * sinfo.ads: Minor comment updates.
1043 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1045 * sem_ch12.adb (Check_Generic_Actuals): If an actual is an array
1046 subtype whose base type is currently private, install full view
1047 when compiling instance body.
1049 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1051 * sem_disp.adb (Check_Dispatching_Operation): Refine checks for
1052 AI05-0125: the check for a hidden primitive that may be overridden
1053 by the new declaration is only performed if the declaration comes
1054 from source, and it must carry an explicit overriding indicator.
1056 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1058 * einfo.adb (Abstract_States): The attribute now applies to
1060 * sem_ch3.adb (Analyze_Object_Declaration): Check whether an
1061 object declaration introduces an illegal hidden state.
1062 * sem_prag.adb (Analyze_Abstract_State): Check whether a state
1063 declaration introduces an illegal hidden state.
1064 * sem_util.ads, sem_util.adb (Check_No_Hidden_State): New routine.
1066 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1068 * exp_ch6.adb (Is_Build_In_Place_Function_Call): The call may
1069 be to a protected function, in which case the name in the call
1070 is a selected component.
1072 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1074 * sem_ch4.adb (Analyze_Quantified_Expression):
1075 Warn on a suspicious use of quantifier "some" when "all" was meant.
1076 (No_Else_Or_Trivial_True): New routine.
1078 2013-04-25 Robert Dewar <dewar@adacore.com>
1080 * einfo.ads, einfo.adb: Put back with/use for Namet.
1081 (Get_Pragma): New name (wi new spec) for Find_Pragma.
1082 * sem_ch6.adb: Change name Find_Pragma to Get_Pragma with
1083 different interface.
1085 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1087 * sem_ch3.adb (Is_Visible_Component): In an instance all
1088 components are visible.
1090 2013-04-25 Matthew Heaney <heaney@adacore.com>
1092 * a-rbtgbo.adb, a-crbtgo.adb (Generic_Equal): do not test for
1093 tampering when container empty.
1094 * a-crbtgk.adb (Ceiling, Find, Floor): ditto.
1095 (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint):
1098 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1100 * par-ch12.adb: Move aspects from package specification to
1101 generic package declaration.
1102 * sem_ch12.adb: Analyze aspect specifications before building
1103 and analyzing the generic copy, so that the generated pragmas
1104 are properly taken into account.
1105 * sem_ch13.adb: For compilation unit aspects that apply to a
1106 generic package declaration, insert corresponding pragmas ahead
1107 of visible declarations.
1108 * sprint.adb: Display properly the aspects of a generic type
1111 2013-04-25 Robert Dewar <dewar@adacore.com>
1113 * frontend.adb: Minor reformatting.
1115 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1117 * einfo.ads: Extend documentation on use of Is_Private_Ancestor
1119 * sem_ch3.adb (Is_Visible_Component): Refine predicate for the
1120 case of untagged types derived from private types, to reject
1121 illegal selected components.
1123 2013-04-25 Gary Dismukes <dismukes@adacore.com>
1125 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): Test
1126 for case of selecting from an unexpanded implicit dereference
1127 and do not make a recursive call on such a prefix.
1129 2013-04-25 Doug Rupp <rupp@adacore.com>
1131 * targparm.adb (VXF{_Str}): New tag for vaxfloat.
1132 (Get_Target_Parameters): Handle VXF tag.
1133 * targparm.ads (VAX_Float_On_Target): New boolean.
1134 * system-vms-ia64.ads (VAX_Float): New boolean.
1135 * frontend.adb (Frontend): Handle VAX float boolean.
1137 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1139 * einfo.ads, einfo.adb: Remove with and use clauses for Namet.
1140 (Find_Pragma): New routine.
1141 * sem_util.ads, sem_util.adb (Find_Pragma): Moved to einfo.
1143 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1145 * sem_ch13.adb (Add_Call): Do not capture the nature of the inherited
1147 (Add_Predicates): Save the static predicate for diagnostics and error
1149 (Process_PPCs): Remove local variables Dynamic_Predicate_Present and
1150 Static_Predicate_Present. Add local variable Static_Pred. Ensure that
1151 the expression of a static predicate is static.
1153 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1155 * einfo.adb (Is_Ghost_Subprogram): Remove useless code.
1157 2013-04-25 Robert Dewar <dewar@adacore.com>
1159 * gnat_rm.texi: Minor addition of index entry.
1161 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1163 * sem_ch6.adb (Check_Access_Invariants): Test whether an
1164 invariant procedure is empty before generating a call to it.
1165 (Has_Enabled_Predicate): New routine.
1166 (Has_Null_Body): New routine.
1167 (Process_PPCs): Test whether an invariant procedure is
1168 empty before generating a call to it. Test whether predicates are
1169 enabled for a particular type before generating a predicate call.
1170 * sem_util.ads, sem_util.adb (Find_Pragma): New routine.
1172 2013-04-25 Robert Dewar <dewar@adacore.com>
1174 * sem_ch7.adb, einfo.adb, repinfo.adb, snames.adb-tmpl,
1175 snames.ads-tmpl: Minor reformatting.
1177 2013-04-25 Thomas Quinot <quinot@adacore.com>
1179 * sem_ch7.adb: Minor reformatting.
1181 2013-04-25 Robert Dewar <dewar@adacore.com>
1183 * gnat_rm.texi: Minor fix to Loop_Variant doc (Loop_Entry allowed).
1184 * s-tarest.adb: Minor reformatting.
1186 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
1188 * aspects.ads, aspects.adb: Remove aspect Ghost from all relevant
1190 * einfo.adb: Remove with and use clause for Aspects.
1191 (Is_Ghost_Function): Removed.
1192 (Is_Ghost_Entity): New routine.
1193 (Is_Ghost_Subprogram): New routine.
1194 * einfo.ads: Remove synthesized attribute Is_Ghost_Function
1195 along with its uses in entities. Add synthesized attributes
1196 Is_Ghost_Entity and Is_Ghost_Subprogram along with uses in related
1198 (Is_Ghost_Function): Removed.
1199 (Is_Ghost_Entity): New routine.
1200 (Is_Ghost_Subprogram): New routine.
1201 * par-prag.adb: Remove pragma Ghost from the processing machinery.
1202 * repinfo.adb (List_Mechanisms): Add a value for convention Ghost.
1203 * sem_attr.adb (Analyze_Access_Attribute): Update the check
1204 for ghost subprograms.
1205 * sem_ch4.adb (Analyze_Call): Update the check for calls
1206 to ghost subprograms.
1207 (Check_Ghost_Function_Call): Removed.
1208 (Check_Ghost_Subprogram_Call): New routine.
1209 * sem_ch6.adb (Check_Convention): Rewritten.
1210 (Check_Overriding_Indicator): Remove the check for overriding
1212 (Convention_Of): New routine.
1213 * sem_ch12.adb (Preanalyze_Actuals): Update the check for ghost
1214 generic actual subprograms.
1215 * sem_mech.adb (Set_Mechanisms): Add an entry for convention Ghost.
1216 * sem_prag.adb: Remove the value for pragma Ghost from
1218 (Analyze_Pragma): Remove the processing for pragma Ghost.
1219 (Process_Convention): Emit an error when a ghost
1220 subprogram attempts to override.
1221 (Set_Convention_From_Pragma): Emit an error when a ghost subprogram
1222 attempts to override.
1223 * sinfo.ads: Clarify the usage of field Label_Construct.
1224 * snames.adb-tmpl (Get_Convention_Id): Add an entry for
1225 predefined name Ghost.
1226 (Get_Convention_Name): Add an entry for convention Ghost.
1227 * snames.ads-tmpl: Move predefined name Ghost to the sublist
1228 denoting conventions. Add convention id Ghost. Remove pragma
1231 2013-04-25 Ed Schonberg <schonberg@adacore.com>
1233 * sem_ch7.adb (Swap_Private_Dependents): Do no recurse on child
1234 units if within a generic hierarchy.
1236 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1238 * exp_ch6.adb (Expand_Actuals): Add a predicate check on an
1239 actual the related type has a predicate function.
1240 * sem_ch3.adb (Constant_Redeclaration): Ensure that the related
1241 type has an invariant procedure before building a call to it.
1242 * sem_ch6.adb (Append_Enabled_Item): New routine.
1243 (Check_Access_Invariants): Use routine
1244 Append_Enabled_Item to chain onto the list of postconditions.
1245 (Contains_Enabled_Pragmas): Removed.
1246 (Expand_Contract_Cases): Use routine Append_Enabled_Item to chain onto
1247 the list of postconditions.
1248 (Invariants_Or_Predicates_Present): Removed.
1249 (Process_PPCs): Partially reimplemented.
1251 2013-04-24 Sergey Rybin <rybin@adacore.com frybin>
1253 * tree_io.ads: Update ASIS_Version_Number because of changes
1254 in the way how entities are chained in a scope by means of
1257 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1259 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
1260 Storage_Size): If the clause is not from an aspect, insert
1261 assignment to size variable of task type at the point of the
1262 clause, not after the task definition, to prevent access before
1263 elaboration in the back-end.
1265 2013-04-24 Yannick Moy <moy@adacore.com>
1267 * sem_prag.adb (Sig_Flags): Set correct value for Pragma_Assume.
1269 2013-04-24 Yannick Moy <moy@adacore.com>
1271 * gnat_rm.texi: Document 'Loop_Entry.
1273 2013-04-24 Jose Ruiz <ruiz@adacore.com>
1275 * s-tassta.adb, s-tarest.adb (Task_Wrapper): Start looking for
1276 fall-back termination handlers from the parents, because they apply
1277 only to dependent tasks.
1278 * s-solita.adb (Task_Termination_Handler_T): Do not look for fall-back
1279 termination handlers because the environment task has no parent,
1280 and if it defines one of these handlers it does not apply to
1281 itself because they apply only to dependent tasks.
1283 2013-04-24 Robert Dewar <dewar@adacore.com>
1285 * sem_type.adb, exp_attr.adb, exp_ch4.adb: Minor reformatting.
1287 2013-04-24 Robert Dewar <dewar@adacore.com>
1289 * gnat_rm.texi: Document 'Update attribute.
1290 * sem_attr.adb (Analyze_Attribute, case Update): Remove call
1291 to S14_Attribute (S14_Attribute): removed.
1293 2013-04-24 Robert Dewar <dewar@adacore.com>
1295 * interfac.ads: Add size clauses for IEEE_Float_32/64
1297 2013-04-24 Claire Dross <dross@adacore.com>
1299 * gnat1drv.adb (Adjust_Global_Switches): Remove
1300 special assignment of Use_Expression_With_Actions for SPARK_Mode.
1302 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1304 * checks.adb (Apply_Predicate_Check): Check for the presence
1305 of the dynamic predicate aspect when trying to determine if the
1306 predicate of a type is non-static.
1307 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
1308 for the presence of the dynamic predicate aspect when trying to
1309 determine if the predicate of a type is non- static.
1310 * sem_ch13.adb (Add_Call): Capture the nature of the
1311 inherited ancestor predicate.
1312 (Build_Predicate_Functions): Update comments. Rewrite the checks on
1313 static predicate application. Complain about the form of a non-static
1314 expression only when the type is static.
1316 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1318 * sem_prag.adb: Add guard to tree traversal.
1320 2013-04-24 Vincent Celier <celier@adacore.com>
1322 * clean.adb (Clean): Remove local variable Root_Environment,
1323 use Makeutl.Root_Environment instead.
1324 * gnatcmd.adb: Remove local variable Root_Environment, use
1325 Makeutl.Root_Environment instead.
1326 * make.adb (Gnatmake): Remove local variable Root_Environment,
1327 use Makeutl.Root_Environment instead.
1328 * prj-makr.adb: Remove local variable Root_Environment, use
1329 Makeutl.Root_Environment instead.
1331 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1333 * exp_attr.adb (Expand_Loop_Entry_Attribute): Clarify the
1334 extraction of the declarative part of the conditional block. Move
1335 the processing of simple infinite loops to the start of the
1336 expansion logic. Correct the check which determines whether the
1337 proper scope is installed in visibility.
1338 * sem_attr.adb (Analyze_Attribute): Add local variable Attr
1339 to keep track of the attribute in case the enclosing indexed
1340 component has to be rewritten. When searching for the enclosing
1341 loop, start from the proper attribute reference in case of a
1342 rewriting. Do not allow for 'Loop_Entry to appear in pragma
1343 Assert. Replace loop variable J with Index. Set the type of the
1345 * sem_ch5.adb (Check_Unreachable_Code): Detect a specialized
1346 block that services a loop statement subject to at least one
1347 'Loop_Entry attribute.
1349 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1351 * sem_type.adb (Disambiguate): In Ada 2012 mode, when trying to
1352 resolve a fixed point operation, use first subtype to determine
1353 whether type and operator are declared in the same list of
1356 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1358 * par-ch6.adb (P_Subprogram): Detect an illegal
1359 placement of the aspect specification list in the context of
1360 expression functions.
1362 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1364 * exp_ch4.adb (Expand_N_Allocator): If the designated object
1365 has tasks, and the pointer type is an itype that has no master
1366 id, create a master renaming in the current context, which can
1367 only be an init_proc.
1369 2013-04-24 Robert Dewar <dewar@adacore.com>
1371 * sem_ch3.adb, sem_ch7.adb: Minor reformatting.
1372 * gnat_rm.texi: Document pragma Loop_Invariant.
1373 * sem_attr.adb (Analyze_Attribute, case Loop_Entry): This is
1374 no longer an S14_Attribute.
1375 * sem_prag.adb (Analyze_Pragma, case Loop_Invariant): Combine
1376 processing with Assert, allow message parameter, remove call
1379 2013-04-24 Thomas Quinot <quinot@adacore.com>
1381 * exp_ch4.adb: Minor reformatting.
1383 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1385 * sem_ch7.adb (Swap_Private_Dependents): New internal routine
1386 to Install_Private_Declarations, to make the installation of
1387 private dependents recursive in the presence of child units.
1388 * sem_ch3.adb (Build_Discriminated_Subtype): Initialize properly
1389 the Private_Dependents of a private subtype.
1391 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1393 * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the
1394 retrieval of the block declarations.
1395 * par-ch4.adb (P_Name): Let the name parsing machinery create
1396 a sequence of nested indexed components for attribute Loop_Entry.
1397 * sem_attr.adb (Analyze_Attribute): Add local constant
1398 Context. Reimplement part of the analysis of attribute Loop_Entry.
1399 (Convert_To_Indexed_Component): Removed.
1400 * sem_ch4.adb (Analyze_Indexed_Component_Form): Do not analyze
1401 an indexed component after it has been rewritten into attribute
1404 2013-04-24 Yannick Moy <moy@adacore.com>
1406 * snames.ads-tmpl: Minor change to list
1407 Loop_(In)variant not in configuration pragma.
1408 * sem_ch3.adb (Analyze_Declarations): Do not look at the original node
1409 for analyzing the expressions in pre/postconditions.
1411 2013-04-24 Robert Dewar <dewar@adacore.com>
1413 * gnatcmd.adb, xref_lib.adb, gnatls.adb, sem_ch13.adb: Minor
1416 2013-04-24 Yannick Moy <moy@adacore.com>
1418 * sem_ch6.adb (Analyze_Generic_Subprogram_Body,
1419 Analyze_Subprogram_Body_Helper): Reset contract node to Empty
1420 before setting entity to E_Subprogram_Body.
1421 * sem_ch8.adb (Analyze_Subprogram_Renaming): Reset contract node to
1422 Empty before setting entity to E_Subprogram_Body.
1424 2013-04-24 Vincent Celier <celier@adacore.com>
1426 * gnat_ugn.texi: Document new gnatls switch -aPdir.
1427 * gnatcmd.adb: Pass switch -aP<dir> to gnatls.
1428 * gnatls.adb (Scan_Ls_Arg): Process new switch -aP<dir>. Issue
1429 a warning for unknown switches.
1430 (Usage): Add line for new switch -aPdir.
1432 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1434 * sem_util.adb, sem_util.ads (Is_Limited_Class_Wide_Type): Return true
1435 if the type comes from a limited view, so that task attributes can be
1438 2013-04-24 Yannick Moy <moy@adacore.com>
1440 * checks.adb (Apply_Float_Conversion_Check): Do not apply checks if
1441 full expansion is not enabled.
1443 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1445 * sem_ch6.adb (Create_Extra_Formals): In Ada 2012, create extra
1446 formals if the type does not yet have a completion, and thus
1447 has no underlying view.
1449 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1451 * sem_ch13.adb (Analyze_Aspect_Specifications): Treat an aspect
1452 specification for Address as a reference, to suppress warnings
1453 on entities that may be read by an external device.
1455 2013-04-24 Sergey Rybin <rybin@adacore.com frybin>
1457 * gnat_ugn.texi: Add description of '--help' and '--version'
1458 options for ASIS tools: gnatelim, gnatmetric, gnatstub, gnatpp.
1460 2013-04-24 Arnaud Charlet <charlet@adacore.com>
1462 * gnat_rm.texi: Minor syntax fix.
1464 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1466 * exp_attr.adb (Expand_Loop_Entry_Attribute): Add extra comments on
1467 what and why is being analyzed. Remove the decoration of renamings as
1468 this simply falls out of the general analysis mechanism.
1470 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1472 * sem_res.adb (Explain_Redundancy): New routine.
1473 (Resolve_Equality_Op): Place the error concerning a redundant
1474 comparison to True at the "=". Try to explain the nature of the
1477 2013-04-24 Javier Miranda <miranda@adacore.com>
1480 * checks.adb, exp_ch6.adb (Install_Null_Excluding_Check): No
1481 check in interface thunks since it is performed at the caller
1483 (Expand_Simple_Function_Return): No accessibility check
1484 needed in thunks since the check is done by the target routine.
1486 2013-04-24 Vincent Celier <celier@adacore.com>
1488 * xref_lib.adb (Add_Entity): Use the canonical file names
1489 so that source file names with capital letters are found on
1490 platforms where file names are case insensitive.
1492 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1494 * par-ch4.adb (P_Name): Continue to parse the name extension when the
1495 construct is attribute Loop_Entry. Do not convert the attribute
1496 reference into an indexed component when there is at least one
1497 expression / range following 'Loop_Entry.
1499 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1501 * sem_ch6.adb (Contains_Enabled_Pragmas): New routine.
1502 (Process_PPCs): Generate procedure _Postconditions
1503 only when the context has invariants or predicates or enabled
1506 2013-04-24 Thomas Quinot <quinot@adacore.com>
1508 * g-socket.adb (Host_Entry): Introduce intermediate copy of
1509 memory location pointed to by Hostent_H_Addr, as it might not
1510 have sufficient alignment.
1512 2013-04-24 Yannick Moy <moy@adacore.com>
1514 * repinfo.adb (List_Rep_Info): Set the value of Unit_Casing before
1515 calling subprograms which may read it.
1517 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1519 * einfo.adb: Remove Loop_Entry_Attributes from the usage of
1520 nodes. Flag 260 is now used.
1521 (Has_Loop_Entry_Attributes): New routine.
1522 (Loop_Entry_Attributes): Removed.
1523 (Set_Has_Loop_Entry_Attributes): New routine.
1524 (Set_Loop_Entry_Attributes): Removed.
1525 (Write_Entity_Flags): Write out Flag 260.
1526 (Write_Field10_Name): Remove the output for Loop_Entry_Attributes.
1527 * einfo.ads: Remove attribute Loop_Entry_Attributes,
1528 its related comment and uses in nodes. Add new attribute
1529 Has_Loop_Entry_Attributes, related comment and uses in loop nodes.
1530 (Has_Loop_Entry_Attributes): New routine and pragma Inline.
1531 (Loop_Entry_Attributes): Removed along with pragma Inline.
1532 (Set_Has_Loop_Entry_Attributes): New routine and pragma Inline.
1533 (Set_Loop_Entry_Attributes): Removed along with pragma Inline.
1534 * exp_attr.adb (Expand_Loop_Entry_Attribute): New routine.
1535 (Expand_N_Attribute_Reference): Expand attribute 'Loop_Entry.
1536 * exp_ch5.adb: Remove with and use clause for Elists.
1537 (Expand_Loop_Entry_Attributes): Removed.
1538 (Expand_N_Loop_Statement): Add local variable Stmt. Rename local
1539 constant Isc to Scheme. When a loop is subject to attribute
1540 'Loop_Entry, retrieve the nested loop from the conditional
1541 block. Move the processing of controlled object at the end of
1543 * sem_attr.adb (Analyze_Attribute): Do not chain attribute
1544 'Loop_Entry to its related loop.
1545 * sem_ch5.adb (Analyze_Loop_Statement): Add local variable
1546 Stmt. When the iteration scheme mentions attribute 'Loop_Entry,
1547 the entire loop is rewritten into a block. Retrieve the nested
1548 loop in such cases to complete the analysis.
1549 * sem_util.ads, sem_util.adb (Find_Loop_In_Conditional_Block): New
1551 (Subject_To_Loop_Entry_Attributes): New routine.
1553 2013-04-24 Robert Dewar <dewar@adacore.com>
1555 * exp_prag.adb (Expand_Loop_Variant): Generate pragma Check
1556 (Loop_Variant, xxx) rather than Assert (xxx).
1557 * gnat_rm.texi: Document pragma Loop_Variant.
1558 * sem_prag.adb (Analyze_Pragma, case Loop_Variant): Remove call
1561 2013-04-24 Yannick Moy <moy@adacore.com>
1563 * adabkend.adb, ali-util.adb, ali.adb, debug.adb,
1564 errout.adb, errout.ads, erroutc.adb, exp_ch3.adb, exp_ch4.adb,
1565 exp_ch6.adb, exp_ch7.adb, exp_dbug.adb, exp_util.adb,
1566 expander.adb, freeze.adb, gnat1drv.adb, lib-writ.adb,
1567 lib-writ.ads, lib-xref.adb, lib-xref.ads, opt.adb, opt.ads,
1568 restrict.adb, sem_aggr.adb, sem_attr.adb, sem_ch3.adb,
1569 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_eval.adb, sem_prag.adb,
1570 sem_res.adb, sem_util.adb: Everything with name
1571 'Alfa' renamed in 'SPARK'. Update comments.
1572 Renaming of units with name 'Alfa', renamed with 'SPARK' instead.
1573 * exp_alfa.adb: renamed exp_spark.adb.
1574 * exp_alfa.ads: renamed exp_spark.ads.
1575 * get_alfa.adb: renamed get_spark_xrefs.adb.
1576 * get_alfa.ads: renamed get_spark_xrefs.ads.
1577 * lib-xref-alfa.adb: renamed lib-xref-spark_specific.adb.
1578 * put_alfa.adb: renamed put_spark_xrefs.adb.
1579 * put_alfa.ads: renamed put_spark_xrefs.ads.
1580 * alfa.adb: renamed spark_xrefs.adb.
1581 * alfa.ads: renamed spark_xrefs.ads.
1582 * alfa_test.adb: renamed spark_xrefs_test.adb.
1583 * gcc-interface/Make-lang.in: Update dependencies.
1585 2013-04-24 Robert Dewar <dewar@adacore.com>
1587 * gnat_rm.texi: Document pragma Assume.
1588 * sem_prag.adb (Analyze_Pragma, case Assume): Now processed as
1589 part of Assert, and no longer requires -gnatd.F
1591 2013-04-24 Robert Dewar <dewar@adacore.com>
1593 * gnat_rm.texi: Document pragma Assert_And_Cut.
1594 * sem_prag.adb (Analyze_Pragma, case Assert_And_Cut): Remove
1597 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1599 * sem_aux.adb: Add guard in Available_View.
1601 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1603 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Use
1604 Find_Related_Subprogram to find the associated subprogram.
1605 (Analyze_Global_In_Decl_List): Use Find_Related_Subprogram
1606 to find the associated subprogram.
1607 (Analyze_Pragma): Use Find_Related_Subprogram to find the associated
1610 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1612 * exp_ch6.adb: Remove with and use clause for Sem_Prag.
1613 (Freeze_Subprogram): Call Analyze_Subprogram_Contract to analyze
1614 the contract of a subprogram.
1615 * sem_ch3.adb: Remove with and use clause for Sem_Prag.
1616 (Analyze_Declarations): Call Analyze_Subprogram_Contract to
1617 analyze the contract of a subprogram.
1618 * sem_ch6.adb (Analyze_Subprogram_Contract): New routine.
1619 (Check_Subprogram_Contract): Removed.
1620 * sem_ch6.ads (Analyze_Subprogram_Contract): New routine.
1621 (Check_Subprogram_Contract): Removed.
1622 (Expand_Contract_Cases): Add a guard against malformed contract cases.
1623 * sem_ch13.adb (Analyze_Aspect_Specifications): Call
1624 Decorate_Delayed_Aspect_And_Pragma to decorate aspects
1625 Contract_Cases, Depends and Global. Reimplement the analysis of
1626 aspect Contract_Cases.
1627 (Decorate_Delayed_Aspect_And_Pragma): New routine.
1628 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): New routine.
1629 (Analyze_CTC_In_Decl_Part): Removed.
1630 (Analyze_Pragma): Reimplement the analysis of pragma Contract_Cases.
1631 (Analyze_Test_Case_In_Decl_Part): New routine.
1632 (Find_Related_Subprogram): New routine.
1633 (Requires_Profile_Installation): Add new formal Prag. Update
1634 the logic to take into account the origin of the pragma.
1635 * sem_prag.ads (Analyze_Contract_Cases_In_Decl_Part): New routine.
1636 (Analyze_CTC_In_Decl_Part): Removed.
1637 (Analyze_Test_Case_In_Decl_Part): New routine.
1639 2013-04-24 Robert Dewar <dewar@adacore.com>
1641 * sem_prag.adb (Process_Convention): Move Stdcall tests to
1642 Set_Convention_From_Pragma so that they are applied to each
1643 entry of a homonym set.
1644 (Process_Convention): Don't try to set convention if already set.
1646 2013-04-24 Robert Dewar <dewar@adacore.com>
1648 * gnatbind.adb: Minor reformatting.
1650 2013-04-24 Vincent Celier <celier@adacore.com>
1652 * clean.adb (Gnatclean): Add the default project search
1653 directories in the project search path after scanning the
1654 switches on the command line.
1655 (Initialize): Do not put the default project search directories in the
1656 project search path.
1657 * gnatcmd.adb (GNATcmd): Add the default project search
1658 directories in the project search path after scanning the switches
1659 on the command line.
1660 * make.adb (Initialize): Add the default project search
1661 directories in the project search path after scanning the switches
1662 on the command line.
1664 2013-04-24 Yannick Moy <moy@adacore.com>
1666 * restrict.ads (Restriction_Warnings): Initialize with all False value.
1668 2013-04-24 Robert Dewar <dewar@adacore.com>
1670 * checks.ads, checks.adb (Predicate_Checks_Suppressed): New function.
1671 * exp_util.ads, exp_util.adb (Make_Predicate_Check): Check setting of
1673 * snames.ads-tmpl (Name_Predicate_Check): New check name.
1674 * types.ads (Predicate_Check): New definition.
1675 * gnat_rm.texi: Add documentation for Predicate_Check.
1677 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1679 * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): If this
1680 is a renaming of predefined equality for an untagged record,
1681 add generated body to the freeze actions for the subprogram, to
1682 prevent freezing issues when the record has incomplete components.
1683 * exp_ch4.adb (Expand_Composite_Equality): If the type is a type
1684 without completion, return a predefined comparison instead of
1685 just False. This may happen when building the expression for
1686 record equality, when some component has a type whose completion
1687 has not been seen yet. The operation will be analyzed an expanded
1688 after the type has been frozen, at which point all component
1689 types will have been completed, or an error reported.
1691 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1693 * sem_ch13.adb (Analyze_Aspect_Specifications): Do not delay
1694 analysis of a Convention aspect.
1696 2013-04-24 Eric Botcazou <ebotcazou@adacore.com>
1698 * fe.h (Machine_Overflows_On_Target): New macro and declaration.
1699 (Signed_Zeros_On_Target): Likewise.
1701 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1703 * exp_ch6.adb: Add with and use clause for Sem_Prag.
1704 (Freeze_Subprogram): Analyze all delayed aspects for a null
1705 procedure so that they are available when analyzing the
1706 internally-generated _Postconditions routine.
1707 * exp_ch13.adb: Remove with and use clause for Sem_Prag.
1708 (Expand_N_Freeze_Entity): Move the code that analyzes delayed
1709 aspects of null procedures to exp_ch6.Freeze_Subprogram.
1710 * sem_prag.adb (Analyze_Abstract_State): Update the check on
1711 volatile requirements.
1713 2013-04-24 Bob Duff <duff@adacore.com>
1715 * ali-util.ads (Source_Record): New component Stamp_File
1716 to record from whence the Stamp came.
1717 * ali-util.adb (Set_Source_Table): Set Stamp_File component.
1718 * bcheck.adb (Check_Consistency): Print additional information in
1720 * gnatbind.adb (Gnatbind): Print additional information in
1723 2013-04-24 Robert Dewar <dewar@adacore.com>
1725 * exp_ch13.adb, sem_prag.adb: Update comments.
1726 * sem_ch3.adb, exp_ch9.adb, g-socket.adb, sem_ch13.adb: Minor
1729 2013-04-24 Doug Rupp <rupp@adacore.com>
1731 * vms_data.ads (/{NO}INHIBIT-EXEC): Document new default behavior.
1733 2013-04-24 Yannick Moy <moy@adacore.com>
1735 * sinfo.ads: Minor correction of typo.
1737 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1739 * sem_ch3.adb: Create packed array only when expander is
1742 2013-04-24 Hristian Kirtchev <kirtchev@adacore.com>
1744 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Install the formals only
1745 when the context warrants it.
1746 (Analyze_Global_In_Decl_List): Install the formals only when
1747 the context warrants it.
1748 (Requires_Profile_Installation): New routine.
1750 2013-04-24 Ed Schonberg <schonberg@adacore.com>
1752 * exp_ch6.adb (Expand_N_Simple_Return_Statement): When the return
1753 type is a discriminated private type that does not require use
1754 of the secondary stack, a constrained subtype of the underlying
1755 type is created to convey the proper object size to the backend.
1756 If the return type is originally a private type, the return
1757 expression is wrapped in an unchecked_conversion. If the return
1758 expression is used subsequently in a call to the postcondition
1759 function, this conversion must be undone to prevent a spurious
1760 error on the analysis of that call.
1762 2013-04-23 Kai Tietz <ktietz@redhat.com>
1765 * raise-gcc.c (__SEH__): Additional check that SjLj isn't active.
1767 2013-04-23 Eric Botcazou <ebotcazou@adacore.com>
1768 Pascal Obry <obry@adacore.com>
1770 * gcc-interface/Makefile.in (targ): Fix target name check.
1771 (../../gnatmake$(exeext)): Add '+' for LTO.
1772 (../../gnatlink$(exeext)): Likewise.
1774 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
1776 * exp_ch9.adb (Build_PPC_Wrapper): Correct the traversal of
1777 pre- and post-conditions.
1778 (Expand_N_Task_Type_Declaration):
1779 Use the correct attribute to check for pre- and post-conditions.
1780 * exp_ch13.adb (Expand_N_Freeze_Entity): Correct the traversal of
1781 pre- and post-conditions. Analyze delayed classification items.
1782 * freeze.adb (Freeze_Entity): Use the correct attribute to
1783 check for pre- and post- conditions.
1784 * sem_ch3.adb (Analyze_Declarations): Correct the traversal
1785 of pre- and post-conditions as well as contract- and
1786 test-cases. Analyze delayed pragmas Depends and Global.
1787 * sem_ch6.adb (Check_Subprogram_Contract): Use the correct
1788 attribute to check for pre- and post-conditions, as well as
1789 contract-cases and test-cases. (List_Inherited_Pre_Post_Aspects):
1790 Correct the traversal of pre- and post- conditions.
1791 (Process_Contract_Cases): Update the comment on usage. Correct
1792 the traversal of contract-cases.
1793 (Process_Post_Conditions): Update the comment on usage. Correct the
1794 traversal of pre- and post-conditions.
1795 (Process_PPCs): Correct the traversal of pre- and post-conditions.
1796 (Spec_Postconditions): Use the correct
1797 attribute to check for pre- and post- conditions, as well as
1798 contract-cases and test-cases.
1799 * sem_ch13.adb (Analyze_Aspect_Specifications): Reimplement the
1800 actions related to aspects Depends and Global. Code refactoring
1801 for pre- and post-conditions.
1802 (Insert_Delayed_Pragma): New routine.
1803 * sem_prag.adb (Add_Item): New routine.
1804 (Analyze_Depends_In_Decl_Part): New routine.
1805 (Analyze_Global_In_Decl_Part): New routine.
1806 (Analyze_Pragma): Reimplement the actions related to aspects Depends and
1807 Global. Verify that a body acts as a spec for pragma Contract_Cases.
1808 (Chain_PPC): Use Add_Contract_Item to chain a pragma.
1809 (Chain_CTC): Correct the traversal of contract-
1810 and test-cases. Use Add_Contract_Item to chain a pragma.
1811 (Chain_Contract_Cases): Correct the traversal of contract-
1812 and test-cases. Use Add_Contract_Item to chain a pragma.
1813 (Check_Precondition_Postcondition): Update the comment on usage.
1814 (Check_Test_Case): Update the comment on usage.
1815 * sem_prag.ads (Analyze_Depends_In_Decl_Part): New routine.
1816 (Analyze_Global_In_Decl_Part): New routine.
1817 * sem_util.ads, sem_util.adb (Add_Contract_Item): New routine.
1818 * sinfo.adb (Classifications): New routine.
1819 (Contract_Test_Cases): New routine.
1820 (Pre_Post_Conditions): New routine.
1821 (Set_Classifications): New routine.
1822 (Set_Contract_Test_Cases): New routine.
1823 (Set_Pre_Post_Conditions): New routine.
1824 (Set_Spec_CTC_List): Removed.
1825 (Set_Spec_PPC_List): Removed.
1826 (Spec_CTC_List): Removed.
1827 (Spec_PPC_List): Removed.
1828 * sinfo.ads: Update the structure of N_Contruct along with all
1830 (Classifications): New routine and pragma Inline.
1831 (Contract_Test_Cases): New routine and pragma Inline.
1832 (Pre_Post_Conditions): New routine and pragma Inline.
1833 (Set_Classifications): New routine and pragma Inline.
1834 (Set_Contract_Test_Cases): New routine and pragma Inline.
1835 (Set_Pre_Post_Conditions): New routine and pragma Inline.
1836 (Set_Spec_CTC_List): Removed.
1837 (Set_Spec_PPC_List): Removed.
1838 (Spec_CTC_List): Removed.
1839 (Spec_PPC_List): Removed.
1841 2013-04-23 Doug Rupp <rupp@adacore.com>
1843 * init.c (GNAT$STOP) [VMS]: Bump sigargs[0] count by 2
1844 to account for LIB$STOP not having the chance to add the PC and
1847 2013-04-23 Robert Dewar <dewar@adacore.com>
1849 * sem_ch13.adb: Minor code reorganization (remove some redundant
1851 * sem_ch3.adb, sem_prag.adb: Minor reformatting.
1853 2013-04-23 Yannick Moy <moy@adacore.com>
1855 * einfo.ads: Minor typo fix.
1856 * sem_ch13.adb (Build_Predicate_Functions): Reject cases where
1857 Static_Predicate is applied to a non-scalar or non-static type.
1858 * sem_prag.adb: Minor typo fix.
1860 2013-04-23 Doug Rupp <rupp@adacore.com>
1862 * init.c (GNAT$STOP) [VMS]: New function.
1864 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1866 * sem_ch3.adb: Add exp_pakd to context.
1867 (Constrain_Component_Type): If the component of the parent is
1868 packed, and the record subtype being built is already frozen,
1869 as is the case for an itype, the component type itself will not
1870 be frozen, and the packed array type for it must be constructed
1873 2013-04-23 Thomas Quinot <quinot@adacore.com>
1875 * g-socket.adb, g-socket.ads (Set_Close_On_Exec): New subprogram.
1877 2013-04-23 Yannick Moy <moy@adacore.com>
1879 * err_vars.ads (Error_Msg_Qual_Level): Set variable to zero
1881 * opt.ads (Multiple_Unit_Index): Set variable to zero at declaration.
1882 * sem_util.adb (NCT_Table_Entries): Set variable to zero at declaration.
1883 * set_targ.ads (Num_FPT_Modes): Set variable to zero at declaration.
1884 * stylesw.adb (Save_Style_Check_Options): Protect testing the
1885 value of Style_Check_Comments_Spacing by a previous test that
1886 Style_Check_Comments is True.
1888 2013-04-23 Thomas Quinot <quinot@adacore.com>
1890 * sem_prag.adb, sem_prag.ads (Effective_Name): Rename to
1891 Original_Name, and move declaration to package body as this
1892 subprogram is not used from outside. Also clarify documentation.
1894 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1896 * exp_ch6.adb (Expand_N_Subprogram_Body): When compiling with
1897 initialize_scalars, disable predicate checks on the generated
1898 assignment to an out scalar parameter.
1900 2013-04-23 Gary Dismukes <dismukes@adacore.com>
1902 * sem_ch4.adb (Analyze_Allocator): Remove error
1903 check for "constrained in partial view" constraints entirely.
1905 2013-04-23 Robert Dewar <dewar@adacore.com>
1907 * einfo.ads, sem_prag.ads: Minor reformatting.
1908 * errout.ads: Comment update.
1910 2013-04-23 Yannick Moy <moy@adacore.com>
1912 * exp_ch5.adb: Minor typo.
1914 2013-04-23 Thomas Quinot <quinot@adacore.com>
1916 * gnat_ugn.texi: Fix typo.
1918 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1920 * einfo.ads: Minor documentation clarification.
1922 2013-04-23 Bob Duff <duff@adacore.com>
1924 * types.ads: Fix incorrect comment.
1926 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1928 * sem_aux.adb sem_aux.ads (Effectively_has_Constrained_Partial_View):
1929 Rename subprogram as Object_Type_Has_Constrained_Partial_View, better
1930 description of purpose.
1931 * checks.adb (Apply_Discriminant_Check): Use above renaming.
1932 * sem_ch4.adb (Analyze_Allocator): Check Has_Constrained_Partial_View
1933 of the base type, rather than using the Object_Type predicate.
1934 * sem_attr.adb (Analyze_Attribute, case 'Access): Use above renaming.
1935 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): ditto.
1936 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Constrained): Ditto.
1937 * exp_ch4.adb (Expand_N_Allocator): Ditto.
1939 2013-04-23 Robert Dewar <dewar@adacore.com>
1941 * exp_prag.adb (Expand_Pragma_Check): Check for Assert rather
1943 * sem_prag.adb (Is_Valid_Assertion_Kind): Moved to spec
1944 (Effective_Name): New function (Analyze_Pragma, case Check):
1945 Disallow [Statement_]Assertions (Check_Kind): Implement
1946 Statement_Assertions (Check_Applicable_Policy): Use Effective_Name
1947 (Is_Valid_Assertion_Kind): Allow Statement_Assertions.
1948 * sem_prag.ads (Is_Valid_Assertion_Kind): Moved here from body
1949 (Effective_Name): New function.
1950 * sem_res.adb: Minor reformatting.
1951 * snames.ads-tmpl (Name_Statement_Assertions): New entry.
1952 * gnat_rm.texi: Add documentation of new assertion kind
1953 Statement_Assertions.
1955 2013-04-23 Robert Dewar <dewar@adacore.com>
1957 * sinfo.ads, einfo.adb, sem_res.adb, exp_ch6.adb, aspects.adb: Minor
1958 reformatting and code clean up.
1960 2013-04-23 Vincent Celier <celier@adacore.com>
1962 * prj-part.ads, prj-conf.ads: Minor comment updates.
1964 2013-04-23 Ed Schonberg <schonberg@adacore.com>
1966 * einfo.adb (Predicate_Function): For a private type, retrieve
1967 predicate function from full view.
1968 * aspects.adb (Find_Aspect): Ditto.
1969 * exp_ch6.adb (Expand_Actuals): If the formal is class-wide and
1970 the actual is a definite type, apply predicate check after call.
1971 * sem_res.adb: Do not apply a predicate check before the call to
1972 a generated Init_Proc.
1974 2013-04-23 Robert Dewar <dewar@adacore.com>
1976 * sem_ch13.adb (Analyze_Aspect_Specifications): Significant
1977 rewrite to make sure Is_Ignore is properly captured when aspect
1979 * sem_ch6.adb: Minor reformatting.
1980 * sem_prag.adb (Analyze_Pragma): Do not test policy at time of
1981 pragma for the case of a pragma coming from an aspect (already
1982 tested when we analyzed the aspect).
1984 2013-04-23 Vincent Celier <celier@adacore.com>
1986 * prj-conf.adb (Parse_Project_And_Apply_Config): New
1987 Boolean parameter Implicit_Project, defaulted to False. Call
1988 Prj.Part.Parse with Implicit_Project.
1989 * prj-conf.ads (Parse_Project_And_Apply_Config): New Boolean
1990 parameter Implicit_Project, defaulted to False.
1991 * prj-part.adb (Parse_Single_Project): New Boolean parameter
1992 Implicit_Project, defaulted to False. When Implicit_Project is
1993 True, change the Directory of the project node to the Current_Dir.
1994 * prj-part.ads (Parse): New Boolean parameter, defaulted to False
1996 2013-04-23 Robert Dewar <dewar@adacore.com>
1998 * exp_util.adb: Minor reformatting.
2000 2013-04-23 Robert Dewar <dewar@adacore.com>
2002 * xoscons.adb: Minor reformatting.
2004 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
2006 * sem_prag.adb (Check_Mode): Ensure that a
2007 self-referential output appears in both input and output lists of
2008 the subprogram as categorized by aspect Global.
2009 (Check_Usage): Rename formal parameters to better illustrate their
2010 function. Update all uses of the said formals.
2012 2013-04-23 Thomas Quinot <quinot@adacore.com>
2014 * exp_util.adb, exp_util.ads (Fully_Qualified_Name_String): New
2015 parameter Append_NUL to make NUL-termination optional.
2016 * exp_dist.adb: Consistently use the above throughout instead of
2017 Get_Library_Unit_Name_String.
2019 2013-04-23 Robert Dewar <dewar@adacore.com>
2021 * sem_util.adb, sem_res.adb, prj-tree.adb, prj-tree.ads: Minor
2024 2013-04-23 Pascal Obry <obry@adacore.com>
2026 * xoscons.adb: Remove unused use clause, minor code clean-up.
2028 2013-04-23 Ed Schonberg <schonberg@adacore.com>
2030 * sem_util.ads, sem_util.adb: Code cleanup for Is_Expression_Function
2031 (can apply to any scope entity).
2032 * sem_res.adb (Resolve_Call): If the call is within another
2033 expression function it does not constitute a freeze point.
2035 2013-04-23 Yannick Moy <moy@adacore.com>
2037 * exp_ch6.adb (Expand_Actuals): Test that Subp
2038 is overloadable before testing if it's an inherited operation.
2040 2013-04-23 Robert Dewar <dewar@adacore.com>
2042 * a-envvar.adb, a-envvar.ads, exp_util.adb, sem_ch12.adb: Minor
2045 2013-04-23 Ed Schonberg <schonberg@adacore.com>
2047 * sem_ch3.adb (Analyze_Object_Declarations): Undo previous patch.
2048 * exp_util.adb (Expand_Subtype_From_Expr): If the expression
2049 is a source entity and the declaration is for an aliased
2050 unconstrained array, create a new subtype so that the flag
2051 Is_Constr_Subt_For_UN_Aliased does not pollute other entities.
2053 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
2055 * aspects.adb: Move tables Base_Aspect and Inherited_Aspect
2056 from the spec to the body.
2057 (Find_Aspect): Update the call to Get_Aspect_Id.
2058 (Get_Aspect_Id): New version that takes an aspect specification.
2059 * aspects.ads: Reorganize all aspect related tables.
2060 (Get_Aspect_Id): New version that takes an aspect specification.
2061 * par_sco.adb (Traverse_Aspects): Update the call to Get_Aspect_Id.
2062 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Update
2063 the call to Get_Aspect_Id.
2064 * sem_ch13.adb (Analyze_Aspect_At_Freeze_Point): Update the
2065 call to Get_Aspect_Id. (Analyze_Aspect_Specifications): Update
2066 the call to Get_Aspect_Id. Update the call to Impl_Defined_Aspect.
2068 2013-04-23 Robert Dewar <dewar@adacore.com>
2070 * sem_prag.adb (Fix_Error): Rewrite to do more accurate job
2071 of getting proper name in the case where pragma comes from
2073 * sem_ch3.adb, sinfo.ads, par-ch6.adb, exp_ch6.adb: Minor reformatting.
2075 2013-04-23 Yannick Moy <moy@adacore.com>
2077 * sem_ch6.adb (Process_PPCs): Do not filter postconditions based on
2080 2013-04-23 Thomas Quinot <quinot@adacore.com>
2082 * par_sco.adb (Traverse_Aux_Decls): Minor code reorganization.
2084 2013-04-23 Doug Rupp <rupp@adacore.com>
2086 * init.c: Move facility macros outside IN_RTS.
2088 2013-04-23 Thomas Quinot <quinot@adacore.com>
2090 * freeze.adb (Freeze_Entity): For the case of a bit-packed
2091 array time that is known at compile time to have more that
2092 Integer'Last+1 elements, issue an error, since such arrays are
2095 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
2097 * sem_prag.adb (Analyze_Dependency_Clause): Update all calls to
2098 Analyze_Input_Output.
2099 (Analyze_Input_List): Update all calls to Analyze_Input_Output.
2100 (Analyze_Input_Output): Add formal parameter Self_Ref along with
2101 comment on its usage. Update all calls to Analyze_Input_Output.
2102 (Analyze_Pragma): Add new local variable Self_Ref to capture
2103 the presence of a self-referential dependency clause. Update
2104 all calls to Analyze_Input_Output.
2105 (Check_Mode): Add formal parameter Self_Ref along with comment on its
2106 usage. Verify the legality of a self-referential output.
2108 2013-04-23 Ed Schonberg <schonberg@adacore.com>
2110 * exp_ch6.adb: Add predicate checks on by-copy parameter.
2112 2013-04-23 Vincent Celier <celier@adacore.com>
2114 * a-envvar.adb, a-envvar.ads (Value): New.
2116 2013-04-22 Yannick Moy <moy@adacore.com>
2118 * exp_prag.adb (Expand_Pragma_Loop_Variant): Rewrite pragma as
2119 null statement if ignored.
2120 * sem_ch6.adb (Expand_Contract_Cases): Do nothing if pragma is ignored.
2121 * sem_prag.adb (Analyze_Pragma): Keep analyzing ignored pragmas.
2123 2013-04-22 Hristian Kirtchev <kirtchev@adacore.com>
2125 * sem_prag.adb (Analyze_Contract_Case): New routine.
2126 (Analyze_Pragma): Aspect/pragma Contract_Cases can
2127 now be associated with a library level subprogram.
2128 Add circuitry to detect illegal uses of aspect/pragma Contract_Cases
2129 in a subprogram body.
2130 (Chain_Contract_Cases): Rename formal parameter Subp_Decl to
2131 Subp_Id. Remove local constant Subp. The entity of the subprogram
2132 is now obtained via the formal paramter.
2134 2013-04-22 Ed Schonberg <schonberg@adacore.com>
2136 * sem_ch3.adb (Analyze_Object_Declaration): Do not set
2137 Is_Constr_Subt_For_Unc_Aliased on the subtype of the expression,
2138 if the expression is a source entity.
2140 2013-04-22 Yannick Moy <moy@adacore.com>
2142 * exp_prag.adb, sinfo.ads, sem_prag.ads: Minor correction of typos in
2144 * sem_ch6.adb (Expand_Contract_Cases): Add location to message.
2146 2013-04-22 Thomas Quinot <quinot@adacore.com>
2148 * sem_prag.adb (Fix_Error): For a pragma rewritten from another
2149 pragma, fix up error message to include original pragma name.
2150 * par_sco.adb: Minor reformatting.
2152 2013-04-22 Robert Dewar <dewar@adacore.com>
2154 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb,
2155 sem_ch6.adb, opt.ads: Minor reformatting.
2157 2013-04-22 Pascal Obry <obry@adacore.com>
2159 * gnat_ugn.texi, prj-nmsc.adb, projects.texi: Add check for
2160 Library_Standalone and Library_Kind.
2162 2013-04-22 Ed Schonberg <schonberg@adacore.com>
2164 * exp_ch6.adb (Expand_Actuals): If the call is to an
2165 inherited operation and the actual is a by-reference type with
2166 predicates, add predicate call to post-call actions.
2167 * sem_util.adb (Is_Inherited_Operation_For_Type): Fix coding
2168 error: a type declaration has a defining identifier, not an Etype.
2169 * sem_res.adb: Restore code removed because of above error.
2171 2013-04-22 Doug Rupp <rupp@adacore.com>
2173 * init.c (__gnat_handle_vms_condition): Also match C$_SIGINT.
2175 2013-04-22 Yannick Moy <moy@adacore.com>
2177 * gnat_rm.texi, exp_util.adb, sem_prag.adb, sem_prag.ads, par-ch2.adb,
2178 opt.ads, sem_ch13.adb: Minor correction of typos in comments/doc.
2180 2013-04-22 Vincent Celier <celier@adacore.com>
2182 * prj-nmsc.adb (Check_Library_Attributes): Set Library_Dir to
2183 No_Path_Information only when Directories_Must_Exist_In_Projects
2185 (Get_Directories): Set Object_Directory
2186 or Exec_Directory to No_Path_Information only when
2187 Directories_Must_Exist_In_Projects is False.
2189 2013-04-22 Yannick Moy <moy@adacore.com>
2191 * par-prag.adb, sem_attr.adb, sem_ch6.adb, sem_prag.adb, sem_warn.adb,
2192 snames.ads-tmpl, sinfo.ads, sem_util.ads: Remove all references to
2193 Pragma_Contract_Case and Name_Contract_Case.
2195 2013-04-22 Yannick Moy <moy@adacore.com>
2197 * aspects.ads, aspects.adb, sem_ch13.adb: Removal of references to
2199 * gnat_ugn.texi, gnat_rm.texi Description of Contract_Case replaced by
2200 description of Contract_Cases.
2202 2013-04-12 Robert Dewar <dewar@adacore.com>
2204 * makeutl.adb, prj-nmsc.adb: Minor reformatting.
2206 2013-04-12 Robert Dewar <dewar@adacore.com>
2208 * exp_util.adb (Make_Invariant_Call): Use Check_Kind instead
2210 * gnat_rm.texi (Check_Policy): Update documentation for new
2211 Check_Policy syntax.
2212 * sem_prag.adb (Check_Kind): Replaces Check_Enabled
2213 (Analyze_Pragma, case Check_Policy): Rework to accomodate new
2214 syntax (like Assertion_Policy).
2215 * sem_prag.ads (Check_Kind): Replaces Check_Enabled.
2217 2013-04-12 Doug Rupp <rupp@adacore.com>
2219 * init.c (SS$_CONTROLC, SS$_CONTINUE) [VMS]: New macros.
2220 (__gnat_handle_vms_condition) [VMS]: Dispatch on the Crtl/C user
2221 handler if installed.
2222 * ctrl_c.c (__gnat_install_int_handler)
2223 [VMS]: Install a dummy sigaction handler to trigger the real
2224 user handler dispatch in init.c/__gnat_handle_vms_condition.
2225 (__gnat_uninstall_int_handler) [VMS]: Likewise.
2227 2013-04-12 Vincent Celier <celier@adacore.com>
2229 * clean.adb (Parse_Cmd_Line): Set Directories_Must_Exist_In_Projects
2230 to False if switch is specified.
2231 * makeutl.adb (Initialize_Source_Record): Do not look for the
2232 object file if there is no object directory.
2233 * opt.ads (Directories_Must_Exist_In_Projects): New Boolean
2234 variable, defaulted to True.
2235 * prj-nmsc.adb (Check_Library_Attributes): Do not fail if library
2236 directory does not exist when Directories_Must_Exist_In_Projects is
2238 (Get_Directories): Do not fail when the object or the exec directory
2239 do not exist when Directories_Must_Exist_In_Projects is False.
2241 2013-04-12 Robert Dewar <dewar@adacore.com>
2243 * namet.adb, namet.ads: Minor addition (7 arg version of Nam_In).
2244 * exp_prag.adb, sem_ch3.adb, sem_intr.adb, sem_type.adb, exp_util.adb,
2245 sem_aux.adb, exp_ch9.adb, sem_ch7.adb, sem_ch10.adb, sem_prag.adb,
2246 par-ch2.adb, tbuild.adb, rtsfind.adb, freeze.adb, sem_util.adb,
2247 sem_res.adb, sem_attr.adb, exp_ch2.adb, prj-makr.adb, sem_elab.adb,
2248 exp_ch4.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, par-prag.adb,
2249 prj-nmsc.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
2250 sem_eval.adb, exp_intr.adb, sem_ch13.adb, exp_cg.adb, lib-xref.adb,
2251 sem_disp.adb, exp_ch3.adb: Minor code reorganization (use Nam_In).
2253 2013-04-12 Doug Rupp <rupp@adacore.com>
2255 * init.c: Don't clobber condition code on VMS.
2257 2013-04-12 Robert Dewar <dewar@adacore.com>
2259 * exp_aggr.adb: Minor reformatting.
2260 * namet.ads, namet.adb (Nam_In): New functions.
2262 2013-04-12 Robert Dewar <dewar@adacore.com>
2264 * einfo.adb (Has_Dynamic_Predicate_Aspect): New flag.
2265 (Has_Static_Predicate_Aspect): New flag.
2266 * einfo.ads (Has_Dynamic_Predicate_Aspect): New flag.
2267 (Has_Static_Predicate_Aspect): New flag.
2268 * exp_ch9.adb: Minor reformatting.
2269 * exp_util.adb (Make_Invariant_Call): Check_Enabled now handles
2271 * gnat1drv.adb: Remove setting of Debug_Pragmas_Enabled,
2272 since this switch is gone and control of Debug is done with
2274 * gnat_rm.texi: Update documentation for Assertion_Policy and
2275 Check_Policy pragmas.
2276 * opt.adb (Debug_Pragmas_Disabled[_Config]): Removed
2277 (Debug_Pragmas_Enabled[_Config]): Removed Since debug now
2278 controlled by Assertion_Enabled.
2279 * opt.ads (Debug_Pragmas_Disabled[_Config]): Removed
2280 (Debug_Pragmas_Enabled[_Config]): Removed Since debug now
2281 controlled by Assertion_Enabled.
2282 * par-ch2.adb (Scan_Pragma_Argument_Association): Allow new
2284 * sem_attr.adb: Minor reformatting.
2285 * sem_ch13.adb (Analyze_Aspect_Specification): Disable aspect
2286 if DISABLE policy applies.
2287 * sem_ch6.adb (Grab_PPC): Check original name of aspect for
2288 aspect from pragma (Process_PPCs): Properly check assertion policy.
2289 * sem_prag.adb (Check_Enabled): Rewritten for new Assertion_Policy
2290 (Check_Appicable_Policy): New procedure.
2291 (Is_Valid_Assertion_Kind): New function.
2292 (Rewrite_Assertion_Kind): New procedure.
2293 (Analyze_Pragma): Handle case of disabled assertion pragma.
2294 (Analyze_Pragma, case Assertion_Policy): Rewritten for Ada 2012.
2295 (Analyze_Pragma, case Check): Deal with 'Class possibilities.
2296 (Analyze_Pragma, case Check_Policy): Deal with 'Class possibilities.
2297 (Analyze_Pragma, case Contract_Class): New handling of ignored pragma.
2298 (Analyze_Pragma, case Debug): New control with Assertion_Policy.
2299 (Analyze_Pragma, case Debug_Policy): Now consistent with
2301 (Analyze_Pragma, case Loop_Invariant): New handling of ignored
2303 (Analyze_Pragma, case Loop_Variant): New handling of ignored pragma.
2304 (Analyze_Pragma, case Precondition): Use proper name for Check pragma.
2305 (Analyze_Pragma, case Check_Enabled): Rewritten for new policy stuff.
2306 * sem_prag.ads (Check_Enabled): Rewritten for new
2307 Assertion_Policy stuff.
2308 (Check_Appicable_Policy): New procedure.
2309 * sinfo.adb (Is_Disabled): New flag.
2310 (Is_Ignored): New flag.
2311 * sinfo.ads (Is_Disabled): New flag.
2312 (Is_Ignored): New flag.
2313 (N_Pragma_Argument_Association): New 'Class forms.
2314 * snames.ads-tmpl: New names Name_uPre, Name_uPost,
2315 Name_uType_Invariant, Name_uInvariant.
2316 * switch-c.adb: Remove setting of Debug_Pragmas_Enabled for -gnata.
2317 * tree_io.ads (ASIS_Version_Number): Updated (remove
2318 read write of obsolete flags Debug_Pragmas_Disabled and
2319 Debug_Pragmas_Enabled.
2321 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2323 * exp_aggr.adb (Get_Explicit_Discriminant_Value): Subsidiary
2324 of Build_Record_Aggr_Code, used to retrieve explicit values
2325 for inherited discriminants in an extension aggregate, when the
2326 ancestor type is unconstrained.
2328 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2330 * sem_attr.adb (Check_Stream_Attribute): If restriction
2331 No_Default_Stream_Attributes is active, it is illegal to use a
2332 predefined elementary type stream attribute either by itself,
2333 or more importantly as part of the attribute subprogram for a
2334 composite type. However, if the broader restriction No_Streams
2335 is active, then stream operations are not generated, and there
2338 2013-04-12 Robert Dewar <dewar@adacore.com>
2340 * gnatbind.adb: Minor reformatting.
2342 2013-04-12 Bob Duff <duff@adacore.com>
2344 * sem_attr.adb (Analyze_Access_Attribute): Treat P'Access like a
2345 call only in the static elaboration model.
2347 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2349 * sem_prag.adb (Analyze_Input_List): Detect an illegal dependency
2350 clause where both input and output lists are null.
2351 (Analyze_Pragma): Update the grammar of pragma Depends.
2353 2013-04-12 Vincent Celier <celier@adacore.com>
2355 * gnatbind.adb (No_Restriction_List): Exclude restrictions that
2356 take a parameter value, not a count.
2357 * prj.ads, prj.adb (Remove_All_Restricted_Languages): New procedure.
2358 * projects.texi: Complete documentation of attribute Roots.
2360 2013-04-12 Thomas Quinot <quinot@adacore.com>
2362 * exp_ch3.adb, exp_util.ads, checks.adb, freeze.adb, sem_attr.adb,
2363 sem_ch3.adb: Minor reformatting.
2364 * exp_ch4.adb (Size_In_Storage_Elements): Minor documentation
2365 improvement: note that the computation is pessimistic for bit
2367 * gnat_rm.texi (Range_Length): Fix minor error in description
2370 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2372 * aspects.adb (Find_Aspect): New routine.
2373 (Find_Value_Of_Aspect): New routine.
2374 (Has_Aspect): Reimplemented.
2375 * aspects.ads (Find_Aspect): New routine.
2376 (Find_Value_Of_Aspect): New routine, previously known as Find_Aspect.
2377 * exp_ch5.adb (Expand_Iterator_Loop): Update the call to Find_Aspect.
2378 * exp_util.adb (Is_Iterated_Container): Update the call to Find_Aspect.
2379 * sem_ch4.adb (Try_Container_Indexing): Update calls to Find_Aspect.
2380 * sem_ch5.adb (Analyze_Iterator_Specification): Update
2381 the call to Find_Aspect. Use function Has_Aspect for better
2383 (Preanalyze_Range): Use function Has_Aspect for better readability.
2384 * sem_ch13.adb (Check_One_Function): Update the call to Find_Aspect.
2385 * sem_prag.adb (Analyze_Pragma): There is no longer need to
2386 look at the parent to extract the corresponding pragma for
2389 2013-04-12 Robert Dewar <dewar@adacore.com>
2391 * checks.adb, sem_elab.adb, repinfo.adb, sem_ch4.adb, restrict.adb,
2392 restrict.ads: Minor reformatting.
2394 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2396 * lib-xref.adb: Retrieve original name of classwide type if any.
2398 2013-04-12 Thomas Quinot <quinot@adacore.com>
2400 * exp_ch11.ads: Minor reformatting.
2402 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2404 * aspects.adb: Alphabetize subprogram bodies in this unit. Add
2405 an entry for Aspect_Ghost in the table of canonical aspects.
2406 (Has_Aspect): New routine.
2407 * aspects.ads: Add Aspect_Ghost to all relevant
2408 tables. Alphabetize subprograms in this unit.
2409 (Has_Aspect): New routine.
2410 * einfo.adb: Add with and use clauses for Aspects.
2411 (Is_Ghost_Function): New routine.
2412 * einfo.ads: Add new synthesized attribute Is_Ghost_Function and
2413 update the structure of the related nodes.
2414 (Is_Ghost_Function): New routine.
2415 * exp_ch4.adb (Find_Enclosing_Context): Use routine
2416 Is_Body_Or_Package_Declaration to terminate a search.
2417 (Is_Body_Or_Unit): Removed.
2418 * exp_util.adb (Within_Case_Or_If_Expression): Use routine
2419 Is_Body_Or_Package_Declaration to terminate a search.
2420 * par-prag.adb: Add pragma Ghost to the list of pragmas that do
2421 not need special processing by the parser.
2422 * sem_attr.adb (Analyze_Access_Attribute): Detect an
2423 illegal use of 'Access where the prefix is a ghost function.
2424 (Analyze_Attribute): Use routine Is_Body_Or_Package_Declaration
2425 to terminate a search. (Check_References_In_Prefix): Use routine
2426 Is_Body_Or_Package_Declaration to terminate a search.
2427 * sem_ch4.adb (Analyze_Call): Mark a function when it appears
2428 inside an assertion expression. Verify the legality of a call
2429 to a ghost function.
2430 (Check_Ghost_Function_Call): New routine.
2431 * sem_ch6.adb (Analyze_Function_Call): Code reformatting. Move
2432 the setting of attribute In_Assertion_Expression to Analyze_Call.
2433 (Check_Overriding_Indicator): Detect an illegal attempt to
2434 override a function with a ghost function.
2435 * sem_ch12.adb (Preanalyze_Actuals): Detect an illegal use of
2436 a ghost function as a generic actual.
2437 * sem_elab.adb (Check_Internal_Call_Continue): Update the call
2439 * sem_prag.adb: Add an entry for pragma Ghost in the table
2440 of significant arguments.
2441 (Analyze_Pragma): Do not analyze
2442 an "others" case guard. Add processing for pragma Ghost. Use
2443 Preanalyze_Assert_Expression when analyzing the expression of
2444 pragmas Loop_Invariant and Loop_Variant.
2445 * sem_util.adb (Get_Subprogram_Entity): Reimplemented.
2446 (Is_Body_Or_Package_Declaration): New routine.
2447 * sem_util.ads: Alphabetize subprotrams in this unit.
2448 (Is_Body_Or_Package_Declaration): New routine.
2449 * sinfo.adb (In_Assertion): Rename to In_Assertion_Expression.
2450 (Set_In_Assertion): Rename to Set_In_Assertion_Expression.
2451 * sinfo.ads: Rename flag In_Assertion to In_Assertion_Expression
2452 to better reflect its use. Update all places that mention the flag.
2453 (In_Assertion): Rename to In_Assertion_Expression. Update
2454 related pragma Inline. (Set_In_Assertion): Rename to
2455 Set_In_Assertion_Expression. Update related pragma Inline.
2456 * snames.ads-tmpl: Add new predefined name Ghost. Add new pragma
2459 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2461 * sem_prag.adb (Set_Imported): Do not generate error for multiple
2462 Import in CodePeer mode.
2463 * s-rident.ads: Fix minor typo.
2465 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2467 * checks.adb (Insert_Valid_Check): Do not insert validity check
2468 in the body of the generated predicate function, to prevent
2471 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2473 * s-rident.ads: Add various missing Ada 2012 restrictions:
2474 No_Access_Parameter_Allocators, No_Coextensions,
2475 No_Use_Of_Attribute, No_Use_Of_Pragma.
2476 * snames.ads-tmpl: Add corresponding names.
2477 * restrict.ads restrict.adb: Subprograms and data structures to
2478 handle aspects No_Use_Of_Attribute and No_Use_Of_Pragma.
2479 * sem_ch4.adb: Correct name of restrictions is
2480 No_Standard_Allocators_After_Elaboration.
2481 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Check
2482 violation of restriction No_Use_Of_Attribute.
2483 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2484 Set restrictions No_Use_Of_Pragma and No_Use_Of_Attribute.
2485 (Analyze_Pragma): Check violation of restriction No_Use_Of_Pragma.
2486 * sem_res.adb: Check restrictions No_Access_Parameter_Allocators
2487 and No_Coextensions.
2488 * bcheck.adb: Correct name of restrictions is
2489 No_Standard_Allocators_After_Elaboration.
2490 * gnatbind.adb: Correct name of restrictions is
2491 No_Standard_Allocators_After_Elaboration.
2493 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2495 * sem_prag.adb (Analyze_Pragma, (Check_Mode_Restriction_In_Function):
2496 Correct error message format.
2498 2013-04-12 Robert Dewar <dewar@adacore.com>
2500 * sem_attr.adb: Minor reformatting.
2502 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2504 * sem_elab.adb (Within_Elaborate_All): Do not examine a context
2505 item that has not been analyzed, because the unit may have errors,
2506 or the context item may come from a proper unit inserted at the
2507 point of a stub and not analyzed yet.
2509 2013-04-12 Thomas Quinot <quinot@adacore.com>
2511 * gnat1drv.adb, repinfo.adb, repinfo.ads (Repinfo.List_Array_Info,
2512 List_Record_Info): Also include scalar storage order information in
2515 2013-04-12 Yannick Moy <moy@adacore.com>
2517 * sem_ch6.adb (Process_Contract_Cases): Update code to apply to
2518 Contract_Cases instead of Contract_Case pragma.
2520 2013-04-12 Robert Dewar <dewar@adacore.com>
2522 * a-cfdlli.ads, g-socket.adb, s-fileio.adb: Minor reformatting.
2524 2013-04-12 Yannick Moy <moy@adacore.com>
2526 * sem_attr.adb (Analyze_Attribute): Update analyse of
2527 Attribute_Old and Attribute_Result so they are allowed in the
2528 right-hand-side of an association in a Contract_Cases pragma.
2529 * sem_prag.adb (Analyze_CTC_In_Decl_Part): Add pre-analysis of
2530 the expressions in a Contract_Cases pragma.
2532 2013-04-12 Robert Dewar <dewar@adacore.com>
2534 * sem.ads, opt.ads: Minor comment edits.
2535 * sem_warn.adb, sem_ch6.adb: Minor reformatting.
2537 2013-04-12 Claire Dross <dross@adacore.com>
2539 * a-cfdlli.adb a-cfdlli.ads (List, Not_No_Element, Iterate,
2540 Reverse_Iterate, Query_Element, Update_Element, Read, Write): Removed,
2541 not suitable for formal analysis.
2543 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2545 * sem_prag.adb (Analyze_Abstract_State): Use Defining entity
2546 to locate package entity, which may be a child unit.
2548 2013-04-12 Thomas Quinot <quinot@adacore.com>
2550 * g-socket.adb, g-socket.ads (Connect_Socket, version with timeout): If
2551 the specified timeout is 0, do not attempt to determine whether the
2552 connection succeeded.
2554 2013-04-12 Doug Rupp <rupp@adacore.com>
2556 * s-fileio.adb (Form_RMS Context_Key): Fix some thinkos.
2558 2013-04-12 Doug Rupp <rupp@adacore.com>
2560 * s-fileio.adb: Minor reformatting.
2562 2013-04-12 Ed Schonberg <schonberg@adacore.com>
2564 * sem_warn.adb (Check_Infinite_Loop_Warning): Do not warn if
2565 the last statement in the analyzed loop is an unconditional
2568 2013-04-12 Robert Dewar <dewar@adacore.com>
2570 * opt.ads (Style_Check_Main): New switch.
2571 * sem.adb (Semantics): Set Style_Check flag properly for new
2572 unit to be analyzed.
2573 * sem_ch10.adb (Analyze_With_Clause): Don't reset Style_Check,
2574 the proper setting of this flag is now part of the Semantics
2576 * switch-c.adb (Scan_Front_End_Switches): Set Style_Check_Main
2577 for -gnatg and -gnaty
2579 2013-04-12 Doug Rupp <rupp@adacore.com>
2581 * s-crtl.ads (fopen, freopen): Add vms_form parameter
2582 * i-cstrea.ads (fopen, freopen): Likewise.
2583 * adaint.h (__gnat_fopen, __gnat_freopen): Likewise.
2584 * adaint.c (__gnat_fopen, __gnat_freopen): Likewise.
2585 [VMS]: Split out RMS keys and call CRTL function appropriately.
2586 * s-fileio.adb (Form_VMS_RMS_Keys, Form_RMS_Context_Key): New
2588 (Open, Reset): Call Form_VMS_RMS_Keys. Call fopen,freopen with
2590 * gnat_rm.texi: Document implemented RMS keys.
2592 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2594 * sem_ch13.adb (Analyze_Aspect_Specifications):
2595 Insert the corresponding pragma for aspect Abstract_State at
2596 the top of the visible declarations of the related package.
2597 Previously this was only done when the package is a compilation
2600 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2602 * gnat_ugn.texi: Further menu clean ups.
2603 * sem_prag.adb, opt.ads: Minor reformatting.
2604 * sem_util.ads: Minor comment fix.
2606 2013-04-12 Hristian Kirtchev <kirtchev@adacore.com>
2608 * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect
2609 Depends is now a delayed aspect. The delay is required
2610 due to the interplay between aspects Depends and Global.
2611 (Check_Aspect_At_Freeze_Point): Add an entry for aspect Depends.
2612 * sem_prag.adb: Reformat various error messages.
2613 (Add_Item): New subsidiary routine.
2614 (Analyze_Pragma): Add new variables
2615 Global_Seen, Result_Seen, Subp_Inputs and Subp_Outputs. The
2616 analysis of pragma Depends now has the capability to check
2617 the proper mode and usage of subprogram inputs and outputs.
2618 (Appears_In): New routine.
2619 (Check_Function_Return): New routine.
2620 (Check_Mode): New routine.
2621 (Check_Usage): New routine.
2622 (Collect_Subprogram_Inputs_Outputs): New routine.
2624 2013-04-12 Bob Duff <duff@adacore.com>
2626 * par-ch7.adb (P_Package): Initialize Sloc in the newly-pushed scope
2629 2013-04-12 Robert Dewar <dewar@adacore.com>
2631 * switch-c.adb: Minor fix to wording of error message for
2634 2013-04-12 Robert Dewar <dewar@adacore.com>
2636 * impunit.adb: Add s-multip and s-mudido to list of impl defined
2638 * gnat_rm.texi: Add documentation for
2639 System.Multiprocessors[.Dispatching_Domains].
2641 2013-04-12 Ben Brosgol <brosgol@adacore.com>
2643 * gnat_ugn.texi: Completion of menu cleanups.
2645 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2647 * sem_prag.adb (Diagnose_Multiple_Pragmas): Relax the rules
2648 in Relaxed_RM_Semantics.
2650 2013-04-12 Arnaud Charlet <charlet@adacore.com>
2652 * set_targ.adb (elab code): Add support for non gcc back-ends
2653 where save_argv is null.
2655 2013-04-12 Robert Dewar <dewar@adacore.com>
2657 * gnat1drv.adb (Gnat1drv): Test Target_Dependent_Info_Write_Name.
2658 * opt.ads (Target_Dependent_Info_Read): Add _Name, now an access
2659 type (Target_Dependent_Info_Write): Add _Name, now an access type.
2660 * set_targ.adb (Write_Target_Dependent_Values): Use name
2661 from -gnatet switch stored in Target_Dependent_Info_Write_Name
2662 (Read_Target_Dependent_Values): Use name from -gnateT switch
2663 stored in Target_Dependent_Info_Read_Name.
2664 * switch-c.adb: New form of -gnatet and -gnateT switches.
2665 * usage.adb: New form of -gnatet and -gnateT switches with
2668 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2670 * gcc-interface/decl.c (elaborate_expression_1): Skip only constant
2671 arithmetics when looking for a read-only variable in the expression.
2673 2013-04-11 Javier Miranda <miranda@adacore.com>
2675 * check.ads, exp_ch6.adb (Install_Null_Excluding_Check): No check in
2676 interface thunks since it is performed at the caller side.
2677 (Expand_Simple_Function_Return): No accessibility check needed in thunks
2678 since the check is done by the target routine.
2680 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2682 * sem_prag.adb (Analyze_Pragma, case Priority): pre-analyze
2683 expression with type Any_Priority.
2684 * exp_ch9.adb (Initialize_Protection): Check that the value
2685 of the priority expression is within the bounds of the proper
2688 2013-04-11 Robert Dewar <dewar@adacore.com>
2690 * sem_prag.adb, prj-env.adb: Minor reformatting.
2692 2013-04-11 Ben Brosgol <brosgol@adacore.com>
2694 * gnat_ugn.texi: Clean ups.
2696 2013-04-11 Yannick Moy <moy@adacore.com>
2698 * set_targ.adb: Minor comment update.
2700 2013-04-11 Pascal Obry <obry@adacore.com>
2702 * gnat_ugn.texi: Remove obsolete comment about DLL calling
2705 2013-04-11 Javier Miranda <miranda@adacore.com>
2707 * exp_ch6.adb (Expand_Call): For the call to the target primitive
2708 of an interface thunks do not compute the extra actuals; just
2709 propagate the extra actuals received by the thunk.
2710 * exp_disp.adb (Expand_Interface_Thunk): Decorate new attribute
2712 * sem_ch6.adb (Create_Extra_Formals): Do not generate extra
2713 formals in interface thunks whose target primitive has no extra
2716 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2718 * sem_prag.adb (Analyze_Pragma): Detect
2719 a renaming by looking at the Renamed_Object attribute.
2720 (Is_Renaming): Removed.
2722 2013-04-11 Vincent Celier <celier@adacore.com>
2724 * prj-env.adb (Initialize_Default_Project_Path): Take
2725 into account a project path file, specified by environment
2726 variable GPR_PROJECT_PATH_FILE, before taking into account
2728 * projects.texi: Add documentation for GPR_PROJECT_PATH_FILE
2730 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2732 * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
2733 a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
2734 a-cfdlli.adb, a-cfdlli.ads, a-cborma.adb, a-cborma.ads, a-cidlli.adb,
2735 a-cidlli.ads, a-ciormu.adb, a-ciormu.ads, a-cihase.adb, a-cihase.ads,
2736 a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads, a-cbhama.adb,
2737 a-cbhama.ads, a-cborse.adb, a-cborse.ads, a-ciorma.adb, a-cobove.adb,
2738 a-ciorma.ads, a-cobove.ads, a-coormu.adb, a-coormu.ads, a-cohase.adb,
2739 a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbhase.adb, a-cbhase.ads:
2740 Move Iterator operations from body to private part of spec.
2742 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2744 * ttypes.ads, get_targ.ads: More minor rewording of comments.
2746 2013-04-11 Johannes Kanig <kanig@adacore.com>
2748 * debug.adb: Document use of switch -gnatd.Z.
2750 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2752 * sem_prag.adb (Analyze_Pragma): Both pragma Depends and Global can now
2753 support renamings of entire objects. Legal renamings are replaced by
2754 the object they rename.
2755 (Is_Renaming): New routine.
2757 2013-04-11 Yannick Moy <moy@adacore.com>
2759 * set_targ.adb, opt.ads: Minor changes in comments.
2761 2013-04-11 Ben Brosgol <brosgol@adacore.com>
2763 * gnat_ugn.texi: Minor clean ups.
2765 2013-04-11 Robert Dewar <dewar@adacore.com>
2767 * nlists.ads, nlists.adb, treepr.adb, treepr.ads: Move debugging
2768 function p from Nlists to Treepr.
2770 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2772 * sem_disp.adb (Check_Dispatching_Context): If the context is
2773 a contract for a null procedure defer error reporting until
2774 postcondition body is created.
2775 * exp_ch13.adb (Expand_N_Freeze_Entity): If the entity is a
2776 null procedure, complete the analysis of its contracts so that
2777 calls within classwide conditions are properly rewritten as
2780 2013-04-11 Thomas Quinot <quinot@adacore.com>
2782 * sem_ch10.adb, sem_ch12.adb: Minor reformatting.
2784 2013-04-11 Robert Dewar <dewar@adacore.com>
2786 * exp_attr.adb, sem_res.adb, sem_attr.adb: Minor reformatting.
2788 2013-04-11 Robert Dewar <dewar@adacore.com>
2790 * atree.adb, atree.ads (Node31): New function.
2791 (Set_Node31): New procedure.
2793 2013-04-11 Robert Dewar <dewar@adacore.com>
2795 * errout.ads: Minor typo correction.
2797 2013-04-11 Javier Miranda <miranda@adacore.com>
2799 * einfo.ad[sb] (Thunk_Entity/Set_Thunk_Entity): New attribute.
2801 2013-04-11 Robert Dewar <dewar@adacore.com>
2803 * back_end.adb (Register_Back_End_Types): Moved to Get_Targ
2804 * back_end.ads (C_String): Moved to Get_Targ
2805 (Register_Type_Proc): Moved to Get_Targ (Register_Back_End_Types):
2807 * cstand.adb (Register_Float_Type): New interface
2808 (Create_Back_End_Float_Types): Use entries in FPT_Mode_Table.
2809 * get_targ.adb (Register_Back_End_Types): Moved here from
2811 * get_targ.ads (C_String): Moved here from Back_End
2812 (Register_Type_Proc): Moved here from Back_End
2813 (Register_Back_End_Types): here from Back_End.
2814 * gnat1drv.adb (GGnat11drv): Add call to
2815 Write_Target_Dependent_Values;
2816 * lib-writ.ads, lib-writ.adb (Write_ALI): Remove section writing
2817 obsolete target dependent info.
2818 * opt.ads (Generate_Target_Dependent_Info):
2819 Removed (Target_Dependent_Info_Read): New flag
2820 (Target_Dependent_Info_Write): New flag
2821 * output.adb: Minor comment change
2822 * s-os_lib.ads: Minor reformatting
2823 * set_targ.ads, set_targ.adb: Minor reformatting.
2824 * switch-c.adb (Scan_Switches.First_Ptr): New variable
2825 (Scan_Front_End_Switches): Check -gnatd.b, -gnateT come first
2826 (Scan_Front_End_Switches): Handle -gnatet, -gnateT
2827 * ttypes.ads: Remove documentation section on target dependent
2828 info in ali file Remove four letter codes, no longer used Instead
2829 of using Get_Targ.Get_xxx, we use Set_Targ.xxx
2830 * usage.adb: Add usage lines for -gnatet/-gnateT
2831 * gcc-interface/Make-lang.in: Update dependencies.
2833 2013-04-11 Thomas Quinot <quinot@adacore.com>
2835 * sem_ch4.adb: Update documentation.
2836 * sinfo.ads (N_Expression_With_Actions): Ditto.
2838 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2840 * sem_ch13.adb (Analyze_Aspect_Specifications):
2841 Add a guard to prevent the double insertion of the same aspect
2842 into a rep item list. This previously led to a circularity.
2844 2013-04-11 Ed Schonberg <schonberg@adacore.com>
2846 * sem_attr.adb (Eval_Attribute, case 'Access): Reject attribute
2847 reference if the prefix is the dereference of an anonymous access
2849 * exp_attr.adb (Expand_N_Attribute_Reference, Access_Cases): Handle
2850 properly a reference to the current instance of a protected type
2851 from within a protected subprogram.
2852 * sem_res.adb (Find_Unique_Access_Type): Treat
2853 Attribute_Access_Type like Allocator_Type when resolving an
2856 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2858 * xgnatugn.adb: Remove obsolete comments.
2860 2013-04-11 Robert Dewar <dewar@adacore.com>
2862 * back_end.ads, back_end.adb: Minor reformatting.
2863 * set_targ.ads, set_targ.adb: New files.
2865 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
2867 * sem_case.adb (Check_Against_Predicate): New routine.
2868 (Check_Choices): When the type covered by the list of choices
2869 is a static subtype with a static predicate, check all choices
2870 agains the predicate.
2871 (Issue_Msg): All versions removed.
2872 (Missing_Choice): New routines.
2873 * sem_ch4.adb: Code and comment reformatting.
2874 (Analyze_Case_Expression): Do not check the choices when the case
2875 expression is being preanalyzed and the type of the expression
2876 is a subtype with a static predicate.
2877 (Has_Static_Predicate): New routine.
2878 * sem_ch13.adb: Code and comment reformatting. (Build_Range):
2879 Always build a range even if the low and hi bounds denote the
2880 same value. This is needed by the machinery in Check_Choices.
2881 (Build_Static_Predicate): Always build a range even if the low and
2882 hi bounds denote the same value. This is needed by the machinery
2885 2013-04-11 Robert Dewar <dewar@adacore.com>
2887 * einfo.ads, sem_util.adb, exp_ch6.adb, xgnatugn.adb: Minor
2890 2013-04-11 Doug Rupp <rupp@adacore.com>
2892 * gnatlink.adb: Fold program basename to lower case on VMS for
2895 2013-04-11 Matthew Heaney <heaney@adacore.com>
2897 * a-rbtgbo.adb (Generic_Equal): Initialize Result variable before
2900 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2902 * xgnatugn.adb: Remove dead code (handling of @ifset/@ifclear).
2904 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2906 * gnat_ugn.texi: Remove some use of ifset in menus. Not strictly
2907 needed, and seems to confuse some versions of makeinfo.
2909 2013-04-11 Javier Miranda <miranda@adacore.com>
2911 * einfo.adb (Is_Thunk): Remove assertion.
2912 (Set_Is_Thunk): Add assertion.
2913 * einfo.ads (Is_Thunk): Complete documentation.
2914 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Code cleanup.
2915 * exp_ch3.ad[sb] (Is_Variable_Size_Array): Moved to sem_util
2916 (Is_Variable_Size_Record): Moved to sem_util
2917 * exp_ch6.adb (Expand_Call): Code cleanup.
2918 (Expand_N_Extended_Return_Statement): Code cleanup.
2919 (Expand_Simple_Function_Return): Code cleanup.
2920 * exp_disp.adb Remove dependency on exp_ch3
2921 (Expand_Interface_Thunk): Add minimum decoration needed to set
2923 * sem_ch3.ad[sb] (Is_Constant_Bound): moved to sem_util
2924 * sem_util.ad[sb] (Is_Constant_Bound): Moved from
2925 sem_ch3 (Is_Variable_Size_Array): Moved from exp_ch3
2926 (Is_Variable_Size_Record): Moved from exp_ch3
2928 2013-04-11 Javier Miranda <miranda@adacore.com>
2930 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Do
2931 not add cleanup actions in thunks associated with interface types.
2932 * exp_ch3.ad[sb] (Is_Variable_Size_Record): Move declaration to
2934 * exp_ch4.adb (Tagged_Conversion): Update call to
2935 Expand_Interface_Conversion since the parameter Is_Static is no
2937 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Adding
2938 assertion to ensure that interface thunks are never handled by
2940 (Expand_N_Simple_Function_Return): Do not rewrite this statement
2941 as an extended return statement in interface thunks, and do not
2942 perform copy in the secondary stack if the return statement is
2944 * exp_disp.adb (Expand_Dispatching_Call): No longer displace
2945 the pointer to the returned object in functions returning interface
2947 (Expand_Interface_Thunk): For functions returning interface types
2948 displace the pointer to the returned object.
2949 (Expand_Interface_Conversion): Remove formal
2950 Is_Static since this subprogram can now evaluate it locally.
2951 * sem_ch3.adb (Add_Internal_Interface_Entities): For functions
2952 propagate the type returned by the covered interface primitive to
2953 the internal interface entity. Needed by the thunk to generate
2954 the code which displaces "this" to reference the corresponding
2955 secondary dispatch table.
2956 * sem_disp.adb (Propagate_Tag): Update call to
2957 Expand_Interface_Conversion since the parameter Is_Static is no
2959 * sem_res.adb (Resolve_Type_Conversion): Update calls to
2960 Expand_Interface_Conversion since the parameter Is_Static is no
2961 longer needed plus code cleanup.
2963 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2965 * init.c (RETURN_ADDR_OFFSET): Delete as unused.
2967 2013-04-11 Robert Dewar <dewar@adacore.com>
2969 * a-crbtgk.adb, a-ciorse.adb, a-crbtgo.adb, a-coorse.adb, a-rbtgbo.adb,
2970 a-cborse.adb, a-rbtgso.adb, exp_ch3.adb: Minor reformatting.
2972 2013-04-11 Yannick Moy <moy@adacore.com>
2974 * exp_ch4.adb (Expand_N_Selected_Component): Do not expand
2975 discriminant check for Unchecked_Union.
2976 * sem_res.adb (Resolve_Selected_Component): Set flag
2977 Do_Discriminant_Check even when expansion is not performed.
2978 * sinfo.ads (Do_Discriminant_Check): Update documentation for the case
2981 2013-04-11 Thomas Quinot <quinot@adacore.com>
2983 * sem_ch13.adb (Same_Representation): Two types with different scalar
2984 storage order never have the same representation.
2986 2013-04-11 Arnaud Charlet <charlet@adacore.com>
2988 * xgnatugn.adb (Push_Conditional): Simplify handling,
2989 no longer need to keep track of "excluding" sections.
2990 (Currently_Excluding): Removed.
2991 (Process_Source_File):
2992 Set unw/vms flag so that texinfo can do the whole handling of
2993 @ifset/@ifclear sections. Fix handling of nested @ifset/@ifclear
2995 * gnat_ugn.texi: Add a section on performing unassisted install
2998 2013-04-11 Johannes Kanig <kanig@adacore.com>
3000 * debug.adb: Document usage of -gnatd.Q switch.
3002 2013-04-11 Matthew Heaney <heaney@adacore.com>
3004 * a-crbtgk.adb (Ceiling, Find, Floor): Adjust locks
3005 before element comparisons.
3006 (Generic_Conditional_Insert, Generic_Conditional_Insert_With_Hint):
3008 * a-crbtgo.adb, a-rbtgbo.adb (Generic_Equal): Adjust locks before
3009 element comparisons.
3010 * a-rbtgso.adb (Difference, Intersection): Adjust locks
3011 before element comparisons.
3012 (Is_Subset, Overlap): Ditto
3013 (Symmetric_Difference, Union): Ditto
3014 * a-btgbso.adb (Set_Difference, Set_Intersection): Adjust locks
3015 before element comparisons.
3016 (Set_Subset, Set_Overlap): Ditto
3017 (Set_Symmetric_Difference, Set_Union): Ditto
3018 * a-coorse.adb, a-ciorse.adb, a-cborse.adb
3019 (Update_Element_Preserving_Key): Adjust locks before element
3020 comparisons (Replace_Element): Ditto
3022 2013-04-11 Pascal Obry <obry@adacore.com>
3024 * prj-attr.adb, projects.texi, snames.ads-tmpl: Remove Build_Slaves
3027 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3029 * exp_ch3.adb (Build_Equivalent_Aggregate): Subsidiary of
3030 Expand_N_Object_Declaration, used to construct an aggregate
3031 with static components whenever possible, so that objects of a
3032 discriminated type can be initialized without calling the init.
3035 2013-04-11 Vincent Celier <celier@adacore.com>
3037 * prj-makr.adb (Process_Directory): On VMS, always delete,
3038 then recreate the temporary file with Create_Output_Text_File,
3039 otherwise the output redirection does not work properly.
3041 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3043 * urealp.ads: Fix minor typo.
3045 2013-04-11 Fabien Chouteau <chouteau@adacore.com>
3047 * cio.c (mktemp): Don't use tmpnam function from the
3048 system on VxWorks in kernel mode.
3050 2013-04-11 Vincent Celier <celier@adacore.com>
3052 * make.adb (Compile): Clarify the error message reported
3053 when gnatmake refuses to compile a runtime source.
3054 (Start_Compile_If_Possible): Ditto.
3056 2013-04-11 Vincent Celier <celier@adacore.com>
3058 * gnat_ugn.texi: Add documentation about -gnatc and gnatmake.
3060 2013-04-11 Vincent Celier <celier@adacore.com>
3062 * switch-c.adb: Document internal switches.
3063 * usage.adb: Remove lines for internal switches: -gnatea, -gnateO,
3064 -gnatez and -gnateO.
3066 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3068 * par-ch6.adb (P_Subprogram): Attach aspects to subprogram stub.
3069 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Allow aspects on
3071 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze generated
3072 pre/post pragmas at once before analyzing the proper body.
3073 * sem_prag.adb (Chain_PPC): Handle pragma that comes from an
3074 aspect on a subprogram stub.
3075 * aspects.adb: Aspect specifications can appear on a
3076 subprogram_Body_Stub.
3078 2013-04-11 Vincent Celier <celier@adacore.com>
3080 * gnatname.adb: Minor comment fix.
3082 2013-04-11 Vincent Celier <celier@adacore.com>
3084 * prj-makr.adb (Process_Directory): Create a new temporary
3085 file for each invocation of the compiler, in directory pointed
3086 by environment variable TMPDIR if it exists.
3088 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3090 * gnat_ugn.texi: Minor editing/clean ups.
3092 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3094 * sem_ch6.adb (Analyze_Null_Procedure): New subprogram, mostly
3095 extracted from Analyze_Subprogram_Declaration, to handle null
3096 procedure declarations that in ada 2012 can be completions of
3097 previous declarations.
3099 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3101 * sem_prag.adb (Entity_Of): Moved to Exp_Util.
3102 * exp_util.ads, exp_util.adb (Entity_Of): New routine.
3104 2013-04-11 Robert Dewar <dewar@adacore.com>
3106 * g-spipat.ads: Minor comment fix.
3108 2013-04-11 Robert Dewar <dewar@adacore.com>
3110 * sem_prag.adb, sem_util.adb, sem_res.adb, exp_ch4.adb: Minor
3113 2013-04-11 Thomas Quinot <quinot@adacore.com>
3115 * exp_util.ads (Fully_Qualified_Name_String): Document that the
3116 constructed literal is the entity name in all upper case.
3118 2013-04-11 Thomas Quinot <quinot@adacore.com>
3120 * sem_util.adb (Set_Entity_With_Style_Check): Fix logic of
3121 check for implementation defined identifiers.
3123 2013-04-11 Yannick Moy <moy@adacore.com>
3125 * checks.adb (Apply_Type_Conversion_Checks): Add an explanation
3126 of why range check and length are put on different nodes.
3127 * exp_ch4.adb (Apply_Type_Conversion_Checks): Remove check marks
3128 when doing their expansion.
3130 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3132 * sem_util.ads, sem_util.adb (Get_Incomplete_View_Of_Ancestor):
3133 New function to implement the notion introduced in RM 7.3.1
3134 (5.2/3): in a child unit, a derived type is within the derivation
3135 class of an ancestor declared in a parent unit, even if there
3136 is an intermediate derivation that does not see the full view
3138 * sem_res.adb (Valid_Conversion): if all else fails, examine if an
3139 incomplete view of an ancestor makes a numeric conversion legal.
3141 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3143 * sem_ch6.adb: in Ada2012 operators can only have in
3146 2013-04-11 Vincent Celier <celier@adacore.com>
3148 * makeutl.adb (Create_Binder_Mapping_File): Do not put into
3149 the mapping file ALI files of sources that have been replaced.
3151 2013-04-11 Vincent Celier <celier@adacore.com>
3153 * projects.texi: Add subsection Duplicate Sources in Projects.
3155 2013-04-11 Vincent Celier <celier@adacore.com>
3157 * gnat_ugn.texi: Add documentation for gnatmake switch -droot_dir/**
3159 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3161 * init.c (__gnat_install_handler): Only set up an alternate
3162 stack when installing a signal handler for SIGSEGV.
3164 2013-04-11 Thomas Quinot <quinot@adacore.com>
3166 * g-socket.adb (Connect_Socket, timeout version): Call
3167 underlying connect operation directly, not through the 2-argument
3168 Connect_Socket thick binding, in order to avoid raising a junk
3169 exception for the EINPROGRESS return.
3171 2013-04-11 Robert Dewar <dewar@adacore.com>
3173 * a-cdlili.adb: Minor addition of pragma Warnings (Off).
3175 2013-04-11 Robert Dewar <dewar@adacore.com>
3177 * hostparm.ads: Minor reformatting.
3179 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3181 * aspects.ads, aspects.adb: Add Aspect_Depends to all the relevant
3183 * elists.ads, elists.adb (Contains): New routine.
3184 * par-prag.adb: Pragma Depends does not need any special treatment
3186 * sem_ch13.adb (Analyze_Aspect_Specifications):
3187 Transform aspect Depends into a corresponding pragma.
3188 (Check_Aspect_At_Freeze_Point): Aspect Depends does not need
3189 inspection at its freeze point.
3190 * sem_prag.adb (Analyze_Pragma): Perform analysis and
3191 normalization of pragma Depends. Remove the use of function
3192 Is_Duplicate_Item. Use End_Scope to uninstalle the formal
3193 parameters of a subprogram. Add a value for pragma Depends in
3195 (Is_Duplicate_Item): Removed.
3196 * snames.ads-tmpl: Add predefined name for Depends as well as
3197 a pragma identifier.
3199 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3201 * gnat1drv.adb: Minor code clean up.
3203 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3205 * debug.adb, sem_ch13.adb (Analyze_Enumeration_Representation_Clause):
3206 Ignore enumeration rep clauses by default in CodePeer mode, unless
3207 -gnatd.I is specified.
3209 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3211 * sem_util.adb (Safe_To_Capture_Value): If the node belongs to
3212 an expression that has been attached to the else_actions of an
3213 if-expression, the capture is not safe.
3215 2013-04-11 Yannick Moy <moy@adacore.com>
3217 * checks.adb (Apply_Type_Conversion_Checks): Put check mark on type
3218 conversion for arrays.
3220 2013-04-11 Robert Dewar <dewar@adacore.com>
3222 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
3224 2013-04-11 Johannes Kanig <kanig@adacore.com>
3226 * adabkend.adb: Minor comment addition.
3228 2013-04-11 Matthew Heaney <heaney@adacore.com>
3230 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb ("="): Increment
3231 lock counts before entering loop.
3233 (Is_Sorted, Merge, Sort): Ditto.
3234 (Reverse_Find): Ditto.
3235 (Splice_Internal): Internal operation to refactor splicing logic.
3236 (Splice): Some logic moved into Splice_Internal.
3238 2013-04-11 Johannes Kanig <kanig@adacore.com>
3240 * adabkend.adb (Scan_Compiler_Arguments): Do not call
3241 Set_Output_Object_File_Name in Alfa_Mode
3242 * gnat1drv.adb (Adjust_Global_Switches): Take Alfa_Mode into account.
3243 * opt.ads: Fix documentation.
3245 2013-04-11 Robert Dewar <dewar@adacore.com>
3247 * sem_res.adb: Minor code reorganization and comment fixes.
3248 * sem_type.adb: Minor reformatting.
3250 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3252 * exp_ch4.adb (Process_Transient_Object): Add new
3253 local variable Fin_Call. Remove and explain ??? comment. Use the
3254 Actions of logical operators "and then" and "or else" to insert
3255 the generated finalization call.
3257 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3259 * gnat_rm.texi: Fix typo.
3261 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3263 * sem_res.adb: Minor reformatting.
3265 2013-04-11 Robert Dewar <dewar@adacore.com>
3267 * atree.h: Add declarations for Flag255-Flag289 Fix declaration
3268 of Field30 (was wrong, but no effect, since not yet referenced by
3269 back end) Add declarations for Field31-Field35 Add declarations
3271 * einfo.ads, einfo.adb (Has_Invariants): No longer applies to
3273 (Has_Predicates): No longer applies to functions.
3274 (Is_Predicate_Function): New flag.
3275 (Is_Predicate_Function_M): New flag.
3276 (Is_Invariant_Procedure): New flag.
3277 (Predicate_Function_M): New function.
3278 (Set_Predicate_Function_M): New procedure.
3279 * exp_ch11.adb (Expand_N_Raise_Expression): Take care of special
3280 case of appearing in predicate used for membership test.
3281 * exp_ch3.adb (Insert_Component_Invariant_Checks): Set
3282 Is_Invariant_Procedure flag.
3283 * exp_ch4.adb (Expand_Op_In): Call special predicate function
3284 that takes care of raise_expression nodes in the predicate.
3285 * exp_util.ads, exp_util.adb (Make_Predicate_Call): Add argument Mem for
3287 * sem_ch13.adb (Build_Predicate_Functions): New name for
3288 Build_Predicate_Function. Major rewrite to take care of raise
3289 expression in predicate for membership tests.
3290 * sem_res.adb (Resolve_Actuals): Include both predicate functions
3291 in defense against infinite predicate function loops.
3292 * sinfo.ads, sinfo.adb (Convert_To_Return_False): New flag.
3294 2013-04-11 Robert Dewar <dewar@adacore.com>
3296 * sem_prag.adb: Minor reformatting.
3298 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3300 * lib-xref.adb: Generate reference for component of anonymous
3303 2013-04-11 Robert Dewar <dewar@adacore.com>
3305 * stand.ads: Minor reformatting.
3307 2013-04-11 Matthew Heaney <heaney@adacore.com>
3309 * a-convec.adb, a-coinve.adb, a-cobove.adb ("="): Increment lock
3310 counts before entering loop.
3311 (Find, Find_Index): Ditto.
3312 (Is_Sorted, Merge, Sort): Ditto.
3313 (Reverse_Find, Reverse_Find_Index): Ditto.
3315 2013-04-11 Robert Dewar <dewar@adacore.com>
3317 * exp_ch11.ads, exp_ch11.adb (Expand_N_Raise_Expression): New procedure.
3318 * exp_util.adb (Insert_Actions): Add entry for N_Raise_Expression.
3319 * expander.adb: Add call to Expand_N_Raise_Expression.
3320 * par-ch11.adb (P_Raise_Expression): New procedure.
3321 * par-ch4.adb (P_Relation): Handle Raise_Expression.
3322 * par.adb (P_Raise_Expression): New procedure.
3323 * sem.adb: Add handling for N_Raise_Expression.
3324 * sem_ch11.ads, sem_ch11.adb (Analyze_Raise_Expression): New procedure.
3325 * sem_res.adb (Resolve): Add handling for N_Raise_Expression.
3326 * sinfo.ads, sinfo.adb (N_Raise_Expression): New node.
3327 * sprint.adb (Sprint_Node_Actual): Add handling for N_Raise_Expression.
3328 * stand.ads (Any_Type): Document use with N_Raise_Expression.
3330 2013-04-11 Vincent Celier <celier@adacore.com>
3332 * gnat_ugn.texi: Remove section "The Development Environments"
3333 now that all predefined attributes are documented, including
3334 those in package IDE.
3336 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3338 * sem_ch6.adb: Preserve parent link in copy of expression.
3340 2013-04-11 Vincent Celier <celier@adacore.com>
3342 * projects.texi: Complete rewrite of the subsection Attributes
3343 in section "Project file Reference".
3345 2013-04-11 Robert Dewar <dewar@adacore.com>
3347 * exp_ch4.adb: Minor reformatting.
3349 2013-04-11 Robert Dewar <dewar@adacore.com>
3351 * exp_ch4.adb (Expand_Concatenate): Remove wrapping in
3352 expression-with-actions node. No longer needed given fix to
3353 sem_prag and caused loss of some useful warnings.
3354 * sem.ads: Minor reformatting.
3355 * sem_prag.adb (Check_Disabled): Removed, to be replaced by not
3356 Check_Enabled. These two routines were curiously incompatible
3358 (Analyze_Pragma, case Check): Make sure we do
3359 not expand the string argument if the check is disabled. Avoid
3360 use of Check_Disabled, which resulted in missing analysis in
3362 * sem_prag.ads (Check_Disabled): Removed, to be replaced by not
3363 Check_Enabled. These two routines were curiously incompatible
3366 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3368 * exp_ch4.adb (Process_Transient_Object): Use
3369 an unchecked conversion when associating a transient controlled
3370 object with its "hook".
3372 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3374 * sem_prag.adb (Analyze_Pragma, case
3375 Preelaborable_Initialization): The pragma is legal if it comes
3376 from an aspect on the private view of the type, even though its
3377 analysis point takes place later at the freeze point.
3379 2013-04-11 Robert Dewar <dewar@adacore.com>
3381 * sem_ch6.adb: Minor reformatting.
3383 2013-04-11 Yannick Moy <moy@adacore.com>
3385 * ali-util.adb (Read_Withed_ALIs): Do not consider it an error to
3386 read ALI files with No_Object=True in Alfa mode.
3387 * gnat1drv.adb: Set appropriately Back_End_Mode in Alfa mode, whether
3388 this is during frame condition generation of translation to Why.
3390 2013-04-11 Robert Dewar <dewar@adacore.com>
3392 * exp_ch4.adb: Minor code reorganization
3393 * types.ads: Minor reformatting.
3395 2013-04-11 Johannes Kanig <kanig@adacore.com>
3397 * opt.ads New global boolean Frame_Condition_Mode to avoid
3398 referring to command line switch.
3399 * gnat1drv.adb (Gnat1drv) set frame condition mode when -gnatd.G
3400 is present, and disable Code generation in that case. Disable
3401 ALI file generation when switch is *not* present.
3403 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3405 * sem_ch6.adb (Analyze_Expression_Function): Perform the
3406 pre-analysis on a copy of the expression, to prevent downstream
3407 visbility issues involving operators and instantiations.
3409 2013-04-11 Johannes Kanig <kanig@adacore.com>
3411 * debug.adb: Reservation and documentation for -gnatd.G switch.
3412 * gnat1drv.adb (Adjust_Global_Switches) Take into account -gnatd.G
3413 switch, and set ALI file generation accordingly.
3415 2013-04-11 Robert Dewar <dewar@adacore.com>
3417 * exp_ch4.adb, exp_dist.adb: Minor reformatting.
3418 * gnat_rm.texi, gnat_ugn.texi: -020 Add documentation clarifying that
3419 check names introduced with pragma Check_Name are suppressed by -gnatp.
3421 2013-04-11 Vincent Celier <celier@adacore.com>
3423 * gnat_ugn.texi, projects.texi: Move chapter "Tools Supporting Project
3424 Files" from projects.texi to gnat_ugn.texi.
3426 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3428 * gcc-interface/Make-lang.in: Update dependencies.
3430 2013-04-11 Yannick Moy <moy@adacore.com>
3432 * gnat1drv.adb (Adjust_Global_Switches): Allow missing body in Alfa
3435 2013-04-11 Hristian Kirtchev <kirtchev@adacore.com>
3437 * exp_ch4.adb (Expand_N_Allocator): Detect the
3438 allocation of an anonymous controlled object where the type of
3439 the context is named. Use the pool and finalization master of
3440 the named access type to allocate the object.
3442 2013-04-11 Vincent Celier <celier@adacore.com>
3444 * gnat_ugn.texi: Remove most mentions of gprbuild.
3445 * projects.texi: Remove all mentions of asociative array
3448 2013-04-11 Robert Dewar <dewar@adacore.com>
3450 * sem_prag.adb, sem_attr.adb, gnat1drv.adb, prj-makr.adb,
3451 opt.ads, sem_ch13.adb: Minor reformatting.
3452 * debug.adb: Minor comment fix (remove junk .I doc).
3454 2013-04-11 Thomas Quinot <quinot@adacore.com>
3456 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Rtsfind.PCS_Version, case
3457 PolyORB): Bump to 6.
3458 (Exp_Dist.PolyORB_Support): Replace TC_Build with
3461 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3463 * debug.adb, sem_prag.adb, par-ch2.adb, sem_attr.adb, gnat1drv.adb,
3464 exp_disp.adb, opt.ads, sem_ch13.adb (Relaxed_RM_Semantics): New flag.
3465 Enable this flag in CodePeer mode, and also via -gnatd.M.
3466 Replace some uses of CodePeer_Mode by Relaxed_RM_Semantics.
3468 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3470 * sem_ch8.adb (Check_Constrained_Object): If a subtype is created
3471 from the renamed object in an object renaming declaration with
3472 an unconstrained nominal subtype, freeze the created subtype at
3473 once, to prevent order of elaboration issues in the backend.
3475 2013-04-11 Arnaud Charlet <charlet@adacore.com>
3477 * exp_aggr.adb (Aggr_Size_OK): Refine setting of Max_Aggr_Size
3478 in particular in CodePeer mode.
3480 2013-04-11 Vincent Celier <celier@adacore.com>
3482 * gnat_ugn.texi: Add documentation for backup copies of project
3485 2013-04-11 Tristan Gingold <gingold@adacore.com>
3487 * gnat_rm.texi: Add Detect_BLocking in the ravenscar profile
3490 2013-04-11 Vincent Celier <celier@adacore.com>
3492 * gnatname.adb (Scan_Args): Recognize new switch --no-backup
3493 (Usage): Add line for --no-backup.
3494 * opt.ads (No_Backup): New Boolean variable, initialized to False.
3495 (Ada_Version_Default): Switch to Ada 2012 by default.
3496 * prj-makr.adb (Initialize): Create a backup for an existing
3497 project file if gnatname is not invoked with --no-backup.
3499 2013-04-11 Thomas Quinot <quinot@adacore.com>
3501 * exp_ch4.adb: Minor code improvement: replace various calls to
3502 Make_If_Statement in expansion with Make_Implicit_If_Statement.
3504 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3506 * ali.adb: Fix minor typo.
3508 2013-04-11 Thomas Quinot <quinot@adacore.com>
3510 * exp_ch4.adb (Find_Enclosing_Context): Add missing case of
3511 N_Procedure_Call_Statement.
3513 2013-04-11 Robert Dewar <dewar@adacore.com>
3515 * debug.adb: Minor comment fix.
3517 2013-04-11 Johannes Kanig <kanig@adacore.com>
3519 * debug.adb: Remove comment for -gnatd.G.
3521 2013-04-11 Thomas Quinot <quinot@adacore.com>
3523 * exp_ch4.adb (Expand_Record_Equality.Suitable_Element):
3524 Remove recursive routine, replace with...
3525 (Expand_Record_Equality.Element_To_Compare): New subroutine,
3526 implement iterative search for next element to compare.
3527 Add explanatory comment in the tagged case.
3529 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3531 * sem_ch5.adb: remove spurious warning from non-empty loop.
3532 * sem_ch8.adb (Enclosing_Instance): Make public to other routines
3533 in the package, in order to suppress redundant semantic checks
3534 on subprogram renamings in nested instantiations.
3536 2013-04-11 Robert Dewar <dewar@adacore.com>
3538 * errout.ads: Minor reformatting.
3539 * sem_eval.adb (Why_Not_Static): Now issues continuation messages
3540 (Why_Not_Static): Test for aggregates behind string literals.
3541 * sem_eval.ads (Why_Not_Static): Now issues continuation messages.
3543 2013-04-11 Robert Dewar <dewar@adacore.com>
3545 * exp_ch4.adb (Expand_Concatenation): Wrap expansion in
3546 Expressions_With_Actions.
3548 2013-04-11 Ed Schonberg <schonberg@adacore.com>
3550 * sem_ch6.adb (Base_Types_Match): For an actual type in an
3551 instance, the base type may itself be a subtype, so find true
3552 base type to determine compatibility.
3554 2013-04-11 Robert Dewar <dewar@adacore.com>
3556 * s-osprim-mingw.adb, sem_ch3.adb, sem_prag.adb, sem_util.adb.
3557 makeutl.adb, sem_ch8.adb: Minor reformatting.
3559 2013-04-11 Vincent Celier <celier@adacore.com>
3561 * gnat_ugn.texi: Minor fixes for VMS.
3562 * ug_words: Minor addition: -gnato? => /OVERFLOW_CHECKS=?.
3564 2013-04-11 Robert Dewar <dewar@adacore.com>
3566 * usage.adb (Usage): Minor edit to -gnatW message
3568 2013-04-11 Robert Dewar <dewar@adacore.com>
3570 * exp_aggr.adb (Expand_N_Aggregate): Add circuit for handling
3571 others for string literal case. Also add big ??? comment about
3572 this new code, which should be redundant, but is not.
3573 * sem_eval.adb (Eval_Concatenation): Handle non-static case
3574 properly (Eval_String_Literal): Handle non-static literal properly
3576 2013-03-20 Tobias Burnus <burnus@net-b.de>
3578 * i-fortra.ads: Update comment, add Ada 2012's optional
3579 Star and Kind data types for enhanced interoperability.
3581 2013-03-16 Eric Botcazou <ebotcazou@adacore.com>
3583 * gnatvsn.ads (Library_Version): Bump to 4.9.
3585 2013-03-08 Cesar Strauss <cestrauss@gmail.com>
3588 * seh_init.c (Raise_From_Signal_Handler): Declare as no-return.
3589 (__gnat_SEH_error_handler): Likewise. Remove final return.
3591 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3593 * gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring
3594 out for an unimplemented attribute.
3596 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3598 * gcc-interface/decl.c (gnat_to_gnu_field): Remove the wrapper around
3599 a misaligned integral type if a size is specified for the field.
3601 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3603 * gcc-interface/trans.c (Raise_Error_to_gnu) <CE_Index_Check_Failed>:
3604 Record the unpadded type of the index type on the RCI stack.
3606 2013-03-06 Eric Botcazou <ebotcazou@adacore.com>
3608 * gcc-interface/trans.c (emit_range_check): Assert that the range type
3609 is a numerical type and remove useless local variables.
3611 2013-02-25 Eric Botcazou <ebotcazou@adacore.com>
3613 * gcc-interface/ada-tree.h: Back out change accidentally committed.
3615 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3618 * gnat-style.texi (@title): Remove @hfill.
3619 * projects.texi: Avoid line wrapping inside of @pxref or @xref.
3621 2013-02-14 Rainer Emrich <rainer@emrich-ebersheim.de>
3624 * tracebak.c: Cast from pointer via FARPROC.
3626 2013-02-07 Simon Wright <simon@pushface.org>
3629 * init.c (__darwin_major_version): New function for x86-64/Darwin.
3630 (__gnat_adjust_context_for_raise) [Darwin]: Disable the workaround
3631 on Darwin 12 and above.
3633 2013-02-06 Rainer Emrich <rainer@emrich-ebersheim.de>
3636 * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via
3637 SECURITY_DESCRIPTOR *
3638 (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE
3639 (__gnat_portable_spawn): Fix cast to char* const*
3640 (add_handle): Cast from pointer via void **
3641 (add_handle): Cast from pointer via int *
3642 (__gnat_locate_exec_on_path): Cast from pointer via TCHAR *
3643 (__gnat_locate_exec_on_path): Cast from pointer via char *
3644 * initialize.c (append_arg): Cast from pointer via LPWSTR
3645 (__gnat_initialize): Cast from pointer via LPWSTR
3646 * seh_init.c (__gnat_map_SEH): Cast from pointer via FARPROC
3648 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3650 * gcc-interface/Make-lang.in: Enable System.Stack_Checking.Operations
3651 target pairs on VxWorks 5 only.
3653 2013-02-06 Arnaud Charlet <charlet@adacore.com>
3655 * gcc-interface/Make-lang.in: Update dependencies.
3657 2013-02-06 Vincent Celier <celier@adacore.com>
3659 * prj-proc.adb (Process_Aggregated_Projects): Use a new project
3660 node tree for each project tree rooted at an aggregated project.
3662 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3664 * sem_util.adb (Is_Interface_Conversion): New routine.
3665 (Object_Access_Level): Detect an interface conversion
3666 that has been rewritten into a different construct. Use the
3667 original form of the conversion to find the access level of
3670 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3672 * einfo.ads (Has_Pragma_No_Inline): New flag using Flag201.
3673 (Has_Pragma_No_Inline): Declare and mark as inline.
3674 (Set_Has_Pragma_No_Inline): Likewise.
3675 * einfo.adb (Has_Pragma_No_Inline): New function.
3676 (Set_Has_Pragma_No_Inline): New procedure.
3677 (Write_Entity_Flags): Handle Has_Pragma_No_Inline.
3678 * snames.ads-tmpl (Name_No_Inline): New pragma-related name.
3679 (Pragma_Id): Add Pragma_No_Inline value.
3680 * par-prag.adb (Prag): Handle Pragma_Inline.
3681 * sem_prag.adb (Inline_Status): New enumeration type.
3682 (Process_Inline): Change Active parameter
3683 to Inline_Status and add support for suppressed inlining.
3684 (Analyze_Pragma) <Pragma_Inline>: Adjust to above change.
3685 <Pragma_Inline_Always>: Likewise.
3686 <Pragma_No_Inline>: Implement new pragma No_Inline.
3687 (Sig_Flags): Add Pragma_No_Inline.
3688 * gnat_rm.texi (Implementation Defined Pragmas): Add No_Inline.
3689 * gnat_ugn.texi (Switches for gcc): Mention Pragma No_Inline.
3691 2013-02-06 Pascal Obry <obry@adacore.com>
3693 * s-osprim-mingw.adb (Clock): Make sure we copy all data locally
3694 to avoid interleaved modifications that could happen from another
3695 task calling Get_Base_Data.
3696 (Get_Base_Data): Make it a critical section. Avoid updating if another
3697 task has already done it.
3699 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3701 * sem_prag.adb: Minor reformatting.
3703 2013-02-06 Pascal Obry <obry@adacore.com>
3705 * s-tasloc.ads: Set System.Task_Lock to preelaborate.
3707 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
3709 * snames.ads-tmpl (Name_Loop_Optimize, Name_No_Unroll,
3710 Name_Unroll, Name_No_Vector, Name_Vector): New pragma-related
3712 (Pragma_Id): Add Pragma_Loop_Optimize value.
3713 * par-prag.adb (Prag): Handle Pragma_Loop_Optimize.
3714 * sem_prag.adb (Check_Loop_Invariant_Variant_Placement): Rename to...
3715 (Check_Loop_Pragma_Placement): ...this.
3717 <Pragma_Loop_Invariant>: Adjust to above renaming.
3718 <Loop_Variant>: Likewise.
3719 <Pragma_Loop_Optimize>: Implement new pragma Loop_Optimize.
3720 (Sig_Flags): Add Pragma_Loop_Optimize.
3721 * gnat_rm.texi (Implementation Defined Pragmas): Add Loop_Optimize.
3722 * gnat_ugn.texi (Vectorization of loops): Mention Loop_Optimize.
3724 2013-02-06 Robert Dewar <dewar@adacore.com>
3726 * osint.ads: Minor fix of typo.
3728 2013-02-06 Sergey Rybin <rybin@adacore.com frybin>
3730 * gnat_ugn.texi: gnatmetric: update the documentation of
3731 complexity metrics for Ada 2012.
3733 2013-02-06 Javier Miranda <miranda@adacore.com>
3735 * exp_disp.adb (Make_Secondary_DT): Code cleanup:
3736 remove useless initialization.
3738 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3740 * sem_ch3.adb (Build_Discriminant_Constraints): Do not
3741 generate overflow checks on a discriminant expression if the
3742 discriminant constraint is applied to a private type that has
3743 a full view, because the check will be applied when the full
3744 view is elaborated. Removing the redundant check is not just
3745 an optimization, but it prevents spurious assembler errors,
3746 because of the way the backend generates names for expressions
3747 that require overflow checking.
3749 2013-02-06 Pascal Obry <obry@adacore.com>
3751 * s-osprim-mingw.adb: Removes workaround for an old GNU/Linker
3752 limitation on Windows.
3762 (Clock): Use variable corresponding to access.
3763 (Get_Base_Time): Likewise.
3764 (Monotonic_Clock): Likewise.
3766 2013-02-06 Vincent Celier <celier@adacore.com>
3768 * make.adb (Gnatmake): When gnatmake is called with a project
3769 file, do not invoke gnatbind with -I-.
3770 * makeutl.adb (Create_Binder_Mapping_File): Rewrite function. Get
3771 the infos from all the sources.
3773 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3775 * snames.ads-tmpl: Add Name_Overriding_Renamings and pragma
3776 Overriding_Renamings.
3777 * par-prag.adb: Recognize pragma Overriding_Renamings.
3778 * opt.ads (Overriding_Renamings): flag to control compatibility
3779 mode with Rational compiler, replaces Rational_Profile flag.
3780 * sem_ch8.adb (Analyze_Subprogram_Renaming): When
3781 Overriding_Renamings is enabled, accept renaming declarations
3782 where the new subprogram renames and overrides a locally inherited
3783 operation. Improve error message for some illegal renamings.
3784 * sem_prag.adb (Analyze_Pragma): Add case for Overriding_Renamings.
3785 (Set_Rational_Profile): The Rational_Profile enables
3786 Overriding_Renamings, Implicit_Packing, and Use_Vads_Size.
3788 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3790 * sem_util.adb: Set parent of copied aggregate component, to
3791 prevent infinite loop.
3793 2013-02-06 Robert Dewar <dewar@adacore.com>
3795 * sem_ch3.adb, sem_ch10.adb: Minor reformatting.
3796 * exp_disp.adb: Minor comment update.
3797 * comperr.ads, osint.ads, rtsfind.adb, sem_prag.adb: Minor addition of
3800 2013-02-06 Thomas Quinot <quinot@adacore.com>
3802 * targparm.ads, sem_ch13.adb (Support_Nondefault_SSO): New target
3803 parameter, defaulted to False for now, indicates targets where
3804 non-default scalar storage order may be specified.
3806 2013-02-06 Thomas Quinot <quinot@adacore.com>
3808 * sprint.adb (Write_Itype): Treat E_Record_Subtype_With_Private
3809 same as E_Record_Subtype. Display E_Class_Wide_Subtype as
3812 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3814 * sem_ch3.adb (Complete_Private_Subtype): Inherit the
3815 Has_Unknown_Discriminants from the full view of the base type.
3817 2013-02-06 Tristan Gingold <gingold@adacore.com>
3819 * raise-gcc.c: Remove useless includes (sys/stat.h, adaint.h)
3820 Enclosing debugging functions within #ifndef inhibit_libc to
3821 support builds without full C headers.
3823 2013-02-06 Thomas Quinot <quinot@adacore.com>
3825 * gnat_rm.texi: Add a minimal example of Scalar_Storage_Order.
3827 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3829 * sem_ch10.adb (Install_Limited_Withed_Unit): Add a missing
3830 check to detect a parent-child relationship between two units in
3831 order to correctly bypass the installation of a limited view. In
3832 other words, the comment on the intended usage of the check was
3833 correct, but the code itself did not reflect the behavior.
3835 2013-02-06 Javier Miranda <miranda@adacore.com>
3837 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate the
3838 runtime check on assignment to tagged types if compiling with checks
3841 2013-02-06 Robert Dewar <dewar@adacore.com>
3843 * exp_util.adb, checks.adb, sem_ch12.adb, sem_res.adb, prj-conf.adb,
3844 s-os_lib.adb: Minor reformatting
3846 2013-02-06 Vincent Celier <celier@adacore.com>
3848 * ug_words: Add -gnateY = /IGNORE_STYLE_CHECKS_PRAGMAS.
3850 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3852 * snames.ads-tmpl: Add Name_Rational and pragma Rational.
3853 * par-prag.adb: Recognize pragma Rational.
3854 * opt.ads (Rational_Profile): flag to control compatibility mode
3855 with Rational compiler.
3856 * sem_ch8.adb (Analyze_Subprogram_Renaming): When Rational profile
3857 is enable, accept renaming declarations where the new subprogram
3858 and the renamed entity have the same name.
3859 * sem_prag.adb (analyze_pragma): Add pragma Rational, and recognize
3860 Rational as a profile.
3862 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3864 * exp_ch5.adb (Expand_Loop_Entry_Attributes): When
3865 dealing with a for loop that iterates over a subtype indication
3866 with a range, use the low and high bounds of the subtype.
3868 2013-02-06 Nicolas Roche <roche@adacore.com>
3870 * s-os_lib.adb (Normalize_Arguments): Arguments containing tabs should
3873 2013-02-06 Vincent Celier <celier@adacore.com>
3875 * prj-conf.adb (Process_Project_And_Apply_Config): New variable
3876 Conf_Project. New recursive procedure Check_Project to find a non
3877 aggregate project and put its Project_Id in Conf_Project. Fails if
3878 no such project can be found.
3879 (Get_Or_Create_Configuration_File): New parameter Conf_Project.
3880 (Do_Autoconf): Use project directory of project Conf_Project to store
3881 the generated configuration project file.
3882 * prj-conf.ads (Get_Or_Create_Configuration_File): New parameter
3885 2013-02-06 Javier Miranda <miranda@adacore.com>
3887 * sem_res.adb (Resolve_Actuals): Generate a read
3888 reference for out-mode parameters in the cases specified by
3891 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3893 * sem_attr.adb (Resolve_Attribute): Do not resolve the prefix of
3894 Loop_Entry, instead wait until the attribute has been expanded. The
3895 delay ensures that any generated checks or temporaries are inserted
3896 before the relocated prefix.
3898 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3900 * sem_ch12.adb: Code clean up.
3902 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3904 * checks.adb (Apply_Discriminant_Check): Look for discriminant
3905 constraint in full view of private type when needed.
3906 * sem_ch12.adb (Validate_Array_Type_Instance): Specialize
3907 previous patch to components types that are private and without
3910 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3912 * exp_ch4.adb (Find_Enclosing_Context): Recognize
3913 a simple return statement as one of the cases that require special
3914 processing with respect to temporary controlled function results.
3915 (Process_Transient_Object): Do attempt to finalize a temporary
3916 controlled function result when the associated context is
3917 a simple return statement. Instead, leave this task to the
3918 general finalization mechanism.
3920 2013-02-06 Thomas Quinot <quinot@adacore.com>
3922 * einfo.ads: Minor reformatting.
3923 (Status_Flag_Or_Transient_Decl): Add ??? comment.
3925 2013-02-06 Hristian Kirtchev <kirtchev@adacore.com>
3927 * exp_ch4.adb (Expand_N_Expression_With_Actions): Rewritten. This
3928 routine should be able to properly detect controlled transient
3929 objects in its actions and generate the appropriate finalization
3931 * exp_ch6.adb (Enclosing_Context): Removed.
3932 (Expand_Ctrl_Function_Call): Remove local subprogram and
3933 constant. Use routine Within_Case_Or_If_Expression to determine
3934 whether the lifetime of the function result must be extended to
3935 match that of the context.
3936 * exp_util.ads, exp_util.adb (Within_Case_Or_If_Expression): New
3939 2013-02-06 Ed Schonberg <schonberg@adacore.com>
3941 * sem_ch12.adb (Validate_Array_Type_Instance): Extend check
3942 for subtype matching of component type of formal array type,
3943 to avoid spurious error when component type is a separate actual
3944 in the instance, and there may be a discrepancy between private
3945 and full view of component type.
3947 2013-02-06 Robert Dewar <dewar@adacore.com>
3949 * s-dim.ads, clean.adb: Minor reformatting.
3951 2013-02-06 Javier Miranda <miranda@adacore.com>
3953 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Undo previous patch.
3954 (Can_Split_Unconstrained_Function): Only split the inlined function if
3955 the compiler generates the code of its body.
3957 2013-02-06 Robert Dewar <dewar@adacore.com>
3959 * exp_prag.adb, sem_ch3.adb, exp_attr.adb, sem_prag.adb, sem_ch6.adb,
3960 exp_intr.adb, exp_dist.adb, sem_ch13.adb: Internal clean up for
3963 2013-02-06 Robert Dewar <dewar@adacore.com>
3965 * gnat_rm.texi: Minor text updates for pragma Warning.
3967 2013-02-06 Geert Bosch <bosch@adacore.com>
3969 * s-multip.adb (Number_Of_CPUs): Short-circuit in case of
3972 2013-02-06 Vincent Celier <celier@adacore.com>
3974 * clean.adb (Delete): On VMS use host notation to delete all files.
3976 2013-02-06 Robert Dewar <dewar@adacore.com>
3978 * sem_prag.adb, sem_ch6.adb, prj-conf.adb, erroutc.adb: Minor
3981 2013-02-06 Gary Dismukes <dismukes@adacore.com>
3983 * sem_ch6.adb (Check_For_Primitive_Subprogram): Test for
3984 the special case of a user-defined equality that overrides
3985 the predefined equality of a nonderived type declared in a
3987 * sem_util.adb (Collect_Primitive_Operations): Add test for
3988 Is_Primitive when looping over the subprograms following a type,
3989 to catch the case of primitives such as a user-defined equality,
3990 which otherwise won't be found when the type is not a derived
3991 type and is declared in a declarative part.
3993 2013-02-06 Vincent Celier <celier@adacore.com>
3995 * prj-conf.adb (Check_Target): Always return True when Target
3996 is empty (Get_Or_Create_Configuration_File.Get_Project_Target):
3997 New procedure to get the value of attribute Target in the main
3999 (Get_Or_Create_Configuration_File.Do_Autoconf): No
4000 need to get the value of attribute Target in the main project.
4001 (Get_Or_Create_Configuration_File): Call Get_Project_Target and
4002 use the target fom this call.
4004 2013-02-06 Eric Botcazou <ebotcazou@adacore.com>
4006 * erroutc.adb (Validate_Specific_Warning): Do not issue the
4007 warning about an ineffective Pragma Warnings for -Wxxx warnings.
4008 * sem_prag.adb (Analyze_Pragma) <Warnings>: Accept -Wxxx warnings.
4009 * gnat_rm.texi (Pragma Warnings): Document coordination with
4010 warnings of the GCC back-end.
4012 2013-02-06 Javier Miranda <miranda@adacore.com>
4014 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build the body
4015 of an inlined function if we do not generate code for the function.
4017 2013-02-06 Pascal Obry <obry@adacore.com>
4019 * s-os_lib.adb (Locate_Exec_On_Path): Call Normalize_Pathname
4020 with Resolve_Links set to False.
4022 2013-02-03 Eric Botcazou <ebotcazou@adacore.com>
4024 * gcc-interface/decl.c: Include diagnostic-core.h.
4025 (gnat_to_gnu_entity) <E_Array_Type>: Sorry if Reverse_Storage_Order
4026 is set on the entity.
4027 <E_Record_Type>: Likewise.
4028 * gcc-interface/Make-lang.in (ada/decl.o): Add $(DIAGNOSTIC_CORE_H).
4030 2013-01-29 Ben Brosgol <brosgol@adacore.com>
4032 * gnat_rm.texi: Fixed typos. Minor edits.
4034 2013-01-29 Bob Duff <duff@adacore.com>
4036 * a-convec.adb: Minor reformatting.
4038 2013-01-29 Pascal Obry <obry@adacore.com>
4040 * tempdir.adb, tempdir.ads (Use_Temp_Dir): Set wether to use the temp
4043 2013-01-29 Ed Schonberg <schonberg@adacore.com>
4045 * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Preserve loop
4046 identifier only if it comes from source.
4047 (Expand_N_Loop_Statement): If the domain of iteration is an
4048 enumeration type with a representation clause, remove from
4049 visibility the loop identifier before rewriting the loop as a
4050 block with a declaration for said identifier.
4051 * sem_util.adb (Remove_Homonym): Handle properly the default case.
4053 2013-01-29 Vincent Celier <celier@adacore.com>
4055 * prj-proc.adb: Minor comment spelling fix.
4057 2013-01-29 Pascal Obry <obry@adacore.com>
4059 * prj-proc.adb (Process_Expression_Variable_Decl): Prepend
4060 Project_Path to current environment.
4062 2013-01-29 Thomas Quinot <quinot@adacore.com>
4064 * sprint.adb (Sprint_Node_Actual): Output freeze nodes for
4065 itypes even if Dump_Freeze_Null is not set.
4067 2013-01-29 Robert Dewar <dewar@adacore.com>
4069 * sem_util.adb: Minor reformatting.
4070 * s-rident.ads: Minor comment fixes.
4072 2013-01-29 Pascal Obry <obry@adacore.com>
4074 * prj-env.ads, prj-env.adb (Add_Directories): Add parameter to
4075 control if the path is prepended or appended.
4077 2013-01-29 Ed Schonberg <schonberg@adacore.com>
4079 * sem_ch6.adb (Analyze_Expression_Function): An expression
4080 function declaration is not a subprogram declaration, and thus
4081 cannot appear in a protected definition.
4083 2013-01-29 Hristian Kirtchev <kirtchev@adacore.com>
4085 * exp_util.adb (Insert_Actions): When new
4086 actions come from the expression of the expression with actions,
4087 then they must be added to the list of existing actions.
4089 2013-01-29 Eric Botcazou <ebotcazou@adacore.com>
4091 * sem_ch3.adb (Analyze_Subtype_Declaration) <Private_Kind>: For
4092 the subtype of a constrained private type with discriminants
4093 that has got a full view, show that the completion is a clone
4096 2013-01-29 Javier Miranda <miranda@adacore.com>
4098 * errout.ads, errout.adb (Get_Ignore_Errors): New subprogram.
4099 * opt.ads (Warn_On_Overlap): Update documentation.
4100 * sem_aggr.adb (Resolve_Aggregate, Resolve_Extension_Aggregate):
4101 Check function writable actuals.
4102 * sem_ch3.adb (Build_Derived_Record_Type,
4103 Record_Type_Declaration): Check function writable actuals.
4104 * sem_ch4.adb (Analyze_Range): Check function writable actuals.
4105 * sem_ch5.adb (Analyze_Assignment): Remove code of the initial
4106 implementation of AI05-0144.
4107 * sem_ch6.adb (Analyze_Function_Return,
4108 (Analyze_Procedure_Call.Analyze_Call_And_Resolve): Remove code
4109 of the initial implementation of AI05-0144.
4110 * sem_res.adb (Resolve): Remove code of the initial implementation.
4111 (Resolve_Actuals): Call Check_Function_Writable_Actuals and remove call
4112 of the initial implementation.
4113 (Resolve_Arithmetic_Op, Resolve_Logical_Op,
4114 Resolve_Membership_Op): Check function writable actuals.
4115 * sem_util.ad[sb] (Actuals_In_Call): Removed
4116 (Check_Order_Dependence): Removed (Save_Actual): Removed
4117 (Check_Function_Writable_Actuals): New subprogram.
4118 * usage.adb (Usage): Update documentation.
4119 * warnsw.adb (Set_Warning_Switch): Enable warn_on_overlap when
4120 setting all warnings.
4122 2013-01-29 Robert Dewar <dewar@adacore.com>
4124 * a-calend-vms.adb: Minor comment fix.
4126 2013-01-29 Robert Dewar <dewar@adacore.com>
4128 * mlib-utl.adb, gnatlink.adb: Avoid reference to ASCII.Back_Slash
4129 because of casing issues.
4130 * sem_util.ads: Minor comment fix.
4131 * style.adb (Check_Identifier): Set proper casing for entities
4133 * styleg.adb: Minor comment improvement.
4134 * stylesw.ads (Style_Check_Standard): Fix bad comments.
4136 2013-01-29 Hristian Kirtchev <kirtchev@adacore.com>
4138 * sem_prag.adb: Add the grammar for pragmas Abstract_State and Global.
4139 (Analyze_Pragma): Push the scope of the related subprogram and install
4140 its formals once before starting the analysis of the [moded] global
4143 2013-01-29 Pascal Obry <obry@adacore.com>
4145 * prj-proc.adb (Process_Expression_Variable_Decl): Always handle
4146 relative paths in Project_Path as relative to the aggregate
4147 project location. Note that this was what was documented.
4149 2013-01-29 Vincent Celier <celier@adacore.com>
4151 * gnatcmd.adb: For "gnat stub -P ...", do not check the naming
4152 scheme for Ada, when Ada is not a language for the project.
4154 2013-01-29 Ed Schonberg <schonberg@adacore.com>
4156 * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
4157 Is_Generic_Actual_Type flag in a nested instance.
4158 * sem_ch12.adb (Restore_Private_Views): Preserve
4159 Is_Generic_Actual_Type flag if actual is a Generic_Actual_Type
4160 of an enclosing instance.
4161 * sem_util.adb (Corresponding_Generic_Type): Handle generic actual
4162 which is an actual of an enclosing instance.
4163 * sem_type.adb (Real_Actual): If a generic_actual_type is the
4164 formal of an enclosing generic and thus renames the corresponding
4165 actual, use the actual of the enclosing instance to resolve
4166 spurious ambiguities in instantiations when two formals are
4167 instantiated with the same actual.
4169 2013-01-29 Robert Dewar <dewar@adacore.com>
4171 * gnat_rm.texi: Document all Ada 2005 and Ada 2012 pragmas as
4172 being available as implementation-defined pragmas in earlier
4175 2013-01-29 Vincent Celier <celier@adacore.com>
4177 * clean.adb (Delete): On VMS, delete all versions of the file.
4179 2013-01-29 Robert Dewar <dewar@adacore.com>
4181 * par-ch6.adb (No_Constraint_Maybe_Expr_Func): New procedure.
4182 * par-util.adb (No_Constraint): Undo special handling, moved
4185 2013-01-29 Robert Dewar <dewar@adacore.com>
4187 * aspects.ads: Aspect Warnings is implementation defined Add
4188 some other missing entries to impl-defined list Mark Warnings
4189 as GNAT pragma in main list.
4190 * sem_ch8.adb: Process aspects for all cases of renaming
4193 2013-01-29 Robert Dewar <dewar@adacore.com>
4195 * sem_ch6.adb (Analyze_Function_Call): Set In_Assertion flag.
4196 * sem_elab.adb (Check_Internal_Call_Continue): Do not issue
4197 warnings about possible elaboration error if call is within
4199 * sinfo.ads, sinfo.adb (In_Assertion): New flag in N_Function_Call node.
4201 2013-01-29 Robert Dewar <dewar@adacore.com>
4203 * a-calend-vms.adb, g-eacodu-vms.adb, g-trasym-vms-alpha.adb,
4204 * s-auxdec-vms-ia64.adb, s-mastop-vms.adb, s-osprim-vms.adb,
4205 s-tasdeb-vms.adb: Replace pragma Interface by pragma Import.
4207 2013-01-29 Robert Dewar <dewar@adacore.com>
4209 * opt.ads (Ignore_Style_Checks_Pragmas): New flag.
4210 * par-prag.adb (Par, case Style_Checks): Recognize
4211 Ignore_Style_Checks_Pragmas.
4212 * sem_prag.adb (Analyze_Pragma, case Style_Checks): Recognize
4213 Ignore_Style_Checks_Pragmas.
4214 * switch-c.adb: Recognize -gnateY switch.
4215 * usage.adb: Add documentation for "-gnateY".
4216 * vms_data.ads: Add IGNORE_STYLE_CHECKS_PRAGMAS (-gnateY).
4218 2013-01-29 Vincent Celier <celier@adacore.com>
4220 * clean.adb (Clean_Executables): Add Sid component when calling
4222 * make.adb: When inserting in the Queue, add the Source_Id
4223 (Sid) when it is known (Start_Compile_If_Possible): When the
4224 Source_Id is known (Sid), get the path name of the ALI file
4225 (Full_Lib_File) from it, to avoid finding old ALI files in other
4227 * makeutl.ads (Source_Info): New Source_Id component Sid in
4228 Format_Gnatmake variant.
4230 2013-01-29 Robert Dewar <dewar@adacore.com>
4232 * gnat_ugn.texi: Document -gnateY.
4234 2013-01-29 Doug Rupp <rupp@adacore.com>
4236 * s-osinte-vms.ads, s-taprop-vms.adb, system-vms_64.ads,
4237 system-vms-ia64.ads: Replace pragma Interface by pragma Import.
4239 2013-01-29 Robert Dewar <dewar@adacore.com>
4241 * atree.ads, atree.adb (Node30): New function.
4242 (Set_Node30): New procedure.
4243 (Num_Extension_Nodes): Change to 5 (activate new fields/flags).
4244 * atree.h: Add macros for Field30 and Node30.
4245 * einfo.ads, einfo.adb: Move some fields to avoid duplexing.
4246 * treepr.adb (Print_Entity_Information): Print fields 30-35.
4248 2013-01-29 Robert Dewar <dewar@adacore.com>
4250 * sem_prag.adb (Analyze_Pragma, case Interface): Consider to
4251 be a violation of No_Obsolescent_Features even in Ada 95. Also
4252 generates a warning in -gnatwj mode.
4253 (Analyze_Pragma, case Interface_Name): Generates a warning in -gnatwj
4255 * gnat_ugn.texi: Additional documentation on -gnatwj and pragma
4258 2013-01-29 Vincent Celier <celier@adacore.com>
4260 * snames.ads-tmpl: Add new standard name Trailing_Switches.
4262 2013-01-29 Ed Schonberg <schonberg@adacore.com>
4264 * sem_disp.adb (Check_Controlling_Type): If a designated type T
4265 of an anonymous access type is a limited view of a tagged type,
4266 it can be a controlling type only if the subprogram is in the
4269 2013-01-29 Vincent Celier <celier@adacore.com>
4271 * gnatcmd.adb: Use the project where the config pragmas file is
4272 declared to get its path.
4274 2013-01-29 Vincent Celier <celier@adacore.com>
4276 * prj-attr.adb: New attribute Linker'Trailing_Switches.
4278 2013-01-22 Eric Botcazou <ebotcazou@adacore.com>
4280 * gcc-interface/trans.c (gnat_to_gnu) <N_Expression_With_Actions>: Do
4281 not translate the Etype of the node before translating the Actions.
4283 2013-01-22 Eric Botcazou <ebotcazou@adacore.com>
4285 * gcc-interface/trans.c (Pragma_to_gnu) <Name_Space>: Use optimize_size
4286 instead of optimize and adjust warning message.
4287 (Compilation_Unit_to_gnu): Process pragmas preceding the unit.
4289 2013-01-22 Tristan Gingold <gingold@adacore.com>
4291 * gcc-interface/gigi.h (ADT_unhandled_except_decl,
4292 ADT_unhandled_others_decl): New.
4293 (unhandled_others_decl, unhandled_except_decl): Define.
4294 * gcc-interface/trans.c: Include common/common-target.h.
4295 (gigi): Initialize them.
4296 (Subprogram_Body_to_gnu): On SEH targets, wrap the body of the main
4297 function in a try/catch clause.
4299 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4301 * gcc-interface/Make-lang.in (COMMON_ADAFLAGS): Remove -gnata.
4302 (CHECKING_ADAFLAGS): New.
4303 (ALL_ADAFLAGS): Include CHECKING_ADAFLAGS.
4305 2013-01-10 Eric Botcazou <ebotcazou@adacore.com>
4307 * gcc-interface/config-lang.in (boot_language_boot_flags): Delete.
4308 * gcc-interface/Make-lang.in (BOOT_ADAFLAGS): Likewise.
4310 2013-01-07 Eric Botcazou <ebotcazou@adacore.com>
4312 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Adjust
4313 comment about type extension with discriminants.
4314 <E_Record_Subtype>: Remove useless test and reorder conditions.
4315 (elaborate_entity) <E_Record_Subtype>: Likewise.
4317 2013-01-07 Richard Biener <rguenther@suse.de>
4320 * gcc-interface/Make-lang.in (ada.install-common): Always apply
4321 program_transform_name.
4323 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4325 * gnatvsn.ads (Current_Year): Bump to 2013.
4327 2013-01-06 Olivier Hainque <hainque@adacore.com>
4329 * gcc-interface/decl.c (gnat_to_gnu_field): Emit a specialized
4330 diagnostic for component size mismatch wrt volatile requirements.
4331 Add a gcc_unreachable() at the end of the checks for size. Split
4332 the check on volatile for positions into one check on atomic and
4333 a subsequent one on volatile.
4335 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4337 * gcc-interface/decl.c (elaborate_entity) <E_Record_Type>: Delete.
4339 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4341 * gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Do not
4342 pack the field of the record type made for a misaligned type.
4344 2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
4346 * gcc-interface/decl.c (annotate_value) <COMPONENT_REF>: Be prepared
4347 for discriminants inherited from parent record types.
4349 2013-01-04 Robert Dewar <dewar@adacore.com>
4351 * warnsw.adb: Minor fixes to -gnatw.d handling.
4353 2013-01-04 Robert Dewar <dewar@adacore.com>
4355 * einfo.adb, atree.adb: Enlarge entities to make 63 more flags, 6 more
4358 2013-01-04 Joel Brobecker <brobecker@adacore.com>
4360 * gnat_ugn.texi: Fix typo.
4362 2013-01-04 Robert Dewar <dewar@adacore.com>
4364 * gnat_rm.texi: Document alignment choice for subtypes.
4366 2013-01-04 Robert Dewar <dewar@adacore.com>
4368 * validsw.ads: Minor fix to comment.
4370 2013-01-04 Doug Rupp <rupp@adacore.com>
4372 * Makefile.rtl (GNATRTL_NONTASKING_OBJS,
4373 GNATRTL_ALTIVEC_OBJS): Factor g-al* objects.
4374 * gcc-interface/Makefile.in (ADA_EXCLUDE_SRCS): Add g-al* sources.
4375 (GNATRTL_ALTIVEC_OBJS): Override to null for VMS.
4376 Rename leon vxworks toolchain as leon-wrs-vxworks.
4377 * gcc-interface/Make-lang.in: Update dependencies
4379 2013-01-04 Pascal Obry <obry@adacore.com>
4381 * prj.ads (For_Each_Source): Add Locally_Removed parameter.
4382 (Source_Iterator): Add Locally_Removed field.
4383 * prj.adb (For_Each_Source): Ignore Locally_Removed files if needed.
4386 2013-01-04 Robert Dewar <dewar@adacore.com>
4388 * exp_attr.adb: Minor reformatting.
4390 2013-01-04 Robert Dewar <dewar@adacore.com>
4392 * checks.adb (Insert_Valid_Check): Fix handling of renamed
4393 packed array element.
4394 * exp_ch4.adb (Expand_Concatenate): Fix some missing parent
4395 fields in generated code.
4396 * exp_util.adb (Side_Effect_Free): Improve detection of cases
4399 2013-01-04 Robert Dewar <dewar@adacore.com>
4401 * sinfo.ads: Clean up order of N_xxx subtypes
4403 2013-01-04 Vincent Celier <celier@adacore.com>
4405 * prj-conf.adb (Check_Target): Allow --autoconf= with no target.
4407 2013-01-04 Robert Dewar <dewar@adacore.com>
4409 * types.ads, prj-conf.adb, par-tchk.adb: Minor reformatting.
4411 2013-01-04 Robert Dewar <dewar@adacore.com>
4413 * par-ch6.adb (P_Subprogram): Better handling of missing IS
4414 after expression function.
4415 * par-util.adb (No_Constraint): Improve handling to avoid bad warnings.
4417 2013-01-04 Robert Dewar <dewar@adacore.com>
4419 * exp_util.ads, exp_util.adb (Insert_Actions): In expression with
4420 actions case, new actions are appended to the sequence rather than
4423 2013-01-04 Robert Dewar <dewar@adacore.com>
4425 * gnat_ugn.texi: Document -gnatw.d/w.D (does no apply in VMS mode).
4426 * usage.adb: Add lines for -gnatw.d/w.D switches.
4427 * warnsw.adb: Minor fixes (some missing cases of setting
4428 Warning_Doc_Switch). Reject -gnatw.d and -gnatw.D in VMS mode.
4430 2013-01-04 Robert Dewar <dewar@adacore.com>
4432 * exp_util.adb (Remove_Side_Effects): Make sure scope suppress
4433 is restored on exit.
4435 2013-01-04 Robert Dewar <dewar@adacore.com>
4437 * usage.adb: Document -gnateF (check overflow for predefined Float).
4439 2013-01-04 Robert Dewar <dewar@adacore.com>
4441 * sem_res.adb (Resolve_Type_Conversion): Remove incorrect
4442 prevention of call to Apply_Type_Conversion_Checks, which resulted
4443 in missing check flags in formal mode.
4445 2013-01-04 Vincent Celier <celier@adacore.com>
4447 * makeutl.ads (Db_Switch_Args): New table used by gprbuild.
4448 * prj-conf.adb (Check_Builder_Switches): Check for switches
4449 --config= (Get_Db_Switches): New procedure to get the --db
4450 switches so that they are used when invoking gprconfig in
4452 (Do_Autoconf): When invoking gprconfig, use the --db switches, if any.
4454 2013-01-04 Pascal Obry <obry@adacore.com>
4456 * prj-nmsc.adb: Minor reformatting.
4458 2013-01-04 Vincent Celier <celier@adacore.com>
4460 * makeutl.ads (Root_Environment): New variable, moved rom
4461 gprbuild (Load_Standard_Base): New Boolean variable, moved
4463 * prj-conf.adb (Check_Builder_Switches): New procedure to check
4464 for switch --RTS in package Builder. If a runtime specified
4465 by --RTS is a relative path name, but not a base name, then
4466 find the path on the Project Search Path.
4467 (Do_Autoconf): Call Check_Builder_Switches.
4468 (Locate_Runtime): New procedure, moved from gprbuild, to get the
4469 absolute paths of runtimes when they are not specified as a base name.
4470 * prj-conf.ads (Locate_Runtime): New procedure, moved from gprbuild.
4472 2013-01-04 Ed Schonberg <schonberg@adacore.com>
4474 * sem_ch3.adb (Build_Private_Derived_Type): Set
4475 Has_Private_Ancestor on type derived from an untagged private
4476 type whose full view has discriminants
4477 * sem_aggr.adb (Resolve_Record_Aggregate): Reject non-extension
4478 aggregate for untagged record type with private ancestor.
4480 2013-01-04 Thomas Quinot <quinot@adacore.com>
4482 * sem_elab.adb, sem_ch3.adb: Minor reformatting.
4484 2013-01-04 Robert Dewar <dewar@adacore.com>
4486 * table.adb: Minor reformatting.
4488 2013-01-04 Ed Schonberg <schonberg@adacore.com>
4490 * sem_ch10.adb (Check_Redundant_Withs): A with_clause that does
4491 not come from source does not generate a warning for redundant
4494 2013-01-04 Hristian Kirtchev <kirtchev@adacore.com>
4496 * aspects.adb, aspects.ads: Add Aspect_Global to all relevant tables.
4497 * par-prag.adb: Add pragma Global to the list of pragmas that
4498 do not need special processing by the parser.
4499 * sem_ch13.adb (Analyze_Aspect_Specifications): Convert aspect
4500 Global into a pragma without any form of legality checks. The
4501 work is done by Analyze_Pragma. The aspect and pragma are both
4502 marked as needing delayed processing. Insert the corresponding
4503 pragma of aspect Abstract_State in the visible declarations of the
4505 (Check_Aspect_At_Freeze_Point): Aspect Global
4506 does not need processing even though it is marked as delayed.
4507 Alphabetize the list on aspect names.
4508 * sem_prag.adb: Add a value for pragma Global in table Sig_Flags.
4509 (Analyze_Pragma): Add ??? comment about the grammar of pragma
4510 Abstract_State. Move the error location from the pragma to the
4511 state to improve the quality of error placement. Add legality
4512 checks for pragma Global.
4513 * snames.ads-tmpl Add the following specially recognized names
4515 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
4517 * sem_ch3.adb: Fix minor typo.
4519 2013-01-04 Ed Schonberg <schonberg@adacore.com>
4521 * par-ch13.adb (Aspect_Specifications_Present): In Strict mode,
4522 accept an aspect name followed by a comma, indicating a defaulted
4525 2013-01-04 Joel Brobecker <brobecker@adacore.com brobecker>
4527 * gnat_ugn.texi: Document procedure to codesign GDB on Darwin.
4528 Update doc on gnattest --separates switch.
4530 2013-01-04 Thomas Quinot <quinot@adacore.com>
4532 * s-chepoo.ads: Minor reformatting.
4534 2013-01-04 Arnaud Charlet <charlet@adacore.com>
4536 * usage.adb: Remove mention of -gnatN in usage.
4538 2013-01-04 Robert Dewar <dewar@adacore.com>
4540 * exp_prag.adb, gnatcmd.adb, exp_util.adb, table.adb, sem_prag.adb,
4541 freeze.adb, sem_ch4.adb, sem_warn.adb, opt.ads, exp_aggr.adb,
4542 prj-conf.adb, sem_ch13.adb: Minor reformatting.
4544 2013-01-04 Thomas Quinot <quinot@adacore.com>
4546 * sinfo.ads: Minor documentation update.
4548 2013-01-04 Thomas Quinot <quinot@adacore.com>
4550 * sem_ch3.adb, einfo.adb (Analyze_Object_Declaration): Do not set Ekind
4551 before resolving initialization expression.
4553 2013-01-04 Hristian Kirtchev <kirtchev@adacore.com>
4555 * checks.adb (Generate_Index_Checks): Delay the generation of
4556 the check for an indexed component where the prefix mentions
4557 Loop_Entry until the attribute has been properly expanded.
4558 * exp_ch5.adb (Expand_Loop_Entry_Attributes): Perform minor
4559 decoration of the constant that captures the value of Loop_Entry's
4560 prefix at the entry point into a loop. Generate index checks
4561 for an attribute reference that has been transformed into an
4564 2013-01-04 Thomas Quinot <quinot@adacore.com>
4566 * exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb, exp_aggr.adb,
4567 sem_ch13.adb (Exp_Aggr.Collect_Initialization_Statements): Nothing to
4568 do if Obj is already frozen.
4569 (Exp_Util.Find_Init_Call): Rename to...
4570 (Exp_Util.Remove_Init_Call): New subprogram, renamed from
4571 Find_Init_Call. Remove the initialization call from the enclosing
4572 list if found, and if it is from an Initialization_Statements
4573 attribute, reset it.
4574 (Exp_Util.Append_Freeze_Action): Minor code reorganization.
4575 (Exp_Util.Append_Freeze_Actions): Ensure a freeze node has been
4576 allocated (as is already done in Append_Freeze_Action).
4577 (Freeze.Freeze_Entity): For an object with captured
4578 Initialization_Statements and non-delayed freezeing, unwrap the
4579 initialization statements and insert and them directly in the
4581 (Sem_Ch13.Check_Address_Clause): For an object
4582 with Initialization_Statements and an address clause, unwrap the
4583 initialization statements when moving them to the freeze actions.
4585 2013-01-03 Pascal Obry <obry@adacore.com>
4587 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package remote and
4588 corresponding attibutes.
4590 2013-01-03 Thomas Quinot <quinot@adacore.com>
4592 * exp_aggr.adb: Minor comment improvement.
4594 2013-01-03 Hristian Kirtchev <kirtchev@adacore.com>
4596 * aspects.adb, aspects.ads: Add Aspect_Abstract_State to all the
4598 * einfo.ads, einfo.adb: Add Integrity_Level and Refined_State to
4599 the description of fields (Abstract_States): New routine.
4600 (Integrity_Level): New routine.
4601 (Has_Property): New routine.
4602 (Is_Input_State): New routine.
4603 (Is_Null_State): New routine.
4604 (Is_Output_State): New routine.
4605 (Is_Volatile_State): New routine.
4606 (Refined_State): New routine.
4607 (Set_Abstract_States): New routine.
4608 (Set_Integrity_Level): New routine.
4609 (Set_Refined_State): New routine.
4610 (Write_Field8_Name): Add proper output for E_Abstract_State.
4611 (Write_Field9_Name): Add proper output for E_Abstract_State.
4612 (Write_Field25_Name): Add proper output for E_Package.
4613 * lib-xref.ads: Add new letter for an abstract state.
4614 * par-prag.adb: Add pragma Abstract_State to the list of pragma
4615 that do not need special processing by the parser.
4616 * sem_ch13.adb (Analyze_Aspect_Specifications): Convert
4617 aspect Abstract_State into a pragma without any form
4618 of legality checks. The work is done by Analyze_Pragma.
4619 (Check_Aspect_At_Freeze_Point): Aspect Abstract_State does not
4620 require delayed analysis.
4621 * sem_prag.adb: Add a value for pragma Abstract_State in table
4623 (Analyze_Pragma): Add legality checks for pragma
4624 Abstract_State. Analysis of individual states introduces a state
4625 abstraction entity into the visibility chain.
4626 * snames.ads-tmpl: Add new names for abstract state and
4627 integrity. Add new pragma id for abstract state.
4629 2013-01-03 Bob Duff <duff@adacore.com>
4631 * table.adb (Reallocate): Calculate new Length in
4632 Long_Integer to avoid overflow.
4634 2013-01-03 Thomas Quinot <quinot@adacore.com>
4636 * sem_ch3.adb, sinfo.ads, freeze.adb, sem_ch4.adb, exp_aggr.adb
4637 (Sem_Ch3.Analyze_Object_Declaration): Set Ekind early so that
4638 it is set properly when expanding the initialization expression.
4639 (Freeze.Check_Address_Clause): Transfer initialization expression
4640 to an assignment in the freeze actions, so that the object is
4641 initialized only after being elaborated by GIGI.
4642 (Sinfo (comments), Sem_Ch4.Analyze_Expression_With_Actions): Allow
4643 a Null_Statement as the expression in an Expression_With_Actions.
4644 (Exp_Aggr.Collect_Initialization_Statements): New subprogram
4645 shared by expansion of record and array aggregates, used to
4646 capture statements for an aggregate used to initalize an object
4647 into an Expression_With_Actions (which acts as a container for
4649 (Exp_Aggr.Convert_Aggr_In_Obj_Decl): Use the above to
4650 capture initialization statements, instead of the previously
4651 existing loop which left freeze nodes out of the capturing
4652 construct (causing out of order elaboration crashes in GIGI).
4653 (Exp_Aggr.Expand_Array_Aggregate): Use the above to capture
4654 initialization statements (this was previously not done for
4655 arrays). Also do not unconditionally prevent in place expansion
4656 for an object with address clause.
4658 2013-01-03 Thomas Quinot <quinot@adacore.com>
4660 * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Check that
4661 a record extension has the same scalar storage order as the parent type.
4663 2013-01-03 Thomas Quinot <quinot@adacore.com>
4665 * exp_ch4.adb: Add comment.
4667 2013-01-03 Vincent Celier <celier@adacore.com>
4669 * prj.adb: Minor spelling error correction in comment.
4671 2013-01-03 Vincent Celier <celier@adacore.com>
4673 * gnatcmd.adb (GNATCmd): If a single main has been specified
4674 as an absolute path, use its simple file name to find specific
4675 switches, instead of the absolute path.
4677 2013-01-03 Javier Miranda <miranda@adacore.com>
4679 * sem_warn.adb (Warn_On_Overlapping_Actuals): For overlapping
4680 parameters that are record types or array types generate warnings
4681 only compiling under -gnatw.i
4682 * opt.ads (Extensions_Allowed): Restore previous documentation.
4684 2013-01-03 Vincent Celier <celier@adacore.com>
4686 * prj-conf.adb (Do_Autoconf): If Target is specified in the
4687 main project, but not on the command line, use the Target in
4688 the project to invoke gprconfig in auto-configuration.
4689 * makeutl.ads (Default_Config_Name): New constant String.
4691 2013-01-03 Arnaud Charlet <charlet@adacore.com>
4693 * usage.adb: Minor: fix typo in usage.
4695 2013-01-03 Thomas Quinot <quinot@adacore.com>
4697 * sem_ch13.adb (Analyze_Record_Representation_Clause): Reject
4698 an illegal component clause for an inherited component in a
4701 2013-01-03 Emmanuel Briot <briot@adacore.com>
4703 * xref_lib.adb (Parse_Identifier_Info): Fix handling of arrays, which
4704 have information in the ALI file for both the index and the component
4707 2013-01-03 Emmanuel Briot <briot@adacore.com>
4709 * projects.texi: Fix error in documenting the project path
4710 computed for an aggregate project.
4712 2013-01-03 Javier Miranda <miranda@adacore.com>
4714 * sem_warn.adb (Warn_On_Overlapping_Actuals): Adding documentation
4715 plus restricting the functionality of this routine to cover the
4716 cases described in the Ada 2012 reference manual. The previous
4717 extended support is now available under -gnatX.
4718 * s-tassta.adb (Finalize_Global_Tasks): Addition of a dummy
4719 variable to call Timed_Sleep. Required to avoid warning on
4720 overlapping out-mode actuals.
4721 * opt.ads (Extensions_Allowed): Update documentation.
4723 2013-01-03 Tristan Gingold <gingold@adacore.com>
4725 * s-arit64.ads: Use Multiply_With_Ovflo_Check as __gnat_mulv64.
4727 * gcc-interface/Makefile.in: Remove reference to arit64.c.
4729 2013-01-03 Thomas Quinot <quinot@adacore.com>
4731 * checks.adb, checks.ads (Apply_Address_Clause_Check): The check must
4732 be generated at the start of the freeze actions for the entity, not
4733 before (or after) the freeze node.
4735 2013-01-03 Thomas Quinot <quinot@adacore.com>
4737 * exp_aggr.adb (Exp_Aggr.Convert_Aggregate_In_Obj_Decl):
4738 Reorganize code to capture initialization statements in a block,
4739 so that freeze nodes are excluded from the captured block.
4741 2013-01-03 Thomas Quinot <quinot@adacore.com>
4743 * exp_ch11.adb: Minor reformatting.
4745 2013-01-03 Thomas Quinot <quinot@adacore.com>
4747 * exp_util.adb, einfo.adb, einfo.ads, freeze.adb, exp_aggr.adb,
4748 sem_ch13.adb (Einfo.Initialization_Statements,
4749 Einfo.Set_Initialization_Statements): New entity attribute
4751 (Exp_Util.Find_Init_Call): Handle case of an object initialized
4752 by an aggregate converted to a block of assignment statements.
4753 (Freeze.Check_Address_Clause): Do not clear Has_Delayed_Freeze
4754 even for objects that require a constant address, because the
4755 address expression might involve entities that have yet to be
4756 elaborated at the point of the object declaration.
4757 (Exp_Aggr.Convert_Aggregate_In_Obj_Decl): For a type that does
4758 not require a transient scope, capture the assignment statements
4759 in a block so that they can be moved down after elaboration of
4760 an address clause if needed.
4761 (Sem_Ch13.Check_Constant_Address_Clause.Check_Expr_Constants,
4762 case N_Unchecked_Conversion): Do not replace operand subtype with
4763 its base type as this violates a GIGI invariant if the operand
4764 is an identifier (in which case the etype of the identifier
4765 is expected to be equal to that of the denoted entity).
4767 2013-01-03 Javier Miranda <miranda@adacore.com>
4769 * sem_util.ads, sem_util.adb (Denotes_Same_Object): Extend the
4770 functionality of this routine to cover cases described in the Ada 2012
4773 2013-01-03 Ed Schonberg <schonberg@adacore.com>
4775 * sem_elab.adb (Set_Elaboration_Constraint): Handle properly
4776 a 'Access attribute reference when the subprogram is called
4779 2013-01-03 Arnaud Charlet <charlet@adacore.com>
4781 * s-tpobop.adb (PO_Do_Or_Queue): Refine assertion, since a
4782 select statement may be called from a controlled (e.g. Initialize)
4783 operation and have abort always deferred.
4785 2013-01-03 Robert Dewar <dewar@adacore.com>
4787 * sem_ch8.adb, einfo.ads, einfo.adb: Minor code reorganization.
4789 2013-01-03 Javier Miranda <miranda@adacore.com>
4791 * exp_ch3.adb (Make_Controlling_Function_Wrappers): Exclude
4792 internal entities associated with interfaces and add minimum
4793 decoration to the defining entity of the generated wrapper to
4794 allow overriding interface primitives.
4795 * sem_disp.ads (Override_Dispatching_Operation): Addition of a
4796 new formal (Is_Wrapper).
4797 * sem_disp.adb (Override_Dispatching_Operation): When overriding
4798 interface primitives the new formal helps identifying that the
4799 new operation is not fully decorated.
4801 2013-01-03 Thomas Quinot <quinot@adacore.com>
4803 * sem_ch7.adb, sem_ch10.adb, einfo.adb, einfo.ads, sem_ch12.adb,
4804 rtsfind.adb, sem_elab.adb, sem_ch4.adb, sem_ch8.adb
4805 (Einfo.Is_Visible_Child_Unit, Einfo.Set_Is_Visible_Child_Unit):
4806 Rename to Is_Visible_Lib_Unit, Set_Is_Visible_Lib_Unit, and
4807 update spec accordingly (now also applies to root library units).
4808 (Sem_Ch10.Analyze_Subunit.Analyze_Subunit_Context): Toggle above flag
4809 on root library units, not only child units.
4810 (Sem_Ch10.Install[_Limited]_Withed_Unit): Same.
4811 (Sem_Ch10.Remove_Unit_From_Visibility): Reset Is_Visible_Lib_Unit
4812 even for root library units.
4813 (Sem_Ch8.Find_Expanded_Name): A selected component form whose prefix is
4814 Standard is an expanded name for a root library unit.
4816 2013-01-03 Thomas Quinot <quinot@adacore.com>
4818 * exp_ch3.adb: Minor reformatting.
4820 2013-01-03 Olivier Hainque <hainque@adacore.com>
4822 * tracebak.c: Reinstate changes to support ppc-lynx178.
4824 2013-01-03 Ed Schonberg <schonberg@adacore.com>
4826 * atree.ads: Minor reformatting and documentation enhancement.
4828 2013-01-03 Ed Schonberg <schonberg@adacore.com>
4830 * exp_ch3.adb (Expand_N_Object_Declaration): If the object has
4831 a class-wide type and a renaming declaration is created for it,
4832 preserve entity chain, which already contains generated internal
4833 types. This ensures that freezing actions are properly generated
4834 for all objects declared subsequently in the same scope, and
4835 that debugging information is generated for them.
4836 * sem_util.adb, sem_util.ads (we): New debugging routine, to
4837 display entity chain of a given scope.
4839 2013-01-03 Robert Dewar <dewar@adacore.com>
4841 * exp_intr.adb: Minor reformatting.
4843 2013-01-03 Robert Dewar <dewar@adacore.com>
4845 * einfo.adb: Minor reformatting.
4847 2013-01-03 Pascal Obry <obry@adacore.com>
4849 * adaint.c, adaint.h (__gnat_get_module_name): Removed.
4850 (__gnat_is_module_name_supported): Removed.
4851 * s-win32.ads: Add some needed definitions.
4852 * g-trasym.ads: Update comments.
4854 2013-01-03 Robert Dewar <dewar@adacore.com>
4856 * layout.adb (Set_Composite_Alignment): Fix problems of
4857 interactions with Optimize_Alignment set to Space.
4859 2013-01-03 Thomas Quinot <quinot@adacore.com>
4861 * exp_disp.adb: Minor reformatting.
4863 2013-01-02 Richard Biener <rguenther@suse.de>
4866 * gcc-interface/Makefile.in: Add $(GMPINC) to includes.
4868 2013-01-02 Thomas Quinot <quinot@adacore.com>
4870 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Remove
4871 side effects from Tag_Arg early, doing it too late may cause a
4872 crash due to inconsistent Parent link.
4873 * sem_ch8.adb, einfo.ads: Minor reformatting.
4875 2013-01-02 Robert Dewar <dewar@adacore.com>
4877 * einfo.ads, einfo.adb (Has_Independent_Components): New flag.
4878 * freeze.adb (Size_Known): We do not know the size of a packed
4879 record if it has atomic components, by reference type components,
4880 or independent components.
4881 * sem_prag.adb (Analyze_Pragma, case Independent_Components): Set new
4882 flag Has_Independent_Components.
4884 2013-01-02 Yannick Moy <moy@adacore.com>
4886 * opt.ads (Warn_On_Suspicious_Contract): Set to True by default.
4887 * usage.adb (Usage): Update usage message.
4889 2013-01-02 Pascal Obry <obry@adacore.com>
4891 * adaint.c (__gnat_is_module_name_supported): New constant.
4893 2013-01-02 Ed Schonberg <schonberg@adacore.com>
4895 * sem_attr.adb (Check_Array_Type): Reject an attribute reference on an
4896 array whose component type does not have a completion.
4898 2013-01-02 Geert Bosch <bosch@adacore.com>
4900 * a-nllcef.ads, a-nlcefu.ads, a-nscefu.ads: Make Pure.
4902 2013-01-02 Robert Dewar <dewar@adacore.com>
4904 * par_sco.adb: Minor reformatting.
4906 2013-01-02 Javier Miranda <miranda@adacore.com>
4908 * sem_aggr.adb (Resolve_Array_Aggregate): Remove dead code.
4910 2013-01-02 Olivier Hainque <hainque@adacore.com>
4912 * a-exctra.ads (Get_PC): New function.
4914 2013-01-02 Thomas Quinot <quinot@adacore.com>
4916 * sem_ch8.adb: Minor reformatting.
4918 2013-01-02 Thomas Quinot <quinot@adacore.com>
4920 * sem_ch7.adb: Minor reformatting.
4922 2013-01-02 Thomas Quinot <quinot@adacore.com>
4924 * freeze.adb (Check_Component_Storage_Order): Do not crash on
4927 2013-01-02 Robert Dewar <dewar@adacore.com>
4929 * gnat1drv.adb, targparm.adb, targparm.ads: Minor name change: add
4930 On_Target to Atomic_Sync_Default.
4932 2013-01-02 Robert Dewar <dewar@adacore.com>
4934 * sem_warn.adb (Warn_On_Known_Condition): Suppress warning for
4935 comparison of attribute result with constant
4936 * a-ststio.adb, s-direio.adb, s-rannum.adb: Remove unnecessary pragma
4937 Warnings (Off, "..");
4939 2013-01-02 Yannick Moy <moy@adacore.com>
4941 * sem_prag.ads: Minor correction of comment.
4943 2013-01-02 Thomas Quinot <quinot@adacore.com>
4945 * par_sco.adb (Traverse_Package_Declaration): The first
4946 declaration in a nested package is dominated by the preceding
4947 declaration in the enclosing scope.
4949 2013-01-02 Pascal Obry <obry@adacore.com>
4951 * adaint.c, adaint.h (__gnat_get_module_name): Return the actual
4952 module containing a given address.
4954 2013-01-02 Thomas Quinot <quinot@adacore.com>
4956 * sem_ch3.adb: Minor reformatting.
4958 2013-01-02 Pascal Obry <obry@adacore.com>
4960 * cstreams.c (__gnat_ftell64): New routine. Use _ftelli64 on
4961 Win64 and default to ftell on other platforms.
4962 (__gnat_fsek64): Likewise.
4963 * i-cstrea.ads: Add fssek64 and ftell64 specs.
4964 * s-crtl.ads: Likewise.
4965 * a-ststio.adb, s-direio.adb (Size): Use 64 bits version when required.
4966 (Set_Position): Likewise.
4968 2013-01-02 Thomas Quinot <quinot@adacore.com>
4970 * par_sco.adb: Generate X SCOs for default expressions in
4971 subprogram body stubs. Do not generate any SCO for package,
4972 task, or protected body stubs.
4974 2013-01-02 Ed Schonberg <schonberg@adacore.com>
4976 * sem_ch3.adb: Further improvement to ASIS mode for anonymous
4977 access to protected subprograms.
4979 2013-01-02 Robert Dewar <dewar@adacore.com>
4981 * par_sco.adb, vms_data.ads: Minor reformatting.
4983 2013-01-02 Thomas Quinot <quinot@adacore.com>
4985 * par_sco.adb (Traverse_Declarations_Or_Statement): Function
4986 form, returning value of Current_Dominant upon exit, for chaining
4988 (Traverse_Declarations_Or_Statement.Traverse_One, case
4989 N_Block_Statement): First statement is dominated by last declaration.
4990 (Traverse_Subprogram_Or_Task_Body): Ditto.
4991 (Traverse_Package_Declaration): First private
4992 declaration is dominated by last visible declaration.
4993 (Traverse_Sync_Definition): Ditto.
4995 2013-01-02 Thomas Quinot <quinot@adacore.com>
4997 * gnat_rm.texi: Restrict the requirement for Scalar_Storage_Order
4998 matching Bit_Order to record types only, since array types do not
5001 2013-01-02 Vincent Celier <celier@adacore.com>
5003 * gnat_ugn.texi: Remove documentation of -gnateO, which is an
5005 * usage.adb: Indicate that -gnateO is an internal switch.
5007 2013-01-02 Thomas Quinot <quinot@adacore.com>
5009 * par_sco.adb: Add SCO generation for task types and single
5011 * get_scos.adb: When adding an instance table entry for a
5012 non-nested instantiation, make sure the Enclosing_Instance is
5015 2013-01-02 Hristian Kirtchev <kirtchev@adacore.com>
5017 * sem_attr.adb (Analyze_Attribute): Skip the special _Parent
5018 scope generated for subprogram inlining purposes while trying
5019 to locate the enclosing function.
5020 * sem_prag.adb (Analyze_Pragma): Preanalyze the boolean
5021 expression of pragma Postcondition when the pragma comes from
5022 source and appears inside a subprogram body.
5024 2013-01-02 Thomas Quinot <quinot@adacore.com>
5026 * switch-c.adb, fe.h, back_end.adb: Enable generation of instantiation
5027 information in debug info unconditionally when using -fdump-scos,
5028 instead of relying on a separate command line switch -fdebug-instances.
5029 * gcc-interface/Make-lang.in: Update dependencies.
5031 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5033 * sem_ch12.adb: Additional refinement of predicate.
5035 2013-01-02 Vincent Celier <celier@adacore.com>
5037 * vms_data.ads: Remove incorrect spaces at end of descriptions
5038 of qualifiers for single switch.
5040 2013-01-02 Ben Brosgol <brosgol@adacore.com>
5042 * gnat_rm.texi: Minor edits / wordsmithing in section on pragma
5043 Check_Float_Overflow.
5045 2013-01-02 Thomas Quinot <quinot@adacore.com>
5047 * sprint.adb (Sprint_Node_Actual): Do not add extra parens for
5048 a conditional expression (CASE or IF expression) that already
5049 has parens. Also omit ELSE keyword for an IF expression without
5052 2013-01-02 Thomas Quinot <quinot@adacore.com>
5054 * gnat1drv.adb (Adjust_Global_Switches): Adjust back-end
5055 flag_debug_instances here, after front-end switches have been
5058 2013-01-02 Vincent Celier <celier@adacore.com>
5060 * usage.adb: Minor reformatting.
5062 2013-01-02 Arnaud Charlet <charlet@adacore.com>
5064 * opt.ads: Fix typo.
5066 2013-01-02 Thomas Quinot <quinot@adacore.com>
5068 * par_sco.adb: Generate P decision SCOs for SPARK pragmas
5069 Assume and Loop_Invariant.
5071 2013-01-02 Robert Dewar <dewar@adacore.com>
5073 * vms_data.ads: Add entry for Float_Check_Valid (-gnateF).
5074 * ug_words: Add entry for Float_Check_Overflow.
5075 * usage.adb: Minor reformatting.
5076 * gnat_ugn.texi: Add documentation for -gnateF (Check_Float_Overflow).
5078 2013-01-02 Vincent Celier <celier@adacore.com>
5080 * gnat_ugn.texi: Add documentation for switches -gnateA, -gnated,
5081 -gnateO=, -gnatet and -gnateV.
5082 * ug_words: Add qualifiers equivalent to -gnateA, -gnated,
5083 -gnatet and -gnateV.
5084 * usage.adb: Add lines for -gnatea, -gnateO and -gnatez.
5085 * vms_data.ads: Add new compiler qualifiers /ALIASING_CHECK
5086 (-gnateA), /DISABLE_ATOMIC_SYNCHRONIZATION (-gnated),
5087 /PARAMETER_VALIDITY_CHECK (-gnateV) and /TARGET_DEPENDENT_INFO
5090 2013-01-02 Robert Dewar <dewar@adacore.com>
5092 * checks.adb (Apply_Scalar_Range_Check): Implement Check_Float_Overflow.
5093 * opt.ads, opt.adb: Handle flags Check_Float_Overflow[_Config].
5094 * par-prag.adb: Add dummy entry for pragma Check_Float_Overflow.
5095 * sem_prag.adb: Implement pragma Check_Float_Overflow.
5096 * snames.ads-tmpl: Add entries for pragma Check_Float_Overflow.
5097 * switch-c.adb: Recognize -gnateF switch.
5098 * tree_io.ads: Update ASIS version number.
5099 * gnat_rm.texi: Add documentation of pragma Check_Float_Overflow.
5101 2013-01-02 Robert Dewar <dewar@adacore.com>
5103 * checks.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
5104 exp_disp.adb, exp_dist.adb, exp_intr.adb, exp_prag.adb, exp_util.adb,
5105 freeze.adb, gnat1drv.adb, inline.adb, layout.adb, lib-xref.adb,
5106 par-ch10.adb, par-labl.adb, par-load.adb, par-util.adb, restrict.adb,
5107 sem_ch13.adb, sem_ch4.adb, sem_ch6.adb, sem_dim.adb, sem_elab.adb,
5108 sem_res.adb, sem_warn.adb, sinput-l.adb: Add tags to warning messages.
5109 * sem_ch6.ads, warnsw.ads, opt.ads: Minor comment updates.
5111 2013-01-02 Robert Dewar <dewar@adacore.com>
5113 * err_vars.ads: Minor comment fix.
5115 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5117 * sem_ch12.adb: Refine predicate.
5119 2013-01-02 Robert Dewar <dewar@adacore.com>
5121 * errout.ads: Minor comment fixes.
5122 * opt.ads: Minor comment additions.
5123 * exp_aggr.adb: Add tags to warning messages
5124 * exp_ch11.adb, exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_aggr.adb,
5125 sem_attr.adb, sem_case.adb, sem_cat.adb, sem_ch3.adb, sem_ch4.adb,
5126 sem_ch5.adb, sem_disp.adb, sem_dist.adb, sem_elab.adb, sem_eval.adb,
5127 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb, sem_util.adb,
5128 sem_warn.adb: Add tags to warning messages
5130 2013-01-02 Doug Rupp <rupp@adacore.com>
5132 * init.c [VMS] Remove subtest on reason mask for ACCVIO that is a C_E.
5134 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5136 * sem_ch12.adb: Recover source name for renamed packagea.
5138 2013-01-02 Robert Dewar <dewar@adacore.com>
5140 * errout.adb (Set_Msg_Insertion_Warning): Correct typo causing
5141 tests to fail if insertion sequence is at end of message string.
5142 * opt.ads: Minor comment fixes and additions.
5143 * sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_ch10.adb, sem_ch11.adb,
5144 sem_ch12.adb, sem_ch13.adb: Add tags to warning messages.
5145 * sem_ch6.ads, sem_ch6.adb (Cannot_Inline): Deal with warning message
5146 tags. Add tags to warning messages.
5148 2013-01-02 Robert Dewar <dewar@adacore.com>
5150 * err_vars.ads (Warning_Doc_Switch): New flag.
5151 * errout.adb (Error_Msg_Internal): Implement new warning flag
5152 doc tag stuff (Set_Msg_Insertion_Warning): New procedure.
5153 * errout.ads: Document new insertion sequences ?? ?x? ?.x?
5154 * erroutc.adb (Output_Msg_Text): Handle ?? and ?x? warning doc
5156 * erroutc.ads (Warning_Msg_Char): New variable.
5157 (Warn_Chr): New field in error message object.
5158 * errutil.adb (Error_Msg): Set Warn_Chr in error message object.
5159 * sem_ch13.adb: Minor reformatting.
5160 * warnsw.adb: Add handling for -gnatw.d and -gnatw.D
5161 (Warning_Doc_Switch).
5162 * warnsw.ads: Add handling of -gnatw.d/.D switches (warning
5165 2013-01-02 Robert Dewar <dewar@adacore.com>
5167 * opt.ads: Minor reformatting.
5169 2013-01-02 Doug Rupp <rupp@adacore.com>
5171 * init.c: Reorganize VMS section.
5172 (scan_condtions): New function for scanning condition tables.
5173 (__gnat_handle_vms_condtion): Use actual exception name for imported
5174 exceptions vice IMPORTED_EXCEPTION.
5175 Move condition table scanning into separate function. Move formerly
5176 special handled conditions to system condition table. Use SYS$PUTMSG
5177 output to fill exception message field for formally special handled
5178 condtions, in particular HPARITH to provide more clues about cause and
5179 location then raised from the translated image.
5181 2013-01-02 Thomas Quinot <quinot@adacore.com>
5183 * sem_ch13.adb (Analyze_Aspect_Specifications): For a Pre/Post
5184 aspect that applies to a library subprogram, prepend corresponding
5185 pragma to the Pragmas_After list, in order for split AND THEN
5186 sections to be processed in the expected order.
5188 2013-01-02 Thomas Quinot <quinot@adacore.com>
5190 * exp_prag.adb (Expand_Pragma_Check): The statements generated
5191 for the pragma must have the sloc of the pragma, not the
5192 sloc of the condition, otherwise this creates anomalies in the
5193 generated debug information that confuse coverage analysis tools.
5195 2013-01-02 Thomas Quinot <quinot@adacore.com>
5197 * sem_ch13.adb: Minor reformatting.
5199 2013-01-02 Arnaud Charlet <charlet@adacore.com>
5201 * g-excact.ads (Core_Dump): Clarify that this subprogram does
5202 not dump cores under Windows.
5204 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5206 * sem_ch8.adb (Analyze_Primitive_Renamed_Operation): The prefixed
5207 view of a subprogram has convention Intrnnsic, and a renaming
5208 of a prefixed view cannot be the prefix of an Access attribute.
5210 2013-01-02 Robert Dewar <dewar@adacore.com>
5212 * restrict.adb: Minor reformatting.
5214 2013-01-02 Thomas Quinot <quinot@adacore.com>
5216 * exp_prag.adb: Minor reformatting.
5218 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5220 * sem_ch12.adb (Get_Associated_Node): If the node is an
5221 identifier that denotes an unconstrained array in an object
5222 declaration, it is rewritten as the name of an anonymous
5223 subtype whose bounds are given by the initial expression in the
5224 declaration. When checking whether that identifier is global
5225 reference, use the original node, not the local generated subtype.
5227 2013-01-02 Olivier Hainque <hainque@adacore.com>
5229 * tracebak.c: Revert previous change, incomplete.
5231 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5233 * sem_ch13.adb (Analyze_Aspect_Specifications): If the aspect
5234 appears on a subprogram body that acts as a spec, place the
5235 corresponding pragma in the declarations of the body, so that
5236 e.g. pre/postcondition checks can be generated appropriately.
5238 2013-01-02 Robert Dewar <dewar@adacore.com>
5240 * sem_ch3.adb: Minor reformatting and code reorganization.
5242 2013-01-02 Vincent Celier <celier@adacore.com>
5244 * switch-m.adb (Normalize_Compiler_Switches): Record the
5245 complete switch -fstack-check=specific instead of its shorter
5246 alias -fstack-check.
5248 2013-01-02 Ed Schonberg <schonberg@adacore.com>
5250 * sem_ch3.adb (Derive_Subprogram): Enforce RM 6.3.1 (8):
5251 if the derived type is a tagged generic formal type with
5252 unknown discriminants, the inherited operation has convention
5253 Intrinsic. As such, the 'Access attribute cannot be applied to it.
5255 2013-01-02 Thomas Quinot <quinot@adacore.com>
5257 * sem_attr.adb: Minor reformatting.
5259 2013-01-02 Thomas Quinot <quinot@adacore.com>
5261 * par_sco.adb: Add SCO generation for S of protected types and
5262 single protected object declarations.
5264 2013-01-02 Robert Dewar <dewar@adacore.com>
5266 * sem_eval.adb, osint.ads: Minor reformatting.
5268 2013-01-02 Hristian Kirtchev <kirtchev@adacore.com>
5270 * sem_prag.adb (Analyze_Pragma): Check the legality of pragma Assume.
5272 2013-01-02 Thomas Quinot <quinot@adacore.com>
5274 * sem_eval.adb (Compile_Time_Compare): For static operands, we
5275 can perform a compile time comparison even if in preanalysis mode.
5277 2013-01-02 Thomas Quinot <quinot@adacore.com>
5279 * par_sco.adb (SCO_Record): Always use
5280 Traverse_Declarations_Or_Statements to process the library level
5281 declaration, so that SCOs are properly generated for its aspects.
5283 2013-01-02 Thomas Quinot <quinot@adacore.com>
5285 * scos.ads (In_Decision): Add missing entry for 'a'.
5286 * sem_prag.adb (Analyze_Pragma, case pragma Check): Omit
5287 call to Set_SCO_Pragma_Enabled for Invariant and Predicate.
5288 * sem_ch13.adb: Minor comment update.
5290 Copyright (C) 2013 Free Software Foundation, Inc.
5292 Copying and distribution of this file, with or without modification,
5293 are permitted in any medium without royalty provided the copyright
5294 notice and this notice are preserved.