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