]> gcc.gnu.org Git - gcc.git/blame - gcc/ada/ChangeLog
[multiple changes]
[gcc.git] / gcc / ada / ChangeLog
CommitLineData
cc96a1b8
AC
12011-12-02 Robert Dewar <dewar@adacore.com>
2
3 * sem_ch6.adb: Minor change in error message.
4
52011-12-02 Robert Dewar <dewar@adacore.com>
6
7 * sem_ch9.adb, prj-part.adb, vms_data.ads, sem_ch8.adb: Minor
8 reformatting.
9
102011-12-02 Javier Miranda <miranda@adacore.com>
11
12 * sem_ch3.adb (Constrain_Access): Enable on Ada 2005 mode the
13 static check of the rule of general access types whose designated
14 type has discriminants.
15 * sem_util.ads, sem_util.adb
16 (Effectively_Has_Constrained_Partial_View): New subprogram.
17 (In_Generic_Body): New subprogram.
18 * einfo.ads (Has_Constrained_Partial_View): Adding documentation.
19 * sem_prag.adb (Inside_Generic_Body): Removed. Replaced by new
20 subprogram In_Generic_Body.
21 * exp_attr.adb, checks.adb, sem_attr.adb, exp_ch4.adb,
22 sem_ch4.adb: In addition, this patch replaces the occurrences of
23 Has_Constrained_Partial_View by
24 Effectively_Has_Constrained_Partial_View.
25
262011-12-02 Matthew Heaney <heaney@adacore.com>
27
28 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Iterator): Rename
29 Position component.
30 (Finalize): Remove unnecessary access check.
31 (First): Forward to First_Child.
32 (Last): Forward to Last_Child.
33 (Iterate): Check preconditions for parent node parameter.
34 (Next): Forward to Next_Sibling.
35 (Previous): Forward to Previous_Sibling.
36
35fae080
RD
372011-12-02 Robert Dewar <dewar@adacore.com>
38
39 * a-coinve.adb, a-coorma.adb, freeze.adb, a-coorse.adb, a-comutr.adb,
40 a-coormu.adb, a-convec.adb: Minor reformatting.
41
e47e21c1
AC
422011-12-02 Matthew Heaney <heaney@adacore.com>
43
44 * a-coormu.ads, a-ciormu.ads: Declare iterator factory function.
45 * a-ciormu.adb, a-ciormu.adb (Iterator): Declare concrete
46 Iterator type.
47 (Finalize): Decrement busy counter.
48 (First, Last): Cursor return value depends on iterator node value.
49 (Iterate): Use start position as iterator node value.
50 (Next, Previous): Forward to corresponding cursor-based operation.
51
522011-12-02 Robert Dewar <dewar@adacore.com>
53
54 * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb,
55 a-cbhase.adb, a-cdlili.adb, a-cihama.adb, a-ciorse.adb, a-cidlli.adb,
56 a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-cborse.adb,
57 a-ciorma.adb, a-cobove.adb: Minor reformatting.
58
c136d696
JJ
592011-12-01 Jakub Jelinek <jakub@redhat.com>
60
61 PR bootstrap/51201
62 * gcc-interface/Make-lang.in: Initialize RTS_DIR with = instead of :=.
63
bf75cdbe
RO
642011-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
65
66 * s-taprop-tru64.adb (Create_Task): Use Unrestricted_Access.
67
d0dcb2b1
AC
682011-11-23 Thomas Quinot <quinot@adacore.com>
69
70 * thread.c, s-oscons-tmplt.c: Generate __gnat_pthread_condattr_setup
71 only on platforms where this is required, as determined by
72 s-oscons.h.
73
742011-11-23 Ed Schonberg <schonberg@adacore.com>
75
76 * sem_ch9.adb: No check on entry index if error on index.
77
782011-11-23 Gary Dismukes <dismukes@adacore.com>
79
80 * sem_ch6.adb (Analyze_Return_Statement): Improve error messages for
81 return statements nested inside an extended_return_statement.
82 * gcc-interface/Make-lang.in: Update dependencies.
83 * gcc-interface/Makefile.in (MISCLIB): Add -lutil for BSD targets.
84
ef992452
AC
852011-11-23 Ed Schonberg <schonberg@adacore.com>
86
87 * freeze.adb (Freeze_All_Ent): An incomplete type is not
88 frozen by a subprogram body that does not come from source.
89
902011-11-23 Pascal Obry <obry@adacore.com>
91
92 * s-oscons-tmplt.c: Add PTY_Library constant. It contains
93 the library for pseudo terminal support.
94 * g-exptty.ads: Add pseudo-terminal library into a Linker_Options
95 pragma.
96
972011-11-23 Ed Schonberg <schonberg@adacore.com>
98
99 * sem_ch9.adb: No check on entry family index if generic.
100
1012011-11-23 Thomas Quinot <quinot@adacore.com>
102
103 * sem_ch9.adb, s-taprop.ads, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
104 s-taprop-posix.adb, s-taprop-rtx.adb, s-taprop-solaris.adb,
105 s-taprop-tru64.adb, s-taprop-vxworks.adb: Move dependency on
106 System.OS_Constants from shared spec of
107 System.Tasking.Primitive_Operations to the specific body variants
108 that really require this dependency.
109
1102011-11-23 Ed Schonberg <schonberg@adacore.com>
111
112 * sem_ch8.adb (Analyze_Subprogram_Renaming_Declaration):
113 If the declaration has aspects, analyze them so they can be
114 properly rejected.
115
1162011-11-23 Hristian Kirtchev <kirtchev@adacore.com>
117
118 * a-comutr.adb, a-coorma.adb, a-coorse.adb, a-convec.adb, a-cihase.adb,
119 a-cimutr.adb, a-coinve.adb, a-ciorma.adb, a-ciorse.adb, a-cobove.adb,
120 a-cohama.adb, a-cihama.adb, a-cidlli.adb, a-cdlili.adb, a-cbhama.adb,
121 a-cbhase.adb, a-cbmutr.adb, a-cborma.adb, a-cborse.adb, a-cbdlli.adb:
122 Add with and use clause for Ada.Finalization. Type
123 Iterator and Child_Iterator are now derived from Limited_Controlled.
124 (Finalize): New routine.
125 (Iterate): Add a renaming of counter Busy and
126 increment it. Update the return aggregate.
127 (Iterate_Children): Add a renaming of
128 counter Busy and increment it. Update the return aggregate.
129 (Iterate_Subtree): Add a renaming of counter Busy and increment
130 it. Update the return aggregate.
131 * a-cdlili.ads, a-cidlli.ads: Type List_Access is now a general access
132 type.
133 * a-cihama.ads: Type Map_Access is now a general access type.
134 * a-comutr.ads, a-cimutr.ads: Use type Natural for the two locks
135 associated with the tree.
136 * a-cohama.ads: Type Map_Access is now a general access type.
137 * a-coinve.ads, a-convec.ads: Type Vector_Access is now a general
138 access type.
139 * exp_ch5.adb (Expand_Iterator_Loop): Do not create a block
140 to wrap the loop as this is done at an earlier step, during
141 analysis. The declarations of the iterator and the cursor use
142 the usual Insert_Action mechanism when added into the tree.
143 * sem_ch5.adb (Analyze_Loop_Statement): Remove local constant
144 Loop_Statement and replace all respective uses by N. Add local
145 constant Loc. Preanalyze the loop iterator to discover whether
146 it is a container iterator and if it is, wrap the loop in a
147 block. This ensures that any controlled temporaries produced
148 by the iteration scheme share the same lifetime of the loop.
149 (Is_Container_Iterator): New routine.
150 (Is_Wrapped_In_Block): New routine.
151 (Pre_Analyze_Range): Move spec and body to the library level.
152
1532011-11-23 Sergey Rybin <rybin@adacore.com frybin>
154
155 * gnat_ugn.texi, vms_data.ads: Add documentation for new gnatpp option
156 that controls casing of type and subtype names.
157
1582011-11-23 Yannick Moy <moy@adacore.com>
159
160 * sem_ch3.adb: Minor addition of comments.
161
1622011-11-23 Thomas Quinot <quinot@adacore.com>
163
164 * prj-part.adb (Extension_Withs): New global variable,
165 contains the head of the list of WITH clauses from the EXTENDS
166 ALL projects for which virtual packages are being created.
167 (Look_For_Virtual_Projects_For): When recursing through
168 an EXTENDS ALL, add the WITH clauses of the extending
169 project to Extension_Withs. When adding a project to the
170 Virtual_Hash, record the associated Extension_Withs list.
171 (Create_Virtual_Extending_Project): Add a copy of the appropriate
172 Extension_Withs to the virtual project.
173
1742011-11-23 Thomas Quinot <quinot@adacore.com>
175
176 * mlib-tgt-specific-vxworks.adb: Minor reformatting.
177
1782011-11-23 Thomas Quinot <quinot@adacore.com>
179
180 * Make-generated.in (Sdefault.Target_Name): Set to
181 $(target_noncanonical) instead of $(target) for consistency.
182
595a055f
MH
1832011-11-23 Matthew Heaney <heaney@adacore.com>
184
185 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Iterator): Declared
186 Iterator type as limited (First, Last): Cursor return value
187 depends on iterator node value (Iterate): Use start position as
188 iterator node value (Next, Previous): Forward to corresponding
189 cursor-based operation.
190
b38c20a6
AC
1912011-11-23 Matthew Heaney <heaney@adacore.com>
192
193 * a-coorse.ads, a-ciorse.ads, a-cborse.ads (Set_Iterator_Interfaces):
194 Renamed from Ordered_Set_Iterator_Interfaces.
195 * a-coorse.adb, a-ciorse.adb, a-cborse.adb (Iterator): Declared
196 Iterator type as limited (First, Last): Cursor return value
197 depends on iterator node value (Iterate): Use start position as
198 iterator node value (Next, Previous): Forward to corresponding
199 cursor-based operation.
200 * a-cohase.ads, a-cohase.adb: Implemented forward iterator.
201 * a-cihase.adb, a-cbhase.adb (Iterator): Removed unnecessary
202 node component (First, Next): Forward call to corresponding
203 cursor-based operation (Iterate): Representation of iterator no
204 longer has node component
205
2062011-11-23 Hristian Kirtchev <kirtchev@adacore.com>
207
208 * exp_intr.adb (Expand_Unc_Deallocation): Ensure that the
209 dereference has a proper type before the side effect removal
210 mechanism kicks in.
211 * sem_ch3.adb (Analyze_Subtype_Declaration): Handle a rare case
212 where the base type of the subtype is a private itype created
213 to act as the partial view of a constrained record type. This
214 scenario manifests with equivalent class-wide types for records
215 with unknown discriminants.
216
2172011-11-23 Jerome Guitton <guitton@adacore.com>
218
219 * s-osprim-vxworks.adb (Clock): Use Clock_RT_Ada.
220
2212011-11-23 Thomas Quinot <quinot@adacore.com>
222
223 * s-oscons-tmplt.c: Fix unbalanced preprocessor directives Minor
224 reformatting/reorganization.
225
24fee494
TQ
2262011-11-23 Thomas Quinot <quinot@adacore.com>
227
228 * g-htable.ads: Remove old comments.
229
bc6e33a3
TQ
2302011-11-23 Thomas Quinot <quinot@adacore.com>
231
232 * exp_imgv.adb: Minor reformatting.
233
c269a1f5
AC
2342011-11-23 Robert Dewar <dewar@adacore.com>
235
236 * sem_ch9.adb (Analyze_Entry_Declaration): Check for entry
237 family bounds out of range.
238
2392011-11-23 Matthew Heaney <heaney@adacore.com>
240
241 * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Iterator): Declare
242 type as limited, and remove node component.
243 (First, Next): Forward call to corresponding cursor-based operation.
244 (Iterate): Representation of iterator no longer has node component.
245
2462011-11-23 Yannick Moy <moy@adacore.com>
247
248 * exp_util.adb: Revert previous change to remove side-effects in Alfa
249 mode, which is not the correct thing to do for renamings.
250
2512011-11-23 Thomas Quinot <quinot@adacore.com>
252
253 * s-osinte-hpux.ads, s-taprop-vxworks.adb, s-taprop-tru64.adb,
254 s-osinte-vxworks.ads, s-osinte-aix.ads, s-osinte-lynxos.ads,
255 s-osinte-solaris-posix.ads, s-taprop-solaris.adb, a-exetim-posix.adb,
256 s-osinte-irix.ads, s-osinte-solaris.ads, s-oscons-tmplt.c,
257 s-taprop-irix.adb, s-osinte-hpux-dce.ads, Makefile.rtl,
258 s-osinte-tru64.ads, s-osinte-darwin.ads, s-taprop.ads,
259 s-osinte-freebsd.ads, s-osinte-lynxos-3.ads, s-taprop-hpux-dce.adb,
260 s-taprop-posix.adb: Remove hard-coded clock ids;
261 instead, generate them in System.OS_Constants.
262 (System.OS_Constants.CLOCK_RT_Ada): New constant denoting the
263 id of the clock providing Ada.Real_Time.Monotonic_Clock.
264 * thread.c: New file.
265 (__gnat_pthread_condattr_setup): New function. For platforms where
266 CLOCK_RT_Ada is not CLOCK_REALTIME, set appropriate condition
267 variable attribute.
268
2692011-11-23 Yannick Moy <moy@adacore.com>
270
271 * sem_ch3.adb: Restore the use of Expander_Active instead of
272 Full_Expander_Active, so that the evaluation is forced in Alfa
273 mode too. Otherwise, we end up with an unexpected insertion in a
274 place where it is not supposed to happen, on default parameters
275 of a call.
276
2772011-11-23 Thomas Quinot <quinot@adacore.com>
278
279 * prj-pp.adb, prj-pp.ads: Minor new addition: wrapper procedure "wpr"
280 for Pretty_Print, for use from within gdb.
281
f947ee34
AC
2822011-11-23 Ed Schonberg <schonberg@adacore.com>
283
284 * exp_ch5.adb (Expand_Iterator_Loop): Wrap the expanded loop
285 and the cursor declarations in a block, so that the loop variable
286 is local to the construct.
287
2882011-11-23 Matthew Heaney <heaney@adacore.com>
289
290 * a-coorma.ads, a-ciorma.ads, a-cborma.ads (Iterate): Returns
291 type Reversible_Iterator'Class.
292 * a-coorma.adb, a-ciorma.adb, a-cborma.adb (Iterator):
293 Declare type as limited.
294 (First, Last): Return value depends on iterator's start node value.
295 (Next, Previous): Call corresponding Cursor-based operation.
296 (Iterate): Indicate whether complete or partial iteration
297
fb2bd3a7
RD
2982011-11-23 Robert Dewar <dewar@adacore.com>
299
300 * errout.adb: Minor reformattin (Finalize): Take templates into
301 account for warning suppression.
302 * errout.ads (Set_Specific_Warning_Off): Add Used parameter.
303 * erroutc.adb: Minor reformatting (Finalize): Take generic
304 templates into account for warning suppress.
305 * erroutc.ads (Set_Specific_Warning_Off): Add Used parameter.
306 * sem_prag.adb: Minor reformatting (Analyze_Pragma,
307 case Warnings): Provide Used parameter in call to
308 Set_Specific_Warnings_Off (to deal with generic template case).
309
a1092b48
AC
3102011-11-23 Pascal Obry <obry@adacore.com>
311
312 * sem_prag.adb (Process_Convention): Better error message for
313 stdcall convention on dispatching calls.
314
3152011-11-23 Gary Dismukes <dismukes@adacore.com>
316
317 * sem_ch4.adb, sem_ch13.adb: Minor reformatting.
318
3192011-11-23 Javier Miranda <miranda@adacore.com>
320
321 * exp_ch6.adb (Expand_Simple_Function_Return): Add missing
322 implicit type conversion when the returned object is allocated
323 in the secondary stack and the type of the returned object is
324 an interface. Done to force generation of displacement of the
325 "this" pointer.
326
3d0c15cf
AC
3272011-11-23 Pascal Obry <obry@adacore.com>
328
329 * impunit.adb: Add g-exptty and g-tty units.
330
3312011-11-23 Robert Dewar <dewar@adacore.com>
332
333 * exp_imgv.adb: Minor code reorganization (use Make_Temporary).
334
95160516
AC
3352011-11-23 Robert Dewar <dewar@adacore.com>
336
337 * exp_util.adb, par-ch6.adb, sem_res.adb, par-util.adb: Minor
338 reformatting.
339
3402011-11-23 Yannick Moy <moy@adacore.com>
341
342 * sem_ch13.adb (Analyze_Aspect_Specifications): Place error on
343 line of precondition/ postcondition/invariant.
3d0c15cf 344
95160516
AC
3452011-11-23 Pascal Obry <obry@adacore.com>
346
347 * g-exptty.ads, g-exptty.adb, g-tty.ads, g-tty.adb,
348 terminals.c: New files.
349 Makefile.rtl: Add these new files.
350 * gnat_rm.texi: Add documentation for GNAT.Expect.TTY.
351 * gcc-interface/Makefile.in: Add g-exptty, g-tty, terminals.o
352 * gcc-interface/Make-lang.in: Update dependencies.
353
5328a91d
AC
3542011-11-21 Robert Dewar <dewar@adacore.com>
355
95160516 356 * exp_imgv.adb (Expand_Width_Attribute): Handle case of Discard_Names.
5328a91d
AC
357 * sem_attr.adb (Eval_Attribute, case Width): Ditto.
358
3592011-11-21 Thomas Quinot <quinot@adacore.com>
360
361 * sinfo.ads: Minor reformatting.
362
3632011-11-21 Yannick Moy <moy@adacore.com>
364
365 * exp_util.adb: Minor reformatting. Update comments.
366
8a06151a
RD
3672011-11-21 Robert Dewar <dewar@adacore.com>
368
369 * exp_prag.adb, exp_util.adb, sinfo.ads, sem_res.adb, s-stposu.adb,
370 sem_attr.adb, s-stposu.ads, s-taprop-solaris.adb, s-taprop-irix.adb,
371 sem_ch6.adb: Minor reformatting.
372
ca20a08e
AC
3732011-11-21 Arnaud Charlet <charlet@adacore.com>
374
375 * s-taprop-irix.adb, s-taprop-solaris.adb (Create_Task): Use
376 Unrestricted_Access to deal with fact that we properly detect the
377 error if Access is used.
378 * gcc-interface/Make-lang.in: Update dependencies.
379
3802011-11-21 Yannick Moy <moy@adacore.com>
381
382 * exp_prag.adb (Expand_Pragma_Check): Place error on first character
383 of expression.
384 * sem_res.adb (Resolve_Short_Circuit): Place error on first
385 character of expression.
386
3872011-11-21 Yannick Moy <moy@adacore.com>
388
389 * exp_util.adb (Remove_Side_Effects): Do nothing in Alfa mode.
390
3912011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
392
393 * exp_attr.adb (Expand_N_Attribute_Reference, case
394 Max_Size_In_Storage_Elements): Account for the size of the
395 hidden list header which precedes controlled objects allocated
396 on the heap.
397 * rtsfind.ads: Add RE_Header_Size_With_Padding to the runtime
398 tables.
399 * sinfo.adb (Header_Size_Added): New routine.
400 (Set_Header_Size_Added): New routine.
401 * sinfo.ads: Add flag Controlled_Header_Added along with
402 associated comment.
403 (Header_Size_Added): New inlined routine.
404 (Set_Header_Size_Added): New inlined routine.
405 * s-stposu.adb (Allocate_Any_Controlled): Use
406 Header_Size_With_Padding to calculate the proper
407 size of the header.
408 (Deallocate_Any_Controlled): Use
409 Header_Size_With_Padding to calculate the proper size
410 of the header. (Header_Size_With_Padding): New routine.
411 (Nearest_Multiple_Rounded_Up): Removed along with its uses.
412 * s-stposu.ads (Header_Size_With_Padding): New routine.
413
4142011-11-21 Ed Schonberg <schonberg@adacore.com>
415
416 * aspects.adb: Aspect specifications are allowed on renaming
417 declarations
418 * par-ch6.adb (P_Subprogram): Parse aspect specifications in a
419 subprogram renaming declaration
420
d2d4b355
AC
4212011-11-21 Tristan Gingold <gingold@adacore.com>
422
423 * env.c: Remove unused declaration.
424
4252011-11-21 Pascal Obry <obry@adacore.com>
426
427 * s-os_lib.ads: Minor style fix.
428
4292011-11-21 Pascal Obry <obry@adacore.com>
430
431 * adaint.c (__gnat_dup2): When fd are stdout, stdin or stderr and
432 identical, do nothing on Windows XP.
433
4342011-11-21 Yannick Moy <moy@adacore.com>
435
436 * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
437 Use Full_Expander_Active instead of Expander_Active to control
438 the forced evaluation of expressions for the sake of generating
439 checks.
440
4412011-11-21 Thomas Quinot <quinot@adacore.com>
442
443 * init.c: On FreeBSD, stack checking failures may raise SIGBUS.
444
4452011-11-21 Tristan Gingold <gingold@adacore.com>
446
447 * sysdep.c (mode_read_text, mode_write_text, mode_append_text,
448 mode_read_binary, mode_write_binary, mode_append_binary,
449 mode_read_text_plus, mode_write_text_plus, mode_append_text_plus,
450 mode_read_binary_plus, mode_write_binary_plus,
451 mode_append_binary_plus): Remove unused declarations.
452
4532011-11-21 Yannick Moy <moy@adacore.com>
454
455 * gnat_rm.texi: Minor rewording.
456
4572011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
458
459 * exp_imgv.adb (Expand_Width_Attribute): Emit
460 an error message rather than a warning when pragma Discard_Names
461 prevents the computation of 'Width. Do not emit an error through
462 the use of RE_Null.
463
4642011-11-21 Javier Miranda <miranda@adacore.com>
465
466 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add
467 implicit type conversion when the type of the allocator is an
468 interface. Done to force generation of displacement of the "this"
469 pointer when required.
470
4712011-11-21 Ed Schonberg <schonberg@adacore.com>
472
473 * sinfo.ads, sinfo.adb: Corresponding_Spec applies to expression
474 functions, and is set when the expression is a completion of a
475 previous declaration.
476 * sem_ch6.adb (Analyze_Expression_Function): To determine properly
477 whether an expression function completes a previous declaration,
478 use Find_Corresponding_Spec, as when analyzing a subprogram body.
479
4802011-11-21 Steve Baird <baird@adacore.com>
481
482 * sem_util.adb (Deepest_Type_Access_Level): Improve comment.
483 (Type_Access_Level): Improve comment.
484
08ef33f5
EB
4852011-11-21 Eric Botcazou <ebotcazou@adacore.com>
486
487 * gcc-interface/Makefile.in (INCLUDES_FOR_SUBDIR): Add $(fsrcdir) by
488 means of -iquote unconditionally.
489
83e5da69
AC
4902011-11-21 Robert Dewar <dewar@adacore.com>
491
492 * sem_ch3.adb, sem_util.adb, sem_res.adb, sem_attr.adb: Minor
493 reformatting.
494
4952011-11-21 Arnaud Charlet <charlet@adacore.com>
496
497 * s-taprop-posix.adb (Create_Task): Use Unrestricted_Access
498 to deal with fact that we properly detect the error if Access
499 is used.
500
f460d8f3
SB
5012011-11-21 Steve Baird <baird@adacore.com>
502
503 * sem_util.ads: Update comment describing function
504 Deepest_Access_Level.
505 * sem_util.adb (Deepest_Type_Access_Level): Return Int'Last for a
506 generic formal type.
507 (Type_Access_Level): Return library level
508 for a generic formal type.
509 * sem_attr.adb (Resolve_Attribute): Replace two Type_Access_Level
510 calls with calls to Deepest_Type_Access_Level.
511 * sem_ch3.adb (Analyze_Component_Declaration): replace a
512 Type_Access_Level call with a call to Deepest_Type_Access_Level.
513 * sem_res.adb (Resolve_Allocator.Check_Allocator_Discrim_Accessibility):
514 Replace three Type_Access_Level calls with calls to
515 Deepest_Type_Access_Level.
516 (Resolve_Allocator): Replace a Type_Access_Level call with a call to
517 Deepest_Type_Access_Level.
518 (Valid_Conversion.Valid_Array_Conversion): Replace a
519 Type_Access_Level call with a call to Deepest_Type_Access_Level.
520
d673c5c5
RD
5212011-11-21 Robert Dewar <dewar@adacore.com>
522
523 * sem_ch3.adb, s-taprop-vms.adb, opt.ads: Minor reformatting.
524
be482a8c
AC
5252011-11-21 Robert Dewar <dewar@adacore.com>
526
527 * sinput.ads: Minor comment fix.
528
5292011-11-21 Robert Dewar <dewar@adacore.com>
530
531 * exp_attr.adb (Expand_N_Attribute_Reference, case First_Bit,
532 Last_Bit, Position): Handle 2005 case.
533
5342011-11-21 Robert Dewar <dewar@adacore.com>
535
536 * s-atocou-builtin.adb (Decrement): Use Unrestricted_Access
537 to deal with fact that we properly detect the error if Access
538 is used.
539 (Increment): Same fix.
540 * s-taprop-linux.adb (Create_Task): Use Unrestricted_Access
541 to deal with fact that we properly detect the error if Access
542 is used.
543 * sem_util.adb (Is_Volatile_Object): Properly record that A.B is
544 volatile if the B component is volatile. This affects the check
545 for passing such a by reference volatile actual to a non-volatile
546 formal (which should be illegal)
547
5482011-11-21 Robert Dewar <dewar@adacore.com>
549
550 * freeze.adb (Freeze_Enumeration_Type): Make sure to set both
551 size and alignment for foreign convention enumeration types.
552 * layout.adb (Set_Elem_Alignment): Redo setting of alignment
553 when size is set.
554
5552011-11-21 Yannick Moy <moy@adacore.com>
556
557 * checks.adb (Apply_Access_Check, Apply_Arithmetic_Overflow_Check,
558 Apply_Discriminant_Check, Apply_Divide_Check,
559 Apply_Selected_Length_Checks, Apply_Selected_Range_Checks,
560 Build_Discriminant_Checks, Insert_Range_Checks, Selected_Length_Checks,
561 Selected_Range_Checks): Replace reference to Expander_Active
562 with reference to Full_Expander_Active, so that expansion of
563 checks is not performed in Alfa mode
564
5652011-11-21 Tristan Gingold <gingold@adacore.com>
566
567 * s-taprop-vms.adb (Create_Task): Use Unrestricted_Access to deal with
568 fact that we properly detect the error if Access is used.
569
5702011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
571
572 * par-ch4.adb (P_Quantified_Expression): Add an Ada 2012 check.
573
5742011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
575
576 * exp_imgv.adb: Add with and use clause for Errout.
577 (Expand_Width_Attribute): Emit a warning when in
578 configurable run-time mode to provide a better diagnostic message.
579
5802011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
581
582 * s-finmas.adb (Finalize): Add comment concerning double finalization.
583
5842011-11-21 Ed Schonberg <schonberg@adacore.com>
585
586 * sem_ch3.adb (Access_Definition): If the access definition
587 is itself the return type of an access to function definition
588 which is ultimately the return type of an access to subprogram
589 declaration, its scope is the enclosing scope of the ultimate
590 access to subprogram.
591
5922011-11-21 Steve Baird <baird@adacore.com>
593
594 * sem_res.adb (Valid_Conversion): If a conversion was legal
595 in the body of a generic, then the corresponding conversion is
596 legal in the expanded body of an instance of the generic.
597
8e0aa19b
RD
5982011-11-21 Robert Dewar <dewar@adacore.com>
599
600 * sem_ch3.adb: Minor reformatting.
601
6022011-11-21 Robert Dewar <dewar@adacore.com>
603
604 * s-utf_32.adb (Is_UTF_32_Line_Terminator): Recognize NEL as
605 line terminator.
606 * sinput.ads: Add section on Handling of Source Line Terminators.
607 * types.ads (Line_Terminator): Adjust comments.
608
51fb9b73
RD
6092011-11-21 Robert Dewar <dewar@adacore.com>
610
611 * frontend.adb (Frontend): Capture restrictions from config files
612 * lib-load.adb (Load_Unit): Save/set/restore restriction pragma
613 information
614 * lib-xref.adb (Generate_Reference): Fix handling of obsolescent
615 references. This was noticed during debugging, but it is not
616 known if it causes real bugs.
617 * restrict.ads, restrict.adb: New routines to save/set/restore
618 non-partition-wide restrictions.
619 * s-rident.ads: Comment changes for new handling of
620 No_Elaboration_Code
621 * sem.adb (Sem): Save/Set/Restore non-partition-wide restrictions
622 * sem_ch10.adb (Analyze_Compilation_Unit): Remove incomplete
623 attempt to save/restore non-partition-wide restrictions (now
624 this work is all done in Sem).
625 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
626 Special handling for restriction No_Elaboration_Code.
627
6282011-11-21 Robert Dewar <dewar@adacore.com>
629
630 * gnat_ugn.texi: Document new handling of restrictions pragmas.
631
56272abe
AC
6322011-11-21 Pascal Obry <obry@adacore.com>
633
634 * s-taprop-linux.adb (Initialize_Lock): Do not allocate a cond
635 attribute as not needed.
636
6372011-11-21 Robert Dewar <dewar@adacore.com>
638
639 * sem_prag.adb: Minor reformatting.
640
6412011-11-21 Pascal Obry <obry@adacore.com>
642
643 * gnat_rm.texi: Document restriction for stdcall convention on
644 dispatching calls.
645
a5dd23a7
PO
6462011-11-21 Pascal Obry <obry@adacore.com>
647
648 * sem_prag.adb (Process_Convention): A dispatching call cannot
649 have a stdcall calling convention.
650
6512011-11-21 Pascal Obry <obry@adacore.com>
652
653 * s-taprop-linux.adb (Initialize_Lock): Do not allocate a
654 mutex attribute as not needed.
655 (Initialize_TCB): Likewise.
656 (Initialize): Likewise.
657
a4901c08
AC
6582011-11-21 Robert Dewar <dewar@adacore.com>
659
660 * sem_ch6.adb (Is_Public_Subprogram_For): New procedure
661 (Process_PPCs): Invariants only apply to public subprograms.
662
6632011-11-21 Robert Dewar <dewar@adacore.com>
664
665 * sem_util.adb, sem_util.ads, sem_attr.adb, restrict.adb,
666 restrict.ads: Fix for No_Implicit_Aliasing in the renames case.
667
6682011-11-21 Robert Dewar <dewar@adacore.com>
669
670 * a-finali.ads: Use pragma Pure_12 for this unit
671 * aspects.adb: Add aspect Pure_12
672 * aspects.ads: Add aspect Pure_12
673 * opt.ads: Add note on Pure_12
674 * par-prag.adb: Add dummy entry for Pure_12
675 * sem_prag.adb: Implement Pure_12 pragma
676 * snames.ads-tmpl: Add Entry for Pure_12
677
6782011-11-21 Sergey Rybin <rybin@adacore.com frybin>
679
680 * vms_data.ads: Add qualifiers for new gnatpp options
681 '--call_threshold' and '--par_threshold".
682 * gnat_ugn.texi: Add description for new gnatpp options
683 '--call_threshold' and '--par_threshold".
684
6852011-11-21 Robert Dewar <dewar@adacore.com>
686
687 * lib.ads: Minor reformatting.
688
6892011-11-21 Robert Dewar <dewar@adacore.com>
690
691 * lib-load.ads: Add comment.
692
4bf201ed
AC
6932011-11-21 Gary Dismukes <dismukes@adacore.com>
694
695 * sem_elab.adb: Minor reformatting
696
6972011-11-21 Robert Dewar <dewar@adacore.com>
698
699 * exp_ch6.adb: Minor reformatting.
700
7012011-11-21 Ed Schonberg <schonberg@adacore.com>
702
703 * sem_ch12.adb (Check_Formal_Package_Instance): If a formal
704 subprogram of the formal package is covered by an others
705 association with a box initialization, no check is needed
706 against the actual in the instantiation of the formal package.
707
7082011-11-21 Robert Dewar <dewar@adacore.com>
709
710 * sem_elab.adb (Check_Internal_Call_Continue): Suppress junk
711 elab warning from within precondition/postcondition etc.
712
bdf69d33
AC
7132011-11-21 Ed Schonberg <schonberg@adacore.com>
714
715 * exp_ch6.adb (Expand_Actuals): In Ada 2012, a function call
716 with out parameters may generate assignments to force constraint
717 checks. These checks must be properly placed in the code after the
718 declaration or statement that contains the call.
719
7202011-11-21 Fedor Rybin <frybin@adacore.com>
721
722 * gnat_ugn.texi: Adding info on current gnattest limitations an
723 support of -X option.
724
7252011-11-21 Robert Dewar <dewar@adacore.com>
726
727 * a-cfdlli.adb, a-cbdlli.adb: Minor reformatting.
728
03e1048e
AC
7292011-11-20 Robert Dewar <dewar@adacore.com>
730
731 * exp_ch6.adb, exp_util.adb: Minor reformatting
732
7332011-11-20 Eric Botcazou <ebotcazou@adacore.com>
734
735 * sinfo.ads (Reference): Document that it is OK to set
736 Is_Known_Non_Null on a temporary initialized to a N_Reference
737 node.
738
7392011-11-20 Matthew Heaney <heaney@adacore.com>
740
741 * a-cbdlli.adb, a-cfdlli.adb (Move): Set Last component to 0
742 for Source list.
743
74cab21a
EB
7442011-11-20 Eric Botcazou <ebotcazou@adacore.com>
745
746 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment):
747 Declare NEW_EXPR local variable and attach the
748 temporary to it. Set Is_Known_Non_Null on the temporary.
749 (Make_Build_In_Place_Call_In_Object_Declaration): Likewise.
750 * exp_util.adb (Remove_Side_Effects): Set Is_Known_Non_Null on
751 the temporary created to hold the 'Reference of the expression,
752 if any.
753 * checks.adb (Install_Null_Excluding_Check): Bail out for the
754 Get_Current_Excep.all.all idiom generated by the expander.
755
088b91c7
EB
7562011-11-20 Eric Botcazou <ebotcazou@adacore.com>
757
758 * gcc-interface/trans.c (struct language_function): Add GNAT_RET.
759 (f_gnat_ret): New macro.
760 (struct nrv_data): Add GNAT_RET.
761 (finalize_nrv_unc_r): New helper function.
762 (finalize_nrv): Add GNAT_RET parameter. Copy it into DATA. If the
763 function returns unconstrained, use finalize_nrv_unc_r as callback.
764 (return_value_ok_for_nrv_p): Test the alignment of RET_OBJ only if
765 RET_OBJ is non-null.
766 (Subprogram_Body_to_gnu): Pass GNAT_RET to finalize_nrv.
767 (gnat_to_gnu) <N_Return_Statement>: In the return-unconstrained case,
768 if optimization is enabled, record candidates for the Named Return
769 Value optimization.
770
7712011-11-20 Eric Botcazou <ebotcazou@adacore.com>
0d24bf76
EB
772
773 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Add comment.
774 (gnat_to_gnu) <N_Return_Statement>: Add 'else' to avoid doing a useless
775 test. Tweak default case.
776 <N_Goto_Statement>: Use better formatting.
777 * gcc-interface/utils2.c (maybe_wrap_malloc): Use INIT_EXPR instead of
778 MODIFY_EXPR to initialize the storage.
779 (build_allocator): Likewise.
780
b1a785fb
EB
7812011-11-20 Eric Botcazou <ebotcazou@adacore.com>
782
783 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Adjust
784 call to components_to_record.
785 (components_to_record): Add FIRST_FREE_POS parameter. For the variant
786 part, reuse enclosing union even if there is a representation clause
787 on the Unchecked_Union. If there is a variant part, compute the new
788 first free position, if any. Adjust call to self. Use a single field
789 directly only if it hasn't got a representation clause or is placed at
790 offset zero. Create the variant part at offset 0 if all the fields
791 down to this level have a rep clause. Do not chain the variant part
792 immediately and adjust downstream.
793 Do not test ALL_REP before moving the fields without rep clause to the
794 previous level. Call create_rep_part to create the REP part and force
795 a minimum size on it if necessary. Do not chain it immediately.
796 Create a fake REP part if there are fields without rep clause that need
797 to be laid out starting from FIRST_FREE_POS.
798 At the end, chain the REP part and then the variant part.
799 (create_rep_part): New function.
800 (get_rep_part): Minor tweak.
801 * gcc-interface/utils.c (tree_code_for_record_type): Minor tweak.
802
590175d2
IS
8032011-11-18 Iain Sandoe <iains@gcc.gnu.org>
804
805 PR target/50678
a6b7e723
EB
806 * init.c (__gnat_error_handler) [Darwin]: Move workaround to the
807 bug filed as radar #10302855 from __gnat_error_handler to...
808 (__gnat_adjust_context_for_raise) [Darwin]: ...here. New function.
590175d2 809 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE) [Darwin]: Define.
590175d2 810
1e1ae0af
TG
8112011-11-18 Tristan Gingold <gingold@adacore.com>
812 Iain Sandoe <iains@gcc.gnu.org>
813
814 PR target/49992
815 * mlib-tgt-specific-darwin.adb (Archive_Indexer_Options): Remove.
a6b7e723 816 * gcc-interface/Makefile.in (darwin): Remove ranlib special-casing.
1e1ae0af 817
5f41422f
IS
8182011-11-12 Iain Sandoe <iains@gcc.gnu.org>
819
820 * gcc-interface/Makefile.in (stamp-gnatlib-$(RTSDIR)): Don't link
821 s-oscons.ads.
822 (OSCONS_CPP, OSCONS_EXTRACT): New.
a6b7e723
EB
823 (./bldtools/oscons/xoscons): New target.
824 ($(RTSDIR)/s-oscons.ads): Likewise.
825 (gnatlib): Depend on $(RTSDIR)/s-oscons.ads.
5f41422f
IS
826 * gcc-interface/Make-lang.in (ada/s-oscons.ads) Remove as dependency.
827 * Make-generated.in: Remove machinery to generate xoscons and
828 ada/s-oscons.ads.
829
033ba5bf
EB
8302011-11-10 Eric Botcazou <ebotcazou@adacore.com>
831
832 * fe.h (Serious_Errors_Detected): New macro.
833 * gcc-interface/gigi.h (build_atomic_load): Declare.
834 (build_atomic_store): Likewise.
835 * gcc-interface/trans.c (atomic_sync_required_p): New predicate.
836 (call_to_gnu): Add ATOMIC_SYNC parameter. Use local variable.
837 Build an atomic load for an In or In Out parameter if needed.
838 Build an atomic store for the assignment of an Out parameter if needed.
839 Build an atomic store to the target if ATOMIC_SYNC is true.
840 (present_in_lhs_or_actual_p): New predicate.
841 (gnat_to_gnu) <N_Identifier>: Build an atomic load if needed.
842 <N_Explicit_Dereference>: Likewise.
843 <N_Indexed_Component>: Likewise.
844 <N_Selected_Component>: Likewise.
845 <N_Assignment_Statement>: Adjust call to call_to_gnu.
846 Build an atomic store to the LHS if needed.
847 <N_Function_Call>: Adjust call to call_to_gnu.
848 * gcc-interface/utils2.c: Include toplev.h.
849 (resolve_atomic_size): New static function.
850 (build_atomic_load): New function.
851 (build_atomic_store): Likewise.
852 * gcc-interface/Make-lang.in (ada/utils2.o): Add toplev.h.
853
b5bf3335
AC
8542011-11-07 Olivier Hainque <hainque@adacore.com>
855
856 * sigtramp-ppcvxw.c: Add general comments.
857 (CFI_COMMON_REGS): Remove rule for r1, as in other unwinders. Add
858 rules for r2 to r13, plus CTR and XER.
859 (CFA_REG): New, register number used to hold the local CFA.
860 (CFI_DEF_CFA, SIGTRAMP_BODY): Use it.
861 Make that 15, not 14, with documentation.
862 (TCR): Undef before definition, preventing conflict with reg number in
863 VxWorks headers.
864
8652011-11-07 Robert Dewar <dewar@adacore.com>
866
867 * exp_util.ads, exp_alfa.adb, a-cohama.adb, a-cohama.ads, sem_ch4.adb,
868 aspects.ads, exp_ch8.adb, exp_ch8.ads, atree.ads: Minor reformatting.
869 * gcc-interface/Make-lang.in: Update dependencies.
870
8712011-11-07 Ed Schonberg <schonberg@adacore.com>
872
873 * exp_ch6.adb: A tagged type is a legal actual for an aliased
874 formal.
875
8762011-11-07 Pascal Obry <obry@adacore.com>
877
878 * g-socket.adb, g-socket.ads: Minor reformatting.
879
8802011-11-07 Robert Dewar <dewar@adacore.com>
881
882 * sem_res.adb (Resolve_Actuals): Minor error message improvement.
883
8842011-11-07 Robert Dewar <dewar@adacore.com>
885
886 * gnat_ugn.texi: Add discussion of default mode handling of
887 source representation with no -gnatW option given, in particular
888 noting that NEL (next line) is not recognized in this context.
889
9ee76313
AC
8902011-11-07 Yannick Moy <moy@adacore.com>
891
892 * sem_util.adb (Note_Possible_Modification): In Alfa mode,
893 generate a reference for a modification even when the modification
894 does not come from source.
895
8962011-11-07 Ed Schonberg <schonberg@adacore.com>
897
898 * exp_ch5.adb (Expand_Iterator_Loop): For the "of" iterator form,
899 use the indexing attributes rather than the Element function,
900 to obtain variable references.
901 * sem_ch4.adb (Try_Container_Indexing): Code cleanup. Use
902 Find_Aspect rather than iterating over representation
903 items. Improve error message.
904 * a-cohama.adb, a-cohama.ads Update to latest RM, with two versions
905 of Reference functions.
906
7b7a0c2b
AC
9072011-11-07 Yannick Moy <moy@adacore.com>
908
909 * sem_util.adb (Unique_Entity): For a parameter on a subprogram
910 body that has a corresponding parameter on the subprogram
911 declaration, define the unique entity as being the declaration
912 one.
913
9142011-11-07 Ed Schonberg <schonberg@adacore.com>
915
916 * sem_ch6.adb (Analyze_Return_Type): In Ada 2012 mode, if the
917 return type of a function is the class-wide type of an incomplete
918 type T, T can be a Taft-amendment type and does not have to be
919 completed in the current private part.
920
9212011-11-07 Ed Schonberg <schonberg@adacore.com>
922
923 * aspects.ads (Inherited_Aspect): Map that indicates type aspects
924 that are inherited by default, and apply to the class-wide type
925 as well.
926 * aspects.adb (Find_Aspect): If the entity is class-wide and the
927 aspect is inherited, use the aspect of the specific type.
928
cc570be6
AC
9292011-11-07 Hristian Kirtchev <kirtchev@adacore.com>
930
931 * exp_alfa.adb: Remove with and use clause for
932 Exp_Ch8. Add with and use clause for Exp_Util.
933 Remove local constant Disable_Processing_Of_Renamings.
934 (Expand_Alfa_N_Object_Renaming_Declaration): The expansion of
935 object renamings has been reenabled.
936 (Expand_Possible_Renaming):
937 The expansion of identifier and expanded names has been
938 reenabled. Perform the substitutions only for entities that
939 denote an object.
940 * exp_ch8.ads, exp_ch8.adb (Evaluate_Name): Moved to Exp_Util.
941 * exp_util.adb (Evaluate_Name): Moved from Exp_Ch8.
942 (Remove_Side_Effects): Alphabetize local variables. Add a guard
943 to avoid the infinite expansion of an expression in Alfa mode. Add
944 processing for function calls in Alfa mode.
945 * exp_util.ads (Evaliate_Name): Moved from Exp_Ch8.
946
9472011-11-07 Ed Schonberg <schonberg@adacore.com>
948
949 * freeze.adb (Freeze_Entity): If the entity is an access to
950 subprogram whose designated type is itself a subprogram type,
951 its own return type must be decorated with size information.
952
b6d185a5
AC
9532011-11-04 Arnaud Charlet <charlet@adacore.com>
954
955 * gcc-interface/Make-lang.in: Update dependencies.
956
1adaea16
AC
9572011-11-04 Robert Dewar <dewar@adacore.com>
958
959 * sprint.adb (Sprint_Node_Actual, case Qualified_Expression):
960 Avoid junk semicolon after argument of machine code Asm operand.
961
9622011-11-04 Robert Dewar <dewar@adacore.com>
963
964 * exp_ch11.adb (Generate_Push_Pop): Inhibit push/pop nodes in
965 CodePeer mode or if restriction No_Exception_Handlers is present.
966 * exp_ch6.adb (Expand_N_Subprogram_Body): (Inhibit push/pop
967 nodes in CodePeer mode or if restriction No_Exception_Handlers
968 is present.
969
9702011-11-04 Robert Dewar <dewar@adacore.com>
971
972 * s-tassta.adb, atree.ads, errout.adb, sinput.adb: Minor reformatting.
973
9742011-11-04 Ed Schonberg <schonberg@adacore.com>
975
976 * sem_ch6.adb (Analyze_Subprogram_Specification): The
977 specification is legal if it is a function that returns an
978 abstract type, if it comes from an attribute renaming of a stream
979 attribute of an abstract type.
980
9812011-11-04 Gary Dismukes <dismukes@adacore.com>
982
983 * exp_util.adb (Is_Possibly_Unaligned_Object): In case of indexed
984 components, check whether recursively check whether the prefix
985 denotes an unaligned object.
986
9872011-11-04 Ed Schonberg <schonberg@adacore.com>
988
989 * sem_prag.adb (Analyze_Pragma, case Debug): The argument of
990 the pragma is legal if it is an expanded name that denotes a
991 procedure that be can called without parameters.
992
9932011-11-04 Eric Botcazou <ebotcazou@adacore.com>
994
995 * gnat_ugn.texi (Performance Considerations) <Vectorization
996 of loops>: New sub-section. <Other Optimization Switches>:
997 Minor tweak.
998
4c9fe6c7
AC
9992011-11-04 Robert Dewar <dewar@adacore.com>
1000
1001 * gnat_rm.texi: Minor reformatting.
1002
10032011-11-04 Matthew Heaney <heaney@adacore.com>
1004
1005 * a-convec.adb, a-coinve.adb, a-cobove.adb (Merge): Raise PE
1006 when Target and Source denote same non-empty object
1007 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Merge): Ditto
1008
10092011-11-04 Robert Dewar <dewar@adacore.com>
1010
1011 * exp_attr.adb: Minor reformatting.
1012
10132011-11-04 Ed Schonberg <schonberg@adacore.com>
1014
1015 * exp_ch5.adb (Expand_Assign_Record): Do not generate a
1016 discriminant assignment within an initialization proc if the
1017 record is an unchecked union, as it can only come from the
1018 initialization of an unchecked union component.
1019
10202011-11-04 Robert Dewar <dewar@adacore.com>
1021
1022 * gnat_ugn.texi: Minor reformatting.
1023
10242011-11-04 Robert Dewar <dewar@adacore.com>
1025
1026 * par-labl.adb (Rewrite_As_Loop): Generate info msg rather than
1027 warning message.
1028
10292011-11-04 Robert Dewar <dewar@adacore.com>
1030
1031 * exp_ch4.adb: Minor code reorganization (remove junk obsolete
1032 var Save_Space).
1033
6ec084f3
HK
10342011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
1035
1036 * exp_alfa.adb: Add local constant
1037 Disable_Processing_Of_Renamings;
1038 (Expand_Alfa_N_Object_Renaming_Declaration): Disable
1039 the name evaluation of object renamings for now.
1040 (Expand_Potential_Renaming): Do not perform the substitution
1041 for now.
1042 * exp_util.adb (Remove_Side_Effects): Remove processing for
1043 functions with side effects in Alfa mode.
1044
73fe1679
AC
10452011-11-04 Gary Dismukes <dismukes@adacore.com>
1046
1047 * bindgen.adb (Gen_Elab_Calls): In the case
1048 of the AAMP target, set elaboration entities to 1 rather than
1049 incrementing.
1050
10512011-11-04 Ed Schonberg <schonberg@adacore.com>
1052
1053 * sem_ch10.adb (Install_Limited_With_Unit): To establish the
1054 proper entities on the ancestors of a child unit that appear
1055 in a limited_with clause, follow the unit links because the
1056 units are not analyzed and scope information is incomplete.
1057
10582011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1059
1060 * exp_ch4.adb (Expand_N_Selected_Component): Refine code
1061 setting the Atomic_Sync_Required flag to detect one more case.
1062 * exp_util.adb (Activate_Atomic_Synchronization): Refine code
1063 setting the Atomic_Sync_Required flag to exclude more cases,
1064 depending on the parent of the node to be examined.
1065
10662011-11-04 Bob Duff <duff@adacore.com>
1067
1068 * g-excact.adb: Minor: use named notation.
1069
10702011-11-04 Ed Schonberg <schonberg@adacore.com>
1071
1072 * sem_ch5.adb: Improve error messages for illegal iterators.
1073
b2ab8c33
AC
10742011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
1075
1076 * exp_alfa.adb: Add with and use clauses for Exp_Ch8 and
1077 Sem_Util.
1078 (Expand_Alfa): Alphabetize cases on first choice. Add
1079 processing for object renaming declarations, identifiers and
1080 expanded names.
1081 (Expand_Alfa_N_In): Remove useless return.
1082 (Expand_Alfa_N_Object_Renaming_Declaration): New routine.
1083 (Expand_Potential_Renaming): New routine.
1084 * exp_ch8.adb (Evaluate_Name): Moved to the top level.
1085 (Expand_N_Object_Declaration): Alphabetize local variables. Move
1086 Evaluate_Name out to the top level.
1087 * exp_ch8.ads (Evaluate_Name): Moved from body to package spec.
1088 * exp_util.adb (Remove_Side_Effects): Add processing for
1089 functions with side effects in Alfa mode.
1090
10912011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
1092
1093 * gnat_rm.texi: Add entries for
1094 restrictions No_Relative_Delay, No_Requeue_Statements and
1095 No_Stream_Optimizations.
1096
10972011-11-04 Ed Schonberg <schonberg@adacore.com>
1098
1099 * sem_ch4.adb: Set type of entity in prefixed call, for
1100 completeness in a generic context.
1101
4c318253
AC
11022011-11-04 Yannick Moy <moy@adacore.com>
1103
1104 * sem_prag.adb: Minor refactoring (renaming of a parameter).
1105
11062011-11-04 Robert Dewar <dewar@adacore.com>
1107
1108 * atree.ads: Minor reformatting.
1109
11102011-11-04 Robert Dewar <dewar@adacore.com>
1111
1112 * checks.adb (Atomic_Synchronization_Disabled): Check -gnatd.d
1113 and -gnatd.e here
1114 * exp_ch2.adb (Expand_Entity_Reference): Use
1115 Activate_Atomic_Synchronization
1116 * exp_ch4.adb (Expand_N_Explicit_Dereference): Use
1117 Activate_Atomic_Synchronization (Expand_N_Indexed_Compoonent):
1118 Activate_Atomic_Synchronization (Expand_N_Selected_Component):
1119 Use Activate_Atomic_Synchronization
1120 * exp_util.ads, exp_util.adb (Activate_Atomic_Synchronization): New
1121 procedure.
1122 * sinfo.ads, sinfo.adb (Atomic_Sync_Required): Can now apply to
1123 N_Selected_Component node
1124
37765e95
RD
11252011-11-04 Robert Dewar <dewar@adacore.com>
1126
1127 * sem_prag.adb, atree.ads, prj-env.adb, prj-env.ads: Minor reformatting.
1128
8c18a165
AC
11292011-11-04 Yannick Moy <moy@adacore.com>
1130
1131 * atree.adb, atree.ads (Set_Original_Node): New set procedure.
1132 * sem_ch13.adb (Analyze_Aspect_Specifications/Pre_Post_Aspects):
1133 In ASIS mode, no splitting of aspects between conjuncts.
1134 (Analyze_Aspect_Specifications/Aspect_Test_Case): Make pragma
1135 expressions refer to the original aspect expressions through
1136 the Original_Node link. This is used in semantic analysis for
1137 ASIS mode, so that the original expression also gets analyzed.
1138 * sem_prag.adb (Preanalyze_TC_Args,
1139 Check_Precondition_Postcondition,
1140 Analyze_Pragma/Pragma_Test_Case): In ASIS mode, for a pragma
1141 generated from a source aspect, also analyze the original aspect
1142 expression.
1143 (Check_Expr_Is_Static_Expression): New procedure
1144 similar to existing procedure Check_Arg_Is_Static_Expression,
1145 except called on expression inside pragma.
1146
11472011-11-04 Tristan Gingold <gingold@adacore.com>
1148
1149 * prj-env.adb, prj-env.ads (Find_Name_In_Path): New function, from
1150 Find_Project.Try_Path_Name.
1151 (Find_Project): Use Find_Name_In_Path to implement Try_Path_Name.
1152
11532011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1154
1155 * s-atocou.ads (Atomic_Counter): Remove redundant pragma Volatile.
1156
11572011-11-04 Pascal Obry <obry@adacore.com>
1158
1159 * projects.texi: Add short description for qualifiers aggregate
1160 and aggregate library.
1161
11622011-11-04 Matthew Heaney <heaney@adacore.com>
1163
1164 * Makefile.rtl, impunit.adb: Added a-cogeso.ad[sb]
1165 * a-cgaaso.adb: Replaced implementation with instantiation
1166 of Generic_Sort.
1167 * a-cogeso.ad[sb] This is the new Ada 2012 unit
1168 Ada.Containers.Generic_Sort
1169
5972791c
AC
11702011-11-04 Robert Dewar <dewar@adacore.com>
1171
1172 * exp_ch2.adb (Expand_Entity_Reference): Do not set
1173 Atomic_Sync_Required for the case of a prefix of an attribute.
1174 * exp_ch4.adb (Expand_N_Explicit_Dereference): May require
1175 atomic synchronization
1176 (Expand_N_Indexed_Component): Ditto.
1177 (Expand_B_Selected_Component): Ditto.
1178 * sem_prag.adb (Process_Suppress_Unsuppress):
1179 Disable/Enable_Atomic_Synchronization can now occur for array
1180 types with pragma Atomic_Components.
1181 * sinfo.ads, sinfo.adb (Atomic_Sync_Required): Can now occur on
1182 N_Explicit_Dereference nodes and on N_Indexed_Component nodes.
1183
11842011-11-04 Gary Dismukes <dismukes@adacore.com>
1185
1186 * gnat_ugn.texi: Editorial corrections for gnattest section.
1187
8751a35c
RD
11882011-11-04 Robert Dewar <dewar@adacore.com>
1189
1190 * sem_prag.adb: Minor reformatting.
1191 * gnat_rm.texi: Update documentation for pragma Warnings (Off,
1192 "***") usage.
1193 * exp_ch2.adb (Expand_Entity_Reference): Only set
1194 Atomic_Sync_Required on entities that are variables. Doesn't
1195 make any sense on anything else.
1196
fb5d63c6
RD
11972011-11-04 Robert Dewar <dewar@adacore.com>
1198
1199 * exp_ch2.adb (Expand_Entity_Reference): Extend handling of
1200 atomic sync to type case.
1201 * sem_prag.adb (Process_Suppress_Unsuppress): Atomic Sync can
1202 apply to types.
1203
a51cd0ec 12042011-11-04 Robert Dewar <dewar@adacore.com>
25ec1790 1205
a51cd0ec
AC
1206 * sem_warn.adb (Warn_On_Useless_Assignment): More accurate test
1207 for call vs assign.
1208 * gcc-interface/Make-lang.in: Update dependencies.
1209
12102011-11-04 Robert Dewar <dewar@adacore.com>
1211
1212 * sem_prag.adb: Detect more cases of Long_Float inconsistencies at
1213 compile time.
1214
12152011-11-04 Matthew Heaney <heaney@adacore.com>
1216
1217 * Makefile.rtl, impunit.adb: Added a-sfecin.ads,
1218 * a-sfhcin.ads, a-sflcin.ads, a-sbecin.ad[sb], a-sbhcin.ad[sb],
1219 a-sblcin.ad[sb], a-suecin.ad[sb], a-suhcin.ad[sb], a-sulcin.ad[sb]
1220 * a-sfecin.ads, a-sfhcin.ads, a-sflcin.ads, a-sbecin.ad[sb],
1221 a-sbhcin.ad[sb], a-sblcin.ad[sb], a-suecin.ad[sb], a-suhcin.ad[sb],
1222 a-sulcin.ad[sb]: New files.
1223
12242011-11-04 Geert Bosch <bosch@adacore.com>
1225
1226 * i-forbla-unimplemented.ads, s-gecola.adb, s-gecola.ads,
1227 s-gerebl.adb, s-gerebl.ads, i-forbla.adb, i-forbla.ads,
1228 i-forlap.ads, i-forbla-darwin.adb, s-gecobl.adb, s-gecobl.ads,
1229 s-gerela.adb, s-gerela.ads: Remove partial interface to BLAS/LAPACK.
1230 * gcc-interface/Makefile.in: Remove libgnala and related objects.
25ec1790 1231
a31945d7
AC
12322011-11-04 Matthew Heaney <heaney@adacore.com>
1233
1234 * a-cdlili.ad[sb], a-cidlli.ad[sb], a-coorse.ad[sb], a-ciorse.ad[sb],
1235 a-coorma.ad[sb], a-ciorma.ad[sb], a-coormu.ad[sb], a-ciormu.ad[sb],
1236 a-cohama.ad[sb], a-cihama.ad[sb], a-cohase.ad[sb], a-cihase.ad[sb],
1237 a-convec.ad[sb], a-coinve.ad[sb] (Assign, Copy): New operations
1238 added to package.
1239
a51cd0ec
AC
12402011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1241
1242 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not assert
1243 that the type of the parameters isn't dummy in type_annotate_only mode.
1244
a31945d7
AC
12452011-11-04 Robert Dewar <dewar@adacore.com>
1246
1247 * sem_ch12.adb: Minor reformatting
1248
12492011-11-04 Gary Dismukes <dismukes@adacore.com>
1250
1251 * bindgen.adb (Gen_Elab_Calls): In the case of the AAMP target,
1252 initialize elaboration entities to zero when specs are processed.
1253
a53f3523
IS
12542011-10-28 Iain Sandoe <iains@gcc.gnu.org>
1255 Eric Botcazou <ebotcazou@adacore.com>
1256
1257 PR target/50678
be7552fc
EB
1258 * init.c (__gnat_error_handler) [Darwin]: Apply a work-around to the
1259 bug filed as radar #10302855 (inconsistent unwind data for sigtramp).
a53f3523 1260
0de82be5
EB
12612011-10-28 Eric Botcazou <ebotcazou@adacore.com>
1262
1263 PR ada/50842
1264 * gcc-interface/Makefile.in (SYMDEPS): Delete.
1265 (LIBICONV): New variable.
1266 (LIBICONV_DEP): Likewise.
1267 (LIBS): Add $(LIBICONV).
1268 (LIBDEPS): Add $(LIBICONV_DEP).
1269 (EXTRA_GNATTOOLS_OBJS): Merge into...
1270 (TOOLS_LIBS): ...this. Add $(LIBICONV).
e1e5852c 1271
1586f8a3
EB
12722011-10-26 Eric Botcazou <ebotcazou@adacore.com>
1273
1274 * gcc-interface/decl.c (elaborate_expression_1): Add EXPR_PUBLIC_P local
1275 variable. Always create the elaboration variable, if any, as constant.
1276
e1e5852c
EB
12772011-10-26 Eric Botcazou <ebotcazou@adacore.com>
1278
1279 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Try to
1280 make a packable type for fields of union types as well.
1281 <is_type>: Use RECORD_OR_UNION_TYPE_P predicate.
1282 (gnat_to_gnu_component_type): Try to make a packable type for fields
1283 of union types as well.
1284 (make_packable_type): Use RECORD_OR_UNION_TYPE_P predicate.
1285 (maybe_pad_type): Try to make a packable type for fields of union types
1286 as well.
1287 (gnat_to_gnu_field): Likewise.
1288 (is_variable_size): Use RECORD_OR_UNION_TYPE_P predicate.
1289 (set_rm_size): Likewise.
1290 (rm_size): Likewise.
1291 * gcc-interface/misc.c (gnat_type_max_size): Likewise.
1292 * gcc-interface/trans.c (add_decl_expr): Likewise.
1293 * gcc-interface/utils.c (finish_record_type): Likewise.
1294 * gcc-interface/utils2.c (build_simple_component_ref): Likewise.
1295
0025cb63
EB
12962011-10-26 Eric Botcazou <ebotcazou@adacore.com>
1297
1298 * gcc-interface/decl.c (gnat_to_gnu_field): Always check components
1299 declared as atomic. Move around conditionally executed code.
1300
b3c33641
AC
13012011-10-24 Robert Dewar <dewar@adacore.com>
1302
be7552fc 1303 * sem.adb (Initialize): Fix bug that blew up if called a second time.
b3c33641
AC
1304
13052011-10-24 Robert Dewar <dewar@adacore.com>
1306
1307 * tb-alvxw.c, tracebak.c, expect.c, initflt.c, tb-alvms.c,
1308 tb-ivms.c, tb-gcc.c: Update headers to GPL 3.
1309
13102011-10-24 Robert Dewar <dewar@adacore.com>
1311
1312 * sem_prag.adb (Analyze_Pragma, case Debug): Give proper pragma
1313 name in error msg.
1314
13152011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
1316
be7552fc 1317 * gnat_rm.texi: Add an entry for restriction No_Finalization.
b3c33641
AC
1318
13192011-10-24 Ed Schonberg <schonberg@adacore.com>
1320
1321 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): If the
1322 current instance is within the one that contains the generic,
1323 the freeze node for the current one must appear in the current
1324 declarative part. Ditto if the current instance is within another
1325 package instance. In both of these cases the freeze node of the
1326 previous instance is not relevant.
1327
13282011-10-24 Gary Dismukes <dismukes@adacore.com>
1329
1330 * switch-m.adb (Normalize_Compiler_Switches): Add recognition
1331 of AAMP-specific switches -univ and -aamp_target.
1332
13332011-10-24 Robert Dewar <dewar@adacore.com>
1334
1335 * a-tienau.adb (Put): Deal properly with limited line length.
1336
13372011-10-24 Robert Dewar <dewar@adacore.com>
1338
1339 * sem_warn.adb, sem_ch12.adb: Minor reformatting.
1340
30e1709c 13412011-10-24 Tristan Gingold <gingold@adacore.com>
8263e17a
TG
1342
1343 * gcc-interface/Makefile.in: Use GNU ld switches to generate map files
1344 on AIX.
1345
12b4d338
AC
13462011-10-24 Ed Schonberg <schonberg@adacore.com>
1347
1348 * sem_ch12.adb (Earlier): make available globally. If both
1349 nodes have the same sloc, the freeze node that does not come
1350 from source is the later one.
1351 (True_Parent): Make available globally.
1352 (Previous_Instance): Subsidiary of
1353 Insert_Freeze_Node_For_Instance, to check whether the generic
1354 parent of the current instance is declared within a previous
1355 instance in the same unit or declarative part, in which case the
1356 freeze nodes of both instances must appear in order to prevent
1357 elaboration problems in gigi.
1358 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): A stub is a
1359 freeze point, and the freeze node of a preceding instantiation
1360 must be inserted before it.
1361
13622011-10-24 Robert Dewar <dewar@adacore.com>
1363
1364 * checks.ads, checks.adb: Add handling of Synchronization_Check
1365 * debug.adb: Add doc for -gnatd.d and -gnatd.e (disable/enable
1366 atomic sync).
1367 * exp_ch2.adb (Expand_Entity_Reference): Set Atomic_Sync_Required
1368 flag Minor code reorganization.
1369 * opt.ads (Warn_On_Atomic_Synchronization): New switch.
1370 * par-prag.adb: Add dummy entries for pragma
1371 Disable/Enable_Atomic_Synchronization.
1372 * sem_prag.adb (Process_Suppress_Unsuppress): Handle
1373 case of Atomic_Synchronization specially (not suppressed
1374 by All_Checks, cannot be set from Source).
1375 (Pragma Disable/Enable_Atomic_Synchronization): Add processing.
1376 * sinfo.ads, sinfo.adb: Add Atomic_Sync_Required flag
1377 * snames.ads-tmpl: Add entry for Atomic_Synchronization Add
1378 entry for pragma Disable/Enable_Atomic_Synchronization
1379 * switch-c.adb: The -gnatp switch does not disable
1380 Atomic_Synchronization Add -gnatep switch to disable
1381 Atomic_Synchronization.
1382 * types.ads: Add entry for Synchronization_Check
1383 * usage.adb: Add line for -gnated switch
1384 * warnsw.adb: Settings for Warn_On_Atomic_Synchronization
1385
08ce7bb8
AC
13862011-10-24 Geert Bosch <bosch@adacore.com>
1387
be7552fc
EB
1388 * s-gearop.adb (Back_Substitute): Avoid overflow if matrix bounds start
1389 at Integer'First.
08ce7bb8
AC
1390
13912011-10-24 Robert Dewar <dewar@adacore.com>
1392
be7552fc 1393 * sem_ch12.adb, s-gearop.adb: Minor reformatting.
08ce7bb8
AC
1394
13952011-10-24 Robert Dewar <dewar@adacore.com>
1396
be7552fc
EB
1397 * warnsw.adb: Add some missing warnings to Set_GNAT_Mode_Warnings.
1398 * warnsw.ads: Add comments to Set_GNAT_Mode_Warnings.
08ce7bb8 1399
292689c2
AC
14002011-10-24 Emmanuel Briot <briot@adacore.com>
1401
1402 * prj-proc.adb (Process_Expression_Variable_Decl): No special
1403 handling for Project_Path unless it is an attribute.
1404
14052011-10-24 Javier Miranda <miranda@adacore.com>
1406
1407 * sem_ch12.adb (Check_Hidden_Primitives): New subprogram.
1408 (Install_Hidden_Primitives): New subprogram.
1409 (Restore_Hidden_Primitives): New subprogram.
1410 (Analyze_Formal_Package_Declaration,
1411 Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
1412 Invoke Check_Hidden_Primitives after every call to
1413 Analyze_Associations, and invoke Restore_Hidden_Primitives to
1414 restore their visibility after processing the instantiation.
1415 (Instantiate_Package_Body): Install visible primitives before
1416 analyzing the instantiation and uninstall them to restore their
1417 visibility when the instantiation has been analyzed.
1418 * sem_util.ads, sem_util.adb (Add_Suffix): New subprogram
1419 (Remove_Suffix): New subprogram
1420 * sem_ch3.adb (Derive_Subprogram): When handling
1421 a derived subprogram for the instantiation of a formal derived
1422 tagged type, inherit the dispatching attributes from the actual
1423 subprogram (not from the parent type).
1424
db4b3c49
AC
14252011-10-24 Vasiliy Fofanov <fofanov@adacore.com>
1426
1427 * gnat_ugn.texi: Document explicit use of XDECGNAT library.
1428
14292011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
1430
1431 * exp_ch3.adb (Build_Assignment): Add local constant N_Loc and
1432 update its uses.
1433 (Build_Discriminant_Assignments): Add local variable D_Loc and update
1434 its uses.
1435 (Build_Init_Statements): Add local variables Comp_Loc, Decl_Loc and
1436 Var_Loc and update their uses.
1437 (Build_Record_Init_Proc): Code reformatting.
1438 (Increment_Counter): Add formal parameter Loc.
1439 (Make_Counter): Add formal parameter Loc.
1440
14412011-10-24 Eric Botcazou <ebotcazou@adacore.com>
1442
1443 * sem_disp.adb (Covers_Some_Interface): Fix typo.
1444
14452011-10-24 Matthew Heaney <heaney@adacore.com>
1446
be7552fc
EB
1447 * a-cuprqu.adb, a-cbprqu.adb (Dequeue_Only_High_Priority): Fix sense
1448 of predicate.
db4b3c49
AC
1449
14502011-10-24 Yannick Moy <moy@adacore.com>
1451
1452 * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Test_Case):
1453 Translate arguments in positional notation into pragma argument
1454 association arguments for the generated pragma.
1455
14562011-10-24 Arnaud Charlet <charlet@adacore.com>
1457
1458 * exp_ch5.adb: Fix minor typo.
1459
14602011-10-24 Ed Schonberg <schonberg@adacore.com>
1461
1462 * sem_ch3.adb (Is_Visible_Component): Refine predicate for
1463 the case of a component reference in an instance body, when the
1464 enclosing type is private.
1465
86f0e17a
AC
14662011-10-24 Sergey Rybin <rybin@adacore.com frybin>
1467
1468 * gnat_ugn.texi: For gnatelim, move the note about using the GNAT
1469 driver for getting the project support into gnatelim section.
1470
14712011-10-24 Robert Dewar <dewar@adacore.com>
1472
be7552fc 1473 * gnat_rm.texi: Minor correction to documentation on address clause.
86f0e17a
AC
1474
14752011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
1476
1477 * s-finmas.adb (Attach): Synchronize and call the unprotected version.
1478 (Attach_Unprotected): New routine.
1479 (Delete_Finalize_Address): Removed.
1480 (Delete_Finalize_Address_Unprotected): New routine.
1481 (Detach): Synchronize and call the unprotected version.
1482 (Detach_Unprotected): Remove locking.
1483 (Finalize): Add various comment on synchronization. Lock the critical
1484 region and call the unprotected versions of routines.
1485 (Finalize_Address): Removed.
1486 (Finalize_Address_Unprotected): New routine.
1487 (Set_Finalize_Address): Synchronize and call
1488 the unprotected version.
1489 (Set_Finalize_Address_Unprotected): New routine.
1490 (Set_Heterogeneous_Finalize_Address): Removed.
1491 (Set_Heterogeneous_Finalize_Address_Unprotected): New routine.
1492 (Set_Is_Heterogeneous): Add comment on synchronization and
1493 locking.
1494 * s-finmas.ads: Flag Finalization_Started is no longer atomic
1495 because synchronization uses task locking / unlocking.
1496 (Attach): Add comment on usage.
1497 (Attach_Unprotected): New routine.
1498 (Delete_Finalize_Address): Renamed to
1499 Delete_Finalize_Address_Unprotected.
1500 (Detach): Add comment on usage.
1501 (Detach_Unprotected): New routine.
1502 (Finalize_Address): Renamed to Finalize_Address_Unprotected.
1503 (Set_Finalize_Address): Add comment on usage.
1504 (Set_Finalize_Address_Unprotected): New routine.
1505 (Set_Heterogeneous_Finalize_Address): Renamed to
1506 Set_Heterogeneous_Finalize_Address_Unprotected.
1507 * s-stposu.adb (Allocate_Any_Controlled): Add local variable
1508 Allocation_Locked. Add various comments on synchronization. Lock
1509 the critical region and call the unprotected version of
1510 routines.
1511 (Deallocate_Any_Controlled): Add various comments on
1512 synchronization. Lock the critical region and call the unprotected
1513 version of routines.
1514
15152011-10-24 Ed Schonberg <schonberg@adacore.com>
1516
1517 * sem_ch3.adb (Set_Fixed_Range): The bounds of a fixed point type
1518 are universal and must carry the corresponding type.
1519 * sem_eval.adb (Check_Non_Static_Context): If the type of the
1520 expression is universal real, as may be the case for a fixed point
1521 expression with constant operands in the context of a conversion,
1522 there is nothing to check.
1523 * s-finmas.adb: Minor reformatting
1524
be98aaf0
EB
15252011-10-23 Eric Botcazou <ebotcazou@adacore.com>
1526
1527 * gcc-interface/decl.c (create_concat_name): Add explicit cast.
1528
e45c0886
EB
15292011-10-20 Eric Botcazou <ebotcazou@adacore.com>
1530
1531 * gcc-interface/Make-lang.in (GNATLIBFLAGS, GNATLIBCFLAGS, THREAD_KIND,
1532 TRACE): Reintroduce.
1533 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o,
1534 ada/initialize.o, ada/raise.o): Reintroduce explicit compilation rules.
1535
27ab5bd8
EB
15362011-10-20 Eric Botcazou <ebotcazou@adacore.com>
1537
1538 * gcc-interface/trans.c (lhs_or_actual_p): New predicate.
1539 (unchecked_conversion_nop): Use it.
1540 (gnat_to_gnu): Likewise.
1541
b7562769
EB
15422011-10-20 Eric Botcazou <ebotcazou@adacore.com>
1543
1544 * back_end.adb (Call_Back_End): Pass the maximum logical line number
1545 instead of the maximum physical line number to gigi.
1546 * gcc-interface/trans.c (Sloc_to_locus): Cope with line zero.
1547
53e7c794 15482011-10-16 Tom Tromey <tromey@redhat.com>
46427374
TT
1549 Dodji Seketeli <dodji@redhat.com>
1550
be7552fc
EB
1551 * gcc-interface/trans.c (gigi, Sloc_to_locus): Adjust to use the new
1552 public ordinary map interface.
46427374 1553
ea10ca9c
AC
15542011-10-16 Tristan Gingold <gingold@adacore.com>
1555
53e7c794 1556 * link.c (_AIX): Add support for GNU ld.
ea10ca9c
AC
1557
15582011-10-16 Fedor Rybin <frybin@adacore.com>
1559
1560 * gnat_ugn.texi: Fixing gnattest example names in the doc.
1561 Adding explanation to additional tests usage.
1562
15632011-10-16 Robert Dewar <dewar@adacore.com>
1564
1565 * exp_ch6.adb, sem_ch6.adb: Minor reformatting.
1566
15672011-10-16 Eric Botcazou <ebotcazou@adacore.com>
1568
1569 * a-convec.adb: Fix minor inconsistencies.
1570
15712011-10-16 Matthew Heaney <heaney@adacore.com>
1572
1573 * a-cusyqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cbprqu.ads (package
1574 Implementation): Specify pragma Implementation_Defined.
1575
c225ba50
NR
15762011-10-15 Nicolas Roche <roche@adacore.com>
1577
1578 * gcc-interface/lang-specs.h: Ensure -mrtp switch is passed when using
1579 either rtp-smp or ravenscar-cert-rtp runtimes.
1580
3e452820
AC
15812011-10-15 Bob Duff <duff@adacore.com>
1582
1583 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call):
1584 Do not create a pool formal on unless RE_Root_Storage_Pool_Ptr
1585 is available.
1586 (Expand_N_Extended_Return_Statement): Do not create a renaming of the
1587 build-in-place pool parameter unless RE_Root_Storage_Pool_Ptr is
1588 available.
1589 (Make_Build_In_Place_Call_In_Allocator): Add the user-defined
1590 pool only if RE_Root_Storage_Pool_Ptr is available.
1591 (Make_Build_In_Place_Call_In_Object_Declaration): Do not add a
1592 pool actual unless RE_Root_Storage_Pool_Ptr is available.
1593 * sem_ch6.adb (Create_Extra_Formals): Add build-in-place pool
1594 formal only if RE_Root_Storage_Pool_Ptr is available.
1595
15962011-10-15 Matthew Heaney <heaney@adacore.com>
1597
1598 * a-cusyqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cbprqu.ads (Queue
1599 type): Specify Priority aspect for protected type.
1600
b7539c3b
AC
16012011-10-14 Ed Schonberg <schonberg@adacore.com>
1602
1603 * exp_disp.adb (Check_Premature_Freezing): If an untagged type
1604 is a generic actual, it is a subtype of a type that was frozen
1605 by the instantiation, and even if not marked frozen it does not
1606 affect the construction of the dispatch table.
1607
16082011-10-14 Robert Dewar <dewar@adacore.com>
1609
1610 * make.adb, mlib-utl.adb, sem_util.adb, sem_ch4.adb: Minor code
1611 reformatting.
1612 * s-rident.ads: Add missing Compiler_Unit pragma.
1613
af89615f
AC
16142011-10-14 Gary Dismukes <dismukes@adacore.com>
1615
1616 * sem_res.adb: Minor reformatting.
1617
16182011-10-14 Hristian Kirtchev <kirtchev@adacore.com>
1619
1620 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
1621 Code and comment reformatting. Use BIP_Task_Master
1622 when creating a _master.
1623 (BIP_Formal_Suffix): Code reformatting. Correct the case for
1624 BIP_Task_Master.
1625 (Make_Build_In_Place_Call_In_Object_Declaration): Use
1626 BIP_Task_Master when creating a reference to the enclosing
1627 function's _master formal.
1628 (Move_Activation_Chain): Use BIP_Task_Master when creating a reference
1629 to the _master.
1630 * exp_ch6.ads: Change BIP_Master to BIP_Task_Master.
1631 (Needs_BIP_Finalization_Master): Alphabetized.
1632 * sem_ch6.adb (Create_Extra_Formals): Update the usage of
1633 BIP_Task_Master.
1634
16352011-10-14 Ed Schonberg <schonberg@adacore.com>
1636
1637 * par-ch6.adb (P_Return_Object_Declaration): In Ada 2012 mode,
1638 reject an aliased keyword on the object declaration of an extended
1639 return statement. In older versions of the language indicate
1640 that this is illegal in the standard.
1641
16422011-10-14 Pascal Obry <obry@adacore.com>
1643
1644 * sem_util.adb, sem_ch4.adb: Minor reformatting.
1645
16462011-10-14 Ed Schonberg <schonberg@adacore.com>
1647
1648 * sem_ch13.adb: Recognize properly procedure calls that are
1649 transformed into code statements.
1650
16512011-10-14 Vincent Celier <celier@adacore.com>
1652
1653 * projects.texi: Minor fix in project example.
1654
f2d10a02
AC
16552011-10-14 Ed Schonberg <schonberg@adacore.com>
1656
1657 * sem_util.adb: Return objects are aliased if their type is
1658 immutably limited as per AI05-0053.
1659
16602011-10-14 Gary Dismukes <dismukes@adacore.com>
1661
1662 * exp_ch4.adb (Expand_N_Op_And): Remove Short_Circuit_And_Or
1663 expansion code (moved to sem_res) (Expand_N_Op_Or): Remove
1664 Short_Circuit_And_Or expansion code (moved to sem_res).
1665 * sem_res.adb (Resolve_Logical_Op): Add code to rewrite Boolean
1666 "and" and "or" operators as short-circuit "and then" and "or
1667 else", when pragma Short_Circuit_And_Or is active.
1668
2fcc44fa
AC
16692011-10-13 Robert Dewar <dewar@adacore.com>
1670
1671 * sem_ch9.adb, sem_util.adb, sem_util.ads, exp_ch6.adb, sem_ch4.adb,
1672 sem_ch6.adb, exp_ch3.adb: Minor reformatting.
1673
16742011-10-13 Arnaud Charlet <charlet@adacore.com>
1675
1676 * Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add a-ngcoar.o.
1677
16782011-10-13 Jerome Guitton <guitton@adacore.com>
1679
1680 * sysdep.c (__gnat_get_task_options): Re-enable VX_SPE_TASK on vThreads
1681
16822011-10-13 Eric Botcazou <ebotcazou@adacore.com>
1683
1684 * a-convec.ads (Cursor): Minor reformatting.
1685 * a-convec.adb (Next): Fix minor inconsistencies.
1686 (Previous): Likewise.
1687
9b62eb32
AC
16882011-10-13 Ed Schonberg <schonberg@adacore.com>
1689
1690 * sem_util.ads, sem_util.adb (Available_Full_View_Of_Component):
1691 New predicate to determine whether some operations on an array
1692 type are available when the full view of its component may differ
1693 from the view of the point of the array declaration.
1694 * sem_ch4.adb (Find_Equality_Types): Use
1695 Available_Full_View_Of_Component.
1696 * sem_type.adb (Valid_Boolean_Arg, Valid_Comparison_Arg): Ditto
1697
16982011-10-13 Ed Schonberg <schonberg@adacore.com>
1699
1700 * sem_ch9.adb: Analyze aspects while discriminants of protected
1701 type are visible.
1702
17032011-10-13 Geert Bosch <bosch@adacore.com>
1704
1705 * Makefile.rtl (GNATRTL_TASKING_OBJECTS): Add
1706 a-nlcoar.o, a-nllcar.o, a-nucoar.o and s-gearop.o, as these no
1707 longer depend on an external library.
1708 * gcc-interface/Makefile.in (GNATRTL_LINEARALGEBRA_OBJS): Remove
1709 a-nlcoar.o, a-nllcar.o, a-nucoar.o and s-gearop.o.
1710 Update dependencies.
1711 * gcc-interface/Make-lang.in: Update dependencies.
1712
1a36a0cd
AC
17132011-10-13 Cyrille Comar <comar@adacore.com>
1714
1715 * gnat_ugn.texi: Minor editing.
1716
17172011-10-13 Vincent Celier <celier@adacore.com>
1718
1719 * projects.texi: Add documentation on packages and attributes
1720 that are inherited from a project being extended into the
1721 extended project.
1722
17232011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
1724
1725 * exp_ch3.adb (Build_Master): Rewritten.
1726 (Expand_N_Full_Type_Declaration): Reformat the declarative
1727 region. Update the call to Build_Master_Renaming.
1728 (Expand_Previous_Access_Type): Rewritten.
1729 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
1730 Add local constant Result_Subt and update related usage.
1731 (Expand_N_Extended_Return_Statement): Add local constant
1732 Result_Subt and update related usage.
1733 * exp_ch9.adb (Build_Activation_Chain): Rewritten to use the
1734 new context detection mechanism.
1735 (Build_Class_Wide_Master):
1736 Use Insert_Action to add the renaming into the tree.
1737 (Build_Master_Entity): Rewritten to use the new context detection
1738 mechanism.
1739 (Build_Master_Renaming): Add formal parameter Ins_Nod
1740 and related usage. Use Insert_Action to add the renaming into the
1741 tree.
1742 (Find_Enclosing_Context): New subsidiary routine. Rather
1743 than relying on enclosing scopes, this routine looks at the
1744 tree structure to figure out the proper context for a _master
1745 or a _chain. This approach eliminates the issues with transient
1746 scopes which have not been converted into blocks.
1747 * exp_ch9.ads (Build_Master_Entity): Change parameter profile
1748 to better reflect the new usage. Update the related comment.
1749 (Build_Master_Renaming): Add formal parameter Ins_Nod. Update
1750 the comment on usage.
1751 * sem_ch3.adb (Access_Definition): Update the calls to
1752 Build_Master_Entity and Build_Master_Renaming.
1753 * sem_ch6.adb (Create_Extra_Formals): Add local variable
1754 Full_Subt. Code reformatting.
1755 * sem_util.adb (Is_Iterator): Alphabetized.
1756 (Is_LHS): Alphabetized.
1757 (Is_Limited_Class_Wide_Type): New routine.
1758 * sem_util.ads (Is_Limited_Class_Wide_Type): New routine.
1759
a5917ffb
GB
17602011-10-13 Geert Bosch <bosch@adacore.com>
1761
1762 * a-ngrear.adb (Solve): Make generic and move to
1763 System.Generic_Array_Operations.
1764 * s-gearop.ads (Matrix_Vector_Solution, Matrix_Matrix_Solution):
1765 New generic solvers to compute a vector resp. matrix Y such
1766 that A * Y = X, approximately.
1767 * s-gearop.adb (Matrix_Vector_Solution, Matrix_Matrix_Solution):
1768 Implement using Forward_Eliminate and Back_Substitute
1769 * a-ngcoar.adb: Reimplement in pure Ada to remove dependencies
1770 on BLAS and LAPACK.
1771 * a-ngcoar.ads ("abs"): Fix return type to be real.
1772
574ec945
EB
17732011-10-13 Eric Botcazou <ebotcazou@adacore.com>
1774
1775 PR ada/50589
1776 * s-linux-alpha.ads: Do not "with" Interfaces.C.
1777 * s-linux-sparc.ads: Likewise.
1778
8668ea36
GB
17792011-10-13 Geert Bosch <bosch@adacore.com>
1780
1781 * s-gearop.ads (Forward_Eliminate): Add "abs" formal function
1782 returning a Real.
1783 * s-gearop.adb (Forward_Eliminate): Remove local "abs" function
1784 and use formal.
1785 * a-ngrear.adb (Forward_Eliminate): Adjust instantiation for
1786 new profile.
1787
edcf5983
GB
17882011-10-13 Geert Bosch <bosch@adacore.com>
1789
1790 * a-ngrear.adb, s-gearop.adb, s-gearop.ads (Sqrt): Make generic and
1791 move to System.Generic_Array_Operations.
1792
a4935dea
GB
17932011-10-13 Geert Bosch <bosch@adacore.com>
1794
1795 * a-ngrear.adb ("abs"): Adjust for modified L2_Norm generic
1796 * s-gearop.ads (L2_Norm): Change profile to be suitable for
1797 Complex_Vector
1798 * s-gearop.adb (L2_Norm): Reimplement using direct definition,
1799 not inner product
1800
3e7302c3
AC
18012011-10-13 Robert Dewar <dewar@adacore.com>
1802
1803 * exp_ch5.adb, sem_ch3.adb, impunit.adb, impunit.ads, sem_type.adb,
1804 prj-proc.adb, exp_ch9.adb, s-regpat.adb, sem_ch10.adb, sem_prag.adb,
1805 sem_ch12.adb, freeze.adb, sem_attr.adb, sem_attr.ads, gnatlink.adb,
1806 par-ch6.adb, exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, sem_ch8.adb,
1807 par-util.adb, sem_ch13.adb, lib-xref.adb, g-trasym.adb, g-trasym.ads,
1808 exp_aggr.adb, s-taprop-posix.adb: Minor reformatting.
1809
18102011-10-13 Geert Bosch <bosch@adacore.com>
1811
1812 * s-gearop.adb: Minor comment additions.
1813
8417f4b2
AC
18142011-10-13 Fedor Rybin <frybin@adacore.com>
1815
1816 * gnat_ugn.texi: Add gnattest section.
1817
18182011-10-13 Ed Schonberg <schonberg@adacore.com>
1819
1820 * freeze.adb: Do not create body of renaming if declaration has
1821 errors.
1822
18232011-10-13 Olivier Hainque <hainque@adacore.com>
1824
1825 * init.c (__gnat_error_handler - vxworks case): Restrict sigtramp calls
1826 further, to the ppc+kernel case only.
1827
18282011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
1829
1830 * exp_ch4.adb (Expand_N_Allocator): Comment reformatting.
1831 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call):
1832 Do not create a pool formal on .NET/JVM.
1833 (Expand_N_Extended_Return_Statement): Alphabetize local
1834 variables. Do not create a renaming of the build-in-place pool
1835 parameter on .NET/JVM. (Make_Build_In_Place_Call_In_Allocator):
1836 Add the user-defined pool only on non-VM targets.
1837 (Make_Build_In_Place_Call_In_Object_Declaration): Alphabetize
1838 local variables. Do not add a pool actual on .NET/JVM.
1839 * sem_ch6.adb: Add with and use clause for Targparm.
1840 (Create_Extra_Formals): Add build-in-place pool formal only on
1841 non-VM targets.
1842 * rtsfind.ads: Alphabetize entries.
1843
4674dd21
AC
18442011-10-13 Sergey Rybin <rybin@adacore.com>
1845
1846 * gnat_ugn.texi: Minor correction.
1847
18482011-10-13 Ed Schonberg <schonberg@adacore.com>
1849
1850 * sem_ch8.adb: Minor error message improvement.
1851
18522011-10-13 Robert Dewar <dewar@adacore.com>
1853
1854 * a-cbprqu.adb, a-ciorma.adb, exp_ch3.adb: Minor reformatting.
1855
95aeda79
GD
18562011-10-13 Gary Dismukes <dismukes@adacore.com>
1857
1858 * exp_ch5.adb (Expand_N_Loop_Statement): For the transformation
1859 of a for loop for an enumeration type with an enumeration rep
1860 clause, which involves moving the original loop parameter into
1861 a nested block, the loop parameter's entity must be removed from
1862 the entity list of the loop scope.
1863
200b7162
BD
18642011-10-13 Bob Duff <duff@adacore.com>
1865
1866 * exp_ch6.ads (BIP_Storage_Pool): New "extra implicit parameter"
1867 that gets passed in the same cases where BIP_Alloc_Form is passed
1868 (caller-unknown-size results). BIP_Storage_Pool is used when
1869 BIP_Alloc_Form = User_Storage_Pool. In that case, a pointer
1870 to the user-defined storage pool is passed at the call site,
1871 and this pool is used in callee to allocate the result.
1872 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call): New
1873 version of Add_Alloc_Form_Actual_To_Build_In_Place_Call. Passes
1874 the additional BIP_Storage_Pool actual.
1875 (Expand_N_Extended_Return_Statement): Allocate the function
1876 result using the user-defined storage pool, if BIP_Alloc_Form =
1877 User_Storage_Pool.
1878 * sem_ch6.adb: Add the "extra formal" for BIP_Storage_Pool.
1879 * exp_ch4.adb: Don't overwrite storage pool set by
1880 Expand_N_Extended_Return_Statement.
1881 * s-stopoo.ads, rtsfind.ads (Root_Storage_Pool_Ptr): New type,
1882 for use in build-in-place function calls within allocators
1883 where the access type has a user-defined storage pool.
1884
9f8d1e5c
AC
18852011-10-13 Sergey Rybin <rybin@adacore.com>
1886
1887 * gnat_ugn.texi, vms_data.ads: Add an option to control enumeration
1888 literal casing.
1889
18902011-10-13 Nicolas Roche <roche@adacore.com>
1891
be7552fc
EB
1892 * gnatlink.adb: Ensure that -mrtp is passed when runtime name ends
1893 with 'rtp'.
9f8d1e5c
AC
1894
18952011-10-13 Ed Schonberg <schonberg@adacore.com>
1896
be7552fc
EB
1897 * sem_prag.adb (Analyze_Pragma, case Unchecked_Union): Take into
1898 account that an unchecked union type can be limited.
9f8d1e5c
AC
1899
19002011-10-13 Olivier Hainque <hainque@adacore.com>
1901
1902 * init.c (__gnat_error_handler) <VxWorks version>: Add comments on
1903 the use of the signal trampoline for PPC in the sjlj case as well.
1904 Add legitimate casts, preventing compile time warnings on the
1905 (sighandler *) profile.
1906
19072011-10-13 Yannick Moy <moy@adacore.com>
1908
be7552fc
EB
1909 * sem_aggr.adb (Resolve_Aggr_Expr): Always perform semantic analysis
1910 in Alfa mode.
9f8d1e5c
AC
1911
19122011-10-13 Ed Schonberg <schonberg@adacore.com>
1913
1914 * sem_ch3.adb (OK_For_Limited_Init_In_05): Conditional and case
1915 expressions are legal limited return values if each one of their
1916 dependent expressions are legal.
1917
19182011-10-13 Ed Schonberg <schonberg@adacore.com>
1919
1920 * sem_ch6.adb (Analyze_Procedure_Call_Statement): In Ada 2012 mode,
1921 if the prefix of the call is a qualified expression, rewrite as
1922 a code statement.
1923 * sem_ch13.adb (Analyze_Code_Statement): In Ada 2012 mode, the
1924 code statement is legal if it is a rewriting of a procedure call.
1925
19262011-10-13 Ed Schonberg <schonberg@adacore.com>
1927
1928 * exp_aggr.adb (Flatten): If a component association has a box,
1929 assume that aggregate is not static.
1930 (Safe_Aggregate): If a component association in a non-limited
1931 aggregate has a box, assume that it cannot be expanded in place.
1932
19332011-10-13 Vincent Celier <celier@adacore.com>
1934
1935 * prj-conf.adb (Get_Or_Create_Configuration_File): Call
1936 Process_Project_Tree_Phase_1 with Packages_To_Check.
1937 (Process_Project_And_Apply_Config): Ditto
1938 * prj-part.ads, prj-part.adb, prj-pars.ads, prj-pars.adb (Parse):
1939 Remove default for argument Packages_To_Check.
1940 * prj-proc.adb (Recursive_Process): New argument
1941 Packages_To_Check.
1942 (Process): Ditto.
1943 (Process_Project_Tree_Phase_1): Ditto.
1944 (Recursive_Project.Process_Aggregated_Projects): Call
1945 Prj.Part.Parse and Process_Project_Tree_Phase_1 with
1946 Packages_To_Check.
1947 * prj-proc.ads (Process): New argument Packages_To_Check
1948 (Process_Project_Tree_Phase_1): Ditto
1949
46f8e1ac
AC
19502011-10-13 Arnaud Charlet <charlet@adacore.com>
1951
1952 * gcc-interface/Makefile.in: Fix typo.
1953
8097203f
AC
19542011-10-13 Ed Schonberg <schonberg@adacore.com>
1955
1956 * sem_ch12.adb (Analyze_Formal_{Floating_Type,
1957 Signed_Integer_Type, Decimal_Fixed_Point_Type, Discrete_Type}):
1958 Use sloc of defining identifier of farmal type declaration,
1959 as sloc of generated internal entity, to prevent misplaced
1960 references in ali.
1961
19622011-10-13 Ed Schonberg <schonberg@adacore.com>
1963
1964 * sem_intr.adb (Check_Intrinsic_Operator): Check that type
1965 is fully defined before checking that it is a numeric type.
1966
19672011-10-13 Ed Schonberg <schonberg@adacore.com>
1968
1969 * sem_aggr.adb (Resolve_Record_Aggregate): If a component
1970 association for component X has a box, then X is covered in the
1971 aggregate even if there is not default value for X in the type
1972 declaration, and X has to be default-initialized.
1973
19742011-10-13 Ed Schonberg <schonberg@adacore.com>
1975
be7552fc
EB
1976 * sem_attr.adb (Check_Enum_Image, Analyze_Attribute case 'Value): Mark
1977 literals as referenced only if reference is in current source unit.
8097203f
AC
1978
19792011-10-13 Matthew Heaney <heaney@adacore.com>
1980
1981 * a-csquin.ads (Enque, Dequeue): Mark interface operations as entries.
1982
19832011-10-13 Olivier Hainque <hainque@adacore.com>
1984
1985 * sigtramp.h: New file. Prototype and spec of the signal
1986 trampoline to be called by an established handler to provide
1987 dwarf call frame info before the real signal processing code.
1988 * sigtramp-ppcvxw.c: New file. Implementation of the signal
1989 trampoline for ppc-vxworks.
1990 * init.c (vxworks section): Use it for ppc.
1991
e192a2cd
AC
19922011-10-13 Thomas Quinot <quinot@adacore.com>
1993
1994 * par-ch2.adb, par.adb, par-util.adb, par-ch3.adb
1995 (Check_Future_Identifier): New subprogram,
1996 factors duplicated code from Par.Ch2.P_Identifier and
1997 Par.Ch3.P_Defining_Identifier.
1998
19992011-10-13 Thomas Quinot <quinot@adacore.com>
2000
2001 * s-taprop-posix.adb (Initialize): Always raise Storage_Error
2002 if we fail to initialize CV attributes or CV.
2003
20042011-10-13 Thomas Quinot <quinot@adacore.com>
2005
2006 * s-tasren.adb (Timed_Selective_Wait, case
2007 Accept_Alternative_Selected): Use Defer_Abort_Nestable, since
2008 we know abortion is already deferred.
2009
20102011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
2011
2012 * exp_ch3.adb (Build_Class_Wide_Master): Moved to exp_ch9.
2013 (Build_Master_Renaming (function)): Removed.
2014 (Build_Master_Renaming (procedure)): Moved to exp_ch9.
2015 (Expand_Full_Type_Declaration): Alphabetize
2016 variables. Reformatting of code and comments. Rewrite the
2017 section on processing of anonymous access-to-task types in
2018 record components.
2019 * exp_ch3.ads (Build_Class_Wide_Master): Moved to exp_ch9.
2020 (Build_Master_Renaming): Moved to exp_ch9.
2021 * exp_ch9.adb (Build_Class_Wide_Master): Moved from exp_ch3.
2022 (Build_Master_Entity): Add formal parameter
2023 Use_Current. Reformatting of code and comments.
2024 (Build_Master_Renaming): Moved from exp_ch3.
2025 * exp_ch9.ads (Build_Class_Wide_Master): Moved from
2026 exp_ch3. Update comment on usage.
2027 (Build_Master_Entity):
2028 Add formal parameter Use_Current. Update comment on usage.
2029 (Build_Master_Renaming): Moved from exp_ch3.
2030 * sem_ch3.adb (Access_Definition): Remove redundant code to
2031 create a _master and a renaming.
2032
20332011-10-13 Ed Schonberg <schonberg@adacore.com>
2034
2035 * lib-xref.adb: Do no emit reference to overridden operation,
2036 if it is internally generated.
2037
20382011-10-13 Vincent Celier <celier@adacore.com>
2039
2040 * bindgen.adb: Remove any processing related to g-trasym
2041 * Makefile.rtl: Add g-trasym.o to GNATRTL_NONTASKING_OBJS
2042 * mlib-prj.adb: Remove any processing related to g-trasym.
2043
0cfaf83f
EB
20442011-10-12 Eric Botcazou <ebotcazou@adacore.com>
2045
2046 * sem_util.adb (Denotes_Same_Prefix): Fix fatal warning.
2047 * gcc-interface/Make-lang.in (WARN_ADAFLAGS): New.
2048 (ALL_ADAFLAGS): Include WARN_ADAFLAGS.
2049 (ADA_FLAGS_TO_PASS): Likewise.
2050 (COMMON_FLAGS_TO_PASS): New.
2051 (ADA_TOOLS_FLAGS_TO_PASS): Use COMMON_FLAGS_TO_PASS. In the regular
2052 native case, also use FLAGS_TO_PASS and ADA_FLAGS_TO_PASS.
2053 (gnatlib): Use COMMON_FLAGS_TO_PASS.
2054 (ada.install-common): Likewise.
2055 (install-gnatlib): Likewise.
2056 (install-gnatlib-obj): Likewise.
2057 (gnattools): Use ADA_TOOLS_FLAGS_TO_PASS for gnattools1 as well.
2058 (gnat-cross): Delete.
2059 (gnatboot): Likewise.
2060 (gnatboot2): Likewise.
2061 (gnatboot3): Likewise.
2062 (gnatstage1): Likewise.
2063 (gnatstage2): Likewise.
2064 * gcc-interface/Makefile.in (SOME_ADAFLAGS): Likewise.
2065 (MOST_ADAFLAGS): Likewise.
2066 (LOOSE_CFLAGS): Likewise.
2067 (gnat-cross): Likewise.
2068 (GNATLIBFLAGS): Add -W -Wall.
2069 (GNATLIBCFLAGS_FOR_C): Likewise.
2070 * gcc-interface/lang.opt: Remove C-specific warnings. Add doc lines.
2071 * gcc-interface/misc.c (gnat_handle_option): Remove obsolete cases.
2072
722356ce
EB
20732011-10-12 Eric Botcazou <ebotcazou@adacore.com>
2074
2075 * gcc-interface/trans.c (Attribute_to_gnu): Use remove_conversions.
2076 (push_range_check_info): Likewise.
2077 (gnat_to_gnu) <N_Code_Statement>: Likewise.
2078 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Likewise.
2079 (gnat_invariant_expr): Likewise.
2080 * gcc-interface/utils.c (compute_related_constant): Likewise.
2081 (max_size): Fix handling of SAVE_EXPR.
2082 (remove_conversions): Fix formatting.
2083
15bf7d19
EB
20842011-10-12 Eric Botcazou <ebotcazou@adacore.com>
2085
2086 * gcc-interface/ada-tree.h (DECL_LOOP_PARM_P): New flag.
2087 (DECL_INDUCTION_VAR): New macro.
2088 (SET_DECL_INDUCTION_VAR): Likewise.
2089 * gcc-interface/gigi.h (convert_to_index_type): Declare.
2090 (gnat_invariant_expr): Likewise.
2091 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: If this is a loop
2092 parameter, set DECL_LOOP_PARM_P on it.
2093 * gcc-interface/misc.c (gnat_print_decl) <VAR_DECL>: If DECL_LOOP_PARM_P
2094 is set, print DECL_INDUCTION_VAR instead of DECL_RENAMED_OBJECT.
2095 * gcc-interface/trans.c (gnu_loop_label_stack): Delete.
2096 (struct range_check_info_d): New type.
2097 (struct loop_info_d): Likewise.
2098 (gnu_loop_stack): New stack.
2099 (Identifier_to_gnu): Set TREE_READONLY flag on the first dereference
2100 built for a by-double-ref read-only parameter. If DECL_LOOP_PARM_P
2101 is set, do not test DECL_RENAMED_OBJECT.
2102 (push_range_check_info): New function.
2103 (Loop_Statement_to_gnu): Push a new struct loop_info_d instead of just
2104 the label. Reference the label and the iteration variable from it.
2105 Build the special induction variable in the unsigned version of the
2106 size type, if it is larger than the base type. And attach it to the
2107 iteration variable if the latter isn't by-ref. In the iteration scheme
2108 case, initialize the invariant conditions in front of the loop if
2109 deemed profitable. Use gnu_loop_stack.
2110 (gnat_to_gnu) <N_Exit_Statement>: Use gnu_loop_stack.
2111 <N_Raise_Constraint_Error>: Always process the reason. In the range
2112 check and related cases, and if loop unswitching is enabled, compute
2113 invariant conditions and push this information onto the stack.
2114 Do not translate again the condition if it has been already translated.
2115 * gcc-interface/utils.c (record_global_renaming_pointer): Assert that
2116 DECL_LOOP_PARM_P isn't set.
2117 (convert_to_index_type): New function.
2118 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Use it in order
2119 to convert the index from the base index type to sizetype.
2120 (gnat_invariant_expr): New function.
2121
e79983f4
MM
21222011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2123
2124 * gcc-interface/utils.c (def_builtin_1): Delete old interface with
2125 two parallel arrays to hold standard builtin declarations, and
2126 replace it with a function based interface that can support
15bf7d19 2127 creating builtins on the fly in the future.
e79983f4
MM
2128 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Ditto.
2129 (gnat_to_gnu): Ditto.
2130
228ee426
EB
21312011-10-07 Eric Botcazou <ebotcazou@adacore.com>
2132
2133 PR lto/50492
2134 * gcc-interface/gigi.h (gnat_pushdecl): Adjust comment.
2135 * gcc-interface/utils.c (global_context): New variable.
2136 (gnat_pushdecl): Initialize it and set it as the DECL_CONTEXT of DECLs
2137 that are either public external or at top level. Use "No" macro.
2138 (end_subprog_body): Call decl_function_context.
2139 (rest_of_subprog_body_compilation): Likewise.
2140
71196d4e
EB
21412011-10-07 Eric Botcazou <ebotcazou@adacore.com>
2142
2143 * gcc-interface/gigi.h (gnat_useless_type_conversion): Declare.
2144 (rest_of_subprog_body_compilation): Likewise.
2145 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: For renaming,
2146 test for useless conversions by means of gnat_useless_type_conversion.
2147 * gcc-interface/trans.c: Include bitmap.h and cgraph.h.
2148 (language_function): Add named_ret_val and other_ret_val.
2149 (f_named_ret_val): New macro.
2150 (f_other_ret_val): Likewise.
2151 (gigi): Call rest_of_subprog_body_compilation.
2152 (struct nrv_data): New structure.
2153 (is_nrv_p): New predicate.
2154 (prune_nrv_r): New helper function.
2155 (prune_nrv_in_block): New function.
2156 (finalize_nrv_r): New helper function.
2157 (finalize_nrv): New function.
2158 (return_value_ok_for_nrv_p): New predicate.
2159 (build_return_expr): If optimization is enabled, record candidates for
2160 the Named Return Value optimization.
2161 (build_function_stub): Call rest_of_subprog_body_compilation.
2162 (Subprogram_Body_to_gnu): If optimization is enabled and there are
2163 candidates, finalize the Named Return Value optimization.
2164 Call rest_of_subprog_body_compilation.
2165 (call_to_gnu): At the end, if a return value is needed, simplify the
2166 result before wrapping it up in a COMPOUND_EXPR.
2167 * gcc-interface/utils.c (end_subprog_body): Split into...
2168 (rest_of_subprog_body_compilation): ...this. New function.
2169 (gnat_useless_type_conversion): Likewise.
2170
885c4871
AC
21712011-10-06 Thomas Quinot <quinot@adacore.com>
2172
2173 * einfo.ads, exp_attr.adb, exp_ch3.adb, exp_ch4.adb, exp_ch7.adb,
2174 exp_ch9.adb, exp_ch9.ads, exp_strm.adb, exp_util.adb, freeze.adb,
2175 g-debpoo.ads, opt.ads, par-ch12.adb, par-ch2.adb, par-ch3.adb,
2176 par-ch5.adb, par-ch6.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
2177 sem_ch10.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
2178 sem_ch6.adb, sem_intr.adb, sem_res.ads, sem_type.adb, sem_util.adb,
2179 s-regpat.adb, s-tpopde-vms.ads: Minor reformatting.
2180 * s-osinte-freebsd.ads: Fix for tasking failures on FreeBSD.
2181
21822011-10-06 Ed Schonberg <schonberg@adacore.com>
2183
2184 * a-cihase.adb, a-ciorma.adb: Avoid accessibility checks in container
2185 references.
2186
21872011-10-06 Matthew Heaney <heaney@adacore.com>
2188
2189 * a-cuprqu.ads, a-cuprqu.adb, a-cbprqu.ads, a-cbprqu.adb
2190 (Dequeue_Only_High_Priority): Protected procedure now implemented.
2191
21922011-10-06 Vincent Celier <celier@adacore.com>
2193
2194 * g-trasym.adb: Replace old implementation with the default
2195 implementation that returns list of addresses as "0x...".
2196 * g-trasym.ads: Update the list of platforms with the full
2197 capability. Indicate that there is a default implementation
2198 for other platforms.
2199 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: Remove.
2200 * gcc-interface/Makefile.in: Remove g-trasym-unimplemented, as there
2201 is now a default implementation for all platforms without the full
2202 capability.
2203
ce72a9a3
AC
22042011-10-06 Robert Dewar <dewar@adacore.com>
2205
2206 * a-ciorse.adb, a-cihase.adb, a-cihase.ads, a-coorse.adb,
2207 a-cborse.adb, a-comutr.adb, a-ciorma.adb, a-cbmutr.adb,
2208 a-cbmutr.ads, a-cbhase.adb, a-cbhase.ads: Minor reformatting and code
2209 reorganization (use conditional expressions).
2210
22112011-10-06 Robert Dewar <dewar@adacore.com>
2212
2213 * sem_res.adb (Resolve_Arithmetic_Op): Fix bad warning for
2214 floating divide by zero.
2215
22162011-10-06 Ed Schonberg <schonberg@adacore.com>
2217
2218 * sem_ch6.adb: Limited interfaces that are not immutably limited
2219 are OK in return statements.
2220
a912d7d9
IS
22212011-09-30 Iain Sandoe <iains@gcc.gnu.org>
2222
2223 * gcc-interface/Makefile.in (Darwin): Partial reversion of previous
2224 change to powerpc section.
2225
39ffb1f9
IS
22262011-09-29 Iain Sandoe <iains@gcc.gnu.org>
2227
2228 * gcc-interface/Makefile.in (Darwin): Factor LIBGNAT_TARGET_PAIRS
2229 across the port.
2230
ffb35bbf
ES
22312011-09-27 Ed Schonberg <schonberg@adacore.com>
2232
2233 * a-cbhase.adb, a-cbhase.ads, a-cborse.adb, a-cborse.ads,
2234 a-cihase.adb, a-cihase.ads, a-ciorse.adb, a-ciorse.ads,
2235 a-coorse.adb, a-coorse.ads: Add iterator machinery to bounded sets and
2236 indefinite sets.
2237 * a-coorma.ads: Minor reformmating.
2238 * einfo.ads: Improve the comment describing the
2239 Directly_Designated_Type function.
2240 * a-ciorma.adb, a-ciorma.ads: Add iterator machinery to indefinite
2241 ordered maps.
2242 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
2243 dependencies.
2244
da124b6a
AC
22452011-09-27 Robert Dewar <dewar@adacore.com>
2246
2247 * a-comutr.ads: Minor reformatting.
2248
22492011-09-27 Ed Schonberg <schonberg@adacore.com>
2250
2251 * a-cimutr.adb, a-cimutr.ads, a-cbmutr.adb, a-cbmutr.ads: Add children
2252 iterators to multiway trees.
2253
22542011-09-27 Yannick Moy <moy@adacore.com>
2255
2256 * debug.adb (d.D): New option for strict Alfa mode.
2257 * opt.ads (Strict_Alfa_Mode): New flag to interpret compiler
2258 permissions as strictly as possible.
2259 * sem_ch3.adb (Signed_Integer_Type_Declaration): In non-strict
2260 Alfa mode, now, interpret ranges of base types like GNAT does; in
2261 strict mode, simply change the range of the implicit base Itype.
2262 * gnat1drv.adb: Update comments. Set Strict_Alfa_Mode.
2263
706a4067
AC
22642011-09-27 Robert Dewar <dewar@adacore.com>
2265
2266 * exp_ch9.adb: Minor comment fixes.
2267
22682011-09-27 Ed Schonberg <schonberg@adacore.com>
2269
2270 * a-comutr.adb, a-comutr.ads: Add children iterators on multiway
2271 trees.
2272
05c1e7d2
AC
22732011-09-27 Eric Botcazou <ebotcazou@adacore.com>
2274
2275 * checks.adb (Apply_Scalar_Range_Check): Use Designated_Type
2276 instead of Directly_Designated_Type in the indirect array case.
2277
22782011-09-27 Robert Dewar <dewar@adacore.com>
2279
2280 * exp_util.adb, exp_aggr.adb: Minor reformatting.
2281
65e78a74
AC
22822011-09-27 Ed Schonberg <schonberg@adacore.com>
2283
2284 * sinfo.ads, par-ch3.adb: Minor comment update: aspect specification
2285 on subtype declarations.
2286 * exp_aggr.adb: Minor comment update.
2287
22882011-09-27 Eric Botcazou <ebotcazou@adacore.com>
2289
2290 * exp_util.adb (Safe_Prefixed_Reference): Remove always-false
2291 test in the N_Explicit_Dereference case. Fold double logical
2292 negation in the special loop case and conditionalize it on
2293 Variable_Ref being true.
2294
22952011-09-27 Ed Schonberg <schonberg@adacore.com>
2296
2297 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is a
2298 single protected object and the selector is a discriminant or an
2299 entry family, this is a non-overloaded candidate interpretation,
2300 and possible primitive operations of the type must not be
2301 examined.
2302
23032011-09-27 Arnaud Charlet <charlet@adacore.com>
2304
2305 * s-taspri-posix-noaltstack.ads (Lock): Mark fields aliased.
2306
6f5add73
AC
23072011-09-27 Pascal Obry <obry@adacore.com>
2308
2309 * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
2310 s-osinte-irix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads:
2311 Add dummy definitions for pthread_rwlock_t
2312 and pthread_rwlockattr_t on all POSIX platforms.
2313 * s-taprop-irix.adb, s-taprop-posix.adb (Initialize_Lock): Fix lock
2314 reference.
2315 (Finalize_Lock): Likewise.
2316 (Write_Lock): Likewise.
2317 (Unlock): Likewise.
2318
23192011-09-27 Tristan Gingold <gingold@adacore.com>
2320
2321 * s-tassta.adb (Task_Wrapper): Increase Guard_Page_Size value for
2322 windows 64.
2323
64a63cd5
PO
23242011-09-27 Pascal Obry <obry@adacore.com>
2325
2326 * s-osinte-hpux.ads, s-taprop-vxworks.adb, s-taspri-vxworks.ads,
2327 s-taprop-tru64.adb, s-osinte-aix.ads, s-taspri-posix-noaltstack.ads,
2328 s-taspri-mingw.ads, s-taprop-vms.adb, s-tpoben.adb, s-tpoben.ads,
2329 s-taprop-mingw.adb, s-taprob.adb, s-taprob.ads,
2330 s-osinte-solaris-posix.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
2331 s-osinte-irix.ads, s-taprop-irix.adb, s-osinte-darwin.ads,
2332 s-taspri-dummy.ads, s-taspri-posix.ads, s-taprop.ads,
2333 s-taspri-vms.ads, s-osinte-freebsd.ads, s-taprop-hpux-dce.adb,
2334 s-taspri-hpux-dce.ads, s-taspri-tru64.ads, s-taprop-dummy.adb,
2335 s-taprop-posix.adb: Revert previous changes.
2336 (Lock): Now a record containing the two possible lock
2337 (mutex and read/write) defined in OS_Interface.
2338 * s-taprop-linux.adb (Finalize_Protection): Use r/w lock for
2339 'R' locking policy.
2340 (Initialize_Protection): Likewise.
2341 (Lock): Likewise.
2342 (Lock_Read_Only): Likewise.
2343 (Unlock): Likewise.
2344
f672a756
AC
23452011-09-27 Pascal Obry <obry@adacore.com>
2346
2347 * s-taspri-posix-noaltstack.ads (RW_Lock): This type is now defined as
2348 OS_Interface.pthread_rwlock_t.
2349
23502011-09-27 Robert Dewar <dewar@adacore.com>
2351
2352 * exp_ch9.adb, a-cimutr.adb, a-cimutr.ads, gnat1drv.adb, a-comutr.adb,
2353 a-comutr.ads, exp_dist.adb, a-cbmutr.adb, a-cbmutr.ads,
2354 sem_ch5.adb, sem_util.adb: Minor reformatting.
2355
7a44cb69
PO
23562011-09-27 Pascal Obry <obry@adacore.com>
2357
2358 * s-taprop.ads (Initialize_Lock)[RW_Lock]: New spec for r/w lock.
2359 (Finalize_Lock)[RW_Lock]: Likewise.
2360 (Write_Lock)[RW_Lock]: Likewise.
2361 (Unlock)[RW_Lock]: Likewise.
2362 (Read_Lock): Define L as RW_Lock (instead of Lock).
2363 * s-taprop-linux.adb (Initialize_Lock)[RW_Lock]: New
2364 routine for r/w lock.
2365 (Finalize_Lock)[RW_Lock]: Likewise.
2366 (Write_Lock)[RW_Lock]: Likewise.
2367 (Unlock)[RW_Lock]: Likewise.
2368 (Read_Lock): Define L as RW_Lock (instead of Lock).
2369
2370 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2371 s-taprop-mingw.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
2372 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
2373 (Initialize_Lock)[RW_Lock]: Same implementation as corresponding
2374 routine for standard lock.
2375 (Finalize_Lock)[RW_Lock]: Likewise.
2376 (Write_Lock)[RW_Lock]: Likewise.
2377 (Unlock)[RW_Lock]: Likewise.
2378 (Read_Lock): Define L as RW_Lock (instead of Lock).
2379 * s-taprob.ads, s-tpoben.ads (Protection): Add RWL (RW_Lock)
2380 in the record definition.
2381 * s-taprob.adb, s-taproben.adb (Finalize_Protection): Use r/w
2382 lock for 'R' locking policy.
2383 (Initialize_Protection): Likewise.
2384 (Lock): Likewise.
2385 (Lock_Read_Only): Likewise.
2386 (Unlock): Likewise.
2387 * s-taspri-posix.ads (RW_Lock): New type defined as
2388 OS_Interface.pthread_rwlock_t.
2389
2390 * s-taspri-vxworks.ads, s-taspri-posix-noaltstack.ads,
2391 s-taspri-mingw.ads, s-taspri-solaris.ads, s-taspri-dummy.ads,
2392 s-taspri-posix.ads, s-taspri-vms.ads, s-taspri-hpux-dce.ads,
2393 s-taspri-tru64.ads (RW_Lock): New type defined as alias to Lock.
2394
4c173b50
PO
23952011-09-27 Pascal Obry <obry@adacore.com>
2396
2397 * exp_ch9.adb, s-taspri-posix.ads: Minor reformatting.
2398
23992011-09-27 Pascal Obry <obry@adacore.com>
2400
2401 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
2402 s-osinte-hpux.ads, s-osinte-irix.ads,
2403 s-osinte-solaris-posix.ads (pthread_rwlock_t): New definition alias of
2404 pthread_mutex_t.
2405 (pthread_rwlockattr_t): New definition alias of pthread_mutexattr_t.
2406 * s-osinte-linux.ads (pthread_rwlock_t, pthread_rwlockattr_t,
2407 pthread_rwlockattr_init, pthread_rwlockattr_destroy,
2408 pthread_rwlockattr_setkind_np, pthread_rwlock_init,
2409 pthread_rwlock_destroy, pthread_rwlock_rdlock,
2410 pthread_rwlock_wrlock, pthread_rwlock_unlock): New.
2411
343250a6
PO
24122011-09-27 Pascal Obry <obry@adacore.com>
2413
2414 * rtsfind.ads: Add RE_Lock_Read_Only into rtsfind circuitry.
2415 (RE_Id): Add RE_Lock_Read_Only.
2416 (RE_Unit_Table): Likewise.
2417 * sem_prag.adb (Process_Convention): Change Pragma_Locking_Policy
2418 to lift restriction on first character. Handle now the
2419 Name_Concurrent_Readers_Locking where policy character is set to
2420 'R'.
2421 * snames.ads-tmpl (Name_Concurrent_Readers_Locking): New
2422 constant.
2423 * exp_ch9.adb (Build_Protected_Subprogram_Body): Generate a
2424 read only lock for function in protected object.
2425 * s-taprob.ads (Lock_Read_Only): Remove obsolete comment as
2426 this routine is now used.
2427
2d0dd51a
EB
24282011-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2429
2430 * s-atocou-x86.adb (Decrement): Use %;.
2431 (Increment): Likewise.
2432
bdbebf66
EB
24332011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2434
2435 * gcc-interface/utils2.c (build_allocator): Set TREE_THIS_NOTRAP on the
2436 dereference of the pointer to the storage area. Remove useless type
2437 conversions and factor out common code.
2438
1aa291f7
EB
24392011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2440
2441 * gcc-interface/utils.c (maybe_unconstrained_array): Declare TYPE local
2442 variable and use it throughout.
2443 <UNCONSTRAINED_ARRAY_TYPE>: Add 'break' at the end.
2444 <RECORD_TYPE>: Do not unconditionally convert to the unpadded type as a
2445 first step. Also convert to the unpadded type as a last step.
2446
7d76717d
EB
24472011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2448
2449 * gcc-interface/gigi.h (create_subprog_decl): Replace TREE_CHAIN with
2450 DECL_CHAIN in comment.
2451 * gcc-interface/trans.c (gigi): Likewise.
2452 (Attribute_to_gnu): Likewise.
2453 (build_function_stub): Likewise.
2454 (gnat_to_gnu): Likewise.
2455 * gcc-interface/utils.c (create_subprog_decl): Likewise.
2456 (convert_vms_descriptor64): Likewise.
2457 (convert_vms_descriptor32): Likewise.
2458
42acad07
EB
24592011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2460
2461 * gcc-interface/trans.c (assoc_to_constructor): Minor tweaks.
2462 * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting
2463 issues. Use COMPLETE_TYPE_P in assertion. Also set TREE_READONLY if
2464 the type of the record is TYPE_READONLY.
2465
a1d72281
EB
24662011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2467 Robert Dewar <dewar@adacore.com>
2468
2469 * sem_ch6.adb (Set_Formal_Mode): Set Can_Never_Be_Null on an IN or IN
2470 OUT formal parameter which is of an null-exclusion access subtype.
2471
a1c7d797
EB
24722011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2473
2474 * gcc-interface/ada-tree.h (DECL_CAN_NEVER_BE_NULL_P): New macro.
2475 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Set the flag.
2476 (gnat_to_gnu_param): Likewise.
2477 * gcc-interface/utils.c (convert) <UNCONSTRAINED_ARRAY_REF>: Invoke
2478 maybe_unconstrained_array instead of doing the work manually.
2479 (maybe_unconstrained_array): Propagate the TREE_THIS_NOTRAP flag.
2480 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: If operand
2481 is a DECL with the flag, set TREE_THIS_NOTRAP on the reference.
2482 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
2483 (gnat_stabilize_reference): Likewise.
2484
50179d58
EB
24852011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2486
2487 * gcc-interface/ada-tree.h (TYPE_NULL_BOUNDS): New macro.
2488 (SET_TYPE_NULL_BOUNDS): Likewise.
2489 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set again
2490 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
2491 * gcc-interface/trans.c (Identifier_to_gnu): Return initializers of fat
2492 pointer types.
2493 * gcc-interface/utils.c (create_var_decl_1): If the object is external,
2494 check that the initializer is a valid constant expression for use in
2495 initializing a static variable. Add missing guard.
2496 (update_pointer_to): Adjust TYPE_NULL_BOUNDS if set.
2497 (convert_to_fat_pointer): In the null fat pointer case, build a valid
2498 pointer for the bounds.
2499 * gcc-interface/utils2.c (compare_fat_pointers): New function.
2500 (build_binary_op) <EQ_EXPR>: Call it to compare fat pointers.
2501
ad1d36ba
EB
25022011-09-25 Eric Botcazou <ebotcazou@adacore.com>
2503
2504 * gcc-interface/ada-tree.h (TREE_THIS_NOTRAP): Redefine.
2505 * gcc-interface/trans.c (Identifier_to_gnu): Factor out common code in
2506 the by-ref case. Do not set TREE_READONLY on a renamed object. Set
2507 TREE_THIS_NOTRAP on UNCONSTRAINED_ARRAY_REF nodes.
2508 (Attribute_to_gnu) <Attr_Length>: Expand the use of the parameter cache
2509 to the indirect case.
2510 * gcc-interface/utils.c (convert) <UNCONSTRAINED_ARRAY_REF>: Preserve
2511 the TREE_THIS_NOTRAP flag.
2512
6162cec0
EB
25132011-09-25 Eric Botcazou <ebotcazou@adacore.com>
2514
2515 * gcc-interface/trans.c (Loop_Statement_to_gnu): In the case of an
2516 iteration scheme, always generate the do-while form if optimization
2517 is enabled. Use more straightforward test at the end.
2518
dee12fcd
EB
25192011-09-25 Eric Botcazou <ebotcazou@adacore.com>
2520
2521 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Subtype>: Use
2522 XNEW instead of xmalloc. Do not build useless pointer type.
2523 <E_Anonymous_Access_Subprogram_Type>: Use XNEW instead of xmalloc.
2524 * gcc-interface/trans.c (gnat_to_gnu) <N_Raise_Constraint_Error>: Tidy.
2525 * gcc-interface/utils2.c (build_unary_op): Remove local variable.
2526
dea976c4
EB
25272011-09-25 Eric Botcazou <ebotcazou@adacore.com>
2528
2529 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not promote
2530 the alignment if this doesn't prevent BLKmode access to the object.
2531
655ae828
IS
25322011-09-24 Iain Sandoe <iains@gcc.gnu.org>
2533
2534 * gcc-interface/Makefile.in (darwin): Do not issue the
2535 '-flat_namespace' linker flag during Ada build.
2536 * mlib-tgt-specific-darwin.adb: Remove '-flat_namespace' flag from the
2537 default shared library options.
2538
0e871c15
AO
25392011-09-19 Alexandre Oliva <aoliva@redhat.com>
2540
2541 * gcc-interface/decl.c (annotate_value): Look up expression for
2542 insertion in the cache at the end.
2543
1e6a52b4
AC
25442011-09-19 Arnaud Charlet <charlet@adacore.com>
2545
2546 * gcc-interface/Make-lang.in: Update dependencies.
2547
a3068ca6
AC
25482011-09-19 Steve Baird <baird@adacore.com>
2549
2550 * snames.ads-tmpl: Move declaration of Name_Annotate into range of
2551 configuration pragma names so that Is_Configuration_Pragma_Name
2552 will return True for Name_Annotate. Make corresponding change in
2553 Pragma_Id enumeration type. This is needed to allow an Annotate
2554 pragma to occur in a configuration pragma file (typically,
2555 a gnat.adc file).
2556 * gnat_ugn.texi: Add Annotate to the list of configuration pragmas.
2557 * gnat_rm.texi: Note that pragma Annotate may be used as a
2558 configuration pragma.
2559
25602011-09-19 Ed Schonberg <schonberg@adacore.com>
2561
2562 * a-cbmutr.adb, a-cbmutr.ads, a-cimutr.adb, a-cimutr.ads,
2563 a-comutr.adb, a-comutr.ads: Add iterator machinery for multiway trees.
2564
25652011-09-19 Yannick Moy <moy@adacore.com>
2566
2567 * exp_alfa.adb, exp_alfa.ads (Expand_Alfa_N_In): New function
2568 for expansion of set membership.
2569 (Expand_Alfa): Call expansion for N_In and N_Not_In nodes.
2570 * exp_ch4.adb, exp_ch4.ads (Expand_Set_Membership): Make procedure
2571 visible for use in Alfa expansion.
2572 * sem_ch5.adb (Analyze_Iterator_Specification): Introduce loop
2573 variable in Alfa mode.
2574
25752011-09-19 Thomas Quinot <quinot@adacore.com>
2576
2577 * s-osinte-darwin.ads: Change SIGADAABRT on Darwin to SIGABRT.
2578
25792011-09-19 Thomas Quinot <quinot@adacore.com>
2580
2581 * exp_ch9.adb: Minor reformatting.
2582
25832011-09-19 Hristian Kirtchev <kirtchev@adacore.com>
2584
2585 * freeze.adb (Build_Renamed_Body): Generic subprograms
2586 instantiations cannot be poperly inlined by the compiler, do
2587 not set the Body_To_Inline attribute in such cases.
2588 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Inherit all
2589 inlining-related flags from the generic subprogram declaration.
2590
25912011-09-19 Thomas Quinot <quinot@adacore.com>
2592
2593 * exp_dist.adb, rtsfind.ads, sem_util.adb, sem_util.ads
2594 (Build_Stub_Type): Remove, instead copy components from
2595 System.Partition_Interface.RACW_Stub_Type.
2596 (RPC_Receiver_Decl): Remainder of code from old Build_Stub_Type routine.
2597 (Copy_Component_List): New subprogram.
2598
25992011-09-19 Yannick Moy <moy@adacore.com>
2600
2601 * lib-xref.adb (Generate_Reference): Ignore references to
2602 constants in Standard.
2603
e7fceebc
AC
26042011-09-19 Robert Dewar <dewar@adacore.com>
2605
2606 * err_vars.ads, errout.ads: Minor reformatting.
2607
26082011-09-19 Robert Dewar <dewar@adacore.com>
2609
2610 * aspects.ads (Impl_Defined_Aspects): New array
2611 * lib-writ.adb (No_Dependences): New name for No_Dependence
2612 * restrict.adb (No_Dependences): New name for No_Dependence
2613 (Check_Restriction_No_Specification_Of_Aspect): New
2614 procedure.
2615 (Set_Restriction_No_Specification_Of_Aspect): New procedure
2616 (Restricted_Profile_Result): New variable
2617 (No_Specification_Of_Aspects): New variable
2618 (No_Specification_Of_Aspect_Warning): New variable
2619 * restrict.ads (No_Dependences): New name for No_Dependence
2620 (Check_Restriction_No_Specification_Of_Aspect): New procedure
2621 (Set_Restriction_No_Specification_Of_Aspect): New procedure
2622 * s-rident.ads: Add restriction
2623 No_Implementation_Aspect_Specifications, this is also added to
2624 the No_Implementation_Extensions profile.
2625 * sem_ch13.adb (Analyze_Aspect_Specifications): Check
2626 No_Implementation_Defined_Aspects
2627 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
2628 * sem_prag.adb (Analyze_Aspect_Specifications): Check
2629 No_Implementation_Aspects
2630 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
2631 * snames.ads-tmpl (Name_No_Specification_Of_Aspect): New name
2632
26332011-09-19 Yannick Moy <moy@adacore.com>
2634
2635 * lib-xref.adb (Generate_Reference): Take into account multiple
2636 renamings for Alfa refs.
2637
26382011-09-19 Thomas Quinot <quinot@adacore.com>
2639
2640 * g-socthi-mingw.adb: Minor reformatting.
2641
26422011-09-19 Yannick Moy <moy@adacore.com>
2643
2644 * gnat1drv.adb (Adjust_Global_Switches): Set tagged type
2645 expansion to False in mode Alfa
2646
26472011-09-19 Pascal Obry <obry@adacore.com>
2648
2649 * mingw32.h: Remove obsolete code needed for old versions
2650 of MingW.
2651
e5a163fc
RD
26522011-09-19 Robert Dewar <dewar@adacore.com>
2653
2654 * errout.ads: Minor reformatting.
2655
6d7e5c54
AC
26562011-09-19 Ed Schonberg <schonberg@adacore.com>
2657
2658 * sem_ch6.adb (Analyze_Expression_Function): When the expression
2659 function is transformed into a declaration and a body, insert
2660 body at the end of the declarative part, to prevent premature
2661 freeze actions, and preserve original specification in the
2662 subprogram declaration.
2663
26642011-09-19 Vincent Celier <celier@adacore.com>
2665
2666 * projects.texi: Minor editing.
2667
99ba07a3
AC
26682011-09-19 Robert Dewar <dewar@adacore.com>
2669
2670 * sem_aggr.adb, lib-writ.ads, s-restri.ads, sem_ch6.adb,
2671 exp_aggr.adb: Minor reformatting.
2672
26732011-09-19 Yannick Moy <moy@adacore.com>
2674
2675 * lib-xref.adb (Generate_Reference): Change entity referenced
2676 to underlying object if any, or else reference to the HEAP.
2677
41781043
AC
26782011-09-15 Arnaud Charlet <charlet@adacore.com>
2679
2680 * gcc-interface/Make-lang.in: Update dependencies.
2681
804ff4c3
AC
26822011-09-15 Robert Dewar <dewar@adacore.com>
2683
2684 * tree_io.ads: Minor reformatting.
2685 * a-intnam.ads: Fix bad header.
2686
26872011-09-15 Thomas Quinot <quinot@adacore.com>
2688
2689 * a-exexpr-gcc.adb: Minor reformatting.
2690
26912011-09-15 Yannick Moy <moy@adacore.com>
2692
2693 * sem_ch6.adb: Propagate information that an expression function comes
2694 from source (otherwise references to this entity are not stored).
2695
0b5b2bbc
AC
26962011-09-15 Robert Dewar <dewar@adacore.com>
2697
2698 * a-cdlili.adb, a-coinve.adb, a-stzunb-shared.ads, a-suezst.adb,
2699 a-suenco.adb, a-stwiun-shared.ads, a-cobove.adb, a-convec.adb,
2700 a-btgbso.adb, a-cbdlli.adb, a-suewst.adb: Minor reformatting.
2701
27022011-09-15 Ed Schonberg <schonberg@adacore.com>
2703
2704 * sem_ch6.adb (Analyze_Expression_Function): Code cleanup:
2705 if the expression function is not a completion, create a
2706 new specification for the generated declaration, and keep the
2707 original specification in the generated body. Shorter code also
2708 ensures that proper warnings are generated for unused formals
2709 in all cases.
2710
27112011-09-15 Sergey Rybin <rybin@adacore.com>
2712
2713 * tree_io.ads: Update ASIS_Version_Number because of the changes
2714 in the tree structures for expression functions.
2715
27162011-09-15 Arnaud Charlet <charlet@adacore.com>
2717
2718 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
2719 s-osinte-hpux.ads, s-osinte-lynxos.ads, s-osinte-solaris-posix.ads,
2720 s-taprop-posix.adb (CLOCK_MONOTONIC): New constant.
2721 (CLOCK_REALTIME): Fix wrong value on some OSes.
2722 * s-taprop-posix.adb (Monotonic_Clock): Use CLOCK_MONOTONIC.
2723
7e169899
EB
27242011-09-11 Eric Botcazou <ebotcazou@adacore.com>
2725
2726 * gcc-interface/utils.c (maybe_unconstrained_array): In the reference
2727 to unconstrained array case, deal with each branch of a COND_EXPR.
2728 * gcc-interface/utils2.c (build_allocator): Deal with each branch of
2729 a COND_EXPR in the initializer, if present.
2730
819a653e
EB
27312011-09-11 Eric Botcazou <ebotcazou@adacore.com>
2732
2733 * gcc-interface/decl.c (maybe_pad_type): Do not try to change the form
2734 of an addressable type.
2735 * gcc-interface/trans.c (gnat_gimplify_expr) <VIEW_CONVERT_EXPR>: New.
2736 Deal with those cases for which creating a temporary is mandatory.
2737
c946adde
EB
27382011-09-11 Eric Botcazou <ebotcazou@adacore.com>
2739
2740 * gcc-interface/trans.c (call_to_gnu): Use local variable. Make sure
2741 this is a real formal parameter before testing whether it is by ref.
2742
dddf8120
EB
27432011-09-11 Eric Botcazou <ebotcazou@adacore.com>
2744
2745 * gcc-interface/gigi.h (build_call_0_expr): Delete.
2746 (build_call_1_expr): Likewise.
2747 (build_call_2_expr): Likewise.
2748 (build_call_n_expr): New prototype.
2749 * gcc-interface/decl.c (gnat_to_gnu_entity): Use build_call_n_expr.
2750 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Ditto.
2751 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2752 (Exception_Handler_to_gnu_zcx): Likewise.
2753 (gnat_to_gnu): Likewise.
2754 (build_binary_op_trapv): Likewise.
2755 * gcc-interface/utils2.c (build_call_0_expr): Delete.
2756 (build_call_1_expr): Likewise.
2757 (build_call_2_expr): Likewise.
2758 (build_call_n_expr): New function.
2759 (build_call_raise): Use build_call_n_expr.
2760 (build_call_raise_range): Likewise.
2761 (build_call_raise_column): Likewise.
2762 (build_call_alloc_dealloc_proc): Likewise.
2763 (maybe_wrap_malloc): Likewise.
2764 (maybe_wrap_free): Likewise.
2765
d8e38554
EB
27662011-09-11 Eric Botcazou <ebotcazou@adacore.com>
2767
2768 * gcc-interface/trans.c (build_return_expr): Use void_type_node for
2769 MODIFY_EXPR.
2770 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Assert that
2771 the result type is null if ENABLE_CHECKING. Set operation_type at the
2772 end unconditionally if not set in the previous cases.
2773 Use build2 and void_type_node for MODIFY_EXPR.
2774 (build_allocator): Use NULL_TREE for MODIFY_EXPR.
2775
416de7d5
EB
27762011-09-08 Eric Botcazou <ebotcazou@adacore.com>
2777
2778 * gcc-interface/utils.c (unchecked_convert): Use a field of the right
2779 precision when converting to or from an integral type whose precision
2780 is not equal to its size.
2781
88b76013
IS
27822011-09-08 Iain Sandoe <iains@gcc.gnu.org>
2783
416de7d5 2784 * traceback.c (Darwin) USE_GCC_UNWINDER for Darwin versions >= 8.
88b76013 2785
1aeee5ad
IS
27862011-09-07 Iain Sandoe <iains@gcc.gnu.org>
2787
416de7d5 2788 * gcc-interface/Makefile.in (darwin): Provide powerpc64 system
1aeee5ad
IS
2789 implementation.
2790 * system-darwin-ppc64.ads: New file.
2791
f61fc398
IS
27922011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2793
2794 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Remove
2795 reference to "-lm".
2796
84ef27d3
IS
27972011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2798
2799 * gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture
2800 size switches to the link phase for shared libs.
2801
a1bf1ec7
IS
28022011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2803
416de7d5 2804 * gcc-interface/Makefile.in (x86_64 darwin arch): Adjust
a1bf1ec7
IS
2805 LIBGNAT_TARGET_PAIRS for x86 and x86_64 variants.
2806
e972fd52
AC
28072011-09-06 Arnaud Charlet <charlet@adacore.com>
2808
2809 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in
2810 (gnattools, regnattools, cross-gnattools, canadian-gnattools,
2811 gnatlib, gnatlib-sjlj, gnatlib-zcx, gnatlib-shared, gnatlib_and_tools):
2812 New targets.
2813 (TOOLS_FLAGS_TO_PASS): New.
2814 (../stamp-tools): Reintroduce, to avoid merge conflicts.
2815
ef417be1
RD
28162011-09-06 Robert Dewar <dewar@adacore.com>
2817
2818 * sem_ch10.adb, impunit.ads, impunit.adb (Not_Impl_Defined_Unit): New
2819 name for Is_RM_Defined_Unit. Also several fixes to this unit.
2820
0a034606
RD
28212011-09-06 Robert Dewar <dewar@adacore.com>
2822
2823 * impunit.ads, impunit.adb (Is_RM_Defined_Unit): New function.
2824 * s-rident.ads: New restriction No_Implementation_Units
2825 (this restriction is also part of the profile
2826 No_Implementation_Extensions)
2827 * sem_ch10.adb (Analyze_With_Clause): Add check for
2828 No_Implementation_Units restriction.
2829
ebb6faaa
AC
28302011-09-06 Jerome Guitton <guitton@adacore.com>
2831
2832 * sysdep.c (__gnat_get_task_options): Disable VX_SPE_TASK
2833 on vThreads.
2834
28352011-09-06 Thomas Quinot <quinot@adacore.com>
2836
2837 * s-solita.adb: Minor reformatting.
2838
28392011-09-06 Ed Schonberg <schonberg@adacore.com>
2840
2841 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The body that
2842 is a rewriting of an expression function does not freeze previous
2843 entities.
2844
28452011-09-06 Robert Dewar <dewar@adacore.com>
2846
2847 * impunit.adb (Is_Known_Unit): Fix bad handling of Ada 2012 case
2848
60435286
TG
28492011-09-06 Tristan Gingold <gingold@adacore.com>
2850
2851 * gcc-interface/Makefile.in: Handle e500v2-wrs-vxworksae like
2852 powerpc-wrs-vxworksae.
2853
08f8a983
AC
28542011-09-06 Thomas Quinot <quinot@adacore.com>
2855
2856 * s-os_lib.ads (Spawn): Minor documentation clarification,
2857 Success is True for a zero exit status.
2858
28592011-09-06 Ed Schonberg <schonberg@adacore.com>
2860
2861 * sem_ch5.adb: Add message for common iterator error.
2862
28632011-09-06 Ed Schonberg <schonberg@adacore.com>
2864
2865 * exp_ch3.adb (Build_Initialization_Call): If the target is a
2866 selected component discriminated by a current instance, replace
2867 the constraint with a reference to the target object, regardless
2868 of whether the context is an init_proc.
2869
28702011-09-06 Robert Dewar <dewar@adacore.com>
2871
2872 * exp_attr.adb: Descriptor_Size is never static.
2873
28742011-09-06 Robert Dewar <dewar@adacore.com>
2875
2876 * gnat_ugn.texi: Add documentation for LSLOC metric in gnatmetric
2877
28782011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2879
2880 * gnat_rm.texi: Clarify that attribute Descriptor_Size is
2881 non-static.
2882
28832011-09-06 Ed Schonberg <schonberg@adacore.com>
2884
2885 * sem_res.adb (Resolve): An expression that is the body of an
2886 expression function does not freeze.
2887
28882011-09-06 Matthew Heaney <heaney@adacore.com>
2889
2890 * a-csquin.ads, a-cusyqu.adb, a-cbprqu.adb, a-cbsyqu.adb,
2891 a-cuprqu.adb: Changed copyright notice to indicate current
2892 year only.
2893
28942011-09-06 Vincent Celier <celier@adacore.com>
2895
2896 * prj.adb: Minor spelling error fix in comment
2897 * sem_res.adb: Minor reformatting
2898
28992011-09-06 Pascal Obry <obry@adacore.com>
2900
2901 * sysdep.c (winflush_nt): Removed as not needed anymore.
2902 (winflush_95): Likewise.
2903 (winflush_init): Likewise.
2904 (winflush_function): Likewise.
2905 (getc_immediate_common): Remove call to winflush_function.
2906
cb3d8731
HK
29072011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2908
2909 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite the
2910 processing for Descriptor_Size.
2911 * gnat_rm.texi: Rephrase the wording for attribute Descriptor_Size
2912 to account for its broader usage.
2913 * sem_attr.adb (Analyze_Attribute): Change the error detection
2914 circuitry for Descriptor_Size as the attribute is now applicable
2915 to all types.
2916
f7e6fc47
RD
29172011-09-06 Robert Dewar <dewar@adacore.com>
2918
2919 * sem_attr.adb, prj-nmsc.adb, exp_aggr.adb: Minor reformatting.
2920
f8e9fc30
AC
29212011-09-06 Ed Schonberg <schonberg@adacore.com>
2922
2923 * lib-xref.adb (OK_To_Set_Referenced): A reference to a formal
2924 in a parameter association must not set the Referenced flag on
2925 the formal.
2926 * prj-nmsc.adb (Check_File_Naming_Schemes): Remove useless formal
2927
29282011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2929
2930 * gnat_rm.texi: Add a section on attribute Descriptor_Size
2931
e8e38f35
AC
29322011-09-06 Arnaud Charlet <charlet@adacore.com>
2933
2934 * gcc-interface/Makefile.in (common-tools, gnatmake-re,
2935 gnatlink-re): Speed up by using -j0.
2936
ba759acd
AC
29372011-09-06 Yannick Moy <moy@adacore.com>
2938
2939 * sem_ch13.adb (Analyze_Aspect_Specifications): Call
2940 Set_Corresponding_Aspect when creating pragma from aspect.
2941 (Add_Predicates): Use new field Corresponding_Aspect.
2942 * sem_prag.adb (Analyze_Pragma): Make Pname hold source aspect
2943 name when present, for the purpose of issuing error messages;
2944 remove local procedure Error_Pragma_Arg_Alternate_Name.
2945 * sinfo.adb, sinfo.ads (Corresponding_Aspect): New field in
2946 N_Pragma node.
2947 (From_Dynamic_Predicate, From_Static_Predicate): Remove fields from
2948 N_Pragma node.
2949
29502011-09-06 Robert Dewar <dewar@adacore.com>
2951
2952 * checks.adb, s-except.ads, g-socket.adb: Minor reformatting.
2953
29542011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2955
2956 * exp_ch6.adb (Build_Heap_Allocator): Add new
2957 local variable Desig_Typ. Code and comment reformatting. Add
2958 machinery to ensure that the allocation uses a fat pointer when
2959 the type of the return object is a constrained array and the
2960 function return type is an unconstrained array.
2961
29622011-09-06 Vincent Celier <celier@adacore.com>
2963
2964 * make.adb, prj-part.adb, prj-nmsc.adb: Remove unused formal
2965 parameters in subprograms.
2966
29672011-09-06 Arnaud Charlet <charlet@adacore.com>
2968
2969 * s-taprop-mingw.adb (Finalize_TCB): Fix typo.
2970
29712011-09-06 Thomas Quinot <quinot@adacore.com>
2972
2973 * s-taprop-vxworks.adb, s-tpoaal.adb, s-tpopsp-vxworks.adb
2974 (System.Tasking.Primitive_Operations.Specific.Delete): Remove
2975 subprogram.
2976 (System.Tasking.Primitive_Operations.Specific.Set): If argument
2977 is null, destroy task specific data, to make API consistent with
2978 other platforms, and thus compatible with the shared version
2979 of s-tpoaal.adb.
2980 (System.Tasking.Primitive_Operations.ATCB_Allocation.Free_ATCB):
2981 Document the above assumption.
2982
f4f92d9d
AC
29832011-09-06 Ed Schonberg <schonberg@adacore.com>
2984
2985 * exp_ch6.adb (Expand_Inlined_Call): Fix use of uninitialized
2986 variable for type of return value when return type is
2987 unconstrained and context is an assignment.
2988
29892011-09-06 Ed Schonberg <schonberg@adacore.com>
2990
2991 * sem_ch8.adb (Check_Class_Wide_Actual): Do not generate body of
2992 class-wide operation if expansion is not enabled.
2993
29942011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2995
2996 * checks.adb (Apply_Scalar_Range_Check): Deal with access
2997 type prefix.
2998
29992011-09-06 Yannick Moy <moy@adacore.com>
3000
3001 * sem_ch13.adb (Analyze_Aspect_Specifications, case
3002 Aspect_Invariant): Do not issue error at this point on illegal
3003 pragma placement, as this is checked later on when analyzing
3004 the corresponding pragma.
3005 * sem_prag.adb (Error_Pragma_Arg_Alternate_Name): New procedure
3006 similar to Error_Pragma_Arg, except the source name of the
3007 aspect/pragma to use in warnings may be equal to parameter
3008 Alt_Name (Analyze_Pragma, case Pragma_Invariant): refine error
3009 message to distinguish source name of pragma/aspect, and whether
3010 the illegality resides in the type being public, or being private
3011 without a public declaration
3012
30132011-09-06 Thomas Quinot <quinot@adacore.com>
3014
3015 * g-socket.adb (Check_For_Fd_Set): On Windows, no need for bitmap
3016 size check (fd_set is implemented differently on that platform).
3017
30182011-09-06 Thomas Quinot <quinot@adacore.com>
3019
3020 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3021 s-tpoaal.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
3022 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop.ads,
3023 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
3024 (ATCB_Allocation): New subpackage of
3025 System.Tasking.Primitive_Operations, shared across all targets
3026 with full tasking runtime.
3027 (ATCB_Allocation.New_ATCB): Moved there (from target specific
3028 s-taprop bodies).
3029 (ATCB_Allocation.Free_ATCB): New subprogram. Deallocate an ATCB,
3030 taking care of establishing a local temporary ATCB if the one
3031 being deallocated is Self, to avoid a reference to the freed
3032 ATCB in Abort_Undefer.
3033
30342011-09-06 Thomas Quinot <quinot@adacore.com>
3035
3036 * s-tassta.adb, s-taskin.ads (Free_Task): If the task is not
3037 terminated, mark it for deallocation upon termination.
3038 (Terminate_Task): Call Free_Task again if the task is marked
3039 for automatic deallocation upon termination.
3040
df177175
RD
30412011-09-06 Robert Dewar <dewar@adacore.com>
3042
3043 * a-cbprqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cusyqu.ads,
3044 a-intnam-aix.ads, a-intnam-darwin.ads, a-intnam-dummy.ads,
3045 a-intnam-freebsd.ads, a-intnam-hpux.ads, a-intnam-irix.ads,
3046 a-intnam-linux.ads, a-intnam-lynxos.ads, a-intnam-mingw.ads,
3047 a-intnam-solaris.ads, a-intnam-tru64.ads,
3048 a-intnam-vms.ads, a-intnam-vxworks.ads, a-intnam.ads, interfac.ads,
3049 cstand.adb, s-maccod.ads: Mark all entities as Implementation_Defined
3050 * einfo.ads, einfo.adb (Is_Implementation_Defined): New flag
3051 * par-prag.adb: Add dummy entry for pragma Implementation_Defined
3052 * s-rident.ads: Add new restriction No_Implementation_Identifiers
3053 Add new profile No_Implementation_Extensions
3054 * sem_prag.adb: Implement pragma Implementation_Defined Implement
3055 profile No_Implementation_Extensions
3056 * sem_util.adb: Minor reformatting (Set_Entity_With_Style_Check):
3057 Check violation of restriction No_Implementation_Identifiers
3058 * snames.ads-tmpl: Add entries for pragma Implementation_Defined
3059 Add entry for Name_No_Implementation_Extensions
3060
30612011-09-06 Robert Dewar <dewar@adacore.com>
3062
3063 * impunit.ads: Minor reformatting.
3064
b991dd43
AC
30652011-09-06 Robert Dewar <dewar@adacore.com>
3066
3067 * ali.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting.
3068
30692011-09-06 Pascal Obry <obry@adacore.com>
3070
3071 * s-osinte-linux.ads, s-oscons-tmplt.c: Use oscons to define sigset_t
3072 types.
3073
516785cc
AC
30742011-09-06 Robert Dewar <dewar@adacore.com>
3075
3076 * g-socket.adb: Minor reformatting
3077
30782011-09-06 Javier Miranda <miranda@adacore.com>
3079
3080 * ali.adb (Scan_ALI): Add missing support to load references of
3081 entities imported from other languages.
3082 * ali.ads (Xref_Record): Adding new fields to store the language and
3083 name of an imported entity.
3084 * lib-xref.adb (Output_Import_Export_Info): Fix typo
3085 in comment.
3086
30872011-09-06 Ed Schonberg <schonberg@adacore.com>
3088
3089 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): A type invariant
3090 is allowed on a full type declaration if it is the completion of
3091 a private declarations.
3092 * sem_ch13.adb (Analyze_Aspect_Specifications): An invariant
3093 aspect is allowed on a full type declaration in the private part
3094 of a package.
3095
96691943
AC
30962011-09-06 Robert Dewar <dewar@adacore.com>
3097
3098 * sem_ch8.ads: Minor reformatting
3099
31002011-09-06 Thomas Quinot <quinot@adacore.com>
3101
3102 * s-oscons-tmplt.c, g-socket.adb (GNAT.Sockets.Clear,Set,Is_Set):
3103 Guard against socket values that are not in [0;FD_SETSIZE[
3104
54bf19e4
AC
31052011-09-06 Robert Dewar <dewar@adacore.com>
3106
3107 * s-osinte-linux.ads, a-iteint.ads, exp_ch6.adb, s-solita.adb: Minor
3108 reformatting.
3109
31102011-09-06 Arnaud Charlet <charlet@adacore.com>
3111
3112 * s-linux-alpha.ads: Minor reformatting
3113 * s-oscons-tmplt.c: Fix generated comments in s-oscons template.
3114 Use sizeof instead of corresponding C defines in s-oscons template.
3115
5d42cba1
VG
31162011-09-06 Vadim Godunko <godunko@adacore.com>
3117
3118 * a-convec.ads, a-iteint.ads: Minor reformatting.
3119
77aa62e7
AC
31202011-09-06 Vincent Celier <celier@adacore.com>
3121
3122 * projects.texi: Add menus and @node lines.
3123
31242011-09-06 Ed Schonberg <schonberg@adacore.com>
3125
3126 * exp_ch6.adb (Expand_Inlined_Call): Handle properly the case
3127 where the return type is an unconstrained array and the context
3128 is an assignment. Optimize the case when the target of the
3129 assignment is a selected component.
3130
31312011-09-06 Arnaud Charlet <charlet@adacore.com>
3132
3133 * s-solita.adb: Update comments.
3134
31352011-09-06 Pascal Obry <obry@adacore.com>
3136
3137 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, s-linux-mipsel.ads,
3138 s-linux-sparc.ads: Remove hard coded and now wrong definitions.
3139 * s-oscons-tmplt.c: Add support for generating pthread related
3140 types size on GNU/Linux as done for Darwin.
3141 * s-osinte-linux.ads: Use s-oscons to define the pthread types.
3142
886b5a18
AC
31432011-09-06 Robert Dewar <dewar@adacore.com>
3144
3145 * exp_ch6.adb: Fix minor typo.
3146
31472011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3148
3149 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
3150 (Alignment_Of): Moved to the body of Nearest_Multiple_Rounded_Up.
3151 (Double_Size_Of): Alphabetized. Update the comment on usage.
3152 (Make_Finalize_Address_Stmts): Update comments and reformat code.
3153 (Nearest_Multiple_Rounded_Up): New routine.
3154 (Size_Of): Update comment on usage. The generated expression now
3155 accounts for alignment gaps by rounding the size of the type to the
3156 nearest multiple rounded up of the type's alignment.
3157
57a3fca9
AC
31582011-09-06 Robert Dewar <dewar@adacore.com>
3159
3160 * exp_ch7.adb, g-comlin.adb: Minor reformatting.
3161
31622011-09-06 Steve Baird <baird@adacore.com>
3163
3164 * exp_ch4.adb (Expand_Allocator_Expression): Look through
3165 derived subprograms in checking for presence of an
3166 Extra_Accessibility_Of_Result formal parameter.
3167 * exp_ch6.adb (Expand_Call): Look through derived subprograms in
3168 checking for presence of an Extra_Accessibility_Of_Result formal
3169 parameter.
3170 (Expand_Call.Add_Actual_Parameter): Fix a bug in the
3171 case where the Parameter_Associatiations attribute is already set,
3172 but set to an empty list.
3173 (Needs_Result_Accessibility_Level):
3174 Unconditionally return False. This is a temporary
3175 change, disabling the Extra_Accessibility_Of_Result
3176 mechanism.
3177 (Expand_Simple_Function_Return): Check for
3178 Extra_Accessibility_Of_Result parameter's presence instead of
3179 testing Ada_Version when generating a runtime accessibility
3180 check which makes use of the parameter.
3181
eaed0c37
AC
31822011-09-06 Ed Schonberg <schonberg@adacore.com>
3183
3184 * exp_ch4.adb (Expand_N_Case_Expression): Actions created for the
3185 expression in a given case alternative must be attached to the
3186 statement list of the ccrresponding case statement alternative
3187 They cannot be propagated ahead of the case statement, because
3188 the validity of the expression that generated the action may
3189 hold only for that alternative.
3190
31912011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3192
3193 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
3194 (Alignment_Of): Remove the code for strict alignment targets.
3195 (Double_Alignment_Of): Removed.
3196 (Double_Size_Of): New routine.
3197 (Make_Finalize_Address_Stmts): Change the
3198 calculation of the dope's size. Update relevant comments.
3199 (Size_Of): New routine.
3200
b8a93198
AC
32012011-09-06 Steve Baird <baird@adacore.com>
3202
3203 * einfo.ads (Extra_Accessibility): Update associated comment to use
3204 the term "present" correctly ("present" just means that it is not
3205 an error to query the value of the attribute - it does not imply
3206 that the value must be non-null).
3207 (Extra_Constrained): Ditto.
3208 (Is_Visible_Formal): Ditto.
3209 (Extra_Accessibility_Of_Result) Ditto; also add Inline pragma.
3210 (Set_Extra_Accessibility_Of_Result): Add Inline pragma.
3211 * exp_ch4.adb (Expand_Allocator_Expression): Improve a comment.
3212 * exp_ch6.adb (Expand_Call): The callee may require an
3213 Extra_Accessibility_Of_Result actual parameter even if Ada_Version
3214 < Ada_2012. This can occur if the callee is exported from a Gnat
3215 runtimes unit. Also improve a comment.
3216
32172011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3218
3219 * exp_ch7.adb: Add with and use clauses for Get_Targ.
3220 (Alignment_Of): Rename formal parameter Some_Typ
3221 to Typ, update related comment. Use the allocator alignment on
3222 strict alignment targets such as SPARC.
3223 (Double_Alignment_Of): Rename formal parameter Some_Typ to Typ, update
3224 related comment.
3225
32262011-09-06 Gary Dismukes <dismukes@adacore.com>
3227
3228 * sem_ch9.adb (Check_Interfaces): Test
3229 Is_Limited_Type rather than Is_Limited_Record when checking that
3230 the partial view of a synchronized full view must be limited.
3231
32322011-09-06 Emmanuel Briot <briot@adacore.com>
3233
3234 * g-comlin.adb (Free): Fix memory leak.
3235
ebf494ec
RD
32362011-09-06 Robert Dewar <dewar@adacore.com>
3237
3238 * sem_util.adb, exp_ch6.adb: Minor reformatting and code reorganization.
3239
63585f75
SB
32402011-09-06 Steve Baird <baird@adacore.com>
3241
3242 * einfo.ads (Extra_Accessibility_Of_Result): New function; in the
3243 (Ada2012) cases described in AI05-0234 where the accessibility
3244 level of a function result is "determined by the point of
3245 call", an implicit parameter representing that accessibility
3246 level is passed in. Extra_Accessibilty_Of_Result yields this
3247 additional formal parameter. Extra_Accessibility_Of_Result
3248 is analogous to the existing Extra_Accessibility
3249 function used in the implementation of access parameters.
3250 (Set_Extra_Accessibility_Of_Result): New procedure; sets
3251 Extra_Accessibility_Of_Result attribute.
3252 * einfo.adb (Extra_Accessibility_Of_Result): New function.
3253 (Set_Extra_Accessibility_Of_Result): New procedure.
3254 (Write_Field19_Name): Display Extra_Accessibilty_Of_Result attribute.
3255 * sem_util.adb (Dynamic_Accessibility_Level): Set Etype of
3256 an accessibility level literal to Natural; introduce a nested
3257 function, Make_Level_Literal, to do this.
3258 * exp_ch6.ads (Needs_Result_Accessibility_Level): New function;
3259 determines whether a given function (or access-to-function
3260 type) needs to have an implicitly-declared accessibility-level
3261 parameter added to its profile.
3262 (Add_Extra_Actual_To_Call): Export an existing procedure which was
3263 previously declared in the body of Exp_Ch6.
3264 * exp_ch6.adb (Add_Extra_Actual_To_Call): Export declaration by moving
3265 it to exp_ch6.ads.
3266 (Has_Unconstrained_Access_Discriminants): New Function; a
3267 predicate on subtype entities which returns True if the given
3268 subtype is unconstrained and has one or more access discriminants.
3269 (Expand_Call): When expanding a call to a function which takes an
3270 Extra_Accessibility_Of_Result parameter, pass in the appropriate
3271 actual parameter value. In the case of a function call which is
3272 used to initialize an allocator, this may not be possible because
3273 the Etype of the allocator may not have been set yet. In this
3274 case, we defer passing in the parameter and handle it later in
3275 Expand_Allocator_Expression.
3276 (Expand_Simple_Function_Return): When returning from a function which
3277 returns an unconstrained subtype having at least one access
3278 discriminant, generate the accessibility check needed to ensure that
3279 the function result will not outlive any objects designated by its
3280 discriminants.
3281 (Needs_Result_Accessibility_Level): New function; see exp_ch6.ads
3282 description.
3283 * exp_ch4.adb (Expand_Allocator_Expression): When a function call
3284 is used to initialize an allocator, we may need to pass in "the
3285 accessibility level determined by the point of call" (AI05-0234)
3286 to the function. Expand_Call, where such actual parameters are
3287 usually generated, is too early in this case because the Etype of
3288 the allocator (which is used in determining the level to be passed
3289 in) may not have been set yet when Expand_Call executes. Instead,
3290 we generate code to pass in the appropriate actual parameter
3291 in Expand_Allocator_Expression.
3292 * sem_ch6.adb (Create_Extra_Formals): Create
3293 the new Extra_Accessibility_Of_Result formal if
3294 Needs_Result_Accessibility_Level returns True. This includes the
3295 introduction of a nested procedure, Check_Against_Result_Level.
3296
1a982c6e
AC
32972011-09-06 Arnaud Charlet <charlet@adacore.com>
3298
3299 * gcc-interface/Makefile.in (X86_TARGET_PAIRS): Remove duplicate
3300 declaration.
3301
e42bcfa3
AC
33022011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3303
3304 * s-finmas.adb (Set_Finalize_Address): Explain the reason
3305 for the synchronization. Move the test for null from
3306 s-stposu.Allocate_Any_Controlled to this routine since the check
3307 needs to be protected too.
3308 (Set_Heterogeneous_Finalize_Address): Explain the reason for the
3309 synchronization code.
3310 * s-finmas.ads (Set_Heterogeneous_Finalize_Address): Add comment
3311 explaining the context in which this routine is used.
3312 * s-stposu.adb (Allocate_Any_Controlled): Move the test for null
3313 to s-finmas.Set_Finalize_Address.
3314
33152011-09-05 Ed Schonberg <schonberg@adacore.com>
3316
3317 * einfo.ads: Document that itypes have no parent field.
3318
33192011-09-05 Robert Dewar <dewar@adacore.com>
3320
3321 * rtsfind.adb (Check_CRT): Check for overloaded entity
3322 * rtsfind.ads: Document that entities to be found by rtsfind
3323 cannot be overloaded
3324 * s-taenca.adb, s-tasren.adb, s-tpobop.adb, s-tpoben.ads, s-tpoben.adb
3325 (Lock_Entries_With_Status): New name for Lock_Entries with two
3326 arguments (changed to meet rtsfind no overloading rule).
3327
544e7c17
AC
33282011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3329
3330 * s-finmas.adb (Set_Finalize_Address (Address,
3331 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
3332 (Set_Finalize_Address (in out Finalization_Master,
3333 Finalize_Address_Ptr): Add synchronization code.
3334 * s-finmas.ads (Set_Finalize_Address (Address,
3335 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
3336 * s-stposu.adb (Allocate_Any_Controlled): Update the call to
3337 Set_Finalize_Address for the heterogeneous case.
3338
33392011-09-05 Ed Schonberg <schonberg@adacore.com>
3340
3341 * sem_ch3.adb: Undo previous change, not suitable after all.
3342
33432011-09-05 Robert Dewar <dewar@adacore.com>
3344
3345 * einfo.ads: Minor comment clarification.
3346
0613fb33
AC
33472011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3348
3349 * exp_ch6.adb (Move_Activation_Chain): Rewritten. The routine
3350 no longer needs to search through the entities of the return
3351 statement scope to find the _chain.
3352 * sem_ch5.adb: Add with and use clauses for Exp_Ch6 and Sem_Ch6.
3353 (Analyze_Block_Statement): Add local variable
3354 Is_BIP_Return_Statement. Add machinery to install all entities
3355 produced by the expansion of the return object declaration.
3356 (Install_Return_Entities): New routine.
3357 * sem_ch6.ads, sem_ch6.adb (Install_Entity): Moved from body to spec.
3358
33592011-09-05 Ed Schonberg <schonberg@adacore.com>
3360
3361 * sem_ch10.adb (Analyze_Context): Apply simple fixup if context
3362 of subunit is incomplete.
3363 (Analyze_Proper_Body): If parent spec is not available, do not
3364 attempt analysis.
3365
5dcab3ca
AC
33662011-09-05 Ed Schonberg <schonberg@adacore.com>
3367
3368 * sem_disp.adb (Find_Controlling_Arg): Add checks for
3369 interface type conversions, that are expanded into dereferences.
3370
33712011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3372
3373 * sem_ch6.adb (Analyze_Subprogram_Body_Helper):
3374 Examine the parameter and return profile of a subprogram and swap
3375 any incomplete types coming from a limited context with their
3376 corresponding non-limited views.
3377 (Exchange_Limited_Views): New routine.
3378
33792011-09-05 Ed Schonberg <schonberg@adacore.com>
3380
3381 * sem_ch3.adb (Prepare_Private_Subtype_Completion): Set parent
3382 of internal entity to the subtype declaration, so that when
3383 entities are subsequently exchanged in a package body, the tree
3384 remains properly formatted for ASIS.
3385
8da1a312
AC
33862011-09-05 Johannes Kanig <kanig@adacore.com>
3387
3388 * g-comlin.adb (Set_Usage): Additional optional argument to set help
3389 message.
3390 (Display_Help): display the user given help message, if available.
3391
33922011-09-05 Ed Schonberg <schonberg@adacore.com>
3393
3394 * sem_ch3.adb (OK_For_Limited_Init_In_05): The expression
3395 is legal if the original node is an identifier that is a
3396 parameterless function call.
3397
69b73847
PO
33982011-09-05 Pascal Obry <obry@adacore.com>
3399
3400 * prj-nmsc.adb: Minor reformatting.
3401 Add support for standalone aggregate library.
3402 (Check_Stand_Alone_Library): Handle standalone aggregate library.
3403 * projects.texi: Fix documentation for aggregate library projects.
3404
81bf2382
AC
34052011-09-05 Robert Dewar <dewar@adacore.com>
3406
3407 * sem_ch6.adb: Minor reformatting.
3408
34092011-09-05 Matthew Gingell <gingell@adacore.com>
3410
3411 * s-tassta.adb (Task_Wrapper): Ensure that we don't try to write the
3412 stack guard page on PPC Linux. This patch ensures the 64K guard page at
3413 the bottom of the stack is not overwritten.
3414
13a0b1e8
AC
34152011-09-05 Thomas Quinot <quinot@adacore.com>
3416
3417 * exp_intr.adb, s-tasini.adb: Minor reformatting.
3418
34192011-09-05 Ed Schonberg <schonberg@adacore.com>
3420
3421 * sem_ch3.adb (Access_Definition): If an access type declaration
3422 appears in a child unit, the scope of whatever anonymous type
3423 may be generated is the child unit itself.
3424
34252011-09-05 Ed Schonberg <schonberg@adacore.com>
3426
3427 * sem_ch6.adb (Analyze_Expression_Function): Do not set
3428 Comes_From_Source on rewritten body.
3429 (Analyze_Subprogram_Body_Helper): Check that the original node for
3430 the body comes from source, when determining whether expansion
3431 of a protected operation is needed.
3432
20428725
AC
34332011-09-05 Ed Schonberg <schonberg@adacore.com>
3434
3435 * exp_aggr.adb (Replace_Type): If the target of the assignment is
3436 a selected component and the right-hand side is a self-referential
3437 access, the proper prefix of the rewritten attribute is a copy
3438 of the left-hand side, not of its prefix.
3439
34402011-09-05 Robert Dewar <dewar@adacore.com>
3441
3442 * sem_ch5.adb: Minor reformatting.
3443 * sem_ch3.adb: Minor code clean up.
3444
34452011-09-05 Jose Ruiz <ruiz@adacore.com>
3446
3447 * exp_ch9.adb (Make_Initialize_Protection): The fact that
3448 restriction No_Dynamic_Attachment is in effect or not should
3449 not influence the default priority associated to a protected
3450 object. With this change, when the restriction is in effect (as
3451 is the case for the Ravenscar profile) the default priority of
3452 a protected object with an interrupt handler is in the range of
3453 interrupt priorities (Default_Interrupt_Priority) as required
3454 by D.3(10).
3455
34562011-09-05 Arnaud Charlet <charlet@adacore.com>
3457
3458 * a-iteint.ads: Fix header.
3459
34602011-09-05 Vincent Celier <celier@adacore.com>
3461
3462 * prj-conf.adb (Do_Autoconf): Make sure Obj_Dir always ends
3463 with a directory separator to avoid output such as:
3464 "/path/to/objauto.cgpr" has been deleted.
3465
4a1bfefb
AC
34662011-09-05 Robert Dewar <dewar@adacore.com>
3467
3468 * sem_ch3.adb: Minor reformatting.
3469
34702011-09-05 Ed Schonberg <schonberg@adacore.com>
3471
3472 * sem_ch5.adb: Better error message.
3473
34742011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3475
3476 * exp_aggr.adb: Add with and use clause for Exp_Ch6.
3477 (Expand_Array_Aggregate): Detect a special case of an aggregate
3478 which contains tasks in the context of an unexpanded return
3479 statement of a build-in-place function.
3480 * exp_ch6.adb: Add with and use clause for Exp_Aggr.
3481 (Expand_N_Extended_Return_Statement): Detect a delayed aggregate
3482 which contains tasks and expand it now that the original simple
3483 return statement has been rewritten.
3484 * exp_ch9.adb (Build_Activation_Chain_Entity): Code
3485 reformatting. Do not create a chain for an extended return
3486 statement if one is already available.
3487 (Has_Activation_Chain): New routine.
3488
9ec080cb
AC
34892011-09-05 Marc Sango <sango@adacore.com>
3490
3491 * sem_ch3.adb (Analyze_Object_Declaration): Remove
3492 the wrong test and add the correct test to detect the violation
3493 of illegal use of unconstrained string type in SPARK mode.
3494
34952011-09-05 Ed Schonberg <schonberg@adacore.com>
3496
3497 * sem_ch5.adb (Analyze_Iteration_Specification): Improve error
3498 message on an iterator over an array.
3499
35002011-09-05 Robert Dewar <dewar@adacore.com>
3501
3502 * lib-xref-alfa.adb: Minor reformatting.
3503
aeae67ed
RD
35042011-09-05 Robert Dewar <dewar@adacore.com>
3505
3506 * sem_ch3.adb, sem_res.adb, par.adb, par-ch6.adb, g-comlin.adb,
3507 exp_ch6.adb, lib-xref-alfa.adb: Minor reformatting.
3508
d72e7628
AC
35092011-09-05 Gary Dismukes <dismukes@adacore.com>
3510
3511 * exp_ch7.adb, exp_ch6.adb: Minor reformatting.
3512
35132011-09-05 Johannes Kanig <kanig@adacore.com>
3514
3515 * lib-xref-alfa.adb: Update comments.
3516
35172011-09-05 Thomas Quinot <quinot@adacore.com>
3518
3519 * sem_res.adb: Minor reformatting
3520
0d566e01
ES
35212011-09-05 Ed Schonberg <schonberg@adacore.com>
3522
3523 * exp_ch6.adb (Build_In_Place_Formal): If extra formals are not
3524 present, create them now. Needed in case the return type was
3525 a limited view in the function declaration.
3526 (Make_Build_In_Place_Call_In_Allocator): If return type contains
3527 tasks, build the activation chain for it. Pass a reference to
3528 the Master_Id in call to Add_Task_Actuals_To_Build_In_Place call.
3529 * exp_ch7.adb (Make_Set_Finalize_Address_Call): Clean up interface
3530 with build_in_place calls.
3531 * sem_ch9.adb (Analyze_Task_Type_Declaration): If partial view was
3532 incomplete, inatialize its Corresponding_Record_Type component.
3533 * sem_ch10.adb (Build_Chain): Initialize Private_Dependents field
3534 of limited views.
3535
ec09f261
AC
35362011-09-05 Johannes Kanig <kanig@adacore.com>
3537
3538 * lib-xref-alfa.adb (Is_Alfa_Reference): Filter constants from effect
3539 information.
3540
35412011-09-05 Ed Schonberg <schonberg@adacore.com>
3542
3543 * par-ch6.adb (P_Subprogram): In Ada2012 mode, if the subprogram
3544 appears within a package specification and the token after "IS"
3545 is not a parenthesis, assume that this is an unparenthesized
3546 expression function, even if the token appears in a line by
3547 itself.
3548 * par.adb: Clarify use of Labl field of scope stack in error
3549 recovery.
3550
7109f4f5
AC
35512011-09-05 Bob Duff <duff@adacore.com>
3552
3553 * sem_res.adb (Resolve_Intrinsic_Operator): Use unchecked
3554 conversions instead of normal type conversions in all cases where a
3555 type conversion would be illegal. In particular, use unchecked
3556 conversions when the operand types are private.
3557
35582011-09-05 Johannes Kanig <kanig@adacore.com>
3559
3560 * lib-xref-alfa.adb (Is_Alfa_Reference): Never declare effects on
3561 objects of task type or protected type.
3562
66dc8075
AC
35632011-09-05 Ed Schonberg <schonberg@adacore.com>
3564
3565 * sem_ch6.adb (Analyze_Expression_Function): If the expression
3566 function comes from source, indicate that so does its rewriting,
3567 so it is compatible with any subsequent expansion of the
3568 subprogram body (e.g. when it is a protected operation).
3569 * sem_ch4.adb: minor reformatting
3570
35712011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3572
3573 * lib.adb (Check_Same_Extended_Unit): Comment rewriting. Use
3574 Get_Source_Unit rather than Get_Code_Unit as instantiation unfolding
3575 may lead to wrong ancestor package in the case of instantiated subunit
3576 bodies. If a subunit is instantiated, follow the chain of instantiations
3577 rather than the stub structure.
3578
bd38b431
AC
35792011-09-02 Robert Dewar <dewar@adacore.com>
3580
3581 * sem_ch4.adb, sem_ch6.adb: Minor reformatting.
3582 * gcc-interface/Make-lang.in: Update dependencies.
3583
35842011-09-02 Marc Sango <sango@adacore.com>
3585
3586 * sem_ch3.adb (Analyze_Object_Declaration): Change
3587 comment and add additional check to differentiate constant of
3588 type string from others unconstrained type.
3589
99d520ad
ES
35902011-09-02 Ed Schonberg <schonberg@adacore.com>
3591
3592 * sinfo.ads, sinfo.adb: New semantic attribute Premature_Use,
3593 present in incomplete type declarations to refine the error
3594 message the full declaration is in the same unit.
3595 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of
3596 an incomplete type, set the Premature_Use for additional message.
3597 * sem_ch3.adb (Find_Type_Name): If partial view is incomplete
3598 and Premature_Use is set, place additional information at the
3599 point of premature use.
3600
5b5588dd
AC
36012011-09-02 Bob Duff <duff@adacore.com>
3602
3603 * sem_ch6.adb: (Check_Post_State): Suppress warning
3604 "postcondition refers only to pre-state" when the expression has not
3605 yet been analyzed, because it causes false alarms. This can happen when
3606 the postcondition contains a quantified expression, because those are
3607 analyzed later. This is a temporary/partial fix.
3608 (Process_Post_Conditions): Minor: change wording of warning.
3609
36102011-09-02 Marc Sango <sango@adacore.com>
3611
3612 * sem_ch3.adb (Analyze_Object_Declaration): Detect the violation of
3613 illegal use of unconstrained string type in SPARK mode.
3614 * sem_res.adb (Analyze_Operator_Symbol): Set the
3615 right place where the string operand of concatenation should be
3616 violate in SPARK mode.
3617
bd603506
RD
36182011-09-02 Robert Dewar <dewar@adacore.com>
3619
3620 * sem_prag.adb, sem_util.adb, sem_ch6.adb, prj-nmsc.adb,
3621 exp_ch3.adb: Minor reformatting.
3622
24a120ac
AC
36232011-09-02 Vincent Celier <celier@adacore.com>
3624
3625 * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Declare "gcc"
3626 as the compiler driver so Is_Compilable returns True for sources.
3627 * prj-nmsc.adb (Override_Kind): When Kind is Sep, set the source
3628 for the body.
3629
36302011-09-02 Ed Schonberg <schonberg@adacore.com>
3631
3632 * sem_prag.adb (Analyze_PPC_In_Decl_Part): for a class-wide
3633 condition, a reference to a controlling formal must be interpreted
3634 as having the class-wide type (or an access to such) so that the
3635 inherited condition can be properly applied to any overriding
3636 operation (see ARM12 6.6.1 (7)).
3637
36382011-09-02 Tristan Gingold <gingold@adacore.com>
3639
3640 * init.c (__gnat_is_vms_v7): Fix case and add prototype
3641 for LIB$GETSYI.
3642
36432011-09-02 Javier Miranda <miranda@adacore.com>
3644
3645 * exp_ch3.adb (Expand_N_Object_Declaration): Do not copy the
3646 initializing expression of a class-wide interface object declaration
3647 if its type is limited.
3648
36492011-09-02 Johannes Kanig <kanig@adacore.com>
3650
3651 * sem_util.adb (Unique_Name): To obtain a unique name for enumeration
3652 literals, take into account the type name; the type is *not*
3653 the scope for an enumeration literal.
3654
36552011-09-02 Ed Schonberg <schonberg@adacore.com>
3656
3657 * sem_ch6.adb (Check_Overriding_Indicator): add special check
3658 to reject an overriding indicator on a user-defined Adjust
3659 subprogram for a limited controlled type.
3660
36612011-09-02 Ed Schonberg <schonberg@adacore.com>
3662
3663 * sem_res.adb (Resolve_Actuals): add missing call to Resolve
3664 for an actual that is a function call returning an unconstrained
3665 limited controlled type.
3666
36672011-09-02 Tristan Gingold <gingold@adacore.com>
3668
3669 * g-socthi-vms.adb (c_sendmsg, c_recvmsg): Use unpacked msg if on vms 7
3670
36712011-09-02 Johannes Kanig <kanig@adacore.com>
3672
3673 * alfa.ads (Name_Of_Heap_Variable): Change value of the HEAP variable
3674 from "HEAP" to __HEAP Change comment that refers to that variable
3675 * put_alfa.adb: Change comment that refers to that variable
3676
c5f5123f
AC
36772011-09-02 Robert Dewar <dewar@adacore.com>
3678
3679 * exp_ch4.adb, exp_ch6.adb, prj-nmsc.adb: Minor reformatting.
3680
36812011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3682
3683 * exp_util.adb (Extract_Renamed_Object): Renamed to
3684 Find_Renamed_Object. This routine has been reimplemented and now uses
3685 tree traversal to locate a renamed object.
3686 (Is_Aliased): Replace call to Extract_Renamed_Object with
3687 Find_Renamed_Object.
3688
36892011-09-02 Tristan Gingold <gingold@adacore.com>
3690
3691 * init.c: (__gnat_is_vms_v7): New function.
3692
36932011-09-02 Olivier Hainque <hainque@adacore.com>
3694
3695 * tracebak.c (STOP_FRAME, ppc elf/vxworks case): Stop on frames
3696 that have a misaligned backchain, necessarily bogus.
3697
2bfa5484
HK
36982011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3699
3700 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not create
3701 TSS routine Finalize_Address when compiling in Alfa mode.
3702 (Expand_Freeze_Record_Type): Do not create TSS routine
3703 Finalize_Address when compiling in Alfa mode.
3704 * exp_ch4.adb (Expand_Allocator_Expression): Do not produce a
3705 call to Set_Finalize_Address in Alfa mode because Finalize_Address is
3706 not built.
3707 (Expand_N_Allocator): Do not produce a call to
3708 Set_Finalize_Address in Alfa mode because Finalize_Address is not built.
3709 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not
3710 produce a call to primitive Set_Finalize_Address in Alfa mode because
3711 Finalize_Address is not built.
3712 * exp_ch7.adb (Build_Finalization_Master): Do not create
3713 finalization masters in Afa mode since they are not needed.
3714 (Build_Finalizer): Do not create scope and library-level
3715 finalizers in Alfa mode since they are not needed.
3716 * exp_util.adb (Build_Allocate_Deallocate_Proc): Do not expand
3717 "new" and "free" when applied to controlled objects in Alfa mode since
3718 this is not needed.
3719
7a0ddd20
AC
37202011-09-02 Vincent Celier <celier@adacore.com>
3721
3722 * prj-nmsc.db: (Check_Stand_Alone_Library): For SALs, allow
3723 only library names with the syntax of Ada identifiers, to avoid errors
3724 when compiling the binder generated files.
3725 * projects.texi: Document restriction on SAL library names
3726
37272011-09-02 Thomas Quinot <quinot@adacore.com>
3728
3729 * a-chtgbo.adb: Minor comment fix.
3730
439b6dfa
AC
37312011-09-02 Robert Dewar <dewar@adacore.com>
3732
3733 * lib-xref.adb: Minor reformatting
3734
37352011-09-02 Vincent Celier <celier@adacore.com>
3736
3737 * bindusg.adb, clean.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
3738 gnatls.adb, gnatname.adb, gnatxref.adb, gprep.adb, makeusg.adb: Add
3739 --version and --help in usage.
3740 * switch.ads, switch.adb (Display_Usage_Version_And_Help): New procedure
3741
f2404867
AC
37422011-09-02 Bob Duff <duff@adacore.com>
3743
3744 * lib-xref.adb: (Hash): Avoid use of 'Mod attribute, because old
3745 compilers don't understand it.
3746
37472011-09-02 Gary Dismukes <dismukes@adacore.com>
3748
3749 * exp_attr.adb (Expand_N_Attribute_Reference): Pass the
3750 underlying subtype rather than its base type on the call to
3751 Build_Record_Or_Elementary_Input_Function, so that any
3752 constraints on a discriminated subtype will be available for
3753 doing the check required by AI05-0192.
3754 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
3755 If the prefix subtype of the 'Input attribute is a constrained
3756 discriminated subtype, then check each constrained discriminant value
3757 against the corresponding value read from the stream.
3758
029b67ba
YM
37592011-09-02 Yannick Moy <moy@adacore.com>
3760
3761 * usage.adb, warnsw.adb, sem_ch6.adb, opt.ads: Disable by default
3762 warnings on suspicious contracts, and enable them with -gnatwa.
3763
dc36a7e3
RD
37642011-09-02 Robert Dewar <dewar@adacore.com>
3765
3766 * exp_util.adb, exp_ch9.adb, sem_attr.adb, sem_ch6.adb: Minor
3767 reformatting.
3768
d5aa443c
AC
37692011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3770
3771 * exp_ch9.adb (Install_Private_Data_Declarations): Add guards
3772 which ensure that restriction No_Dynamic_Attachment has not been
3773 violated.
3774 (Make_Initialize_Protection): Protected types with attach or
3775 interrupt handlers must not violate restriction No_Dynamic_Attachment.
3776 * exp_util.adb (Corresponding_Runtime_Package): Add a guard
3777 which ensures that restriction No_Dynamic_Attachment has not been
3778 violated.
3779 * sem_attr.adb: (Eval_Attribute): Transform
3780 VAX_Float_Type'First and 'Last into references to
3781 the temporaries which store the corresponding bounds. The
3782 transformation is needed since the back end cannot evaluate
3783 'First and 'Last on VAX.
3784 (Is_VAX_Float): New routine.
3785
37862011-09-02 Ed Schonberg <schonberg@adacore.com>
3787
3788 * sem_ch12.adb (Analyze_Subprogram_Instantiation): If the
3789 generic unit is not intrinsic and has an explicit convention,
3790 the instance inherits it.
3791
67c86178
AC
37922011-09-02 Robert Dewar <dewar@adacore.com>
3793
3794 * prj-dect.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, prj-tree.adb,
3795 prj.adb, prj.ads, sem_ch5.adb: Minor reformatting.
3796
37972011-09-02 Thomas Quinot <quinot@adacore.com>
3798
3799 * sem_attr.adb (Analyze_Attribute, case Unrestriced_Access):
3800 Guard against a prefix that is an N_Has_Entity but has no
3801 associated entity.
3802
38032011-09-02 Yannick Moy <moy@adacore.com>
3804
3805 * lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa
3806 references.
3807
38082011-09-02 Yannick Moy <moy@adacore.com>
3809
3810 * opt.ads (Warn_On_Suspicious_Contract): New warning flag.
3811 * sem_ch3.adb (Analyze_Declarations): Call checker for suspicious
3812 contracts.
3813 * sem_ch6.adb, sem_ch6.ads (Check_Subprogram_Contract): New
3814 procedure looking for suspicious postconditions.
3815 * usage.adb (Usage): New options -gnatw.t and -gnatw.T.
3816 * warnsw.adb (Set_Dot_Warning_Switch): Take into account new
3817 options -gnatw.t and -gnatw.T.
3818
735ca1b9
PO
38192011-09-02 Pascal Obry <obry@adacore.com>
3820
3821 * prj.adb: Minor code refactoring. Move check for null project in
3822 Project_Changed.
3823 * projects.texi: Fix minor typos.
3824
86828d40
AC
38252011-09-02 Ed Schonberg <schonberg@adacore.com>
3826
3827 * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
3828 of iteration is an expression, its value must be captured in a
3829 renaming declaration, so that modification of the elements is
3830 propagated to the original container.
3831
38322011-09-02 Pascal Obry <obry@adacore.com>
3833
3834 * prj-proc.adb, prj.adb, makeutl.adb, makeutl.ads, prj-dect.adb,
3835 prj-nmsc.adb, prj-util.adb, prj-conf.adb, prj-env.adb,
3836 prj-tree.adb: Minor reformatting and style fixes.
3837
83de674b
AC
38382011-09-02 Robert Dewar <dewar@adacore.com>
3839
3840 * s-rident.ads: Add new restriction No_Implicit_Aliasing
3841 * sem_attr.adb: (Analyze_Access_Attribute): Deal with
3842 No_Implicit_Aliasing
3843 (Analyze_Attribute, case Address): ditto
3844 (Analyze_Attribute, case Unrestricted_Access): ditto
3845 * sem_util.ads, sem_util.adb: (Is_Aliased_View): Handle
3846 No_Implicit_Aliasing restriction.
3847 * gnat_rm.texi: Add documentation for No_Implicit_Aliasing
3848
38492011-09-02 Ed Schonberg <schonberg@adacore.com>
3850
3851 * exp_util.adb: (Possible_Bit_Aligned_Object): If the object
3852 is an unchecked conversion, apply test to its expression.
3853
38542011-09-02 Javier Miranda <miranda@adacore.com>
3855
3856 * sem_ch3.adb (Check_Abstract_Overriding): When
3857 traversing the chain of aliased subprograms avoid reporting a
3858 redundant error on the current entity.
3859
38602011-09-02 Sergey Rybin <rybin@adacore.com>
3861
3862 * gnat_ugn.texi: Minor clean up.
3863
38642011-09-02 Bob Duff <duff@adacore.com>
3865
3866 * s-htable.adb (Set_If_Not_Present): Use renaming
3867 instead of ":=", because the type Key is limited in the generic (even
3868 if not in the instances).
3869
2c17ca0a
AC
38702011-09-02 Robert Dewar <dewar@adacore.com>
3871
3872 * exp_util.adb, sem_ch10.adb, sem_attr.adb, s-htable.adb,
3873 g-comlin.adb, g-comlin.ads, lib-xref-alfa.adb, lib-xref.adb: Minor
3874 reformatting.
3875
38762011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3877
3878 * sem_ch3.adb: (Set_Anonymous_Type): Associate the itype of an
3879 inherited component with the enclosing derived type. Code reformatting.
3880
38812011-09-02 Gary Dismukes <dismukes@adacore.com>
3882
3883 * checks.adb: (Determine_Range): Add test of OK1 to prevent the early
3884 return done when overflow checks are enabled, since comparisons against
3885 Lor and Hir should not be done when OK1 is False.
3886
38872011-09-02 Gary Dismukes <dismukes@adacore.com>
3888
3889 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
3890 Add new formal Master_Exp. When present, add that expression to the
3891 call as an extra actual.
3892 (Make_Build_In_Place_Call_In_Object_Declaration): Add variable
3893 Fmaster_Actual and in the case of a BIP call initializing a return
3894 object of an enclosing BIP function set it to a
3895 new reference to the implicit finalization master
3896 formal of the enclosing function. Fmaster_Actual is
3897 then passed to the new formal Master_Exp on the call to
3898 Add_Finalization_Master_Actual_To_Build_ In_Place_Call. Move
3899 initializations of Enclosing_Func to its declaration.
3900
39012011-09-02 Thomas Quinot <quinot@adacore.com>
3902
3903 * csets.ads: Minor reformatting
3904
39052011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3906
3907 * exp_aggr.adb: (Get_Constraint_Association): Add code to retrieve
3908 the full view of a private type coming from an instantiation.
3909 * exp_ch4.adb: (Current_Anonymous_Master): Reimplement the search
3910 loop to iterate over the declarations rather than use the
3911 First_Entity / Next_Entity scheme.
3912
ed32b82e
ES
39132011-09-02 Ed Schonberg <schonberg@adacore.com>
3914
3915 * sem_attr.adb: (Analyze_Attribute, case 'Range): when expanding
3916 X'range (N) into X'First (N) .. X'Last (N), do not share the
3917 dimension indicator N, if present. Even though it is a static
3918 constant, its source location may be modified when printing
3919 expanded code under -gnatDL, and node sharing will lead to chaos
3920 in Sprint on large files, by generating a sloc value that does
3921 not correspond to any source file.
3922
f7bb41af
AC
39232011-09-02 Bob Duff <duff@adacore.com>
3924
3925 * einfo.adb: (Has_Xref_Entry): Do not call
3926 Implementation_Base_Type. Lib.Xref has been
3927 rewritten to avoid the need for it, and it was costly.
3928 * s-htable.ads,s-htable.adb: (Present,Set_If_Not_Present): New
3929 functions in support of efficient xref.
3930 * lib-xref-alfa.adb: Misc changes related to Key component of
3931 type Xref_Entry.
3932 * lib-xref.adb: (Add_Entry,etc): Speed improvement.
3933 (New_Entry): Call Implementation_Base_Type, because Has_Xref_Entry
3934 no longer does. This is the one place where it is needed.
3935
39362011-09-02 Johannes Kanig <kanig@adacore.com>
3937
3938 * g-comlin.adb (Getopt): New optional argument Concatenate to have
3939 similar interface as the other Getopt function.
3940
39412011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3942
3943 * exp_ch4.adb: (Expand_Allocator_Expression): Do not generate
3944 a call to Set_Finalize_Address if there is no allocator available.
3945 * exp_util.adb: (Build_Allocate_Deallocate_Proc): Account for
3946 a case of allocator expansion where the allocator is not expanded but
3947 needs a custom allocate routine. Code reformatting.
3948 (Is_Finalizable_Transient): Remove local variables Has_Rens and
3949 Ren_Obj. Code reformatting.
3950 (Is_Renamed): Renamed to Is_Aliased. Add code to detect aliasing
3951 through the use of 'reference.
3952 * sem_ch4.adb: (Analyze_Allocator): Detect allocators generated
3953 as part of build-in-place expansion. They are intentionally marked as
3954 coming from source, but their parents are not.
3955
bd0bc43e
AC
39562011-09-02 Ed Schonberg <schonberg@adacore.com>
3957
3958 * sem_ch10.adb (Analyze_With_Clause): If the library unit
3959 is the generated subprogram declaration for a child unit body
3960 that acts as spec, use the original body in the with_clause,
3961 to prevent binding errors.
3962
39632011-09-02 Vincent Celier <celier@adacore.com>
3964
3965 * gnat_ugn.texi: Adapt documentation of -gnateInnn to new VMS
3966 qualifier /MULTI_UNIT_INDEX=
3967
39682011-09-02 Johannes Kanig <kanig@adacore.com>
3969
3970 * g-comlin.adb (Getopt): Return when switch is dealt with automatically,
3971 instead of calling the callback function
3972
9fdb5d21
RD
39732011-09-02 Robert Dewar <dewar@adacore.com>
3974
3975 * prj-proc.adb, prj.ads, sem_util.adb, s-taprop-linux.adb,
3976 prj-nmsc.adb, prj-util.ads, prj-env.adb: Minor reformatting.
3977
c6d5d1ac
AC
39782011-09-02 Vincent Celier <celier@adacore.com>
3979
3980 * prj-nmsc.adb: (Find_Sources): When the list of sources is
3981 explicitly declared in an extending project, do not warn if a source
3982 for an inherited naming exception is not found.
3983
39842011-09-02 Gary Dismukes <dismukes@adacore.com>
3985
3986 * exp_ch6.adb: (Is_Build_In_Place_Function_Call): Return False if
3987 expansion is inactive.
3988
39892011-09-02 Ed Schonberg <schonberg@adacore.com>
3990
3991 * sem_util.adb (Note_Possible_Modification): If the entity
3992 being modified is the renaming generated for an Ada2012 iterator
3993 element, the enclosing container or array is modified as well.
3994
2ba1a7c7
AC
39952011-09-02 Jose Ruiz <ruiz@adacore.com>
3996
3997 * s-taprop-linux.adb (Initialize_Lock, Initialize_TCB,
3998 Initialize): Define and initialize the
3999 mutex attributes and condition variable attributes locally.
4000
40012011-09-02 Vincent Celier <celier@adacore.com>
4002
4003 * prj-nmsc.adb (Check_File): Mark as Locally_Removed a naming
4004 exception replaced in an extending project.
4005 (Check_Object): No error when the other source is locally removed.
4006
40072011-09-02 Yannick Moy <moy@adacore.com>
4008
4009 * exp_ch6.adb (Is_Build_In_Place_Function_Call): in Alfa mode, allow
4010 unresolved calls.
4011
d51813db
AC
40122011-08-31 Arnaud Charlet <charlet@adacore.com>
4013
4014 * gcc-interface/Makefile.in: Clean up handling of x86 and x86-64
4015 run-time files.
4016 * gcc-interface/Make-lang.in: Update dependencies.
4017
9f55bc62
AC
40182011-09-01 Robert Dewar <dewar@adacore.com>
4019
4020 * sem_ch3.adb, s-taprop-linux.adb, gnatls.adb: Minor reformatting.
4021
40222011-09-01 Jose Ruiz <ruiz@adacore.com>
4023
4024 * adaint.h (__gnat_cpu_free): Fix the name of this profile.
4025 * adaint.c (__gnat_cpu_alloc, __gnat_cpu_alloc_size, __gnat_cpu_free,
4026 __gnat_cpu_zero, __gnat_cpu_set): Create version of these subprograms
4027 specific for systems where their glibc version does not define the
4028 routines to handle dynamically allocated CPU sets.
4029
40302011-09-01 Vincent Celier <celier@adacore.com>
4031
4032 * prj-proc.adb, prj.ads, prj-nmsc.adb, prj-util.adb, prj-util.ads,
4033 prj-env.adb: Implement inheritance of naming exceptions in extending
4034 projects.
4035
d7386a7a
AC
40362011-09-01 Romain Berrendonner <berrendo@adacore.com>
4037
4038 * gnatls.adb: Display simple message instead of content of
4039 gnatlic.adl.
4040
40412011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4042
4043 * sem_ch3.adb: (Build_Derived_Record_Type) Remove the kludgy update of
4044 access discriminant and anonymous access component scopes.
4045 (Inherit_Component): Reuse the itype of an access discriminant
4046 or anonymous access component by copying it in order to set the proper
4047 scope. This is done only when the parent and the derived type
4048 are in different scopes.
4049 (Set_Anonymous_Etype): New routine.
4050
40512011-09-01 Robert Dewar <dewar@adacore.com>
4052
4053 * a-convec.adb: Minor reformatting throughout.
4054
9d1e0e72
JR
40552011-09-01 Jose Ruiz <ruiz@adacore.com>
4056
4057 * adaint.c, adaint.h (__gnat_cpu_alloc, __gnat_cpu_alloc_size,
4058 __gnat_cpu_set_free): Create these wrappers around the CPU_ALLOC,
4059 CPU_ALLOC_SIZE and CPU_FREE linux macros.
4060 (__gnat_cpu_zero, __gnat_cpu_set): Use the CPU_ZERO_S and
4061 CPU_SET_S respectively because we are now using dynamically allocated
4062 CPU sets which are more portable across different glibc versions.
4063 * s-osinte-linux.ads (cpu_set_t_ptr, CPU_ALLOC, CPU_ALLOC_SIZE,
4064 CPU_FREE): Add this type and subprograms to be able to create cpu_set_t
4065 masks dynamically according to the number of processors in the target
4066 platform.
4067 (CPU_ZERO, CPU_SET): They are now mapped to the CPU_ZERO_S and CPU_SET_S
4068 respectively, so we need to pass the size of the masks as
4069 parameters.
4070 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use dynamically
4071 created cpu_set_t masks
4072 with the number of processors available in the target platform,
4073 instead of static bit arrays. It enhances portability because
4074 it uses the information from the target platform.
4075 * sem_ch8.adb: (Attribute_Renaming): When checking whether we
4076 are using a restricted run-time library, use the flag
4077 Configurable_Run_Time_Mode instead of Restricted_Profile.
4078
a95be2d4
AC
40792011-09-01 Vincent Celier <celier@adacore.com>
4080
4081 * ug_words: Add /MULTI_UNIT_INDEX= -> -gnateI
4082 * vms_data.ads: Add new VMS qualifier equivalent for -gnateInnn
4083
40842011-09-01 Nicolas Roche <roche@adacore.com>
4085
4086 * adaint.c (__gnat_tmp_name): Don't use tmpnam function from the system
4087 on VxWorks in kernel mode.
4088
6b81741c
AC
40892011-09-01 Jose Ruiz <ruiz@adacore.com>
4090
4091 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use the linux
4092 macros for handling CPU sets (CPU_ZERO, CPU_SET) instead of modifying
4093 directly the bit array.
4094 * s-osinte-linux.ads (CPU_ZERO, CPU_SET): Import these wrappers around
4095 the linux macros with the same name.
4096 * adaint.h, adaint.c (__gnat_cpu_zero, __gnat_cpu_set): Create these
4097 wrappers around the CPU_ZERO and CPU_SET linux macros.
4098
40992011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4100
4101 * exp_ch7.adb (Find_Insertion_List): Removed.
4102 (Process_Transient_Objects): Insert the declarations of the hook
4103 access type and the hook object before the associated transient object.
4104
41052011-09-01 Jose Ruiz <ruiz@adacore.com>
4106
4107 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
4108 package System.Aux_Dec when using restricted run-time libraries which
4109 do not have this package.
4110
41112011-09-01 Tristan Gingold <gingold@adacore.com>
4112
4113 * s-vaflop-vms-alpha.adb: Remove pragma optimize, useless.
4114
41152011-09-01 Bob Duff <duff@adacore.com>
4116
4117 * sem_attr.adb (Analyze_Access_Attribute): Do not call
4118 Kill_Current_Values for P'Unrestricted_Access, where P is library level
4119
41202011-09-01 Thomas Quinot <quinot@adacore.com>
4121
4122 * exp_ch5.adb: Minor reformatting
4123 * gnat_ugn.texi: Fix minor typos.
4124 * gcc-interface/Make-lang.in: Update dependencies.
4125
8256c1bf
AC
41262011-09-01 Robert Dewar <dewar@adacore.com>
4127
4128 * inline.adb, sem_aggr.adb: Minor reformatting.
4129
41302011-09-01 Ed Schonberg <schonberg@adacore.com>
4131
4132 * a-convec.adb: Proper handling of cursors for Ada2012 iterators.
4133
d1c5f424
AC
41342011-09-01 Robert Dewar <dewar@adacore.com>
4135
4136 * prj-proc.adb, exp_ch6.adb, prj-env.adb: Minor reformatting.
4137
41382011-09-01 Bob Duff <duff@adacore.com>
4139
4140 * sem_aggr.adb (Resolve_Aggregate): Need to treat "in instance
4141 body" the same as "in inlined body", because visibility shouldn't
4142 apply there.
4143
41442011-09-01 Eric Botcazou <ebotcazou@adacore.com>
4145
4146 * inline.adb (Add_Inlined_Body): Refine previous change.
4147
1bb6e262
AC
41482011-09-01 Gary Dismukes <dismukes@adacore.com>
4149
4150 * exp_ch6.ads (Needs_BIP_Alloc_Form): New utility function.
4151 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
4152 Test for case where call
4153 initializes an object of a return statement before testing for
4154 a constrained call, to ensure that all such cases get handled
4155 by simply passing on the caller's parameters. Also, in that
4156 case call Needs_BIP_Alloc_Form to determine whether to pass on
4157 the BIP_Alloc_Form parameter of the enclosing function rather
4158 than testing Is_Constrained. Add similar tests for the return
4159 of a BIP call to later processing to ensure consistent handling.
4160 (Needs_BIP_Alloc_Form): New utility function.
4161 * sem_ch6.adb: (Create_Extra_Formals): Replace test for adding
4162 a BIP_Alloc_Form formal with call to new utility function
4163 Needs_BIP_Alloc_Form.
4164
41652011-09-01 Pascal Obry <obry@adacore.com>
4166
4167 * prj-part.adb: Minor reformatting.
4168
41692011-09-01 Vincent Celier <celier@adacore.com>
4170
4171 * prj-env.adb (Create_Mapping_File.Process): Encode the upper
4172 half character in the unit name.
4173
db15225a
AC
41742011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4175
4176 * exp_ch4.adb: Minor code and comment reformatting.
4177
41782011-09-01 Thomas Quinot <quinot@adacore.com>
4179
4180 * exp_ch6.adb (Expand_Inlined_Call): Remove redundant tests
4181 for Is_Limited_Type and Is_Tagged_Type in condition checking
4182 for by-reference type.
4183 * inline.adb (Add_Inlined_Body): Only exclude init_procs. Other
4184 subprograms may have a completion because of a previous
4185 Inline_Always clause, but the enclosing package must be marked
4186 inlined for the subprogram body to become visible to the backend.
4187
9d641fc0
TQ
41882011-09-01 Thomas Quinot <quinot@adacore.com>
4189
4190 * sem_aux.adb, exp_ch4.adb: Minor reformatting
4191
dbe36d67
AC
41922011-09-01 Pascal Obry <obry@adacore.com>
4193
4194 * prj-proc.adb, prj.ads, sinput-p.adb: Minor reformatting.
4195
41962011-09-01 Ed Schonberg <schonberg@adacore.com>
4197
4198 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Generate references to
4199 the formals of a subprogram stub that acts as a spec.
4200
42012011-09-01 Ed Schonberg <schonberg@adacore.com>
4202
4203 * exp_ch6.adb (Expand_Inlined_Call): If an actual is a by_reference
4204 type, declare a renaming for it, not an object declaration.
4205
f5037886
AC
42062011-09-01 Yannick Moy <moy@adacore.com>
4207
4208 * ali-util.adb, ali-util.ads (Read_Withed_ALIs): Add parameter
4209 Ignore_Errors to ignore failures to read ALI files when True.
4210
42112011-09-01 Javier Miranda <miranda@adacore.com>
4212
4213 * exp_ch3.adb (Expand_N_Object_Declaration): Handle non-default
4214 constructor calls associated with non-tagged record types.
4215
42162011-09-01 Robert Dewar <dewar@adacore.com>
4217
4218 * g-socthi-vms.adb: Minor reformatting.
4219
42202011-09-01 Nicolas Roche <roche@adacore.com>
4221
4222 * sysdep.c: Don't use macro functions for stdio functions on VxWorks
4223 in order to avoid impact of imcompatible changes.
4224 * cstreams.c: Likewise
4225 * cio.c: Likewise
4226 * aux-io.c: Likewise
4227
42282011-09-01 Yannick Moy <moy@adacore.com>
4229
4230 * lib-writ.adb (Write_With_Lines): Always output complete information
4231 on "with" line in Alfa mode, as this is required by formal verification
4232 back-end.
4233
549e4558
AC
42342011-09-01 Tristan Gingold <gingold@adacore.com>
4235
4236 * g-socthi-vms.adb: Add comments.
4237
42382011-09-01 Pascal Obry <obry@adacore.com>
4239
4240 * prj.ads: Minor reformatting.
4241
70c0422d
AC
42422011-09-01 Vincent Celier <celier@adacore.com>
4243
4244 * prj-env.adb (Create_Config_Pragmas_File.Check): Put all naming
4245 exceptions in the config pragmas file.
4246
42472011-09-01 Tristan Gingold <gingold@adacore.com>
4248
4249 * gnat_ugn.texi: Document GNAT_STACK_SIZE on IVMS.
4250
8c5b03a0
AC
42512011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4252
4253 * exp_ch7.adb (Find_Insertion_List): New routine.
4254 (Process_Transient_Objects): Add code to handle the abnormal
4255 finalization of a controlled transient associated with a subprogram
4256 call. Since transients are cleaned up right after the associated
4257 context, an exception raised during a subprogram call may bypass the
4258 finalization code.
4259
42602011-09-01 Robert Dewar <dewar@adacore.com>
4261
4262 * exp_ch6.adb (Expand_Call): Check actual for aliased parameter is
4263 aliased.
4264
3040dbd4
RD
42652011-09-01 Robert Dewar <dewar@adacore.com>
4266
4267 * exp_ch4.adb, a-exexda.adb: Minor reformatting.
4268
fecbd779
AC
42692011-09-01 Robert Dewar <dewar@adacore.com>
4270
4271 * s-taskin.ads, s-tassta.adb, sem_ch13.adb: Minor reformatting.
4272
42732011-09-01 Thomas Quinot <quinot@adacore.com>
4274
4275 * Makefile.rtl: Move s-oscons.o from GNATRTL_TASKING_OBJS to
4276 GNATRTL_NONTASKING_OBJS.
4277
42782011-09-01 Robert Dewar <dewar@adacore.com>
4279
4280 * einfo.ads (Is_Aliased): Fix existing documentation and add note on
4281 possibility of this flag being set for formals in Ada 2012 mode.
4282 * par-ch6.adb (P_Formal_Part): Handle aliased for parameters for Ada
4283 2012.
4284 * sem_ch6.adb (Process_Formals): Handle aliased parameters in Ada 2012
4285 mode.
4286 * sinfo.adb (Aliased_Present): Allowed in N_Parameter_Specification for
4287 Ada 2012.
4288 * sinfo.ads (Aliased_Present): Allowed in N_Parameter_Specification for
4289 Ada 2012.
4290
42912011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4292
4293 * exp_ch4.adb (Find_Insertion_Node): New routine. Determines the proper
4294 insertion node in a tree of nested Expression_With_Actions nodes.
4295 (Process_Transient_Object): In the case where a complex if statement
4296 has been converted into nested Expression_With_Actions nodes, the
4297 "hook" object and the associated access type must be inserted before
4298 the top most Expression_With_Actions.
4299
516f608f
AC
43002011-09-01 Robert Dewar <dewar@adacore.com>
4301
4302 * a-cbprqu.adb, a-cbprqu.ads, a-cuprqu.adb, a-cuprqu.ads,
4303 a-cbsyqu.adb, a-cbsyqu.ads: Minor reformatting.
4304
43052011-09-01 Ed Schonberg <schonberg@adacore.com>
4306
4307 * sem_attr.adb: Conditionalize aliasing predicates to Ada2012.
4308
43092011-09-01 Jose Ruiz <ruiz@adacore.com>
4310
4311 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the CPU
4312 aspect.
4313 * aspects.adb (Canonical_Aspect): Add entry for the CPU aspect.
4314 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the CPU aspect
4315 in a similar way as we do for the Priority or Dispatching_Domain aspect.
4316 * s-mudido-affinity.adb (Dispatching_Domain_Tasks,
4317 Dispatching_Domains_Frozen): Move this local data to package
4318 System.Tasking because with the CPU aspect we need to have access
4319 to this data when creating the task in System.Tasking.Stages.Create_Task
4320 * s-taskin.ads (Dispatching_Domain_Tasks, Dispatching_Domains_Frozen):
4321 Move these variables from the body of
4322 System.Multiprocessors.Dispatching_Domains because with the CPU aspect
4323 we need to have access to this data when creating the task in
4324 System.Tasking.Stages.Create_Task.
4325 * s-taskin.adb (Initialize): Signal the allocation of the environment
4326 task to a CPU, if any, so that we know whether the CPU can be
4327 transferred to a different dispatching domain.
4328 * s-tassta.adb (Create_Task): Check whether the CPU to which this task
4329 is being allocated belongs to the dispatching domain where the task
4330 lives. Signal the allocation of the task to a CPU, if any, so that we
4331 know whether the CPU can be transferred to a different dispatching
4332 domain.
4333
2d42e881
ES
43342011-09-01 Ed Schonberg <schonberg@adacore.com>
4335
4336 * exp_attr.adb, sem_attr.adb, snames.ads-tmpl: Implementation of
4337 attributes Same_Storage and Overlaps_Storage.
4338
579fda56
AC
43392011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4340
4341 * exp_strm.adb: Remove with and use clause for Opt.
4342 (Build_Array_Input_Function): Remove the version-dependent generation
4343 of the return statement. The Ada 2005 tree is now the default.
4344
43452011-09-01 Yannick Moy <moy@adacore.com>
4346
4347 * put_alfa.adb: Unconditionnally write files in Alfa section, so that
4348 it is never empty when compiling in Alfa mode.
4349
43502011-09-01 Robert Dewar <dewar@adacore.com>
4351
4352 * sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb,
4353 comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb,
4354 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
4355 gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting
4356
43572011-09-01 Matthew Heaney <heaney@adacore.com>
4358
4359 * Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb],
4360 a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb]
4361 * a-csquin.ads: New Ada 2012 unit that specifies the queue interface
4362 * a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the
4363 unbounded queue container.
4364 * a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the
4365 bounded queue container.
4366 * a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the
4367 unbounded priority queue container.
4368 * a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the
4369 bounded priority queue container.
4370
24c34107
AC
43712011-08-31 Pascal Obry <obry@adacore.com>
4372
4373 * a-direct.adb: Do not try to create an UNC path on Windows.
4374 (Create_Path): Skip leading computer name in UNC path if any.
4375
43762011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4377
4378 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): Remove the
4379 version-dependent generation of the return statement. The Ada 2005 tree
4380 is now the default.
4381
43822011-08-31 Thomas Quinot <quinot@adacore.com>
4383
4384 * rtsfind.ads, exp_dist.adb (Find_Numeric_Representation): Predefined
4385 types Stream_Element_Offset and Storage_Offset have a different native
4386 type depending on whether the platform is 32 or 64 bits. When
4387 exchanging them, always convert to 64 bits.
4388
43892011-08-31 Yannick Moy <moy@adacore.com>
4390
4391 * debug.adb: Reserve debug option -gnatd.E for passing gnatprove option
4392 --force-alfa to gnat2why.
4393
43942011-08-31 Ed Schonberg <schonberg@adacore.com>
4395
4396 * sem_ch12.adb (Save_References): If the node has aspects, save
4397 references within the corresponding expressions in a separate step,
4398 because the aspects are not directly in the tree for the declaration
4399 to which they belong.
4400
44012011-08-31 Arnaud Charlet <charlet@adacore.com>
4402
4403 * freeze.adb (Freeze_Record_Type): Omit test on variable size component
4404 in CodePeer mode, since representation clauses are partially ignored.
4405 * gcc-interface/Make-lang.in: Update dependencies.
4406
702d2020
AC
44072011-08-31 Jose Ruiz <ruiz@adacore.com>
4408
4409 * s-taprop-vxworks.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
4410 s-taprop-solaris.adb (Create_Task): Not_A_Specific_CPU can be assigned
4411 to any dispatching domain.
4412
44132011-08-31 Thomas Quinot <quinot@adacore.com>
4414
4415 * exp_ch4.adb: Minor reformatting.
4416
44172011-08-31 Bob Duff <duff@adacore.com>
4418
4419 * sem_ch6.adb (Get_Generic_Parent_Type): Don't query Subtype_Indication
4420 on nodes for which it is not defined.
4421 (Is_Non_Overriding_Operation): Exit the loop when we find a generic
4422 parent type.
4423
44242011-08-31 Bob Duff <duff@adacore.com>
4425
4426 * sem_ch3.adb (Process_Full_View): Disable legality check if
4427 In_Instance, to avoid spurious errors.
4428 * sem_ch12.adb (Validate_Derived_Type_Instance): Disable legality check
4429 if In_Instance, to avoid spurious errors.
4430
44312011-08-31 Pascal Obry <obry@adacore.com>
4432
4433 * a-direct.adb: Use Dir_Seps everywhere to properly handle all
4434 directory speparators.
4435 (Compose): Use Dir_Seps to handle both forms.
4436 (Create_Path): Use Dir_Seps instead of explicit check, no semantic
4437 changes.
4438 (Extension): Use Dir_Seps to handle both forms.
4439
44402011-08-31 Pascal Obry <obry@adacore.com>
4441
4442 * prj-conf.adb: Minor reformatting.
4443
67645bde
AC
44442011-08-31 Jose Ruiz <ruiz@adacore.com>
4445
4446 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the
4447 dispatching domain aspect.
4448 * aspects.adb (Canonical_Aspect): Add entry for the dispatching domain
4449 aspect.
4450 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the
4451 Dispatching_Domain aspect in a similar way as we do for the Priority
4452 aspect.
4453 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add the
4454 Dispatching_Domain component if a Dispatching_Domain pragma or aspect
4455 is present.
4456 (Make_Task_Create_Call): Add the Dispatching_Domain when creating a task
4457 * par-prag.adb (Prag): Add Pragma_Dispatching_Domain as a known pragma.
4458 * sem_prag.adb (Analyze_Pragma): Check the correctness of a pragma
4459 Dispatching_Domain and add it to the task definition.
4460 (Sig_Flags): Add Pragma_Dispatching_Domain.
4461 * rtsfind.ads, rtsfind.adb (RTU_Id, RE_Id, Get_Unit_Name): Add the
4462 support to find the types Dispatching_Domain and
4463 Dispatching_Domain_Access.
4464 * sinfo.ads, sinfo.adb (Has_Pragma_Dispatching_Domain,
4465 Set_Has_Pragma_Dispatching_Domain): Add these subprograms to set and
4466 query the availability of a pragma Dispatching_Domain.
4467 * snames.ads-tmpl (Name_uDispatching_Domain): Add this name required by
4468 the expander to pass the Dispatching_Domain when creating a task.
4469 (Name_Dispatching_Domain): Add this new name for a pragma.
4470 (Pragma_Id): Add the new Pragma_Dispatching_Domain.
4471 * s-tassta.ads, s-tassta.adb (Create_Task): Set the domain to which the
4472 task has been allocated at creation time.
4473 * s-tarest.adb (Create_Restricted_Task): The dispatching domain using
4474 Ravenscar is always null.
4475 * s-taskin.ads, s-taskin.adb (Initialize_ATCB): Set the domain to which
4476 the task has been allocated at creation time.
4477 * s-tporft.adb (Register_Foreign_Thread): A foreign task will not have
4478 a specific dispatching domain.
4479 * s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-vxworks.adb,
4480 s-taprop-mingw.adb (Create_Task): Check whether both Dispatching_Domain
4481 and CPU are specified for the task, and the CPU value is not contained
4482 within the range of processors for the domain.
4483
44842011-08-31 Vincent Celier <celier@adacore.com>
4485
4486 * make.adb (Original_Gcc) : New constant String_Access.
4487 (Gnatmake): For VM targets, do not use VM version of the compiler if
4488 --GCC= has been specified.
4489
44902011-08-31 Thomas Quinot <quinot@adacore.com>
4491
4492 * sem_ch5.adb: Minor reformatting.
4493
44942011-08-31 Ed Schonberg <schonberg@adacore.com>
4495
4496 * exp_pakd.adb (Convert_To_PAT_Type): If prefix is a function call, do
4497 not reanalyze it.
4498
44992011-08-31 Bob Duff <duff@adacore.com>
4500
4501 * exp_ch4.adb (Expand_N_Selected_Component): Use the full type, in case
4502 the access type is private; we don't care about privacy in expansion.
4503
45042011-08-31 Ed Schonberg <schonberg@adacore.com>
4505
4506 * sem_aggr.adb (Resolve_Aggregate): In an instance, ignore aggregate
4507 subcomponents tnat may be limited, because they originate in view
4508 conflicts. If the original aggregate is legal and the actuals are
4509 legal, the aggregate itself is legal.
4510
b8789727
AC
45112011-08-31 Matthew Heaney <heaney@adacore.com>
4512
4513 * a-rbtgbo.adb (Clear_Tree): Assert representation invariant for lock
4514 status.
4515
45162011-08-31 Ed Schonberg <schonberg@adacore.com>
4517
4518 * sem_ch5.adb: Set kind of loop parameter properly, to preserve all
4519 errors in B tests.
4520
45212011-08-31 Jose Ruiz <ruiz@adacore.com>
4522
4523 * sem_ch13.adb (Analyze_Aspect_Specifications): For the Priority and
4524 Interrupt_Priority aspects, force the analysis of the aspect expression
4525 (when building the equivalent pragma). Otherwise, its analysis is done
4526 too late, after the task or protected object has been created.
4527 * sem_ch9.adb (Analyze_Single_Protected_Declaration,
4528 Analyze_Single_Task_Declaration): Remove the code to move the aspects
4529 to the object declaration because they are needed in the type
4530 declaration.
4531
e0c32166
AC
45322011-08-31 Robert Dewar <dewar@adacore.com>
4533
4534 * exp_ch5.adb, exp_ch7.ads, sem_ch5.adb, put_scos.adb, s-rannum.adb,
4535 a-rbtgbo.adb, exp_intr.adb, a-cbdlli.adb, a-cbdlli.ads: Minor
4536 reformatting.
4537
45382011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4539
4540 * exp_util.adb (Find_Protection_Type): Do not look for fields _object
4541 if the corresponding type is malformed due to restriction violations.
4542
45432011-08-31 Robert Dewar <dewar@adacore.com>
4544
4545 * s-ransee.ads, s-ransee.adb: Minor reformatting.
4546
45472011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4548
4549 * exp_ch4.adb (Expand_N_Allocator): Correct faulty condition which
4550 would cause the generation of Set_Finalize_Address if the target is a
4551 VM and the designated type is not derived from [Limited_]Controlled.
4552
45532011-08-31 Arnaud Charlet <charlet@adacore.com>
4554
4555 * comperr.adb, comperr.ads, gnat1drv.adb (Delete_SCIL_Files): New
4556 subprogram.
4557 (Compiler_Abort, Gnat1drv): Call Delete_SCIL_Files in codepeer mode in
4558 case of a compilation error.
4559
45602011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4561
4562 * init.c (__gnat_error_handler): Standardize the stack overflow or
4563 erroneous memory access message.
4564 * seh_init.c (__gnat_SEH_error_handler): Standardize the stack overflow
4565 or erroneous memory access message.
4566
11bc76df
AC
45672011-08-31 Robert Dewar <dewar@adacore.com>
4568
4569 * sem_ch4.adb: Minor reformatting.
4570 * sem_ch6.adb: Minor code reorganization (use Ekind_In).
4571
45722011-08-31 Thomas Quinot <quinot@adacore.com>
4573
4574 * scos.ads: Minor documentation clarification.
4575 * put_scos.adb: Do not generate SCO unit header line for a unit that
4576 has no SCO lines.
4577
876d4394
RD
45782011-08-31 Robert Dewar <dewar@adacore.com>
4579
4580 * a-rbtgbo.adb, alfa_test.adb: Minor reformatting.
4581
36b8f95f
AC
45822011-08-31 Tristan Gingold <gingold@adacore.com>
4583
4584 * exp_ch7.ads, exp_ch7.adb (Finalization_Exception_Data): New type to
4585 hold variables between these following subprograms.
4586 (Build_Exception_Handler, Build_Object_Declarations,
4587 Build_Raise_Statement): Use the above type as parameter.
4588 Make the above adjustments.
4589 * exp_intr.adb (Expand_Unc_Deallocation): Adjust.
4590
45912011-08-31 Pascal Obry <obry@adacore.com>
4592
4593 * projects.texi: Minor reformatting.
4594
45952011-08-31 Tristan Gingold <gingold@adacore.com>
4596
4597 * s-ransee.ads, s-ransee.adb: Add system.random_seed unit.
4598 * s-rannum.adb (Reset): Use Get_Seed from s-ransee.
4599
46002011-08-31 Ed Schonberg <schonberg@adacore.com>
4601
4602 * exp_ch5.adb: Minor code cleanup.
4603 * sem_ch5.adb (Analyze_Iteration_Scheme): Set ekind of loop variable to
4604 prevent cascaded errors.
4605 (Analyze_Loop_Statement): In semantics-only mode, introduce loop
4606 variable of an iterator specification in current scope.
4607 * sem_ch6.adb (Analyze_Return_Statement, Find_what_It_Apples_To): Skip
4608 postconditions on the stack, as they contain no return statements.
4609
46102011-08-31 Yannick Moy <moy@adacore.com>
4611
4612 * exp_alfa.adb (Expand_Alfa_N_Package_Declaration,
4613 Expand_Alfa_N_Subprogram_Body): Remove useless procedures which simply
4614 call Qualify_Entity_Names.
4615 (Expand_Alfa): call Qualify_Entity_Names in more cases
4616 * lib-xref-alfa.adb: Take into account system package.
4617 * sem_prag.adb Take into account restrictions in Alfa mode, contrary to
4618 CodePeer mode in which we are interested in finding bugs even if
4619 compiler cannot compile source.
4620 * sem_util.adb, sem_util.ads (Unique_Entity): Take into account case of
4621 deferred constant.
4622
46232011-08-31 Gary Dismukes <dismukes@adacore.com>
4624
4625 * sem_ch3.adb (Constrain_Concurrent): Retrieve Base_Type of the subtype
4626 denoted by the subtype mark to ensure getting the concurrent type in
4627 the case where the subtype mark denotes a private subtype of a
4628 concurrent type (needed when using -gnatc).
4629 (Process_Subtype): For the processing specific to type kinds, case on
4630 the Base_Type kind of the Subtype_Mark_Id, to handle cases where the
4631 subtype denotes a private subtype whose base type is nonprivate (needed
4632 for subtypes of private fulfilled by task types when compiling with
4633 -gnatc).
4634
46352011-08-31 Gary Dismukes <dismukes@adacore.com>
4636
4637 * sem_disp.adb (Check_Dispatching_Operation): Bypass registration of
4638 late primitives that override interface operations when the full
4639 expander is not active, to avoid blowups in Register_Primitive when
4640 types don't have associated secondary dispatch tables.
4641
46422011-08-31 Yannick Moy <moy@adacore.com>
4643
4644 * alfa_test.adb: Code clean up.
4645
46462011-08-31 Marc Sango <sango@adacore.com>
4647
4648 * restrict.adb (Check_SPARK_Restriction): Change Comes_From_Source (N)
4649 by Comes_From_Source (Original_Node (N)) in order to treat also the
4650 nodes which have been rewritten.
4651 * sem_ch4.adb (Analyze_Explicit_Dereference, Analyze_Slice): Guard the
4652 explicit dereference and slice violation in spark mode on the nodes
4653 coming only from the source code.
4654
8cf23b91
AC
46552011-08-31 Robert Dewar <dewar@adacore.com>
4656
4657 * exp_ch5.adb, exp_alfa.ads, prj.ads, sem_attr.adb,
4658 lib-xref-alfa.adb: Minor reformatting.
4659
46602011-08-31 Matthew Heaney <heaney@adacore.com>
4661
4662 * a-crbltr.ads (Tree_Type): Default-initialize the Nodes component.
4663
46642011-08-31 Javier Miranda <miranda@adacore.com>
4665
4666 * sem_ch4.adb (Try_Object_Operation): Addition of one formal to search
4667 only for class-wide subprograms conflicting with entities of concurrent
4668 tagged types.
4669
46702011-08-31 Matthew Heaney <heaney@adacore.com>
4671
4672 * a-rbtgbo.adb (Generic_Allocate): Initialize pointer components of
4673 node to null value.
4674
46752011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4676
4677 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Provide a more
4678 general description of the routine.
4679
46802011-08-31 Ed Schonberg <schonberg@adacore.com>
4681
4682 * a-cbdlli.adb, a-cbdlli.ads: Add iterator machinery to bounded
4683 doubly-linked lists.
4684
0bb3bfb8
GD
46852011-08-31 Gary Dismukes <dismukes@adacore.com>
4686
4687 * exp_ch5.adb (Expand_N_Assignment_Statement): When a discriminant
4688 check is needed for a left-hand side that is a dereference, and the
4689 base type is private without discriminants (whereas the full type does
4690 have discriminants), an extra retrieval of the underlying type may be
4691 needed in the case where the subtype is a record subtype whose base
4692 type is private. Update comments.
4693
11fa950b
AC
46942011-08-31 Javier Miranda <miranda@adacore.com>
4695
4696 * sem_ch4.adb (Try_Object_Operation): When a dispatching primitive is
4697 found check if there is a class-wide subprogram covering the primitive.
4698
46992011-08-31 Yannick Moy <moy@adacore.com>
4700
4701 * sem_res.adb: Further cases where full expansion test is needed,
4702 rather than expansion test.
4703
47042011-08-31 Pascal Obry <obry@adacore.com>
4705
4706 * prj-attr.adb: Fix Source_File_Switches attribute kind (must be a list)
4707
47082011-08-31 Ed Schonberg <schonberg@adacore.com>
4709
4710 * exp_ch5.adb: Handle iterators over derived container types.
4711
47122011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4713
4714 * einfo.ads, einfo.adb: Add new flag Has_Anonymous_Master.
4715 (Has_Anonymous_Master): New routine.
4716 (Set_Has_Anonymous_Master): New routine.
4717 (Write_Entity_Flags): Add an entry for Has_Anonymous_Master.
4718 * exp_ch4.adb: Add with and use clause for Sem_Ch8.
4719 (Current_Anonymous_Master): New routine.
4720 (Current_Unit_First_Declaration): Removed.
4721 (Current_Unit_Scope): Removed.
4722 (Expand_N_Allocator): Anonymous access-to-controlled types now chain
4723 their objects on a per-unit heterogeneous finalization master.
4724
47252011-08-31 Matthew Heaney <heaney@adacore.com>
4726
4727 * a-cbhama.adb, a-cbhase.adb (Insert): Check for zero-length buckets
4728 array.
4729
47302011-08-31 Jose Ruiz <ruiz@adacore.com>
4731
4732 * s-taprop-linux.adb (Create_Task): Avoid changing the affinity mask
4733 when not needed.
4734
47352011-08-31 Gary Dismukes <dismukes@adacore.com>
4736
4737 * sem_disp.adb (Propagate_Tag): Return without propagating in the case
4738 where the actual is an unexpanded call to 'Input.
4739
d2b4b3da
AC
47402011-08-31 Yannick Moy <moy@adacore.com>
4741
4742 * sem_ch4.adb: Code clean up.
4743
47442011-08-31 Yannick Moy <moy@adacore.com>
4745
4746 * exp_alfa.adb, exp_alfa.ads: Minor correction of copyright notice.
4747
47482011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4749
4750 * exp_ch7.adb (Build_Array_Deep_Procs): Do not generate Deep_Finalize
4751 and TSS primitive Finalize_Address if finalization is suppressed.
4752 (Build_Record_Deep_Procs): Do not generate Deep_Finalize and TSS
4753 primitive Finalize_Address if finalization is suppressed.
4754
47552011-08-31 Jose Ruiz <ruiz@adacore.com>
4756
4757 * s-mudido-affinity.adb, s-taprop-linux.adb, s-taprop-mingw.adb,
4758 s-taprop-solaris.adb, s-taprop-vxworks.adb (Set_Task_Affinity): Make
4759 sure that the underlying task has already been created before trying
4760 to change its affinity.
4761 (Set_CPU): Use the term processor instead of CPU, as we do in
4762 Assign_Task.
4763
47642011-08-31 Vincent Celier <celier@adacore.com>
4765
4766 * prj-attr.adb: New Compiler attribute Source_File_Switches.
4767 * prj-nmsc.adb (Process_Compiler): Process attribute
4768 Source_File_Switches.
4769 * prj.ads (Language_Config): New name list component
4770 Name_Source_File_Switches.
4771 * snames.ads-tmpl (Name_Source_File_Switches): New standard name.
4772
47732011-08-31 Ed Schonberg <schonberg@adacore.com>
4774
4775 * sem_attr.adb (Analyze_Attribute, case 'Old): If prefix may be a
4776 discriminated component of an actual, expand at once to prevent
4777 ouf-of-order references with generated subtypes.
4778
47792011-08-31 Yannick Moy <moy@adacore.com>
4780
4781 * lib-xref-alfa.adb (Add_Alfa_Xrefs): Do not take into account read
4782 reference to operator in Alfa xrefs.
4783
47842011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4785
4786 * sem_ch12.adb (Freeze_Subprogram_Body): Add code to handle the case
4787 where the parent instance was frozen before the current instance due to
4788 the presence of a source body. Update calls to Insert_After_Last_Decl.
4789 (Insert_After_Last_Decl): Renamed to Insert_Freeze_Node_For_Instance.
4790 Update the comment which illustrates the purpose of the routine.
4791 Package instances are now frozen by source bodies which appear after
4792 the instance. This ensures that entities coming from within the
4793 instance are available for use in the said bodies.
4794 (Install_Body): Add code to handle the case where the parent instance
4795 was frozen before the current instance due to the presence of a source
4796 body. Update calls to Insert_After_Last_Decl.
4797
56812278
AC
47982011-08-31 Jose Ruiz <ruiz@adacore.com>
4799
4800 * s-taprop-linux.adb (Set_Task_Affinity): Avoid the use of anonymous
4801 access types.
4802 * affinity.c (__gnat_set_affinity_mask): Declare index variable.
4803
48042011-08-31 Yannick Moy <moy@adacore.com>
4805
4806 * sem_ch8.adb (Analyze_Subprogram_Renaming): Refine expander test in
4807 full-expander test.
16c3301a
AC
4808 * alfa.adb, alfa.ads, alfa_test.adb, ali.adb, debug.adb, errout.adb,
4809 errout.ads, erroutc.adb, expander.adb, exp_ch4.adb, exp_ch7.adb,
4810 freeze.adb, get_alfa.adb, get_alfa.ads, gnat1drv.adb, lib-writ.adb,
4811 lib-writ.ads, lib-xref.adb, lib-xref.ads, lib-xref-alfa.adb, opt.adb,
4812 opt.ads, put_alfa.adb, put_alfa.ads, restrict.adb, sem_ch12.adb,
4813 sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4814 sem_prag.adb, sem_res.adb, sem_util.adb: Minor reformatting, renaming
4815 ALFA in Alfa (we dropped acronym).
56812278
AC
4816 * einfo.adb (Primitive_Operations): Correctly return list of primitive
4817 operations in a case where it returned previously No_Elist.
4818
7cda9727
RD
48192011-08-31 Robert Dewar <dewar@adacore.com>
4820
4821 * s-taprop-vxworks.adb, sem_ch5.adb, s-taprop-tru64.adb, exp_alfa.adb,
4822 s-taprop-vms.adb, bindgen.adb, s-mudido.adb, s-mudido.ads,
4823 sem_res.adb, expander.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
4824 s-taprop-solaris.adb, s-mudido-affinity.adb, vms_conv.adb,
4825 s-taprop-irix.adb, s-taprop.ads, s-taskin.adb, s-taskin.ads,
4826 s-taprop-hpux-dce.adb, a-chtgbo.adb, s-taprop-posix.adb: Minor
4827 reformatting.
4828
0a190dfd
AC
48292011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4830
4831 * sem_ch12 (Check_Private_View): Revert previous change.
4832 * sem_res.adb (Conversion_Check): Do not emit the error message if the
4833 conversion is in a generic instance.
4834
48352011-08-31 Matthew Heaney <heaney@adacore.com>
4836
4837 * a-cbhase.adb (Symmetric_Difference): Dereference correct node array.
4838 * a-chtgbo.adb (Free): Allow 0 as index value.
4839
48402011-08-31 Matthew Heaney <heaney@adacore.com>
4841
4842 * a-cborma.adb (Insert): Add comment to explain why no element
4843 assignment.
4844
48452011-08-31 Gary Dismukes <dismukes@adacore.com>
4846
4847 * sem_util.adb (Find_Body_Discriminal): Test whether the scope of the
4848 spec discriminant is already a concurrent type, in which case just use
4849 it, otherwise fetch the Corresponding_Concurrent_Type as before.
4850
7d266442
EB
48512011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4852
4853 * system-irix-n64.ads, system-linux-armeb.ads, system-linux-armel.ads,
4854 system-linux-mips.ads, system-linux-mipsel.ads,
4855 system-linux-mips64el.ads, system-linux-ppc64.ads,
4856 system-linux-sparcv9.ads, system-rtems.ads: Remove GCC_ZCX_Support.
4857
4f1a975c
EB
48582011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4859
4860 * gcc-interface/ada-tree.h (TYPE_EXTRA_SUBTYPE_P): Add internal check.
4861 * gcc-interface/utils2.c (build_binary_op): Tighten condition.
4862 (build_unary_op): Likewise.
4863
f2991b48
EB
48642011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4865
4866 * raise-gcc.c: Do not include coretypes.h and tm.h.
4867 (setup_to_install): Remove test for compiler macro.
4868 * targext.c: Document use for the library.
4869 * gcc-interface/Makefile.in: Fix comment on the use of IN_GCC.
4870
10a22f43
EB
48712011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4872
4873 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert
4874 the expression to the nominal type if the latter is a record type with
4875 a variant part and the type of the former is a record type without one.
4876
bfa2e39d
AC
48772011-08-30 Yannick Moy <moy@adacore.com>
4878
4879 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
4880 expansion in Alfa mode.
4881 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public
4882 * exp_alfa.adb, exp_alfa.ads: New package defining light expansion for
4883 Alfa mode.
4884 * gnat1drv.adb (Adjust_Global_Switches): Update Comment.
4885 * sem_res.adb: Ditto.
bd34109a 4886 * gcc-interface/Make-lang.in: Update dependencies.
bfa2e39d
AC
4887
48882011-08-30 Thomas Quinot <quinot@adacore.com>
4889
4890 * g-socket.ads: Minor documentation adjustment.
4891
a0347839
AC
48922011-08-30 Robert Dewar <dewar@adacore.com>
4893
4894 * exp_ch9.adb, s-tassta.adb, s-secsta.adb: Minor reformatting.
4895
48962011-08-30 Yannick Moy <moy@adacore.com>
4897
4898 * exp_ch6_light.adb, exp_ch6_light.ads, exp_attr_light.adb,
4899 exp_attr_light.ads, exp_ch7_light.adb, exp_ch7_light.ads,
4900 exp_light.adb, exp_light.ads, exp_prag.adb, expander.adb,
4901 gnat1drv.adb, exp_ch11.adb, exp_ch6.adb, exp_ch6.ads, exp_aggr.adb:
4902 Revert change which introduced files for "light"
4903 expansion, to be replaced by a single file for Alfa expansion.
4904
3597c0e9
RD
49052011-08-30 Robert Dewar <dewar@adacore.com>
4906
4907 * opt.ads, s-soflin.adb, exp_ch9.adb, sem_res.adb: Update comment.
4908 Minor code reorg/reformatting.
4909
da94696d
AC
49102011-08-30 Yannick Moy <moy@adacore.com>
4911
4912 * opt.adb, opt.ads (Full_Expander_Active): New function defines a
4913 common shorthand for (Expander_Active and not ALFA_Mode) that can be
4914 used for testing full expansion, that is active expansion not in the
4915 reduced mode for Alfa
4916 * exp_ch4.adb, exp_ch9.adb, exp_disp.adb, sem_ch10.adb, sem_ch12.adb,
4917 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Use newly defined "flag" instead
4918 of the verbose (Expander_Active and not ALFA_Mode)
4919
49202011-08-30 Tristan Gingold <gingold@adacore.com>
4921
4922 * s-parame-vms-alpha.ads, s-parame-hpux.ads, s-tassta.adb,
4923 s-tarest.adb, s-parame-vms-ia64.ads, s-soflin.adb, s-secsta.adb,
5b8ca141
TG
4924 s-secsta.ads, s-parame.ads, s-parame-vxworks.ads, s-parame-ae653.ads:
4925 Renames Ratio to Percentage, and Sec_Stack_Ratio to Sec_Stack_Percentage
da94696d 4926
c199ccf7
AC
49272011-08-30 Gary Dismukes <dismukes@adacore.com>
4928
4929 * sem_res.adb (Valid_Conversion): Revise test for implicit anonymous
4930 access conversions to check that the conversion is a rewritten node,
4931 rather than just having Comes_From_Source set to False, which wasn't
4932 sufficient.
4933
49342011-08-30 Robert Dewar <dewar@adacore.com>
4935
4936 * exp_ch9.adb, sem_ch9.adb, sem_ch6.adb, exp_disp.adb,
4937 g-socket.ads: Minor reformatting.
4938
49392011-08-30 Thomas Quinot <quinot@adacore.com>
4940
4941 * sem_util.adb: Minor reformatting.
4942
49432011-08-30 Tristan Gingold <gingold@adacore.com>
4944
4945 * raise-gcc.c: Never catch exception if _UA_FORCE_UNWIND flag is set,
4946 to be compliant with the ABI.
4947
dff99e1a
AC
49482011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
4949
4950 * sem_ch12.adb (Check_Private_View): Exchange the private and full view
4951 of a designated type when the related access type is an actual in an
4952 instance. This ensures that the full view of designated type is
4953 available when inside the body of the instance.
4954
49552011-08-30 Ed Schonberg <schonberg@adacore.com>
4956
4957 * sem_util.adb (May_Be_Lvalue): To determine whether a reference may be
4958 in a position to be modified, a slice is treated like an indexed
4959 component.
4960
63be2a5a
AC
49612011-08-30 Thomas Quinot <quinot@adacore.com>
4962
4963 * s-oscons-tmplt.c, g-socket.ads: Adjust maximum allowed value for
4964 field tv_sec in struct timeval.
4965
49662011-08-30 Yannick Moy <moy@adacore.com>
4967
4968 * exp_ch9.adb, exp_disp.adb, sem_ch9.adb, sem_res.adb: Protect several
4969 blocks of code doing full expansion, previously only guarded by
4970 Expander_Active, by anding the test that ALFA_Mode is not set
4971
49722011-08-30 Ed Schonberg <schonberg@adacore.com>
4973
4974 * sem_ch6.adb (Analyze_Return_Type): If the return type is incomplete,
4975 add the function to the list of private dependents, for subsequent
4976 legality check on Taft amendment types.
4977 * sem_ch12.adb (Analyze_Formal_Incomplete_Type): Initialize
4978 Private_Dependents, as for other incomplete types.
4979 * sem_util.adb (Wrong_Type): Avoid cascaded errors when a
4980 Taft-amendment type is used as the return type of a function.
4981
dd54644b
JM
49822011-08-30 Javier Miranda <miranda@adacore.com>
4983
4984 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code
4985 which emits an error by a call to a new routine which report the error.
4986 * exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the
4987 entity does not cover an existing interface.
4988 * errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize
4989 code.
4990 * sem_ch6.adb (Check_Conformance): Add specific error for wrappers of
4991 protected procedures or entries whose mode is not conformant.
4992 (Check_Synchronized_Overriding): Code cleanup: replace code which emits
4993 an error by a call to a new routine which report the error.
4994
d3ba478e
AC
49952011-08-30 Robert Dewar <dewar@adacore.com>
4996
4997 * gnat_rm.texi: Minor change.
4998 * exp_attr_light.adb: Minor reformatting.
4999
50002011-08-30 Ed Schonberg <schonberg@adacore.com>
5001
5002 * sem_ch3.adb: Patch inheritance of aspects in
5003 Complete_Private_Subtype, to avoid infinite loop.
5004
c01817d2
AC
50052011-08-30 Javier Miranda <miranda@adacore.com>
5006
5007 * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have
5008 been reported and a subprogram covering an interface primitive is not
5009 found then skip generating the internal entity. Done to avoid crashing
5010 the frontend.
5011 (Check_Abstract_Overriding): Change text of error of wrong formal of
5012 protected subprogram or entry. Done for consistency to emit exactly the
5013 same error reported by Check_Synchronized_Overriding. In addition, the
5014 error is restricted to protected types (bug found working on AI05-0090)
5015
50162011-08-30 Yannick Moy <moy@adacore.com>
5017
5018 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
5019 expansion in Alfa mode.
5020 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public.
5021 * exp_light.adb, exp_light.ads: New package defining light expansion.
5022 * expander.adb (Expand): Call light expansion in Alfa mode
5023 * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6
5024 constructs.
5025 * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7
5026 constructs.
5027 * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes
5028 * gnat1drv.adb (Adjust_Global_Switches): Comment
5029
50302011-08-30 Yannick Moy <moy@adacore.com>
5031
5032 * lib-xref-alfa.adb: Minor refactoring.
5033
50342011-08-30 Yannick Moy <moy@adacore.com>
5035
5036 * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa
5037 mode.
5038 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform
5039 expansion in Alfa mode.
5040 * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa
5041 mode.
5042
50432011-08-30 Robert Dewar <dewar@adacore.com>
5044
5045 * debug_a.adb: Update comment.
5046
996c8821
RD
50472011-08-30 Robert Dewar <dewar@adacore.com>
5048
5049 * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb,
5050 sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb,
5051 exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb,
5052 sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting
5053
50542011-08-30 Robert Dewar <dewar@adacore.com>
5055
5056 * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma
5057 volatile.
5058
3647ca26
HK
50592011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
5060
5061 * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to
5062 Build_Finalization_Master by supplying an insertion node and enclosing
5063 scope. In its old version, the call did not generate a finalization
5064 master.
5065 (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to
5066 recognize anonymous access-to-controlled components. Rewrite the
5067 machinery which creates finalization masters to service anonymous
5068 access-to-controlled components of a record type. In its current state,
5069 only one heterogeneous master is necessary to handle multiple anonymous
5070 components.
5071 (Freeze_Type): Comment reformatting.
5072 * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and
5073 RE_Unit_Table.
5074 * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which
5075 associates TSS primitive Finalize_Address with either the master itself
5076 or with the internal hash table depending on the mode of operation of
5077 the master.
5078
6d4e4fbc
JM
50792011-08-30 Javier Miranda <miranda@adacore.com>
5080
5081 * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an
5082 interface type then do not generate code to compare this component.
5083 Required since they have no components and their equality operator is
5084 abstract.
5085
d15f9422
AC
50862011-08-30 Steve Baird <baird@adacore.com>
5087
5088 * sem_util.ads (Deepest_Type_Access_Level): New function; for the type
5089 of a saooaaat (i.e, a stand-alone object of an anonymous access type),
5090 returns the (static) accessibility level of the object. Otherwise, the
5091 same as Type_Access_Level.
5092 (Dynamic_Accessibility_Level): New function; given an expression which
5093 could occur as the rhs of an assignment to a saooaaat (i.e., an
5094 expression of an access-to-object type), return the new value for the
5095 saooaaat's associated Extra_Accessibility object.
5096 (Effective_Extra_Accessibility): New function; same as
5097 Einfo.Extra_Accessibility except that object renames are looked through.
5098 * sem_util.adb
5099 (Deepest_Type_Access_Level): New function; see sem_util.ads description.
5100 (Dynamic_Accessibility_Level): New function; see sem_util.ads
5101 description.
5102 (Effective_Extra_Accessibility): New function; see sem_util.ads
5103 description.
5104 * einfo.ads (Is_Local_Anonymous_Access): Update comments.
5105 (Extra_Accessibility): Update comments.
5106 (Init_Object_Size_Align): New procedure; same as Init_Size_Align
5107 except RM_Size field (which is only for types) is unaffected.
5108 * einfo.adb
5109 (Extra_Accessibility): Expand domain to allow objects, not just formals.
5110 (Set_Extra_Accessibility): Expand domain to allow objects, not just
5111 formals.
5112 (Init_Size): Add assertion that we are not trashing the
5113 Extra_Accessibility attribute of an object.
5114 (Init_Size_Align): Add assertion that we are not trashing the
5115 Extra_Accessibility attribute of an object.
5116 (Init_Object_Size_Align): New procedure; see einfo.ads description.
5117 * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access
5118 differently for the type of a (non-library-level) saooaaat depending
5119 whether Ada_Version < Ada_2012. This is the only point where Ada_Version
5120 is queried in this set of changes - everything else (in particular,
5121 setting of the Extra_Accessibility attribute in exp_ch3.adb) is
5122 driven off of the setting of the Is_Local_Anonymous_Access attribute.
5123 The special treatment of library-level saooaaats is an optimization,
5124 not required for correctnesss. This is based on the observation that the
5125 Ada2012 rules (static and dynamic) for saooaaats turn out to be
5126 equivalent to the Ada2005 rules in the case of a library-level saooaaat.
5127 * exp_ch3.adb
5128 (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is
5129 false for the type of a saooaaat, declare and initialize its
5130 accessibility level object and set the Extra_Accessibility attribute
5131 of the saooaaat to refer to this object.
5132 * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support.
5133 * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with
5134 calls to Effective_Extra_Accessibility in order to support
5135 renames of saooaaats.
5136 (Expand_N_Type_Conversion): Add new local function,
5137 Has_Extra_Accessibility, and call it when determining whether an
5138 accessibility check is needed.
5139 It returns True iff Present (Effective_Extra_Accessibility (Id)) would
5140 evaluate to True (without raising an exception).
5141 * exp_ch5.adb
5142 (Expand_N_Assignment_Statement): When assigning to an Ada2012
5143 saooaaat, update its associated Extra_Accessibility object (if
5144 it has one). This includes an accessibility check.
5145 * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates
5146 a saooaaat, update its Extra_Accessibility object too (if it
5147 has one).
5148 (Expand_Call): Replace a couple of calls to Type_Access_Level
5149 with calls to Dynamic_Access_Level to handle cases where
5150 passing a literal (any literal) is incorrect.
5151 * sem_attr.adb (Resolve_Attribute): Handle the static accessibility
5152 checks associated with "Saooaat := Some_Object'Access;"; this must
5153 be rejected if Some_Object is declared in a more nested scope
5154 than Saooaat.
5155 * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an
5156 assignment to a saooaaat even if Is_Local_Anonymous_Access
5157 returns False for its type (indicating a 2012-style saooaaat).
5158 * sem_ch8.adb
5159 (Analyze_Object_Renaming): Replace a call to Init_Size_Align
5160 (which is only appropriate for objects, not types) with a call
5161 of Init_Object_Size_Align in order to avoid trashing the
5162 Extra_Accessibility attribute of a rename (the two attributes
5163 share storage).
5164 * sem_res.adb
5165 (Valid_Conversion) Replace six calls to Type_Access_Level with
5166 calls to Deepest_Type_Access_Level. This is a bit tricky. For an
5167 Ada2012 non-library-level saooaaat, the former returns library level
5168 while the latter returns the (static) accessibility level of the
5169 saooaaat. A type conversion to the anonymous type of a saooaaat
5170 can only occur as part of an assignment to the saooaaat, so we
5171 know that such a conversion must be in a lhs context, so Deepest
5172 yields the result that we need. If such a conversion could occur,
5173 say, as the operand of an equality operator, then this might not
5174 be right. Also add a test so that static accessibilty checks are
5175 performed for converting to a saooaaat's type even if
5176 Is_Local_Anonymous_Access yields False for the type.
5177
51782011-08-30 Javier Miranda <miranda@adacore.com>
5179
5180 * sem_disp.adb (Check_Dispatching_Operation): Complete condition that
5181 controls generation of a warning associated with late declaration of
5182 dispatching functions. Required to avoid generating spurious
5183 warnings.
5184
6cce2156
GD
51852011-08-30 Gary Dismukes <dismukes@adacore.com>
5186
5187 * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the
5188 return object has an anonymous access type and the function's type is
5189 a named access type.
5190 * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming
5191 conversions on implicit conversions, since such conversions can occur
5192 for anonymous access cases due to expansion. Issue error for attempt
5193 to rename an anonymous expression as an object of a named access type.
5194 * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs,
5195 to indicate whether this function should report errors on invalid
5196 conversions.
5197 * sem_res.adb (Resolve): For Ada 2012, in the case where the type of
5198 the expression is of an anonymous access type and the expected type is
5199 a named general access type, rewrite the expression as a type
5200 conversion, unless this is an expression of a membership test.
5201 (Valid_Conversion.Error_Msg_N): New procedure that conditions the
5202 calling of Error_Msg_N on new formal Report_Errs.
5203 (Valid_Conversion.Error_Msg_NE): New procedure that conditions the
5204 calling of Error_Msg_NE on new formal Report_Errs.
5205 (Valid_Conversion): Move declaration of this function to the package
5206 spec, to allow calls from membership test processing. For Ada 2012,
5207 enforce legality restrictions on implicit conversions of anonymous
5208 access values to general access types, disallowing such conversions in
5209 cases where the expression has a dynamic accessibility level (access
5210 parameters, stand-alone anonymous access objects, or a component of a
5211 dereference of one of the first two cases).
5212 * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type
5213 in the context of a named general access expected type.
5214 * exp_ch4.adb Add with and use of Exp_Ch2.
5215 (Expand_N_In): Add processing for membership tests applied to
5216 expressions of an anonymous access type. First, Valid_Conversion is
5217 called to check whether the test is statically False, and then the
5218 conversion is expanded to test that the expression's accessibility
5219 level is no deeper than that of the tested type. In the case of
5220 anonymous access-to-tagged types, a tagged membership test is applied
5221 as well.
5222 (Tagged_Membership): Extend to handle access type cases, applying the
5223 test to the designated types.
5224 * exp_ch6.adb (Expand_Call): When creating an extra actual for an
5225 accessibility level, and the actual is a 'Access applied to a current
5226 instance, pass the accessibility level of the type of the current
5227 instance rather than applying Object_Access_Level to the prefix. Add a
5228 ??? comment, since this level isn't quite right either (will eventually
5229 need to pass an implicit level parameter to init procs).
5230
747de90b
AC
52312011-08-30 Bob Duff <duff@adacore.com>
5232
5233 * s-taskin.ads: Minor comment fix.
5234
52352011-08-30 Ed Schonberg <schonberg@adacore.com>
5236
5237 * sem_res.adb (Check_Parameterless_Call): If the node is a selected
5238 component and the selector is a dispatching operation, check if it is
5239 a prefixed call before rewriting as a parameterless function call.
5240
cdc4cc65
JJ
52412011-08-29 Jakub Jelinek <jakub@redhat.com>
5242
5243 * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy
5244 tsystem.h into $(RTSDIR) instead of rts.
5245
226a7fa4
AC
52462011-08-29 Robert Dewar <dewar@adacore.com>
5247
5248 * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor
5249 reformatting.
5250 * gcc-interface/Make-lang.in: Update dependencies.
5251
52522011-08-29 Yannick Moy <moy@adacore.com>
5253
5254 * alfa.ads (Name_Of_Heap_Variable): New constant name.
5255 * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global
5256 table to hold dereferences.
5257 (Add_ALFA_Xrefs): Take into account dereferences as special
5258 reads/writes to the variable "HEAP".
5259 (Enclosing_Subprogram_Or_Package): Move subprogram here.
5260 (Generate_Dereference): New procedure to store a read/write dereferencew
5261 in the table Drefs.
5262 * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for
5263 the special "HEAP" var.
5264 * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference
5265 in ALFA mode.
5266 * sem_util.adb (Note_Possible_Modification): Store write dereference
5267 in ALFA mode.
5268
dfbcb149
HK
52692011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5270
5271 * exp_ch3.adb (Freeze_Type): Generate an accessibility check which
5272 ensures that the level of the subpool access type is not deeper than
5273 that of the pool object.
5274 * sem_util.adb (Object_Access_Level): Expand to handle defining
5275 identifiers.
5276 * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the
5277 subpool handle name of a rewritten allocator.
5278
1df4f514
AC
52792011-08-29 Robert Dewar <dewar@adacore.com>
5280
5281 * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting.
5282
52832011-08-29 Thomas Quinot <quinot@adacore.com>
5284
5285 * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple
5286 values, we generate multiple triples of parameters in the TypeCode.
5287 Bump Choice_Index for each such triple so that a subsequent default
5288 choice is associated with the correct index in the typecode.
5289
52902011-08-29 Ed Schonberg <schonberg@adacore.com>
5291
5292 * a-cdlili.adb (Iterate): Initialize properly an iterator over a null
5293 container.
5294 (First, Last): Handle properly an iterator over a null container.
5295
52962011-08-29 Bob Duff <duff@adacore.com>
5297
5298 * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon
5299 processing if we run across a node with no Scope. This can happen if
5300 we're with-ing an library-level instance, and that instance got errors
5301 that caused "instantiation abandoned".
5302 * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising
5303 an exception instead of using Assert, so it won't go into an infinite
5304 loop, even when assertions are turned off.
5305
53062011-08-29 Ed Schonberg <schonberg@adacore.com>
5307
5308 * a-coorse.adb: Proper handling of empty ordered sets.
5309
14f0f659
AC
53102011-08-29 Johannes Kanig <kanig@adacore.com>
5311
5312 * debug.adb: Add comments.
5313
8027b455
AC
53142011-08-29 Thomas Quinot <quinot@adacore.com>
5315
5316 * a-except.adb, a-except-2005.adb: Minor comment rewording and
5317 reformatting.
5318
53192011-08-29 Yannick Moy <moy@adacore.com>
5320
5321 * sem_ch3.adb (Array_Type_Declaration): Remove insertion of
5322 declaration for Itypes in Alfa mode.
5323
d85fd922
AC
53242011-08-29 Robert Dewar <dewar@adacore.com>
5325
5326 * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb,
5327 a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads,
5328 a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor
5329 reformatting.
5330
53312011-08-29 Tristan Gingold <gingold@adacore.com>
5332
5333 * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to
5334 package spec.
5335 * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler.
5336 * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts
5337 while raising PE.
5338
fd3d2680
AC
53392011-08-29 Robert Dewar <dewar@adacore.com>
5340
5341 * a-cbhama.adb, a-cbhama.ads: Minor reformatting.
5342
53432011-08-29 Javier Miranda <miranda@adacore.com>
5344
5345 * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for
5346 renamings of formal subprograms when the actual for a formal type is
5347 class-wide.
5348
dfbf013f
MH
53492011-08-29 Matthew Heaney <heaney@adacore.com>
5350
5351 * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment
5352 to Target.
5353
53542011-08-29 Matthew Heaney <heaney@adacore.com>
5355
5356 * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all
5357 components of record type.
5358 * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw
5359 to Target.
5360
a6dd3a54
ES
53612011-08-29 Ed Schonberg <schonberg@adacore.com>
5362
5363 * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb,
5364 a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to
5365 container packages.
5366
c54796e0
AC
53672011-08-29 Robert Dewar <dewar@adacore.com>
5368
5369 * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor
5370 reformatting.
5371
53722011-08-29 Matthew Heaney <heaney@adacore.com>
5373
5374 * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all
5375 components of record type.
5376
53772011-08-29 Bob Duff <duff@adacore.com>
5378
5379 * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated
5380 by the termination handler.
5381
9fd9d2be
AC
53822011-08-29 Yannick Moy <moy@adacore.com>
5383
5384 * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes
5385 created in Alfa mode, instead of inserting artificial declarations of
5386 non-Itypes in the tree.
5387 * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to
5388 know if an Itype has a corresponding declaration, as defined in
5389 itypes.ads.
5390
53912011-08-29 Yannick Moy <moy@adacore.com>
5392
5393 * gnat1drv.adb: Minor rewrite.
5394
53952011-08-29 Bob Duff <duff@adacore.com>
5396
5397 * s-tasuti.adb (Make_Passive): Work around race condition in
5398 Make_Independent, which can cause Wait_Count to be zero. So instead of
5399 asserting that Wait_Count > 0, and then decrementing it, decrement it
5400 only if Wait_Count > 0.
5401 * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these
5402 should be nonnegative, so declare them Natural instead of Integer.
5403
833eaa8a
AC
54042011-08-29 Robert Dewar <dewar@adacore.com>
5405
5406 * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb,
5407 sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb,
5408 a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb,
5409 a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb,
5410 exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting.
5411
54122011-08-29 Tristan Gingold <gingold@adacore.com>
5413
5414 * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels.
5415
54162011-08-29 Vadim Godunko <godunko@adacore.com>
5417
5418 * s-parint.ads: Minor comment clarification.
5419
54202011-08-29 Vincent Celier <celier@adacore.com>
5421
5422 * prj.adb (Initialize): Make sure that new reserved words after Ada 95
5423 may be used as identifiers.
5424
54252011-08-29 Ed Schonberg <schonberg@adacore.com>
5426
5427 * a-coinho.ads: Minor reformating.
5428
3a613a36
AC
54292011-08-29 Ed Schonberg <schonberg@adacore.com>
5430
5431 * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a
5432 container of a derived type.
5433
3a613a36
AC
54342011-08-29 Ed Schonberg <schonberg@adacore.com>
5435
5436 * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads,
5437 a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers.
5438
14848f57
AC
54392011-08-29 Pascal Obry <obry@adacore.com>
5440
5441 * exp_disp.adb: Minor comment fix.
5442 (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters
5443 to avoid warnings when compiling with -Wall.
5444 (Make_Disp_Conditional_Select_Body): Likewise.
5445 (Make_Disp_Timed_Select_Body): Likewise.
5446
54472011-08-29 Ed Schonberg <schonberg@adacore.com>
5448
5449 * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is
5450 an entity name, generate reference for it.
5451
54522011-08-29 Ed Schonberg <schonberg@adacore.com>
5453
5454 * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S"
5455 iterator form.
5456 * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for
5457 the class-wide type.
5458 * sem_ch5.adb: Move some rewriting to the expander, where it belongs.
5459
54602011-08-29 Ed Schonberg <schonberg@adacore.com>
5461
5462 * sem_ch8.adb (Check_Constrained_Object): Do not create an actual
5463 subtype for an object whose type is an unconstrained union.
5464
54652011-08-29 Ed Schonberg <schonberg@adacore.com>
5466
5467 * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased"
5468 is allowed in a component definition, by AI95-406.
5469
54702011-08-29 Matthew Heaney <heaney@adacore.com>
5471
5472 * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next.
5473
54742011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5475
5476 * a-except-2005.adb: Alphabetize all routines.
5477 (Triggered_By_Abort): New routine.
5478 * a-except-2005.ads (Triggered_By_Abort): New routine.
5479 * a-except.adb Alphabetize all routines.
5480 (Triggered_By_Abort): New routine.
5481 * a-except.ads (Triggered_By_Abort): New routine.
5482 * exp_ch7.adb: Update all comments involving the detection of aborts in
5483 finalization code.
5484 (Build_Object_Declarations): Do not generate code to detect the
5485 presence of an abort at the start of finalization code, use a runtime
5486 routine istead.
5487 * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and
5488 RE_Unit_Table.
5489 * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to
5490 allocate a task on a subpool.
5491 * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use.
5492 The flag disables all actions related to the maintenance of
5493 Finalize_Address_Table when subpools are not in use.
5494 (Allocate_Any_Controlled): Signal the machinery that subpools are in
5495 use.
5496 (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which
5497 performs costly task locking when subpools are not in use.
5498
57a8057a
AC
54992011-08-29 Yannick Moy <moy@adacore.com>
5500
5501 * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged
5502 types and dispatching calls in Alfa mode.
5503 * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of
5504 correspondance between body and spec scopes, to reuse utility functions
5505 (Traverse_Declarations_Or_Statements): Protect access to body for stub
5506 by testing the presence of the library unit for the body
5507 * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa
5508 mode the expansion of accept statements is skipped
5509 * sem_util.adb, sem_util.ads (Unique_Entity): New function returning
5510 the unique entity corresponding to the one returned by
5511 Unique_Defining_Entity applied to the enclosing declaration of the
5512 argument.
5513
55142011-08-29 Bob Duff <duff@adacore.com>
5515
5516 * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in
5517 gdb when x is not a node (it can be a node list, name_id, etc). pp is
5518 an alias for pn. ppp is an alias for pt.
5519
55202011-08-29 Javier Miranda <miranda@adacore.com>
5521
5522 * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing
5523 aggregate to take a consistent decision on the need to convert into
5524 assignments aggregates that initialize constant objects.
5525
55262011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5527
5528 * exp_ch4.adb (Expand_Allocator_Expression): Add a call to
5529 Build_Allocate_Deallocate_Proc in order to handle allocation of
5530 non-controlled objects on subpools.
5531 * impunit.adb: Remove s-finmas and s-spsufi since they were never meant
5532 to be end-user visible.
5533 * s-finmas.adb: Add with and use clause for System.HTable.
5534 Add an instantiation of Simple_HTable which provides a mapping between
5535 the address of a controlled object and the corresponding
5536 Finalize_Address used to clean up the object. The table is used when a
5537 master is operating in heterogeneous mode.
5538 (Attach): Explain why the input node is not verified on being already
5539 attached.
5540 (Delete_Finalize_Address): New routine.
5541 (Detach): Add pragma Assert which ensures that a node is already
5542 attached.
5543 (Finalize): Add local variable Cleanup. Rewrite the iteration scheme
5544 since nodes are no longer removed on traversal. Explain why node
5545 detachment is undesirable in this case.
5546 (Get_Finalize_Address): New routine.
5547 (Hash): New routine.
5548 (Is_Empty_List): Removed.
5549 (pm): Renamed to Print_Master. Add output for discriminant
5550 Is_Homogeneous.
5551 Comment reformatting.
5552 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
5553 * s-finmas.ads: Various comments additions / improvements.
5554 Type Finalization_Master has a discriminant which determines the mode of
5555 operation.
5556 (Delete_Finalize_Address): New routine.
5557 (Get_Finalize_Address): New routine.
5558 (pm): Renamed to Print_Master.
5559 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
5560 * s-stposu.adb: Add with clause for System.Address_Image; Add with and
5561 use clause for System.IO.
5562 (Allocate_Any_Controlled): Add machinery to set TSS primitive
5563 Finalize_Address depending on the mode of allocation and the mode of
5564 the master.
5565 (Deallocate_Any_Controlled): Remove the relation pair object -
5566 Finalize_Address regardless of the master mode. Add comment explaining
5567 the reason.
5568 (Detach): Ensure that fields Prev and Next are null after detachment.
5569 (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration
5570 scheme to check whether the list of subpools is empty. There is no
5571 longer need to store the next subpool or advance the current pointer.
5572 (Is_Empty_List): New routine.
5573 (Print_Pool): New routine.
5574 (Print_Subpool): New routine.
5575 * s-stposu.ads: Various comments additions / improvements.
5576 Field Master of type Root_Subpool is now a heterogeneous collection.
5577 (Print_Pool): New routine.
5578 (Print_Subpool): New routine.
5579
55802011-08-29 Ed Schonberg <schonberg@adacore.com>
5581
5582 * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator
5583 forms, using aspects of container types.
5584 * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and
5585 Has_Implicit_Dereference flags, that may be set on the partial view.
5586 * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a
5587 container type with an indexing aspect.
5588 (Analyze_Quantified_Expression): Analyze construct with expansion
5589 disabled, because it will be rewritten as a loop during expansion.
5590 (Try_Container_Indexing): The prefix itself may be a container type
5591 with an indexing aspect, as with a vector of vectors.
5592 * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze
5593 the original doamin of iteration, for name capture.
5594 (Analyze_Iterator_Specification): If the domain is an expression that
5595 needs finalization, create a separate declaration for it.
5596 For an iterator with "of" retrieve default iterator info from aspect of
5597 container type. For "in" iterator, retrieve type of Iterate function.
5598 * sem_ch13.adb (Check_Iterator_Function): Fix typo.
5599 (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before
5600 analysis, to prevent spurious errors about late attributes.
5601 * sprint.adb: Handle quantified expression with either loop or iterator
5602 specification.
5603 * a-convec.ads, a-convec.adb: Iterate function returns a reversible
5604 iterator.
5605
ddf67a1d
AC
56062011-08-29 Vincent Celier <celier@adacore.com>
5607
5608 * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler,
5609 Binder or Linker of the main project file.
5610
56112011-08-29 Ed Schonberg <schonberg@adacore.com>
5612
5613 * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic
5614 unit.
5615
56162011-08-29 Yannick Moy <moy@adacore.com>
5617
5618 * exp_ch9.adb: Partial revert of previous change for Alfa mode
5619
56202011-08-29 Yannick Moy <moy@adacore.com>
5621
5622 * exp_ch11.adb: Minor expansion of comment.
5623
56242011-08-29 Yannick Moy <moy@adacore.com>
5625
5626 * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities.
5627
56282011-08-29 Ed Schonberg <schonberg@adacore.com>
5629
5630 * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal
5631 interpretation, set the type before resolving the operands, because
5632 legality checks on an exponention operand need to know the type of the
5633 context.
5634
56352011-08-29 Ed Schonberg <schonberg@adacore.com>
5636
5637 * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed
5638 cleanups on a master if the instance is within a generic unit.
5639 Complement to the corresponding fix to inline.adb for K520-030.
5640
56412011-08-29 Tristan Gingold <gingold@adacore.com>
5642
5643 * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current
5644 occurrence.
5645 * exp_intr.adb: Minor comment fix.
5646
56472011-08-29 Bob Duff <duff@adacore.com>
5648
5649 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where
5650 Delay_Required was used as an uninitialized variable.
5651
690943fc
RD
56522011-08-29 Robert Dewar <dewar@adacore.com>
5653
5654 * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads,
5655 sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb,
5656 a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting.
5657
9f0ee988
TQ
56582011-08-29 Thomas Quinot <quinot@adacore.com>
5659
5660 * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True.
5661 Remove unused variables.
5662
3e24afaa
AC
56632011-08-29 Ed Schonberg <schonberg@adacore.com>
5664
5665 * sem_res.adb: Remove Build_Explicit_Dereference.
5666 * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here
5667 from sem_res.adb, used in analysis of additional constructs.
5668 (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012
5669 expansion of iterators.
5670 (Is_Object_Reference): Recognize variables rewritten as explicit
5671 dereferences in Ada2012.
5672 * snames.ads-tmpl: Add Has_Element, Forward_Iterator,
5673 Reversible_Iterator names, for expansion of Ada2012 iterators.
5674 * aspects.ads, aspects.adb (Find_Aspect): Utility.
5675 * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly
5676 linked list container.
5677 * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers.
5678 * a-coorse.ads, a-coorse.adb: Ditto for ordered sets.
5679
56802011-08-29 Ed Schonberg <schonberg@adacore.com>
5681
5682 * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map
5683 containers.
5684
56852011-08-29 Vincent Celier <celier@adacore.com>
5686
5687 * make.adb (Gnatmake): Get the maximum number of simultaneous
5688 compilation processes after the Builder switches has been scanned, as
5689 there may include -jnn.
5690
56912011-08-29 Matthew Heaney <heaney@adacore.com>
5692
5693 * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next.
5694
56952011-08-29 Tristan Gingold <gingold@adacore.com>
5696
5697 * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of
5698 GNAT_DRIVER_COMMAND_LINE to 255.
5699
57002011-08-29 Pascal Obry <obry@adacore.com>
5701
5702 * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor
5703 reformatting and style fix (class attribute casing).
5704
57052011-08-29 Yannick Moy <moy@adacore.com>
5706
5707 * exp_ch11.adb: Yet another case where expansion should be common
5708 between CodePeer and Alfa.
5709
57102011-08-29 Yannick Moy <moy@adacore.com>
5711
5712 * exp_ch9.adb: Partial revert of previous change for Alfa mode.
5713
57142011-08-29 Ed Schonberg <schonberg@adacore.com>
5715
5716 * sem_ch6.adb (Matches_Limited_With_View): The limited views of an
5717 incomplete type and its completion match.
5718
3ddd922e
AC
57192011-08-29 Yannick Moy <moy@adacore.com>
5720
5721 * exp_ch13.adb: Adjust previous change.
5722
57232011-08-29 Robert Dewar <dewar@adacore.com>
5724
5725 * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb,
5726 exp_ch4.adb, sem_ch8.adb: Minor code reorganization
5727 Minor reformatting.
5728
444acbdd
AC
57292011-08-29 Emmanuel Briot <briot@adacore.com>
5730
5731 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also
5732 initialize aggregated projects.
5733
57342011-08-29 Ed Schonberg <schonberg@adacore.com>
5735
5736 * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope
5737 depth of candidates to resolve a potentially spurious ambiguity between
5738 two visible subprograms.
5739
e0296583
AC
57402011-08-29 Yannick Moy <moy@adacore.com>
5741
5742 * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without
5743 Requires/Ensures.
5744 * sem_util.adb (Get_Ensures_From_Test_Case_Pragma,
5745 Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without
5746 Requires/Ensures.
5747
57482011-08-29 Arnaud Charlet <charlet@adacore.com>
5749
5750 * gnat1drv.adb (Adjust_Global_Switches): Improve previous change.
5751 Add comment.
5752
57532011-08-29 Thomas Quinot <quinot@adacore.com>
5754
5755 * sem_res.adb: Minor reformatting.
5756
69794413
JK
57572011-08-29 Johannes Kanig <kanig@adacore.com>
5758
5759 * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA
5760 mode.
5761 * gnat1drv.adb (Adjust_Global_Switches): Set
5762 Use_Expressions_With_Actions to False in ALFA mode.
5763 * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in
5764 ALFA mode.
5765
59e6b23c
AC
57662011-08-29 Yannick Moy <moy@adacore.com>
5767
5768 * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode.
5769 * exp_ch9.adb: Do not expand tasking constructs in Alfa mode.
5770 * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of
5771 tagged types and dispatching calls in Alfa mode.
5772
57732011-08-29 Javier Miranda <miranda@adacore.com>
5774
5775 * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that
5776 we do not report an error on an Empty node.
5777
57782011-08-29 Geert Bosch <bosch@adacore.com>
5779
5780 * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o,
5781 a-nlrear.o and a-nurear.o.
5782
57832011-08-29 Robert Dewar <dewar@adacore.com>
5784
5785 * freeze.adb: Minor code reorganization.
5786 Minor reformatting.
5787 * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb,
5788 sem_ch6.adb: Minor reformatting
5789
57902011-08-29 Tristan Gingold <gingold@adacore.com>
5791
5792 * s-except.ads, s-except.adb: Provide dummy body.
5793
57942011-08-29 Yannick Moy <moy@adacore.com>
5795
5796 * sem_warn.adb (Within_Postcondition): Take into account the case of
5797 an Ensures component in a Test_Case.
5798
4d792549
AC
57992011-08-29 Tristan Gingold <gingold@adacore.com>
5800
5801 * s-excdeb.ads, s-excdeb.adb: New files, created from s-except.
5802 * rtsfind.ads (RTU_Id): Replaces System_Exceptions by
5803 System_Exceptions_Debug
5804 (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug
5805 * a-except.adb: With and use System.Exceptions_Debug instead of
5806 System.Exceptions.
5807 * a-except-2005.adb: Likewise.
5808 * s-assert.adb: Likewise.
5809 * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb.
5810 * Makefile.rtl: Add s-excdeb. Adjust compilation rule.
5811 * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add
5812 s-excdeb. Update dependencies.
5813 (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o
5814 as these no longer need external libraries.
5815
58162011-08-29 Ed Schonberg <schonberg@adacore.com>
5817
5818 * sem_res.adb (Resolve_Op_Expon): Additional check to reject an
5819 exponentiation operator on universal values in a context that requires
5820 a fixed-point type.
5821
58222011-08-29 Tristan Gingold <gingold@adacore.com>
5823
5824 * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence
5825 before calling notify_handled_exception.
5826 * a-exextr.adb: Fix comment.
5827
b254da66
AC
58282011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5829
5830 * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute
5831 Finalize_Address of the access type's finalization master.
5832 (Expand_N_Allocator): Add code to set attribute Finalize_Address of the
5833 access type's finalization master. Add a guard to prevent
5834 Associated_Storage_Pool from being set on .NET/JVM.
5835 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set
5836 attribute Finalize_Address of the access type's finalization master.
5837 * exp_ch7.adb (Make_Finalize_Address_Call): New routine.
5838 * exp_ch7.ads (Make_Finalize_Address_Call): New routine.
5839 * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and
5840 RE_Unit_Table.
5841 * s-finmas.adb: Add with clause for System.Address_Image. Add with and
5842 use clause for System.IO
5843 (Detach): Relax the assertion, to be reinstated later.
5844 (Finalize): Rewrite the iteration loop to avoid pointer comparison.
5845 Relax the assertion on Finalize_Address, to be reinstated later.
5846 (Is_Empty_List): New routine.
5847 (pm): New debug routine.
5848 (Set_Finalize_Address): New routine.
5849 * s-finmas.ads (pm): New debug routine.
5850 (Set_Finalize_Address): New routine.
5851 * s-stposu.adb (Allocate_Any_Controlled): Code reformatting.
5852
58532011-08-29 Tristan Gingold <gingold@adacore.com>
5854
5855 * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access):
5856 Remove convention C.
5857
58582011-08-29 Tristan Gingold <gingold@adacore.com>
5859
5860 * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove.
5861 (Initialize_TCB): Remove Exc_Stack_Ptr initialization.
5862 (Finalize_TCB): Remove its finalization.
5863 (Initialize): Remove assignment of GET_Exc_Stack_Addr
5864 * s-soflin.adb (NT_Exc_Stack): Remove
5865 (Get_Exc_Stack_Addr_NT): Likewise.
5866 (Get_Exc_Stack_Addr_Soft): Likewise.
5867 * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove.
5868 (Get_Exc_Stack_Addr): Likewise.
5869 (Get_Exc_Stack_Addr_Soft): Likewise
5870 * s-taspri-vms.ads (Exc_Stack_T): Remove.
5871 (Exc_Stack_Ptr_T): Likewise.
5872 (Private_Data): Remove Exc_Stack_Ptr component.
5873
58742011-08-29 Tristan Gingold <gingold@adacore.com>
5875
5876 * raise-gcc.c (get_ip_from_context): New function. Factorize code.
5877
58782011-08-29 Tristan Gingold <gingold@adacore.com>
5879
5880 * gnat_ugn.texi: Fix aix and x86-solaris info for run-time.
5881
58822011-08-29 Geert Bosch <bosch@adacore.com>
5883
5884 * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate,
5885 L2_Norm, Swap_Column): New generic subprograms
5886 * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate,
5887 L2_Norm, Swap_Column): Implement new subprograms in order to
5888 eliminate dependency on BLAS and LAPACK libraries in
5889 Ada.Numerics.Generic_Real_Arrays and eventually also the complex
5890 version. Forward_Eliminate/Back_Substitute can be used to put a
5891 matrix in row echelon or reduced row echelon form using partial
5892 pivoting.
5893 * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate,
5894 Swap_Column): Instantiate from System.Generic_Array_Operations.
5895 ("*", "abs"): Implement by instantiation from Generic_Array_Operations.
5896 (Sqrt): Local function for simple computation of square root without
5897 adding dependencies on Generic_Elementary_Functions.
5898 (Swap): New subprogram to exchange floating point numbers.
5899 (Inverse): Reimplement using Jordan-Gauss elimination.
5900 (Jacobi): New procedure implementing Jacobi's method for computation
5901 of eigensystems, based on Rutishauser's implementation.
5902 (L2_Norm): Implement directly using the inner product.
5903 (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of
5904 decreasing eigenvalue as required by the Ada RM.
5905 (Swap_Column): New helper procedure for Sort_Eigensystem.
5906 Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK.
5907 Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for
5908 Sort_Eigensystems.
5909
59102011-08-29 Thomas Quinot <quinot@adacore.com>
5911
5912 * put_scos.adb (Put_SCOs): Do not emit a newline for an empty
5913 statements line.
5914
60370fb1
AC
59152011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5916
5917 * s-finmas.adb (Finalize): Check Finalize_Address of the master rather
5918 than the current node.
5919 * s-finmas.ads: Move field Finalize_Address from type FM_Node to
5920 Finalization_Master. The list headers have two fields instead of three.
5921 This should fix alignment issue but subpool allocations are now
5922 unusable. Alphabetize subprograms.
5923 * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than
5924 the size of the header when converting the beginning of the object to
5925 a FM_Node. Set the master's Finalize_Address attribute if not already
5926 set.
5927 (Deallocate_Any_Controlled): Use the offset rather than the size of the
5928 header when converting the beginning of the object to a FM_Node.
5929
59302011-08-29 Gary Dismukes <dismukes@adacore.com>
5931
5932 * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of
5933 reraise when compiling for CodePeer.
5934
59352011-08-29 Arnaud Charlet <charlet@adacore.com>
5936
5937 * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads,
5938 now needed by a-convec.adb. Fix warning.
5939
59402011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5941
5942 * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the
5943 processing of TSS routine Finalize_Address when compiling in
5944 CodePeer_Mode.
5945
59462011-08-29 Thomas Quinot <quinot@adacore.com>
5947
5948 * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb,
5949 sem_warn.adb: Minor reformatting.
5950
59512011-08-29 Emmanuel Briot <briot@adacore.com>
5952
5953 * prj-conf.adb (Get_Config_Switches): Also collect the list of
5954 languages from aggregated projects.
5955
59562011-08-29 Yannick Moy <moy@adacore.com>
5957
5958 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements,
5959 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
5960 Traverse_Package_Declaration, Traverse_Subprogram_Body,
5961 Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies
5962 for stubs are traversed too when parameter is set
5963 (Traverse_All_Compilation_Units): Traverse without going inside stubs
5964 (Traverse_Declarations_Or_Statements): Do the special traversing for
5965 stubs when required.
5966 * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to
5967 return subprogram or package body from stub.
5968 (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect
5969 stubs without prior subprogram decl.
5970
59712011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
5972
5973 * gnat_ugn.texi: Fix typo.
5974
e9c9d122
HK
59752011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5976
5977 * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism
5978 which accounts for size vs alignment issues and calculates the size of
5979 the list header.
5980 (Deallocate_Any_Controlled): Ditto.
5981 (Nearest_Multiple_Rounded_Up): New routine.
5982
25ebc085
AC
59832011-08-29 Tristan Gingold <gingold@adacore.com>
5984
5985 * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag.
5986 * a-exexda.adb (Set_Exception_C_Msg): Ditto.
5987 (Set_Exception_Msg): Ditto.
5988 * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set
5989 Private_Data.
5990 * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove.
5991 Use Save_Occurrence instead of Save_Occurrence_No_Private.
5992 (Raise_With_Msg): Remove Cleanup_Flag.
5993 * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove
5994 Clean_Flag and Private_Data components.
5995
59962011-08-29 Yannick Moy <moy@adacore.com>
5997
5998 * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like
5999 in CodePeer mode.
6000 * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation
6001 of an explicitly declared type, so that the base types of the original
6002 type and this generated type are the same, and a "type" (not a subtype
6003 like previously).
6004 * errout.adb (Special_Msg_Delete): Do not issue messages "Size too
6005 small" in Alfa mode, like in CodePeer mode.
6006 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep
6007 clauses in Alfa mode.
6008
60092011-08-29 Javier Miranda <miranda@adacore.com>
6010
6011 * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this
6012 function to the package spec.
6013 * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For
6014 internally generated bodies of null procedures locate the internally
6015 generated spec enforcing mode conformance.
6016 (Is_Interface_Conformant): Ensure that the controlling formal of the
6017 primitives match.
6018
60192011-08-29 Ed Schonberg <schonberg@adacore.com>
6020
6021 * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not
6022 reject the pragma if it appears to apply to a formal subprogram.
6023
60242011-08-29 Ed Schonberg <schonberg@adacore.com>
6025
6026 * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for
6027 inner expression, to prevent double evaluation.
6028
590549fb
AC
60292011-08-29 Tristan Gingold <gingold@adacore.com>
6030
6031 * a-exexpr.adb (Propagate_Exception): Remove all the parameters as
6032 they were unused.
6033 * a-exexpr-gcc.adb (Propagate_Exception): Ditto.
6034 * a-except-2005.adb (Propagate_Exception): Adjust spec.
6035 (Raise_Current_Excep): Adjust call.
6036 (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep.
6037
60382011-08-29 Thomas Quinot <quinot@adacore.com>
6039
6040 * exp_disp.adb: Minor reformatting.
6041
62380e66
TG
60422011-08-29 Tristan Gingold <gingold@adacore.com>
6043
6044 * a-exexpr.adb (Setup_Exception): Removed.
6045 * a-exexpr-gcc.adb (Setup_Exception): Removed.
6046 * a-except.adb (Exception_Propagation): Removed.
6047 * a-except-2005.adb (Setup_Exception): Removed.
6048 (Reraise): Remove call to Setup_Exception.
6049 (Reraise_Occurrence): Ditto.
6050 (Reraise_Occurrence_Always): Ditto.
6051 (Reraise_Occurrence_No_Defer): Ditto.
6052 (Transfer_Occurrence): Ditto.
6053 * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception.
6054 (Set_Exception_Msg): Ditto.
6055
c95aa61c
AC
60562011-08-29 Robert Dewar <dewar@adacore.com>
6057
6058 * a-convec.adb, exp_disp.adb: Minor reformatting.
6059
60602011-08-29 Tristan Gingold <gingold@adacore.com>
6061
6062 * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
6063
624e1688
AC
60642011-08-29 Gary Dismukes <dismukes@adacore.com>
6065
6066 * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
6067 Exception_Handlers to No_List instead of Empty_List in the case where
6068 there are no handlers.
6069
60702011-08-29 Tristan Gingold <gingold@adacore.com>
6071
6072 * gcc-interface/gigi.h (enum standard_datatypes): Add
6073 ADT_reraise_zcx_decl
6074 (reraise_zcx_decl): New macro.
6075 * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable.
6076 (gigi): Set reraise_zcx_decl.
6077 (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr.
6078 (gnat_to_gnu): Handle N_Raise_Statement.
6079
7134062a
AC
60802011-08-29 Robert Dewar <dewar@adacore.com>
6081
6082 * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads,
6083 a-undesu.adb: Minor reformatting.
6084
60852011-08-29 Ed Schonberg <schonberg@adacore.com>
6086
6087 * exp_disp.adb (Check_Premature_Freezing): When building a dispatch
6088 table, accept an unfrozen untagged component if it is an actual for a
6089 formal incomplete type.
6090 * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to
6091 provide new iterator forms over vectors.
6092 Introduce type Iterator in package body to implement operations of
6093 Reversible_Iterator interface.
6094 * a-iteint.ads: Make package pure so it is usable with new container
6095 packages, that are categorized Remote_Types.
6096
ca5af305
AC
60972011-08-29 Robert Dewar <dewar@adacore.com>
6098
6099 * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting.
6100
61012011-08-29 Bob Duff <duff@adacore.com>
6102
6103 * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case
6104 of <>, because this is the routine that checks for dimensionality
6105 errors (for example, for a two-dimensional array, (others => <>) should
6106 be (others => (others => <>)).
6107
61082011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6109
6110 * impunit.adb: Add new run-time units.
6111 * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb,
6112 s-stposu.ads, s-stposu.adb: Code clean up.
6113 Handle protected class-wide or task class-wide types
6114 Handle C/C++/CIL/Java types.
6115 * s-spsufi.adb, s-spsufi.ads: New files.
6116
5accd7b6
AC
61172011-08-29 Yannick Moy <moy@adacore.com>
6118
6119 * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on
6120 library-level subprogram.
6121 * sem_prag.adb (Check_Test_Case): Stricter rules for test-case
6122 placement.
6123 (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case
6124 component.
6125 * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case
6126 component.
6127 * gnat_rm.texi: Update doc for Test_Case pragma.
6128
61292011-08-29 Tristan Gingold <gingold@adacore.com>
6130
6131 * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it
6132 convention C.
6133 (GCC_Exception_Access): New type.
6134 (Unwind_DeleteException): New imported procedure
6135 (Foreign_Exception): Import it.
6136 (GNAT_GCC_Exception): Simply have the occurrence inside.
6137 (To_GCC_Exception): New function.
6138 (To_GNAT_GCC_Exception): New function.
6139 (GNAT_GCC_Exception_Cleanup): New procedure..
6140 (Propagate_GCC_Exception): New procedure.
6141 (Reraise_GCC_Exception): New procedure.
6142 (Setup_Current_Excep): New procedure.
6143 (CleanupUnwind_Handler): Change type of UW_Exception parameter.
6144 (Unwind_RaiseException): Ditto.
6145 (Unwind_ForcedUnwind): Ditto.
6146 (Remove): Removed.
6147 (Begin_Handler): Change type of parameter.
6148 (End_Handler): Ditto. Now delete the exception if still present.
6149 (Setup_Key): Removed.
6150 (Is_Setup_And_Not_Propagated): Removed.
6151 (Set_Setup_And_Not_Propagated): Ditto.
6152 (Clear_Setup_And_Not_Propagated): Ditto.
6153 (Save_Occurrence_And_Private): Ditto.
6154 (EID_For): Add 'not null' constraint on parameter.
6155 (Setup_Exception): Does nothing.
6156 (Propagate_Exception): Simplified.
6157 * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model,
6158 re-raise is not expanded anymore.
6159 * s-except.ads (Foreign_Exception): New exception - placeholder for
6160 non Ada exceptions.
6161 * raise-gcc.c (__gnat_setup_current_excep): Declare
6162 (CXX_EXCEPTION_CLASS): Define (not yet used)
6163 (GNAT_EXCEPTION_CLASS): Define.
6164 (is_handled_by): Handle foreign exceptions.
6165 (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep.
6166
61672011-08-29 Jose Ruiz <ruiz@adacore.com>
6168
6169 * a-synbar.adb (Synchronous_Barrier): Some additional clarification.
6170
2ef48385
AC
61712011-08-29 Thomas Quinot <quinot@adacore.com>
6172
6173 * a-synbar-posix.adb: Minor reformatting.
6174
61752011-08-29 Jose Ruiz <ruiz@adacore.com>
6176
6177 * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads,
6178 a-exetim-default.ads (Interrupt_Clocks_Supported,
6179 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
6180 definitions to be compliant with AI-0171. The target systems do not
6181 support separate account for the execution time of interrupt handlers.
6182
61832011-08-29 Jose Ruiz <ruiz@adacore.com>
6184
6185 * a-synbar.adb (Wait): Change the order of evaluation of the conditions
6186 in the barrier to put first the easiest to evaluate (and the one which
6187 will be True more often). More efficient.
6188
61892011-08-29 Eric Botcazou <ebotcazou@adacore.com>
6190
6191 * s-atocou-x86.adb: Fix constraint in machine code insertion.
6192
61932011-08-29 Bob Duff <duff@adacore.com>
6194
6195 * aspects.ads, aspects.adb: Add new aspects for various pragmas and
6196 attributes that are now aspects, as specified by AI05-0229-1.
6197 * sem_ch13.adb (Analyze_Aspect_Specifications,
6198 Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into
6199 pragmas or attribute references, as appropriate.
6200
0db16b1e
AC
62012011-08-29 Robert Dewar <dewar@adacore.com>
6202
6203 * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb,
6204 a-synbar-posix.ads: Minor reformatting.
6205
62062011-08-29 Yannick Moy <moy@adacore.com>
6207
6208 * snames.ads-tmpl: Add name Force.
6209
978ffe02
AC
62102011-08-29 Pascal Obry <obry@adacore.com>
6211
6212 * prj-nmsc.adb: Minor reformatting.
6213
62142011-08-29 Jose Ruiz <ruiz@adacore.com>
6215
6216 * a-exetim.ads (Interrupt_Clocks_Supported,
6217 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
6218 definitions to be compliant with AI-0171.
6219
62202011-08-29 Robert Dewar <dewar@adacore.com>
6221
6222 * a-ngelfu.adb: Add comments.
6223
718f39dc
AC
62242011-08-29 Geert Bosch <bosch@adacore.com>
6225
6226 * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is
6227 the closest machine number to Pi / 2.0.
6228
62292011-08-29 Jose Ruiz <ruiz@adacore.com>
6230
6231 * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012
6232 package Ada.Synchronous_Barriers.
6233 * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb:
6234 Add new specs and bodies for Ada.Synchronous_Barriers. There is a
6235 default implementation using protected objects and another one
6236 a-synbar-posix using POSIX barriers as the underlying support.
6237 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86,
6238 x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of
6239 Ada.Synchronous_Barriers which uses POSIX barriers (more efficient).
6240 Clean up dependencies.
6241 * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o
6242
ee2e3f6b
AC
62432011-08-29 Robert Dewar <dewar@adacore.com>
6244
6245 * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb,
6246 exp_dist.adb: Minor code reorganization.
6247 Minor reformatting.
6248
62492011-08-29 Thomas Quinot <quinot@adacore.com>
6250
6251 * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW
6252 primitive operation must support external streaming if it is not a
6253 controlling access result.
6254
646e2823
AC
62552011-08-29 Thomas Quinot <quinot@adacore.com>
6256
6257 * sinfo.ads, sem_ch7.adb: Minor reformatting.
6258
62592011-08-29 Bob Duff <duff@adacore.com>
6260
6261 * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization
6262 restriction on allocators, as required by AI05-0013-1.
6263 * restrict.ads: Minor comment fix.
6264
5d59eef2
AC
62652011-08-29 Tristan Gingold <gingold@adacore.com>
6266
6267 * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb
6268 (To_Jmpbuf_Address): Ditto
6269 (builtin_longjmp): Ditto
6270
62712011-08-29 Thomas Quinot <quinot@adacore.com>
6272
6273 * sem_res.adb: Minor reformatting.
6274
62752011-08-29 Vincent Celier <celier@adacore.com>
6276
6277 * make.adb (Gnatmake): Move special processing for VM targets after the
6278 call to Get_Target_Parameters.
6279
62802011-08-29 Thomas Quinot <quinot@adacore.com>
6281
6282 * sem_ch12.adb, par-ch12.adb: Minor reformatting.
6283
949a18cc
AC
62842011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6285
6286 * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases
6287 where an anonymous access discriminant of a limited designated type
6288 appears in a non-immutably limited discriminated type and issue an
6289 error message. Add local variable Desig_T and replace all occurrences
6290 of Designated_Type.
6291
62922011-08-29 Jose Ruiz <ruiz@adacore.com>
6293
6294 * a-rttiev.adb (Set_Handler): Update comment to indicate that our
6295 implementation is compliant to RM D.15(15/2) after the modification
6296 imposed by AI05-0094-1 (binding interpretation).
6297
cb25faf8
AC
62982011-08-29 Robert Dewar <dewar@adacore.com>
6299
6300 * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb,
6301 s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting.
6302
63032011-08-29 Thomas Quinot <quinot@adacore.com>
6304
6305 * par-endh.adb (Check_End): For an END where it is mandatory to repeat
6306 the scope name, do not report a missing label as a style violation (it
6307 will be diagnosed as an illegality).
6308 * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of
6309 variant records: Get_Enum_Lit_From_Pos already returns a usage
6310 occurrence of the literal, no need to use New_Occurrence_Of. Set Etype
6311 on Expr in Integer_Literal case so that it can be used by
6312 Build_To_Any_Call.
6313
1d10f669
AC
63142011-08-29 Tristan Gingold <gingold@adacore.com>
6315
6316 * exp_sel.ads (Build_Abort_BLock_Handler): New function spec.
6317 Adjust comment.
6318 * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler.
6319 (Build_Abort_Block_Handler): New function to build an Abort_Signal
6320 exception handler.
6321 * exp_ch9.adb (Expand_N_Asynchronous_Select): Call
6322 Build_Abort_Block_Handler to build the exception handler. Do not
6323 undefer aborts for the Abort_Signal exception handler if back-end
6324 exception mechanism.
6325 * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if
6326 back_end exceptions for all others and abort_signal.
6327 * s-except.ads (ZCX_By_Default): New constant.
6328 * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX.
6329 (Raise_Exception_Always): Ditto.
6330 (Raise_From_Signal_Handler): Ditto.
6331 (Raise_With_Location_And_Msg): Ditto.
6332 (Raise_With_Msg): Ditto.
6333 (Reraise): Ditto.
6334 (Reraise_Occurence): Ditto.
6335 (Reraise_Occurrence_Always): Ditto.
6336 * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX.
6337 * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX.
1d10f669
AC
6338
63392011-08-29 Thomas Quinot <quinot@adacore.com>
6340
6341 * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation.
6342
d986066d
AC
63432011-08-29 Robert Dewar <dewar@adacore.com>
6344
6345 * snames.adb-tmpl, sem_ch13.adb: Minor reformatting
6346 Minor code reorganization.
6347
63482011-08-29 Bob Duff <duff@adacore.com>
6349
6350 * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada
6351 2012, not just Ada 2005.
6352
63532011-08-29 Vincent Celier <celier@adacore.com>
6354
6355 * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake
6356 with a project file or with gprbuid, if -gnatep= is specified, the
6357 builder may need to be invoked with -x.
6358
63592011-08-29 Tristan Gingold <gingold@adacore.com>
6360
6361 * a-exexpr-gcc.adb: Minor comment fix.
6362
ff4f0ed0
AC
63632011-08-29 Robert Dewar <dewar@adacore.com>
6364
6365 * sem_ch8.adb: Minor reformatting.
6366
63672011-08-29 Bob Duff <duff@adacore.com>
6368
6369 * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012.
6370 * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for
6371 treating "some" as unreserved in earlier Ada versions. This is now
6372 handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some,
6373 rather than Name_Some, since Tok_Some is now recognized as reserved.
6374 * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other
6375 reserved word.
6376 * scans.ads: Minor comment fixes.
6377 * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as
6378 for other language versions.
6379 * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for
6380 treating "some" as unreserved in earlier Ada versions. This is now
6381 handled in Snames.Is_Keyword_Name.
6382 * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in
6383 Ada 2012.
6384 (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as
6385 unreserved in earlier Ada versions. This is now handled in
6386 Snames.Is_Keyword_Name.
6387 * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved
6388 words as for other language versions.
6389 * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to
6390 Ada 2012, not just Ada 2005.
6391
d941cee6
AC
63922011-08-29 Ed Schonberg <schonberg@adacore.com>
6393
6394 * sem_ch13.adb: Additional semantic checks for aspects involved in
6395 iterators.
6396
63972011-08-29 Matthew Heaney <heaney@adacore.com>
6398
6399 * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb,
6400 a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous
6401 Container parameter.
6402 (Ancestor_Find): ditto.
6403
b970af39
TQ
64042011-08-29 Thomas Quinot <quinot@adacore.com>
6405
6406 * par-endh.adb: Minor reformatting.
d941cee6 6407
92db5dee
AC
64082011-08-29 Tristan Gingold <gingold@adacore.com>
6409
6410 * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants.
6411 (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component.
6412 (Adjust_N_CLeanups_For): Remove.
6413 (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of
6414 stack is reached.
6415 (Propgate_Exception): Adjust.
6416 * raise-gcc.c: Add a few static/const.
6417 (Adjust_N_Cleanups_For): Remove declaration.
6418 (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger.
6419
64202011-08-29 Ed Schonberg <schonberg@adacore.com>
6421
6422 * sem_ch8.adb: Use type of function return when rewriting as object
6423 declaration.
6424
1378bf10
AC
64252011-08-29 Gary Dismukes <dismukes@adacore.com>
6426
6427 * sem_type.adb: Minor reformatting.
6428
64292011-08-29 Robert Dewar <dewar@adacore.com>
6430
6431 * makeutl.adb: Minor reformatting.
6432
64332011-08-29 Ed Schonberg <schonberg@adacore.com>
6434
6435 * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a
6436 function call of a limited type, the expansion of the renaming is
6437 complicated by the presence of various temporaries and subtypes that
6438 capture constraints of the renamed object.
6439 Rewrite node as an object declaration, whose expansion is simpler.
6440 Given that the object is limited there is no copy involved and no
6441 performance hit.
6442
164e06c6
AC
64432011-08-29 Robert Dewar <dewar@adacore.com>
6444
6445 * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb,
6446 freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting.
6447
64482011-08-29 Tristan Gingold <gingold@adacore.com>
6449
6450 * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
6451 system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads,
6452 system-linux-hppa.ads, system-linux-s390.ads,
6453 system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
6454 system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads,
6455 system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads,
6456 system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads,
6457 system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads,
6458 system-solaris-sparc.ads, system-lynxos-x86.ads,
6459 system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads,
6460 system-solaris-x86_64.ads, system-mingw-x86_64.ads,
6461 system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads,
6462 system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads,
7d266442 6463 system-vxworks-x86.ads: Remove GCC_ZCX_Support.
164e06c6
AC
6464 * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb,
6465 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto.
6466 * opt.ads: Adjust comment.
6467 * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target.
6468 * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target.
6469 * system.ads: Move GCC_ZCX_Support to obsolete entries.
6470
64712011-08-29 Emmanuel Briot <briot@adacore.com>
6472
6473 * makeutl.adb (Do_Complete): Resolve symbolic links when a relative
6474 file name is specified on the gnatmake or gprbuild command line, and
6475 before we search for that file in the project.
6476
64772011-08-29 Ed Schonberg <schonberg@adacore.com>
6478
6479 * sem_type.adb (Within_Instance): New predicate in Collect_Interps,
6480 used to determine whether a possible interpretation for an overloadable
6481 entity is declared within the current instantiation and should be
6482 included in the candidate set.
6483
64842011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
6485
6486 * gnat_rm.texi, gnat_ugn.texi: Clean ups.
6487
97216ca8
ES
64882011-08-29 Ed Schonberg <schonberg@adacore.com>
6489
6490 * sem_res.adb (Resolve_Actuals): Use base type to determine whether an
6491 access subtype is access_to_subprogram, when applying checks for
6492 RM 3.10.2 (27).
6493
d3cb4cc0
AC
64942011-08-29 Matthew Heaney <heaney@adacore.com>
6495
6496 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
6497 for sibling when common parent.
6498
64992011-08-29 Thomas Quinot <quinot@adacore.com>
6500
6501 * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
6502 "pragma_".
6503
65042011-08-29 Ed Schonberg <schonberg@adacore.com>
6505
6506 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
6507 for the return type when in ASIS mode.
6508
65092011-08-29 Vincent Celier <celier@adacore.com>
6510
6511 * make.adb (Gnatmake): Get the default search dirs, then the target
6512 parameters after getting the Builder switches, as the Builder switches
6513 may include --RTS= and that could change the default search dirs.
6514
65152011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6516
6517 * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
6518 Make_Final_Call. Move the processing for class-wide types before the
6519 processing for derivations from [Limited_]Controlled.
6520 (Make_Final_Call): Move the processing for class-wide types before the
6521 processing for derivations from [Limited_]Controlled.
6522 * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
6523 Add code to account for alignments larger than the list header. Add a
6524 comment illustrating the structure of the allocated object + padding +
6525 header.
6526 (Deallocate_Any_Controlled): Add code to account for alignments larger
6527 than the list header.
6528
65292011-08-29 Ed Schonberg <schonberg@adacore.com>
6530
6531 * sinfo.ads, sinfo.adb: New node kind
6532 N_Formal_Incomplete_Type_Definition, related flags.
6533 par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
6534 Parse formal incomplete types.
6535 * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
6536 sem_ch12.
6537 * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
6538 Formal incomplete types do not need completion.
6539 * sem_ch12.adb (Analyze_Formal_Incomplete_Type,
6540 Validate_Incomplete_Type_Instance): New procedures to handle formal
6541 incomplete types.
6542 * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
6543 that corresponds to a formal incomplete type.
6544 * sprint.adb: Handle formal incomplete type declarations.
6545 * exp_util.adb (Insert_Actions): An incomplete_type_definition is not
6546 an insertion point.
6547
d3f70b35
AC
65482011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6549
6550 * a-fihema.ads, a-fihema.adb: Unit removed.
6551 * a-undesu.ads, a-undesu.adb: New unit implementing
6552 Ada.Unchecked_Deallocate_Subpool.
6553 * einfo.adb: Remove Associated_Collection from the node usage.
6554 Add Finalization_Master to the node usage.
6555 (Associated_Collection): Removed.
6556 (Finalization_Master): New routine.
6557 (Set_Associated_Collection): Removed.
6558 (Set_Finalization_Master): New routine.
6559 (Write_Field23_Name): Remove Associated_Collection from the output. Add
6560 Finalization_Master to the output.
6561 * einfo.ads: Remove attribute Associated_Collection and its uses in
6562 entities.
6563 Add new attribute Finalization_Master along with its uses in entitites.
6564 (Associated_Collection): Removed along with its pragma import.
6565 (Finalization_Master): New routine along with a pragma import.
6566 (Set_Associated_Collection): Removed along with its pragma import.
6567 (Set_Finalization_Master): New routine along with a pragma import.
6568 * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to
6569 Build_Finalization_Collection with Build_Finalization_Master.
6570 (Expand_Freeze_Record_Type): Move the generation of Finalize_Address
6571 before the bodies of the predefined routines. Add comment explaining
6572 this. Replace call to Build_Finalization_Collection with
6573 Build_Finalization_Master.
6574 (Freeze_Type): Replace call to Build_Finalization_Collection with
6575 Build_Finalization_Master.
6576 (Make_Finalize_Address_Body): Comment reformatting.
6577 (Make_Predefined_Primitive_Specs): Code reformatting.
6578 (Stream_Operation_OK): Update comment mentioning finalization
6579 collections. Replace RE_Finalization_Collection with
6580 RE_Finalization_Master.
6581 * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to
6582 Associated_Collection with Finalization_Master. Replace call to
6583 Build_Finalization_Collection with Build_Finalization_Master.
6584 (Expand_Allocator_Expression): Replace call to Associated_Collection
6585 with Finalization_Master. Replace call to Set_Associated_Collection with
6586 Set_Finalization_Master. Remove the generation of
6587 Set_Finalize_Address_Ptr.
6588 (Expand_N_Allocator): Replace call to Associated_Collection with
6589 Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr.
6590 * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to
6591 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the
6592 comment on usage. Replace call to Needs_BIP_Collection with
6593 Needs_BIP_Finalization_Master Remplace BIP_Collection with
6594 BIP_Finalization_Master. Update all comments which mention finalization
6595 collections. Replace Associated_Collection with
6596 Finalization_Master. Replace Build_Finalization_Collection with
6597 Build_Finalization_Master.
6598 (BIP_Formal_Suffix): Update BIP_Collection's case.
6599 (Build_Heap_Allocator): Update the related comment. Rename local
6600 variable Collect to Fin_Mas_Id and update its occurrences. Update
6601 comments which mention finalization collections. Replace
6602 Set_Associated_Collection with Set_Finalization_Master.
6603 (Expand_Call): Update the code which detects a special piece of library
6604 code for .NET/JVM.
6605 (Make_Build_In_Place_Call_In_Allocator): Replace the call to
6606 Add_Collection_Actual_To_Build_In_Place_Call with
6607 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code
6608 which generates a call to Make_Set_Finalize_Address_Ptr_Call.
6609 (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to
6610 Add_Collection_Actual_To_Build_In_Place_Call with
6611 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
6612 (Make_Build_In_Place_Call_In_Assignment): Replace call to
6613 Add_Collection_Actual_To_Build_In_Place_Call with
6614 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
6615 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
6616 * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master.
6617 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
6618 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage.
6619 Rename local variable Collect to Fin_Mas_Id and update its occurrences.
6620 Replace call to Set_Associated_Collection with Set_Finalization_Master.
6621 (Build_Finalization_Collection): Renamed to Build_Finalization_Master.
6622 Replace the call to Associated_Collection with Finalization_Master.
6623 Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences.
6624 Update the way finalization master names are generated. Update the
6625 retrieval of the correct access type which will carry the pool and
6626 master attributes.
6627 (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved.
6628 (Make_Finalize_Address_Body): Abstract types do not need
6629 Finalize_Address. Code reformatting.
6630 (Make_Finalize_Address_Stmts): Update comment on usage.
6631 (Make_Set_Finalize_Address_Ptr_Call): Removed.
6632 (Process_Declarations): Update comments.
6633 * exp_ch7.ads (Build_Finalization_Collection): Renamed to
6634 Build_Finalization_Master. Update associated comment.
6635 (Make_Set_Finalize_Address_Ptr_Call): Removed.
6636 * exp_ch13.adb: Update comments which mention finalization collections.
6637 (Expand_N_Free_Statement): Replace the call to Associated_Collection
6638 with Finalization_Master.
6639 * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to
6640 create calls to routines Allocate_Any_Controlled and
6641 Deallocate_Any_Controlled.
6642 (Find_Finalize_Address): New routine.
6643 (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the
6644 comparison.
6645 (Requires_Cleanup_Actions): Update the comment on freeze node
6646 inspection.
6647 * exp_util.ads: Remove comment on generated code for
6648 Build_Allocate_Deallocate_Proc. The code is now quite complex and it
6649 is better to simply look in the body.
6650 * freeze.adb (Freeze_All): Update the comment of finalization
6651 collections. Replace the call to Associated_Collection with
6652 Finalization_Master. Replace the call to Build_Finalization_Collection
6653 with Build_Finalization_Master.
6654 * impunit.adb: Add a-undesu and s-stposu to the list of units.
6655 * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file
6656 a-fihema.
6657 * rtsfind.adb (Get_Unit_Name): Remove the processing for children of
6658 Ada.Finalization. Add processing for children of System.Storage_Pools.
6659 * rtsfind.ads: Remove the naming of second level children of
6660 Ada.Finalization.
6661 Remove Ada_Finalization_Heap_Management from the list of units.
6662 Remove subtype Ada_Finalization_Child.
6663 Remove the following subprogram entities:
6664
6665 RE_Allocate
6666 RE_Deallocate
6667 RE_Finalization_Collection
6668 RE_Finalization_Collection_Ptr
6669 RE_Set_Finalize_Address_Ptr
6670
6671 Add the naming of second level children of System.Storage_Pools.
6672 Add System_Finalization_Masters and System_Storage_Pools_Subpools to
6673 the list of units.
6674 Add subtype System_Storage_Pools_Child.
6675 Add the following subprogram entities to System.Finalization_Masters:
6676
6677 RE_Finalization_Master
6678 RE_Finalization_Master_Ptr
6679
6680 Add the following subprogram entities to System.Storage_Pools.Subpools:
6681
6682 RE_Allocate_Any_Controlled
6683 RE_Deallocate_Any_Controlled
6684 RE_Root_Storage_Pool_With_Subpools
6685 RE_Root_Subpool
6686 RE_Subpool_Handle
6687
6688 Move the following subprogram entities from
6689 Ada.Finalization.Heap_Management to System.Finalization_Masters:
6690
6691 RE_Add_Offset_To_Address
6692 RE_Attach
6693 RE_Base_Pool
6694 RE_Detach
6695
6696 * sem_ch3.adb (Access_Type_Declaration): Replace the call to
6697 Set_Associated_Collection with Set_Finalization_Master.
6698 * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal
6699 BIP_Finalization_Master is created.
6700 * s-finmas.adb: New unit System.Finalization_Masters.
6701 * s-finmas.ads: New unit System.Finalization_Masters.
6702 * s-stopoo.ads, s-stopoo.adb: Minor code reformatting.
6703 * s-stposu.ads, s-stposu.adb: New unit implementing
6704 System.Storage_Pools.Subpools.
6705
67062011-08-29 Bob Duff <duff@adacore.com>
6707
6708 * tbuild.adb: Add assertion.
6709
8c889ae4
AC
67102011-08-29 Thomas Quinot <quinot@adacore.com>
6711
6712 * s-pooglo.adb: Minor reformatting.
6713
67142011-08-29 Ed Schonberg <schonberg@adacore.com>
6715
6716 * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is
6717 an indexed component of a packed array whose element type is a record
6718 with a representation clause different from that of the right-hand
6719 side, generate a temporary to minimuze the number of bit-field
6720 operations generated.
6721
67222011-08-29 Ed Schonberg <schonberg@adacore.com>
6723
6724 * exp_util.adb (Insert_Actions): Use clauses can be part of lists of
6725 declarations, and thus are likely insertion points for actions.
6726
67272011-08-29 Bob Duff <duff@adacore.com>
6728
6729 * einfo.ads: Minor comment fix.
6730
1a07a71a
AC
67312011-08-29 Robert Dewar <dewar@adacore.com>
6732
6733 * frontend.adb, gnat1drv.adb: Minor reformatting.
6734
67352011-08-29 Tristan Gingold <gingold@adacore.com>
6736
6737 * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment.
6738 * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding
6739 space in front of the header.
6740
4bcd6411
JK
67412011-08-29 Johannes Kanig <kanig@adacore.com>
6742
6743 * frontend.adb (Frontend): Exit after creating Standard package when
6744 -gnatd.H is present.
6745 * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is
6746 present.
6747
f0f88eb6
RD
67482011-08-29 Robert Dewar <dewar@adacore.com>
6749
6750 * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb,
6751 makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl,
6752 snames.ads-tmpl: Minor reformatting.
6753
3e37be71
PG
67542011-08-29 Philippe Gil <gil@adacore.com>
6755
6756 * prj.adb (Reset_Units_In_Table): New procedure.
6757 Reset units to avoid access to freed memory.
6758
94fb7608
AC
67592011-08-29 Thomas Quinot <quinot@adacore.com>
6760
6761 * get_scos.adb: When reading a P statement SCO without a pragma name
6762 (from an older ALI file), ensure that the Pragma_Name component is set
6763 to Unknown_Pragma (not left uninitialized).
6764
67652011-08-29 Vincent Celier <celier@adacore.com>
6766
6767 * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and
6768 modified to compute correctly the object path of a SAL project that is
6769 extending another library project.
6770 (Write_Path_File): New procedure.
6771 * makeutl.ads (Directories): New table moved from Buildgpr
6772 (Get_Directories): New procedure moved from Buildgpr
6773 (Write_Path_File): New procedure
6774 * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the
6775 paths before binding SALs, instead of Set_Ada_Paths.
6776 * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package
6777 Prj.
6778 * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env
6779 (Current_Source_Path_File_Of): New function
6780 (Set_Current_Object_Path_File_Of): New procedure
6781 (Current_Source_Object_File_Of): New function
6782 (Set_Current_Object_Path_File_Of): New procedure
6783 * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env
6784 (Current_Source_Path_File_Of): New function
6785 (Set_Current_Object_Path_File_Of): New procedure
6786 (Current_Source_Object_File_Of): New function
6787 (Set_Current_Object_Path_File_Of): New procedure
6788
67892011-08-29 Ed Schonberg <schonberg@adacore.com>
6790
6791 * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a
6792 packed entity, use a bit-field assignment only if there is no change of
6793 representation.
6794
c5ecd6b7
AC
67952011-08-29 Thomas Quinot <quinot@adacore.com>
6796
6797 * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use
6798 Is_RTU instead of using Chars comparisons.
6799
68002011-08-29 Thomas Quinot <quinot@adacore.com>
6801
6802 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a
6803 temporary object if the actual is constrained, and the discriminants
6804 read from the stream don't match.
6805
68062011-08-29 Tristan Gingold <gingold@adacore.com>
6807
6808 * sem_attr.adb, exp_attr.adb: Add handling of
6809 Attribute_System_Allocator_Alignment
6810 * snames.ads-tmpl: Add Name_System_Allocator_Alignment and
6811 Attribute_System_Allocator_Alignment.
6812 * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment.
6813 * gcc-interface/targtyps.c, gcc-interface/utils2.c,
6814 gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to
6815 get_target_system_allocator_alignment.
6816
68172011-08-29 Arnaud Charlet <charlet@adacore.com>
6818
6819 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6820 dependencies.
6821
8abdac29
AC
68222011-08-29 Arnaud Charlet <charlet@adacore.com>
6823
6824 * exp_ch3.adb (In_Runtime): Fix typo.
6825
df170605
AC
68262011-08-29 Bob Duff <duff@adacore.com>
6827
6828 * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification.
6829
68302011-08-29 Ed Schonberg <schonberg@adacore.com>
6831
6832 * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged
6833 and a separate tag assignment is generated, ensure that the tag
6834 assignment is analyzed.
6835
864a4236
ES
68362011-08-29 Ed Schonberg <schonberg@adacore.com>
6837
6838 * atree.ads, atree.adb (Copy_Separate_List): New function that applies
6839 Copy_Separate_Tree to a list of nodes. Used to create disjoint copies
6840 of statement lists that may contain local declarations.
df170605
AC
6841 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to
6842 duplicate the triggering statements needed for the expansion of this
6843 construct, when the trigger is a dispatching call to a synchronized
6844 primitive.
864a4236 6845
7f394c1d
AC
68462011-08-29 Arnaud Charlet <charlet@adacore.com>
6847
6848 * gnat_rm.texi: Add doc for 'Elab_Subp_Body.
6849 * bindgen.adb: Add comments.
6850 * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body
6851 in CodePeer mode.
6852
2c1a2cf3
RD
68532011-08-29 Robert Dewar <dewar@adacore.com>
6854
6855 * exp_attr.adb: Minor reformatting.
6856 Minor code reorganization and commenting.
6857 * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor
6858 reformatting.
6859
0bfc9a64
AC
68602011-08-29 Thomas Quinot <quinot@adacore.com>
6861
6862 * get_scos.adb: Ignore chaining indicators not currently supported
6863 by Ada.
6864
68652011-08-29 Arnaud Charlet <charlet@adacore.com>
6866
6867 * system.ads: Minor editing.
6868
68692011-08-29 Arnaud Charlet <charlet@adacore.com>
6870
6871 * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in
6872 CodePeer mode.
6873 * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of
6874 Attribute_Elab_Subp_Body.
6875 * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New.
6876 * sem_util.adb: Update comments.
6877
828d4cf0
TQ
68782011-08-29 Thomas Quinot <quinot@adacore.com>
6879
6880 * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record
6881 pragma name for each SCO statement corresponding to a pragma.
6882
5cd7bb15
AC
68832011-08-29 Arnaud Charlet <charlet@adacore.com>
6884
6885 * opt.ads: Minor editing.
6886
68872011-08-29 Yannick Moy <moy@adacore.com>
6888
6889 * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode
6890 that only made sense for CodePeer mode.
6891
68922011-08-29 Jose Ruiz <ruiz@adacore.com>
6893
6894 * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag
6895 which is no longer used.
6896 * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the
6897 handling of the 64-bit division check.
6898 * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit
6899 division available.
6900 * system*.ads (Support_64_Bit_Divides): Remove this flag which is no
6901 longer used.
6902
69032011-08-29 Thomas Quinot <quinot@adacore.com>
6904
6905 * get_scos.adb: Minor reformatting.
6906
25b589cb
AC
69072011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6908
6909 * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a
6910 statement list is wrapped in a block, the block is explicitly analyzed
6911 in order to properly redecorate the entities and create a servicing
6912 finalizer.
6913
69142011-08-29 Tristan Gingold <gingold@adacore.com>
6915
6916 * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove.
6917 (Set_Zero_Cost_Handling): Remove.
6918
69192011-08-29 Thomas Quinot <quinot@adacore.com>
6920
6921 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting
6922
1197ddb1
AC
69232011-08-29 Geert Bosch <bosch@adacore.com>
6924
6925 * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation
6926 instruction, as the latter may produce -0.0, which is not a valid VAX
6927 F float number.
6928 (Neg_G): Likewise for VAX F float.
6929
69302011-08-29 Robert Dewar <dewar@adacore.com>
6931
6932 * exp_util.adb: Minor reformatting.
6933
69342011-08-29 Yannick Moy <moy@adacore.com>
6935
6936 * sem_ch3.adb: Minor comment update.
6937
69382011-08-29 Thomas Quinot <quinot@adacore.com>
6939
6940 * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of
6941 the operand type.
6942
69432011-08-29 Thomas Quinot <quinot@adacore.com>
6944
6945 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush
6946 current statement sequence on a generic instantiation or a subprogram
6947 declaration.
6948
8f66cda7
AC
69492011-08-29 Robert Dewar <dewar@adacore.com>
6950
6951 * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb:
6952 Minor reformatting.
6953
69542011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6955
6956 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
6957 Correct the check which involves the freeze node of a controlled or
6958 access-to-controlled type.
6959
69602011-08-29 Geert Bosch <bosch@adacore.com>
6961
6962 * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm
6963 statements.
6964 * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from
6965 Asm statements.
6966
cf161d66
AC
69672011-08-29 Yannick Moy <moy@adacore.com>
6968
6969 * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration
6970 for every index type and component type that is not a subtype_mark.
6971 (Process_Subtype): Set Etype of subtype.
6972
69732011-08-29 Robert Dewar <dewar@adacore.com>
6974
6975 * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code
6976 reorganization. Minor reformatting.
6977
7cc83cd8
AC
69782011-08-29 Steve Baird <baird@adacore.com>
6979
6980 * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion
6981 for CodePeer and ALFA modes.
6982
69832011-08-29 Ed Schonberg <schonberg@adacore.com>
6984
6985 * sem_type.adb (Collect_Interps): Within an instance, collect a homonym
6986 that comes from an enclosing scope if it is not the renaming of an
6987 actual, to handle properly a spurious ambiguity in an instance.
6988
76af4137
AC
69892011-08-29 Eric Botcazou <ebotcazou@adacore.com>
6990
6991 * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to...
6992 (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and
6993 use it instead of the Esize of the first parameter.
6994 (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to
6995 above change.
6996 <Size>: Likewise. Call it for composite types on the RM size.
6997
69982011-08-29 Yannick Moy <moy@adacore.com>
6999
7000 * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array.
7001 * sem_util.adb (Unique_Name): Correct behaviour for names of
7002 compilation units.
7003
9b20e59b
AC
70042011-08-29 Yannick Moy <moy@adacore.com>
7005
7006 * sem_prag.adb (Check_Precondition_Postcondition): In formal
7007 verification mode, analyze pragma expression for correctness, for
7008 pre/post on library-level subprogram, as it is not expanded later.
7009
70102011-08-29 Yannick Moy <moy@adacore.com>
7011
7012 * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates
7013 in formal verification.
7014
70152011-08-29 Thomas Quinot <quinot@adacore.com>
7016
7017 * sem_util.adb: Minor reformatting.
7018 * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute,
7019 there's no pragma.
7020 * par_sco.ads, par_sco.adb: Update comments.
7021
70222011-08-29 Yannick Moy <moy@adacore.com>
7023
7024 * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and
7025 associated getter/setter.
7026 * sem_ch6.adb: Remove reference to Is_Postcondition_Proc.
7027
70282011-08-29 Vincent Celier <celier@adacore.com>
7029
7030 * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind
7031 * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler
7032 with declarations for Language_Kind and Dependency_Kind for Ada.
7033 * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name
7034 (Process_Compiler): Take into account the new attributes Dependency_Kind
7035 and Language_Kind.
7036 (Check_Configuration): Check if language kind is unit based, not if the
7037 language name is Ada.
7038 (Process_Exceptions_Unit_Based): Ditto
7039 (Add_Language): Remove default additions of language and dependency kind
7040 * prj.ads: Minor comment change
7041 * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind
7042
70432011-08-29 Johannes Kanig <kanig@adacore.com>
7044
7045 * debug.adb: Update comments.
7046
c5bc3df6
JM
70472011-08-24 Joseph Myers <joseph@codesourcery.com>
7048
7049 * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
7050 (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
7051 (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
7052 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
7053 (ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
7054
e3aa9eba
RO
70552011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7056
7057 * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
7058 (GNATLIBCFLAGS_FOR_C): Replace
7059 TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
7060 (gnatlib-shared-default, gnatlib-shared-dual-win32)
7061 (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
7062 (gnatlib-sjlj, gnatlib-zcx): Likewise.
7063
f446d60e
EB
70642011-08-07 Eric Botcazou <ebotcazou@adacore.com>
7065
7066 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
7067
588c8f48
EB
7068 * gcc-interface/gigi.h (enumerate_modes): Fix formatting.
7069
7070 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.
7071
28d711bf
NR
70722011-08-05 Nicolas Roche <roche@adacore.com>
7073
7074 * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared
7075 libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with
7076 canadian cross.
7077 * gcc-interface/Make-lang.in: Add support for canadian cross setting.
7078
993f8920
AC
70792011-08-05 Matthew Heaney <heaney@adacore.com>
7080
7081 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth):
7082 subprogram bodies declared out-of-order.
7083
70842011-08-05 Yannick Moy <moy@adacore.com>
7085
7086 * sem_util.adb (Unique_Name): only prefix with "standard" the names of
7087 entities directly in package Standard, otherwise skip the standard
7088 prefix.
7089
9b3956dd
RD
70902011-08-05 Robert Dewar <dewar@adacore.com>
7091
7092 * a-cbmutr.adb: Minor reformatting
7093 (Allocate_Node): refactor node allocation algorithm
7094
70952011-08-05 Robert Dewar <dewar@adacore.com>
7096
7097 * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch.
7098 * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable
7099 mode.
7100 (Analyze_Pragma, case Check_Policy): Ditto.
7101 * sem_prag.ads (Check_Disabled): New function
7102 * snames.ads-tmpl: Add Name_Disable.
7103
71042011-08-05 Robert Dewar <dewar@adacore.com>
7105
7106 * gnat_rm.texi: Document implementation-defined policy DISABLE for
7107 pragmas Assertion_Policy, Check_Policy, Debug_Policy.
7108
79e705d6
AC
71092011-08-05 Ed Schonberg <schonberg@adacore.com>
7110
7111 * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma
7112 that appears in a generic formal part and applies to a formal
7113 subprogram.
7114
71152011-08-05 Robert Dewar <dewar@adacore.com>
7116
7117 * a-cbmutr.ads: Minor reformatting.
7118
23b6deca
AC
71192011-08-05 Matthew Heaney <heaney@adacore.com>
7120
7121 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid
7122 to check count, check sign of value instead.
7123 * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty
7124 (Copy_Subtree): allocate copy of source element
7125 (Equal_Subtree): compare elements, not access objects
7126
71272011-08-05 Vincent Celier <celier@adacore.com>
7128
7129 * gnat_ugn.texi: Fix VMS alternative.
7130
a2773bd3
AC
71312011-08-05 Thomas Quinot <quinot@adacore.com>
7132
7133 * sem_ch11.adb: Add comment.
7134
71352011-08-05 Robert Dewar <dewar@adacore.com>
7136
7137 * exp_util.adb: Minor comment fix.
7138
71392011-08-05 Robert Dewar <dewar@adacore.com>
7140
7141 * scng.adb (Error_Unterminated_String): Improve flag position when
7142 comma present.
7143
71442011-08-05 Matthew Heaney <heaney@adacore.com>
7145
7146 * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway
7147 tree containers).
7148 * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded
7149 multiway tree containers.
7150
71512011-08-05 Robert Dewar <dewar@adacore.com>
7152
7153 * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2
7154 * stylesw.adb: Implement -gnatyC to control comment spacing
7155 * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by
7156 -gnatyc/C).
7157 * usage.adb: Add line for -gnatyC.
7158
71592011-08-05 Robert Dewar <dewar@adacore.com>
7160
f446d60e 7161 * gnat_ugn.texi: Document -gnatyC.
a2773bd3
AC
7162 * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a
7163 synonym for COMMENTS2).
7164
dedac3eb
RD
71652011-08-05 Robert Dewar <dewar@adacore.com>
7166
7167 * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb,
7168 a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb,
7169 sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb,
7170 a-comutr.ads, lib-xref.adb: Minor reformatting.
7171
71722011-08-05 Robert Dewar <dewar@adacore.com>
7173
7174 * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal
7175 warning if there is an exception handler present.
7176
7c62a85a
AC
71772011-08-05 Pascal Obry <obry@adacore.com>
7178
7179 * a-iteint.ads: Fix copyright year.
7180
71812011-08-05 Thomas Quinot <quinot@adacore.com>
7182
7183 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a
7184 statement SCO for a USE clause or a representation clause.
7185
71862011-08-05 Yannick Moy <moy@adacore.com>
7187
7188 * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation
7189 between body and spec for stub.
7190 (Detect_And_Add_ALFA_Scope): take into account subprogram stub
7191 * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a
7192 pragma precondition or postcondition, for which the enclosing
7193 subprogram or package in the AST is not the desired one, return empty.
7194
e49208a9
AC
71952011-08-05 Thomas Quinot <quinot@adacore.com>
7196
7197 * g-expect.adb: Minor reformatting.
7198
71992011-08-05 Bob Duff <duff@adacore.com>
7200
7201 * a-fihema.adb: Comment out OS_Lib.
7202
72032011-08-05 Matthew Heaney <heaney@adacore.com>
7204
7205 * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb]
7206 (unbounded multiway tree containers) and a-iteint.ads.
7207 * a-comutr.ads, a-comutr.adb:
7208 This is the new Ada 2012 unit for unbounded multiway tree containers
7209 * a-cimutr.ads, a-cimutr.adb
7210 This is the new Ada 2012 unit for indefinite multiway tree containers
7211 * a-iteint.ads: New file.
7212
201cdb74
RO
72132011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7214
f446d60e 7215 * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc.
201cdb74 7216
d50f4827
AC
72172011-08-05 Bob Duff <duff@adacore.com>
7218
7219 * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for
7220 subpools.
7221 * par-ch4.adb (P_Allocator): Parse new subpool specification syntax.
7222
72232011-08-05 Ed Schonberg <schonberg@adacore.com>
7224
7225 * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the
7226 general indexing aspects of Ada2012. Called when analyzing indexed
7227 components when other interpretations fail.
7228 * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only
7229 in an expression context where overloading is meaningful. This excludes
7230 the occurrence in an aspect specification (efficiency only).
7231 * sem_attr.adb (Analyze_Attribute): indicate that the attributes
7232 related to iterators can be set by an attribute specification, but
7233 cannot be queried.
7234 * sem_ch13.adb (Analyze_Aspect_Specifications): handle
7235 Constant_Indexing and Variable_Indexing.
7236 (Check_Indexing_Functions): New procedure to perform legality checks.
7237 Additional semantic checks at end of declarations.
7238
efe05dfc
AC
72392011-08-05 Sergey Rybin <rybin@adacore.com>
7240
7241 * tree_io.ads: Update ASIS_Version_Number because of the change of the
7242 order of calling Tree_Write/Tree_Read routines made for aspects.
7243
72442011-08-05 Bob Duff <duff@adacore.com>
7245
7246 * a-fihema.adb (Finalize): Fix race condition.
7247
5f9cdefe
AC
72482011-08-05 Yannick Moy <moy@adacore.com>
7249
7250 * sem_ch12.adb (Analyze_Package_Instantiation,
7251 Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA
7252 mode.
7253
72542011-08-05 Ed Schonberg <schonberg@adacore.com>
7255
7256 * sem_type.adb (Specific_Type): in an instance, the type-specific
7257 operand of an equality check that involves null may have a private
7258 type. Use full view to determine legality of construct.
7259
822868aa
AC
72602011-08-05 Vincent Celier <celier@adacore.com>
7261
7262 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
7263 delete or close the file when the call to gnatmake was successful.
7264
72652011-08-05 Yannick Moy <moy@adacore.com>
7266
7267 * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set
7268 Global_Discard_Names.
7269
72702011-08-05 Ed Schonberg <schonberg@adacore.com>
7271
7272 * sinfo.ads: comments on use of entity field for aspect specifications.
7273
72742011-08-05 Ed Schonberg <schonberg@adacore.com>
7275
7276 * sem_ch12.adb (Reset_Entity): If the entity field of the associated
7277 node is not itself an entity but a selected component, it is a
7278 rewritten parameterless call to an en enclosing synchronized operation,
7279 and this expansion will be performed again in the instance, so there is
7280 no global information to preserve.
7281
44a10091
AC
72822011-08-05 Javier Miranda <miranda@adacore.com>
7283
7284 * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support
7285 for renamings of predefined primitives.
7286 (In_Predef_Prims_DT): New subprogram.
7287
72882011-08-05 Ed Schonberg <schonberg@adacore.com>
7289
7290 * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a
7291 possible interpretation of name is a reference type, add an
7292 interpretation that is the designated type of the reference
7293 discriminant of that type.
7294 * sem_res.adb (resolve): If the interpretation imposed by context is an
7295 implicit dereference, rewrite the node as the deference of the
7296 reference discriminant.
7297 * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type,
7298 Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from
7299 parent type or base type.
7300 * sem_ch4.adb (Process_Indexed_Component,
7301 Process_Overloaded_Indexed_Component, Indicate_Name_And_Type,
7302 Analyze_Overloaded_Selected_Component, Analyze_Selected_Component):
7303 Check for implicit dereference.
7304 (List_Operand_Interps): Indicate when an implicit dereference is
7305 ambiguous.
7306 * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference.
7307
73082011-08-05 Thomas Quinot <quinot@adacore.com>
7309
7310 * scos.ads: Update documentation of SCO table. Pragma statements can now
7311 be marked as disabled (using 'p' instead of 'P' as the statement kind).
7312 * par_sco.ads, par_sco.adb: Implement the above change.
7313 (Process_Decisions_Defer): Generate a P decision for the first parameter
7314 of a dyadic pragma Debug.
7315 * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if
7316 necessary.
7317 * put_scos.adb: Code simplification based on above change.
7318
bb3c784c
AC
73192011-08-05 Robert Dewar <dewar@adacore.com>
7320
7321 * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb,
7322 bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb,
7323 a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads,
7324 prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting
7325
73262011-08-05 Bob Duff <duff@adacore.com>
7327
7328 * a-stunau.ads, g-spipat.adb: Update comments.
7329
36f686f9
BD
73302011-08-05 Bob Duff <duff@adacore.com>
7331
7332 * a-fihema.ads: Minor comment fix.
7333 * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is
7334 correct.
7335 (Attach, Detach): Remove some unnecessary code.
7336 (Finalize): Remove Node_Ptr_To_Address, replace with a constant.
7337
7882673f
BD
73382011-08-05 Bob Duff <duff@adacore.com>
7339
7340 * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
7341 allocation for Objects component. This simplifies the code somewhat. It
7342 is also a little more efficient in the not-so-unusual case where there
7343 are no controlled objects allocated.
7344 Make Finalization_Started flag atomic.
7345 (Finalize): Avoid unnecessary detachment of items from the list.
7346 (pcol): Minor cleanup.
7347
d34cd274
AC
73482011-08-05 Ed Schonberg <schonberg@adacore.com>
7349
7350 * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal
7351 package whose name is the same as that of the generic unit, or its
7352 ultimate prefix.
7353
73542011-08-05 Bob Duff <duff@adacore.com>
7355
7356 * a-fihema.adb, a-fihema.ads: Minor comment improvements.
7357 * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb:
7358 Minor comment fixes.
7359
00332244
AC
73602011-08-05 Arnaud Charlet <charlet@adacore.com>
7361
7362 * make.adb (Linking_Phase): No longer need to set source search path
7363 before calling gnatlink in CodePeer mode.
7364 * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to
7365 gcc in CodePeer mode, since the binder generated file no longer has a
7366 'with Main'.
7367 * switch.ads, switch.adb (Is_Language_Switch): Removed.
7368 * switch-c.adb: Update comment.
7369
73702011-08-05 Thomas Quinot <quinot@adacore.com>
7371
7372 * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting.
7373
73742011-08-05 Nicolas Roche <roche@adacore.com>
7375
7376 * gnat_ugn.texi: Fix minor syntax error issue.
7377
73782011-08-05 Vincent Celier <celier@adacore.com>
7379
7380 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
7381 delete or close the file when the call to gnatmake returns a non
7382 successful return code.
7383
73842011-08-05 Ed Schonberg <schonberg@adacore.com>
7385
7386 * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate
7387 check, indicate that the copy of the original node does not come from
7388 source, to prevent an infinite recursion of the expansion.
7389
73902011-08-05 Johannes Kanig <kanig@adacore.com>
7391
7392 * debug.adb: document switch -gnatd.G for gnat2why, which deactivates
7393 VC generation for subprogram bodies.
7394
73952011-08-05 Yannick Moy <moy@adacore.com>
7396
7397 * einfo.ads: Typo.
7398 * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define
7399 the base type with the smallest allowed base type.
7400
74012011-08-05 Sergey Rybin <rybin@adacore.com>
7402
7403 * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for
7404 aspects.
7405
74062011-08-05 Ed Schonberg <schonberg@adacore.com>
7407
7408 * sem_ch12.ads: minor comment updates.
7409
74102011-08-05 Ed Schonberg <schonberg@adacore.com>
7411
7412 * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an
7413 instantiation and a formal package the compiler generates a package
7414 renaming declaration so that the generic name within the declaration
7415 is interpreted as a renaming of the instance. At the end of a formal
7416 package declaration, this renaming must become invisible.
7417
0da80d7d
AC
74182011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
7419
7420 * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character
7421 comparison and rely on concrete entities instead.
7422
74232011-08-05 Ed Schonberg <schonberg@adacore.com>
7424
7425 * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types
7426 and discriminants, to indicate that the type has an access discriminant
7427 that supports implicit dereference.
7428 * snames.ads-tmpl: Add names of aspects and attributes related to
7429 Ada2012 iterators: constant_indexing, default_iterator,
7430 iterator_element, implicit_dereference, variable_indexing.
7431 * aspects.ads, aspects.adb: entries for iterator-related aspects.
7432 * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for
7433 iterator-related aspects.
7434 * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects.
7435
74362011-08-05 Sergey Rybin <rybin@adacore.com>
7437
7438 * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling
7439 metrics in gnatmetric to cover new kinds of coupling mentrics.
7440
74412011-08-05 Steve Baird <baird@adacore.com>
7442
7443 * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead
2c7f9cc0 7444 of calling the user-defined main subprogram.
0da80d7d
AC
7445 (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode
7446 is set) Call_Main_Subprogram ahead of, as opposed to
7447 inside of, Main.
7448 (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional
7449 generation of a "with" of the user-defined main subprogram.
7450 Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper
7451 (which is now called from Gen_Main instead).
7452
73242473
AC
74532011-08-05 Emmanuel Briot <briot@adacore.com>
7454
7455 * projects.texi: Added reference to the Makefile package.
7456
74572011-08-05 Thomas Quinot <quinot@adacore.com>
7458
7459 * exp_ch7.adb: Minor comment rewording.
7460
74612011-08-05 Ed Falis <falis@adacore.com>
7462
7463 * env.c: Fix comment.
7464
74652011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
7466
7467 * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid
7468 character comparison and rely on concrete entities instead.
7469
97ed5872
AC
74702011-08-05 Ed Schonberg <schonberg@adacore.com>
7471
7472 * sem_ch3.adb: (Check_Private_Overriding): better error message,
7473 suggested by AI95-0068.
7474
74752011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
7476
7477 * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve
7478 the two potential initialization calls. This accounts for any
7479 access-before-elaboration checks which may precede the initialization
7480 calls.
7481 (Next_Suitable_Statement): New routine. Returns the next real statement
7482 after the input node while skipping generated checks.
7483 * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along
7484 with comment on usage.
7485 Do not generate Elaborate_All when the trigger is a finalization call
7486 coming from a type init proc.
7487 (Check_Elab_Call): Propagate the initialization procedure context to
7488 subsequent calls to Check_A_Call.
7489 (Check_Internal_Call_Continue): Propagate the initialization procedure
7490 context to subsequent calls to Check_Elab_Call.
7491 (Is_Finalization_Procedure): New routine. Returns True if the input
7492 entity denotes a [Deep_]Finalize routine.
7493 * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc
7494 along with comment on usage.
7495
74962011-08-05 Vadim Godunko <godunko@adacore.com>
7497
7498 * s-atocou.ads: Add list of supported platforms.
7499
75002011-08-05 Yannick Moy <moy@adacore.com>
7501
7502 * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables
7503
7504 * opt.ads (Disable_ALI_File): new Boolean flag
7505 * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing
7506
75072011-08-05 Ed Falis <falis@adacore.com>
7508
7509 * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that
7510 environ is properly defined.
7511
75122011-08-05 Vincent Celier <celier@adacore.com>
7513
7514 * make.adb (Compilation_Phase): Exit immediately when all objects have
7515 been found up to date, to avoid multiple exit messages.
7516 * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the
7517 same project for languages with no compiler.
7518 * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch
7519 -eI.
9aff36e9
RD
75202011-08-05 Robert Dewar <dewar@adacore.com>
7521
7522 * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb,
7523 sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb,
7524 prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb,
7525 s-atocou-builtin.adb: Minor reformatting.
7526
406935b6
AC
75272011-08-05 Yannick Moy <moy@adacore.com>
7528
7529 * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode,
7530 if the node to wrap is a pragma check, this node and enclosed
7531 expression are not expanded, so do not apply any transformations here.
7532 * exp_prag.adb (Expand_Pragma_Check): document the need to avoid
7533 introducing transient scopes.
7534
75352011-08-05 Jose Ruiz <ruiz@adacore.com>
7536
7537 * adaint.c (__gnat_set_writable, __gnat_set_readable,
7538 __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable,
7539 __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod
7540 routine is available, so we use the default implementation of these
7541 functions.
7542 * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is
7543 support for copying attributes on VxWorks 6.
7544
75452011-08-05 Yannick Moy <moy@adacore.com>
7546
7547 * debug.adb: Remove use of -gnatd.D.
7548 * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode
7549 * opt.ads: Simplify variables for ALFA mode, to keep one only
7550 * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode
7551 to ALFA mode.
7552
75532011-08-05 Vincent Celier <celier@adacore.com>
7554
7555 * prj-conf.adb (Do_Autoconf): Look also for --RTS in
7556 Builder'Default_Switches.
7557
75582011-08-05 Vincent Celier <celier@adacore.com>
7559
7560 * makeusg.adb: Add lines for --create-map-file switches.
7561
75622011-08-05 Ed Schonberg <schonberg@adacore.com>
7563
7564 * freeze.adb (Freeze_Entity): For a subprogram, if a type in the
7565 profile is incomplete and the full view is available, replace it with
7566 the full view.
7567 * sem_ch6.adb (Possible_Freeze): if a type in the profile is
7568 incomplete, freezing the subprogram is delayed until the full view is
7569 frozen.
7570 * sem_type.adb (Disambiguate): an ambiguity between a user-defined
7571 fixed-point multiplication operator and the predefined operator is
7572 resolved in favor of the user-defined one.
7573
96c891b3
RO
75742011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7575
7576 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use
7577 CONST_CAST.
7578
276e7ed0
AC
75792011-08-04 Ed Schonberg <schonberg@adacore.com>
7580
7581 * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
7582 whether a type lacks user-defined Read or Write operations, or has a
7583 component that lacks them.
7584 * sem_attr.adb (Check_Stream_Attribute): if restriction
7585 No_Default_Stream_Attributes is active, verify that all subcomponent
7586 types of the target have user-defined stream operations, and report
7587 error otherwise.
7588 * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
7589 * exp_strm.adb: Build_Elementary_Input_Call,
7590 Build_Elementary_Write_Call): remove checks for restriction
7591 No_Default_Stream_Attributes, now checked in semantics.
7592
75932011-08-04 Vincent Celier <celier@adacore.com>
7594
7595 * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
7596 switches on the command line, look for all valid --RTS switches in the
7597 Builder switches and for each language use the first runtime name found
7598 to invoke gprconfig.
7599 (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
7600 command line and there is no auto-configuration.
7601 (Runtime_Name_Set_For): New function.
7602
76032011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7604
7605 * exp_ch7.adb (Build_Object_Declarations): Do not generate the
7606 elaborate initialization expression for variable Abort when processing
7607 a package body or a declaration.
7608 (Create_Finalizer): Propagate the package context when creating the
7609 exception-related variables.
7610 * exp_ch7.ads (Build_Object_Declarations): New formal parameter
7611 For_Package along with usage comment.
7612
19172ae9
AC
76132011-08-04 Arnaud Charlet <charlet@adacore.com>
7614
7615 * gcc-interface/Makefile.in: Clean up targets.
7616 Enable new package for atomic counters and copy-on-write implementation
7617 of unbounded strings on x86 platforms.
7618 * gcc-interface/Make-lang.in: Update dependencies.
7619
0319cacc
AC
76202011-08-04 Robert Dewar <dewar@adacore.com>
7621
7622 * exp_ch7.adb: Minor reformatting.
7623
76242011-08-04 Robert Dewar <dewar@adacore.com>
7625
7626 * exp_strm.adb: Minor reformatting.
7627
76282011-08-04 Vadim Godunko <godunko@adacore.com>
7629
7630 * s-atocou.adb: Replace by dummy version and use on targets where atomic
7631 operations are not supported.
7632 * s-atocou-builtin.adb: Renamed from s-atocou.adb.
7633 * s-atocou-x86.adb: New file.
7634 * Makefile.rtl: Add s-atocou.o file
7635
76362011-08-04 Arnaud Charlet <charlet@adacore.com>
7637
7638 * make.adb (Compile): Move setting of CodePeer_Mode to ...
7639 (Compilation_Phase): ... here.
7640 (Scan_Make_Arg): Now bind and link by default in CodePeer mode.
7641
76422011-08-04 Thomas Quinot <quinot@adacore.com>
7643
7644 * Make-generated.in: Fix minor typo in comment.
7645
26e7e1a0
AC
76462011-08-04 Thomas Quinot <quinot@adacore.com>
7647
7648 * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve
7649 the project path.
7650
76512011-08-04 Robert Dewar <dewar@adacore.com>
7652
7653 * a-coinho.adb: Minor reformatting.
7654
76552011-08-04 Robert Dewar <dewar@adacore.com>
7656
7657 * a-coinho.ads: Minor reformatting.
7658
76592011-08-04 Vadim Godunko <godunko@adacore.com>
7660
7661 * s-atocou.ads, s-atocou.adb: New files.
7662 * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads,
7663 a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove
7664 direct use of GCC's atomic builtins and replace them by use of new
7665 atomic counter package.
7666
76672011-08-04 Ed Schonberg <schonberg@adacore.com>
7668
7669 * exp_strm.adb: better error message for No_Default_Stream_Attributes.
7670
76712011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7672
7673 * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic
7674 with a call to Get_External_Tag.
7675 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on
7676 subprogram usage. Remove the guard against package declarations and
7677 bodies since Build_Cleanup_Statements is no longer invoked in that
7678 context.
7679 (Build_Components): Initialize Tagged_Type_Stmts when the context
7680 contains at least one library-level tagged type.
7681 (Build_Finalizer): New local variables Has_Tagged_Types and
7682 Tagged_Type_Stmts along with associated comments on usage. Update the
7683 logic to include tagged type processing.
7684 (Create_Finalizer): Insert all library-level tagged type unregistration
7685 code before the jump block circuitry.
7686 (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements.
7687 (Expand_N_Package_Declaration): Remove the call to
7688 Build_Cleanup_Statements.
7689 (Process_Tagged_Type_Declaration): New routine. Generate a call to
7690 unregister the external tag of a tagged type.
7691 (Processing_Actions): Reimplemented to handle tagged types.
7692 (Process_Declarations): Detect the declaration of a library-level
7693 tagged type and carry out the appropriate actions.
7694 (Unregister_Tagged_Types): Removed. The machinery has been directly
7695 merged with Build_Finalizer.
7696
7483c888
AC
76972011-08-04 Robert Dewar <dewar@adacore.com>
7698
7699 * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb,
7700 gnatls.adb, exp_ch3.adb: Minor reformatting.
7701
77022011-08-04 Marc Sango <sango@adacore.com>
7703
7704 * sem_attr.adb (Analyze_Attribute): Replace the message
7705 "invisible attribute of}" of the spark restriction violation in
7706 attribute reference by the simple message "invisible attribute of type".
7707 Indeed, the node value Error_Msg_Node_1 used is in conflit with the
7708 two insertion characters: '&' and '}'.
7709
77102011-08-04 Vadim Godunko <godunko@adacore.com>
7711
7712 * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho".
7713 * a-coinho.ads, a-coinho.adb: New file.
7714 * Makefile.rtl: Add Ada.Containers.Indefinite_Holders.
7715
5207696c
AC
77162011-08-04 Nicolas Roche <roche@adacore.com>
7717
7718 * alfa_test.adb: Not all ali files are containing alfa information even
7719 if compiled with -gnatd.F. So suppress warning about missing ALFA
7720 information.
7721
77222011-08-04 Yannick Moy <moy@adacore.com>
7723
7724 * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for
7725 scope.
7726 * put_alfa.adb: Check that scope name is not empty.
7727
77282011-08-04 Ed Schonberg <schonberg@adacore.com>
7729
7730 * exp_ch3.adb (Stream_Operation_Ok): new predicate
7731 Needs_Elementary_Stream_Operation, to determine whether user-defined
7732 Read and Write attributes are available for the elementary components
7733 of the given type. If only the predefined attributes are available,
7734 then when restriction No_Default_Stream_Attributes is active the
7735 predefined stream attributes for the composite type cannot be created.
7736
77372011-08-04 Robert Dewar <dewar@adacore.com>
7738
7739 * bindgen.adb: Fix obsolete comments and names from Ada/C days.
7740 Put routines in alpha order
7741
2bd2d858
JR
77422011-08-04 Jose Ruiz <ruiz@adacore.com>
7743
7744 * gcc-interface/Makefile.in: Remove xenomai specific versions of system.
7745 * gcc-interface/Make-lang.in: Update dependencies.
7746
8fae6016
AC
77472011-08-04 Arnaud Charlet <charlet@adacore.com>
7748
7749 * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
7750 * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
7751 gnat1why).
7752
a54d0eb4
AC
77532011-08-04 Robert Dewar <dewar@adacore.com>
7754
7755 * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
7756 lib-xref-alfa.adb: Minor reformatting.
7757
77582011-08-04 Marc Sango <sango@adacore.com>
7759
7760 * sem_ch12.adb (Analyze_Generic_Package_Declaration,
7761 Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation,
7762 Analyze_Subprogram_Instantiation): Check absence of generic in SPARK
7763 mode.
7764
77652011-08-04 Tristan Gingold <gingold@adacore.com>
7766
7767 * bindgen.adb (Gen_Adainit_C): Remove.
7768 (Gen_Adafinal_C): Ditto.
7769 (Gen_Elab_Externals_C): Ditto.
7770 (Gen_Elab_Calls_C): Ditto.
7771 (Gen_Elab_Order_C): Ditto.
7772 (Gen_Elab_Defs_C): Ditto.
7773 (Gen_Finalize_Library_C): Ditto.
7774 (Gen_Finalize_Library_Defs_C): Ditto.
7775 (Gen_Main_C): Ditto.
7776 (Gen_Output_File_C): Ditto.
7777 (Gen_Restrictions_C): Ditto.
7778 (Gen_Versions_C): Ditto.
7779 (Write_Info_Ada_C): Ditto.
7780 (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C
7781 (Gen_Output_File): Do not force Ada_Bind_File anymore.
7782 Always call Gen_Output_File_Ada.
7783 * gnatlink.adb (Begin_Info): Now a constant.
7784 (End_Info): Ditto.
7785 (Ada_Bind_File): Remove
7786 (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases.
7787 * switch-b.adb (Scan_Binder_Switches): Do not handle -C.
7788 * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases.
7789 * opt.ads (Ada_Bind_File): Remove.
7790
77912011-08-04 Thomas Quinot <quinot@adacore.com>
7792
7793 * projects.texi: Document target-specific directory in default project
7794 path for gnatmake.
7795
77962011-08-04 Thomas Quinot <quinot@adacore.com>
7797
7798 * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project
7799 path in all cases .
7800
24558db8
AC
78012011-08-04 Yannick Moy <moy@adacore.com>
7802
7803 * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb,
7804 opt.ads, lib-xref.ads: Code clean up.
7805
78062011-08-04 Yannick Moy <moy@adacore.com>
7807
7808 * gnat_rm.texi: Update description of Test_Case
7809 * gnat_ugn.texi: Typo.
7810
78112011-08-04 Ed Falis <falis@adacore.com>
7812
7813 * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin.
7814
78152011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7816
7817 * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when
7818 it is of type Root_Controlled. This action eliminates fields Prev and
7819 Next from type equality.
7820
78212011-08-04 Yannick Moy <moy@adacore.com>
7822
7823 * lib-xref-alfa.adb: Correct typo.
7824
78252011-08-04 Matthew Heaney <heaney@adacore.com>
7826
7827 * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes
7828 component.
7829
1f9939b5
AC
78302011-08-04 Yannick Moy <moy@adacore.com>
7831
7832 * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure
7833 (Analyze_Pragma): allow static string expression for name of Test_Case,
7834 instead of simply string literals.
7835 * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string
7836 expressions.
7837
78382011-08-04 Vincent Celier <celier@adacore.com>
7839
7840 * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical
7841 case suffixes to find truncated main sources.
7842
78432011-08-04 Tristan Gingold <gingold@adacore.com>
7844
7845 * impunit.adb (Non_Imp_File_Names_95): Add g-tastus.
7846 s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put.
7847 (Compute_Current_Task): Ditto.
7848
78492011-08-04 Tristan Gingold <gingold@adacore.com>
7850
7851 * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage.
7852
78532011-08-04 Yannick Moy <moy@adacore.com>
7854
7855 * lib-xref-alfa.adb (Is_Global_Constant): new function that detects
7856 library-level constant.
7857 (Add_ALFA_Xrefs): ignore global constants in ALFA xref.
7858 * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal
7859 used as selector of parameter association, in ALFA mode.
7860
15d8a51d
AC
78612011-08-04 Robert Dewar <dewar@adacore.com>
7862
7863 * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb,
7864 s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor
7865 reformatting.
7866
78672011-08-04 Arnaud Charlet <charlet@adacore.com>
7868
7869 * make.adb (Linking_Phase): Set source search path before calling
7870 gnatlink in CodePeer mode.
7871
f46faa08
AC
78722011-08-04 Javier Miranda <miranda@adacore.com>
7873
7874 * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration):
7875 Remove code which takes care of building TSDs.
7876 * rtsfind.ads (RE_Check_Interface_Conversion): New entity.
7877 * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating
7878 the accessibility check in VM targets.
7879 * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads
7880 (Building_Static_DT): Now returns false for VM targets.
7881 (Build_VM_TSDs): Removed.
7882 (Expand_Interface_Conversion): Generate missing runtime check for
7883 conversions to interface types whose target type is unknown at compile
7884 time.
7885 (Make_VM_TSD): Add missing code to disable the generation of calls to
7886 Check_TSD if the tagged type is not defined at library level, or not
7887 has a representation clause specifying its external tag, or -gnatdQ is
7888 active.
7889 * exp_disp.ads (Build_VM_TSDs): Removed.
7890 (Make_VM_TSDs): Spec relocated from exp_disp.adb
7891 * sem_disp.adb (Check_Dispatching_Operation): No code required to
7892 register primitives in the dispatch tables in VM targets.
7893 * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of
7894 initialization of class-wide interface objects in VM targets.
7895 (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead
7896 of Make_DT).
7897
78982011-08-04 Jerome Lambourg <lambourg@adacore.com>
7899
7900 * gnatlink.adb (Gnatlink): Correct missleading error message displayed
7901 when dotnet-ld cannot be found.
7902
79032011-08-04 Arnaud Charlet <charlet@adacore.com>
7904
7905 * bindgen.adb: Simplify significantly generation of binder body file in
7906 CodePeer mode.
7907 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure
7908 when compiling binder generated file in CodePeer mode (xxx'Elab_Spec
7909 not expanded).
7910
2ba7e31e
AC
79112011-08-04 Yannick Moy <moy@adacore.com>
7912
7913 * sem_prag.adb, sem.ads: Code cleanup.
7914
79152011-08-04 Tristan Gingold <gingold@adacore.com>
7916
7917 * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part.
7918 * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate
7919 results if possible.
7920 * s-stusta.adb (Print): Adjust after changes in s-stausa.
7921 * gnat_ugn.texi: Update dynamic stack usage section.
7922
79232011-08-04 Steve Baird <baird@adacore.com>
7924
7925 * bindgen.adb (Gen_CodePeer_Wrapper): new procedure.
7926 Generate (if CodePeer_Mode is set) a "wrapper" subprogram which
7927 contains only a call to the user-defined main subprogram.
7928 (Gen_Main_Ada) - If CodePeer_Mode is set, then
7929 call the "wrapper" subprogram instead of directly
7930 calling the user-defined main subprogram.
7931
79322011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7933
7934 * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all
7935 alternatives of a case statement for controlled objects. Rename local
7936 variable A to Dead_Alt.
7937 (Expand_N_If_Statement): Check the then and else statements of an if
7938 statement for controlled objects. Check the then statements of all
7939 elsif parts of an if statement for controlled objects.
7940 (Expand_N_Loop_Statement): Check the statements of a loop for controlled
7941 objects.
7942 * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which
7943 detects a loop associated with the expansion of an array object.
7944 Augment the processing of the loop statements to account for a possible
7945 wrap done by Process_Statements_For_Controlled_Objects.
7946 * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering
7947 statements and abortable part of an asynchronous select for controlled
7948 objects.
7949 (Expand_N_Conditional_Entry_Call): Check the else statements of a
7950 conditional entry call for controlled objects.
7951 (Expand_N_Selective_Accept): Check the alternatives of a selective
7952 accept for controlled objects.
7953 (Expand_N_Timed_Entry_Call): Check the entry call and delay
7954 alternatives of a timed entry call for controlled objects.
7955 * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an
7956 exception handler for controlled objects.
7957 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
7958 Add formal parameter Nested_Constructs along with its associated
7959 comment.
7960 (Requires_Cleanup_Actions (Node_Id)): Update all calls to
7961 Requires_Cleanup_Actions.
7962 (Process_Statements_For_Controlled_Objects): New routine.
7963 * exp_util.ads (Process_Statements_For_Controlled_Objects): New
7964 routine. Inspect a node which contains a non-handled sequence of
7965 statements for controlled objects. If such an object is found, the
7966 statements are wrapped in a block.
7967
1bf773bb
AC
79682011-08-04 Bob Duff <duff@adacore.com>
7969
7970 * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we
7971 need to compare with Class_Wide_Type (T2), in order to get at the
7972 original class-wide type node.
7973 * sem_type.ads (Covers): Improve the comment.
7974 * einfo.ads (Class_Wide_Type): Improve the comment.
7975 * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of
7976 the type of the Deref.
7977
79782011-08-04 Yannick Moy <moy@adacore.com>
7979
7980 * gnat_rm.texi: Document that Test_Case pragma can only appear on
7981 separate declarations.
7982 * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to
7983 check identifier of pragma argument.
7984 (Chain_TC): check that no other test case associated to the same entity
7985 share the same name.
7986 (Check_Test_Case): disallow test case inside subprogram body
7987 (Analyze_Pragma): correct call to check identifier and not argument
7988 * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new
7989 function gets name from test case pragma.
7990
dac3bede
YM
79912011-08-04 Yannick Moy <moy@adacore.com>
7992
7993 * gnat_rm.texi: Document new pragma and aspect.
7994 * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case
7995 (No_Duplicates_Allowed): new constant array defining whether duplicates
7996 aspects of each kind can appear on the same declaration.
7997 * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract
7998 field, which points to a node holding the previous Spec_PPC_List.
7999 * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List
8000 through the indirection with Contract.
8001 * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node
8002 * par-prag.adb (Prag): do nothing on Test_Case pragma
8003 * sem.adb (Analyze): abort on N_Contract, on which Analyze should not
8004 be called directly.
8005 * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in
8006 component Ensures of Test_Case.
8007 * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb
8008 (Analyze_Generic_Subprogram_Declaration,
8009 Analyze_Subprogram_Instantiation,
8010 Analyze_Abstract_Subprogram_Declaration,
8011 Analyze_Subprogram_Body_Helper,
8012 Analyze_Subprogram_Specification, Analyze_Entry_Declaration):
8013 insert contract in subprogram node at point of definition
8014 * sem_ch13.adb
8015 (Aspect_Loop): do not raise error on duplicate Test_Case aspect
8016 (Analyze_Aspect_Specifications): analyze Test_Case aspect and create
8017 corresponding pragma
8018 (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect
8019 * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases,
8020 similar to the analysis of pre/post
8021 (Derive_Subprogram): insert contract in subprogram node at point of
8022 derivation.
8023 * sem_prag.adb, sem_prag.ads
8024 (Check_Arg_Is_String_Literal, Check_Identifier):
8025 new checking procedures to be called in treatment of pragmas
8026 (Check_Test_Case): new procedure to check that a Test_Case aspect or
8027 pragma is well-formed. This does not check currently that 'Result is
8028 used only in the Ensures component of a Test_Case.
8029 (Analyze_Pragma): add case for Test_Case
8030 (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures
8031 components of a Test_Case.
8032 (Preanalyze_TC_Args): new procedure to preanalyze the boolean
8033 expressions in the 3rd (and 4th if present) arguments of a Test_Case
8034 pragma, treated as spec expressions.
8035 (Sig_Flags): add value -1 for Test_Case.
8036 * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma,
8037 Get_Requires_From_Test_Case_Pragma): getters for both expression
8038 components of a Test_Case.
8039 * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as
8040 indirection between an entry or [generic] subprogram entity and its
8041 pre/post + test-cases.
8042 (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List):
8043 get/set for fields of an N_Contract node.
8044 * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode,
8045 Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new
8046 names and pragma for Test_Case.
8047 * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node
8048
6a2e5d0f
AC
80492011-08-04 Vincent Celier <celier@adacore.com>
8050
8051 * gnat_ugn.texi: Improve documentation of gnatmake switch
8052 --source-info-file=.
8053
80542011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8055
8056 * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion
8057 type). Initialize Atyp to the appropriate type which is later checked
8058 for completion. Rewrite the assertion associated with private type
8059 completion.
8060
80612011-08-04 Ed Falis <falis@adacore.com>
8062
8063 * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to
8064 initialize the number of CPUs.
8065
80662011-08-04 Ed Schonberg <schonberg@adacore.com>
8067
8068 * sem_type.adb (Disambiguate): New subsidiary routine
8069 In_Same_Declaration_List, to implement AI05-0020: a user-defined
8070 equality on an anonymous access type whose designated type is private
8071 does not lead to an ambiguity with the universal access equality
8072 operator in the body or child units of the defining package. The same
8073 is true for a multiplication operator on a private type completed with
8074 a fixed-point-type.
8075
80762011-08-04 Javier Miranda <miranda@adacore.com>
8077
8078 * opt.ads (Init_Or_Norm_Scalars_Config): Removed.
8079 (Normalize_Scalars_Config): Removed.
8080 * opt.adb
8081 (Register_Opt_Config_Switches): Remove registering config values of
8082 Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config.
8083 (Restore_Opt_Config_Switches): Remove code which restores the values of
8084 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
8085 Init_Or_Norm_Scalars.
8086 (Save_Opt_Config_Switches): Remove code which saves values of
8087 Init_Or_Norm_Scalars and Normalize_Scalars.
8088 (Set_Opt_Config_Switches): Remove code which restores config values of
8089 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
8090 Init_Or_Norm_Scalars.
8091
80922011-08-04 Yannick Moy <moy@adacore.com>
8093
8094 * frontend.adb (Frontend): remove previous patch to avoid full
8095 qualification in ALFA mode.
8096 * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables.
8097 * sem_util.adb, sem_util.ads (Unique_Name): new function to define a
8098 unique name for an entity, which could be used to identify the entity
8099 across compilation units.
8100
81012011-08-04 Thomas Quinot <quinot@adacore.com>
8102
8103 * prj-env.adb
8104 (Initialize_Default_Project_Path): Add target specific directory
8105 ($prefix/$target/lib/gnat) in front of project path in all cases
8106 (making gnatmake's behaviour consistent with gprbuild).
8107 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb:
8108 Pass target name from Sdefault to project subsystem.
8109 * gnatls.adb: Show new target specific default project directory.
8110
81112011-08-04 Johannes Kanig <kanig@adacore.com>
8112
8113 * cstand.adb: Add Information to Identifier in Standard
8114 (Identifer_For): Set Entity to the corresponding entity
8115
483361a6
AC
81162011-08-04 Sergey Rybin <rybin@adacore.com>
8117
8118 * gnat_ugn.texi: Update doc on gnatcheck.
8119
81202011-08-04 Yannick Moy <moy@adacore.com>
8121
8122 * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of
8123 xrefs in a scope.
8124
81252011-08-04 Yannick Moy <moy@adacore.com>
8126
8127 * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without
8128 performing expansion.
8129 * sem_ch6.adb (Analyze_Subprogram_Body_Helper,
8130 Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that
8131 it is not called in ALFA mode.
8132
ef5569c6
AC
81332011-08-04 Emmanuel Briot <briot@adacore.com>
8134
8135 * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used
8136 after all, so removed.
8137
81382011-08-04 Sergey Rybin <rybin@adacore.com>
8139
8140 * vms_data.ads: Add missing VMS qualifiers.
8141
1ab4a286
EB
81422011-08-04 Emmanuel Briot <briot@adacore.com>
8143
8144 * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild
8145 the list of files on the command line after processing it through
8146 Complete_Mains.
8147
7ae0d98c
AC
81482011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8149
8150 * exp_ch7.adb (Build_Raise_Statement): Remove the specialized
8151 processing for .NET/JVM. These targets can now benefit from
8152 Raise_From_Controlled_Operation and they share the same processing with
8153 standard targets.
8154 (Establish_Transient_Scope): Remove the restriction for .NET/JVM.
8155 These targets need transient scopes in order to properly finalize short
8156 lived controlled objects.
8157 (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for
8158 NET/JVM. These targets can now benefit from
8159 Raise_From_Controlled_Operation and they share the same processing with
8160 standard targets.
8161
81622011-08-04 Geert Bosch <bosch@adacore.com>
8163
8164 * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack
8165
81662011-08-04 Ed Schonberg <schonberg@adacore.com>
8167
8168 * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to
8169 Expand_Record_Aggregate, to determine whether aggregate must be
8170 expanded into assignments. This is the case if the ancestor part is
8171 private, regarless of the setting of the flag Has_Private_Ancestor.
8172
81732011-08-04 Ed Falis <falis@adacore.com>
8174
8175 * vxaddr2line.adb: Add support for e500v2 and for Linux hosts
8176
81772011-08-04 Bob Duff <duff@adacore.com>
8178
8179 * sinfo.ads: Fix comment.
8180
81812011-08-04 Steve Baird <baird@adacore.com>
8182
8183 * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then
8184 choose a package name in much the same way as is
8185 done for JGNAT when VM_Target /= No_VM, except that
8186 a slightly more distinctive prefix string is used.
8187
81882011-08-04 Emmanuel Briot <briot@adacore.com>
8189
8190 * makeutl.adb (Complete_Mains): no longer accept unit names on the
8191 gnatmake command line.
8192 This behavior was never documented (and was supported only because of
8193 an early bug in the code). This case might lead to ambiguous cases
8194 (between unit names and truncated base names without suffixes).
8195
87729e5a
AC
81962011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8197
8198 * a-tags.ads, a-tags.adb (Unregister_Tag): New routine.
8199 Remove the external tag of a tagged type from the internal hash table.
8200 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the
8201 expanded usage of the routine. Strenghten the check for Is_Master. Add
8202 processing for tagged types.
8203 (Build_Finalizer): Create all the necessary lists used in finalizer
8204 creation when the processed context is a package that may contain
8205 tagged types.
8206 (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to
8207 Requires_Cleanup_Actions.
8208 (Expand_N_Package_Body): Package bodies may need clean up code
8209 depending on whether they contain tagged types.
8210 (Expand_N_Package_Declaration): Package declarations may need clean up
8211 code depending on whether they contain tagged types.
8212 (Unregister_Tagged_Types): New routine. Search through a list of
8213 declarations or statements, looking for non-abstract Ada tagged types.
8214 For each such type, generate code to unregister the external tag.
8215 * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to
8216 Requires_Cleanup_Actions.
8217 (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search
8218 through a list of declarations or statements looking for non-abstract
8219 Ada tagged types or controlled objects.
8220 * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to
8221 Requires_Cleanup_Actions.
8222 (Has_Controlled_Objects (List_Id, Boolean)): Removed.
8223 * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and
8224 RE_Unit_Table.
8225
82262011-08-04 Vincent Celier <celier@adacore.com>
8227
8228 * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj
8229 has Ada sources, not project Project, because if the root project
8230 Project has no sources of its own, all projects will be deemed without
8231 sources.
8232
82332011-08-04 Gary Dismukes <dismukes@adacore.com>
8234
8235 * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration
8236 of the No_Param_Proc acc-to-subp type used for initialization of
8237 __gnat_finalize_library_objects so that it's declared at library level
8238 rather than nested inside of the adainit routine.
8239
82402011-08-04 Javier Miranda <miranda@adacore.com>
8241
8242 * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY
8243 if the tagged type has a representation clause which specifies its
8244 external tag.
8245
82462011-08-04 Ed Schonberg <schonberg@adacore.com>
8247
8248 * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types.
8249 Remove previous procedure with that name.
8250 * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor
8251 when appropriate.
8252 * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a
8253 subtype mark, the ancestor cannot have unknown discriminants.
8254 (Resolve_Record_Aggregate): if the type has invisible components
8255 because of a private ancestor, the aggregate is illegal.
8256
82572011-08-04 Vincent Celier <celier@adacore.com>
8258
8259 * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into
8260 account switches -gnat2005, -gnat12 and -gnat2012.
8261
82622011-08-04 Bob Duff <duff@adacore.com>
8263
8264 * s-tasdeb.ads: Minor comment fix.
8265
82662011-08-04 Arnaud Charlet <charlet@adacore.com>
8267
8268 * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in
8269 CodePeer mode.
8270 * switch.ads, switch.adb (Is_Language_Switch): New function.
8271
82722011-08-04 Vincent Celier <celier@adacore.com>
8273
8274 * switch-c.adb: Minor comment addition.
8275
82762011-08-04 Vincent Celier <celier@adacore.com>
8277
8278 * vms_conv.adb (Process_Argument): Fail graciously when qualifier
8279 ending with '=' is followed by a space (missing file name).
8280
82812011-08-04 Pascal Obry <obry@adacore.com>
8282
8283 * g-regist.ads: Fix size of HKEY on x86_64-windows.
8284
82852011-08-04 Ed Schonberg <schonberg@adacore.com>
8286
8287 * sem_ch12.adb (Analyze_Associations): New routine
8288 Check_Overloaded_Formal_Subprogram to reject a formal package when
8289 there is a named association or a box initialisation for an overloaded
8290 formal subprogram of the corresponding generic.
8291
82922011-08-04 Yannick Moy <moy@adacore.com>
8293
8294 * alfa.ads (ALFA_Xref_Record): add component for type of entity
8295 * get_alfa.adb, put_alfa.adb: Read and write new component of
8296 cross-reference.
8297 * lib-xref-alfa.adb (Collect_ALFA): generate new component.
8298
88f47280
AC
82992011-08-04 Pascal Obry <obry@adacore.com>
8300
8301 * urealp.adb: Minor reformatting.
8302
83032011-08-04 Tristan Gingold <gingold@adacore.com>
8304
8305 * exp_ch7.adb (build_finalizer.process_declarations.processing_actions):
8306 Handle the case when Cleanup_Protected_Object returns Empty.
8307
83082011-08-04 Yannick Moy <moy@adacore.com>
8309
8310 * frontend.adb (Frontend): only qualify names in non-ALFA mode
8311
83122011-08-04 Ed Schonberg <schonberg@adacore.com>
8313
8314 * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure
8315 call, ignore functions.
8316
05c53a69
GB
83172011-08-04 Geert Bosch <bosch@adacore.com>
8318
8319 * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating
8320 point.
8321
23cc1ace
EB
83222011-08-04 Emmanuel Briot <briot@adacore.com>
8323
8324 * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name
8325 as an index for Builder'Switches. This conforms to the documentation.
8326 * make.adb (Insert_Project_Sources): avoid duplicate code
8327
cef14201
AC
83282011-08-04 Emmanuel Briot <briot@adacore.com>
8329
8330 * makeutl.adb (Complete_Mains): if the user has passed a relative file
8331 name on the command line (for instance "../dummy"), never assume it can
8332 be a unit name.
8333
83342011-08-04 Tristan Gingold <gingold@adacore.com>
8335
8336 * bindgen.adb: Remove code the reference or create the
8337 Break_Start/__gnat_break_start procedure.
8338 * s-stalib.adb (Break_Start): Removed.
8339
e2fee30d
EB
83402011-08-04 Emmanuel Briot <briot@adacore.com>
8341
8342 * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now
8343 shared with gprbuild.
8344
2d395256
AC
83452011-08-04 Yannick Moy <moy@adacore.com>
8346
8347 * par-ch4.adb (P_Primary): preferentially issue an error message about
8348 a missing parenthesis arount a conditional or case expression in Ada
8349 2012 mode, if we detect that the alignment is not correct for a
8350 statement.
8351
83522011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8353
8354 * exp_ch7.adb (Process_Declarations): Do not consider the result of a
8355 tag-to-class-wide conversion as needing finalization actions.
8356 * exp_util.adb (Has_Controlled_Objects): Do not consider the result of
8357 a tag-to-class-wide conversion as needing finalization actions.
8358 (Is_Finalizable_Transient): The result of a tag-to-class-wide
8359 conversion does not need finalization actions.
8360 (Is_Tag_To_CW_Conversion): New routine.
8361 * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines
8362 whether an object is the result of a tag-to-class-wide conversion.
8363
83642011-08-04 Yannick Moy <moy@adacore.com>
8365
8366 * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which
8367 the left-hand-side and right-hand-side of a conjunct are inserted when
8368 translating a pre- or postcondition
8369 * sem_ch6.adb: Correct typo in comment
8370
83712011-08-04 Ed Schonberg <schonberg@adacore.com>
8372
8373 * gnat_rm.texi: Ravenscar does not prohibit dependence on
8374 Unchecked_Conversion and Unchecked_Deallocation.
8375
83762011-08-04 Thomas Quinot <quinot@adacore.com>
8377
8378 * make.adb: Minor reformatting.
8379
767ab2fd
EB
83802011-08-04 Emmanuel Briot <briot@adacore.com>
8381
8382 * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the
8383 sources in the project and its imported projects, but not in the whole
8384 tree.
8385
8fb3f5df
AC
83862011-08-04 Emmanuel Briot <briot@adacore.com>
8387
8388 * make.adb: Remove debug trace.
8389
83902011-08-04 Vincent Celier <celier@adacore.com>
8391
8392 * makeutl.adb (Do_Complete): Get the absolute path name of a relative
8393 path in canonical form, to be able to compare path names on platforms
8394 such as Windows or Darwin.
8395
83962011-08-04 Thomas Quinot <quinot@adacore.com>
8397
8398 * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry):
8399 For a pragma (statement with C1 = 'P'), record the sloc of the pragma.
8400 * scos.ads: Update documentation accordingly.
8401 * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled
8402 pragmas.
8403
9515740f
AC
84042011-08-04 Ed Schonberg <schonberg@adacore.com>
8405
8406 * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of
8407 attribute only if prefix type is scalar.
8408
84092011-08-04 Emmanuel Briot <briot@adacore.com>
8410
8411 * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support
8412 in gnatmake for specifying mains on the command line that do not belong
8413 to the main project. These mains must currently all belong to the same
8414 project, though.
8415 (Ultimate_Extension_Of): removed, since duplicated
8416 Ultimate_Extending_Project.
8417
92966893
AC
84182011-08-04 Arnaud Charlet <charlet@adacore.com>
8419
8420 * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode
8421 instead.
8422 (CodePeer_Mode_String): New.
8423 (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in
8424 CodePeer mode.
8425 (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode.
8426 * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer
8427 mode, since no useful elaboration subprogram is needed by CodePeer.
8428 * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode).
8429 In this mode, compile binder file with -gnatC and do stop after this
8430 step.
8431
84322011-08-04 Vincent Celier <celier@adacore.com>
8433
8434 * exp_ch7.adb: Minor comment fix.
8435
5969611f
RD
84362011-08-04 Robert Dewar <dewar@adacore.com>
8437
8438 * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb,
8439 exp_ch4.adb, makeutl.adb: Minor reformatting.
8440
6367dd30
AC
84412011-08-04 Emmanuel Briot <briot@adacore.com>
8442
8443 * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring.
8444 Create several new subprograms to move code out of Make. This makes the
8445 code more readable, removes code duplication, and is a preparation work
8446 for adding support for aggregate projects.
8447
84482011-08-04 Tristan Gingold <gingold@adacore.com>
8449
8450 * s-po32gl.ads, s-po32gl.adb: New files.
8451 * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function.
8452 * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function.
8453 (Build_Finalization_Collection): Use it.
8454 * exp_ch4.adb (Complete_Controlled_Allocation): Ditto.
8455 * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New
8456 literals.
8457 * gcc-interface/Makefile.in: Use s-po32gl.o on VMS.
8458 * gcc-interface/Make-lang.in: Update dependencies.
8459
cd8bfe35
EB
84602011-08-04 Emmanuel Briot <briot@adacore.com>
8461
8462 * makeutl.adb (Complete_Mains): add support for specs with no suffix on
8463 the command line.
8464
7db29ea7
EB
84652011-08-04 Emmanuel Briot <briot@adacore.com>
8466
8467 * make.adb, makeutl.adb (Complete_Mains): if a main specified on the
8468 command line is not a file name, also check whether it could be a unit
8469 name.
8470
d9b056ea
AC
84712011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8472
8473 * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate
8474 the header of the finalization routine.
8475 If the unit has no finalizer but is a body whose spec has one, then
8476 generate the decrement of the elaboration entity only.
8477 If the unit has a finalizer and is a spec, then do not generate the
8478 decrement of the elaboration entity.
8479 (Gen_Finalize_Library_C): Likewise.
8480
84812011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8482
8483 * exp_ch7.adb (Alignment_Of): New subsidiary routine.
8484 (Bounds_Size_Expression): Removed.
8485 (Double_Alignment_Of): New subsidiary routine.
8486 (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account
8487 for a hole in the dope vector of unconstrained arrays due to different
8488 index and element alignments.
8489
84902011-08-04 Ed Schonberg <schonberg@adacore.com>
8491
8492 * sem_res.adb (Resolve_Allocator): diagnose task allocator that will
8493 raise program_error because body has not been seen yet.
8494
84952011-08-04 Ed Schonberg <schonberg@adacore.com>
8496
8497 * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with
8498 an unresolved name.
8499
85002011-08-04 Vincent Celier <celier@adacore.com>
8501
8502 * makeutl.adb (Do_Complete): Check absolute paths in canonical forms
8503
85042011-08-04 Yannick Moy <moy@adacore.com>
8505
8506 * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here
8507 * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here
8508
85092011-08-04 Thomas Quinot <quinot@adacore.com>
8510
8511 * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for
8512 instantiation in RCI.
8513
85142011-08-04 Emmanuel Briot <briot@adacore.com>
8515
8516 * make.adb: Share more code with gprbuild
8517
f5fc5b9d
AC
85182011-08-04 Emmanuel Briot <briot@adacore.com>
8519
8520 * projects.texi: Added documentation for the IDE'Gnat project file
8521 attribute.
8522
85232011-08-04 Nicolas Roche <roche@adacore.com>
8524
8525 * gnat_rm.texi: Minor editing.
8526
85272011-08-04 Javier Miranda <miranda@adacore.com>
8528
8529 * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case
8530 and the library case for VM targets.
8531 (Gen_Adainit_Ada): Likewise.
8532
85332011-08-04 Robert Dewar <dewar@adacore.com>
8534
8535 * g-altive.ads: Minor comment updates.
8536 * prj-nmsc.adb: Minor reformatting.
8537
85382011-08-04 Javier Miranda <miranda@adacore.com>
8539
8540 * opt.ads
8541 (Normalize_Scalars_Config): Value of the configuration switch set by
8542 pragma Normalize_Scalars when it appears in the gnat.adc file.
8543 (Normalize_Scalars): New field for record Config_Switches_Type. Used
8544 to save and restore settings of this pragma.
8545 * opt.adb
8546 (Register_Opt_Config_Switches, Save_Opt_Config_Switches,
8547 Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars.
8548
85492011-08-04 Vincent Celier <celier@adacore.com>
8550
8551 * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile
8552
0c4683cf
AC
85532011-08-04 Arnaud Charlet <charlet@adacore.com>
8554
8555 * makeutl.adb: Minor reformatting.
8556
85572011-08-04 Olivier Hainque <hainque@adacore.com>
8558
8559 * g-altive.ads: Update comments to reflect that only the soft
8560 binding is available today.
8561
2598ee6d
RD
85622011-08-04 Robert Dewar <dewar@adacore.com>
8563
8564 * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb,
8565 makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting
8566 * gcc-interface/Make-lang.in: Update dependencies.
8567
c2db4b32
AC
85682011-08-04 Arnaud Charlet <charlet@adacore.com>
8569
8570 * prj-env.adb: Remove local debug traces.
8571
85722011-08-04 Yannick Moy <moy@adacore.com>
8573
8574 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
8575 was used instead of Hi_OK, which could cause a read of an uninitialized
8576 value later on. Detected while working on the new warning.
8577 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
8578 to local variable.
8579 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
8580 in more cases, in order to detect more unreferenced values.
8581 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
8582 object for expression, if any.
8583
85842011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8585
8586 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
8587 the operand types instead of the Esize.
8588
85892011-08-04 Steve Baird <baird@adacore.com>
8590
8591 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
8592 enable CodePeer_Mode.
8593 * bindusg.adb (Display): Add help message describing -P binder switch.
8594 * gnat_ugn.texi: Document -P binder switch.
8595 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
8596 user-defined main program directly.
8597 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
8598 user-defined main program in the context clause of the package body.
8599
ad05f2e9
AC
86002011-08-04 Yannick Moy <moy@adacore.com>
8601
8602 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
8603 duplicate of Defining_Entity
8604 (Get_Unique_Entity_For_Decl): rename function into
8605 Unique_Defining_Entity
8606 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
8607 (Formal_Proof_On): remove synthesized flag
8608 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
8609 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
8610 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
8611 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
8612 Annotate (Formal_Proof)
8613
86142011-08-04 Emmanuel Briot <briot@adacore.com>
8615
8616 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
8617 source files with non-standard naming schemes, in imported projects
8618
756ef2a0
AC
86192011-08-04 Emmanuel Briot <briot@adacore.com>
8620
8621 * makeutl.adb (Complete_Mains): when a multi-unit source file is
8622 specified on the gprbuild command line, we need to compile all units
8623 within that file, not just the first one we find
8624 Fix error message for mains that are not found.
8625
86262011-08-04 Thomas Quinot <quinot@adacore.com>
8627
8628 * sem_ch6.adb: Update comment.
8629 * sem_ch12.adb: Minor reformatting.
8630
86312011-08-04 Bob Duff <duff@adacore.com>
8632
8633 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
8634 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
8635 race condition whose symptom is to fail to lock Parent. That, in turn,
8636 causes Parent.Awake_Count to be accessed without locking Parent, which
8637 causes another race condition whose symptom is that Parent.Awake_Count
8638 can be off by 1 (either too high or too low). The solution is to lock
8639 Parent unconditionally, and then lock Acceptor, before reading
8640 Acceptor.Terminate_Alternative.
8641
4fdebd93
AC
86422011-08-04 Arnaud Charlet <charlet@adacore.com>
8643
8644 * debug.adb: Update comment.
8645
86462011-08-04 Robert Dewar <dewar@adacore.com>
8647
8648 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
8649 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
8650 exp_ch6.adb: Minor reformatting.
8651
86522011-08-04 Gary Dismukes <dismukes@adacore.com>
8653
8654 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
8655 checks for -gnateE.
8656
86572011-08-04 Ed Schonberg <schonberg@adacore.com>
8658
8659 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
8660
86612011-08-04 Thomas Quinot <quinot@adacore.com>
8662
8663 * sinfo.ads: Minor reformatting.
8664
86652011-08-04 Emmanuel Briot <briot@adacore.com>
8666
8667 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
8668 even if there is no location.
8669
6aaa0587
ES
86702011-08-04 Ed Schonberg <schonberg@adacore.com>
8671
8672 * sem_res.adb, sem_ch4.adb: move check for restriction
8673 No_Task_Hierarchy to resolve_allocator.
8674
35a1c212
AC
86752011-08-04 Thomas Quinot <quinot@adacore.com>
8676
8677 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
8678 This flag of N_Pragma nodes is not used, remove it as well as all of
8679 the associated circuitry.
8680
86812011-08-04 Javier Miranda <miranda@adacore.com>
8682
8683 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
8684 runtime check on duplicated externa tags
8685 * debug.adb Document switch -gnatdQ.
8686
86872011-08-04 Gary Dismukes <dismukes@adacore.com>
8688
8689 * a-fihema.ads: Minor typo fix.
8690
86912011-08-04 Yannick Moy <moy@adacore.com>
8692
8693 * sem_ch10.adb: Minor comment update.
8694
86952011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8696
8697 * einfo.adb: Update the node field usage to reflect the renaming of
8698 Return_Flag to Return_ Flag_Or_Transient_Decl.
8699 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
8700 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
8701 (Write_Field15_Name): Change Return_Flag to
8702 Return_Flag_Or_Transient_Decl.
8703 * einfo.ads: Rename node field Return_Flag to
8704 Return_Flag_Or_Transient_Decl. Update the associated comment and all
8705 occurrences in entities.
8706 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
8707 associated Inline pragma.
8708 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
8709 associated Inline pragma.
8710 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
8711 routine.
8712 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
8713 Return_Flag and Set_Return_Flag.
8714 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
8715 objects generated for controlled transients declared inside an
8716 Exception_With_Actions. Update the calls to Return_Flag.
8717 (Process_Object_Declaration): Add code to add a null guard for hook
8718 objects generated for controlled transients declared inside an
8719 Exception_With_Actions. Update related comment.
8720 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
8721 objects generated for controlled transients declared inside an
8722 Exception_With_Actions. Update the calls to Return_Flag.
8723 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
8724
87252011-08-04 Ed Schonberg <schonberg@adacore.com>
8726
8727 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
8728 positional aggregate.
8729
87302011-08-04 Vincent Celier <celier@adacore.com>
8731
8732 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
8733 SLOC only for pragmas.
8734
87352011-08-04 Emmanuel Briot <briot@adacore.com>
8736
8737 * projects.texi: Minor typo fix.
8738
87392011-08-04 Emmanuel Briot <briot@adacore.com>
8740
8741 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
8742 on case-sensitive file systems.
8743
c2873f74
TQ
87442011-08-04 Thomas Quinot <quinot@adacore.com>
8745
8746 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
8747 nested in a disabled pragma.
8748 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
8749 enclosing pragma, if any, for X decisions.
8750
87512011-08-04 Thomas Quinot <quinot@adacore.com>
8752
8753 * sem_prag.adb: Minor reformatting.
8754
46414266
VC
87552011-08-04 Vincent Celier <celier@adacore.com>
8756
8757 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
8758 allowed in no run time mode.
8759
87602011-08-04 Vincent Celier <celier@adacore.com>
8761
8762 * make.adb (Check): When -gnatc is used, check for the source file
8763 inside the ALI file with a canonical case file name.
8764
afab164f
EB
87652011-08-04 Emmanuel Briot <briot@adacore.com>
8766
8767 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
8768 overriding the separator.
8769
fe0ec02f
AC
87702011-08-04 Robert Dewar <dewar@adacore.com>
8771
8772 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
8773 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
8774
87752011-08-04 Robert Dewar <dewar@adacore.com>
8776
8777 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
8778
87792011-08-04 Yannick Moy <moy@adacore.com>
8780
8781 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
8782 'Result only appears in postcondition of function.
8783
87842011-08-04 Thomas Quinot <quinot@adacore.com>
8785
8786 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
8787 external tag, include the value of the external tag in the exception
8788 message.
8789
0180fd26
AC
87902011-08-04 Yannick Moy <moy@adacore.com>
8791
8792 * sem_attr.adb (Result): modify error message for misplaced 'Result
8793
87942011-08-04 Sergey Rybin <rybin@adacore.com>
8795
8796 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
8797 clear that the second argument must be an identifier.
8798
87992011-08-04 Thomas Quinot <quinot@adacore.com>
8800
8801 * exp_ch9.adb (Build_Barrier_Function): When compiling with
8802 -fpreserve-control-flow, insert an IF statement on the barrier
8803 condition to ensure that a conditional branch instruction is generated.
8804
88052011-08-04 Emmanuel Briot <briot@adacore.com>
8806
8807 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
8808 (Processing_Flags.Ignore_Missing_With): new flag.
8809
88102011-08-04 Emmanuel Briot <briot@adacore.com>
8811
8812 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
8813 Source_List_File on case-insensitive systems where the file is actually
8814 on a case-sensitive file system (NFS,...).
8815
88162011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8817
8818 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
8819 function return contains a controlled [extension] aggregate and the
8820 return statement is not part of a handled sequence of statements, wrap
8821 the return in a block. This ensures that all controlled temporaries
8822 generated during aggregate resolution will be picked up by the
8823 finalization machinery.
8824
88252011-08-04 Ed Schonberg <schonberg@adacore.com>
8826
8827 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
8828 components, freeze type before resolution, to ensure that default
8829 initializations are present for all components.
8830 * sem_res.adb (Resolve_Actuals): the designated object of an
8831 accces-to-constant type is a legal actual in a call to an
8832 initialization procedure.
8833
88342011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8835
8836 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
8837 N_Unchecked_Type_Conversion to the possible containers of a renamed
8838 transient variable.
8839
78efd712
AC
88402011-08-04 Yannick Moy <moy@adacore.com>
8841
8842 * par-ch13.adb (Aspect_Specifications_Present): recognize
8843 "with Identifier'Class =>" as an aspect, so that a meaningful warning
8844 is issued in Strict mode.
8845 * par.adb: Fix typos in comments.
8846
88472011-08-04 Yannick Moy <moy@adacore.com>
8848
8849 * sem_attr.adb (Result): modify error message to take into account Post
8850 aspect when compiling Ada 2012 (or newer) code.
8851
88522011-08-04 Nicolas Roche <roche@adacore.com>
8853
8854 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
2c7f9cc0 8855 remove need for GCC exceptions.
78efd712
AC
8856
88572011-08-04 Vincent Celier <celier@adacore.com>
8858
8859 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
8860 project, not the source file name.
8861 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
8862 excluded, continue looking. This excluded source will only be returned
8863 if there is no other source with the same base name that is not locally
8864 removed.
8865
88662011-08-04 Ed Schonberg <schonberg@adacore.com>
8867
8868 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
8869 private and one of the operands is a real literal, use a qualified
8870 expression rather than a conversion which is not meaningful to the
8871 back-end.
8872
0170a691
AC
88732011-08-04 Yannick Moy <moy@adacore.com>
8874
8875 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
8876 corresponding aspect X'Class are allowed, proceed with analysis of the
8877 aspect instead of skipping it.
8878
88792011-08-04 Tristan Gingold <gingold@adacore.com>
8880
8881 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
8882 This will allow to have an Ada implementation for the subprogram.
8883
deb4f5ba
ES
88842011-08-04 Ed Schonberg <schonberg@adacore.com>
8885
8886 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
8887 completion and aspects are present, apply them to the entity for the
8888 type which is currently the partial view, but which is the one that
8889 will be frozen.
8890 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
8891 applies to a partial view, indicate that the full view has predicates
8892 and delayed aspects.
8893 (Replace_Type_Reference): Handle properly predicates that apply to the
8894 full view of a private completion.
8895
fc893455
AC
88962011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8897
8898 * layout.adb (Layout_Type): For composite types, do not set Esize.
8899 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
8900 set Esize.
8901 (Size_Known): Look at the RM size of components instead of the Esize.
8902 (Freeze_Record_Type): Look at the RM size instead of the Esize to
8903 issue warning and activate Implicit_Packing.
8904 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
8905 if the Esize is not known.
8906 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
8907 for elementary types only.
8908 (Analyze_Record_Representation_Clause): Look at the RM size instead
8909 of the Esize to issue errors.
8910 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
8911 is not known.
8912 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
2c7f9cc0 8913 obsolete block.
fc893455
AC
8914 Look at the RM size instead of the Esize for types if the latter is
8915 not known.
8916 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
8917
89182011-08-04 Ed Schonberg <schonberg@adacore.com>
8919
8920 * sem_type.adb: proper handling of equality not involving anonymous
8921 access types.
8922
b37d5bc6
AC
89232011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8924
8925 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
8926 Vis_Decls. When creating a library-level finalizer for a package spec,
8927 both the declaration and body of the finalizer are inserted either in
8928 the visible or private declarations of the package spec.
8929
89302011-08-04 Javier Miranda <miranda@adacore.com>
8931
8932 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
8933 use of the full-view of a type when invoking Is_Ancestor.
8934 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
8935 the full-view of private parents is requested, then use also the
8936 full-view of the parent of the first derivation.
8937
7ab4d95a
AC
89382011-08-04 Tristan Gingold <gingold@adacore.com>
8939
8940 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
8941 instead of the locally imported procedure.
8942 * s-taprop-mingw.adb (Enter_Task): Ditto.
8943 * s-valrea.adb (Scan_Real): Ditto.
8944 * s-imgrea.adb (Set_Image_Real): Ditto.
8945 * s-flocon.ads: Make the package pure.
8946
89472011-08-04 Thomas Quinot <quinot@adacore.com>
8948
8949 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
8950 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
8951 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
8952 New subprogram, moved here from...
8953 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
8954 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
8955 rewriting of the last argument into a procedure call statement here...
8956 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
8957 instead.
8958
89592011-08-04 Thomas Quinot <quinot@adacore.com>
8960
8961 * par_sco.adb: Minor reformatting.
8962
51c400f5
AC
89632011-08-04 Robert Dewar <dewar@adacore.com>
8964
8965 * erroutc.adb: Minor reformatting.
8966
89672011-08-04 Thomas Quinot <quinot@adacore.com>
8968
8969 * par_sco.adb: Comment update.
8970
89712011-08-04 Tristan Gingold <gingold@adacore.com>
8972
8973 * s-flocon.ads: New file.
8974 * g-flocon.ads: Now a renaming of s-flocon.
8975 * Makefile.rtl: Add s-flocon.o
8976
6a49f110
AC
89772011-08-04 Javier Miranda <miranda@adacore.com>
8978
8979 * exp_strm.adb (Build_Array_Input_Function): if the array type is
8980 constrained, do not attempt to build a subtype of it.
8981
89822011-08-04 Yannick Moy <moy@adacore.com>
8983
8984 * errout.ads Change comments: remove 'R'M as an example where quotes
8985 are needed; add ALFA as another case where quotes are not needed
8986 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
8987 case where quotes are not needed.
8988 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
8989 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
8990 Remove all occurrences of 'A'L'F'A
8991
89922011-08-04 Ed Schonberg <schonberg@adacore.com>
8993
8994 * sem_ch13.adb: check legality of invariant pragma.
8995
a4640a39
AC
89962011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8997
8998 * bindgen.adb: Add comments.
8999
90002011-08-04 Yannick Moy <moy@adacore.com>
9001
9002 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
9003 synthesized flag.
9004 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
9005 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
9006
90072011-08-04 Robert Dewar <dewar@adacore.com>
9008
9009 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
9010 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
9011 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
9012
39ade2f9
AC
90132011-08-04 Thomas Quinot <quinot@adacore.com>
9014
9015 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
9016
90172011-08-04 Thomas Quinot <quinot@adacore.com>
9018
9019 PR ada/47880
9020 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
9021 allocated object.
9022
90232011-08-04 Robert Dewar <dewar@adacore.com>
9024
9025 * einfo.ads, exp_ch4.adb: Minor reformatting.
9026
90272011-08-04 Jerome Lambourg <lambourg@adacore.com>
9028
9029 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
9030
7efc3f2d
AC
90312011-08-04 Ed Schonberg <schonberg@adacore.com>
9032
9033 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
9034 type in all cases to compute list of primitive operations, because full
9035 view may be an itype that is not attached to the list of declarations.
9036
90372011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9038
9039 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
9040 library has already been finalized.
9041 (Gen_Adafinal_C): Likewise.
9042 (Gen_Adainit_Ada): Generate an early return if the library has
9043 already been elaborated.
9044 (Gen_Adainit_C): Likewise.
9045 (Gen_Output_File_Ada): Generate an elaboration flag.
9046 (Gen_Output_File_C): Likewise.
9047
f65df609
HK
90482011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9049
9050 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
9051 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
9052 built in the first place.
9053 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
9054 for CodePeer because Finalize_Address was not built to begin with.
9055 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
9056
a0fb8fe8
AC
90572011-08-04 Pascal Obry <obry@adacore.com>
9058
9059 * adaint.c (__gnat_tmp_name): Use current process id to create temp
9060 filenames, this ensures unicity of filenames across processes.
9061
90622011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9063
9064 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
9065 Raise_Controlled to Raise_From_Controlled_Operation. Update the
9066 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
9067 Add False as the actual to From_Abort in the generated call to
9068 Raise_From_Controlled_Operation.
9069
90702011-08-04 Jerome Lambourg <lambourg@adacore.com>
9071
9072 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
9073 so that the ali file name can be retrieved from outside of this package.
9074 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
9075 doing nothing in the general case, but used to update the object file
9076 timestamp if directly generated by the backend.
9077 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
9078 to a later time than the ali file one.
9079
9534ab17
AC
90802011-08-04 Yannick Moy <moy@adacore.com>
9081
9082 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
9083 entities whose body contains an Annotate pragma which forces formal
9084 proof on this body.
9085 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
9086 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
9087 Mark_Non_ALFA_Subprogram to pass in a message and node.
9088 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
9089 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
9090 surrounding subprogram.
9091 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
9092 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
9093 as not in ALFA is annotated with Formal_Proof being On, then an error
9094 is issued based on the additional parameters for message and node.
9095 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
9096 * gcc-interface/Make-lang.in: Update dependencies.
9097
90982011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9099
9100 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
9101 Finalize_Address when CodePeer is enabled.
9102
91032011-08-04 Pascal Obry <obry@adacore.com>
9104
9105 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
9106 the latter returns a pointer to a static buffer which is deallocated
9107 at the end of the routine.
9108
5c0e97dd
AC
91092011-08-04 Yannick Moy <moy@adacore.com>
9110
9111 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
9112 after index creation; mark unconstrained base array type generated as
9113 being in/not in ALFA as well
9114 (Make_Index): mark subtype created as in/not in ALFA
9115 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
9116 over a loop as in/not in ALFA, depending on its type and form of loop
9117 iteration.
9118
91192011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9120
9121 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
9122 directly to False on .NET and JVM.
9123
7a93c64b
YM
91242011-08-04 Yannick Moy <moy@adacore.com>
9125
9126 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
9127 constraint that subtype must come from source code to be in ALFA, so
9128 that anonymous subtypes can be in ALFA too.
9129
e9a1ed9b
YM
91302011-08-04 Yannick Moy <moy@adacore.com>
9131
9132 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
9133 reference for ALFA mode.
9134 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
9135 procedure public so as to use it from formal verification back-end.
9136
8e293fbd
AC
91372011-08-04 Jerome Lambourg <lambourg@adacore.com>
9138
9139 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
9140 invalid checks of the Parameter, making Remove_Switch not working
9141 correctly.
9142
91432011-08-04 Arnaud Charlet <charlet@adacore.com>
9144
9145 * targparm.ads: Update header: no run-time exception is needed on this
9146 file.
9147
91482011-08-04 Vincent Celier <celier@adacore.com>
9149
9150 * a-fihema.adb: Use System.IO instead of GNAT.IO
9151
91522011-08-04 Thomas Quinot <quinot@adacore.com>
9153
9154 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
9155 are forbidden in Compiler_Unit mode.
9156
cfae2bed
AC
91572011-08-04 Robert Dewar <dewar@adacore.com>
9158
9159 * sem_util.adb: Minor reformatting.
9160
91612011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9162
9163 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
9164 library-level finalizers.
9165 (Gen_Finalize_Library_C): Update the import string for library-level
9166 finalizers.
9167 (Gen_Finalize_Library_Defs_C): Update the definition name of a
9168 library-level finalizer.
9169 * exp_ch7.adb: Remove with and use clauses for Stringt.
9170 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
9171 Spec_Decl. Add local variable Body_Id. The names of library-level
9172 finalizers are now manually fully qualified and are no longer external.
9173 A single name is now capable of servicing .NET, JVM and non-VM targets.
9174 Pragma Export is no longer required to provide visibility for the name.
9175 (Create_Finalizer_String): Removed.
9176 (New_Finalizer_Name): New routine which mimics New_..._Name.
9177
01f0729a
AC
91782011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9179
9180 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
9181 elaboration counter to Standard_Short_Integer.
9182 * sem_util.adb (Build_Elaboration_Entity): Likewise.
9183 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
9184 (Gen_Elab_Externals_C): Likewise.
9185
91862011-08-04 Ed Falis <falis@adacore.com>
9187
9188 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
9189 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
9190 system-vxworks-mips.ads, system-vxworks-x86.ads
9191 (Always_Compatible_Rep): set to False for all VxWorks targets.
9192
2c1b72d7
AC
91932011-08-04 Robert Dewar <dewar@adacore.com>
9194
9195 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
9196 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
9197 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
9198 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
9199 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
9200 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
9201 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
9202 Minor reformatting and code reorganization.
9203
92042011-08-04 Emmanuel Briot <briot@adacore.com>
9205
9206 * projects.texi: Added doc for aggregate projects.
9207
824e9320
AC
92082011-08-04 Emmanuel Briot <briot@adacore.com>
9209
9210 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
9211 Add support for overriding the Project_Path in aggregate projects.
9212
92132011-08-04 Robert Dewar <dewar@adacore.com>
9214
9215 * a-cofove.ads: Minor reformatting.
9216
92172011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9218
9219 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
9220 on the generated code.
9221 (Build_Finalize_Statements): Update the comment on the generated code.
9222 (Build_Initialize_Statements): Update the comment on the generated code.
9223 (Build_Object_Declarations): Add local variable Result. The object
9224 declarations are now built in sequence.
9225 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
9226 RE_Unit_Table.
9227
92282011-08-04 Robert Dewar <dewar@adacore.com>
9229
9230 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
9231
92322011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9233
9234 * einfo.ads (Elaboration_Entity): Document new definition and use.
9235 (Elaboration_Entity_Required): Adjust to above change.
9236 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
9237 * exp_ch12.adb: And with and use for Snames.
9238 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
9239 * exp_util.adb (Set_Elaboration_Flag): Likewise.
9240 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
9241 <Check_Unit_Name>: Deal with N_Expanded_Name.
9242 <Attribute_Elaborated>: Extend to all unit names.
9243 * sem_elab.adb: And with and use for Uintp.
9244 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
9245 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
9246 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
9247 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
9248 from Gen_Adainit_Ada.
9249 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
9250 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
9251 case, do not call System.Standard_Library.Adafinal; instead call
9252 finalize_library if needed.
9253 (Gen_Adafinal_C): Likewise.
9254 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
9255 non-main program case.
9256 (Gen_Adainit_C): Generate a couple of external declarations here.
9257 In the main program case, set SSL.Finalize_Library_Objects.
9258 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
9259 (Gen_Elab_Calls_C): Likewise.
9260 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
9261 (Gen_Finalize_Library_C): Likewise. Generate a full function.
9262 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
9263 objects here.
9264 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
9265 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
9266 Gen_Adafinal_Ada.
9267 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
9268 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
2c7f9cc0 9269 of external declarations. Call Gen_Finalize_Library_C.
824e9320 9270
316d9d4f
EB
92712011-08-04 Emmanuel Briot <briot@adacore.com>
9272
9273 * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains,
9274 Compute_Compilation_Phases): new subprogram.
9275 (Builder_Data, Builder_Project_Tree_Data): new subprogram and type
9276 The number of mains as well as the various compilation phases that
9277 need to be run are now project tree specific, since various
9278 aggregated trees might have different requirements. In particular,
9279 they do not all require bind or link phases.
9280
9434c32e
EB
92812011-08-04 Emmanuel Briot <briot@adacore.com>
9282
9283 * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb
9284 (Project_Tree_Appdata): New type.
9285 It is now possible to associate application-specific data to a project
9286 tree. In particular, this is used in the gprbuild builder to avoid a
9287 number of global tables and htables, especially now that there can be
9288 several project trees loaded at once because of aggregate projects.
9289 (Debug_Name): new procedure.
9290 * projects.texi: Clarify syntax of "**" for Source_Dirs
9291
41ba34db
EB
92922011-08-03 Emmanuel Briot <briot@adacore.com>
9293
9294 * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts
9295 the "roots" for a main.
9296 (Fill_From_Project): add support for aggregate projects. Main units
9297 in aggregated projects are now automatically added in the list of
9298 files to build (although this fails later on in gprbuild, because
9299 these files are not using the root proejct tree, so this needs
9300 further cleanup)
9301 * gcc-interface/Make-lang.in: Update dependencies.
9302
fccd42a9
AC
93032011-08-03 Yannick Moy <moy@adacore.com>
9304
9305 * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean
9306 conditional expression in ALFA.
9307 * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean
9308 expressions as not in ALFA.
9309
93102011-08-03 Robert Dewar <dewar@adacore.com>
9311
9312 * a-cofove.adb: Minor reformatting.
9313
93142011-08-03 Emmanuel Briot <briot@adacore.com>
9315
9316 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads
9317 (Insert_Project_Sources, Insert_withed_Sources_For): moved from the
9318 gprbuild sources.
9319 These packages are more logically placed in the Queue package, since
9320 they manipulate the queue. It is also likely that they can be adapted
9321 for gnatmake, thus sharing more code.
9322 (Finish_Program, Fail_Program): moved from the gprbuild sources, so
9323 that we could move the above.
9324
93252011-08-03 Emmanuel Briot <briot@adacore.com>
9326
9327 * errutil.adb (Finalize): clean up the list of error messages on exit.
9328 Calling this subprogram multiple times will no longer show duplicate
9329 error messages on stderr.
9330
93312011-08-03 Emmanuel Briot <briot@adacore.com>
9332
9333 * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter
9334 Getopt_Switches when we have already define a command line
9335 configuration.
9336
5e8c8e44
YM
93372011-08-03 Yannick Moy <moy@adacore.com>
9338
9339 * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not
9340 in ALFA. Instead, they are considered as assertions to prove.
9341 * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such
9342 nodes as not in ALFA. Instead, include conditional expressions in ALFA
9343 if they have no ELSE part, or if they occur in pre- and postconditions,
9344 where the Condition cannot have side-effects in ALFA
9345 (Analyze_Membership_Op): do not mark such nodes as not in ALFA
9346 (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA.
9347 Instead, include type conversion between scalar types in ALFA.
9348 * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA
9349 if-and-only-if its type is in ALFA.
9350
5ffe0bab
AC
93512011-08-03 Thomas Quinot <quinot@adacore.com>
9352
9353 * scos.adb, get_scos.adb, put_scos.adb
9354 New code letter for decisions: G (entry guard)
9355 * par_sco.adb
9356 (Traverse_Subprogram_Body): Rename to...
9357 (Traverse_Subprogram_Or_Task_Body): New subrpogram.
9358 (Traverse_Protected_Body): New subprogram
9359 (Traverse_Declarations_Or_Statements): Add traversal of task bodies,
9360 protected bodies and entry bodies.
9361
93622011-08-03 Yannick Moy <moy@adacore.com>
9363
9364 * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure
9365 entities with get/set subprograms, which is set on procedure entities
9366 generated by the compiler for a postcondition.
9367 * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures
9368 * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the
9369 entity for a declaration
9370 (Get_Unique_Entity_For_Decl): new function returning an entity which
9371 represents a declaration, so that matching spec and body have the same
9372 entity.
9373
93742011-08-03 Robert Dewar <dewar@adacore.com>
9375
9376 * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads,
9377 a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting
9378
93792011-08-03 Yannick Moy <moy@adacore.com>
9380
9381 * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram
9382 library-level because retriction No_Implicit_Dynamic_Code in the
9383 front-end prevents its definition as a local subprogram
9384 (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File,
9385 for reuse in other contexts
9386 (Traverse_Declarations_Or_Statements,
9387 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
9388 Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these
9389 procedures take a callback parameter to be called on all declarations
9390 * lib-xref.ads
9391 (Traverse_All_Compilation_Units): new generic function to traverse a
9392 compilation unit and call a callback parameter on all declarations
9393
f9ad6b62
AC
93942011-08-03 Javier Miranda <miranda@adacore.com>
9395
9396 * sem_prag.adb (Process_Interface_Name): Allow duplicated export names
9397 in Java since they are always enclosed in a namespace that
9398 differentiates them, and overloaded entities are supported by the VM.
9399
94002011-08-03 Ed Schonberg <schonberg@adacore.com>
9401
9402 * checks.adb (Determine_Range): If a computed bound of an operation is
9403 outside the range of the base type of the expression, and overflow
9404 checks are enabled, the result is unknown and cannot be used for any
9405 subsequent constant folding.
9406 * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are
9407 unknown, so is the result of the comparison.
9408
94092011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9410
9411 * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal
9412 From_Abort. When finalization was triggered by an abort, propagate
9413 Standard'Abort_Signal rather than Program_Error.
9414 * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal
9415 From_Abort.
9416 * a-except.adb (Raise_From_Controlled_Operation): Add new formal
9417 From_Abort. When finalization was triggered by an abort, propagate
9418 Standard'Abort_Signal rather than Program_Error.
9419 * a-except.ads:(Raise_From_Controlled_Operation): Add new formal
9420 From_Abort.
9421 * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable
9422 Abort_Id. Update the calls to Build_Object_Declarations and
9423 Build_Raise_Statement to include Abort_Id.
9424 (Build_Adjust_Statements): New local variable Abort_Id. Update the
9425 calls to Build_Object_Declarations and Build_Raise_Statement to include
9426 Abort_Id.
9427 (Build_Finalize_Statements): New local variable Abort_Id. Update the
9428 calls to Build_Object_Declarations and Build_Raise_Statement to include
9429 Abort_Id.
9430 (Build_Components): Create an entity for Abort_Id when exceptions are
9431 allowed on the target.
9432 (Build_Finalizer): New local variable Abort_Id.
9433 (Build_Initialize_Statements): New local variable Abort_Id. Update the
9434 calls to Build_Object_Declarations and Build_Raise_Statement to include
9435 Abort_Id.
9436 (Build_Object_Declarations): Add new formal Abort_Id. Create the
9437 declaration of flag Abort_Id to preserve the original abort status
9438 before finalization code is executed.
9439 (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to
9440 runtime routine Raise_From_Controlled_Operation.
9441 (Create_Finalizer): Update the call to Build_Raise_Statement to include
9442 Abort_Id. Update the call to Build_Object_Declarations to include
9443 Abort_Id. Update the layout of the finalizer body.
9444 (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort.
9445 (Process_Transient_Objects): New local variable Abort_Id. Remove the
9446 clunky code to create all flags and objects related to
9447 exception propagation and replace it with a call to
9448 Build_Object_Declarations. Update the call to Build_Raise_Statement to
9449 include Abort_Id.
9450 * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec.
9451 Add new formal Abort_Id and associated comment on its use.
9452 (Build_Raise_Statement): Add new formal Abort_Id and associated comment
9453 on its use.
9454 * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id.
9455 Remove the clunky code to create all flags and objects related to
9456 exception propagation and replace it with a call to
9457 Build_Object_Declarations. Update the call to Build_Raise_Statement.
9458
94592011-08-03 Eric Botcazou <ebotcazou@adacore.com>
9460
9461 * s-tassta.adb: Fix minor typos.
9462
94632011-08-03 Robert Dewar <dewar@adacore.com>
9464
9465 * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb,
9466 lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting.
9467
1cdfa9be
AC
94682011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9469
9470 * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion
9471 to packages. This ensures that the finalizer body will not end up
9472 inside the freeze node.
9473 (Process_Declarations): Add code to detect whether a freeze node has a
9474 nested finalization collection.
9475
94762011-08-03 Pascal Obry <obry@adacore.com>
9477
9478 * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005.
9479 (Current_Session): Return a not null access to Session_Type.
9480 (Default_Session): Likewise.
9481
243cae0a
AC
94822011-08-03 Robert Dewar <dewar@adacore.com>
9483
9484 * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb,
9485 exp_ch3.adb, exp_ch3.ads: Minor reformatting.
9486
94872011-08-03 Pascal Obry <obry@adacore.com>
9488
9489 * g-awk.ads: Minor comment fix.
9490
94912011-08-03 Sergey Rybin <rybin@adacore.com>
9492
9493 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
9494 the tree structure related to discriminant constraints.
9495 Original_Discriminant cannot be used any more for computing the
9496 defining name for the reference to a discriminant.
9497
94982011-08-03 Ed Schonberg <schonberg@adacore.com>
9499
9500 * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the
9501 function is not visibly tagged, this is not a dispatching call and
9502 therfore is not Tag_Indeterminate, even if the function is marked as
9503 dispatching on result.
9504
f553e7bc
AC
95052011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9506
9507 * exp_ch13.adb: Add with and use clauses for Restrict and Rident.
9508 (Expand_N_Free_Statement): Add a guard to protect against run-times
9509 which do not support controlled types.
9510 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect
9511 against run-times which do not support controlled types.
9512 * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect
9513 against run-times which do not support controlled types.
9514 * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect
9515 against run-times which do not support controlled types.
9516 * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to
9517 protect against run-times which do not support controlled types.
9518
95192011-08-03 Eric Botcazou <ebotcazou@adacore.com>
9520
9521 * exp_intr.adb: Put back with and use clauses for Exp_Ch11.
9522 (Expand_Unc_Deallocation): Expand the AT_END handler at the very end.
9523
e4982b64
AC
95242011-08-03 Ed Schonberg <schonberg@adacore.com>
9525
9526 * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is
9527 modified in the source, to prevent spurious warnings when compiling
9528 with -gnatg.
9529
95302011-08-03 Thomas Quinot <quinot@adacore.com>
9531
9532 * a-except-2005.adb: Minor reformatting.
9533
95342011-08-03 Ed Schonberg <schonberg@adacore.com>
9535
9536 * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit
9537 is a renaming declaration in the private part of a package, do not emit
9538 a warning that the with_clause could be moved because the renaming may
9539 be used in the body or in a child unit.
9540
95412011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9542
9543 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
9544 Propagate the Comes_From_Source attribute from the original return
9545 object to the renaming.
9546
95472011-08-03 Jose Ruiz <ruiz@adacore.com>
9548
9549 * exp_ch7.adb (Build_Raise_Statement): Do not call
9550 Raise_From_Controlled_Operation when this routine is not present in
9551 the run-time library.
9552 (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time
9553 libraries (Ravenscar), tasks are non-terminating, and protected objects
9554 and tasks can only appear at library level, so we do not want
9555 finalization of protected objects nor tasks.
9556 * exp_intr.adb: Minor clarification in comment.
9557 bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada,
9558 Gen_Output_File_C): Remove references to finalization of library-level
9559 objects when using restricted run-time libraries.
9560
95612011-08-03 Ed Schonberg <schonberg@adacore.com>
9562
9563 * sem_ch3.adb (Build_Discriminant_Constraints): Set
9564 Original_Discriminant only if the parent type is a generic formal.
9565
deb8dacc
HK
95662011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9567
9568 * exp_ch13.adb: Add with and use clause for Targparm;
9569 (Expand_N_Free_Statement): Prevent the generation of a custom
9570 Deallocate on .NET/JVM targets since this requires pools and address
9571 arithmetic.
9572 * exp_ch4.adb (Expand_Allocator_Expression): When compiling for
9573 .NET/JVM targets, attach the newly allocated object to the access
9574 type's finalization collection. Do not generate a call to
9575 Set_Finalize_Address_Ptr on .NET/JVM because this routine does not
9576 exist in the runtime.
9577 (Expand_N_Allocator): When compiling for .NET/JVM targets, do not
9578 create a custom Allocate for object that do not require initialization.
9579 Attach a newly allocated object to the access type's finalization
9580 collection on .NET/JVM.
9581 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for
9582 assignment of controlled types on .NET/JVM. The two hidden pointers
9583 Prev and Next and stored and later restored after the assignment takes
9584 place.
9585 * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized
9586 kludge for .NET/JVM to recognize a particular piece of code coming from
9587 Heap_Management and change the call to Finalize into Deep_Finalize.
9588 * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of
9589 finalization collections on .NET/JVM only for types derived from
9590 Controlled. Separate the association of storage pools with a collection
9591 and only allow it on non-.NET/JVM targets.
9592 (Make_Attach_Call): New routine.
9593 (Make_Detach_Call): New routine.
9594 (Process_Object_Declarations): Suppress the generation of
9595 build-in-place return object clean up code on .NET/JVM since it uses
9596 pools.
9597 * exp_ch7.ads (Make_Attach_Call): New routine.
9598 (Make_Detach_Call): New routine.
9599 * exp_intr.adb Add with and use clause for Targparm.
9600 (Expand_Unc_Deallocation): Detach a controlled object from a collection
9601 on .NET/JVM targets.
9602 * rtsfind.ads: Add entries RE_Attach, RE_Detach and
9603 RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table.
9604 * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special
9605 names used in finalization.
9606
96072011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9608
9609 * a-fihema.adb: Add with and use clauses for System.Soft_Links.
9610 (Attach, Detach): Lock the current task when chaining an object onto a
9611 collection.
9612
df3e68b1
HK
96132011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9614
9615 * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation):
9616 Rewritten to create the message strings when the exception is not
9617 raised by an abort during finalization.
9618 * a-except.ads, a-except-2005.ads: Add pragma Export for procedure
9619 Raise_From_Controlled_Operation and update its associated comment.
9620 * a-fihema.ads, a-fihema.adb: New GNAT unit.
9621 Ada.Finalization.Heap_Management provides key functionality
9622 associated with controlled objects on the heap, their creation,
9623 finalization and reclamation. Type Finalization_Collection is
9624 effectively a wrapper which sits ontop of a storage pool and performs
9625 all necessary bookkeeping for all the objects it contains. Each
9626 access-to-controlled or access-to-class-wide type receives a collection
9627 as part of its expansion. The compiler generates buffer code and
9628 invokes Allocate / Deallocate to create and destroy allocated
9629 controlled objects.
9630 * a-finali.adb ("="): Removed.
9631 * a-finali.ads ("="): Removed. Controlled types no longer carry hidden
9632 fields Prev and Next.
9633 * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer.
9634 A library unit with at least one controlled object on the library level
9635 has a special finalizer which is invoked by the binder. To signal this,
9636 ali files carry field PF.
9637 * ali.ads: New field in type Unit_Record called Has_Finalizer. Add
9638 associated comment on field usage.
9639 * a-tags.adb (Get_RC_Offset): Removed.
9640 (Needs_Finalization): New routine.
9641 * a-tags.ads: Update the structure of the GNAT dispatch tables.
9642 Dispatch tables now carry field Needs_Finalization which provides
9643 runtime indication whether a type is controlled or has controlled
9644 components or both. Remove field RC_Offset.
9645 (Get_RC_Offset): Removed along with its associated pragma Export.
9646 Since tagged types with controlled components no longer carry hidden
9647 field _controller, the special mechanism to retrieve its location is no
9648 longer needed.
9649 (Needs_Finalization): New routine.
9650 * atree.ads, atree.adb (Elist24): New routine.
9651 (Set_Elist24): New routine.
9652 * atree.h: Add a define clause for Elist24.
9653 * bindgen.adb New library-level variable Lib_Final_Built.
9654 (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the
9655 presence of a VM target, the routine generates calls to the proper
9656 library finalization routine.
9657 (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM
9658 targets. Set the correct library finalization routine depending on
9659 whether the library has controlled objects or this is a VM compilation.
9660 (Gen_Finalize_Library_Ada): New routine. This procedure generates calls
9661 to library-level finalizers of compiled units in reverse order of
9662 elaboration. It also produces exception management code and reraises a
9663 potential exception after all units have been finalized.
9664 (Gen_Finalize_Library_C): New routine. This procedure generates calls to
9665 library-level finalizers of compiled units in reverse order of
9666 elaboration.
9667 (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the
9668 definitions of all library-level finalizers available to the compilation
9669 (Gen_Main_Ada): Directly call Adafinal which now contails all target
9670 dependent code.
9671 (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call
9672 System.Standard_Library.Adafinal directly. If the library needs
9673 finalization actions, create the sequence of finalization calls.
9674 (Gen_Output_File_Ada): Alphabetize local variables and constants.
9675 Generate a with clause for System.Soft_Links when compiling for a VM.
9676 Remove the code which imports System.Standard_Library.Adafinal as
9677 Do_Finalize. Generate the library finalization routine.
9678 (Gen_Output_File_C): Add new local constant Needs_Library_Finalization.
9679 If the library needs finalization actions, create all the definitions
9680 of library- level finalizers.
9681 (Has_Finalizer): New routine. Determines whether at least one compiled
9682 unit has a library-level finalizer.
9683 Add type Qualification_Mode.
9684 (Set_Unit_Name): Add a formal which controls the replacement of a dot.
9685 * einfo.adb: New usage of field 15 as Return_Flag.
9686 Remove Finalization_Chain_Entity from the usages of field 19.
9687 Remove Associated_Final_Chain from the usages of field 23.
9688 New usage of field 23 as Associated_Collection.
9689 New usage of field 24 as Finalizer.
9690 New usage of flag 252 as Is_Processed_Transient.
9691 (Associated_Final_Chain): Removed.
9692 (Associated_Collection): New routine.
9693 (Finalization_Chain_Entity): Removed.
9694 (Finalizer): New routine.
9695 (Is_Finalizer): New routine.
9696 (Is_Processed_Transient): New routine.
9697 (Return_Flag): New routine.
9698 (Set_Associated_Final_Chain): Removed.
9699 (Set_Associated_Collection): New routine.
9700 (Set_Finalization_Chain_Entity): Removed.
9701 (Set_Finalizer): New routine.
9702 (Set_Is_Processed_Transient): New routine.
9703 (Set_Return_Flag): New routine.
9704 (Write_Entity_Flags): Include Is_Processed_Transient to the list of
9705 displayed flags.
9706 (Write_Field8_Name): Alphabetize the output.
9707 (Write_Field11_Name): Alphabetize the output.
9708 (Write_Field12_Name): Alphabetize the output.
9709 (Write_Field13_Name): Alphabetize the output.
9710 (Write_Field14_Name): Alphabetize the output.
9711 (Write_Field15_Name): Alphabetize the output.
9712 (Write_Field16_Name): Alphabetize the output.
9713 (Write_Field17_Name): Alphabetize the output.
9714 (Write_Field18_Name): Alphabetize the output.
9715 (Write_Field19_Name): Alphabetize the output. Remove the output of
9716 Finalization_Chain_Entity.
9717 (Write_Field20_Name): Alphabetize the output.
9718 (Write_Field21_Name): Alphabetize the output.
9719 (Write_Field22_Name): Alphabetize the output.
9720 (Write_Field23_Name): Alphabetize the output. Remove the output of
9721 Associated_Final_Chain. Add output for Associated_Collection.
9722 (Write_Field24_Name): Alphabetize the output.
9723 (Write_Field25_Name): Add output for Finalizer.
9724 (Write_Field26_Name): Alphabetize the output.
9725 (Write_Field27_Name): Alphabetize the output.
9726 (Write_Field28_Name): Alphabetize the output.
9727 * einfo.ads: Add new field description for Associated_Collection and
9728 its uses in nodes.
9729 Remove Associated_Final_Chain and its uses in nodes.
9730 Remove Finalization_Chain_Entity and its uses in nodes.
9731 Add new field description for Finalizer and its uses in nodes.
9732 Add new synthesized attribute Is_Finalizer.
9733 Add new flag description for Is_Processed_Transient and its uses in
9734 nodes.
9735 Add new field description for Return_Flag and its uses in nodes.
9736 (Associated_Final_Chain): Removed along with its pragma Inline.
9737 (Associated_Collection): New routine and pragma Inline.
9738 (Finalization_Chain_Entity): Removed along with its pragma Inline.
9739 (Finalizer): New routine and pragma Inline.
9740 (Is_Finalizer): New routine and pragma Inline.
9741 (Is_Processed_Transient): New routine and pragma Inline.
9742 (Return_Flag): New routine and pragma Inline.
9743 (Set_Associated_Final_Chain): Removed along with its pragma Inline.
9744 (Set_Associated_Collection): New routine and pragma Inline.
9745 (Set_Finalization_Chain_Entity): Removed along with its pragma Inline.
9746 (Set_Finalizer): New routine and pragma Inline.
9747 (Set_Is_Processed_Transient): New routine and pragma Inline.
9748 (Set_Return_Flag): New routine and pragma Inline.
9749 * exp_aggr.adb: Alphabetize subprograms.
9750 (Build_Array_Aggr_Code): Remove formal Flist and its associated comment.
9751 (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their
9752 associated comments. Remove local variables External_Final_List and
9753 Attach.
9754 Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to
9755 Ancestor. Remove the retrieval of finalization lists. Update the call to
9756 Make_Adjust_Call.
9757 (Convert_Aggr_In_Allocator): Remove the retrieval of finalization
9758 lists. Update the call to Late_Expansion.
9759 (Convert_Aggr_In_Assignment): Update the call to Late_Expansion.
9760 (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion.
9761 (Gen_Assign): Remove the retrieval of the finalization list used to
9762 build the assignment. Update the calls to Make_Init_Call and
9763 Make_Adjust_Call.
9764 (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions.
9765 Remove the mechanism to determine attachment levels and finalization
9766 list retrieval. Remove the processing for coextensions.
9767 (Init_Controller): Removed. Controllers no longer exist.
9768 (Late_Expansion): Remove formals Flist and Obj along with their
9769 associated comments. Update the calls to Build_Record_Aggr_Code and
9770 Build_Array_Aggr_Code.
9771 * exp_ch13.adb (Expand_N_Free_Statement): New routine.
9772 (Expand_N_Freeze_Entity): Add special processing for finalizers which
9773 appear in entry bodies, protected subprograms and task bodies.
9774 * exp_ch13.ads (Expand_N_Free_Statement): New routine.
9775 * exp_ch3.adb (Add_Final_Chain): Removed.
9776 (Build_Array_Init_Proc): Alphabetize local variables.
9777 (Build_Assignment): Alphabetize local variables. Update the call to
9778 Maked_Adjust_Call.
9779 (Build_Class_Wide_Master): Rename local variables to better reflect
9780 their role.
9781 (Build_Discriminant_Assignments): Code reformatting.
9782 (Build_Init_Call_Thru): Code reformatting.
9783 (Build_Init_Procedure): Code reformatting. Generate a special version
9784 of Deep_Finalize which is capable of finalizing all initialized
9785 components and ignore the rest.
9786 (Build_Init_Statements): Rename local variables to better reflect their
9787 role.
9788 Reimplement the mechanism to include the creation and update of an index
9789 variable called a "counter". It is used as a bookmark for tracing
9790 initialized and non-initialized components.
9791 (Build_Initialization_Call): Remove local variable Controller_Typ.
9792 Alphabetize all local variables. Remove the initialization of the
9793 record controller and update the call to Make_Init_Call.
9794 (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent.
9795 New local variable Counter.
9796 (Constrain_Array): Alphabetize.
9797 (Expand_Freeze_Array_Type): Create a collection instead of a
9798 finalization list.
9799 (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive
9800 Finalize_Address which is used in conjunction with allocated controlled
9801 objects.
9802 (Expand_N_Object_Declaration): Remove the creation of a finalization
9803 list for anonymous access types. Update the calls to Make_Init_Call and
9804 Make_Adjust_Call.
9805 (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the
9806 retrieval of finalization lists. Remove the expansion of the record
9807 controller. Create TSS primitive Finalize_Address used in conjunction
9808 with controlled objects on the heap. Create finalization collections
9809 for access-to-controlled record components.
9810 (Expand_Record_Controller): Removed.
9811 (Freeze_Type): Remove the freezing of record controllers. Freezing of
9812 class-wide types now requires additional processing. Create
9813 finalization collections for access-to-controlled types.
9814 (Increment_Counter): New routine.
9815 (Make_Counter): New routine.
9816 (Make_Eq_If): Remove the mention of Name_uController.
9817 (Make_Predefined_Primitive_Specs): There is no longer need to skip
9818 types coming from System.Finalization_Root.
9819 (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles.
9820 (Predefined_Primitive_Bodies): There is no longer need to skip types
9821 coming from System.Finalization_Root.
9822 (Stream_Operation_OK): Do not generate stream routines for
9823 type Ada.Finalization.Heap_Management.Finalization_Collection.
9824 * exp_ch3.ads: Alphabetize subprograms.
9825 * exp_ch4.adb: Remove with and use clause for Sem_Ch8.
9826 Add with and use clause for Lib.
9827 (Complete_Coextension_Finalization): Removed.
9828 (Complete_Controlled_Allocation): New routine. Create a finalization
9829 collection for anonymous access-to-controlled types. Create a custom
9830 Allocate which interfaces with the back end and the machinery in
9831 Heap_Management.
9832 (Expand_Allocator_Expression): Add necessary calls to
9833 Complete_Controlled_Allocation. Remove the retrieval of finalization
9834 lists. Update the calls to Make_Adjust_Call. Generate a call to
9835 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
9836 the associated collection.
9837 (Expand_N_Allocator): Remove the processing for dynamic coextensions.
9838 Code clean up. Remove the retrieval of finalization lists and
9839 attachment levels.
9840 Update the call to Make_Init_Call. Generate a call to
9841 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
9842 the associated collection.
9843 (Get_Allocator_Final_List): Removed. Finalization lists are not
9844 available.
9845 (Suitable_Element): Remove the mention of Name_uController.
9846 * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp.
9847 (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of
9848 the left hand side, carry out the assignment and adjust the left hand
9849 side.
9850 * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed.
9851 (Add_Collection_Actual_To_Build_In_Place_Call): New routine.
9852 (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to
9853 BIP_Collection and BIPcollection.
9854 (Build_Heap_Allocator): New routine used to allocate the return object
9855 of a build-in-place function onto a collection.
9856 (Expand_Ctrl_Function_Call): Moved from Exp_Ch7.
9857 (Expand_Call): Do not replace direct calls to Deep routines with their
9858 aliases.
9859 (Expand_N_Extended_Return_Statement): Give all variables shorter names
9860 and update their occurrences. Add a special return flag to monitor the
9861 [ab]normal execution of the function. The flag is set right before the
9862 return statement.
9863 Rewrite the mechanism used to allocate a build-in-place return object
9864 on the heap or on a storage pool.
9865 (Is_Direct_Deep_Call): New routine.
9866 (Make_Build_In_Place_Call_In_Allocator): Add a collection to a
9867 build-in-place function call instead of a final list. Build a call to
9868 Set_Finalize_Address_Ptr to decorate the associated collection.
9869 (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in
9870 order to name the build-in-place function call's result for later
9871 finalization. Add a collection to a build-in-place function call
9872 instead of a final list.
9873 (Make_Build_In_Place_Call_In_Assignment): Add a collection to a
9874 build-in-place function call instead of a final list. Remove the code
9875 which moves one final list and transforms it into the actual in a
9876 nested build-in-place call.
9877 (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a
9878 build-in-place function call instead of a final list.
9879 (Move_Final_List): Removed.
9880 (Needs_BIP_Collection): New routine.
9881 (Needs_BIP_Final_List): Removed.
9882 * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in
9883 enumeration type BIP_Formal_Kind.
9884 Update the related comment.
9885 (Needs_BIP_Collection): New routine.
9886 (Needs_BIP_Final_List): Removed.
9887 * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt
9888 and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the
9889 majority of subprograms in this unit. Add Name_Finalize_Address to
9890 array Name_Of and TSS_Finalize_Address to array Deep_Name_Of.
9891 (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization
9892 statements for an array type.
9893 (Build_Adjust_Statements): Create the adjust statements for a record
9894 type.
9895 (Build_Cleanup_Statements): New routine. A procedure which given any
9896 construct containing asynchronous calls, references to _master, or is a
9897 task body, a task allocation or a protected body produces the necessary
9898 runtime calls to clean up these constructs.
9899 (Build_Exception_Handler): New routine.
9900 (Build_Final_List): Removed.
9901 (Build_Finalization_Collection): New routine. A core procedure which
9902 creates a collection to service heap allocated controlled objects
9903 associated with an access-to-controlled type.
9904 (Build_Finalize_Statements): Create the finalization statements for a
9905 record types.
9906 (Build_Finalizer): New routine. A core procedure which given any
9907 construct with declarations and/or statements detects all objects which
9908 need any type of clean up (controlled objects, protected objects) and
9909 generates all necessary code to clean up the said objects in the proper
9910 order.
9911 (Build_Finalizer_Call): New routine.
9912 (Build_Initialize_Statements): Create the initialization statements for
9913 an array type. The generated routine contains code to finalize partially
9914 initialized arrays.
9915 (Build_Object_Declarations): New routine.
9916 (Build_Raise_Statement): New routine.
9917 (Clean_Simple_Protected_Objects): Removed.
9918 (Controller_Component): Removed.
9919 (Enclosing_Function): New routine.
9920 (Expand_Cleanup_Actions): Create a finalizer for a construct which has
9921 either declarations or statements or both.
9922 (Expand_N_Package_Body): Create a finalizer for a non-generic package.
9923 (Expand_N_Package_Declaration): Create a finalizer for a non-generic
9924 package.
9925 (Find_Final_List): Removed.
9926 (Global_Flist_Ref): Removed.
9927 (In_Finalization_Root): Removed.
9928 (Insert_Actions_In_Scope_Around): Determine the range of the transient
9929 scope in terms of tree nodes. Process all transient variables within
9930 that range.
9931 (Make_Adjust_Call): Rewritten. There is no longer an attach call
9932 generated after the adjust.
9933 (Make_Attach_Call): Removed.
9934 (Make_Call): New routine.
9935 (Make_Clean): Removed.
9936 (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate
9937 build routines.
9938 (Make_Deep_Proc): Rewritten to generate the new profile signature used
9939 in Deep routines.
9940 (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate
9941 build routines.
9942 (Make_Final_Call): Modified to simply create a call to either
9943 Deep_Finalize or Finalize.
9944 (Make_Finalize_Address_Body): New routine.
9945 (Make_Finalize_Address_Stmts): New routine. A function which produces
9946 TSS primitive Finalize_Address used in conjunction with heap allocated
9947 controlled objects.
9948 (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM.
9949 (Make_Init_Call): Rewritten. There is no longer an attach call
9950 generated after initialization.
9951 (Make_Local_Deep_Finalize): New routine.
9952 (Make_Set_Finalize_Address_Ptr_Call): New routine.
9953 (Make_Transient_Block): Remove the finalization list retrieval and
9954 manipulation.
9955 (Needs_Finalization): Moved to Exp_Util.
9956 (Parent_Field_Type): New routine.
9957 (Preprocess_Components): New routine.
9958 (Process_Transient_Objects): New routine.
9959 (Wrap_HSS_In_Block): New routine.
9960 (Wrap_Transient_Declaration): Remove finalization list management and
9961 controller insertion.
9962 (Wrap_Transient_Expression): Code reformatting.
9963 (Wrap_Transient_Statement): Code reformatting.
9964 * exp_ch7.ads (Build_Final_List): Removed.
9965 (Build_Finalization_Collection): New routine.
9966 (Build_Raise_Statement): New routine.
9967 (Controller_Component): Removed.
9968 (Expand_Ctrl_Function_Call): Moved to Exp_Ch6.
9969 (Find_Final_List): Removed.
9970 (In_Finalization_Root): Removed.
9971 (Is_Simple_Protected_Type): Update related comment.
9972 (Make_Adjust_Call): New parameter profile and associated comments.
9973 (Make_Attach_Call): Removed.
9974 (Make_Final_Call): New parameter profile and associated comments.
9975 (Make_Finalize_Address_Body): New routine.
9976 (Make_Init_Call): New parameter profile and associated comments.
9977 (Make_Local_Deep_Finalize): New routine.
9978 (Make_Set_Finalize_Address_Ptr_Call): New routine.
9979 (Needs_Finalization): Moved to Exp_Util.
9980 * exp_ch9.adb (Add_Object_Pointer): Code reformatting.
9981 (Expand_N_Protected_Body): Remove the handling of finalization lists.
9982 (Find_Protection_Type): Moved to Exp_Util.
9983 * exp_disp.adb: Remove with and use clauses for Exp_Ch7.
9984 (Make_DT): Update sequence of dispatch table initialization. Remove the
9985 initialization of field RC_Offset. Add initialization of field Needs_
9986 Finalization.
9987 * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting.
9988 Reimplement how an object is first finalized, then deallocated.
9989 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
9990 Code reformatting.
9991 * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address.
9992 Register TSS_Finalize_Address with type TSS_Names.
9993 * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core
9994 procedure provides the interface between an allocation / deallocation
9995 and the support machinery in Ada.Finalization.Heap_Management.
9996 (Find_Init_Call): Code reformatting.
9997 (Find_Init_Call_In_List): Code reformatting.
9998 (Find_Protection_Type): Moved from Exp_Ch9.
9999 (Find_Prim_Op): Reimplement to add preference of recovered primitive.
10000 (Has_Controlled_Coextensions): Removed.
10001 (Has_Controlled_Objects): New routine.
10002 (In_Library_Level_Package_Body): New routine.
10003 (Insert_Action_After): New routine.
10004 (Is_Finalizable_Transient): New routine. This predicate determines
10005 whether an object declaration is one of the many variants of controlled
10006 transients.
10007 (Is_Null_Access_BIP_Func_Call): New routine.
10008 (Is_Non_BIP_Func_Call): New routine.
10009 (Is_Related_To_Func_Return): New routine.
10010 (Needs_Finalization): Moved from Exp_Ch7.
10011 * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine.
10012 (Find_Protection_Type): Moved from Exp_Ch9.
10013 (Has_Controlled_Coextensions): Removed.
10014 (Has_Controlled_Objects): New routine.
10015 (In_Library_Level_Package_Body): New routine.
10016 (Insert_Action_After): New routine.
10017 (Is_Finalizable_Transient): New routine.
10018 (Is_Null_Access_BIP_Func_Call): New routine.
10019 (Is_Non_BIP_Func_Call): New routine.
10020 (Is_Related_To_Func_Return): New routine.
10021 (Needs_Finalization): Moved from Exp_ch7.
10022 * expander.adb (Expand): Add a case for N_Free_Statement.
10023 * freeze.adb (Freeze_All): Replace the generation of a finalization
10024 list with a collection for access-to-controlled types.
10025 (Freeze_Entity): Code reformatting.
10026 (Freeze_Record_Type): Remove the freezing of a record controller
10027 component.
10028 (Freeze_Subprogram): Code reformatting.
10029 * inline.adb (Cleanup_Scopes): Remove the reset of the scope
10030 finalization list.
10031 * lib-writ.adb (Write_Unit_Information): Output "PF" when a package
10032 has a library-level finalizer.
10033 * lib-writ.ads: Add "PF" to the sequence of unit attributes.
10034 * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed.
10035 * Makefile.rtl: Remove a-filico and s-finimp from the list of object
10036 files. Add a-fihema to the list of object files.
10037 * par-ch4.adb:
10038 Alphabetize the associations in type Is_Parameterless_Attribute.
10039 * rtsfind.ads: Ada.Finalization_List.Controller and
10040 System.Finalization_Implementation are no longer a GNAT unit.
10041 Update the range of type Ada_Finalization_Child. Remove the following
10042 recoverable entities:
2c7f9cc0 10043
df3e68b1
HK
10044 RE_Attach_To_Final_List
10045 RE_Deep_Tag_Attach
10046 RE_Finalize_List
10047 RE_Finalize_One
10048 RE_Finalizable_Ptr_Ptr
10049 RE_Global_Final_List
10050 RE_Limited_Record_Controller
10051 RE_List_Controller
10052 RE_Move_Final_List
10053 RE_Record_Controller
10054 RE_Simple_List_Controller
2c7f9cc0 10055
df3e68b1 10056 Add the following recoverable entities:
2c7f9cc0 10057
df3e68b1
HK
10058 RE_Add_Offset_To_Address
10059 RE_Allocate
10060 RE_Base_Pool
10061 RE_Deallocate
10062 RE_Exception_Identity
10063 RE_Finalization_Collection
10064 RE_Finalization_Collection_Ptr
10065 RE_Needs_Finalization
10066 RE_Save_Library_Occurrence
10067 RE_Set_Finalize_Address_Ptr
10068 RE_Set_Storage_Pool_Ptr
10069 RE_Storage_Count
10070 * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of
10071 Name_uController.
10072 * sem_aux.adb (First_Discriminant): Remove mention of Name_uController.
10073 (First_Stored_Discriminant): Remove the mention of Name_uController.
10074 * sem_aux.ads: Comment reformatting.
10075 * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery
10076 to redecorate an already existing class-wide type.
10077 (Decorate_Tagged_Type): New parameter profile and associated comment.
10078 Create a "shadow class-wide type" for a shadow entity.
10079 * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting
10080 of the final chain along with the associated comment.
10081 * sem_ch3.adb (Access_Type_Declaration): Add new local variable
10082 Full_Desig and set it to the full view of the designated type.
10083 Initialize the finalization collection to empty.
10084 (Build_Derived_Record_Type): Alphabetize local variables. Code
10085 reformatting.
10086 (Collect_Fixed_Components): Remove the mention of Name_uController.
10087 (Create_Constrained_Components): Remove the mention of Name_uController.
10088 (Make_Class_Wide_Type): Add specialized code to redecorate an existing
10089 class-wide type of a shadow entity.
10090 (Process_Full_View): Update the machinery which marks type
10091 Limited_Controlled's entity as limited.
10092 * sem_ch4.adb (Analyze_One_Call): Code reformatting.
10093 * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization
10094 list, instead make a collection build-in-place formal.
10095 * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of
10096 a designated type in order to establish a match between the renaming
10097 and the renamed entity.
10098 (Find_Selected_Component): Add guard to prevent spurious exceptions
10099 from being raised on .NET/JVM.
10100 * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address
10101 to the list of primitive that need special processing. Update arrays
10102 C_Names and D_Names.
10103 (Replace_Types): Handle class-wide types.
10104 * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a
10105 different parameter profile, look at the first formal.
10106 * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and
10107 use clauses for Exp_Util.
10108 * sem_res.adb: Remove with and use clauses for Elists.
10109 (Propagate_Coextensions): Removed.
10110 (Resolve_Allocator): Do not propagate the list of coextensions from one
10111 allocator to another.
10112 * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable
10113 Deaccessed_T to Desig_Typ.
10114 (Enter_Name): Remove the mention of Name_uController.
10115 (Gather_Components): Remove the mention of Name_uController.
10116 (Incomplete_Or_Private_View): New routine.
10117 (Is_Coextension_Root): Removed.
10118 (Is_Fully_Initialized_Type): Remove the mention of Name_uController.
10119 * sem_util.ads (Incomplete_Or_Private_View): New routine.
10120 (Is_Coextension_Root): Removed.
10121 * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion.
10122 Controlled types are now derived from a null tagged record. Remove
10123 types Finalizable_Ptr, Finalizable and Empty_Root_Controlled.
10124 * sinfo.adb (Coextensions): Removed.
10125 (Set_Coextensions): Removed.
10126 * sinfo.ads: Remove Coextensions from the explanation of node fields
10127 and its uses in nodes.
10128 Update the field usage of N_Allocator.
10129 (Coextensions): Removed along with its pragma Inline.
10130 (Set_Coextensions): Removed along with its pragma Inline.
10131 * snames.ads-tmpl: Remove names
2c7f9cc0 10132
df3e68b1
HK
10133 Name_uClean
10134 Name_uController
10135 Name_uFinal_List
10136 Name_uLocal_Final_List
10137 Name_Finalization_Root
10138 Name_Next
10139 Name_Prev
2c7f9cc0 10140
df3e68b1 10141 Add names
2c7f9cc0 10142
df3e68b1
HK
10143 Name_uFinalizer
10144 Name_Finalize_Address
10145 * s-pooglo.adb (Allocate): Add overriding indicator.
10146 (Deallocate): Add overriding indicator.
10147 (Storage_Size): Add overriding indicator.
10148 * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather
10149 than Finalize_Global_List.
10150 (Null_Finalize_Global_List): Removed.
10151 (Save_Library_Occurrence): New routine.
10152 * s-soflin.ads: Remove variable Finalize_Global_List along with its
10153 initialization. Add variable Finalize_Library_Objects along with its
10154 pragma Export. Add variables Library_Exception and
10155 Library_Exception_Set along with their pragma Export.
10156 (Null_Finalize_Global_List): Removed.
10157 (Save_Library_Occurrence): New routine.
10158 * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects
10159 rather than Finalize_Global_List.
10160 * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field
10161 of the constructed node.
10162
2ee06322
RO
101632011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10164
10165 * link.c: Include "auto-host.h" before system headers.
10166
f77b022b
VC
101672011-08-03 Vincent Celier <celier@adacore.com>
10168
10169 * make.adb (Gnatmake): Add to table Library_Projs only library projects
10170 that are not extended. Do not check if a library project that is
10171 extended should be regenerated. Do not add to table Library_Paths the
10172 libraries that are in extended projects. Link only with libraries that
10173 are in libray projects that are not extended.
10174 * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library
10175 for a library project that is extended.
10176
0187b60e
AC
101772011-08-03 Gary Dismukes <dismukes@adacore.com>
10178
10179 * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip
10180 conforming subprogram renamings that appear to be completions if they
10181 are not fully conformant.
10182 Such renamings are homographs but not completions.
10183 * sem_type.adb (Disambiguate): Handle disambiguation of overloaded
10184 names in a subprogram renaming that appears in an instance.
10185
101862011-08-03 Ed Schonberg <schonberg@adacore.com>
10187
10188 * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but
10189 not immutably limited, build actual subtype from expression to provide
10190 proper bounds to caller.
10191
101922011-08-03 Gary Dismukes <dismukes@adacore.com>
10193
10194 * sem_ch8.adb: Minor comment correction.
10195
101962011-08-03 Thomas Quinot <quinot@adacore.com>
10197
10198 * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when
10199 returning a limited array, use an extended return statement.
10200
102012011-08-03 Vincent Celier <celier@adacore.com>
10202
10203 * make.adb (Initialize): If --subdirs= is used, but no project file is
10204 specified, attempt to create the specify subdir if it does not already
10205 exist and use it as the object directory as if -D had been specified.
10206
102072011-08-03 Arnaud Charlet <charlet@adacore.com>
10208
10209 * s-tpopsp-vms.adb: New file.
10210 * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS.
10211 * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS.
10212
e280f981
AC
102132011-08-03 Emmanuel Briot <briot@adacore.com>
10214
10215 * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new
10216 package.
10217
102182011-08-03 Yannick Moy <moy@adacore.com>
10219
10220 * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type
10221 * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA
10222 * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to
10223 detect that an array has static bounds.
10224
98c99a5a
AC
102252011-08-03 Thomas Quinot <quinot@adacore.com>
10226
10227 * exp_dist.adb: Minor reformatting.
10228
102292011-08-03 Arnaud Charlet <charlet@adacore.com>
10230
10231 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb
10232 (ATCB_Key): Removed, not always used.
10233
102342011-08-03 Emmanuel Briot <briot@adacore.com>
10235
10236 * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads,
10237 clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove
10238 most remaining global variables.
10239
686d0984
AC
102402011-08-03 Robert Dewar <dewar@adacore.com>
10241
10242 * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads,
10243 prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor
10244 reformatting.
10245
102462011-08-03 Javier Miranda <miranda@adacore.com>
10247
10248 * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals
10249 that must be passed by copy in VM targets.
10250
102512011-08-03 Emmanuel Briot <briot@adacore.com>
10252
10253 * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which
10254 duplicates a similar htable now in the project tree.
10255
102562011-08-03 Claire Dross <dross@adacore.com>
10257
10258 * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
10259 a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element,
10260 Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend,
10261 Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap,
10262 Splice, First, First_Element, Last, Last_Element, Next, Previous, Find,
10263 Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity,
10264 Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure
10265 update.
10266
102672011-08-03 Arnaud Charlet <charlet@adacore.com>
10268
10269 * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb
10270 (ATCB_Key): Removed, not always used.
10271 * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from
10272 s-taprop-posix.adb.
10273 * s-tpopsp-tls.adb: New file.
10274 * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on
10275 x86/x64/ia64/powerpc/sparc Linux.
10276
102772011-08-03 Arnaud Charlet <charlet@adacore.com>
10278
10279 * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True.
10280 * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports.
10281
102822011-08-03 Thomas Quinot <quinot@adacore.com>
10283
10284 * rtsfind.ads, exp_dist.adb, exp_dist.ads
10285 (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call):
10286 Fix type selection for mapping integer types to PolyORB types.
10287
102882011-08-03 Bob Duff <duff@adacore.com>
10289
10290 * sem_ch7.adb: Minor comment clarification.
10291
102922011-08-03 Bob Duff <duff@adacore.com>
10293
10294 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get
10295 an error analyzing a choice, skip further processing. Further
10296 processing could cause a crash or cascade errors.
10297
40ecf2f5
EB
102982011-08-03 Emmanuel Briot <briot@adacore.com>
10299
10300 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
10301 prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
10302 prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
10303 prj-env.ads (Shared_Project_Tree_Data): new type
10304 An aggregate project and its aggregated trees need to share the common
10305 data structures used for lists of strings, packages,... This makes the
10306 code simpler since otherwise we have to pass the root tree (also used
10307 for the configuration file data) in addition to the current project
10308 tree. This also avoids ambiguities as to which tree should be used.
10309 And finally this saves a bit of memory.
10310 (For_Every_Project_Imported): new parameter Tree.
10311 Since aggregated projects are using a different tree, we need to let
10312 the caller know which tree to use to manipulate the returned project.
10313
9fde638d
RD
103142011-08-03 Robert Dewar <dewar@adacore.com>
10315
10316 * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb,
10317 prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads,
10318 lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb,
10319 prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting.
10320
95eb8b69
AC
103212011-08-03 Javier Miranda <miranda@adacore.com>
10322
10323 * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads:
10324 Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util.
10325
103262011-08-03 Bob Duff <duff@adacore.com>
10327
10328 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on
10329 the Base_Type.
10330
103312011-08-03 Joel Brobecker <brobecker@adacore.com brobecker>
10332
10333 * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads,
10334 g-sehash.ads: Fix typo. Update header.
10335
103362011-08-03 Thomas Quinot <quinot@adacore.com>
10337
10338 * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place
10339 expansion.
10340
103412011-08-03 Gary Dismukes <dismukes@adacore.com>
10342
10343 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider
10344 prefixes of private types along with records, since the selector may be
10345 a discriminant.
10346 * sem_res.adb (Resolve_Selected_Component): Consider prefixes of
10347 private types along with records, since the selector may be a
10348 discriminant.
10349
92e77027
AC
103502011-08-03 Emmanuel Briot <briot@adacore.com>
10351
b2f7ebc1 10352 * prj-pp.adb (Pretty_Print): Remove trailing blank line.
92e77027
AC
10353
103542011-08-03 Javier Miranda <miranda@adacore.com>
10355
10356 * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of
10357 Tagged_Type_Expansion.
10358
103592011-08-03 Yannick Moy <moy@adacore.com>
10360
b2f7ebc1
GP
10361 * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK
10362 violation when the argument of concatenation is the name of a
10363 constant.
92e77027 10364
ab29a348
EB
103652011-08-03 Emmanuel Briot <briot@adacore.com>
10366
10367 * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads,
10368 prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms
10369 (Process_Declarative_Items): new parameter Child_Env.
10370
9466892f
AC
103712011-08-03 Yannick Moy <moy@adacore.com>
10372
589ef536
GP
10373 * alfa.ads: Update format of ALFA section in ALI file in order to
10374 add a mapping from bodies to specs when both are present.
10375 (ALFA_Scope_Record): Add components for spec file/scope.
10376 * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when
10377 present.
10378 * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been
10379 collected, fill in the spec information when relevant.
10380 * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when
9466892f
AC
10381 present.
10382
103832011-08-03 Eric Botcazou <ebotcazou@adacore.com>
10384
10385 * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing
10386 code unit to decide whether to add internally generated subprograms.
2c7f9cc0 10387
9466892f
AC
103882011-08-03 Javier Miranda <miranda@adacore.com>
10389
10390 * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram.
589ef536
GP
10391 * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must
10392 be handled by copy in VM targets.
9466892f
AC
10393
103942011-08-03 Emmanuel Briot <briot@adacore.com>
10395
589ef536 10396 * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share
9466892f
AC
10397 code with Makeutl.Get_Switches.
10398 * prj-tree.adb: Update comment.
10399
b5ea9143
AC
104002011-08-03 Thomas Quinot <quinot@adacore.com>
10401
10402 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote
10403 subprogram with a limited formal that does not support external
10404 streaming.
10405
104062011-08-03 Yannick Moy <moy@adacore.com>
10407
10408 * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of
10409 continuation line
10410 * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are
10411 not from current unit in two phases, because it is not possible to
10412 change the table while iterating over its content.
10413 * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity
10414
104152011-08-03 Sergey Rybin <rybin@adacore.com>
10416
10417 * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option
10418 * gnat_ugn.texi: Update description of complexity metrics (gnatmetric)
10419
668a19bc
ES
104202011-08-03 Ed Schonberg <schonberg@adacore.com>
10421
10422 * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate
10423 and the component type is composite, this is ambiguous for predefined
10424 concatenation, but if the node is not overloaded and the entity is a use
10425 -defined function its profile can be used to resolve that aggregate.
10426
170b2989
AC
104272011-08-03 Robert Dewar <dewar@adacore.com>
10428
10429 * exp_ch4.adb: Minor code cleanup.
10430
104312011-08-03 Thomas Quinot <quinot@adacore.com>
10432
10433 * exp_dist.adb: Do not generate distribution stubs if serious errors
10434 have been diagnosed.
10435
104362011-08-03 Ed Schonberg <schonberg@adacore.com>
10437
10438 * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of
10439 the first formal of a primitive operation, go to the base type to
10440 handle properly an access to a derived type with constrained
10441 discriminants.
10442 * sem_type.adb (Disambiguate): an immediately visible operator hides a
10443 user-defined function that is only use-visible.
170b2989 10444
e917aec2
RD
104452011-08-03 Robert Dewar <dewar@adacore.com>
10446
10447 * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb,
10448 make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb,
10449 fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb,
10450 prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads,
10451 sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb,
10452 prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb,
10453 prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads,
10454 alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting
10455
104562011-08-03 Robert Dewar <dewar@adacore.com>
10457
10458 * repinfo.adb (List_Mechanism): Add handling of
10459 Convention_Ada_Pass_By_XXX.
10460 * sem_mech.adb (Set_Mechanism): Ditto.
10461 * sem_prag.adb (Process_Convention): Add entries for
10462 Convention_Ada_Pass_By_XXX.
10463 * snames.adb-tmpl, snames.ads-tmpl: Ditto.
10464
49bfcf43
AC
104652011-08-03 Pascal Obry <obry@adacore.com>
10466
10467 * makeutl.adb: Minor reformatting.
10468
104692011-08-03 Vincent Celier <celier@adacore.com>
10470
10471 * fname-uf.adb
10472 (Get_File_Name) If the file cannot be found when there are no config
10473 pragmas file and May_Fail is True, return No_File instead of the file
10474 name, to be consistent.
10475
104762011-08-03 Pascal Obry <obry@adacore.com>
10477
10478 * adaint.c (__gnat_is_executable_file_attr): Avoid access
10479 to null pointer.
10480
104812011-08-03 Javier Miranda <miranda@adacore.com>
10482
10483 * sem_ch13.adb
10484 (Same_Representation): In VM targets the representation of arrays with
10485 aliased components differs from arrays with non-aliased components.
10486
34798441
EB
104872011-08-03 Emmanuel Briot <briot@adacore.com>
10488
10489 * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do
10490 not systematically lower case attribute indexes that contain no "."
10491 Fix definition of several Naming attributes, which take
10492 a unit name as index and therefore should be case insensitive.
10493 Minor refactoring (reduce length of variable names).
10494
104952011-08-03 Emmanuel Briot <briot@adacore.com>
10496
10497 * makeutl.adb, makeutl.ads (Get_Switches): new subprogram.
10498
4437a530
EB
104992011-08-03 Emmanuel Briot <briot@adacore.com>
10500
10501 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
10502 prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb,
10503 prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
10504 prj-tree.ads (Prj.Tree.Environment): new type.
10505
804fe3c4
EB
105062011-08-03 Emmanuel Briot <briot@adacore.com>
10507
10508 * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb,
10509 prj-tree.adb, prj-tree.ads (Environment): new type.
10510
c565bc66
AC
105112011-08-03 Emmanuel Briot <briot@adacore.com>
10512
10513 * prj-tree.ads: Remove unused variable.
10514
105152011-08-03 Yannick Moy <moy@adacore.com>
10516
10517 * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for
10518 issuing messages related to SPARK restriction violation.
10519
4ee646da
AC
105202011-08-03 Ed Schonberg <schonberg@adacore.com>
10521
10522 * sem_ch6.adb: guard against error nodes in return statements.
10523
105242011-08-03 Arnaud Charlet <charlet@adacore.com>
10525
10526 * errout.adb (Error_Msg_Internal): the main unit has not been read yet,
10527 a warning can only appear on a configuration file, so emit warning
10528 without further checks.
10529
105302011-08-03 Arnaud Charlet <charlet@adacore.com>
10531
10532 * s-interr.ads: add overriding keyword.
10533
105342011-08-03 Geert Bosch <bosch@adacore.com>
10535
10536 * exp_attr.adb: Fix minor typo.
10537
105382011-08-03 Ed Schonberg <schonberg@adacore.com>
10539
10540 * par-ch4.adb: improve error recovery.
10541
c0e538ad
AC
105422011-08-03 Emmanuel Briot <briot@adacore.com>
10543
10544 * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb,
10545 prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize
10546 to Errout_Handling.
10547
105482011-08-03 Emmanuel Briot <briot@adacore.com>
10549
10550 * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use
10551 "external" as an attribute name in aggregate projects.
10552
105532011-08-03 Jose Ruiz <ruiz@adacore.com>
10554
10555 * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU
10556 uses CPU numbers starting 1, while VxWorks uses CPU numbers starting
10557 from 0, so we need to adjust.
10558
105592011-08-03 Emmanuel Briot <briot@adacore.com>
10560
10561 * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb,
10562 prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type.
10563
c4d67e2d
AC
105642011-08-03 Yannick Moy <moy@adacore.com>
10565
10566 * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK
10567 restriction on overloaded entity if the entity is not an operator.
10568
105692011-08-03 Yannick Moy <moy@adacore.com>
10570
10571 * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb,
10572 restrict.ads: Rename remaining Check_Formal_Restriction* into
10573 Check_SPARK_Restriction*.
10574
105752011-08-03 Emmanuel Briot <briot@adacore.com>
10576
10577 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb,
10578 prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its
10579 qualifier.
10580 (Project_Empty): removed
10581 (Empty_Project): new parameter Qualifier
10582 This is used to have fields specific to aggregate projects, cleaner
10583 New field to store the list of aggregated projects.
10584 (Check_Aggregate_Project): removed
10585 (Process_Aggregated_Projects, Free): new subprograms.
10586
3f5a8fee
AC
105872011-08-03 Olivier Hainque <hainque@adacore.com>
10588
10589 * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well.
10590
105912011-08-03 Ed Schonberg <schonberg@adacore.com>
10592
10593 * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an
10594 explicit dereference of an unconstrained type, create a constrained
10595 subtype for it, as is done for function calls that return an
10596 unconstrained type.
10597
105982011-08-03 Thomas Quinot <quinot@adacore.com>
10599
10600 * g-pehage.adb (Finalize): Avoid possible double-free.
10601
106022011-08-03 Steve Baird <baird@adacore.com>
10603
10604 * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand
10605 Elab_Spec/Body attrs in CodePeer_Mode.
10606
106072011-08-03 Javier Miranda <miranda@adacore.com>
10608
10609 * exp_aggr.adb (Flatten): Convert to positional form aggregates whose
10610 low bound is not known at compile time but they have no others choice.
10611 Done because in this case the bounds can be obtained directly from the
10612 aggregate.
10613
106142011-08-03 Ed Falis <falis@adacore.com>
10615
10616 * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs
10617 on VxWorks SMP. Remove unusable constant ANY_CPU.
10618
a96ca600
EB
106192011-08-03 Emmanuel Briot <briot@adacore.com>
10620
10621 * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb,
10622 clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb,
10623 prj-env.ads (Prj.Env.Initialize_Default_Project_Path,
10624 Prj.Env.Initialize_Empty): new subprograms
10625 (Get_Env, Find_Project): remove parameter Target_Name.
10626
3e582869
AC
106272011-08-03 Gary Dismukes <dismukes@adacore.com>
10628
10629 * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal
10630 as a condition for the delayed call to Derived_Subprograms done for the
10631 case of the rewriting of a derived type that constrains the
10632 discriminants of its parent type.
10633 Avoids redundant subprogram derivations for private subtype derivations.
10634
106352011-08-03 Javier Miranda <miranda@adacore.com>
10636
10637 * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of
10638 Build_Record_Aggr_Code.
10639 (Build_Record_Aggr_Code): Add missing support to initialize hidden
10640 discriminants in extension aggregates.
10641
106422011-08-03 Emmanuel Briot <briot@adacore.com>
10643
10644 * prj-pp.adb (Print): also output project qualifiers, since in
10645 particular "aggregate" is mandatory in an aggregate project.
10646
106472011-08-03 Emmanuel Briot <briot@adacore.com>
10648
10649 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb:
10650 (Debug_Output): new function.
10651
56e94186
AC
106522011-08-03 Eric Botcazou <ebotcazou@adacore.com>
10653
10654 * gnat_ugn.texi: Document -Wstack-usage.
10655 * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes.
10656
106572011-08-03 Thomas Quinot <quinot@adacore.com>
10658
10659 * sem_prag.adb Issue an error (not a warning) when a C++ type does not
10660 have keyword LIMITED.
10661
106622011-08-03 Yannick Moy <moy@adacore.com>
10663
10664 * alfa.adb, alfa.ads, alfa_test.adb: New files.
10665 * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA)
10666 (Scan_ALI): do not issue a fatal error if parsing known lines after Xref
10667 section (does not happen in compiler, only if code directly calls
10668 Scan_ALI).
10669 * get_alfa.adb, get_alfa.ads: New files.
10670 * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if
10671 needed.
10672 * lib-xref-alfa.adb: New file.
10673 * lib-xref.adb, lib-xref.ads
10674 (Xref_Entry): redefine information needed in cross-references for ALFA.
10675 Push ALFA treatments in separated local package.
10676 (Enclosing_Subpragram_Or_Package): treat specially subprogram
10677 identifiers. Return entity of package body instead of spec. Return
10678 Empty for a scope with no location.
10679 (Generate_Reference): adapt to new components for ALFA information.
10680 Remove the need for D references on definitions.
10681 (Is_Local_Reference): moved to ALFA local package
10682 (Output_References): extract subfunction as Extract_Source_Name
10683 (Output_Local_References): remove procedure, replaced by filtering of
10684 cross-references in package ALFA and printing in Put_ALFA.
10685 (Write_Entity_Name): remove procedure
10686 * lib.adb, lib.ads (Extract_Source_Name): extract here function to
10687 print exact name of entity as it appears in source file
10688 (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA
10689 * put_alfa.adb, put_alfa.ads: New files.
10690 * xref_lib.adb (Search_Xref): protect read of cross-references against
10691 reading other sections of the ALI file, in gnatxref
10692 (Search): protect read of cross-references against reading other
10693 sections of the ALI file, in gnatfind.
10694 * gcc-interface/Make-lang.in: Update dependencies.
10695
106962011-08-03 Thomas Quinot <quinot@adacore.com>
10697
10698 * sem_ch3.adb: Minor reformatting.
10699
107002011-08-03 Jose Ruiz <ruiz@adacore.com>
10701
10702 * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of
10703 raising an exception.
10704
107052011-08-03 Ed Schonberg <schonberg@adacore.com>
10706
10707 * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer
10708 type, always use 1 as the lower bound or string, even if lower bound of
10709 context is not static, to handle properly null strings in a non-static
10710 context.
10711
107122011-08-03 Bob Duff <duff@adacore.com>
10713
10714 * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is
10715 always legal on the right-hand side of an assignment statement; there
10716 is always an applicable index constraint in this case. Therefore, the
10717 check for Pkind = N_Assignment_Statement is now unconditional -- it
10718 doesn't depend on whether Is_Constrained (Typ).
10719
4317e442
AC
107202011-08-03 Robert Dewar <dewar@adacore.com>
10721
10722 * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting.
10723
107242011-08-03 Ed Schonberg <schonberg@adacore.com>
10725
10726 * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference
10727 for an itype created within a generic unit.
10728
107292011-08-03 Eric Botcazou <ebotcazou@adacore.com>
10730
10731 * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline
10732 suppresses all inlining.
10733
53f29d4f
AC
107342011-08-03 Robert Dewar <dewar@adacore.com>
10735
10736 * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb,
10737 exp_aggr.adb: Minor reformatting.
10738
107392011-08-03 Thomas Quinot <quinot@adacore.com>
10740
10741 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of
10742 tagged assignment when discriminant checks are suppressed. This is
10743 useless and extremely costly in terms of static stack usage.
10744
107452011-08-03 Bob Duff <duff@adacore.com>
10746
10747 * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances
10748 of generics, because this leads to the wrong entity in the wrong scope,
10749 causing (e.g.) pragma Export_Procedure to get an error if the entity is
10750 an instance.
10751 (Process_Interface_Name): Follow Alias for instances of generics, to
10752 correct for the above change.
10753
107542011-08-03 Ed Schonberg <schonberg@adacore.com>
10755
10756 * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value
10757 is an integer literal it is always safe to replace the reference. In
10758 addition, if the reference appears in the generated code for an object
10759 declaration it is necessary to copy because otherwise the reference
10760 might be to the uninitilized value of the discriminant of the object
10761 itself.
10762
107632011-08-03 Pascal Obry <obry@adacore.com>
10764
10765 * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no
10766 ACL used, in this case we want to check for ending .exe, not .exe
10767 anywhere in the path.
10768
107692011-08-03 Sergey Rybin <rybin@adacore.com>
10770
10771 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
10772 the tree structure (semantic decoration of references to record
10773 discriminants).
10774
c0b11850
AC
107752011-08-03 Gary Dismukes <dismukes@adacore.com>
10776
10777 * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete
10778 choices of a named array aggregate, bail out when any choices are
10779 marked as Errors_Posted.
10780
107812011-08-03 Ed Schonberg <schonberg@adacore.com>
10782
10783 * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope
10784 in which entity is frozen, to handle properly loop variables in
10785 iterators.
10786
107872011-08-03 Ed Schonberg <schonberg@adacore.com>
10788
10789 * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the
10790 subtype is not static, compute the upper bound using attributes, to
10791 handle properly index types that are not integer types.
10792
107932011-08-03 Bob Duff <duff@adacore.com>
10794
10795 * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs.
10796 Update copyright notice.
10797
107982011-08-03 Ed Schonberg <schonberg@adacore.com>
10799
10800 * sem_ch3.adb (Build_Discriminant_Constraints): Only use
10801 Original_Discriminant if within an instance.
10802 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
10803
108042011-08-03 Thomas Quinot <quinot@adacore.com>
10805
10806 * einfo.ads: Minor reformatting.
10807
108082011-08-03 Ed Schonberg <schonberg@adacore.com>
10809
10810 * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a
10811 composite type with an unfrozen subcomponent, in the profile of a
10812 primitive operation.
10813
5c34e9cd
AC
108142011-08-03 Robert Dewar <dewar@adacore.com>
10815
10816 * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
10817
108182011-08-03 Ed Schonberg <schonberg@adacore.com>
10819
10820 * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an
10821 unconstrained type with discriminants is initialized with an aggregate,
10822 use the constrained subtype of the aggregate as the type of the object,
10823 because it is immutable, and this allows the back-end to generate no
10824 code for the object declaration.
10825
abcd9db2
AC
108262011-08-03 Robert Dewar <dewar@adacore.com>
10827
10828 * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where
10829 comparison operand is variable, and turns out to be zero or negative.
10830
108312011-08-03 Javier Miranda <miranda@adacore.com>
10832
10833 * exp_intr.adb
10834 (Expand_Dispatching_Constructor_Call): Disable expansion of
10835 code required for native targets. Done to avoid generating
10836 references to unavailable runtime entities in VM targets.
10837 * exp_ch3.adb
10838 (Expand_N_Object_Declaration): Add missing support to handle
10839 the explicit initialization of class-wide interface objects.
10840 Fix documentation.
10841
108422011-08-03 Matthew Heaney <heaney@adacore.com>
10843
7089ef0f
GP
10844 * a-cobove.adb (Merge): Move source onto target, instead of using
10845 Assign.
abcd9db2
AC
10846
108472011-08-03 Matthew Heaney <heaney@adacore.com>
10848
7089ef0f 10849 * a-cbdlli.adb (Splice): Move source items from first to last.
abcd9db2
AC
10850
108512011-08-03 Yannick Moy <moy@adacore.com>
10852
7089ef0f 10853 * sem_util.ads: Add comment.
abcd9db2
AC
10854
108552011-08-03 Javier Miranda <miranda@adacore.com>
10856
10857 * exp_aggr.adb
10858 (Expand_Record_Aggregate): In VM targets disable the expansion into
10859 assignments of aggregates whose type is not known at compile time.
10860
b474d6c3
ES
108612011-08-03 Ed Schonberg <schonberg@adacore.com>
10862
10863 * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for
10864 protected entries and task entries, to build the proper renaming
10865 declaration for entry formals, used in debugging.
10866 * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry
10867 parameters in the same way.
10868
0580d807
AC
108692011-08-02 Robert Dewar <dewar@adacore.com>
10870
10871 * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb,
10872 sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or
10873 code reorganization.
10874
108752011-08-02 Robert Dewar <dewar@adacore.com>
10876
10877 * debug.adb: Debug flag d.P to suppress length comparison optimization
10878 * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize
10879 comparison of Length by comparing First/Last instead.
10880
108812011-08-02 Matthew Heaney <heaney@adacore.com>
10882
10883 * a-cobove.ads: Code clean up.
10884
b191a125
AC
108852011-08-02 Vincent Celier <celier@adacore.com>
10886
10887 * adaint.c (file_names_case_sensitive_cache): New static int.
10888 (__gnat_get_file_names_case_sensitive): Cache the return value in
10889 file_names_case_sensitive_cache at the first invocation, to avoid
10890 multiple calls to getenv.
10891
108922011-08-02 Bob Duff <duff@adacore.com>
10893
10894 * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1.
10895
316a0661
AC
108962011-08-02 Yannick Moy <moy@adacore.com>
10897
10898 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads,
10899 sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb,
10900 sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to
10901 indicate that we are in a precondition or postcondition. This is used in
10902 Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to
10903 decide whether to flag the spec or body of the current subprogram as
10904 not in ALFA.
10905
109062011-08-02 Fabien Chouteau <chouteau@adacore.com>
10907
10908 * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package
10909 list.
10910 * a-extiin.ads: New file.
10911
109122011-08-02 Bob Duff <duff@adacore.com>
10913
10914 * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename
10915 now raises Name_Error instead of Use_Error in certain cases. The other
10916 parts of this AI were already implemented properly.
10917
f9adb9d4
AC
109182011-08-02 Vincent Celier <celier@adacore.com>
10919
10920 * link.c: Only import "auto-host.h" when building the gnattools.
10921
109222011-08-02 Yannick Moy <moy@adacore.com>
10923
10924 * sem_util.adb: Inter-unit inlining does not work for a subprogram
10925 which calls a local subprogram, so extract subprogram
10926 from Mark_Non_ALFA_Subprogram_Body.
10927
109282011-08-02 Javier Miranda <miranda@adacore.com>
10929
10930 * exp_ch9.adb
10931 (Extract_Dispatching_Call): If the type of the dispatching object is an
10932 access type then return an explicit dereference in the Object out-mode
10933 parameter.
10934
109352011-08-02 Gary Dismukes <dismukes@adacore.com>
10936
10937 * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range
10938 compatibility checks for all indexes of an array subtype, not just the
10939 first. Reset Has_Dynamic_Range_Check on the subtype before each
10940 potential check to ensure that Insert_Range_Checks will not elide any
10941 of the dynamic checks.
10942
109432011-08-02 Yannick Moy <moy@adacore.com>
10944
10945 * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize
10946 SPARK restriction at parsing time.
10947 * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE
10948 directive only if the SPARK restriction is set for this unit.
10949
83f33150
YM
109502011-08-02 Yannick Moy <moy@adacore.com>
10951
10952 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
10953 sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
10954 sem_ch11.adb: Protect call to Current_Subprogram which might be costly
10955 when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
10956 Mark_Non_ALFA_Subprogram_Body.
10957 Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
10958 inlined.
10959
7b98672f
YM
109602011-08-02 Yannick Moy <moy@adacore.com>
10961
10962 * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which
10963 might be costly.
10964
052e0603
AC
109652011-08-02 Robert Dewar <dewar@adacore.com>
10966
10967 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
10968 exp_ch3.adb: Minor reformatting.
10969
109702011-08-02 Emmanuel Briot <briot@adacore.com>
10971
10972 * adaint.c (__gnat_locate_exec_on_path): only returns executable
10973 files, not any regular file.
10974 (__gnat_locate_file_with_predicate): new subprogram.
10975
109762011-08-02 Yannick Moy <moy@adacore.com>
10977
10978 * sinfo.adb, sinfo.ads: Restrict the use of flags
10979 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
10980 nodes, plus N_Subtype_Declaration for the 2nd one.
10981
4fbad0ba
AC
109822011-08-02 Sergey Rybin <rybin@adacore.com>
10983
10984 * gnat_rm.texi: Ramification of pragma Eliminate documentation
10985 - fix bugs in the description of Source_Trace;
10986 - get rid of UNIT_NAME;
10987
052e0603
AC
109882011-08-02 Javier Miranda <miranda@adacore.com>
10989
10990 * exp_ch9.adb
10991 (Build_Dispatching_Requeue): Adding support for VM targets
10992 since we cannot directly reference the Tag entity.
10993 * exp_sel.adb (Build_K): Adding support for VM targets.
10994 (Build_S_Assignment): Adding support for VM targets.
10995 * exp_disp.adb
10996 (Default_Prim_Op_Position): In VM targets do not restrict availability
10997 of predefined interface primitives to compiling in Ada 2005 mode.
10998 (Is_Predefined_Interface_Primitive): In VM targets this service is not
10999 restricted to compiling in Ada 2005 mode.
11000 (Make_VM_TSD): Generate code that declares and initializes the OSD
11001 record. Needed to support dispatching calls through synchronized
11002 interfaces.
11003 * exp_ch3.adb
11004 (Make_Predefined_Primitive_Specs): Enable generation of predefined
11005 primitives associated with synchronized interfaces.
11006 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
11007 primitives associated with synchronized interfaces.
11008
110092011-08-02 Yannick Moy <moy@adacore.com>
11010
11011 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
11012 statements hidden in SPARK if preceded by the HIDE directive
11013 (Parse_Exception_Handlers): mark each exception handler in a sequence of
11014 exception handlers as hidden in SPARK if preceded by the HIDE directive
11015 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
11016 if starting with the HIDE directive
11017 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
11018 starting with the HIDE directive; mark the declarations in a private
11019 part as hidden in SPARK if the private part starts with the HIDE
11020 directive
11021 * restrict.adb, restrict.ads
11022 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
11023 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
11024 argument node belongs to a part which is hidden in SPARK
11025 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
11026 parts in SPARK; protect the possibly costly call to
11027 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
11028 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
11029 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
11030 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
11031 Tok_SPARK_Hide.
11032 (Scan): recognize special comment starting with '#' and followed by
11033 SPARK keyword "hide" as a HIDE directive.
11034
110352011-08-02 Yannick Moy <moy@adacore.com>
11036
11037 * types.ads, erroutc.ads: Minor reformatting.
11038
110392011-08-02 Vincent Celier <celier@adacore.com>
11040
11041 * link.c: Add response file support for cross platforms.
11042
110432011-08-02 Ed Schonberg <schonberg@adacore.com>
11044
11045 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
11046 in an association, set parent field of copy before partial analysis.
11047 * sem_res.adb (Resolve_Slice): create reference to itype only when
11048 expansion is enabled.
11049
110502011-08-02 Yannick Moy <moy@adacore.com>
11051
11052 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
11053 for new flag denoting which subprogram bodies are in ALFA
11054 * restrict.adb, sem_ch7.adb: Update comment
11055 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
11056 sem_ch9.adb, sem_res.adb: Add calls to
11057 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
11058 * sem_ch6.adb (Analyze_Function_Return): add calls to
11059 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
11060 middle of the body, and extended return.
11061 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
11062 False when missing return.
11063 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
11064 to True for subprograms whose spec is in ALFA. Remove later on the flag
11065 on the entity used for a subprogram body when there exists a separate
11066 declaration.
11067 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
11068 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
11069 False, otherwise do nothing.
11070
110712011-08-02 Robert Dewar <dewar@adacore.com>
11072
11073 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
11074
110752011-08-02 Yannick Moy <moy@adacore.com>
11076
11077 * sem_ch4.ads: minor formatting.
11078
110792011-08-02 Yannick Moy <moy@adacore.com>
11080
11081 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
11082 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
11083 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
11084 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
11085 opt.ads: cleanup of SPARK mode
11086
110872011-08-02 Yannick Moy <moy@adacore.com>
11088
11089 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
11090 types.
11091 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
11092 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
11093 * sem_ch3.adb
11094 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
11095 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
11096 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
11097 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
11098 types.
11099 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
11100 non-static range.
11101 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
11102 functions whose return type is not in ALFA.
11103 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
11104 specifications.
11105 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
11106 parameter's type is not in ALFA.
11107 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
11108 types are in ALFA.
11109
111102011-08-02 Ed Schonberg <schonberg@adacore.com>
11111
11112 * sem_ch6 (Analyze_Expression_Function): treat the function as
11113 Inline_Always, and introduce a subprogram declaration for it when it is
11114 not a completion.
11115 * inline.adb (Add_Inlined_Body): recognize bodies that come from
11116 expression functions, so that the back-end can determine whether they
11117 can in fact be inlined.
11118 * sem_util.adb (Is_Expression_Function): predicate to determine whether
11119 a function body comes from an expression function.
11120
111212011-08-02 Gary Dismukes <dismukes@adacore.com>
11122
11123 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
11124 null exclusions to test Can_Never_Be_Null on the anonymous access types
11125 of the formals rather than testing the formals themselves. Exclude this
11126 check in cases where the Old_Formal is marked as a controlling formal,
11127 to avoid issuing spurious errors for bodies completing dispatching
11128 operations (due to the flag not getting set on controlling access
11129 formals in body specs).
11130 (Find_Corresponding_Spec): When checking full and subtype conformance of
11131 subprogram bodies in instances, pass Designated and E in that order, for
11132 consistency with the expected order of the formals (New_Id followed by
11133 Old_Id).
11134
111352011-08-02 Robert Dewar <dewar@adacore.com>
11136
11137 * sem_ch8.adb: Minor reformatting.
11138
111392011-08-02 Ed Schonberg <schonberg@adacore.com>
11140
11141 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
11142 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
11143 primitive operations of class-wide actuals.
11144
111452011-08-02 Javier Miranda <miranda@adacore.com>
11146
11147 * exp_atag.ads, exp_atag.adb
11148 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
11149 since its value is implicitly passed in argument Typ.
11150 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
11151 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
11152 Build_Common_Dispatching_Select_Statements.
11153
111542011-08-02 Robert Dewar <dewar@adacore.com>
11155
11156 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
11157 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
11158 Minor reformatting.
11159
111602011-08-02 Robert Dewar <dewar@adacore.com>
11161
11162 * sem_res.adb: Minor reformatting.
11163 * sem_prag.adb: Minor reformatting.
11164
111652011-08-02 Javier Miranda <miranda@adacore.com>
11166
11167 * exp_atag.adb, exp_atags.ads
11168 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
11169 by the tagged type Entity. Required to use this routine in the VM
11170 targets since we do not have available the Tag entity in the VM
11171 platforms.
11172 * exp_ch6.adb
11173 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
11174 Ada.Tags has not been previously loaded.
11175 * exp_ch7.adb
11176 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
11177 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
11178 * sem_aux.adb
11179 (Enclosing_Dynamic_Scope): Add missing support to handle the full
11180 view of enclosing scopes. Required to handle enclosing scopes that
11181 are synchronized types whose full view is a task type.
11182 * exp_disp.adb
11183 (Build_VM_TSDs): Minor code improvement to avoid generating and
11184 analyzing lists with empty nodes.
11185 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
11186 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
11187 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
11188 (Make_Disp_Timed_Select_Body): Add support for VM targets.
11189 (Make_Select_Specific_Data_Table): Add support for VM targets.
11190 (Make_VM_TSD): Generate code to initialize the SSD structure of
11191 the TSD.
11192
111932011-08-02 Yannick Moy <moy@adacore.com>
11194
11195 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
11196 cross-references section in ALI.
11197 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
11198 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
11199 Sub).
11200 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
11201 subprogram or package entity of a node
11202 (Is_Local_Reference_Type): new function returns True for references
11203 selected in local cross-references.
11204 (Lt): function extracted from Lt in Output_References
11205 (Write_Entity_Name): function extracted from Output_References
11206 (Generate_Definition): generate reference with type 'D' for definition
11207 of objects (object declaration and parameter specification), with
11208 appropriate locations and units, for use in local cross-references.
11209 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
11210 references of type 'I' for initialization in object definition.
11211 (Output_References): move part of function Lt and procedure
11212 Write_Entity_Name outside of the body. Ignore references of types 'D'
11213 and 'I' introduced for local cross-references.
11214 (Output_Local_References): new procedure to output the local
11215 cross-references sections.
11216 (Lref_Entity_Status): new array defining whether an entity is a local
11217 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
11218 with 'I' type when initialization expression is present.
11219 * get_scos.adb, get_scos.ads: Correct comments and typos
11220
112212011-08-02 Javier Miranda <miranda@adacore.com>
11222
11223 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
11224 the JVM target.
11225 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
11226 the JVM target.
11227 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
11228 TSD support.
11229
112302011-08-02 Vincent Celier <celier@adacore.com>
11231
11232 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
11233 (No_Space_Img): New function
11234 (Find_Excluded_Sources): When reading from a file, record the file name
11235 and the line number for each excluded source.
11236 (Mark_Excluded_Sources): When reporting an error, if the excluded
11237 sources were read from a file, include file name and line number in
11238 the error message.
11239
112402011-08-02 Ed Schonberg <schonberg@adacore.com>
11241
11242 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
11243
112442011-08-02 Robert Dewar <dewar@adacore.com>
11245
11246 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
11247
112482011-08-02 Javier Miranda <miranda@adacore.com>
11249
11250 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
11251 generation of TSDs to the DOTNET compiler.
11252 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
11253 generation of TSDs to the DOTNET compiler.
11254
112552011-08-02 Javier Miranda <miranda@adacore.com>
11256
11257 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
11258 record of all the tagged types declared inside library level package
11259 declarations, library level package bodies or library level subprograms.
11260 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
11261 associated with a given tagged type.
11262 (Build_VM_TSDs): New subprogram.
11263 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
11264 compilation units that are subprograms.
11265 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
11266 compilation units that are package bodies.
11267 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
11268 units that are a package declaration or a package instantiation.
11269 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
11270 reorganization to improve the error generated by the frontend when the
11271 function Ada.Tags.Secondary_Tag is not available.
11272 * rtsfind.ads (RE_Register_TSD): New runtime entity.
11273 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
11274
112752011-08-02 Javier Miranda <miranda@adacore.com>
11276
11277 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
11278
112792011-08-02 Robert Dewar <dewar@adacore.com>
11280
11281 * s-imenne.ads: Minor reformatting.
11282
112832011-08-02 Robert Dewar <dewar@adacore.com>
11284
11285 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
11286 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
11287 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
11288
112892011-08-02 Robert Dewar <dewar@adacore.com>
11290
11291 * einfo.ads (Materialize_Entity): Document this is only for renamings
11292 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
11293 required debug information in the case where we transform the object
11294 declaration into a renaming declaration.
11295 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
11296 object
11297 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
11298 Materialize_Entity.
11299
113002011-08-02 Robert Dewar <dewar@adacore.com>
11301
11302 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
11303 Suppress_Init_Procs.
11304 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
11305 Suppress_Initialization/Initialization_Suppressed.
11306 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
11307 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
11308 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
11309 * sem_prag.adb: New processing for pragma Suppress_Initialization.
11310
113112011-08-02 Robert Dewar <dewar@adacore.com>
11312
11313 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
11314 Minor reformatting.
11315
113162011-08-02 Ed Schonberg <schonberg@adacore.com>
11317
11318 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
11319 only have inheritable classwide pre/postconditions.
11320
113212011-08-02 Javier Miranda <miranda@adacore.com>
11322
11323 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
11324 * rtsfind.ads (RE_Check_TSD): New runtime entity.
11325 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
11326 checks if the external tag of a type is the same as the external tag
11327 of some other declaration.
11328
113292011-08-02 Thomas Quinot <quinot@adacore.com>
11330
11331 * s-taskin.ads: Minor reformatting.
11332
113332011-08-02 Emmanuel Briot <briot@adacore.com>
11334
11335 * g-comlin.adb (Display_Help): swap the order in which it prints the
11336 short help and the general usage.
11337
113382011-08-02 Ed Schonberg <schonberg@adacore.com>
11339
11340 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
11341 the aspect declarations and attach them to the generic copy for
11342 subsequent analysis.
11343 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
11344 declarations of the generic tree to the new subprogram declarations.
11345 * sem_attr.adb (Check_Precondition_Postcondition): recognize
11346 conditions that apply to a subprogram instance.
11347
113482011-08-02 Robert Dewar <dewar@adacore.com>
11349
11350 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
11351
113522011-08-02 Ed Schonberg <schonberg@adacore.com>
11353
11354 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
11355 private type with a tagged full view is not derived in the immediate
11356 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
11357
113582011-08-02 Robert Dewar <dewar@adacore.com>
11359
11360 * exp_ch4.adb: Minor reformatting.
11361
113622011-08-02 Ed Schonberg <schonberg@adacore.com>
11363
11364 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
11365 Ada2012 iterator, the loop will be rewritten during expansion into a
11366 while loop with a cursor and an element declaration. Do not analyze the
11367 body in this case, because if the container is for indefinite types the
11368 actual subtype of the elements will only be determined when the cursor
11369 declaration is analyzed.
11370
113712011-08-02 Arnaud Charlet <charlet@adacore.com>
11372
11373 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
11374 size/alignment related attributes in CodePeer_Mode.
11375
113762011-08-02 Gary Dismukes <dismukes@adacore.com>
11377
11378 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
11379 Prepend_Element, since this can result in the operation getting the
11380 wrong slot in the full type's dispatch table if the full type has
11381 inherited operations. The incomplete type's operation will get added
11382 to the proper position in the full type's primitives
11383 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
11384 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
11385 dispatching operations, since there are cases where nonprimitive
11386 subprograms can get added to the list of incomplete dependents (such
11387 as subprograms in nested packages).
11388 * sem_ch6.adb (Process_Formals): First, remove test for being in a
11389 private part when determining whether to add a primitive with a
11390 parameter of a tagged incomplete type to the Private_Dependents list.
11391 Such primitives can also occur in the visible part, and should not have
11392 been excluded from being private dependents.
11393 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
11394 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
11395 list of a Taft-amendment incomplete type is a primitive before issuing
11396 an error that the full type must appear in the same unit. There are
11397 cases where nonprimitives can be in the list (such as subprograms in
11398 nested packages).
11399 * sem_disp.adb (Derives_From): Use correct condition for checking that
11400 a formal's type is derived from the type of the corresponding formal in
11401 the parent subprogram (the condition was completely wrong). Add
11402 checking that was missing for controlling result types being derived
11403 from the result type of the parent operation.
11404
114052011-08-02 Yannick Moy <moy@adacore.com>
11406
11407 * errout.adb (First_Node): minor renaming
11408 * restrict.adb (Check_Formal_Restriction): put restriction warning on
11409 first node.
11410
114112011-08-02 Yannick Moy <moy@adacore.com>
11412
11413 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
11414 before accessing operands.
11415 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
11416 decide whether an initialization expression respects SPARK rules, as
11417 the plain node is the expanded one. This allows for more valid warnings
11418 to be issued.
11419 * gnat_rm.texi: Minor update.
11420
114212011-08-02 Arnaud Charlet <charlet@adacore.com>
11422
11423 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
11424 previous change.
11425
114262011-08-02 Robert Dewar <dewar@adacore.com>
11427
11428 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
11429
114302011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11431
11432 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
11433 loop statements and the element renaming declaration with a block when
11434 the element type is controlled.
11435
114362011-08-02 Yannick Moy <moy@adacore.com>
11437
11438 * sinfo.ads: Minor formatting.
11439
114402011-08-02 Ed Schonberg <schonberg@adacore.com>
11441
11442 * sem_aggr.adb (Add_Association): if the association has a box and no
11443 expression, use the Sloc of the aggregate itself for the new
11444 association.
11445 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
11446 the Original_Node.
11447
114482011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11449
11450 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
11451 When a container is provided via a function call, generate a renaming
11452 of the function result. This avoids the creation of a transient scope
11453 and the premature finalization of the container.
11454 * exp_ch7.adb (Is_Container_Cursor): Removed.
11455 (Wrap_Transient_Declaration): Remove the supression of the finalization
11456 of the list controller when the declaration denotes a container cursor,
11457 it is not needed.
11458
114592011-08-02 Yannick Moy <moy@adacore.com>
11460
11461 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
11462 node is from source, instead of the original node being from source.
11463 * sem_aggr.adb
11464 (Resolve_Array_Aggregate): refine the check for a static expression, to
11465 recognize also static ranges
11466 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
11467 Array_Type_Declaration): postpone the test for the type being a subtype
11468 mark after the type has been resolved, so that component-selection and
11469 expanded-name are discriminated.
11470 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
11471 to distinguish the case of an iteration scheme, so that an error is
11472 issed on a non-static range in SPARK except in an iteration scheme.
11473 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
11474 In_Iter_Schm = True.
11475 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
11476 user-defined operators so that they are allowed in renaming
11477 * sem_ch8.adb
11478 (Find_Selected_Component): refine the check for prefixing of operators
11479 so that they are allowed in renaming. Move the checks for restrictions
11480 on selector name after analysis discriminated between
11481 component-selection and expanded-name.
11482 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
11483 concatenation argument of string type if it is static.
11484 * sem_util.adb, sem_util.ads
11485 (Check_Later_Vs_Basic_Declarations): add a new function
11486 Is_Later_Declarative_Item to decice which declarations are allowed as
11487 later items, in the two different modes Ada 83 and SPARK. In the SPARK
11488 mode, add that renamings are considered as later items.
11489 (Enclosing_Package): new function to return the enclosing package
11490 (Enter_Name): correct the rule for homonyms in SPARK
11491 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
11492 from source (result of expansion) to avoid issuing wrong warnings.
11493
114942011-08-02 Ed Schonberg <schonberg@adacore.com>
11495
11496 * errout.adb: On anything but an expression First_Node returns its
11497 argument.
11498
114992011-08-02 Pascal Obry <obry@adacore.com>
11500
11501 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
11502
115032011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11504
11505 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
11506 Set the associated loop as the related expression of internally
11507 generated cursors.
11508 * exp_ch7.adb (Is_Container_Cursor): New routine.
11509 (Wrap_Transient_Declaration): Supress the finalization of the list
11510 controller when the declaration denotes a container cursor.
11511
115122011-08-02 Yannick Moy <moy@adacore.com>
11513
11514 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
11515 command line now.
11516 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
11517 expression is a simple expression. This check cannot be performed in
11518 the semantics, so just drop it.
11519 (P_Index_Or_Discriminant_Constraint): move check that the index or
11520 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
11521 semantics. Other cases were previously checked in the semantics.
11522 * par-ch4.adb (P_Name): move checks that a selector name is not
11523 character literal or an operator symbol to Find_Selected_Component in
11524 the semantics
11525 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
11526 declarations are not placed after later declarations in a separate
11527 procedure in Sem_Util (possibly not the best choice?), to be used both
11528 during parsing, for Ada 83 mode, and during semantic analysis, for
11529 SPARK mode.
11530 * par-endh.adb (Check_End): move check that end label is not missing
11531 to Process_End_Label in the semantics
11532 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
11533 the special case for SPARK restriction
11534 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
11535 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
11536 parameter Force to issue the error message even on internal node (used
11537 for generated end label). Call Check_Restriction to check when an error
11538 must be issued. In SPARK mode, issue an error message even if the
11539 restriction is not set.
11540 (Check_Restriction): new procedure with an additional out parameter to
11541 inform the caller that a message has been issued
11542 * sem_aggr.adb: Minor modification of message
11543 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
11544 instead of issuing an error message directly
11545 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
11546 declarations are not placed after later declarations, by calling
11547 Check_Later_Vs_Basic_Declarations
11548 (Analyze_Subtype_Declaration): move here the check that an index or
11549 discriminant constraint must be a subtype mark. Change the check that
11550 a subtype of String must start at one so that it works on subtype marks.
11551 * sem_ch4.adb (Analyze_Call): move here the check that a named
11552 association cannot follow a positional one in a call
11553 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
11554 instead of issuing an error message directly
11555 * sem_ch8.adb (Find_Selected_Component): move here the check that a
11556 selector name is not a character literal or an operator symbol. Move
11557 here the check that the prefix of an expanded name cannot be a
11558 subprogram or a loop statement.
11559 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
11560 procedure called from parsing and semantics to check that basic
11561 declarations are not placed after later declarations
11562 (Process_End_Label): move here the check that end label is not missing
11563
115642011-08-02 Arnaud Charlet <charlet@adacore.com>
11565
11566 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
11567 representation clause in codepeer mode, since it confuses CodePeer and
11568 does not bring useful info.
11569
115702011-08-02 Ed Falis <falis@adacore.com>
11571
11572 * init.c: initialize fp hw on MILS.
11573
115742011-08-02 Ed Schonberg <schonberg@adacore.com>
11575
11576 * errout.adb (First_Node): for bodies, return the node itself (small
11577 optimization). For other nodes, do not check source_unit if the node
11578 comes from Standard.
11579
115802011-08-02 Robert Dewar <dewar@adacore.com>
11581
11582 * exp_ch3.adb: Minor comment additions.
11583 * sem_ch13.adb: Minor reformatting.
11584
115852011-08-02 Pascal Obry <obry@adacore.com>
11586
11587 * make.adb, makeutl.adb: Removes some superfluous directory separator.
11588
115892011-08-02 Robert Dewar <dewar@adacore.com>
11590
11591 * sem_attr.adb: Minor reformatting.
11592
115932011-08-02 Robert Dewar <dewar@adacore.com>
11594
11595 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
11596 (Has_Default_Component_Value): Removed
11597 * einfo.ads Comment updates
11598 (Has_Default_Aspect): Replaces Has_Default_Value
11599 (Has_Default_Component_Value): Removed
11600 * exp_ch13.adb
11601 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
11602 * exp_ch3.adb
11603 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
11604 (Get_Simple_Init_Val): Handle Default_Value aspect
11605 (Needs_Simple_Initialization): Handle Default_Value aspect
11606 * exp_ch3.ads: Needs_Simple_Initialization
11607 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
11608 * par-prag.adb (Pragma_Default[_Component]Value) Removed
11609 * sem_ch13.adb
11610 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
11611 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
11612 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
11613
116142011-08-02 Ed Schonberg <schonberg@adacore.com>
11615
11616 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
11617 package containing iteration primitives.
11618 exp_ch5.adb (Expand_Iterator_Loop): ditto.
11619
116202011-08-02 Ed Schonberg <schonberg@adacore.com>
11621
11622 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
11623 "of", pre-analyze expression in case it is a function call with
11624 finalization actions that must be placed ahead of the loop.
11625 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
11626 on an Ada2012 iterator, insert them ahead of the rewritten loop.
11627
116282011-08-02 Geert Bosch <bosch@adacore.com>
11629
11630 * cstand.adb (Create_Float_Types): Only consider C's long double for
11631 Long_Long_Float, in addition to double.
11632
116332011-08-02 Robert Dewar <dewar@adacore.com>
11634
11635 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
11636 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
11637 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
11638 Minor reformatting.
11639
116402011-08-02 Ed Schonberg <schonberg@adacore.com>
11641
11642 * sem_attr.adb: handle properly 'Result when it is a prefix of an
11643 indexed component.
11644
116452011-08-02 Javier Miranda <miranda@adacore.com>
11646
11647 * einfo.ads, einfo.adb
11648 (Original_Access_Type): Move this attribute to Node26 since there was
11649 an undocumented use of Node21 in E_Access_Subprogram_Type entities
11650 which causes conflicts and breaks the generation of the .NET compiler.
11651 (Interface_Name): Add missing documentation on JGNAT only uses of
11652 this attribute.
11653
116542011-08-02 Geert Bosch <bosch@adacore.com>
11655
11656 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
11657 (Find_Back_End_Float_Type): Likewise
11658 (Create_Back_End_Float_Types): Likewise
11659 (Create_Float_Types): Likewise
11660 (Register_Float_Type): Likewise
11661 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
11662 Nlist and split out type selection in new local Find_Base_Type function.
11663 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
11664 Nlist
11665 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
11666
116672011-08-02 Robert Dewar <dewar@adacore.com>
11668
11669 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
11670 alpha order).
11671 * opt.ads: Minor comment change.
11672 * sem_ch12.adb: Minor code reorganization.
11673
116742011-08-02 Gary Dismukes <dismukes@adacore.com>
11675
11676 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
11677 subtype's list of rep items to the list on the full subtype in the case
11678 where the lists are the same.
11679
116802011-08-02 Geert Bosch <bosch@adacore.com>
11681
11682 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
11683 using the one from System.Strings, which also deallocates all strings.
11684
116852011-08-02 Geert Bosch <bosch@adacore.com>
11686
11687 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
11688 function.
11689 * gcc-interface/Make-lang.in: Update dependencies.
11690
116912011-08-02 Olivier Hainque <hainque@adacore.com>
11692
11693 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
11694 end_locus.
11695
116962011-08-02 Javier Miranda <miranda@adacore.com>
11697
11698 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
11699 associated with anonymous access to subprograms.
11700
117012011-08-02 Geert Bosch <bosch@adacore.com>
11702
11703 * opt.ads
11704 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
11705 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
11706 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
11707 (Add_Symbol_Definition): Move to switch-c.adb
11708 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
11709 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
11710 (Add_Symbol_Definition): Move to switch-c.adb.
11711 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
11712 * sem_warn.adb
11713 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
11714 Move to warnsw.adb.
11715 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
11716 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
11717 Move to warnsw.adb.
11718 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
11719 (Add_Symbol_Definition): Moved from Prepcomp.
11720 * switch-c.ads: Update copyright notice. Use String_List instead of
11721 Argument_List, removing dependency on System.OS_Lib.
11722
117232011-08-02 Yannick Moy <moy@adacore.com>
11724
11725 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
11726 mode on initialization expression which does not respect SPARK
11727 restrictions.
11728 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
11729 if the tree referenced by its argument represents an initialization
11730 expression in SPARK, suitable for initializing an object in an object
11731 declaration.
11732
117332011-08-02 Javier Miranda <miranda@adacore.com>
11734
11735 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
11736 internally generated access to subprogram with its associated protected
11737 subprogram type.
11738 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
11739
117402011-08-02 Geert Bosch <bosch@adacore.com>
11741
11742 * cstand.adb (Register_Float_Type): Print information about type to
11743 register, if the Debug_Flag_Dot_B is set.
11744 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
11745 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
11746 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
11747 with a requested precision of more than Max_Digits digits and no more
11748 than Max_Base_Digits digits, if a range specification is present and the
11749 Predefined_Float_Types list has a suitable type to derive from.
11750 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
11751 case of type completion with pragma Import
11752 * sem_prag.adb
11753 (Process_Import_Predefined_Type): Processing to complete a type
11754 with pragma Import. Currently supports floating point types only.
11755 (Set_Convention_From_Pragma): Do nothing without underlying type.
11756 (Process_Convention): Guard against absence of underlying type,
11757 which may happen when importing incomplete types.
11758 (Process_Import_Or_Interface): Handle case of importing predefined
11759 types. Tweak error message.
11760
117612011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11762
11763 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
11764 functions to previous change. Reorganize code slightly.
11765
117662011-08-02 Geert Bosch <bosch@adacore.com>
11767
11768 * back_end.ads (Register_Type_Proc): New call back procedure type for
11769 allowing the back end to provide information about available types.
11770 (Register_Back_End_Types): New procedure to register back end types.
11771 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
11772 available types.
11773 * cstand.adb (Back_End_Float_Types): New list for floating point types
11774 supported by the back end.
11775 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
11776 (Copy_Float_Type): New procedure to make new copies of predefined types.
11777 (Register_Float_Type): New call back procedure to populate the BEFT list
11778 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
11779 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
11780 (Create_Float_Types): New procedure to create entities for floating
11781 point types predefined in Standard, and put these and any remaining
11782 BEFTs on the Predefined_Float_Types list.
11783 * stand.ads (Predefined_Float_Types): New list for predefined floating
11784 point types that do not have declarations in package Standard.
11785
117862011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11787
11788 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
11789 entity node for the unit containing the parameter.
11790 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
11791 (Add_Inlined_Subprogram): Likewise.
11792 * gcc-interface/Make-lang.in: Update dependencies.
11793
117942011-08-02 Thomas Quinot <quinot@adacore.com>
11795
11796 * s-stusta.adb (Print): Make sure Pos is always initialized to a
11797 suitable value.
11798
117992011-08-02 Geert Bosch <bosch@adacore.com>
11800
11801 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
11802
118032011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11804
11805 * sem_type.adb (Covers): Move trivial case to the top and reuse the
11806 computed value of Base_Type.
11807
118082011-08-02 Yannick Moy <moy@adacore.com>
11809
11810 * restrict.adb (Check_Restriction): issue an error for any use of
11811 class-wide, even if the No_Dispatch restriction is not set.
11812 * sem_aggr.adb: Correct typos in comments and messages in formal mode
11813 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
11814 when completing a private extension, the type named in the private part
11815 is not the same as that named in the visible part.
11816 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
11817 of an inherited primitive operations of a tagged type or type extension
11818 that returns the tagged type.
11819 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
11820 function which returns True for an implicit operation inherited by the
11821 derived type declaration for the argument type.
11822 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
11823 order.
11824
118252011-08-02 Ed Schonberg <schonberg@adacore.com>
11826
11827 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
11828 Process_Bounds, to perform analysis with expansion of a range or an
11829 expression that is the iteration scheme for a loop.
11830 (Analyze_Iterator_Specification): If domain of iteration is given by a
11831 function call with a controlled result, as is the case if call returns
11832 a predefined container, ensure that finalization actions are properly
11833 generated.
11834 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
11835
118362011-08-02 Javier Miranda <miranda@adacore.com>
11837
11838 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
11839 * gcc-interface/Make-lang.in: Update dependencies.
11840
118412011-08-02 Javier Miranda <miranda@adacore.com>
11842
11843 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
11844 determine if the analysis is performed using N or Original_Node (N).
11845 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
11846 functionality of routine Is_Variable avoids code duplication.
11847 * checks.adb (Determine_Range): Handle temporaries generated by
11848 Remove_Side_Effects.
11849
118502011-08-02 Javier Miranda <miranda@adacore.com>
11851
11852 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
11853 expansion of the condition. Required since the previous analysis was
11854 done with expansion disabled (see Resolve_Quantified_Expression) and
11855 hence checks were not inserted and record comparisons have not been
11856 expanded.
11857
118582011-08-02 Ed Falis <falis@adacore.com>
11859
11860 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
11861 Update header.
11862
118632011-08-02 Bob Duff <duff@adacore.com>
11864
11865 * opt.ads: Minor comment fix.
11866
118672011-08-02 Bob Duff <duff@adacore.com>
11868
11869 * sem_ch12.adb (Analyze_Package_Instantiation,
11870 Analyze_Subprogram_Instantiation): Turn off style checking while
11871 analyzing an instance. Whatever style checks that apply to the generic
11872 unit should apply, so it makes no sense to apply them in an instance.
11873 This was causing trouble when compiling an instance of a runtime
11874 unit that violates the -gnatyO switch.
11875 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
11876 one of the two case statements, causing spurious errors.
11877
118782011-08-02 Robert Dewar <dewar@adacore.com>
11879
11880 * uname.adb: Minor reformatting.
11881 * gnatcmd.adb: Minor reformatting.
11882 * exp_attr.adb: Minor reformatting.
11883
118842011-08-02 Ed Schonberg <schonberg@adacore.com>
11885
11886 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
11887 No_Dispatching_Calls, do not look for the Assign primitive, because
11888 predefined primitives are not created in this case.
11889
118902011-08-02 Bob Duff <duff@adacore.com>
11891
11892 * stylesw.ads: Minor comment fixes.
11893
118942011-08-02 Robert Dewar <dewar@adacore.com>
11895
11896 * freeze.adb (Add_To_Result): New procedure.
11897
118982011-08-02 Jose Ruiz <ruiz@adacore.com>
11899
11900 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
11901 time, if the specific run-time routines for handling streams of strings
11902 are not available, use the default mechanism.
11903
119042011-08-02 Arnaud Charlet <charlet@adacore.com>
11905
11906 * s-regpat.ads: Fix typo.
11907
119082011-08-02 Vincent Celier <celier@adacore.com>
11909
11910 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
11911 not null, call it to create the in memory config project file without
11912 parsing an existing default config project file.
11913
119142011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11915
11916 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
11917
119182011-08-02 Ed Schonberg <schonberg@adacore.com>
11919
11920 * sem_elim.adb: an abstract subprogram does not need an eliminate
11921 pragma for its descendant to be eliminable.
11922
119232011-08-02 Ed Falis <falis@adacore.com>
11924
11925 * init.c: revert to handling before previous checkin for VxWorks
11926 * s-intman-vxworks.adb: delete unnecessary declarations related to
11927 using Ada interrupt facilities for handling signals.
11928 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
11929 * s-intman-vxworks.ads: Import __gnat_install_handler as
11930 Initialize_Interrupts.
11931 * s-taprop-vxworks.adb: Delete Signal_Mask.
11932 (Abort_Handler): change construction of mask to unblock exception
11933 signals.
11934
119352011-08-02 Jerome Guitton <guitton@adacore.com>
11936
11937 * a-except-2005.adb (Raise_From_Signal_Handler): Call
11938 Debug_Raise_Exception before propagation starts.
11939
119402011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11941
11942 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
11943 to Restriction_Check_Required.
11944 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
11945 * sem_res.adb (Resolve_Call): Likewise.
11946 * sem_attr.adb (Check_Stream_Attribute): Likewise.
11947
119482011-08-02 Bob Duff <duff@adacore.com>
11949
11950 * stylesw.ads: Update comment.
11951 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
11952 * errout.ads: Remove obsolete comment.
11953
119542011-08-02 Javier Miranda <miranda@adacore.com>
11955
11956 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
11957 (Set_Is_Safe_To_Reevaluate): new procedure.
11958 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
11959 assignment is allowed on safe-to-reevaluate variables.
11960 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
11961 temporary created to remove side effects in expressions that use
11962 the secondary stack as safe-to-reevaluate.
11963 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
11964 variables that are not true constants.
11965
119662011-08-02 Robert Dewar <dewar@adacore.com>
11967
11968 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
11969 sem_res.adb, sem_ch6.adb: Minor reformatting.
11970
119712011-08-02 Jerome Guitton <guitton@adacore.com>
11972
11973 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
11974
119752011-08-02 Ed Schonberg <schonberg@adacore.com>
11976
11977 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
11978 not set Overridden_Operation if subprogram is an initialization
11979 procedure.
11980
119812011-08-02 Yannick Moy <moy@adacore.com>
11982
11983 * par-ch6.adb: Correct obsolete name in comments
11984 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
11985 which takes two message arguments (existing function takes one), with
11986 second message used for continuation.
11987 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
11988 block statements that originate from a source block statement, not
11989 generated block statements
11990 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
11991 symmetry with procedure case
11992 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
11993 function to issue an error in formal mode if a package specification
11994 contains more than one tagged type or type extension.
11995 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
11996 parameters matching formals of tagged types are objects (or ancestor
11997 type conversions of objects), not general expressions. Issue an error
11998 on view conversions that are not involving ancestor conversion of an
11999 extended type.
12000 (Resolve_Type_Conversion): in formal mode, issue an error on the
12001 operand of an ancestor type conversion which is not an object
12002 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
12003 procedure so that it works also for actuals of function calls
12004 (Is_Actual_Tagged_Parameter): new function which determines if its
12005 argument is an actual parameter of a formal of tagged type in a
12006 subprogram call
12007 (Is_SPARK_Object_Reference): new function which determines if the tree
12008 referenced by its argument represents an object in SPARK
12009
120102011-08-02 Robert Dewar <dewar@adacore.com>
12011
12012 * sem_ch3.adb: Minor reformatting
12013 Minor comment addition
12014 Minor error msg text change
12015
120162011-08-02 Javier Miranda <miranda@adacore.com>
12017
12018 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
12019 function. Used to be more precise when we generate a variable plus one
12020 assignment to remove side effects in the evaluation of the Bound
12021 expressions.
12022 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
12023 of the bound expression to force its re-analysis and thus expand the
12024 associated transient scope (if required). Code cleanup replacing the
12025 previous code that declared the constant entity by an invocation to
12026 routine Force_Evaluation which centralizes this work in the frontend.
12027
120282011-08-02 Robert Dewar <dewar@adacore.com>
12029
12030 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
12031 (Base_Type): Now uses improved Is_Base_Type function
12032 * einfo.ads (Base_Type): Inline this function
12033
120342011-08-02 Robert Dewar <dewar@adacore.com>
12035
12036 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
12037 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
12038
120392011-08-02 Arnaud Charlet <charlet@adacore.com>
12040
12041 * gcc-interface/Make-lang.in: Update dependencies.
12042 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
12043 targets.
12044
120452011-08-02 Yannick Moy <moy@adacore.com>
12046
12047 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
12048 non-simple expression used in delta constraint
12049 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
12050 index constraint which is not a subtype mark
12051 * par.adb: With and use Restrict
12052 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
12053 mode on component type which is not a subtype mark and default
12054 expression on component
12055 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
12056 of string which does not have a lower index bound equal to 1
12057 (Array_Type_Declaration): issue an error in formal mode on index or
12058 component type which is not a subtype mark, and on aliased keyword on
12059 component
12060 (Derived_Type_Declaration): issue an error in formal mode on interface,
12061 limited or abstract type
12062 (Record_Type_Declaration): issue an error in formal mode on interface
12063 (Record_Type_Definition): issue an error in formal mode on tagged types
12064 and type extensions not declared in the specification of a library unit
12065 package; on null non-tagged record; on variant part
12066
120672011-08-02 Vincent Celier <celier@adacore.com>
12068
12069 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
12070 not declared for qualified library project when Library_Name is not
12071 declared, but Library_Dir is.
12072
120732011-08-02 Robert Dewar <dewar@adacore.com>
12074
12075 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
12076 pragmas (affects aspects [Component_]Default_Value
12077 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
12078 component type for the resolution
12079
120802011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12081
12082 * einfo.adb (Base_Type): Tune implementation for speed.
12083
120842011-08-02 Robert Dewar <dewar@adacore.com>
12085
12086 * freeze.adb: Minor reformatting.
12087
120882011-08-02 Thomas Quinot <quinot@adacore.com>
12089
12090 * scos.ads: Update comments.
12091
120922011-08-02 Ed Schonberg <schonberg@adacore.com>
12093
12094 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
12095 base type, because the parent may be a subtype of a private type whose
12096 convention is established in a private part.
12097
120982011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12099
12100 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
12101 statement in a block when the expansion of the return expression has
12102 created a finalization chain.
12103 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
12104 with the parent node.
12105 Add N_Extended_Return_Statement to handle the case where a transient
12106 object declaration appears in the Return_Object_Declarations list of
12107 an extended return statement.
12108
121092011-08-02 Matthew Gingell <gingell@adacore.com>
12110
12111 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
12112 unused parameter 'name'.
12113
121142011-08-02 Ed Schonberg <schonberg@adacore.com>
12115
12116 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
12117 inherited operation, check whether its alias, which is the source
12118 operastion that it renames, has been marked eliminated.
12119
121202011-08-02 Javier Miranda <miranda@adacore.com>
12121
12122 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
12123 in-mode parameter whose type is an access type since it can be used to
12124 modify its designated object. Enforce code that handles as safe an
12125 access type that is not access-to-constant but it is the result of a
12126 previous removal of side-effects.
12127 (Remove_Side_Effects): Minor code reorganization of cases which require
12128 no action. Done to incorporate documentation on new cases uncovered
12129 working in this ticket: no action needed if this routine was invoked
12130 too early and the nodes are not yet decorated.
12131 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
12132 to routine Remove_Side_Effects by calls to Force_Evaluation since they
12133 were issued with actuals that are implicitly provided by
12134 Force_Evaluation.
12135
121362011-08-02 Robert Dewar <dewar@adacore.com>
12137
12138 * sem_ch3.adb, sem_res.adb: Minor reformatting.
12139
121402011-08-02 Yannick Moy <moy@adacore.com>
12141
12142 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
12143 to issue an error in formal mode on attribute not supported in this mode
12144 (Analyze_Attribute): issue errors on standard attributes not supported
12145 in formal mode.
12146 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
12147 comment, and issue error in formal mode on modulus which is not a power
12148 of 2.
12149 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
12150 range.
12151 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
12152 subtype mark.
12153 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
12154 operator on modular type (except 'not').
12155
121562011-08-02 Robert Dewar <dewar@adacore.com>
12157
12158 * gnat_rm.texi: Minor reformatting.
12159
121602011-08-02 Arnaud Charlet <charlet@adacore.com>
12161
12162 * s-osinte-linux.ads: Minor comment update and reformatting.
12163 * i-cexten.ads: Make this unit pure, as for its parent.
12164 Will allow its usage in more contexts if needed.
12165
121662011-08-02 Robert Dewar <dewar@adacore.com>
12167
12168 * s-utf_32.ads: Minor comment fix.
12169
121702011-08-02 Ed Schonberg <schonberg@adacore.com>
12171
12172 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
12173 operation of a tagged synchronized type, handle the case where the
12174 controlling argument is overloaded.
12175
121762011-08-02 Yannick Moy <moy@adacore.com>
12177
12178 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
12179 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
12180 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
12181 SPARK mode and formal verification mode on processing SPARK restriction
12182 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
12183 requiring consistency checking.
12184
121852011-08-02 Robert Dewar <dewar@adacore.com>
12186
12187 * sem_res.adb: Minor reformatting.
12188
121892011-08-02 Robert Dewar <dewar@adacore.com>
12190
12191 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12192 a-cforse.ads: Remove unneeded with of Ada.Containers
12193 Remove commented out pragma Inline's
12194 Move specifications of new subprograms to the actual specs
12195
121962011-08-02 Yannick Moy <moy@adacore.com>
12197
12198 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12199 a-cforse.ads: Update comments.
12200
122012011-08-02 Ed Schonberg <schonberg@adacore.com>
12202
12203 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
12204
122052011-08-02 Robert Dewar <dewar@adacore.com>
12206
12207 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12208 a-cforse.ads, a-cofove.ads: Minor reformatting.
12209
122102011-08-02 Claire Dross <dross@adacore.com>
12211
12212 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
12213 a-cofove.ads: Add comments.
12214
122152011-08-02 Yannick Moy <moy@adacore.com>
12216
12217 * gnat_rm.texi: Document formal containers.
12218
122192011-08-02 Emmanuel Briot <briot@adacore.com>
12220
12221 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
12222 are empty sections.
12223
122242011-08-02 Robert Dewar <dewar@adacore.com>
12225
12226 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
12227 reformatting.
12228
122292011-08-02 Robert Dewar <dewar@adacore.com>
12230
12231 * aspects.adb: New aspects Default_Value and Default_Component_Value
12232 New format of Aspect_Names table checks for omitted entries
12233 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
12234 handling of boolean aspects for derived types.
12235 New aspects Default_Value and Default_Component_Value
12236 New format of Aspect_Names table checks for omitted entries
12237 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
12238 (Has_Default_Value): New flag
12239 (Has_Default_Component_Value): New flag
12240 (Has_Default_Value): New flag
12241 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
12242 table.
12243 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
12244 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
12245 Default_Value and Default_Component_Value
12246 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
12247 New aspects Default_Value and Default_Component_Value
12248 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
12249 * sprint.adb: Print N_Aspect_Specification node when called from gdb
12250
122512011-08-02 Vincent Celier <celier@adacore.com>
12252
12253 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
12254 inherit library kind.
12255
122562011-08-02 Ed Schonberg <schonberg@adacore.com>
12257
12258 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
12259 Minor reformatting.
12260
122612011-08-02 Robert Dewar <dewar@adacore.com>
12262
12263 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
12264
122652011-08-02 Yannick Moy <moy@adacore.com>
12266
12267 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
12268
122692011-08-02 Robert Dewar <dewar@adacore.com>
12270
12271 * impunit.adb: Add comment.
12272
122732011-08-02 Yannick Moy <moy@adacore.com>
12274
12275 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
12276 qualification of aggregates in formal mode
12277 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
12278 another aggregate
12279 (Resolve_Aggregate): complete the test that an aggregate is adequately
12280 qualified in formal mode
12281
122822011-08-02 Pascal Obry <obry@adacore.com>
12283
12284 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
12285 * mlib-prj.adb: Supress warning when compiling binder generated file.
12286 (Build_Library): Supress all warnings when compiling the binder
12287 generated file.
12288
122892011-08-02 Yannick Moy <moy@adacore.com>
12290
12291 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
12292 from here...
12293 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
12294 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
12295 Add with/use clauses to make Check_Formal_Restriction visible
12296
122972011-08-02 Ed Schonberg <schonberg@adacore.com>
12298
12299 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
12300 in-parameters when type of the generic formal is private in the generic
12301 spec and non-private in the body.
12302
123032011-08-02 Claire Dross <dross@adacore.com>
12304
12305 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
12306 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
12307 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
12308 * impunit.adb, Makefile.rtl: Take new files into account.
12309
123102011-08-02 Robert Dewar <dewar@adacore.com>
12311
12312 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
12313 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
12314
123152011-08-02 Yannick Moy <moy@adacore.com>
12316
12317 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
12318 formal mode
12319 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
12320 matching static array bounds, taking into account the special case of
12321 string literals
12322 * sem_ch3.adb: Typo in comment.
12323
123242011-08-02 Yannick Moy <moy@adacore.com>
12325
12326 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
12327 which issues an error in formal mode if its argument node is originally
12328 from source
12329 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
12330 has a discriminant specification so that it does not include the case
12331 of derived types
12332 (Derived_Type_Declaration): move here the test that a derived type has a
12333 discriminant specification
12334 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
12335 first element of a component association before accessing its choices
12336 (presence of component association is not enough)
12337 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
12338 declaration is a library item before accessing the next element in a
12339 list, as library items are not member of lists
12340 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
12341 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
12342 Check_Formal_Restriction whenever possible.
12343
123442011-08-02 Ed Schonberg <schonberg@adacore.com>
12345
12346 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
12347 reference when needed.
12348
123492011-08-02 Bob Duff <duff@adacore.com>
12350
12351 * gnat_ugn.texi: Fix typo.
12352
123532011-08-02 Vincent Celier <celier@adacore.com>
12354
12355 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
12356 archive file name. Do not use the full path name of archives for Open
12357 VMS.
12358
123592011-08-02 Robert Dewar <dewar@adacore.com>
12360
12361 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
12362 Analyze_Aspect_Specifications
12363 * sem_ch13.adb
12364 (Analyze_Aspect_Specifications): New handling for boolean aspects
12365 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
12366 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
12367 sequence for Analyze_Aspect_Specifications
12368 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
12369 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
12370
123712011-08-02 Robert Dewar <dewar@adacore.com>
12372
12373 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
12374 aspects, since these no longer exist.
12375
123762011-08-02 Robert Dewar <dewar@adacore.com>
12377
12378 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
12379 semicolon, do not try to see if there are aspects following it.
12380 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
12381 aspect spec.
12382
123832011-08-02 Robert Dewar <dewar@adacore.com>
12384
12385 * sem_ch8.adb, aspects.ads: Minor reformatting.
12386
123872011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12388
12389 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
12390 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
12391 extracted from...
12392 (Analyze_Aspect_Specifications): ...here. Call above procedure.
12393
123942011-08-02 Yannick Moy <moy@adacore.com>
12395
12396 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
12397 mode on subprogram declaration outside of package specification, unless
12398 it is followed by a pragma Import
12399 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
12400 Access_Type_Declaration): issue error in formal mode on access type
12401 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
12402 incomplete type
12403 (Analyze_Object_Declaration): issue error in formal mode on object
12404 declaration which does not respect SPARK restrictions
12405 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
12406 declaration which does not respect SPARK restrictions
12407 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
12408 error in formal mode on digits or delta constraint
12409 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
12410 decimal fixed point type
12411 (Derived_Type_Declaration): issue error in formal mode on derived type
12412 other than type extensions of tagged record types
12413 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
12414 with check on access definition
12415 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
12416 mode on protected definition.
12417 (Analyze_Task_Definition): issue error in formal mode on task definition
12418
124192011-08-02 Robert Dewar <dewar@adacore.com>
12420
12421 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
12422
124232011-08-02 Javier Miranda <miranda@adacore.com>
12424
12425 * sem_ch6.adb (Can_Override_Operator): New function.
12426 (Verify_Overriding_Indicator): Add missing code to check overriding
12427 indicator in operators. Fixes regression.
12428 (Check_Overriding_Indicator): Minor reformating after replacing the
12429 code that evaluates if the subprogram can override an operator by
12430 invocations to the above new function.
12431 * einfo.adb
12432 (Write_Field26_Name): Add missing code to ensure that, following
12433 the documentation in einfo.ads, this field is not shown as attribute
12434 "Static_Initialization" on non-dispatching functions.
12435
124362011-08-02 Jose Ruiz <ruiz@adacore.com>
12437
12438 * sem_res.adb (Resolve_Call): A call to
12439 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
12440 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
12441 i.e., when the second parameter is of type Time_Span.
12442
124432011-08-02 Vincent Celier <celier@adacore.com>
12444
12445 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
12446 with an archive instead of -L<library dir> -l<library name>.
12447
124482011-08-02 Ed Schonberg <schonberg@adacore.com>
12449
12450 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
12451 mark the base types In_Use in addition to making the operations
12452 use_visible.
12453
124542011-08-02 Ed Falis <falis@adacore.com>
12455
12456 * init.c: add and setup __gnat_signal_mask for the exception signals
12457 * s-inmaop-vxworks.adb: new file.
12458 * s-intman-vxworks.adb: remove unnecessary initializations and
12459 simplify remaining
12460 * s-intman-vxworks.ads: remove unnecessary variable
12461 * s-taprop-vxworks.adb: simplify signal initialization
12462
124632011-08-02 Robert Dewar <dewar@adacore.com>
12464
12465 * sem_ch8.adb: Minor code reorganization, comment updates.
12466
124672011-08-02 Robert Dewar <dewar@adacore.com>
12468
12469 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
12470 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
12471 here from Sem_Res.
12472 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
12473 (Matching_Static_Array_Bounds): Moved here from Sem_Res
12474
124752011-08-02 Ed Schonberg <schonberg@adacore.com>
12476
12477 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
12478 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
12479 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
12480 use_type_clauses, to handle more efficiently use_type and use_all_type
12481 constructs.
12482 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
12483 Ada2012 Use_All_Type clause.
12484 (Use_Class_Wide_Operations): new procedure.
12485
124862011-08-02 Robert Dewar <dewar@adacore.com>
12487
12488 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
12489 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
12490 expression to expression function.
12491
124922011-08-02 Ed Schonberg <schonberg@adacore.com>
12493
12494 * sem_ch4.adb: transform simple Ada2012 membership into equality only
12495 if types are compatible.
12496
124972011-08-02 Yannick Moy <moy@adacore.com>
12498
12499 * sem_res.adb (Matching_Static_Array_Bounds): new function which
12500 returns True if its argument array types have same dimension and same
12501 static bounds at each index.
12502 (Resolve_Actuals): issue an error in formal mode on actuals passed as
12503 OUT or IN OUT paramaters which are not view conversions in SPARK.
12504 (Resolve_Arithmetic_Op): issue an error in formal mode on
12505 multiplication or division with operands of fixed point types which are
12506 not qualified or explicitly converted.
12507 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
12508 Boolean or array type (except String) operands.
12509 (Resolve_Equality_Op): issue an error in formal mode on equality
12510 operators for array types other than String with non-matching static
12511 bounds.
12512 (Resolve_Logical_Op): issue an error in formal mode on logical operators
12513 for array types with non-matching static bounds. Factorize the code in
12514 Matching_Static_Array_Bounds.
12515 (Resolve_Qualified_Expression): issue an error in formal mode on
12516 qualified expressions for array types with non-matching static bounds.
12517 (Resolve_Type_Conversion): issue an error in formal mode on type
12518 conversion for array types with non-matching static bounds
12519
125202011-08-02 Robert Dewar <dewar@adacore.com>
12521
12522 * par-ch10.adb: Minor code reorganization (use Nkind_In).
12523
125242011-08-02 Ed Schonberg <schonberg@adacore.com>
12525
12526 * par-ch9.adb: save location of entry for proper error message.
12527
125282011-08-02 Javier Miranda <miranda@adacore.com>
12529
12530 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
12531 (Use_Full_View) which permits this routine to climb through the
12532 ancestors using the full-view of private parents.
12533 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
12534 Use_Full_View to true in calls to Is_Ancestor.
12535 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
12536 true in call to Is_Ancestor.
12537 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
12538 Use_Full_View to true in call to Is_Ancestor.
12539 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
12540 call to Is_Ancestor.
12541 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
12542 Use_Full_View to true in calls to Is_Ancestor.
12543 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
12544 Make_Select_Specific_Data_Table, Register_Primitive,
12545 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
12546 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
12547 to true in call to Is_Ancestor.
12548 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
12549 Use_Full_View to true in calls to Is_Ancestor.
12550 * exp_cg.adb
12551 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
12552 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
12553
125542011-08-02 Robert Dewar <dewar@adacore.com>
12555
12556 * gnat_rm.texi: Minor reformatting.
12557 * sem_prag.adb: Minor reformatting.
12558
125592011-08-02 Tristan Gingold <gingold@adacore.com>
12560
12561 * vms_data.ads: Add VMS qualifier for -gnateP.
12562
125632011-08-02 Robert Dewar <dewar@adacore.com>
12564
12565 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
12566 * par-ch7.adb (P_Package): Proper placement of aspects for package
12567 decl/instantiation.
12568 * par-endh.adb (Check_End): Ad Is_Sloc parameter
12569 (End_Statements): Add Is_Sloc parameterr
12570 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
12571 (Check_End): Ad Is_Sloc parameter
12572 (End_Statements): Add Is_Sloc parameterr
12573
125742011-08-02 Vincent Celier <celier@adacore.com>
12575
12576 * ug_words: Add VMS qualifier equivalent to -gnateP:
12577 /SYMBOL_PREPROCESSING.
12578
125792011-08-02 Jose Ruiz <ruiz@adacore.com>
12580
12581 * gnat-style.texi: For hexadecimal numeric literals the typical
12582 grouping of digits is 4 to represent 2 bytes.
12583 A procedure spec which is split into several lines is indented two
12584 characters.
12585
125862011-08-02 Yannick Moy <moy@adacore.com>
12587
12588 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
12589 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
12590 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
12591 properly qualified
12592 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
12593 choice in array aggregate
12594 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
12595 mark as ancestor
12596 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
12597 positional and named aggregate for record, or others in record
12598 aggregate, or multiple choice in record aggregate
12599 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
12600 array operands to logical operations AND, OR and XOR do not have the
12601 same static lower and higher bounds
12602 * sem_ch5.adb, sinfo.ads: Correct typos in comments
12603
126042011-08-01 Robert Dewar <dewar@adacore.com>
12605
12606 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
12607 Replaces Last_Source_Node_In_Sequence.
12608 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
12609 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
12610 parens and blank in string (this was inconsistently implemented).
12611 * errout.ads
12612 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
12613 blank in string (this was inconsistently implemented).
12614 * gnat1drv.adb
12615 (Set_Global_Switches): Set formal mode switches appropriately
12616 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
12617 * par-prag.adb
12618 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
12619 call Set_Error_Msg_Lang to set "spark" as language name.
12620 * par.adb: Remove unnecessary call to set formal language for errout
12621 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
12622 appropriately and call Set_Error_Msg_Lang to set "spark" as language
12623 name.
12624 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
12625 calls to it, moved after resolution so that types are known
12626 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
12627 result of concatenation is not of type String
12628 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
12629 concatenation is not properly restricted
12630 * gnat_rm.texi: Add doc on pragma Spark_95.
12631 * gcc-interface/Makefile.in: Remove obsolete target pairs for
12632 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
12633 * gcc-interface/Make-lang.in: Update dependencies.
12634
126352011-08-01 Javier Miranda <miranda@adacore.com>
12636
12637 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
12638 condition that detects if the overridden operation must replace an
12639 existing entity.
12640
126412011-08-01 Javier Miranda <miranda@adacore.com>
12642
12643 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
12644 code declarations inserted by Insert_Actions in each alternative of the
12645 N_Case_Expression node.
12646
126472011-08-01 Robert Dewar <dewar@adacore.com>
12648
12649 * sem_ch6.adb: Minor code reorganization.
12650 * sem_util.adb: Minor reformatting.
12651
126522011-08-01 Pascal Obry <obry@adacore.com>
12653
12654 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
12655 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
12656
126572011-08-01 Yannick Moy <moy@adacore.com>
12658
12659 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
12660 literal or operator symbol which is prefixed
12661 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
12662 mode on access attributes.
12663 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
12664 that concatenation operands are properly restricted in formal mode
12665 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
12666 Analyze_Concatenation_Operand. Issue an error in formal mode if the
12667 result of the concatenation has a type different from String.
12668 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
12669 Analyze_Quantified_Expression, Analyze_Slice,
12670 Analyze_Null): issue an error in formal mode on unsupported constructs
12671 * sem_ch5.adb
12672 (Analyze_Block_Statement): only issue error on source block statement
12673 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
12674 function which returns the last node in a list of nodes for which
12675 Comes_From_Source returns True, if any
12676 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
12677 Last_Source_Node_In_Sequence
12678 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
12679 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
12680 mode on unsupported constructs
12681 * sem_ch9.adb Do not return after issuing error in formal mode, as the
12682 rest of the actions may be needed later on since the error is marked as
12683 not serious.
12684 * sinfo.ads: Typos in comments.
12685
126862011-08-01 Pascal Obry <obry@adacore.com>
12687
12688 * projects.texi: Minor editing.
12689
126902011-08-01 Yannick Moy <moy@adacore.com>
12691
12692 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
12693 insertion character ~~
12694 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
12695 (Set_Error_Msg_Lang): new procedure which fixes the language for use
12696 with insertion character ~~
12697 (Set_Msg_Text): treat insertion character ~~
12698 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
12699 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
12700 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
12701 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
12702 errors related to the formal language restriction not serious
12703 (insertion character |).
12704 * par.adb (Par): set formal language for error messages if needed
12705 * sem_ch6.adb (Check_Missing_Return): take into account possible
12706 generated statements at the end of the function
12707 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
12708 enumeration value to define a new pragma SPARK_95
12709 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
12710 SPARK_Version): new type and variables to store the SPARK version
12711 (none by default).
12712 (SPARK_Mode): return True when SPARK_Version is set
12713 * par-prag.adb: Correct indentation
12714 (Prag): take Pragma_SPARK_95 into account
12715 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
12716 into account.
12717
127182011-08-01 Robert Dewar <dewar@adacore.com>
12719
12720 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
12721 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
12722 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
12723
127242011-08-01 Pascal Obry <obry@adacore.com>
12725
12726 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
12727 Target_Name to Get_Path call.
12728 (Parse_Single_Project): Likewise.
12729 (Post_Parse_Context_Clause): Likewise.
12730 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
12731 Call Initialise_Project_Path with the proper Target_Name.
12732 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
12733 search path.
12734 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
12735 with the proper Target_Name.
12736 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
12737 Part.Parse routine.
12738 (Parse_Project_And_Apply_Config): Likewise.
12739 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
12740 This is fine as this part of the code is supporting only native
12741 compilation.
12742 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
12743 is fine as this part of the code is supporting only native compilation.
12744
127452011-08-01 Yannick Moy <moy@adacore.com>
12746
12747 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
12748 of homonym, unless the homonym is one of the cases allowed in SPARK
12749 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
12750 package declaration occurring after a body.
12751
127522011-08-01 Robert Dewar <dewar@adacore.com>
12753
12754 * checks.adb, exp_ch4.adb: Minor reformatting.
12755
127562011-08-01 Javier Miranda <miranda@adacore.com>
12757
12758 * einfo.ads (Access_Disp_Table): Fix documentation.
12759 (Dispatch_Table_Wrappers): Fix documentation.
12760
127612011-08-01 Pascal Obry <obry@adacore.com>
12762
12763 * prj-env.adb, prj-env.ads: Minor reformatting.
12764
127652011-08-01 Yannick Moy <moy@adacore.com>
12766
12767 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
12768 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
12769 procedures out of these packages.
2c7f9cc0 12770 * errout.ads, errout.adb
052e0603
AC
12771 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
12772 procedures in of this package
12773 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
12774 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
12775 on misplaced later vs initial declarations, like in Ada 83
12776 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
12777 formal mode on attribute of private type whose full type declaration
12778 is not visible
12779 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
12780 package declaration inside a package specification
12781 (Analyze_Full_Type_Declaration): issue error in formal mode on
12782 controlled type or discriminant type
12783 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
12784 user-defined operator means that it should come from the source
12785 (New_Overloaded_Entity): issue error in formal mode on overloaded
12786 entity.
12787 * sem_ch6.ads, sem_ch13.ads: typos in comments.
12788
127892011-08-01 Thomas Quinot <quinot@adacore.com>
12790
12791 * atree.adb: Minor reformatting.
12792 * checks.adb: Minor reformatting.
12793
127942011-08-01 Vincent Celier <celier@adacore.com>
12795
12796 * s-parame-vms-ia64.ads: Fix typo in comment
12797 Minor reformatting
12798 * s-parame-vms-restrict.ads: Removed, unused.
12799
128002011-08-01 Javier Miranda <miranda@adacore.com>
12801
12802 * exp_ch3.adb
12803 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
12804 * sem_ch3.adb
12805 (Constrain_Index): Remove side effects in the evaluation of the bounds.
12806 * sem_ch3.ads, sem_ch3.adb
12807 (Is_Constant_Bound): New extended version of the subprogram that was
12808 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
12809 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
12810 * sem_aux.ads (Constant_Value): Fix typo in comment.
12811 * checks.adb (Generate_Index_Checks): New implementation which, for
12812 array objects with constant bounds, generates the runtime check
12813 referencing the bounds of the array type. For other cases this routine
12814 provides its previous behavior obtaining such values from the array
12815 object.
12816 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
12817 parent type.
12818 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
12819 we cannot have semantic interpretations of the new node.
12820
128212011-08-01 Ed Schonberg <schonberg@adacore.com>
12822
12823 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
12824 expressions.
12825
128262011-08-01 Arnaud Charlet <charlet@adacore.com>
12827
12828 * sem_ch8.adb: Minor code editing.
12829 * s-vxwext.adb: Remove trailing space.
12830 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
12831 consistency with other files.
12832
128332011-08-01 Thomas Quinot <quinot@adacore.com>
12834
12835 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
12836
128372011-08-01 Ed Schonberg <schonberg@adacore.com>
12838
12839 * par-ch10.adb: reject parameterized expressions as compilation unit.
12840 * sem_ch4.adb: handle properly conditional expression with overloaded
12841 then_clause and no else_clause.
12842
128432011-08-01 Tristan Gingold <gingold@adacore.com>
12844
12845 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
12846 like done by System.Aux_DEC.
12847 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
12848
128492011-08-01 Yannick Moy <moy@adacore.com>
12850
12851 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
12852 missing label at end of declaration (subprogram or package)
12853 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
12854 of positional and named parameter association
12855 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
12856 Error_Msg_SP which adds a prefix to the error message giving the name
12857 of the formal language analyzed
12858 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
12859 access result type in subprogram, unconstrained array as result type,.
12860 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
12861 procedure
12862 * sem_ch8.adb: Code clean up.
12863
128642011-08-01 Javier Miranda <miranda@adacore.com>
12865
12866 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
12867 * einfo.ads (Access_Disp_Table): Fix documentation.
12868 (Dispatch_Table_Wrappers): Fix documentation.
12869 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
12870 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
12871 to enforce the documentation of this attribute.
12872 (Set_Is_Interface): Cleanup the assertion.
12873 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
12874 the Underlying_Type entity before reading attribute Access_Disp_Table.
12875 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
12876 Locate the Underlying_Type before reading attribute Access_Disp_Table.
12877 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
12878 the Underlying_Type entity before reading attribute Access_Disp_Table.
12879 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
12880 Locate the Underlying_Type entity before reading attribute
12881 Access_Disp_Table.
12882
128832011-08-01 Ed Schonberg <schonberg@adacore.com>
12884
12885 * s-poosiz.ads: Additional overriding indicators.
12886
128872011-08-01 Yannick Moy <moy@adacore.com>
12888
12889 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
12890 formal mode.
12891 (Analyze_Iteration_Scheme): issue error in formal mode when loop
12892 parameter specification does not include a subtype mark.
12893 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
12894 formal mode on abstract subprogram.
12895 (Analyze_Subprogram_Specification): issue error in formal mode on
12896 user-defined operator.
12897 (Process_Formals): issue error in formal mode on access parameter and
12898 default expression.
12899 * sem_ch9.adb (Analyze_Abort_Statement,
12900 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
12901 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
12902 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
12903 Analyze_Requeue, Analyze_Selective_Accept,
12904 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
12905 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
12906 issue error in formal mode on user-defined raise statement.
12907
129082011-08-01 Thomas Quinot <quinot@adacore.com>
12909
12910 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
12911 declaration being hidden when overriding an implicit inherited
12912 subprogram.
12913 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
12914 (-gnats), do not complain about a source file that contains only a
12915 pragma No_Body.
12916
129172011-08-01 Ed Schonberg <schonberg@adacore.com>
12918
12919 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
12920 variable if already set.
12921
129222011-08-01 Arnaud Charlet <charlet@adacore.com>
12923
12924 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
12925 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
12926 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
12927 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
12928 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
12929 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
12930 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
12931 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
12932 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
12933 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
12934 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
12935 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
12936 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
12937 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
12938 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
12939 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
12940 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
12941 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
12942 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
12943 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
12944 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
12945 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
12946 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
12947 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
12948 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
12949 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
12950 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
12951 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
12952 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
12953 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
12954 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
12955 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
12956 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
12957 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
12958 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
12959 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
12960 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
12961 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
12962 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
12963 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
12964 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
12965 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
12966 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
12967 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
12968 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
12969 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
12970 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
12971 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
12972 s-osinte-mingw.ads: Update to GPLv3 run-time license.
12973 Use GNAT instead of GNARL.
12974
129752011-08-01 Bob Duff <duff@adacore.com>
12976
12977 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
12978 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
12979 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
12980 reformatting.
12981
129822011-08-01 Yannick Moy <moy@adacore.com>
12983
12984 * debug.adb (d.D) reverve flag for the SPARK mode
12985 (d.E) reverve flag for SPARK generation mode
12986 (d.F) reverve flag for Why generation mode
2c7f9cc0 12987 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
052e0603
AC
12988 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
12989 functions which return True when the corresponding modes are set
12990 (Formal_Language): return "spark" or "alfa" when in formal verification
12991 mode.
12992 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
12993 Error_Msg to prefix the error message with a tag giving the formal
12994 language
12995 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
12996 message with a tag giving the formal language
12997 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
12998 block statement
12999 (Analyze_Case_Statement): issue error in formal mode on case statement
13000 with a single "others" case alternative
13001 (Analyze_Exit_Statement): issue errors in formal mode on exit
13002 statements which do not respect SPARK restrictions
13003 (Analyze_Goto_Statement): issue error in formal mode on goto statement
13004 (Check_Unreachable_Code): always issue an error (not a warning) in
13005 formal mode on unreachable code (concerns both code after an infinite
13006 loop and after an unconditional jump, both not allowed in SPARK)
13007 * sem_ch6.adb (Analyze_Return_Statement): add call to
13008 Set_Return_Present for a procedure containing a return statement
13009 (already done for functions in Analyze_Function_Return)
13010 (Analyze_Function_Return): issue error in formal mode on extended
13011 return or if return is not last statement in function
13012 (Check_Missing_Return): issue error in formal mode if function does
13013 not end with return or if procedure contains a return
13014 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
13015 function to detect if there is an inner scope of its parameter S which
13016 is a loop.
13017
130182011-08-01 Thomas Quinot <quinot@adacore.com>
13019
13020 * sem_ch6.ads: Minor reformatting.
13021
130222011-08-01 Javier Miranda <miranda@adacore.com>
13023
13024 * sem_util.adb (Abstract_Interface_List): Complete condition when
13025 processing private type declarations to avoid reading unavailable
13026 attribute.
13027 (Is_Synchronized_Tagged_Type): Complete condition when processing
13028 private extension declaration nodes to avoid reading unavailable
13029 attribute.
13030
130312011-08-01 Thomas Quinot <quinot@adacore.com>
13032
13033 * sem_ch3.adb: Minor reformatting.
13034
130352011-08-01 Thomas Quinot <quinot@adacore.com>
13036
13037 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
13038 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
13039 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
13040 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
13041 for VMS, instead parametrize the common implementation with
13042 System.Parameters declarations.
13043
130442011-08-01 Eric Botcazou <ebotcazou@adacore.com>
13045
13046 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
13047
130482011-08-01 Tristan Gingold <gingold@adacore.com>
13049
13050 * seh_init.c: Fix SEH handler installation on win64.
13051
130522011-08-01 Ed Schonberg <schonberg@adacore.com>
13053
13054 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
13055 double analysis of an anonymous access to subprogram, because it can
13056 lead to improper sharing of profiles and a back-end crash.
13057
130582011-08-01 Robert Dewar <dewar@adacore.com>
13059
13060 * make.adb, sem_ch4.adb: Minor reformatting.
13061 * gcc-interface/Make-lang.in: Update dependencies.
13062 * sem_util.adb, exp_ch5.adb: Minor reformatting.
13063
130642011-08-01 Arnaud Charlet <charlet@adacore.com>
13065
13066 * gnat_rm.texi: Fix definition of Long_Integer.
13067
130682011-08-01 Ed Schonberg <schonberg@adacore.com>
13069
13070 * exp_aggr.adb: check limit size of static aggregate unconditionally,
13071 to prevent storage exhaustion.
13072 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
13073 finalized is a function body, insert the cleanup code before the final
13074 return statement, to prevent spurious warnings.
13075 * s-pooglo.ads: add overriding indicator.
13076
130772011-08-01 Ed Schonberg <schonberg@adacore.com>
13078
13079 * sem_ch4.adb (Operator_Check): improve error message when both a
13080 with_clause and a use_clause are needed to make operator usage legal.
13081 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
13082 determine whether a compilation unit is visible within an other,
13083 either through a with_clause in the current unit, or a with_clause in
13084 its library unit or one one of its parents.
13085
130862011-08-01 Ed Schonberg <schonberg@adacore.com>
13087
13088 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
13089 over an arbitrary expression of an array or container type.
13090 * lib-xref.adb: clarify comment.
13091
130922011-08-01 Bob Duff <duff@adacore.com>
13093
13094 * einfo.ads: Minor reformatting.
13095 * debug.adb: Minor comment improvement.
13096
130972011-08-01 Javier Miranda <miranda@adacore.com>
13098
13099 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
13100 consider hidden subprograms as valid candidates.
13101
131022011-08-01 Arnaud Charlet <charlet@adacore.com>
13103
13104 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
13105
131062011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
13107
13108 * gnat_ugn.texi: Fix typo.
13109
131102011-08-01 Robert Dewar <dewar@adacore.com>
13111
13112 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
13113 lib-xref.adb: Minor reformatting
13114
131152011-08-01 Gary Dismukes <dismukes@adacore.com>
13116
13117 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
13118 when to generate a call to Move_Final_List.
13119 (Has_Controlled_Parts): Remove this function.
13120
131212011-08-01 Geert Bosch <bosch@adacore.com>
13122
13123 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
13124 "," in choice list.
13125
131262011-08-01 Thomas Quinot <quinot@adacore.com>
13127
13128 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
13129 explicit raise of a predefined exception as Comes_From_Source if the
13130 original N_Raise_Statement comes from source.
13131
131322011-08-01 Robert Dewar <dewar@adacore.com>
13133
13134 * sinfo.ads: Add comment.
13135 * sem_ch6.adb: Minor reformatting.
13136
131372011-08-01 Robert Dewar <dewar@adacore.com>
13138
13139 * freeze.adb (Freeze_Entity): Refine check for bad component size
13140 clause to avoid rejecting confirming clause when atomic/aliased present.
13141
131422011-08-01 Ed Schonberg <schonberg@adacore.com>
13143
13144 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
13145 better determine whether an entity reference is a write.
13146 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
13147 subcomponent.
13148 * lib-xref.adb (Output_References): Do no suppress a read reference at
13149 the same location as an immediately preceeding modify-reference, to
13150 handle properly in-out actuals.
13151
131522011-08-01 Tristan Gingold <gingold@adacore.com>
13153
13154 * env.c (__gnat_setenv) [VMS]: Refine previous change.
13155
131562011-08-01 Quentin Ochem <ochem@adacore.com>
13157
13158 * i-cstrin.adb (New_String): Changed implementation, now uses only the
13159 heap to compute the result.
13160
131612011-08-01 Robert Dewar <dewar@adacore.com>
13162
13163 * atree.ads: Minor reformatting.
13164
131652011-08-01 Emmanuel Briot <briot@adacore.com>
13166
13167 * g-expect.adb (Get_Command_Output): Fix memory leak.
13168
131692011-08-01 Geert Bosch <bosch@adacore.com>
13170
13171 * cstand.adb (P_Float_Type): New procedure to print the definition of
13172 predefined fpt types.
13173 (P_Mixed_Name): New procedure to print a name using mixed case
13174 (Print_Standard): Use P_Float_Type for printing floating point types
13175 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
13176 precision IEEE float.
13177
131782011-08-01 Thomas Quinot <quinot@adacore.com>
13179
13180 * sem_ch3.adb: Minor reformatting.
13181
131822011-08-01 Ed Schonberg <schonberg@adacore.com>
13183
13184 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
13185 the completion of a generic function, insert the new body rather than
13186 rewriting the original.
13187
131882011-08-01 Yannick Moy <moy@adacore.com>
13189
13190 * sinfo.ads, errout.ads: Typos in comments.
13191
131922011-08-01 Robert Dewar <dewar@adacore.com>
13193
13194 * par-endh.adb: Minor reformatting.
13195
131962011-08-01 Robert Dewar <dewar@adacore.com>
13197
13198 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
13199 (Pre_Post_Aspects): New subtype.
13200 * par-ch12.adb (P_Generic): New syntax for aspects in packages
13201 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
13202 * par-ch7.adb (P_Package): Remove Decl parameter
13203 (P_Package): Handle new syntax for aspects (before IS)
13204 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
13205 new aspect syntax
13206 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
13207 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
13208 (P_Package): Remove Decl parameter
13209 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
13210 aspects
13211 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
13212 specs
13213 * sem_util.ads, sem_util.adb (Static_Boolean): New function
13214 * sinfo.ads: Document new syntax for aspects in packages etc.
13215 * sprint.adb: Handle new syntax of aspects before IS in package
13216
132172011-08-01 Thomas Quinot <quinot@adacore.com>
13218
13219 * atree.ads: Minor reformatting.
13220 * sem_prag.adb: Minor reformatting.
13221
132222011-08-01 Robert Dewar <dewar@adacore.com>
13223
13224 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
13225 case expr alternative.
13226
132272011-08-01 Ed Schonberg <schonberg@adacore.com>
13228
13229 * sem_ch12.adb: Fix typo.
13230
132312011-08-01 Geert Bosch <bosch@adacore.com>
13232
13233 * sem_prag.adb (Check_No_Link_Name): New procedure.
13234 (Process_Import_Or_Interface): Use Check_No_Link_Name.
13235 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
13236 instead of Standard_Long_Long_Float_Size global. Preparation for
13237 eventual removal of per type constants.
13238 * exp_util.ads (Get_Stream_Size): New function returning the stream
13239 size value of subtype E.
13240 * exp_util.adb (Get_Stream_Size): Implement new function.
13241 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
13242 function.
13243 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
13244 * einfo.adb:
13245 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
13246
132472011-08-01 Geert Bosch <bosch@adacore.com>
13248
13249 * cstand.adb: Fix comments.
13250 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
13251 count of arguments.
13252
132532011-08-01 Robert Dewar <dewar@adacore.com>
13254
13255 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
13256
132572011-08-01 Geert Bosch <bosch@adacore.com>
13258
13259 * atree.ads: Fix comment.
13260
132612011-08-01 Robert Dewar <dewar@adacore.com>
13262
13263 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
13264 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
13265 * par.adb: Add with for Namet.Sp.
13266 * par-tchk.adb: Minor reformatting.
13267
132682011-08-01 Vincent Celier <celier@adacore.com>
13269
13270 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
13271 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
13272 of the init procedure of a SAL.
13273 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
13274 New procedure.
13275
132762011-08-01 Thomas Quinot <quinot@adacore.com>
13277
13278 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
13279 reformatting.
13280
132812011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13282
13283 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
13284
132852011-08-01 Thomas Quinot <quinot@adacore.com>
13286
13287 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
13288 conformant with its spec (return True only for types that have
13289 an overriding Initialize primitive operation that prevents them from
13290 having preelaborable initialization).
13291 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
13292 initialization for controlled types in Ada 2005 or later mode.
13293
132942011-08-01 Robert Dewar <dewar@adacore.com>
13295
13296 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
13297 Postcondition.
13298 (Same_Aspect): New function.
13299 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
13300 Type_Invariant, Precondition, Postcondition.
13301 * snames.ads-tmpl: Add Name_Type_Invariant.
13302
133032011-08-01 Robert Dewar <dewar@adacore.com>
13304
13305 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
13306 here.
13307 (Freeze_All_Ent): Fix error in handling inherited aspects.
13308 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
13309 already analyzed, but don't skip entire processing of a declaration,
13310 that's wrong in some cases of declarations being rewritten.
13311 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
13312 Don't delay for integer, string literals
13313 Treat predicates in usual manner for delay, remove special case code,
13314 not needed.
13315 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
13316 (Build_Predicate_Function): Update saved expression in aspect
13317 (Build_Invariant_Procedure): Update saved expression in aspect
13318 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
13319 of replacement of discriminant references if the reference is simple.
13320
133212011-08-01 Robert Dewar <dewar@adacore.com>
13322
13323 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
13324 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
13325 Static_Predicate and Dynamic_Predicate.
13326 (Build_Predicate_Function): Add processing for Static_Predicate
13327 and Dynamic_Predicate.
13328 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
13329 (From_Static_Predicate): New flag
13330 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
13331
133322011-08-01 Robert Dewar <dewar@adacore.com>
13333
13334 * usage.adb: Documentation cleanup for Ada version modes in usage.
13335 * expander.adb: Minor reformatting.
13336
133372011-08-01 Robert Dewar <dewar@adacore.com>
13338
13339 * atree.ads: Minor comment fix.
13340 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
13341 a-witeio.ads, sem_prag.adb: Minor reformatting.
13342
133432011-08-01 Doug Rupp <rupp@adacore.com>
13344
13345 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
13346 pointers. Use descrip.h header file for convenience. Add some
13347 comments.
13348
133492011-08-01 Robert Dewar <dewar@adacore.com>
13350
13351 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
13352 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
13353 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
13354 New procedure.
13355 (Check_Aspect_At_End_Of_Declarations): New procedure
13356 (Analye_Aspect_Specification): Minor changes for above procedures
13357 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
13358 specification node as well.
13359
133602011-08-01 Pascal Obry <obry@adacore.com>
13361
13362 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
13363 Windows files. Use GetFilesAttributes() in this case to check for file
13364 existence instead of returning with an error code.
13365
133662011-08-01 Vincent Celier <celier@adacore.com>
13367
13368 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
13369 High is above Source length.
13370
133712011-08-01 Robert Dewar <dewar@adacore.com>
13372
13373 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
13374
133752011-08-01 Robert Dewar <dewar@adacore.com>
13376
13377 * aspects.ads (Boolean_Aspects): New subtype.
13378 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
13379 for derived types in cases where the parent type and derived type have
13380 aspects.
13381 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
13382 with aspects when parent type also has aspects.
13383 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
13384 boolean expression at this point).
13385 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
13386 accordance with final decision on the Ada 2012 feature.
13387 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
13388
133892011-08-01 Matthew Heaney <heaney@adacore.com>
13390
13391 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
13392
133932011-08-01 Pascal Obry <obry@adacore.com>
13394
13395 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
13396 Fix Replace_Slice when High is above current string size.
13397 (Replace_Slice): Fix DL computation when High is above current
13398 string length.
13399
134002011-08-01 Gary Dismukes <dismukes@adacore.com>
13401
13402 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
13403
134042011-08-01 Matthew Heaney <heaney@adacore.com>
13405
13406 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
13407 of node.
13408
134092011-08-01 Pascal Obry <obry@adacore.com>
13410
13411 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
13412 reformatting.
13413
134142011-08-01 Ed Schonberg <schonberg@adacore.com>
13415
13416 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
13417 access to protected subprograms in generic bodies.
13418 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
13419 protected type, indicate that the convention of the subprogram is
13420 Convention_Protected, because it may be used in subsequent declarations
13421 within the protected declaration.
13422
134232011-08-01 Vincent Celier <celier@adacore.com>
13424
13425 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
13426 and "final" procedures when the name of the library is "ada", to avoid
13427 duplicate symbols "adainit" and "adafinal" in executables.
13428
134292011-08-01 Ed Schonberg <schonberg@adacore.com>
13430
13431 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
13432 quantified expression that appears within a postcondition and uses the
13433 Ada2012 'Result attribute.
13434
134352011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13436
13437 * init.c (__gnat_error_handler): Cast reason to int.
13438 (__gnat_install_handler): Explain sa_sigaction use.
13439
134402011-07-24 Eric Botcazou <ebotcazou@adacore.com>
13441
13442 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
13443 subprogram has copy-in copy-out parameters, try to promote the mode of
13444 the return type if it is passed in registers.
13445
134462011-07-24 Eric Botcazou <ebotcazou@adacore.com>
13447
13448 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
13449 left operand as addressable.
13450
134512011-07-24 Eric Botcazou <ebotcazou@adacore.com>
13452
13453 * gcc-interface/gigi.h (build_function_stub): Remove.
13454 (build_return_expr): Likewise.
13455 (convert_vms_descriptor): Declare.
13456 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
13457 (build_function_stub): Move to...
13458 * gcc-interface/utils2.c (build_return_expr): Move to...
13459 * gcc-interface/trans.c (build_function_stub): ...here.
13460 (build_return_expr): ...here.
13461 (Subprogram_Body_to_gnu): Add local variable for language_function.
13462 Disconnect the parameter attributes cache, if any, once done with it.
13463 Call end_subprog_body only after setting the end_locus.
13464 Build the stub associated with the function, if any, at the very end.
13465 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
13466 variables and streamline control flow.
13467
134682011-07-23 Arnaud Charlet <charlet@adacore.com>
13469
13470 PR ada/49819
13471 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
13472 g-trasym-dwarf.adb.
13473
134742011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13475
13476 PR bootstrap/49794
13477 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
13478 Assign to act.sa_sigaction.
13479 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
13480 current->return_address to char * before arithmetic.
13481
134822011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13483
13484 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
13485 Correct argument types.
13486 Extract code from reason.
13487 (__gnat_install_handler): Assign to act.sa_sigaction.
13488
134892011-07-21 Eric Botcazou <ebotcazou@adacore.com>
13490
13491 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
13492 (GNAT1_OBJS): ...here.
13493
134942011-07-15 Eric Botcazou <ebotcazou@adacore.com>
13495
13496 PR ada/48711
13497 * g-socthi-mingw.adb (Fill): Fix formatting.
13498
13499 * gcc-interface/gigi.h: Move around comment.
13500
135012011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13502
13503 PR ada/46350
13504 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
13505
135062011-07-14 Florian Weimer <fw@deneb.enyo.de>
13507
13508 PR ada/48711
13509 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
13510
135112011-07-13 Eric Botcazou <ebotcazou@adacore.com>
13512
13513 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
13514 range comparison if Pmode is SImode.
13515
135162011-07-12 Laurent GUERBY <laurent@guerby.net>
13517 Eric Botcazou <ebotcazou@adacore.com>
13518
13519 * adadecode.c: Wrap up in extern "C" block.
13520 * adadecode.h: Likewise.
13521 * adaint.c: Likewise. Remove 'const' keyword.
13522 * adaint.h: Likewise.
13523 * argv.c: Likewise.
13524 * atree.h: Likewise.
13525 * cio.c: Likewise.
13526 * cstreams.c: Likewise.
13527 * env.c: Likewise.
13528 * exit.c: Likewise.
13529 * fe.h: Likewise.
13530 * final.c: Likewise.
13531 * init.c: Likewise.
13532 * initialize.c: Likewise.
13533 * link.c: Likewise.
13534 * namet.h: Likewise.
13535 * nlists.h: Likewise.
13536 * raise.c: Likewise.
13537 * raise.h: Likewise.
13538 * repinfo.h: Likewise.
13539 * seh_init.c: Likewise.
13540 * targext.c: Likewise.
13541 * tracebak.c: Likewise.
13542 * uintp.h: Likewise.
13543 * urealp.h: Likewise.
13544 * xeinfo.adb: Wrap up generated C code in extern "C" block.
13545 * xsinfo.adb: Likewise.
13546 * xsnamest.adb: Likewise.
13547 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
13548 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
13549 * gcc-interface/misc.c: Likewise.
13550 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
13551 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
13552 ada/targext.o here...
13553 (GNAT_ADA_OBJS): ...and not here.
13554 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
13555 (GNATBIND_OBJS): Reorder.
13556
135572011-07-07 Richard Henderson <rth@redhat.com>
13558
13559 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
13560 dwarf2out_frame_init.
13561
135622011-07-07 Eric Botcazou <ebotcazou@adacore.com>
13563
13564 * gcc-interface/misc.c (gnat_init): Tweak previous change.
13565
135662011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13567
13568 PR target/39150
13569 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
13570
135712011-07-06 Richard Guenther <rguenther@suse.de>
13572
13573 * gcc-interface/misc.c (gnat_init): Merge calls to
13574 build_common_tree_nodes and build_common_tree_nodes_2.
13575 Re-initialize boolean_false_node.
13576
135772011-07-02 Eric Botcazou <ebotcazou@adacore.com>
13578 Olivier Hainque <hainque@adacore.com>
13579 Nicolas Setton <setton@adacore.com>
13580
13581 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
13582 the type according to the ARTIFICIAL_P parameter.
13583 (create_type_decl): Likewise.
13584 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
13585
135862011-07-01 Eric Botcazou <ebotcazou@adacore.com>
13587
13588 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
13589 (gnatbind): Likewise.
13590
135912011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13592
13593 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
13594
135952011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13596
13597 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
13598 local variable throughout. Remove useless call to Base_Type.
13599 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
13600 Take it also into account for the volatileness of the field. Set the
13601 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
13602
136032011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13604
13605 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
13606 on a dereference built for a by-ref object if it has an address clause.
13607
136082011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13609
13610 * einfo.ads (Address_Taken): Document use for the second argument of
13611 Asm_Input and Asm_Output attributes.
13612 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
13613 argument is an entity name, then set Address_Taken on it.
13614 <Attribute_Asm_Output>: Likewise.
13615 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
13616 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
13617 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
13618 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
13619
136202011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
13621
13622 PR middle-end/46500
13623 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
13624
136252011-06-14 Joseph Myers <joseph@codesourcery.com>
13626
13627 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
13628 (ada/utils.o): Update dependencies.
13629 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
13630 ../../../libcpp/libcpp.a.
13631 * gcc-interface/utils.c: Include common/common-target.h.
13632 (process_attributes): Use targetm_common.have_named_sections.
13633
136342011-06-07 Richard Guenther <rguenther@suse.de>
13635
13636 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
13637 set_sizetype.
13638
136392011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13640
13641 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
13642 TREE_THIS_NOTRAP flag.
13643
136442011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13645
13646 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
13647 Fix thinko.
13648
136492011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13650
13651 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
13652 constants whose full view has discriminants specially.
13653
136542011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13655
13656 * gcc-interface/utils.c: Include diagnostic.h.
13657 (gnat_write_global_declarations): Output debug information for all
13658 global type declarations before finalizing the compilation unit.
13659 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
13660
136612011-05-25 Jakub Jelinek <jakub@redhat.com>
13662
13663 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
13664
136652011-05-25 Kai Tietz <ktietz@redhat.com>
13666
13667 * adaint.c (__gnat_to_canonical_file_list_next): Use array
13668 initialization instead of const/none-const pointer assignment.
13669
136702011-05-24 Joseph Myers <joseph@codesourcery.com>
13671
13672 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
13673 $(EXTRA_GNAT1_OBJS).
13674 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
13675 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
13676 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
13677 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
13678 libcommon-target.a instead of prefix.o.
13679
136802011-05-21 Joseph Myers <joseph@codesourcery.com>
13681
13682 PR ada/49097
13683 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
13684
136852011-05-20 Joseph Myers <joseph@codesourcery.com>
13686
13687 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
13688 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
13689 instead of version.o.
13690
2d0dd51a 136912011-05-18 Kai Tietz <ktietz@redhat.com>
052e0603
AC
13692
13693 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
13694 boolean_false_node instead of integer_zero_node.
13695 (convert_with_check): Likewise.
13696 * gcc-interface/decl.c (choices_to_gnu): Likewise.
13697
136982011-05-12 Eric Botcazou <ebotcazou@adacore.com>
13699
13700 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
13701 type of the parameter is an unconstrained array, convert the actual to
13702 the type of the formal in the In Out and Out cases as well.
13703
137042011-05-11 Nathan Froyd <froydnj@codesourcery.com>
13705
13706 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
13707 call build_function_type_array or build_varargs_function_type_array
13708 instead.
13709 (create_subprog_type): Don't call build_function_type; call
13710 build_function_type_vec instead.
13711
137122011-05-11 Nathan Froyd <froydnj@codesourcery.com>
13713
13714 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
13715 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
13716 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
13717
137182011-05-07 Eric Botcazou <ebotcazou@adacore.com>
13719
13720 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
13721
13722 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
13723 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
13724
137252011-05-05 Nathan Froyd <froydnj@codesourcery.com>
13726
13727 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
13728
137292011-05-05 Nathan Froyd <froydnj@codesourcery.com>
13730
13731 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
13732 instead of accessing TYPE_ARG_TYPES directly.
13733 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
13734
137352011-05-05 Eric Botcazou <ebotcazou@adacore.com>
13736
13737 PR ada/48844
13738 * gcc-interface/gigi.h (get_variant_part): Declare.
13739 * gcc-interface/decl.c (get_variant_part): Make global.
13740 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
13741 types have the same constant size, are record types and T1 has a
13742 variant part while T2 doesn't.
13743
137442011-05-05 Eric Botcazou <ebotcazou@adacore.com>
13745
13746 * gcc-interface/utils.c (begin_subprog_body): Do not call
13747 get_pending_sizes.
13748 (end_subprog_body): Likewise.
13749
137502011-05-04 Richard Guenther <rguenther@suse.de>
13751
13752 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
13753 int_const_binop.
13754 (pos_to_constructor): Likewise.
13755
137562011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 13757 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
13758
13759 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
13760 of build_function_type. Adjust calls to...
13761 (build_raise_check): ...this. Do not take a void_tree parameter.
13762 Call build_function_type_list instead of build_function_type.
13763 Fix head comment and swap couple of conditional blocks.
13764
137652011-04-30 Eric Botcazou <ebotcazou@adacore.com>
13766
13767 * gnatvsn.ads (Library_Version): Bump to 4.7.
13768 (Current_Year): Bump to 2011.
13769
137702011-04-29 Michael Matz <matz@suse.de>
13771
13772 * gcc-interface/misc.c (gnat_handle_option): Set
13773 warn_maybe_uninitialized.
13774
137752011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
13776
13777 * gnat_ugn.texi (Complexity Metrics Control): Update link to
13778 the Watson/McCabe paper.
13779
137802011-04-23 Jim Meyering <meyering@redhat.com>
13781
13782 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
13783
137842011-04-22 Eric Botcazou <ebotcazou@adacore.com>
13785
13786 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
13787 onto the new type.
13788
137892011-04-22 Eric Botcazou <ebotcazou@adacore.com>
13790
13791 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
13792 parameter.
13793 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
13794 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
13795 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
13796 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
13797 <all>: Do not set flags on the reused DECL node coming from an alias.
13798 Set DECL_IGNORED_P on the DECL node built for subprograms if they
13799 don't need debug info here...
13800 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
13801 (gigi): Adjust calls to create_subprog_decl.
13802 (build_raise_check): Likewise.
13803 (establish_gnat_vms_condition_handler): Likewise.
13804 (Compilation_Unit_to_gnu): Likewise.
13805 (gnat_to_gnu): Likewise.
13806
138072011-04-21 Eric Botcazou <ebotcazou@adacore.com>
13808
13809 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
13810 (NO_REORDER_ADAFLAGS): New variable.
13811 (EXTRA_GNATTOOLS): Always define.
13812 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
13813 Clean up and adjust list of files compiled with special options.
13814 * gcc-interface/Make-lang.in: Likewise.
13815 (ada/decl.o): Cosmetical change.
13816 (ada/misc.o): Remove dependency on $(PLUGIN_H).
13817
138182011-04-20 Jim Meyering <meyering@redhat.com>
13819
13820 * initialize.c (__gnat_initialize): Remove useless if-before-free.
13821
138222011-04-17 Eric Botcazou <ebotcazou@adacore.com>
13823
13824 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
13825 $(CFLAGS) on the link line.
13826
138272011-04-17 Eric Botcazou <ebotcazou@adacore.com>
13828
13829 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
13830 padded type built for the return type if it is unconstrained.
13831
138322011-04-14 Nathan Froyd <froydnj@codesourcery.com>
13833
13834 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
13835
138362011-04-12 Nathan Froyd <froydnj@codesourcery.com>
13837
13838 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
13839 before calling TREE_CHAIN.
13840 * gcc-interface/misc.c (gnat_init_ts): New function.
13841 (LANG_HOOKS_INIT_TS): Define.
13842
138432011-04-12 Martin Jambor <mjambor@suse.cz>
13844
13845 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
13846 instead of cgraph_node.
13847
138482011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13849
13850 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
13851 alignment on fields of the RETURN type built for the Copy-In Copy-Out
13852 mechanism.
13853
138542011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13855
13856 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
13857 of aggregate types that contain a placeholder.
13858
138592011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13860
13861 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
13862 TYPE_ARG_TYPES.
13863 (handle_type_generic_attribute): Likewise.
13864
138652011-04-04 Eric Botcazou <ebotcazou@adacore.com>
13866
13867 PR ada/47163
13868 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
13869
138702011-04-04 Kai Tietz <ktietz@redhat.com>
13871
13872 PR ada/47163
13873 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
13874 to flag value.
13875
138762011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13877
13878 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
13879 type case, do not strip a padding type around the array type.
13880
138812011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13882
13883 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
13884 types.
13885
138862011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13887
13888 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
13889 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
13890 code for -feliminate-unused-debug-types.
13891 (gnat_post_options): Likewise.
13892
138932011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13894
13895 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
13896 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
13897 distinct copy.
13898
138992011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13900
13901 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
13902 DECL_ARTIFICIAL flag on enumeration types.
13903
139042011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13905
13906 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
13907 fat pointer types artificial unconditionally.
13908 <E_Array_Subtype>: Attach the base array type as a parallel type if it
13909 isn't artificial.
13910
139112011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13912
13913 * gcc-interface/gigi.h (get_dummy_type): Declare.
13914 (build_dummy_unc_pointer_types): Likewise.
13915 (finish_fat_pointer_type): Likewise.
13916 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
13917 fat pointer type has been built, complete it in place.
13918 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
13919 and thin pointers. Remove useless variable.
13920 (finish_fat_pointer_type): Make global and move to...
13921 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
13922 (get_dummy_type): New function.
13923 (build_dummy_unc_pointer_types): Likewise.
13924 (gnat_pushdecl): Propage the name to the anonymous variants only.
13925 (update_pointer_to): Only adjust the pointer types in the unconstrained
13926 array case.
13927
139282011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13929
13930 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
13931 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
13932 if this is a Taft amendment type and the full declaration is available.
13933 * gcc-interface/trans.c (process_type): Likewise.
13934 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
13935 (process_freeze_entity): Likewise.
13936 * gcc-interface/utils.c (dummy_global): New static variable.
13937 (gnat_write_global_declarations): If there are types declared as used
13938 at the global level, insert them in the global hash table.
13939
139402011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13941
13942 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
13943 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
13944 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
13945 copy.
13946 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
13947 flag of the type accordingly.
13948 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
13949
139502011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13951
13952 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
13953 finalizing types when updating the pointers to the designated type.
13954 <all>: Finalize the deferred types even if we didn't defer processing
13955 of incomplete types in this invocation.
13956
139572011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
13958 Nicolas Setton <setton@adacore.com>
13959 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
13960
13961 * gcc-interface/misc.c (gnat_descriptive_type): New function.
13962 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
13963
139642011-03-28 Kai Tietz <ktietz@redhat.com>
13965
13966 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
13967 Windows targets.
13968 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
13969 * system-mingw.ads (System): Change ZCX_By_Default default to True.
13970
13971 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
13972
139732011-03-28 Tristan Gingold <gingold@adacore.com>
13974
13975 PR ada/44431
13976 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
13977 Use ada output of gnatbind.
13978 (ada/b_gnatb.adb): Ditto.
13979 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
13980 (ada.mostlyclean, ada.stage1)
13981 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
13982 (ada.stagefeedback): Adjust.
13983 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
13984 Use ada output of gnatbind.
13985 (b_gnatm.adb): Ditto.
13986 (b_gnatl.o, b_gnatm.o): New rules.
13987
139882011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13989
13990 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
13991 for the padded type built to support a specified size or alignment.
13992
139932011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13994
13995 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
13996 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
13997 unconditionally to the end of the unit when the designated type is
13998 limited_with'ed.
13999 <all>: Rename local variable. Attempt to un-defer types only and do it
14000 for limited_with'ed types as well.
14001 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
14002 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
14003 consistently and remove redundant call to finalize_from_with_types.
14004
140052011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14006
14007 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
14008 subprograms without a previous spec declared in the same unit.
14009 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
14010 subprograms at the end of the unit instead of at the beginning.
14011 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
14012 isn't public for the special handling of non-inline functions nested
14013 inside inline external functions.
14014
140152011-03-25 Jeff Law <law@redhat.com>
14016
14017 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
14018
140192011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14020
14021 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
14022 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
14023 to compute Set_Size_Depends_On_Discriminant.
14024 (Layout_Type): Call it on array types in back-end layout mode.
14025 * sem_util.adb (Requires_Transient_Scope): Return true for array
14026 types only if the size depends on the value of discriminants.
14027 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
14028 type if the RHS is a call to a function that returns an unconstrained
14029 type with default discriminant.
14030
140312011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14032
14033 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
14034 non-conversion to the nominal result type at the end.
14035
140362011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14037
14038 * gcc-interface/trans.c (create_temporary): New function taken from...
14039 (create_init_temporary): ...here. Call it.
14040 (call_to_gnu): Create the temporary for the return value early, if any.
14041 Create it for a function with copy-in/copy-out parameters if there is
14042 no target; in other cases of copy-in/copy-out, use another temporary.
14043 Push the new binding level lazily. Add and rename local variables.
14044
140452011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14046
14047 * gcc-interface/decl.c (validate_size): Improve comments and tweak
14048 error message.
14049 (set_rm_size): Likewise.
14050
140512011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14052
14053 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
14054 for the padded type built in order to support a specified alignment.
14055 Fix incorrect formatting.
14056
140572011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14058
14059 PR bootstrap/48216
14060 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
14061
140622011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14063
14064 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
14065 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
14066 to the end of the list. Adjust recursive call. Rename local variable.
14067 If REORDER is true, reorder components of the record type.
14068 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
14069 components_to_record and adjust the parameter list.
14070
140712011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14072
14073 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
14074 disabled, use the variable for bounds of loop iteration scheme.
14075
140762011-03-21 Kai Tietz <ktietz@redhat.com>
14077
14078 PR target/12171
14079 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
14080
140812011-03-17 Eric Botcazou <ebotcazou@adacore.com>
14082
14083 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
14084 out whether the expression is read-only. Short-circuit placeholder
14085 case and rename a couple of local variables.
14086
140872011-03-17 Eric Botcazou <ebotcazou@adacore.com>
14088
14089 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
14090 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
14091 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
14092 (convert): Deal with conversions from a smaller form type specially.
14093
140942011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14095
14096 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
14097 its argument, except for the special -I- switch.
14098
140992011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
14100
14101 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
14102 "Ada Issues".
14103
141042011-02-08 Eric Botcazou <ebotcazou@adacore.com>
14105
14106 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
14107
141082011-02-03 Eric Botcazou <ebotcazou@adacore.com>
14109
14110 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
14111 GNAT_FORMAL.
14112 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
14113 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
14114 instead of GNAT_FORMAL. Protect the expression against multiple uses.
14115 Do not generate the check directly, instead instantiate the template
14116 check present in the descriptor.
14117 (make_descriptor_field): Move around.
14118 (build_vms_descriptor32): Build a template check in the POINTER field.
14119 (build_vms_descriptor): Remove useless suffixes.
14120 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
14121
141222011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14123
14124 PR bootstrap/47467
14125 * targext.c: Include target files if IN_RTS is defined.
14126
141272011-01-26 Richard Guenther <rguenther@suse.de>
14128
14129 PR bootstrap/47467
14130 * targext.c: Include config.h.
14131 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
14132 dependency.
14133
141342011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 14135 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
14136
14137 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
14138
141392011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14140
14141 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
14142 end-of-case on the end label and its associated gotos, if any.
14143
141442011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14145
14146 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
14147 expressions of the parameter cache within the statement group of
14148 the CICO mechanism.
14149
141502011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 14151 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
14152
14153 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
14154 (set_end_locus_from_node): New function.
14155 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
14156 make and the function end_locus.
14157 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
14158 for the elaboration subprogram.
14159 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
14160 set the end_locus of the expression as well.
14161
141622011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14163
14164 PR ada/47131
14165 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
14166 variables that are referenced in exception handlers volatile.
14167
14168
14169\f
14170Copyright (C) 2011 Free Software Foundation, Inc.
14171
14172Copying and distribution of this file, with or without modification,
14173are permitted in any medium without royalty provided the copyright
14174notice and this notice are preserved.
14175
14176 * gnat_rm.texi: Ramification of pragma Eliminate documentation
14177 - fix bugs in the description of Source_Trace;
14178 - get rid of UNIT_NAME;
14179
4fbad0ba
AC
141802011-08-02 Javier Miranda <miranda@adacore.com>
14181
14182 * exp_ch9.adb
14183 (Build_Dispatching_Requeue): Adding support for VM targets
14184 since we cannot directly reference the Tag entity.
14185 * exp_sel.adb (Build_K): Adding support for VM targets.
14186 (Build_S_Assignment): Adding support for VM targets.
14187 * exp_disp.adb
14188 (Default_Prim_Op_Position): In VM targets do not restrict availability
14189 of predefined interface primitives to compiling in Ada 2005 mode.
14190 (Is_Predefined_Interface_Primitive): In VM targets this service is not
14191 restricted to compiling in Ada 2005 mode.
14192 (Make_VM_TSD): Generate code that declares and initializes the OSD
14193 record. Needed to support dispatching calls through synchronized
14194 interfaces.
14195 * exp_ch3.adb
14196 (Make_Predefined_Primitive_Specs): Enable generation of predefined
14197 primitives associated with synchronized interfaces.
14198 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
14199 primitives associated with synchronized interfaces.
14200
142012011-08-02 Yannick Moy <moy@adacore.com>
14202
14203 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
14204 statements hidden in SPARK if preceded by the HIDE directive
14205 (Parse_Exception_Handlers): mark each exception handler in a sequence of
14206 exception handlers as hidden in SPARK if preceded by the HIDE directive
14207 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
14208 if starting with the HIDE directive
14209 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
14210 starting with the HIDE directive; mark the declarations in a private
14211 part as hidden in SPARK if the private part starts with the HIDE
14212 directive
14213 * restrict.adb, restrict.ads
14214 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
14215 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
14216 argument node belongs to a part which is hidden in SPARK
14217 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
14218 parts in SPARK; protect the possibly costly call to
14219 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
14220 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
14221 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
14222 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
14223 Tok_SPARK_Hide.
14224 (Scan): recognize special comment starting with '#' and followed by
14225 SPARK keyword "hide" as a HIDE directive.
14226
142272011-08-02 Yannick Moy <moy@adacore.com>
14228
14229 * types.ads, erroutc.ads: Minor reformatting.
14230
142312011-08-02 Vincent Celier <celier@adacore.com>
14232
14233 * link.c: Add response file support for cross platforms.
14234
6ff6152d
ES
142352011-08-02 Ed Schonberg <schonberg@adacore.com>
14236
14237 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
14238 in an association, set parent field of copy before partial analysis.
14239 * sem_res.adb (Resolve_Slice): create reference to itype only when
14240 expansion is enabled.
14241
975c6896
YM
142422011-08-02 Yannick Moy <moy@adacore.com>
14243
14244 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
14245 for new flag denoting which subprogram bodies are in ALFA
14246 * restrict.adb, sem_ch7.adb: Update comment
14247 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
14248 sem_ch9.adb, sem_res.adb: Add calls to
14249 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
14250 * sem_ch6.adb (Analyze_Function_Return): add calls to
14251 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
14252 middle of the body, and extended return.
14253 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
14254 False when missing return.
14255 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
14256 to True for subprograms whose spec is in ALFA. Remove later on the flag
14257 on the entity used for a subprogram body when there exists a separate
14258 declaration.
14259 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
14260 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
14261 False, otherwise do nothing.
14262
afc8324d
AC
142632011-08-02 Robert Dewar <dewar@adacore.com>
14264
14265 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
14266
142672011-08-02 Yannick Moy <moy@adacore.com>
14268
14269 * sem_ch4.ads: minor formatting.
14270
2ba431e5
YM
142712011-08-02 Yannick Moy <moy@adacore.com>
14272
14273 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
14274 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
14275 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
14276 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
14277 opt.ads: cleanup of SPARK mode
14278
0f853035
YM
142792011-08-02 Yannick Moy <moy@adacore.com>
14280
14281 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
14282 types.
14283 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
14284 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
14285 * sem_ch3.adb
14286 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
14287 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
14288 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
14289 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
14290 types.
14291 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
14292 non-static range.
14293 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
14294 functions whose return type is not in ALFA.
14295 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
14296 specifications.
14297 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
14298 parameter's type is not in ALFA.
14299 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
14300 types are in ALFA.
14301
d2b10647
ES
143022011-08-02 Ed Schonberg <schonberg@adacore.com>
14303
14304 * sem_ch6 (Analyze_Expression_Function): treat the function as
14305 Inline_Always, and introduce a subprogram declaration for it when it is
14306 not a completion.
14307 * inline.adb (Add_Inlined_Body): recognize bodies that come from
14308 expression functions, so that the back-end can determine whether they
14309 can in fact be inlined.
14310 * sem_util.adb (Is_Expression_Function): predicate to determine whether
14311 a function body comes from an expression function.
14312
c7b9d548
AC
143132011-08-02 Gary Dismukes <dismukes@adacore.com>
14314
14315 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
14316 null exclusions to test Can_Never_Be_Null on the anonymous access types
14317 of the formals rather than testing the formals themselves. Exclude this
14318 check in cases where the Old_Formal is marked as a controlling formal,
14319 to avoid issuing spurious errors for bodies completing dispatching
14320 operations (due to the flag not getting set on controlling access
14321 formals in body specs).
14322 (Find_Corresponding_Spec): When checking full and subtype conformance of
14323 subprogram bodies in instances, pass Designated and E in that order, for
14324 consistency with the expected order of the formals (New_Id followed by
14325 Old_Id).
14326
143272011-08-02 Robert Dewar <dewar@adacore.com>
14328
14329 * sem_ch8.adb: Minor reformatting.
14330
1138cf59
AC
143312011-08-02 Ed Schonberg <schonberg@adacore.com>
14332
14333 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
14334 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
14335 primitive operations of class-wide actuals.
14336
143372011-08-02 Javier Miranda <miranda@adacore.com>
14338
14339 * exp_atag.ads, exp_atag.adb
14340 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
14341 since its value is implicitly passed in argument Typ.
14342 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
14343 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
14344 Build_Common_Dispatching_Select_Statements.
14345
7b9db926
RD
143462011-08-02 Robert Dewar <dewar@adacore.com>
14347
14348 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
14349 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
14350 Minor reformatting.
14351
e8374e7a
AC
143522011-08-02 Robert Dewar <dewar@adacore.com>
14353
14354 * sem_res.adb: Minor reformatting.
14355 * sem_prag.adb: Minor reformatting.
14356
143572011-08-02 Javier Miranda <miranda@adacore.com>
14358
14359 * exp_atag.adb, exp_atags.ads
14360 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
14361 by the tagged type Entity. Required to use this routine in the VM
14362 targets since we do not have available the Tag entity in the VM
14363 platforms.
14364 * exp_ch6.adb
14365 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
14366 Ada.Tags has not been previously loaded.
14367 * exp_ch7.adb
14368 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
14369 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
14370 * sem_aux.adb
14371 (Enclosing_Dynamic_Scope): Add missing support to handle the full
14372 view of enclosing scopes. Required to handle enclosing scopes that
14373 are synchronized types whose full view is a task type.
14374 * exp_disp.adb
14375 (Build_VM_TSDs): Minor code improvement to avoid generating and
14376 analyzing lists with empty nodes.
14377 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
14378 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
14379 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
14380 (Make_Disp_Timed_Select_Body): Add support for VM targets.
14381 (Make_Select_Specific_Data_Table): Add support for VM targets.
14382 (Make_VM_TSD): Generate code to initialize the SSD structure of
14383 the TSD.
14384
143852011-08-02 Yannick Moy <moy@adacore.com>
14386
14387 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
14388 cross-references section in ALI.
14389 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
14390 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
14391 Sub).
14392 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
14393 subprogram or package entity of a node
14394 (Is_Local_Reference_Type): new function returns True for references
14395 selected in local cross-references.
14396 (Lt): function extracted from Lt in Output_References
14397 (Write_Entity_Name): function extracted from Output_References
14398 (Generate_Definition): generate reference with type 'D' for definition
14399 of objects (object declaration and parameter specification), with
14400 appropriate locations and units, for use in local cross-references.
14401 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
14402 references of type 'I' for initialization in object definition.
14403 (Output_References): move part of function Lt and procedure
14404 Write_Entity_Name outside of the body. Ignore references of types 'D'
14405 and 'I' introduced for local cross-references.
14406 (Output_Local_References): new procedure to output the local
14407 cross-references sections.
14408 (Lref_Entity_Status): new array defining whether an entity is a local
14409 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
14410 with 'I' type when initialization expression is present.
14411 * get_scos.adb, get_scos.ads: Correct comments and typos
14412
1f6439e3
AC
144132011-08-02 Javier Miranda <miranda@adacore.com>
14414
14415 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
14416 the JVM target.
14417 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
14418 the JVM target.
14419 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
14420 TSD support.
14421
144222011-08-02 Vincent Celier <celier@adacore.com>
14423
14424 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
14425 (No_Space_Img): New function
14426 (Find_Excluded_Sources): When reading from a file, record the file name
14427 and the line number for each excluded source.
14428 (Mark_Excluded_Sources): When reporting an error, if the excluded
14429 sources were read from a file, include file name and line number in
14430 the error message.
14431
144322011-08-02 Ed Schonberg <schonberg@adacore.com>
14433
14434 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
14435
ab027d28
RD
144362011-08-02 Robert Dewar <dewar@adacore.com>
14437
14438 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
14439
b3b28b0c
JM
144402011-08-02 Javier Miranda <miranda@adacore.com>
14441
14442 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
14443 generation of TSDs to the DOTNET compiler.
14444 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
14445 generation of TSDs to the DOTNET compiler.
14446
9732e886
JM
144472011-08-02 Javier Miranda <miranda@adacore.com>
14448
14449 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
14450 record of all the tagged types declared inside library level package
14451 declarations, library level package bodies or library level subprograms.
14452 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
14453 associated with a given tagged type.
14454 (Build_VM_TSDs): New subprogram.
14455 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
14456 compilation units that are subprograms.
14457 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
14458 compilation units that are package bodies.
14459 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
14460 units that are a package declaration or a package instantiation.
14461 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
14462 reorganization to improve the error generated by the frontend when the
14463 function Ada.Tags.Secondary_Tag is not available.
14464 * rtsfind.ads (RE_Register_TSD): New runtime entity.
14465 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
14466
e526d0c7
AC
144672011-08-02 Javier Miranda <miranda@adacore.com>
14468
14469 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
14470
144712011-08-02 Robert Dewar <dewar@adacore.com>
14472
14473 * s-imenne.ads: Minor reformatting.
14474
144752011-08-02 Robert Dewar <dewar@adacore.com>
14476
14477 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
14478 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
14479 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
14480
144812011-08-02 Robert Dewar <dewar@adacore.com>
14482
14483 * einfo.ads (Materialize_Entity): Document this is only for renamings
14484 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
14485 required debug information in the case where we transform the object
14486 declaration into a renaming declaration.
14487 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
14488 object
14489 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
14490 Materialize_Entity.
14491
5b1e6aca
RD
144922011-08-02 Robert Dewar <dewar@adacore.com>
14493
14494 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
14495 Suppress_Init_Procs.
14496 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
14497 Suppress_Initialization/Initialization_Suppressed.
14498 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
14499 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
14500 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
14501 * sem_prag.adb: New processing for pragma Suppress_Initialization.
14502
5ad4969d
RD
145032011-08-02 Robert Dewar <dewar@adacore.com>
14504
14505 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
14506 Minor reformatting.
14507
8c4ee6f5
AC
145082011-08-02 Ed Schonberg <schonberg@adacore.com>
14509
14510 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
14511 only have inheritable classwide pre/postconditions.
14512
145132011-08-02 Javier Miranda <miranda@adacore.com>
14514
14515 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
14516 * rtsfind.ads (RE_Check_TSD): New runtime entity.
14517 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
14518 checks if the external tag of a type is the same as the external tag
14519 of some other declaration.
14520
0b3d16c0
AC
145212011-08-02 Thomas Quinot <quinot@adacore.com>
14522
14523 * s-taskin.ads: Minor reformatting.
14524
145252011-08-02 Emmanuel Briot <briot@adacore.com>
14526
14527 * g-comlin.adb (Display_Help): swap the order in which it prints the
14528 short help and the general usage.
14529
145302011-08-02 Ed Schonberg <schonberg@adacore.com>
14531
14532 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
14533 the aspect declarations and attach them to the generic copy for
14534 subsequent analysis.
14535 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
14536 declarations of the generic tree to the new subprogram declarations.
14537 * sem_attr.adb (Check_Precondition_Postcondition): recognize
14538 conditions that apply to a subprogram instance.
14539
145402011-08-02 Robert Dewar <dewar@adacore.com>
14541
14542 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
14543
145442011-08-02 Ed Schonberg <schonberg@adacore.com>
14545
14546 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
14547 private type with a tagged full view is not derived in the immediate
14548 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
14549
4637729f
AC
145502011-08-02 Robert Dewar <dewar@adacore.com>
14551
14552 * exp_ch4.adb: Minor reformatting.
14553
145542011-08-02 Ed Schonberg <schonberg@adacore.com>
14555
14556 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
14557 Ada2012 iterator, the loop will be rewritten during expansion into a
14558 while loop with a cursor and an element declaration. Do not analyze the
14559 body in this case, because if the container is for indefinite types the
14560 actual subtype of the elements will only be determined when the cursor
14561 declaration is analyzed.
14562
145632011-08-02 Arnaud Charlet <charlet@adacore.com>
14564
14565 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
14566 size/alignment related attributes in CodePeer_Mode.
14567
145682011-08-02 Gary Dismukes <dismukes@adacore.com>
14569
14570 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
14571 Prepend_Element, since this can result in the operation getting the
14572 wrong slot in the full type's dispatch table if the full type has
14573 inherited operations. The incomplete type's operation will get added
14574 to the proper position in the full type's primitives
14575 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
14576 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
14577 dispatching operations, since there are cases where nonprimitive
14578 subprograms can get added to the list of incomplete dependents (such
14579 as subprograms in nested packages).
14580 * sem_ch6.adb (Process_Formals): First, remove test for being in a
14581 private part when determining whether to add a primitive with a
14582 parameter of a tagged incomplete type to the Private_Dependents list.
14583 Such primitives can also occur in the visible part, and should not have
14584 been excluded from being private dependents.
14585 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
14586 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
14587 list of a Taft-amendment incomplete type is a primitive before issuing
14588 an error that the full type must appear in the same unit. There are
14589 cases where nonprimitives can be in the list (such as subprograms in
14590 nested packages).
14591 * sem_disp.adb (Derives_From): Use correct condition for checking that
14592 a formal's type is derived from the type of the corresponding formal in
14593 the parent subprogram (the condition was completely wrong). Add
14594 checking that was missing for controlling result types being derived
14595 from the result type of the parent operation.
14596
4c60de0c
YM
145972011-08-02 Yannick Moy <moy@adacore.com>
14598
14599 * errout.adb (First_Node): minor renaming
14600 * restrict.adb (Check_Formal_Restriction): put restriction warning on
14601 first node.
14602
f5afb270
AC
146032011-08-02 Yannick Moy <moy@adacore.com>
14604
14605 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
14606 before accessing operands.
14607 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
14608 decide whether an initialization expression respects SPARK rules, as
14609 the plain node is the expanded one. This allows for more valid warnings
14610 to be issued.
14611 * gnat_rm.texi: Minor update.
14612
146132011-08-02 Arnaud Charlet <charlet@adacore.com>
14614
14615 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
14616 previous change.
14617
146182011-08-02 Robert Dewar <dewar@adacore.com>
14619
14620 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
14621
146222011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
14623
14624 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
14625 loop statements and the element renaming declaration with a block when
14626 the element type is controlled.
14627
146282011-08-02 Yannick Moy <moy@adacore.com>
14629
14630 * sinfo.ads: Minor formatting.
14631
146322011-08-02 Ed Schonberg <schonberg@adacore.com>
14633
14634 * sem_aggr.adb (Add_Association): if the association has a box and no
14635 expression, use the Sloc of the aggregate itself for the new
14636 association.
14637 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
14638 the Original_Node.
14639
db72f10a
AC
146402011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
14641
14642 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
14643 When a container is provided via a function call, generate a renaming
14644 of the function result. This avoids the creation of a transient scope
14645 and the premature finalization of the container.
14646 * exp_ch7.adb (Is_Container_Cursor): Removed.
14647 (Wrap_Transient_Declaration): Remove the supression of the finalization
14648 of the list controller when the declaration denotes a container cursor,
14649 it is not needed.
14650
146512011-08-02 Yannick Moy <moy@adacore.com>
14652
14653 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
14654 node is from source, instead of the original node being from source.
14655 * sem_aggr.adb
14656 (Resolve_Array_Aggregate): refine the check for a static expression, to
14657 recognize also static ranges
14658 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
14659 Array_Type_Declaration): postpone the test for the type being a subtype
14660 mark after the type has been resolved, so that component-selection and
14661 expanded-name are discriminated.
14662 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
14663 to distinguish the case of an iteration scheme, so that an error is
14664 issed on a non-static range in SPARK except in an iteration scheme.
14665 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
14666 In_Iter_Schm = True.
14667 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
14668 user-defined operators so that they are allowed in renaming
14669 * sem_ch8.adb
14670 (Find_Selected_Component): refine the check for prefixing of operators
14671 so that they are allowed in renaming. Move the checks for restrictions
14672 on selector name after analysis discriminated between
14673 component-selection and expanded-name.
14674 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
14675 concatenation argument of string type if it is static.
14676 * sem_util.adb, sem_util.ads
14677 (Check_Later_Vs_Basic_Declarations): add a new function
14678 Is_Later_Declarative_Item to decice which declarations are allowed as
14679 later items, in the two different modes Ada 83 and SPARK. In the SPARK
14680 mode, add that renamings are considered as later items.
14681 (Enclosing_Package): new function to return the enclosing package
14682 (Enter_Name): correct the rule for homonyms in SPARK
14683 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
14684 from source (result of expansion) to avoid issuing wrong warnings.
14685
146862011-08-02 Ed Schonberg <schonberg@adacore.com>
14687
14688 * errout.adb: On anything but an expression First_Node returns its
14689 argument.
14690
23685ae6
AC
146912011-08-02 Pascal Obry <obry@adacore.com>
14692
14693 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
14694
146952011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
14696
14697 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
14698 Set the associated loop as the related expression of internally
14699 generated cursors.
14700 * exp_ch7.adb (Is_Container_Cursor): New routine.
14701 (Wrap_Transient_Declaration): Supress the finalization of the list
14702 controller when the declaration denotes a container cursor.
14703
147042011-08-02 Yannick Moy <moy@adacore.com>
14705
14706 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
14707 command line now.
14708 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
14709 expression is a simple expression. This check cannot be performed in
14710 the semantics, so just drop it.
14711 (P_Index_Or_Discriminant_Constraint): move check that the index or
14712 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
14713 semantics. Other cases were previously checked in the semantics.
14714 * par-ch4.adb (P_Name): move checks that a selector name is not
14715 character literal or an operator symbol to Find_Selected_Component in
14716 the semantics
14717 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
14718 declarations are not placed after later declarations in a separate
14719 procedure in Sem_Util (possibly not the best choice?), to be used both
14720 during parsing, for Ada 83 mode, and during semantic analysis, for
14721 SPARK mode.
14722 * par-endh.adb (Check_End): move check that end label is not missing
14723 to Process_End_Label in the semantics
14724 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
14725 the special case for SPARK restriction
14726 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
14727 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
14728 parameter Force to issue the error message even on internal node (used
14729 for generated end label). Call Check_Restriction to check when an error
14730 must be issued. In SPARK mode, issue an error message even if the
14731 restriction is not set.
14732 (Check_Restriction): new procedure with an additional out parameter to
14733 inform the caller that a message has been issued
14734 * sem_aggr.adb: Minor modification of message
14735 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
14736 instead of issuing an error message directly
14737 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
14738 declarations are not placed after later declarations, by calling
14739 Check_Later_Vs_Basic_Declarations
14740 (Analyze_Subtype_Declaration): move here the check that an index or
14741 discriminant constraint must be a subtype mark. Change the check that
14742 a subtype of String must start at one so that it works on subtype marks.
14743 * sem_ch4.adb (Analyze_Call): move here the check that a named
14744 association cannot follow a positional one in a call
14745 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
14746 instead of issuing an error message directly
14747 * sem_ch8.adb (Find_Selected_Component): move here the check that a
14748 selector name is not a character literal or an operator symbol. Move
14749 here the check that the prefix of an expanded name cannot be a
14750 subprogram or a loop statement.
14751 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
14752 procedure called from parsing and semantics to check that basic
14753 declarations are not placed after later declarations
14754 (Process_End_Label): move here the check that end label is not missing
14755
147562011-08-02 Arnaud Charlet <charlet@adacore.com>
14757
14758 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
14759 representation clause in codepeer mode, since it confuses CodePeer and
14760 does not bring useful info.
14761
147622011-08-02 Ed Falis <falis@adacore.com>
14763
14764 * init.c: initialize fp hw on MILS.
14765
147662011-08-02 Ed Schonberg <schonberg@adacore.com>
14767
14768 * errout.adb (First_Node): for bodies, return the node itself (small
14769 optimization). For other nodes, do not check source_unit if the node
14770 comes from Standard.
14771
d2d9cc22
AC
147722011-08-02 Robert Dewar <dewar@adacore.com>
14773
14774 * exp_ch3.adb: Minor comment additions.
14775 * sem_ch13.adb: Minor reformatting.
14776
147772011-08-02 Pascal Obry <obry@adacore.com>
14778
14779 * make.adb, makeutl.adb: Removes some superfluous directory separator.
14780
a01b9df6
AC
147812011-08-02 Robert Dewar <dewar@adacore.com>
14782
14783 * sem_attr.adb: Minor reformatting.
14784
147852011-08-02 Robert Dewar <dewar@adacore.com>
14786
14787 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
14788 (Has_Default_Component_Value): Removed
14789 * einfo.ads Comment updates
14790 (Has_Default_Aspect): Replaces Has_Default_Value
14791 (Has_Default_Component_Value): Removed
14792 * exp_ch13.adb
14793 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
14794 * exp_ch3.adb
14795 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
14796 (Get_Simple_Init_Val): Handle Default_Value aspect
14797 (Needs_Simple_Initialization): Handle Default_Value aspect
14798 * exp_ch3.ads: Needs_Simple_Initialization
14799 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
14800 * par-prag.adb (Pragma_Default[_Component]Value) Removed
14801 * sem_ch13.adb
14802 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
14803 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
14804 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
14805
148062011-08-02 Ed Schonberg <schonberg@adacore.com>
14807
14808 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
14809 package containing iteration primitives.
14810 exp_ch5.adb (Expand_Iterator_Loop): ditto.
14811
75c90775
AC
148122011-08-02 Ed Schonberg <schonberg@adacore.com>
14813
14814 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
14815 "of", pre-analyze expression in case it is a function call with
14816 finalization actions that must be placed ahead of the loop.
14817 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
14818 on an Ada2012 iterator, insert them ahead of the rewritten loop.
14819
148202011-08-02 Geert Bosch <bosch@adacore.com>
14821
14822 * cstand.adb (Create_Float_Types): Only consider C's long double for
14823 Long_Long_Float, in addition to double.
14824
ded8909b
AC
148252011-08-02 Robert Dewar <dewar@adacore.com>
14826
14827 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
14828 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
14829 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
14830 Minor reformatting.
14831
148322011-08-02 Ed Schonberg <schonberg@adacore.com>
14833
14834 * sem_attr.adb: handle properly 'Result when it is a prefix of an
14835 indexed component.
14836
148372011-08-02 Javier Miranda <miranda@adacore.com>
14838
14839 * einfo.ads, einfo.adb
14840 (Original_Access_Type): Move this attribute to Node26 since there was
14841 an undocumented use of Node21 in E_Access_Subprogram_Type entities
14842 which causes conflicts and breaks the generation of the .NET compiler.
14843 (Interface_Name): Add missing documentation on JGNAT only uses of
14844 this attribute.
14845
70c34e1c
AC
148462011-08-02 Geert Bosch <bosch@adacore.com>
14847
14848 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
14849 (Find_Back_End_Float_Type): Likewise
14850 (Create_Back_End_Float_Types): Likewise
14851 (Create_Float_Types): Likewise
14852 (Register_Float_Type): Likewise
14853 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
14854 Nlist and split out type selection in new local Find_Base_Type function.
14855 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
14856 Nlist
14857 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
14858
148592011-08-02 Robert Dewar <dewar@adacore.com>
14860
14861 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
14862 alpha order).
14863 * opt.ads: Minor comment change.
14864 * sem_ch12.adb: Minor code reorganization.
14865
b715bc59
AC
148662011-08-02 Gary Dismukes <dismukes@adacore.com>
14867
14868 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
14869 subtype's list of rep items to the list on the full subtype in the case
14870 where the lists are the same.
14871
148722011-08-02 Geert Bosch <bosch@adacore.com>
14873
14874 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
14875 using the one from System.Strings, which also deallocates all strings.
14876
002bdd68
AC
148772011-08-02 Geert Bosch <bosch@adacore.com>
14878
14879 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
14880 function.
14881 * gcc-interface/Make-lang.in: Update dependencies.
14882
148832011-08-02 Olivier Hainque <hainque@adacore.com>
14884
14885 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
14886 end_locus.
14887
499769ec
AC
148882011-08-02 Javier Miranda <miranda@adacore.com>
14889
14890 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
14891 associated with anonymous access to subprograms.
14892
148932011-08-02 Geert Bosch <bosch@adacore.com>
14894
14895 * opt.ads
14896 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
14897 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
14898 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
14899 (Add_Symbol_Definition): Move to switch-c.adb
14900 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
14901 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
14902 (Add_Symbol_Definition): Move to switch-c.adb.
14903 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
14904 * sem_warn.adb
14905 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
14906 Move to warnsw.adb.
14907 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
14908 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
14909 Move to warnsw.adb.
14910 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
14911 (Add_Symbol_Definition): Moved from Prepcomp.
14912 * switch-c.ads: Update copyright notice. Use String_List instead of
14913 Argument_List, removing dependency on System.OS_Lib.
14914
aa1e353a
AC
149152011-08-02 Yannick Moy <moy@adacore.com>
14916
14917 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
14918 mode on initialization expression which does not respect SPARK
14919 restrictions.
14920 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
14921 if the tree referenced by its argument represents an initialization
14922 expression in SPARK, suitable for initializing an object in an object
14923 declaration.
14924
149252011-08-02 Javier Miranda <miranda@adacore.com>
14926
14927 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
14928 internally generated access to subprogram with its associated protected
14929 subprogram type.
14930 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
14931
15b682ca
GB
149322011-08-02 Geert Bosch <bosch@adacore.com>
14933
14934 * cstand.adb (Register_Float_Type): Print information about type to
14935 register, if the Debug_Flag_Dot_B is set.
14936 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
14937 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
14938 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
14939 with a requested precision of more than Max_Digits digits and no more
14940 than Max_Base_Digits digits, if a range specification is present and the
14941 Predefined_Float_Types list has a suitable type to derive from.
14942 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
14943 case of type completion with pragma Import
14944 * sem_prag.adb
14945 (Process_Import_Predefined_Type): Processing to complete a type
14946 with pragma Import. Currently supports floating point types only.
14947 (Set_Convention_From_Pragma): Do nothing without underlying type.
14948 (Process_Convention): Guard against absence of underlying type,
14949 which may happen when importing incomplete types.
14950 (Process_Import_Or_Interface): Handle case of importing predefined
14951 types. Tweak error message.
14952
f8726f2b
AC
149532011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14954
14955 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
14956 functions to previous change. Reorganize code slightly.
14957
149582011-08-02 Geert Bosch <bosch@adacore.com>
14959
14960 * back_end.ads (Register_Type_Proc): New call back procedure type for
14961 allowing the back end to provide information about available types.
14962 (Register_Back_End_Types): New procedure to register back end types.
14963 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
14964 available types.
14965 * cstand.adb (Back_End_Float_Types): New list for floating point types
14966 supported by the back end.
14967 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
14968 (Copy_Float_Type): New procedure to make new copies of predefined types.
14969 (Register_Float_Type): New call back procedure to populate the BEFT list
14970 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
14971 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
14972 (Create_Float_Types): New procedure to create entities for floating
14973 point types predefined in Standard, and put these and any remaining
14974 BEFTs on the Predefined_Float_Types list.
14975 * stand.ads (Predefined_Float_Types): New list for predefined floating
14976 point types that do not have declarations in package Standard.
14977
feecad68
AC
149782011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14979
14980 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
14981 entity node for the unit containing the parameter.
14982 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
14983 (Add_Inlined_Subprogram): Likewise.
14984 * gcc-interface/Make-lang.in: Update dependencies.
14985
149862011-08-02 Thomas Quinot <quinot@adacore.com>
14987
14988 * s-stusta.adb (Print): Make sure Pos is always initialized to a
14989 suitable value.
14990
12f0c50c
AC
149912011-08-02 Geert Bosch <bosch@adacore.com>
14992
14993 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
14994
149952011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14996
14997 * sem_type.adb (Covers): Move trivial case to the top and reuse the
14998 computed value of Base_Type.
14999
150002011-08-02 Yannick Moy <moy@adacore.com>
15001
15002 * restrict.adb (Check_Restriction): issue an error for any use of
15003 class-wide, even if the No_Dispatch restriction is not set.
15004 * sem_aggr.adb: Correct typos in comments and messages in formal mode
15005 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
15006 when completing a private extension, the type named in the private part
15007 is not the same as that named in the visible part.
15008 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
15009 of an inherited primitive operations of a tagged type or type extension
15010 that returns the tagged type.
15011 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
15012 function which returns True for an implicit operation inherited by the
15013 derived type declaration for the argument type.
15014 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
15015 order.
15016
fb86fe11
ES
150172011-08-02 Ed Schonberg <schonberg@adacore.com>
15018
15019 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
15020 Process_Bounds, to perform analysis with expansion of a range or an
15021 expression that is the iteration scheme for a loop.
15022 (Analyze_Iterator_Specification): If domain of iteration is given by a
15023 function call with a controlled result, as is the case if call returns
15024 a predefined container, ensure that finalization actions are properly
15025 generated.
15026 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
15027
62be5d0a
JM
150282011-08-02 Javier Miranda <miranda@adacore.com>
15029
15030 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
15031 * gcc-interface/Make-lang.in: Update dependencies.
15032
150332011-08-02 Javier Miranda <miranda@adacore.com>
15034
15035 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
15036 determine if the analysis is performed using N or Original_Node (N).
15037 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
15038 functionality of routine Is_Variable avoids code duplication.
15039 * checks.adb (Determine_Range): Handle temporaries generated by
15040 Remove_Side_Effects.
15041
150422011-08-02 Javier Miranda <miranda@adacore.com>
15043
15044 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
15045 expansion of the condition. Required since the previous analysis was
15046 done with expansion disabled (see Resolve_Quantified_Expression) and
15047 hence checks were not inserted and record comparisons have not been
15048 expanded.
15049
a20f4389
AC
150502011-08-02 Ed Falis <falis@adacore.com>
15051
15052 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
15053 Update header.
15054
150552011-08-02 Bob Duff <duff@adacore.com>
15056
15057 * opt.ads: Minor comment fix.
15058
150592011-08-02 Bob Duff <duff@adacore.com>
15060
15061 * sem_ch12.adb (Analyze_Package_Instantiation,
15062 Analyze_Subprogram_Instantiation): Turn off style checking while
15063 analyzing an instance. Whatever style checks that apply to the generic
15064 unit should apply, so it makes no sense to apply them in an instance.
15065 This was causing trouble when compiling an instance of a runtime
15066 unit that violates the -gnatyO switch.
15067 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
15068 one of the two case statements, causing spurious errors.
15069
150702011-08-02 Robert Dewar <dewar@adacore.com>
15071
15072 * uname.adb: Minor reformatting.
15073 * gnatcmd.adb: Minor reformatting.
15074 * exp_attr.adb: Minor reformatting.
15075
90878b12
AC
150762011-08-02 Ed Schonberg <schonberg@adacore.com>
15077
15078 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
15079 No_Dispatching_Calls, do not look for the Assign primitive, because
15080 predefined primitives are not created in this case.
15081
150822011-08-02 Bob Duff <duff@adacore.com>
15083
15084 * stylesw.ads: Minor comment fixes.
15085
150862011-08-02 Robert Dewar <dewar@adacore.com>
15087
15088 * freeze.adb (Add_To_Result): New procedure.
15089
150902011-08-02 Jose Ruiz <ruiz@adacore.com>
15091
15092 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
15093 time, if the specific run-time routines for handling streams of strings
15094 are not available, use the default mechanism.
15095
150962011-08-02 Arnaud Charlet <charlet@adacore.com>
15097
15098 * s-regpat.ads: Fix typo.
15099
151002011-08-02 Vincent Celier <celier@adacore.com>
15101
15102 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
15103 not null, call it to create the in memory config project file without
15104 parsing an existing default config project file.
15105
151062011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15107
15108 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
15109
151102011-08-02 Ed Schonberg <schonberg@adacore.com>
15111
15112 * sem_elim.adb: an abstract subprogram does not need an eliminate
15113 pragma for its descendant to be eliminable.
15114
151152011-08-02 Ed Falis <falis@adacore.com>
15116
15117 * init.c: revert to handling before previous checkin for VxWorks
15118 * s-intman-vxworks.adb: delete unnecessary declarations related to
15119 using Ada interrupt facilities for handling signals.
15120 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
15121 * s-intman-vxworks.ads: Import __gnat_install_handler as
15122 Initialize_Interrupts.
15123 * s-taprop-vxworks.adb: Delete Signal_Mask.
15124 (Abort_Handler): change construction of mask to unblock exception
15125 signals.
15126
273adcdf
AC
151272011-08-02 Jerome Guitton <guitton@adacore.com>
15128
15129 * a-except-2005.adb (Raise_From_Signal_Handler): Call
15130 Debug_Raise_Exception before propagation starts.
15131
151322011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15133
15134 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
15135 to Restriction_Check_Required.
15136 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
15137 * sem_res.adb (Resolve_Call): Likewise.
15138 * sem_attr.adb (Check_Stream_Attribute): Likewise.
15139
151402011-08-02 Bob Duff <duff@adacore.com>
15141
15142 * stylesw.ads: Update comment.
15143 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
15144 * errout.ads: Remove obsolete comment.
15145
151462011-08-02 Javier Miranda <miranda@adacore.com>
15147
15148 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
15149 (Set_Is_Safe_To_Reevaluate): new procedure.
15150 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
15151 assignment is allowed on safe-to-reevaluate variables.
15152 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
15153 temporary created to remove side effects in expressions that use
15154 the secondary stack as safe-to-reevaluate.
15155 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
15156 variables that are not true constants.
15157
6320f5e1
AC
151582011-08-02 Robert Dewar <dewar@adacore.com>
15159
15160 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
15161 sem_res.adb, sem_ch6.adb: Minor reformatting.
15162
151632011-08-02 Jerome Guitton <guitton@adacore.com>
15164
15165 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
15166
2fe829ae
ES
151672011-08-02 Ed Schonberg <schonberg@adacore.com>
15168
15169 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
15170 not set Overridden_Operation if subprogram is an initialization
15171 procedure.
15172
e24329cd
YM
151732011-08-02 Yannick Moy <moy@adacore.com>
15174
15175 * par-ch6.adb: Correct obsolete name in comments
15176 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
15177 which takes two message arguments (existing function takes one), with
15178 second message used for continuation.
15179 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
15180 block statements that originate from a source block statement, not
15181 generated block statements
15182 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
15183 symmetry with procedure case
15184 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
15185 function to issue an error in formal mode if a package specification
15186 contains more than one tagged type or type extension.
15187 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
15188 parameters matching formals of tagged types are objects (or ancestor
15189 type conversions of objects), not general expressions. Issue an error
15190 on view conversions that are not involving ancestor conversion of an
15191 extended type.
15192 (Resolve_Type_Conversion): in formal mode, issue an error on the
15193 operand of an ancestor type conversion which is not an object
15194 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
15195 procedure so that it works also for actuals of function calls
15196 (Is_Actual_Tagged_Parameter): new function which determines if its
15197 argument is an actual parameter of a formal of tagged type in a
15198 subprogram call
15199 (Is_SPARK_Object_Reference): new function which determines if the tree
15200 referenced by its argument represents an object in SPARK
15201
176dadf6
AC
152022011-08-02 Robert Dewar <dewar@adacore.com>
15203
15204 * sem_ch3.adb: Minor reformatting
15205 Minor comment addition
15206 Minor error msg text change
15207
152082011-08-02 Javier Miranda <miranda@adacore.com>
15209
15210 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
15211 function. Used to be more precise when we generate a variable plus one
15212 assignment to remove side effects in the evaluation of the Bound
15213 expressions.
15214 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
15215 of the bound expression to force its re-analysis and thus expand the
15216 associated transient scope (if required). Code cleanup replacing the
15217 previous code that declared the constant entity by an invocation to
15218 routine Force_Evaluation which centralizes this work in the frontend.
15219
d8b962d8
AC
152202011-08-02 Robert Dewar <dewar@adacore.com>
15221
15222 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
15223 (Base_Type): Now uses improved Is_Base_Type function
15224 * einfo.ads (Base_Type): Inline this function
15225
152262011-08-02 Robert Dewar <dewar@adacore.com>
15227
15228 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
15229 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
15230
152312011-08-02 Arnaud Charlet <charlet@adacore.com>
15232
15233 * gcc-interface/Make-lang.in: Update dependencies.
15234 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
15235 targets.
15236
152372011-08-02 Yannick Moy <moy@adacore.com>
15238
15239 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
15240 non-simple expression used in delta constraint
15241 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
15242 index constraint which is not a subtype mark
15243 * par.adb: With and use Restrict
15244 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
15245 mode on component type which is not a subtype mark and default
15246 expression on component
15247 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
15248 of string which does not have a lower index bound equal to 1
15249 (Array_Type_Declaration): issue an error in formal mode on index or
15250 component type which is not a subtype mark, and on aliased keyword on
15251 component
15252 (Derived_Type_Declaration): issue an error in formal mode on interface,
15253 limited or abstract type
15254 (Record_Type_Declaration): issue an error in formal mode on interface
15255 (Record_Type_Definition): issue an error in formal mode on tagged types
15256 and type extensions not declared in the specification of a library unit
15257 package; on null non-tagged record; on variant part
15258
152592011-08-02 Vincent Celier <celier@adacore.com>
15260
15261 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
15262 not declared for qualified library project when Library_Name is not
15263 declared, but Library_Dir is.
15264
152652011-08-02 Robert Dewar <dewar@adacore.com>
15266
15267 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
15268 pragmas (affects aspects [Component_]Default_Value
15269 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
15270 component type for the resolution
15271
f96b2d85
AC
152722011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15273
15274 * einfo.adb (Base_Type): Tune implementation for speed.
15275
152762011-08-02 Robert Dewar <dewar@adacore.com>
15277
15278 * freeze.adb: Minor reformatting.
15279
8b3c6430
AC
152802011-08-02 Thomas Quinot <quinot@adacore.com>
15281
15282 * scos.ads: Update comments.
15283
152842011-08-02 Ed Schonberg <schonberg@adacore.com>
15285
15286 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
15287 base type, because the parent may be a subtype of a private type whose
15288 convention is established in a private part.
15289
152902011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
15291
15292 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
15293 statement in a block when the expansion of the return expression has
15294 created a finalization chain.
15295 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
15296 with the parent node.
15297 Add N_Extended_Return_Statement to handle the case where a transient
15298 object declaration appears in the Return_Object_Declarations list of
15299 an extended return statement.
15300
153012011-08-02 Matthew Gingell <gingell@adacore.com>
15302
15303 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
15304 unused parameter 'name'.
15305
153062011-08-02 Ed Schonberg <schonberg@adacore.com>
15307
15308 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
15309 inherited operation, check whether its alias, which is the source
15310 operastion that it renames, has been marked eliminated.
15311
cae81f17
JM
153122011-08-02 Javier Miranda <miranda@adacore.com>
15313
15314 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
15315 in-mode parameter whose type is an access type since it can be used to
15316 modify its designated object. Enforce code that handles as safe an
15317 access type that is not access-to-constant but it is the result of a
15318 previous removal of side-effects.
15319 (Remove_Side_Effects): Minor code reorganization of cases which require
15320 no action. Done to incorporate documentation on new cases uncovered
15321 working in this ticket: no action needed if this routine was invoked
15322 too early and the nodes are not yet decorated.
15323 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
15324 to routine Remove_Side_Effects by calls to Force_Evaluation since they
15325 were issued with actuals that are implicitly provided by
15326 Force_Evaluation.
15327
218e6dee
RD
153282011-08-02 Robert Dewar <dewar@adacore.com>
15329
15330 * sem_ch3.adb, sem_res.adb: Minor reformatting.
15331
7a489a2b
AC
153322011-08-02 Yannick Moy <moy@adacore.com>
15333
15334 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
15335 to issue an error in formal mode on attribute not supported in this mode
15336 (Analyze_Attribute): issue errors on standard attributes not supported
15337 in formal mode.
15338 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
15339 comment, and issue error in formal mode on modulus which is not a power
15340 of 2.
15341 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
15342 range.
15343 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
15344 subtype mark.
15345 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
15346 operator on modular type (except 'not').
15347
153482011-08-02 Robert Dewar <dewar@adacore.com>
15349
15350 * gnat_rm.texi: Minor reformatting.
15351
cb7fa356
AC
153522011-08-02 Arnaud Charlet <charlet@adacore.com>
15353
15354 * s-osinte-linux.ads: Minor comment update and reformatting.
15355 * i-cexten.ads: Make this unit pure, as for its parent.
15356 Will allow its usage in more contexts if needed.
15357
153582011-08-02 Robert Dewar <dewar@adacore.com>
15359
15360 * s-utf_32.ads: Minor comment fix.
15361
153622011-08-02 Ed Schonberg <schonberg@adacore.com>
15363
15364 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
15365 operation of a tagged synchronized type, handle the case where the
15366 controlling argument is overloaded.
15367
153682011-08-02 Yannick Moy <moy@adacore.com>
15369
15370 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
15371 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
15372 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
15373 SPARK mode and formal verification mode on processing SPARK restriction
15374 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
15375 requiring consistency checking.
15376
5cc9353d
RD
153772011-08-02 Robert Dewar <dewar@adacore.com>
15378
15379 * sem_res.adb: Minor reformatting.
15380
e51537ff
RD
153812011-08-02 Robert Dewar <dewar@adacore.com>
15382
15383 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
15384 a-cforse.ads: Remove unneeded with of Ada.Containers
15385 Remove commented out pragma Inline's
15386 Move specifications of new subprograms to the actual specs
15387
83fa09c5
AC
153882011-08-02 Yannick Moy <moy@adacore.com>
15389
15390 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
15391 a-cforse.ads: Update comments.
15392
153932011-08-02 Ed Schonberg <schonberg@adacore.com>
15394
15395 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
15396
d11cfaf8
RD
153972011-08-02 Robert Dewar <dewar@adacore.com>
15398
15399 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
15400 a-cforse.ads, a-cofove.ads: Minor reformatting.
15401
300b98bb
AC
154022011-08-02 Claire Dross <dross@adacore.com>
15403
15404 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
15405 a-cofove.ads: Add comments.
15406
154072011-08-02 Yannick Moy <moy@adacore.com>
15408
15409 * gnat_rm.texi: Document formal containers.
15410
154112011-08-02 Emmanuel Briot <briot@adacore.com>
15412
15413 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
15414 are empty sections.
15415
19fb051c
AC
154162011-08-02 Robert Dewar <dewar@adacore.com>
15417
15418 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
15419 reformatting.
15420
154212011-08-02 Robert Dewar <dewar@adacore.com>
15422
15423 * aspects.adb: New aspects Default_Value and Default_Component_Value
15424 New format of Aspect_Names table checks for omitted entries
15425 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
15426 handling of boolean aspects for derived types.
15427 New aspects Default_Value and Default_Component_Value
15428 New format of Aspect_Names table checks for omitted entries
15429 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
15430 (Has_Default_Value): New flag
15431 (Has_Default_Component_Value): New flag
15432 (Has_Default_Value): New flag
15433 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
15434 table.
15435 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
15436 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
15437 Default_Value and Default_Component_Value
15438 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
15439 New aspects Default_Value and Default_Component_Value
15440 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
15441 * sprint.adb: Print N_Aspect_Specification node when called from gdb
15442
154432011-08-02 Vincent Celier <celier@adacore.com>
15444
15445 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
15446 inherit library kind.
15447
154482011-08-02 Ed Schonberg <schonberg@adacore.com>
15449
15450 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
15451 Minor reformatting.
15452
154532011-08-02 Robert Dewar <dewar@adacore.com>
15454
15455 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
15456
5f7747af
AC
154572011-08-02 Yannick Moy <moy@adacore.com>
15458
15459 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
15460
154612011-08-02 Robert Dewar <dewar@adacore.com>
15462
15463 * impunit.adb: Add comment.
15464
a5fe697b
AC
154652011-08-02 Yannick Moy <moy@adacore.com>
15466
15467 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
15468 qualification of aggregates in formal mode
15469 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
15470 another aggregate
15471 (Resolve_Aggregate): complete the test that an aggregate is adequately
15472 qualified in formal mode
15473
154742011-08-02 Pascal Obry <obry@adacore.com>
15475
15476 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
15477 * mlib-prj.adb: Supress warning when compiling binder generated file.
15478 (Build_Library): Supress all warnings when compiling the binder
15479 generated file.
15480
bd65a2d7 154812011-08-02 Yannick Moy <moy@adacore.com>
d4487611 15482
bd65a2d7
AC
15483 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
15484 from here...
15485 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
15486 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
15487 Add with/use clauses to make Check_Formal_Restriction visible
15488
154892011-08-02 Ed Schonberg <schonberg@adacore.com>
15490
15491 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
15492 in-parameters when type of the generic formal is private in the generic
15493 spec and non-private in the body.
15494
154952011-08-02 Claire Dross <dross@adacore.com>
15496
15497 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
15498 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
15499 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
15500 * impunit.adb, Makefile.rtl: Take new files into account.
d4487611
AC
15501
155022011-08-02 Robert Dewar <dewar@adacore.com>
15503
15504 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
15505 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
15506
bd434b3f
YM
155072011-08-02 Yannick Moy <moy@adacore.com>
15508
15509 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
15510 formal mode
15511 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
15512 matching static array bounds, taking into account the special case of
15513 string literals
15514 * sem_ch3.adb: Typo in comment.
15515
fe5d3068
YM
155162011-08-02 Yannick Moy <moy@adacore.com>
15517
15518 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
15519 which issues an error in formal mode if its argument node is originally
15520 from source
15521 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
15522 has a discriminant specification so that it does not include the case
15523 of derived types
15524 (Derived_Type_Declaration): move here the test that a derived type has a
15525 discriminant specification
15526 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
15527 first element of a component association before accessing its choices
15528 (presence of component association is not enough)
15529 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
15530 declaration is a library item before accessing the next element in a
15531 list, as library items are not member of lists
15532 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
15533 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
15534 Check_Formal_Restriction whenever possible.
15535
b60a3f26
AC
155362011-08-02 Ed Schonberg <schonberg@adacore.com>
15537
15538 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
15539 reference when needed.
15540
155412011-08-02 Bob Duff <duff@adacore.com>
15542
15543 * gnat_ugn.texi: Fix typo.
15544
155452011-08-02 Vincent Celier <celier@adacore.com>
15546
15547 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
15548 archive file name. Do not use the full path name of archives for Open
15549 VMS.
15550
eaba57fb
RD
155512011-08-02 Robert Dewar <dewar@adacore.com>
15552
15553 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
15554 Analyze_Aspect_Specifications
15555 * sem_ch13.adb
15556 (Analyze_Aspect_Specifications): New handling for boolean aspects
15557 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
15558 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
15559 sequence for Analyze_Aspect_Specifications
15560 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
15561 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
15562
155632011-08-02 Robert Dewar <dewar@adacore.com>
15564
15565 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
15566 aspects, since these no longer exist.
15567
155682011-08-02 Robert Dewar <dewar@adacore.com>
15569
15570 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
15571 semicolon, do not try to see if there are aspects following it.
15572 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
15573 aspect spec.
15574
8830d1d2
AC
155752011-08-02 Robert Dewar <dewar@adacore.com>
15576
15577 * sem_ch8.adb, aspects.ads: Minor reformatting.
15578
155792011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15580
15581 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
15582 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
15583 extracted from...
15584 (Analyze_Aspect_Specifications): ...here. Call above procedure.
15585
7ff2d234
AC
155862011-08-02 Yannick Moy <moy@adacore.com>
15587
15588 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
15589 mode on subprogram declaration outside of package specification, unless
15590 it is followed by a pragma Import
15591 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
15592 Access_Type_Declaration): issue error in formal mode on access type
15593 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
15594 incomplete type
15595 (Analyze_Object_Declaration): issue error in formal mode on object
15596 declaration which does not respect SPARK restrictions
15597 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
15598 declaration which does not respect SPARK restrictions
15599 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
15600 error in formal mode on digits or delta constraint
15601 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
15602 decimal fixed point type
15603 (Derived_Type_Declaration): issue error in formal mode on derived type
15604 other than type extensions of tagged record types
15605 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
15606 with check on access definition
15607 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
15608 mode on protected definition.
15609 (Analyze_Task_Definition): issue error in formal mode on task definition
15610
156112011-08-02 Robert Dewar <dewar@adacore.com>
15612
15613 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
15614
806f6d37
AC
156152011-08-02 Javier Miranda <miranda@adacore.com>
15616
15617 * sem_ch6.adb (Can_Override_Operator): New function.
15618 (Verify_Overriding_Indicator): Add missing code to check overriding
15619 indicator in operators. Fixes regression.
15620 (Check_Overriding_Indicator): Minor reformating after replacing the
15621 code that evaluates if the subprogram can override an operator by
15622 invocations to the above new function.
15623 * einfo.adb
15624 (Write_Field26_Name): Add missing code to ensure that, following
15625 the documentation in einfo.ads, this field is not shown as attribute
15626 "Static_Initialization" on non-dispatching functions.
15627
156282011-08-02 Jose Ruiz <ruiz@adacore.com>
15629
15630 * sem_res.adb (Resolve_Call): A call to
15631 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
15632 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
15633 i.e., when the second parameter is of type Time_Span.
15634
156352011-08-02 Vincent Celier <celier@adacore.com>
15636
15637 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
15638 with an archive instead of -L<library dir> -l<library name>.
15639
156402011-08-02 Ed Schonberg <schonberg@adacore.com>
15641
15642 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
15643 mark the base types In_Use in addition to making the operations
15644 use_visible.
15645
156462011-08-02 Ed Falis <falis@adacore.com>
15647
15648 * init.c: add and setup __gnat_signal_mask for the exception signals
15649 * s-inmaop-vxworks.adb: new file.
15650 * s-intman-vxworks.adb: remove unnecessary initializations and
15651 simplify remaining
15652 * s-intman-vxworks.ads: remove unnecessary variable
15653 * s-taprop-vxworks.adb: simplify signal initialization
15654
780d052e
RD
156552011-08-02 Robert Dewar <dewar@adacore.com>
15656
15657 * sem_ch8.adb: Minor code reorganization, comment updates.
15658
156592011-08-02 Robert Dewar <dewar@adacore.com>
15660
15661 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
15662 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
15663 here from Sem_Res.
15664 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
15665 (Matching_Static_Array_Bounds): Moved here from Sem_Res
15666
29efbb8c
ES
156672011-08-02 Ed Schonberg <schonberg@adacore.com>
15668
15669 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
15670 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
15671 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
15672 use_type_clauses, to handle more efficiently use_type and use_all_type
15673 constructs.
15674 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
15675 Ada2012 Use_All_Type clause.
15676 (Use_Class_Wide_Operations): new procedure.
15677
b0186f71
AC
156782011-08-02 Robert Dewar <dewar@adacore.com>
15679
15680 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
15681 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
15682 expression to expression function.
15683
156842011-08-02 Ed Schonberg <schonberg@adacore.com>
15685
15686 * sem_ch4.adb: transform simple Ada2012 membership into equality only
15687 if types are compatible.
15688
156892011-08-02 Yannick Moy <moy@adacore.com>
15690
15691 * sem_res.adb (Matching_Static_Array_Bounds): new function which
15692 returns True if its argument array types have same dimension and same
15693 static bounds at each index.
15694 (Resolve_Actuals): issue an error in formal mode on actuals passed as
15695 OUT or IN OUT paramaters which are not view conversions in SPARK.
15696 (Resolve_Arithmetic_Op): issue an error in formal mode on
15697 multiplication or division with operands of fixed point types which are
15698 not qualified or explicitly converted.
15699 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
15700 Boolean or array type (except String) operands.
15701 (Resolve_Equality_Op): issue an error in formal mode on equality
15702 operators for array types other than String with non-matching static
15703 bounds.
15704 (Resolve_Logical_Op): issue an error in formal mode on logical operators
15705 for array types with non-matching static bounds. Factorize the code in
15706 Matching_Static_Array_Bounds.
15707 (Resolve_Qualified_Expression): issue an error in formal mode on
15708 qualified expressions for array types with non-matching static bounds.
15709 (Resolve_Type_Conversion): issue an error in formal mode on type
15710 conversion for array types with non-matching static bounds
15711
767bb4e8
AC
157122011-08-02 Robert Dewar <dewar@adacore.com>
15713
15714 * par-ch10.adb: Minor code reorganization (use Nkind_In).
15715
157162011-08-02 Ed Schonberg <schonberg@adacore.com>
15717
15718 * par-ch9.adb: save location of entry for proper error message.
15719
4ac2477e
JM
157202011-08-02 Javier Miranda <miranda@adacore.com>
15721
15722 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
15723 (Use_Full_View) which permits this routine to climb through the
15724 ancestors using the full-view of private parents.
15725 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
15726 Use_Full_View to true in calls to Is_Ancestor.
15727 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
15728 true in call to Is_Ancestor.
15729 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
15730 Use_Full_View to true in call to Is_Ancestor.
15731 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
15732 call to Is_Ancestor.
15733 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
15734 Use_Full_View to true in calls to Is_Ancestor.
15735 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
15736 Make_Select_Specific_Data_Table, Register_Primitive,
15737 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
15738 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
15739 to true in call to Is_Ancestor.
15740 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
15741 Use_Full_View to true in calls to Is_Ancestor.
15742 * exp_cg.adb
15743 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
15744 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
15745
9f90d123
AC
157462011-08-02 Robert Dewar <dewar@adacore.com>
15747
15748 * gnat_rm.texi: Minor reformatting.
15749 * sem_prag.adb: Minor reformatting.
15750
157512011-08-02 Tristan Gingold <gingold@adacore.com>
15752
15753 * vms_data.ads: Add VMS qualifier for -gnateP.
15754
157552011-08-02 Robert Dewar <dewar@adacore.com>
15756
15757 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
15758 * par-ch7.adb (P_Package): Proper placement of aspects for package
15759 decl/instantiation.
15760 * par-endh.adb (Check_End): Ad Is_Sloc parameter
15761 (End_Statements): Add Is_Sloc parameterr
15762 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
15763 (Check_End): Ad Is_Sloc parameter
15764 (End_Statements): Add Is_Sloc parameterr
15765
157662011-08-02 Vincent Celier <celier@adacore.com>
15767
15768 * ug_words: Add VMS qualifier equivalent to -gnateP:
15769 /SYMBOL_PREPROCESSING.
15770
157712011-08-02 Jose Ruiz <ruiz@adacore.com>
15772
15773 * gnat-style.texi: For hexadecimal numeric literals the typical
15774 grouping of digits is 4 to represent 2 bytes.
15775 A procedure spec which is split into several lines is indented two
15776 characters.
15777
157782011-08-02 Yannick Moy <moy@adacore.com>
15779
15780 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
15781 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
15782 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
15783 properly qualified
15784 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
15785 choice in array aggregate
15786 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
15787 mark as ancestor
15788 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
15789 positional and named aggregate for record, or others in record
15790 aggregate, or multiple choice in record aggregate
15791 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
15792 array operands to logical operations AND, OR and XOR do not have the
15793 same static lower and higher bounds
15794 * sem_ch5.adb, sinfo.ads: Correct typos in comments
15795
2933b16c
RD
157962011-08-01 Robert Dewar <dewar@adacore.com>
15797
15798 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
15799 Replaces Last_Source_Node_In_Sequence.
15800 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
15801 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
15802 parens and blank in string (this was inconsistently implemented).
15803 * errout.ads
15804 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
15805 blank in string (this was inconsistently implemented).
15806 * gnat1drv.adb
15807 (Set_Global_Switches): Set formal mode switches appropriately
15808 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
15809 * par-prag.adb
15810 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
15811 call Set_Error_Msg_Lang to set "spark" as language name.
15812 * par.adb: Remove unnecessary call to set formal language for errout
15813 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
15814 appropriately and call Set_Error_Msg_Lang to set "spark" as language
15815 name.
15816 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
15817 calls to it, moved after resolution so that types are known
15818 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
15819 result of concatenation is not of type String
15820 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
15821 concatenation is not properly restricted
15822 * gnat_rm.texi: Add doc on pragma Spark_95.
15823 * gcc-interface/Makefile.in: Remove obsolete target pairs for
15824 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
15825 * gcc-interface/Make-lang.in: Update dependencies.
15826
05dbd302
AC
158272011-08-01 Javier Miranda <miranda@adacore.com>
15828
15829 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
15830 condition that detects if the overridden operation must replace an
15831 existing entity.
15832
158332011-08-01 Javier Miranda <miranda@adacore.com>
15834
15835 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
15836 code declarations inserted by Insert_Actions in each alternative of the
15837 N_Case_Expression node.
15838
158392011-08-01 Robert Dewar <dewar@adacore.com>
15840
15841 * sem_ch6.adb: Minor code reorganization.
15842 * sem_util.adb: Minor reformatting.
15843
af9e051f
PO
158442011-08-01 Pascal Obry <obry@adacore.com>
15845
15846 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
15847 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
15848
1d801f21
AC
158492011-08-01 Yannick Moy <moy@adacore.com>
15850
15851 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
15852 literal or operator symbol which is prefixed
15853 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
15854 mode on access attributes.
15855 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
15856 that concatenation operands are properly restricted in formal mode
15857 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
15858 Analyze_Concatenation_Operand. Issue an error in formal mode if the
15859 result of the concatenation has a type different from String.
15860 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
15861 Analyze_Quantified_Expression, Analyze_Slice,
15862 Analyze_Null): issue an error in formal mode on unsupported constructs
15863 * sem_ch5.adb
15864 (Analyze_Block_Statement): only issue error on source block statement
15865 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
15866 function which returns the last node in a list of nodes for which
15867 Comes_From_Source returns True, if any
15868 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
15869 Last_Source_Node_In_Sequence
15870 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
15871 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
15872 mode on unsupported constructs
15873 * sem_ch9.adb Do not return after issuing error in formal mode, as the
15874 rest of the actions may be needed later on since the error is marked as
15875 not serious.
15876 * sinfo.ads: Typos in comments.
15877
158782011-08-01 Pascal Obry <obry@adacore.com>
15879
15880 * projects.texi: Minor editing.
15881
53beff22
YM
158822011-08-01 Yannick Moy <moy@adacore.com>
15883
15884 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
15885 insertion character ~~
15886 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
15887 (Set_Error_Msg_Lang): new procedure which fixes the language for use
15888 with insertion character ~~
15889 (Set_Msg_Text): treat insertion character ~~
15890 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
15891 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
15892 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
15893 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
15894 errors related to the formal language restriction not serious
15895 (insertion character |).
15896 * par.adb (Par): set formal language for error messages if needed
15897 * sem_ch6.adb (Check_Missing_Return): take into account possible
15898 generated statements at the end of the function
15899 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
15900 enumeration value to define a new pragma SPARK_95
15901 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
15902 SPARK_Version): new type and variables to store the SPARK version
15903 (none by default).
15904 (SPARK_Mode): return True when SPARK_Version is set
15905 * par-prag.adb: Correct indentation
15906 (Prag): take Pragma_SPARK_95 into account
15907 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
15908 into account.
15909
8d606a78
RD
159102011-08-01 Robert Dewar <dewar@adacore.com>
15911
15912 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
15913 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
15914 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
15915
1982d5a8
PO
159162011-08-01 Pascal Obry <obry@adacore.com>
15917
15918 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
15919 Target_Name to Get_Path call.
15920 (Parse_Single_Project): Likewise.
15921 (Post_Parse_Context_Clause): Likewise.
15922 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
15923 Call Initialise_Project_Path with the proper Target_Name.
15924 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
15925 search path.
15926 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
15927 with the proper Target_Name.
15928 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
15929 Part.Parse routine.
15930 (Parse_Project_And_Apply_Config): Likewise.
15931 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
15932 This is fine as this part of the code is supporting only native
15933 compilation.
15934 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
15935 is fine as this part of the code is supporting only native compilation.
15936
0d53d36b
AC
159372011-08-01 Yannick Moy <moy@adacore.com>
15938
15939 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
15940 of homonym, unless the homonym is one of the cases allowed in SPARK
15941 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
15942 package declaration occurring after a body.
15943
159442011-08-01 Robert Dewar <dewar@adacore.com>
15945
15946 * checks.adb, exp_ch4.adb: Minor reformatting.
15947
159482011-08-01 Javier Miranda <miranda@adacore.com>
15949
15950 * einfo.ads (Access_Disp_Table): Fix documentation.
15951 (Dispatch_Table_Wrappers): Fix documentation.
15952
159532011-08-01 Pascal Obry <obry@adacore.com>
15954
15955 * prj-env.adb, prj-env.ads: Minor reformatting.
15956
8ed68165
AC
159572011-08-01 Yannick Moy <moy@adacore.com>
15958
15959 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
15960 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
15961 procedures out of these packages.
2c7f9cc0 15962 * errout.ads, errout.adb
8ed68165
AC
15963 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
15964 procedures in of this package
15965 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
15966 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
15967 on misplaced later vs initial declarations, like in Ada 83
15968 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
15969 formal mode on attribute of private type whose full type declaration
15970 is not visible
15971 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
15972 package declaration inside a package specification
15973 (Analyze_Full_Type_Declaration): issue error in formal mode on
15974 controlled type or discriminant type
15975 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
15976 user-defined operator means that it should come from the source
15977 (New_Overloaded_Entity): issue error in formal mode on overloaded
15978 entity.
15979 * sem_ch6.ads, sem_ch13.ads: typos in comments.
15980
159812011-08-01 Thomas Quinot <quinot@adacore.com>
15982
15983 * atree.adb: Minor reformatting.
15984 * checks.adb: Minor reformatting.
15985
4230bdb7
AC
159862011-08-01 Vincent Celier <celier@adacore.com>
15987
15988 * s-parame-vms-ia64.ads: Fix typo in comment
15989 Minor reformatting
15990 * s-parame-vms-restrict.ads: Removed, unused.
15991
159922011-08-01 Javier Miranda <miranda@adacore.com>
15993
15994 * exp_ch3.adb
15995 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
15996 * sem_ch3.adb
15997 (Constrain_Index): Remove side effects in the evaluation of the bounds.
15998 * sem_ch3.ads, sem_ch3.adb
15999 (Is_Constant_Bound): New extended version of the subprogram that was
16000 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
16001 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
16002 * sem_aux.ads (Constant_Value): Fix typo in comment.
16003 * checks.adb (Generate_Index_Checks): New implementation which, for
16004 array objects with constant bounds, generates the runtime check
16005 referencing the bounds of the array type. For other cases this routine
16006 provides its previous behavior obtaining such values from the array
16007 object.
16008 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
16009 parent type.
16010 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
16011 we cannot have semantic interpretations of the new node.
16012
2010d078
AC
160132011-08-01 Ed Schonberg <schonberg@adacore.com>
16014
16015 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
16016 expressions.
16017
160182011-08-01 Arnaud Charlet <charlet@adacore.com>
16019
16020 * sem_ch8.adb: Minor code editing.
16021 * s-vxwext.adb: Remove trailing space.
16022 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
16023 consistency with other files.
16024
160252011-08-01 Thomas Quinot <quinot@adacore.com>
16026
16027 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
16028
160292011-08-01 Ed Schonberg <schonberg@adacore.com>
16030
16031 * par-ch10.adb: reject parameterized expressions as compilation unit.
16032 * sem_ch4.adb: handle properly conditional expression with overloaded
16033 then_clause and no else_clause.
16034
160352011-08-01 Tristan Gingold <gingold@adacore.com>
16036
16037 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
16038 like done by System.Aux_DEC.
16039 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
16040
daec8eeb
YM
160412011-08-01 Yannick Moy <moy@adacore.com>
16042
16043 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
16044 missing label at end of declaration (subprogram or package)
16045 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
16046 of positional and named parameter association
16047 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
16048 Error_Msg_SP which adds a prefix to the error message giving the name
16049 of the formal language analyzed
16050 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
16051 access result type in subprogram, unconstrained array as result type,.
16052 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
16053 procedure
16054 * sem_ch8.adb: Code clean up.
16055
38171f43
AC
160562011-08-01 Javier Miranda <miranda@adacore.com>
16057
16058 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
16059 * einfo.ads (Access_Disp_Table): Fix documentation.
16060 (Dispatch_Table_Wrappers): Fix documentation.
16061 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
16062 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
16063 to enforce the documentation of this attribute.
16064 (Set_Is_Interface): Cleanup the assertion.
16065 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
16066 the Underlying_Type entity before reading attribute Access_Disp_Table.
16067 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
16068 Locate the Underlying_Type before reading attribute Access_Disp_Table.
16069 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
16070 the Underlying_Type entity before reading attribute Access_Disp_Table.
16071 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
16072 Locate the Underlying_Type entity before reading attribute
16073 Access_Disp_Table.
16074
160752011-08-01 Ed Schonberg <schonberg@adacore.com>
16076
16077 * s-poosiz.ads: Additional overriding indicators.
16078
160792011-08-01 Yannick Moy <moy@adacore.com>
16080
16081 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
16082 formal mode.
16083 (Analyze_Iteration_Scheme): issue error in formal mode when loop
16084 parameter specification does not include a subtype mark.
16085 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
16086 formal mode on abstract subprogram.
16087 (Analyze_Subprogram_Specification): issue error in formal mode on
16088 user-defined operator.
16089 (Process_Formals): issue error in formal mode on access parameter and
16090 default expression.
16091 * sem_ch9.adb (Analyze_Abort_Statement,
16092 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
16093 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
16094 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
16095 Analyze_Requeue, Analyze_Selective_Accept,
16096 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
16097 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
16098 issue error in formal mode on user-defined raise statement.
16099
1f250383
AC
161002011-08-01 Thomas Quinot <quinot@adacore.com>
16101
16102 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
16103 declaration being hidden when overriding an implicit inherited
16104 subprogram.
16105 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
16106 (-gnats), do not complain about a source file that contains only a
16107 pragma No_Body.
16108
161092011-08-01 Ed Schonberg <schonberg@adacore.com>
16110
16111 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
16112 variable if already set.
16113
607d0635
AC
161142011-08-01 Arnaud Charlet <charlet@adacore.com>
16115
16116 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
16117 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
16118 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
16119 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
16120 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
16121 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
16122 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
16123 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
16124 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
16125 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
16126 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
16127 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
16128 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
16129 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
16130 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
16131 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
16132 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
16133 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
16134 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
16135 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
16136 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
16137 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
16138 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
16139 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
16140 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
16141 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
16142 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
16143 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
16144 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
16145 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
16146 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
16147 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
16148 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
16149 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
16150 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
16151 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
16152 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
16153 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
16154 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
16155 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
16156 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
16157 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
16158 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
16159 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
16160 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
16161 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
16162 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
16163 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
16164 s-osinte-mingw.ads: Update to GPLv3 run-time license.
16165 Use GNAT instead of GNARL.
16166
161672011-08-01 Bob Duff <duff@adacore.com>
16168
16169 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
16170 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
16171 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
16172 reformatting.
16173
161742011-08-01 Yannick Moy <moy@adacore.com>
16175
16176 * debug.adb (d.D) reverve flag for the SPARK mode
16177 (d.E) reverve flag for SPARK generation mode
16178 (d.F) reverve flag for Why generation mode
2c7f9cc0 16179 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
607d0635
AC
16180 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
16181 functions which return True when the corresponding modes are set
16182 (Formal_Language): return "spark" or "alfa" when in formal verification
16183 mode.
16184 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
16185 Error_Msg to prefix the error message with a tag giving the formal
16186 language
16187 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
16188 message with a tag giving the formal language
16189 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
16190 block statement
16191 (Analyze_Case_Statement): issue error in formal mode on case statement
16192 with a single "others" case alternative
16193 (Analyze_Exit_Statement): issue errors in formal mode on exit
16194 statements which do not respect SPARK restrictions
16195 (Analyze_Goto_Statement): issue error in formal mode on goto statement
16196 (Check_Unreachable_Code): always issue an error (not a warning) in
16197 formal mode on unreachable code (concerns both code after an infinite
16198 loop and after an unconditional jump, both not allowed in SPARK)
16199 * sem_ch6.adb (Analyze_Return_Statement): add call to
16200 Set_Return_Present for a procedure containing a return statement
16201 (already done for functions in Analyze_Function_Return)
16202 (Analyze_Function_Return): issue error in formal mode on extended
16203 return or if return is not last statement in function
16204 (Check_Missing_Return): issue error in formal mode if function does
16205 not end with return or if procedure contains a return
16206 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
16207 function to detect if there is an inner scope of its parameter S which
16208 is a loop.
16209
162102011-08-01 Thomas Quinot <quinot@adacore.com>
16211
16212 * sem_ch6.ads: Minor reformatting.
16213
d8b3ccb9
AC
162142011-08-01 Javier Miranda <miranda@adacore.com>
16215
16216 * sem_util.adb (Abstract_Interface_List): Complete condition when
16217 processing private type declarations to avoid reading unavailable
16218 attribute.
16219 (Is_Synchronized_Tagged_Type): Complete condition when processing
16220 private extension declaration nodes to avoid reading unavailable
16221 attribute.
16222
162232011-08-01 Thomas Quinot <quinot@adacore.com>
16224
16225 * sem_ch3.adb: Minor reformatting.
16226
162272011-08-01 Thomas Quinot <quinot@adacore.com>
16228
16229 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
16230 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
16231 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
16232 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
16233 for VMS, instead parametrize the common implementation with
16234 System.Parameters declarations.
16235
0bb9276c
AC
162362011-08-01 Eric Botcazou <ebotcazou@adacore.com>
16237
16238 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
16239
162402011-08-01 Tristan Gingold <gingold@adacore.com>
16241
16242 * seh_init.c: Fix SEH handler installation on win64.
16243
162442011-08-01 Ed Schonberg <schonberg@adacore.com>
16245
16246 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
16247 double analysis of an anonymous access to subprogram, because it can
16248 lead to improper sharing of profiles and a back-end crash.
16249
6a2e4f0b
AC
162502011-08-01 Robert Dewar <dewar@adacore.com>
16251
16252 * make.adb, sem_ch4.adb: Minor reformatting.
16253 * gcc-interface/Make-lang.in: Update dependencies.
16254 * sem_util.adb, exp_ch5.adb: Minor reformatting.
16255
162562011-08-01 Arnaud Charlet <charlet@adacore.com>
16257
16258 * gnat_rm.texi: Fix definition of Long_Integer.
16259
162602011-08-01 Ed Schonberg <schonberg@adacore.com>
16261
16262 * exp_aggr.adb: check limit size of static aggregate unconditionally,
16263 to prevent storage exhaustion.
16264 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
16265 finalized is a function body, insert the cleanup code before the final
16266 return statement, to prevent spurious warnings.
16267 * s-pooglo.ads: add overriding indicator.
16268
4561baf7
ES
162692011-08-01 Ed Schonberg <schonberg@adacore.com>
16270
16271 * sem_ch4.adb (Operator_Check): improve error message when both a
16272 with_clause and a use_clause are needed to make operator usage legal.
16273 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
16274 determine whether a compilation unit is visible within an other,
16275 either through a with_clause in the current unit, or a with_clause in
16276 its library unit or one one of its parents.
16277
383e179e
AC
162782011-08-01 Ed Schonberg <schonberg@adacore.com>
16279
16280 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
16281 over an arbitrary expression of an array or container type.
16282 * lib-xref.adb: clarify comment.
16283
162842011-08-01 Bob Duff <duff@adacore.com>
16285
16286 * einfo.ads: Minor reformatting.
16287 * debug.adb: Minor comment improvement.
16288
162892011-08-01 Javier Miranda <miranda@adacore.com>
16290
16291 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
16292 consider hidden subprograms as valid candidates.
16293
162942011-08-01 Arnaud Charlet <charlet@adacore.com>
16295
16296 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
16297
162982011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
16299
16300 * gnat_ugn.texi: Fix typo.
16301
61c161b2
AC
163022011-08-01 Robert Dewar <dewar@adacore.com>
16303
16304 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
16305 lib-xref.adb: Minor reformatting
16306
163072011-08-01 Gary Dismukes <dismukes@adacore.com>
16308
16309 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
16310 when to generate a call to Move_Final_List.
16311 (Has_Controlled_Parts): Remove this function.
16312
84df40f7
AC
163132011-08-01 Geert Bosch <bosch@adacore.com>
16314
16315 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
16316 "," in choice list.
16317
163182011-08-01 Thomas Quinot <quinot@adacore.com>
16319
16320 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
16321 explicit raise of a predefined exception as Comes_From_Source if the
16322 original N_Raise_Statement comes from source.
16323
163242011-08-01 Robert Dewar <dewar@adacore.com>
16325
16326 * sinfo.ads: Add comment.
16327 * sem_ch6.adb: Minor reformatting.
16328
163292011-08-01 Robert Dewar <dewar@adacore.com>
16330
16331 * freeze.adb (Freeze_Entity): Refine check for bad component size
16332 clause to avoid rejecting confirming clause when atomic/aliased present.
16333
163342011-08-01 Ed Schonberg <schonberg@adacore.com>
16335
16336 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
16337 better determine whether an entity reference is a write.
16338 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
16339 subcomponent.
16340 * lib-xref.adb (Output_References): Do no suppress a read reference at
16341 the same location as an immediately preceeding modify-reference, to
16342 handle properly in-out actuals.
16343
163442011-08-01 Tristan Gingold <gingold@adacore.com>
16345
16346 * env.c (__gnat_setenv) [VMS]: Refine previous change.
16347
163482011-08-01 Quentin Ochem <ochem@adacore.com>
16349
16350 * i-cstrin.adb (New_String): Changed implementation, now uses only the
16351 heap to compute the result.
16352
c7f0d2c0
AC
163532011-08-01 Robert Dewar <dewar@adacore.com>
16354
16355 * atree.ads: Minor reformatting.
16356
163572011-08-01 Emmanuel Briot <briot@adacore.com>
16358
16359 * g-expect.adb (Get_Command_Output): Fix memory leak.
16360
163612011-08-01 Geert Bosch <bosch@adacore.com>
16362
16363 * cstand.adb (P_Float_Type): New procedure to print the definition of
16364 predefined fpt types.
16365 (P_Mixed_Name): New procedure to print a name using mixed case
16366 (Print_Standard): Use P_Float_Type for printing floating point types
16367 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
16368 precision IEEE float.
16369
163702011-08-01 Thomas Quinot <quinot@adacore.com>
16371
16372 * sem_ch3.adb: Minor reformatting.
16373
163742011-08-01 Ed Schonberg <schonberg@adacore.com>
16375
16376 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
16377 the completion of a generic function, insert the new body rather than
16378 rewriting the original.
16379
163802011-08-01 Yannick Moy <moy@adacore.com>
16381
16382 * sinfo.ads, errout.ads: Typos in comments.
16383
1c54829e
AC
163842011-08-01 Robert Dewar <dewar@adacore.com>
16385
16386 * par-endh.adb: Minor reformatting.
16387
163882011-08-01 Robert Dewar <dewar@adacore.com>
16389
16390 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
16391 (Pre_Post_Aspects): New subtype.
16392 * par-ch12.adb (P_Generic): New syntax for aspects in packages
16393 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
16394 * par-ch7.adb (P_Package): Remove Decl parameter
16395 (P_Package): Handle new syntax for aspects (before IS)
16396 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
16397 new aspect syntax
16398 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
16399 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
16400 (P_Package): Remove Decl parameter
16401 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
16402 aspects
16403 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
16404 specs
16405 * sem_util.ads, sem_util.adb (Static_Boolean): New function
16406 * sinfo.ads: Document new syntax for aspects in packages etc.
16407 * sprint.adb: Handle new syntax of aspects before IS in package
16408
164092011-08-01 Thomas Quinot <quinot@adacore.com>
16410
16411 * atree.ads: Minor reformatting.
16412 * sem_prag.adb: Minor reformatting.
16413
164142011-08-01 Robert Dewar <dewar@adacore.com>
16415
16416 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
16417 case expr alternative.
16418
164192011-08-01 Ed Schonberg <schonberg@adacore.com>
16420
16421 * sem_ch12.adb: Fix typo.
16422
9eea4346
GB
164232011-08-01 Geert Bosch <bosch@adacore.com>
16424
16425 * sem_prag.adb (Check_No_Link_Name): New procedure.
16426 (Process_Import_Or_Interface): Use Check_No_Link_Name.
16427 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
16428 instead of Standard_Long_Long_Float_Size global. Preparation for
16429 eventual removal of per type constants.
16430 * exp_util.ads (Get_Stream_Size): New function returning the stream
16431 size value of subtype E.
16432 * exp_util.adb (Get_Stream_Size): Implement new function.
16433 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
16434 function.
16435 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
16436 * einfo.adb:
16437 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
16438
3d6c3bd7
GB
164392011-08-01 Geert Bosch <bosch@adacore.com>
16440
16441 * cstand.adb: Fix comments.
16442 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
16443 count of arguments.
16444
e7d897b8
AC
164452011-08-01 Robert Dewar <dewar@adacore.com>
16446
16447 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
16448
164492011-08-01 Geert Bosch <bosch@adacore.com>
16450
16451 * atree.ads: Fix comment.
16452
c228a069
AC
164532011-08-01 Robert Dewar <dewar@adacore.com>
16454
16455 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
16456 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
16457 * par.adb: Add with for Namet.Sp.
16458 * par-tchk.adb: Minor reformatting.
16459
164602011-08-01 Vincent Celier <celier@adacore.com>
16461
16462 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
16463 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
16464 of the init procedure of a SAL.
16465 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
16466 New procedure.
16467
164682011-08-01 Thomas Quinot <quinot@adacore.com>
16469
16470 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
16471 reformatting.
16472
164732011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16474
16475 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
16476
164772011-08-01 Thomas Quinot <quinot@adacore.com>
16478
16479 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
16480 conformant with its spec (return True only for types that have
16481 an overriding Initialize primitive operation that prevents them from
16482 having preelaborable initialization).
16483 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
16484 initialization for controlled types in Ada 2005 or later mode.
16485
857ade1b
RD
164862011-08-01 Robert Dewar <dewar@adacore.com>
16487
16488 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
16489 Postcondition.
16490 (Same_Aspect): New function.
16491 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
16492 Type_Invariant, Precondition, Postcondition.
16493 * snames.ads-tmpl: Add Name_Type_Invariant.
16494
bd949ee2
RD
164952011-08-01 Robert Dewar <dewar@adacore.com>
16496
16497 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
16498 here.
16499 (Freeze_All_Ent): Fix error in handling inherited aspects.
16500 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
16501 already analyzed, but don't skip entire processing of a declaration,
16502 that's wrong in some cases of declarations being rewritten.
16503 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
16504 Don't delay for integer, string literals
16505 Treat predicates in usual manner for delay, remove special case code,
16506 not needed.
16507 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
16508 (Build_Predicate_Function): Update saved expression in aspect
16509 (Build_Invariant_Procedure): Update saved expression in aspect
16510 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
16511 of replacement of discriminant references if the reference is simple.
16512
f1c952af
RD
165132011-08-01 Robert Dewar <dewar@adacore.com>
16514
16515 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
16516 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
16517 Static_Predicate and Dynamic_Predicate.
16518 (Build_Predicate_Function): Add processing for Static_Predicate
16519 and Dynamic_Predicate.
16520 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
16521 (From_Static_Predicate): New flag
16522 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
16523
165242011-08-01 Robert Dewar <dewar@adacore.com>
16525
16526 * usage.adb: Documentation cleanup for Ada version modes in usage.
16527 * expander.adb: Minor reformatting.
16528
47e11d08
AC
165292011-08-01 Robert Dewar <dewar@adacore.com>
16530
16531 * atree.ads: Minor comment fix.
16532 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
16533 a-witeio.ads, sem_prag.adb: Minor reformatting.
16534
165352011-08-01 Doug Rupp <rupp@adacore.com>
16536
16537 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
16538 pointers. Use descrip.h header file for convenience. Add some
16539 comments.
16540
165412011-08-01 Robert Dewar <dewar@adacore.com>
16542
16543 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
16544 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
16545 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
16546 New procedure.
16547 (Check_Aspect_At_End_Of_Declarations): New procedure
16548 (Analye_Aspect_Specification): Minor changes for above procedures
16549 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
16550 specification node as well.
16551
165522011-08-01 Pascal Obry <obry@adacore.com>
16553
16554 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
16555 Windows files. Use GetFilesAttributes() in this case to check for file
16556 existence instead of returning with an error code.
16557
a3a16b21
VC
165582011-08-01 Vincent Celier <celier@adacore.com>
16559
16560 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
16561 High is above Source length.
16562
ff58cc69
RD
165632011-08-01 Robert Dewar <dewar@adacore.com>
16564
16565 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
16566
6bb88533
AC
165672011-08-01 Robert Dewar <dewar@adacore.com>
16568
16569 * aspects.ads (Boolean_Aspects): New subtype.
16570 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
16571 for derived types in cases where the parent type and derived type have
16572 aspects.
16573 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
16574 with aspects when parent type also has aspects.
16575 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
16576 boolean expression at this point).
16577 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
16578 accordance with final decision on the Ada 2012 feature.
16579 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
16580
165812011-08-01 Matthew Heaney <heaney@adacore.com>
16582
16583 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
16584
060a3f28
AC
165852011-08-01 Pascal Obry <obry@adacore.com>
16586
16587 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
16588 Fix Replace_Slice when High is above current string size.
16589 (Replace_Slice): Fix DL computation when High is above current
16590 string length.
16591
165922011-08-01 Gary Dismukes <dismukes@adacore.com>
16593
16594 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
16595
e7f567a3
AC
165962011-08-01 Matthew Heaney <heaney@adacore.com>
16597
16598 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
16599 of node.
16600
166012011-08-01 Pascal Obry <obry@adacore.com>
16602
16603 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
16604 reformatting.
16605
1a265e78
AC
166062011-08-01 Ed Schonberg <schonberg@adacore.com>
16607
16608 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
16609 access to protected subprograms in generic bodies.
16610 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
16611 protected type, indicate that the convention of the subprogram is
16612 Convention_Protected, because it may be used in subsequent declarations
16613 within the protected declaration.
16614
166152011-08-01 Vincent Celier <celier@adacore.com>
16616
16617 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
16618 and "final" procedures when the name of the library is "ada", to avoid
16619 duplicate symbols "adainit" and "adafinal" in executables.
16620
67e28ef8
ES
166212011-08-01 Ed Schonberg <schonberg@adacore.com>
16622
16623 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
16624 quantified expression that appears within a postcondition and uses the
16625 Ada2012 'Result attribute.
16626
6da2ca7d
RO
166272011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16628
16629 * init.c (__gnat_error_handler): Cast reason to int.
16630 (__gnat_install_handler): Explain sa_sigaction use.
16631
7d5997c6
EB
166322011-07-24 Eric Botcazou <ebotcazou@adacore.com>
16633
16634 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
16635 subprogram has copy-in copy-out parameters, try to promote the mode of
16636 the return type if it is passed in registers.
16637
4b4cfdd5
EB
166382011-07-24 Eric Botcazou <ebotcazou@adacore.com>
16639
16640 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
16641 left operand as addressable.
16642
f3d34576
EB
166432011-07-24 Eric Botcazou <ebotcazou@adacore.com>
16644
16645 * gcc-interface/gigi.h (build_function_stub): Remove.
16646 (build_return_expr): Likewise.
16647 (convert_vms_descriptor): Declare.
16648 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
16649 (build_function_stub): Move to...
16650 * gcc-interface/utils2.c (build_return_expr): Move to...
16651 * gcc-interface/trans.c (build_function_stub): ...here.
16652 (build_return_expr): ...here.
16653 (Subprogram_Body_to_gnu): Add local variable for language_function.
16654 Disconnect the parameter attributes cache, if any, once done with it.
16655 Call end_subprog_body only after setting the end_locus.
16656 Build the stub associated with the function, if any, at the very end.
16657 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
16658 variables and streamline control flow.
16659
0a6ecc08
AC
166602011-07-23 Arnaud Charlet <charlet@adacore.com>
16661
16662 PR ada/49819
16663 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
16664 g-trasym-dwarf.adb.
16665
5b6d595b
RO
166662011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16667
16668 PR bootstrap/49794
16669 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
16670 Assign to act.sa_sigaction.
16671 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
16672 current->return_address to char * before arithmetic.
16673
94017021
RO
166742011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16675
16676 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
16677 Correct argument types.
16678 Extract code from reason.
16679 (__gnat_install_handler): Assign to act.sa_sigaction.
16680
52fd02bb
EB
166812011-07-21 Eric Botcazou <ebotcazou@adacore.com>
16682
16683 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
16684 (GNAT1_OBJS): ...here.
16685
f39a9ca2
EB
166862011-07-15 Eric Botcazou <ebotcazou@adacore.com>
16687
16688 PR ada/48711
16689 * g-socthi-mingw.adb (Fill): Fix formatting.
16690
9e36aa23
EB
16691 * gcc-interface/gigi.h: Move around comment.
16692
e3aca522
JDA
166932011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16694
16695 PR ada/46350
16696 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
16697
696b1960
FW
166982011-07-14 Florian Weimer <fw@deneb.enyo.de>
16699
16700 PR ada/48711
16701 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
16702
f542c405
EB
167032011-07-13 Eric Botcazou <ebotcazou@adacore.com>
16704
16705 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
16706 range comparison if Pmode is SImode.
16707
9e9bd455
LG
167082011-07-12 Laurent GUERBY <laurent@guerby.net>
16709 Eric Botcazou <ebotcazou@adacore.com>
16710
16711 * adadecode.c: Wrap up in extern "C" block.
16712 * adadecode.h: Likewise.
16713 * adaint.c: Likewise. Remove 'const' keyword.
16714 * adaint.h: Likewise.
16715 * argv.c: Likewise.
16716 * atree.h: Likewise.
16717 * cio.c: Likewise.
16718 * cstreams.c: Likewise.
16719 * env.c: Likewise.
16720 * exit.c: Likewise.
16721 * fe.h: Likewise.
16722 * final.c: Likewise.
16723 * init.c: Likewise.
16724 * initialize.c: Likewise.
16725 * link.c: Likewise.
16726 * namet.h: Likewise.
16727 * nlists.h: Likewise.
16728 * raise.c: Likewise.
16729 * raise.h: Likewise.
16730 * repinfo.h: Likewise.
16731 * seh_init.c: Likewise.
16732 * targext.c: Likewise.
16733 * tracebak.c: Likewise.
16734 * uintp.h: Likewise.
16735 * urealp.h: Likewise.
16736 * xeinfo.adb: Wrap up generated C code in extern "C" block.
16737 * xsinfo.adb: Likewise.
16738 * xsnamest.adb: Likewise.
16739 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
16740 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
16741 * gcc-interface/misc.c: Likewise.
16742 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
16743 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
16744 ada/targext.o here...
16745 (GNAT_ADA_OBJS): ...and not here.
16746 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
16747 (GNATBIND_OBJS): Reorder.
16748
7644b3c7
RH
167492011-07-07 Richard Henderson <rth@redhat.com>
16750
16751 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
16752 dwarf2out_frame_init.
16753
8384ac41
EB
167542011-07-07 Eric Botcazou <ebotcazou@adacore.com>
16755
16756 * gcc-interface/misc.c (gnat_init): Tweak previous change.
16757
fbdd5d87
RO
167582011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16759
16760 PR target/39150
16761 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
16762
1a072294
RG
167632011-07-06 Richard Guenther <rguenther@suse.de>
16764
8384ac41
EB
16765 * gcc-interface/misc.c (gnat_init): Merge calls to
16766 build_common_tree_nodes and build_common_tree_nodes_2.
1a072294
RG
16767 Re-initialize boolean_false_node.
16768
bc712852
EB
167692011-07-02 Eric Botcazou <ebotcazou@adacore.com>
16770 Olivier Hainque <hainque@adacore.com>
16771 Nicolas Setton <setton@adacore.com>
16772
16773 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
16774 the type according to the ARTIFICIAL_P parameter.
16775 (create_type_decl): Likewise.
16776 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
16777
2eb22389
EB
167782011-07-01 Eric Botcazou <ebotcazou@adacore.com>
16779
16780 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
16781 (gnatbind): Likewise.
16782
4bdaaf2f
RO
167832011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16784
16785 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
16786
c020c92b
EB
167872011-06-18 Eric Botcazou <ebotcazou@adacore.com>
16788
16789 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
16790 local variable throughout. Remove useless call to Base_Type.
16791 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
16792 Take it also into account for the volatileness of the field. Set the
16793 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
16794
96769d32
EB
167952011-06-18 Eric Botcazou <ebotcazou@adacore.com>
16796
16797 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
16798 on a dereference built for a by-ref object if it has an address clause.
16799
7e4680c1
EB
168002011-06-18 Eric Botcazou <ebotcazou@adacore.com>
16801
16802 * einfo.ads (Address_Taken): Document use for the second argument of
16803 Asm_Input and Asm_Output attributes.
16804 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
16805 argument is an entity name, then set Address_Taken on it.
16806 <Attribute_Asm_Output>: Likewise.
16807 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
16808 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
16809 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
16810 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
16811
168122011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
16813
16814 PR middle-end/46500
16815 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
16816
677f3fa8
JM
168172011-06-14 Joseph Myers <joseph@codesourcery.com>
16818
16819 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
16820 (ada/utils.o): Update dependencies.
16821 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
16822 ../../../libcpp/libcpp.a.
16823 * gcc-interface/utils.c: Include common/common-target.h.
16824 (process_attributes): Use targetm_common.have_named_sections.
16825
009db074
RG
168262011-06-07 Richard Guenther <rguenther@suse.de>
16827
0bad0e23
EB
16828 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
16829 set_sizetype.
009db074 16830
3bfc61cf
EB
168312011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16832
0bad0e23 16833 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
3bfc61cf
EB
16834 TREE_THIS_NOTRAP flag.
16835
5c4a1c7b
EB
168362011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16837
16838 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
16839 Fix thinko.
16840
e9f57686
EB
168412011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16842
16843 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
16844 constants whose full view has discriminants specially.
16845
10e4d056
EB
168462011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16847
16848 * gcc-interface/utils.c: Include diagnostic.h.
16849 (gnat_write_global_declarations): Output debug information for all
16850 global type declarations before finalizing the compilation unit.
16851 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
16852
0957c029
JJ
168532011-05-25 Jakub Jelinek <jakub@redhat.com>
16854
16855 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
16856
52d0a7ac
KT
168572011-05-25 Kai Tietz <ktietz@redhat.com>
16858
16859 * adaint.c (__gnat_to_canonical_file_list_next): Use array
16860 initialization instead of const/none-const pointer assignment.
16861
1ed1641d
JM
168622011-05-24 Joseph Myers <joseph@codesourcery.com>
16863
16864 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
16865 $(EXTRA_GNAT1_OBJS).
16866 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
16867 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
16868 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
16869 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
16870 libcommon-target.a instead of prefix.o.
16871
9fe72ebd
JM
168722011-05-21 Joseph Myers <joseph@codesourcery.com>
16873
16874 PR ada/49097
0bad0e23 16875 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9fe72ebd 16876
2691e6d7
JM
168772011-05-20 Joseph Myers <joseph@codesourcery.com>
16878
0bad0e23
EB
16879 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
16880 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
16881 instead of version.o.
2691e6d7 16882
2d0dd51a 168832011-05-18 Kai Tietz <ktietz@redhat.com>
bf6490b5
KT
16884
16885 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
16886 boolean_false_node instead of integer_zero_node.
16887 (convert_with_check): Likewise.
16888 * gcc-interface/decl.c (choices_to_gnu): Likewise.
16889
7bf9a5ac
EB
168902011-05-12 Eric Botcazou <ebotcazou@adacore.com>
16891
16892 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
16893 type of the parameter is an unconstrained array, convert the actual to
16894 the type of the formal in the In Out and Out cases as well.
16895
e5b00edf
NF
168962011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16897
16898 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
16899 call build_function_type_array or build_varargs_function_type_array
16900 instead.
16901 (create_subprog_type): Don't call build_function_type; call
16902 build_function_type_vec instead.
16903
51545682
NF
169042011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16905
16906 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
16907 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
16908 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
16909
c99c0026
EB
169102011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16911
f620bd21
EB
16912 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
16913
c99c0026
EB
16914 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
16915 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
16916
3d528853
NF
169172011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16918
c99c0026 16919 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
3d528853 16920
d7d058c5
NF
169212011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16922
16923 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
16924 instead of accessing TYPE_ARG_TYPES directly.
16925 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
16926
805e60a0
EB
169272011-05-05 Eric Botcazou <ebotcazou@adacore.com>
16928
16929 PR ada/48844
16930 * gcc-interface/gigi.h (get_variant_part): Declare.
16931 * gcc-interface/decl.c (get_variant_part): Make global.
16932 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
16933 types have the same constant size, are record types and T1 has a
16934 variant part while T2 doesn't.
16935
907a08d9
EB
169362011-05-05 Eric Botcazou <ebotcazou@adacore.com>
16937
16938 * gcc-interface/utils.c (begin_subprog_body): Do not call
16939 get_pending_sizes.
16940 (end_subprog_body): Likewise.
16941
d35936ab
RG
169422011-05-04 Richard Guenther <rguenther@suse.de>
16943
16944 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
16945 int_const_binop.
16946 (pos_to_constructor): Likewise.
16947
c1fd8753 169482011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 16949 Eric Botcazou <ebotcazou@adacore.com>
c1fd8753
NF
16950
16951 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
16952 of build_function_type. Adjust calls to...
16953 (build_raise_check): ...this. Do not take a void_tree parameter.
16954 Call build_function_type_list instead of build_function_type.
16955 Fix head comment and swap couple of conditional blocks.
16956
4fb87d2b
EB
169572011-04-30 Eric Botcazou <ebotcazou@adacore.com>
16958
16959 * gnatvsn.ads (Library_Version): Bump to 4.7.
16960 (Current_Year): Bump to 2011.
16961
fa5e5a76
MM
169622011-04-29 Michael Matz <matz@suse.de>
16963
16964 * gcc-interface/misc.c (gnat_handle_option): Set
16965 warn_maybe_uninitialized.
16966
8d6a2f69
GP
169672011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
16968
16969 * gnat_ugn.texi (Complexity Metrics Control): Update link to
16970 the Watson/McCabe paper.
16971
770937fd
JM
169722011-04-23 Jim Meyering <meyering@redhat.com>
16973
16974 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
16975
eb601ae1
EB
169762011-04-22 Eric Botcazou <ebotcazou@adacore.com>
16977
16978 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
16979 onto the new type.
16980
7d7fcb08
EB
169812011-04-22 Eric Botcazou <ebotcazou@adacore.com>
16982
16983 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
16984 parameter.
16985 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
16986 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
16987 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
16988 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
16989 <all>: Do not set flags on the reused DECL node coming from an alias.
16990 Set DECL_IGNORED_P on the DECL node built for subprograms if they
16991 don't need debug info here...
16992 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
16993 (gigi): Adjust calls to create_subprog_decl.
16994 (build_raise_check): Likewise.
16995 (establish_gnat_vms_condition_handler): Likewise.
16996 (Compilation_Unit_to_gnu): Likewise.
16997 (gnat_to_gnu): Likewise.
16998
e1876cac
EB
169992011-04-21 Eric Botcazou <ebotcazou@adacore.com>
17000
17001 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
17002 (NO_REORDER_ADAFLAGS): New variable.
17003 (EXTRA_GNATTOOLS): Always define.
17004 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
17005 Clean up and adjust list of files compiled with special options.
17006 * gcc-interface/Make-lang.in: Likewise.
17007 (ada/decl.o): Cosmetical change.
17008 (ada/misc.o): Remove dependency on $(PLUGIN_H).
17009
04695783
JM
170102011-04-20 Jim Meyering <meyering@redhat.com>
17011
17012 * initialize.c (__gnat_initialize): Remove useless if-before-free.
17013
23399579
EB
170142011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17015
17016 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
17017 $(CFLAGS) on the link line.
17018
51c5169c
EB
170192011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17020
17021 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
17022 padded type built for the return type if it is unconstrained.
17023
61e46a7d
NF
170242011-04-14 Nathan Froyd <froydnj@codesourcery.com>
17025
17026 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
17027
81f653d6
NF
170282011-04-12 Nathan Froyd <froydnj@codesourcery.com>
17029
b4867846
EB
17030 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
17031 before calling TREE_CHAIN.
81f653d6
NF
17032 * gcc-interface/misc.c (gnat_init_ts): New function.
17033 (LANG_HOOKS_INIT_TS): Define.
17034
a358e188
MJ
170352011-04-12 Martin Jambor <mjambor@suse.cz>
17036
b4867846
EB
17037 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
17038 instead of cgraph_node.
a358e188 17039
29b1c5a4
EB
170402011-04-08 Eric Botcazou <ebotcazou@adacore.com>
17041
17042 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
17043 alignment on fields of the RETURN type built for the Copy-In Copy-Out
17044 mechanism.
17045
88872b00
EB
170462011-04-08 Eric Botcazou <ebotcazou@adacore.com>
17047
17048 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
17049 of aggregate types that contain a placeholder.
17050
dcf0c47e
NF
170512011-04-08 Nathan Froyd <froydnj@codesourcery.com>
17052
17053 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 17054 TYPE_ARG_TYPES.
dcf0c47e
NF
17055 (handle_type_generic_attribute): Likewise.
17056
53e3000c
EB
170572011-04-04 Eric Botcazou <ebotcazou@adacore.com>
17058
17059 PR ada/47163
17060 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
17061
ab380bb4
KT
170622011-04-04 Kai Tietz <ktietz@redhat.com>
17063
17064 PR ada/47163
0bad0e23
EB
17065 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
17066 to flag value.
ab380bb4 17067
8ffac116
EB
170682011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17069
17070 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
17071 type case, do not strip a padding type around the array type.
17072
de9528f0
EB
170732011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17074
17075 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
17076 types.
17077
d9d7a26c
EB
170782011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17079
17080 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
17081 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 17082 code for -feliminate-unused-debug-types.
d9d7a26c
EB
17083 (gnat_post_options): Likewise.
17084
4cb12a90
EB
170852011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17086
17087 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
17088 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
17089 distinct copy.
17090
acccc61c
EB
170912011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17092
17093 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
17094 DECL_ARTIFICIAL flag on enumeration types.
17095
583eb0c9
EB
170962011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17097
17098 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
17099 fat pointer types artificial unconditionally.
17100 <E_Array_Subtype>: Attach the base array type as a parallel type if it
17101 isn't artificial.
17102
e3edbd56
EB
171032011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17104
17105 * gcc-interface/gigi.h (get_dummy_type): Declare.
17106 (build_dummy_unc_pointer_types): Likewise.
17107 (finish_fat_pointer_type): Likewise.
17108 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
17109 fat pointer type has been built, complete it in place.
17110 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
17111 and thin pointers. Remove useless variable.
17112 (finish_fat_pointer_type): Make global and move to...
17113 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
17114 (get_dummy_type): New function.
17115 (build_dummy_unc_pointer_types): Likewise.
17116 (gnat_pushdecl): Propage the name to the anonymous variants only.
17117 (update_pointer_to): Only adjust the pointer types in the unconstrained
17118 array case.
17119
65444786
EB
171202011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17121
17122 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
17123 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
17124 if this is a Taft amendment type and the full declaration is available.
17125 * gcc-interface/trans.c (process_type): Likewise.
17126 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
17127 (process_freeze_entity): Likewise.
17128 * gcc-interface/utils.c (dummy_global): New static variable.
17129 (gnat_write_global_declarations): If there are types declared as used
17130 at the global level, insert them in the global hash table.
17131
1aeb40dd
EB
171322011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17133
17134 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
17135 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
17136 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
17137 copy.
17138 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
17139 flag of the type accordingly.
17140 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
17141
80ec8b4c
EB
171422011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17143
17144 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
17145 finalizing types when updating the pointers to the designated type.
17146 <all>: Finalize the deferred types even if we didn't defer processing
17147 of incomplete types in this invocation.
17148
2a9d769a 171492011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
17150 Nicolas Setton <setton@adacore.com>
17151 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
17152
17153 * gcc-interface/misc.c (gnat_descriptive_type): New function.
17154 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
17155
2438d7a6
KT
171562011-03-28 Kai Tietz <ktietz@redhat.com>
17157
333d8aff 17158 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
17159 Windows targets.
17160 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
17161 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 17162
80ec8b4c 17163 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 17164
8ad150f6
TG
171652011-03-28 Tristan Gingold <gingold@adacore.com>
17166
17167 PR ada/44431
80ec8b4c
EB
17168 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
17169 Use ada output of gnatbind.
8ad150f6
TG
17170 (ada/b_gnatb.adb): Ditto.
17171 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
17172 (ada.mostlyclean, ada.stage1)
17173 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
17174 (ada.stagefeedback): Adjust.
80ec8b4c 17175 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
17176 Use ada output of gnatbind.
17177 (b_gnatm.adb): Ditto.
17178 (b_gnatl.o, b_gnatm.o): New rules.
17179
51c7954d
EB
171802011-03-26 Eric Botcazou <ebotcazou@adacore.com>
17181
17182 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
17183 for the padded type built to support a specified size or alignment.
17184
6ddf9843
EB
171852011-03-26 Eric Botcazou <ebotcazou@adacore.com>
17186
17187 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
17188 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
17189 unconditionally to the end of the unit when the designated type is
17190 limited_with'ed.
17191 <all>: Rename local variable. Attempt to un-defer types only and do it
17192 for limited_with'ed types as well.
17193 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
17194 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
17195 consistently and remove redundant call to finalize_from_with_types.
17196
5daed84a
EB
171972011-03-26 Eric Botcazou <ebotcazou@adacore.com>
17198
17199 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
17200 subprograms without a previous spec declared in the same unit.
17201 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
17202 subprograms at the end of the unit instead of at the beginning.
17203 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
17204 isn't public for the special handling of non-inline functions nested
17205 inside inline external functions.
17206
0edf1bb2
JL
172072011-03-25 Jeff Law <law@redhat.com>
17208
5daed84a 17209 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 17210
e3c4580e
EB
172112011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17212
17213 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
17214 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
17215 to compute Set_Size_Depends_On_Discriminant.
17216 (Layout_Type): Call it on array types in back-end layout mode.
17217 * sem_util.adb (Requires_Transient_Scope): Return true for array
17218 types only if the size depends on the value of discriminants.
17219 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
17220 type if the RHS is a call to a function that returns an unconstrained
17221 type with default discriminant.
17222
abbc8c7b
EB
172232011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17224
17225 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
17226 non-conversion to the nominal result type at the end.
17227
ddb5a105
EB
172282011-03-23 Eric Botcazou <ebotcazou@adacore.com>
17229
17230 * gcc-interface/trans.c (create_temporary): New function taken from...
17231 (create_init_temporary): ...here. Call it.
17232 (call_to_gnu): Create the temporary for the return value early, if any.
17233 Create it for a function with copy-in/copy-out parameters if there is
17234 no target; in other cases of copy-in/copy-out, use another temporary.
17235 Push the new binding level lazily. Add and rename local variables.
17236
0d853156
EB
172372011-03-23 Eric Botcazou <ebotcazou@adacore.com>
17238
17239 * gcc-interface/decl.c (validate_size): Improve comments and tweak
17240 error message.
17241 (set_rm_size): Likewise.
17242
4184ef1b
EB
172432011-03-23 Eric Botcazou <ebotcazou@adacore.com>
17244
17245 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
17246 for the padded type built in order to support a specified alignment.
17247 Fix incorrect formatting.
17248
bf7eefab
EB
172492011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17250
17251 PR bootstrap/48216
17252 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
17253
ef0feeb2
EB
172542011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17255
17256 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
17257 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
17258 to the end of the list. Adjust recursive call. Rename local variable.
17259 If REORDER is true, reorder components of the record type.
17260 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
17261 components_to_record and adjust the parameter list.
17262
646f9414
EB
172632011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17264
17265 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
17266 disabled, use the variable for bounds of loop iteration scheme.
17267
62d784f7
KT
172682011-03-21 Kai Tietz <ktietz@redhat.com>
17269
17270 PR target/12171
0bad0e23 17271 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
62d784f7 17272
f230d759
EB
172732011-03-17 Eric Botcazou <ebotcazou@adacore.com>
17274
17275 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
17276 out whether the expression is read-only. Short-circuit placeholder
17277 case and rename a couple of local variables.
17278
bb1f7929
EB
172792011-03-17 Eric Botcazou <ebotcazou@adacore.com>
17280
17281 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
17282 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
17283 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
17284 (convert): Deal with conversions from a smaller form type specially.
17285
400a2d24
EB
172862011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17287
17288 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
17289 its argument, except for the special -I- switch.
17290
c26bc3ad
GP
172912011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
17292
0bad0e23
EB
17293 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
17294 "Ada Issues".
c26bc3ad 17295
07b8e910
EB
172962011-02-08 Eric Botcazou <ebotcazou@adacore.com>
17297
17298 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
17299
31a5a547
EB
173002011-02-03 Eric Botcazou <ebotcazou@adacore.com>
17301
17302 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
17303 GNAT_FORMAL.
17304 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
17305 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
17306 instead of GNAT_FORMAL. Protect the expression against multiple uses.
17307 Do not generate the check directly, instead instantiate the template
17308 check present in the descriptor.
17309 (make_descriptor_field): Move around.
17310 (build_vms_descriptor32): Build a template check in the POINTER field.
17311 (build_vms_descriptor): Remove useless suffixes.
17312 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
17313
dcf25f59
EB
173142011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17315
17316 PR bootstrap/47467
17317 * targext.c: Include target files if IN_RTS is defined.
17318
0418e131
RG
173192011-01-26 Richard Guenther <rguenther@suse.de>
17320
17321 PR bootstrap/47467
17322 * targext.c: Include config.h.
17323 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
17324 dependency.
17325
c6eecbd8 173262011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 17327 Eric Botcazou <ebotcazou@adacore.com>
c6eecbd8
PO
17328
17329 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
17330
2d3c7e4f
EB
173312011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17332
17333 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
17334 end-of-case on the end label and its associated gotos, if any.
17335
0394741f
EB
173362011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17337
17338 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
17339 expressions of the parameter cache within the statement group of
17340 the CICO mechanism.
17341
2a02d090 173422011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 17343 Eric Botcazou <ebotcazou@adacore.com>
2a02d090
OH
17344
17345 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
17346 (set_end_locus_from_node): New function.
17347 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
17348 make and the function end_locus.
17349 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
17350 for the elaboration subprogram.
17351 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
17352 set the end_locus of the expression as well.
17353
89f5e978
EB
173542011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17355
17356 PR ada/47131
17357 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
17358 variables that are referenced in exception handlers volatile.
17359
17360
ad41bd84 17361\f
797103eb 17362Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
17363
17364Copying and distribution of this file, with or without modification,
17365are permitted in any medium without royalty provided the copyright
17366notice and this notice are preserved.
This page took 2.768795 seconds and 5 git commands to generate.