]> gcc.gnu.org Git - gcc.git/blame - gcc/ada/ChangeLog
avr.c: Break long lines.
[gcc.git] / gcc / ada / ChangeLog
CommitLineData
292689c2
AC
12011-10-24 Emmanuel Briot <briot@adacore.com>
2
3 * prj-proc.adb (Process_Expression_Variable_Decl): No special
4 handling for Project_Path unless it is an attribute.
5
62011-10-24 Javier Miranda <miranda@adacore.com>
7
8 * sem_ch12.adb (Check_Hidden_Primitives): New subprogram.
9 (Install_Hidden_Primitives): New subprogram.
10 (Restore_Hidden_Primitives): New subprogram.
11 (Analyze_Formal_Package_Declaration,
12 Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
13 Invoke Check_Hidden_Primitives after every call to
14 Analyze_Associations, and invoke Restore_Hidden_Primitives to
15 restore their visibility after processing the instantiation.
16 (Instantiate_Package_Body): Install visible primitives before
17 analyzing the instantiation and uninstall them to restore their
18 visibility when the instantiation has been analyzed.
19 * sem_util.ads, sem_util.adb (Add_Suffix): New subprogram
20 (Remove_Suffix): New subprogram
21 * sem_ch3.adb (Derive_Subprogram): When handling
22 a derived subprogram for the instantiation of a formal derived
23 tagged type, inherit the dispatching attributes from the actual
24 subprogram (not from the parent type).
25
db4b3c49
AC
262011-10-24 Vasiliy Fofanov <fofanov@adacore.com>
27
28 * gnat_ugn.texi: Document explicit use of XDECGNAT library.
29
302011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
31
32 * exp_ch3.adb (Build_Assignment): Add local constant N_Loc and
33 update its uses.
34 (Build_Discriminant_Assignments): Add local variable D_Loc and update
35 its uses.
36 (Build_Init_Statements): Add local variables Comp_Loc, Decl_Loc and
37 Var_Loc and update their uses.
38 (Build_Record_Init_Proc): Code reformatting.
39 (Increment_Counter): Add formal parameter Loc.
40 (Make_Counter): Add formal parameter Loc.
41
422011-10-24 Eric Botcazou <ebotcazou@adacore.com>
43
44 * sem_disp.adb (Covers_Some_Interface): Fix typo.
45
462011-10-24 Matthew Heaney <heaney@adacore.com>
47
48 * a-cuprqu.adb, a-cbprqu.adb (Dequeue_Only_High_Priority):
49 Predicate had wrong sense.
50
512011-10-24 Yannick Moy <moy@adacore.com>
52
53 * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Test_Case):
54 Translate arguments in positional notation into pragma argument
55 association arguments for the generated pragma.
56
572011-10-24 Arnaud Charlet <charlet@adacore.com>
58
59 * exp_ch5.adb: Fix minor typo.
60
612011-10-24 Ed Schonberg <schonberg@adacore.com>
62
63 * sem_ch3.adb (Is_Visible_Component): Refine predicate for
64 the case of a component reference in an instance body, when the
65 enclosing type is private.
66
86f0e17a
AC
672011-10-24 Sergey Rybin <rybin@adacore.com frybin>
68
69 * gnat_ugn.texi: For gnatelim, move the note about using the GNAT
70 driver for getting the project support into gnatelim section.
71
722011-10-24 Robert Dewar <dewar@adacore.com>
73
74 * gnat_rm.texi: Minor correction to documentation on address
75 clause.
76
772011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
78
79 * s-finmas.adb (Attach): Synchronize and call the unprotected version.
80 (Attach_Unprotected): New routine.
81 (Delete_Finalize_Address): Removed.
82 (Delete_Finalize_Address_Unprotected): New routine.
83 (Detach): Synchronize and call the unprotected version.
84 (Detach_Unprotected): Remove locking.
85 (Finalize): Add various comment on synchronization. Lock the critical
86 region and call the unprotected versions of routines.
87 (Finalize_Address): Removed.
88 (Finalize_Address_Unprotected): New routine.
89 (Set_Finalize_Address): Synchronize and call
90 the unprotected version.
91 (Set_Finalize_Address_Unprotected): New routine.
92 (Set_Heterogeneous_Finalize_Address): Removed.
93 (Set_Heterogeneous_Finalize_Address_Unprotected): New routine.
94 (Set_Is_Heterogeneous): Add comment on synchronization and
95 locking.
96 * s-finmas.ads: Flag Finalization_Started is no longer atomic
97 because synchronization uses task locking / unlocking.
98 (Attach): Add comment on usage.
99 (Attach_Unprotected): New routine.
100 (Delete_Finalize_Address): Renamed to
101 Delete_Finalize_Address_Unprotected.
102 (Detach): Add comment on usage.
103 (Detach_Unprotected): New routine.
104 (Finalize_Address): Renamed to Finalize_Address_Unprotected.
105 (Set_Finalize_Address): Add comment on usage.
106 (Set_Finalize_Address_Unprotected): New routine.
107 (Set_Heterogeneous_Finalize_Address): Renamed to
108 Set_Heterogeneous_Finalize_Address_Unprotected.
109 * s-stposu.adb (Allocate_Any_Controlled): Add local variable
110 Allocation_Locked. Add various comments on synchronization. Lock
111 the critical region and call the unprotected version of
112 routines.
113 (Deallocate_Any_Controlled): Add various comments on
114 synchronization. Lock the critical region and call the unprotected
115 version of routines.
116
1172011-10-24 Ed Schonberg <schonberg@adacore.com>
118
119 * sem_ch3.adb (Set_Fixed_Range): The bounds of a fixed point type
120 are universal and must carry the corresponding type.
121 * sem_eval.adb (Check_Non_Static_Context): If the type of the
122 expression is universal real, as may be the case for a fixed point
123 expression with constant operands in the context of a conversion,
124 there is nothing to check.
125 * s-finmas.adb: Minor reformatting
126
be98aaf0
EB
1272011-10-23 Eric Botcazou <ebotcazou@adacore.com>
128
129 * gcc-interface/decl.c (create_concat_name): Add explicit cast.
130
e45c0886
EB
1312011-10-20 Eric Botcazou <ebotcazou@adacore.com>
132
133 * gcc-interface/Make-lang.in (GNATLIBFLAGS, GNATLIBCFLAGS, THREAD_KIND,
134 TRACE): Reintroduce.
135 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o,
136 ada/initialize.o, ada/raise.o): Reintroduce explicit compilation rules.
137
27ab5bd8
EB
1382011-10-20 Eric Botcazou <ebotcazou@adacore.com>
139
140 * gcc-interface/trans.c (lhs_or_actual_p): New predicate.
141 (unchecked_conversion_nop): Use it.
142 (gnat_to_gnu): Likewise.
143
b7562769
EB
1442011-10-20 Eric Botcazou <ebotcazou@adacore.com>
145
146 * back_end.adb (Call_Back_End): Pass the maximum logical line number
147 instead of the maximum physical line number to gigi.
148 * gcc-interface/trans.c (Sloc_to_locus): Cope with line zero.
149
53e7c794 1502011-10-16 Tom Tromey <tromey@redhat.com>
46427374
TT
151 Dodji Seketeli <dodji@redhat.com>
152
153 * gcc-interface/trans.c (gigi, Sloc_to_locus): Adjust to use the
154 new public ordinary map interface.
155
ea10ca9c
AC
1562011-10-16 Tristan Gingold <gingold@adacore.com>
157
53e7c794 158 * link.c (_AIX): Add support for GNU ld.
ea10ca9c
AC
159
1602011-10-16 Fedor Rybin <frybin@adacore.com>
161
162 * gnat_ugn.texi: Fixing gnattest example names in the doc.
163 Adding explanation to additional tests usage.
164
1652011-10-16 Robert Dewar <dewar@adacore.com>
166
167 * exp_ch6.adb, sem_ch6.adb: Minor reformatting.
168
1692011-10-16 Eric Botcazou <ebotcazou@adacore.com>
170
171 * a-convec.adb: Fix minor inconsistencies.
172
1732011-10-16 Matthew Heaney <heaney@adacore.com>
174
175 * a-cusyqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cbprqu.ads (package
176 Implementation): Specify pragma Implementation_Defined.
177
c225ba50
NR
1782011-10-15 Nicolas Roche <roche@adacore.com>
179
180 * gcc-interface/lang-specs.h: Ensure -mrtp switch is passed when using
181 either rtp-smp or ravenscar-cert-rtp runtimes.
182
3e452820
AC
1832011-10-15 Bob Duff <duff@adacore.com>
184
185 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call):
186 Do not create a pool formal on unless RE_Root_Storage_Pool_Ptr
187 is available.
188 (Expand_N_Extended_Return_Statement): Do not create a renaming of the
189 build-in-place pool parameter unless RE_Root_Storage_Pool_Ptr is
190 available.
191 (Make_Build_In_Place_Call_In_Allocator): Add the user-defined
192 pool only if RE_Root_Storage_Pool_Ptr is available.
193 (Make_Build_In_Place_Call_In_Object_Declaration): Do not add a
194 pool actual unless RE_Root_Storage_Pool_Ptr is available.
195 * sem_ch6.adb (Create_Extra_Formals): Add build-in-place pool
196 formal only if RE_Root_Storage_Pool_Ptr is available.
197
1982011-10-15 Matthew Heaney <heaney@adacore.com>
199
200 * a-cusyqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cbprqu.ads (Queue
201 type): Specify Priority aspect for protected type.
202
b7539c3b
AC
2032011-10-14 Ed Schonberg <schonberg@adacore.com>
204
205 * exp_disp.adb (Check_Premature_Freezing): If an untagged type
206 is a generic actual, it is a subtype of a type that was frozen
207 by the instantiation, and even if not marked frozen it does not
208 affect the construction of the dispatch table.
209
2102011-10-14 Robert Dewar <dewar@adacore.com>
211
212 * make.adb, mlib-utl.adb, sem_util.adb, sem_ch4.adb: Minor code
213 reformatting.
214 * s-rident.ads: Add missing Compiler_Unit pragma.
215
af89615f
AC
2162011-10-14 Gary Dismukes <dismukes@adacore.com>
217
218 * sem_res.adb: Minor reformatting.
219
2202011-10-14 Hristian Kirtchev <kirtchev@adacore.com>
221
222 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
223 Code and comment reformatting. Use BIP_Task_Master
224 when creating a _master.
225 (BIP_Formal_Suffix): Code reformatting. Correct the case for
226 BIP_Task_Master.
227 (Make_Build_In_Place_Call_In_Object_Declaration): Use
228 BIP_Task_Master when creating a reference to the enclosing
229 function's _master formal.
230 (Move_Activation_Chain): Use BIP_Task_Master when creating a reference
231 to the _master.
232 * exp_ch6.ads: Change BIP_Master to BIP_Task_Master.
233 (Needs_BIP_Finalization_Master): Alphabetized.
234 * sem_ch6.adb (Create_Extra_Formals): Update the usage of
235 BIP_Task_Master.
236
2372011-10-14 Ed Schonberg <schonberg@adacore.com>
238
239 * par-ch6.adb (P_Return_Object_Declaration): In Ada 2012 mode,
240 reject an aliased keyword on the object declaration of an extended
241 return statement. In older versions of the language indicate
242 that this is illegal in the standard.
243
2442011-10-14 Pascal Obry <obry@adacore.com>
245
246 * sem_util.adb, sem_ch4.adb: Minor reformatting.
247
2482011-10-14 Ed Schonberg <schonberg@adacore.com>
249
250 * sem_ch13.adb: Recognize properly procedure calls that are
251 transformed into code statements.
252
2532011-10-14 Vincent Celier <celier@adacore.com>
254
255 * projects.texi: Minor fix in project example.
256
f2d10a02
AC
2572011-10-14 Ed Schonberg <schonberg@adacore.com>
258
259 * sem_util.adb: Return objects are aliased if their type is
260 immutably limited as per AI05-0053.
261
2622011-10-14 Gary Dismukes <dismukes@adacore.com>
263
264 * exp_ch4.adb (Expand_N_Op_And): Remove Short_Circuit_And_Or
265 expansion code (moved to sem_res) (Expand_N_Op_Or): Remove
266 Short_Circuit_And_Or expansion code (moved to sem_res).
267 * sem_res.adb (Resolve_Logical_Op): Add code to rewrite Boolean
268 "and" and "or" operators as short-circuit "and then" and "or
269 else", when pragma Short_Circuit_And_Or is active.
270
2fcc44fa
AC
2712011-10-13 Robert Dewar <dewar@adacore.com>
272
273 * sem_ch9.adb, sem_util.adb, sem_util.ads, exp_ch6.adb, sem_ch4.adb,
274 sem_ch6.adb, exp_ch3.adb: Minor reformatting.
275
2762011-10-13 Arnaud Charlet <charlet@adacore.com>
277
278 * Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add a-ngcoar.o.
279
2802011-10-13 Jerome Guitton <guitton@adacore.com>
281
282 * sysdep.c (__gnat_get_task_options): Re-enable VX_SPE_TASK on vThreads
283
2842011-10-13 Eric Botcazou <ebotcazou@adacore.com>
285
286 * a-convec.ads (Cursor): Minor reformatting.
287 * a-convec.adb (Next): Fix minor inconsistencies.
288 (Previous): Likewise.
289
9b62eb32
AC
2902011-10-13 Ed Schonberg <schonberg@adacore.com>
291
292 * sem_util.ads, sem_util.adb (Available_Full_View_Of_Component):
293 New predicate to determine whether some operations on an array
294 type are available when the full view of its component may differ
295 from the view of the point of the array declaration.
296 * sem_ch4.adb (Find_Equality_Types): Use
297 Available_Full_View_Of_Component.
298 * sem_type.adb (Valid_Boolean_Arg, Valid_Comparison_Arg): Ditto
299
3002011-10-13 Ed Schonberg <schonberg@adacore.com>
301
302 * sem_ch9.adb: Analyze aspects while discriminants of protected
303 type are visible.
304
3052011-10-13 Geert Bosch <bosch@adacore.com>
306
307 * Makefile.rtl (GNATRTL_TASKING_OBJECTS): Add
308 a-nlcoar.o, a-nllcar.o, a-nucoar.o and s-gearop.o, as these no
309 longer depend on an external library.
310 * gcc-interface/Makefile.in (GNATRTL_LINEARALGEBRA_OBJS): Remove
311 a-nlcoar.o, a-nllcar.o, a-nucoar.o and s-gearop.o.
312 Update dependencies.
313 * gcc-interface/Make-lang.in: Update dependencies.
314
1a36a0cd
AC
3152011-10-13 Cyrille Comar <comar@adacore.com>
316
317 * gnat_ugn.texi: Minor editing.
318
3192011-10-13 Vincent Celier <celier@adacore.com>
320
321 * projects.texi: Add documentation on packages and attributes
322 that are inherited from a project being extended into the
323 extended project.
324
3252011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
326
327 * exp_ch3.adb (Build_Master): Rewritten.
328 (Expand_N_Full_Type_Declaration): Reformat the declarative
329 region. Update the call to Build_Master_Renaming.
330 (Expand_Previous_Access_Type): Rewritten.
331 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
332 Add local constant Result_Subt and update related usage.
333 (Expand_N_Extended_Return_Statement): Add local constant
334 Result_Subt and update related usage.
335 * exp_ch9.adb (Build_Activation_Chain): Rewritten to use the
336 new context detection mechanism.
337 (Build_Class_Wide_Master):
338 Use Insert_Action to add the renaming into the tree.
339 (Build_Master_Entity): Rewritten to use the new context detection
340 mechanism.
341 (Build_Master_Renaming): Add formal parameter Ins_Nod
342 and related usage. Use Insert_Action to add the renaming into the
343 tree.
344 (Find_Enclosing_Context): New subsidiary routine. Rather
345 than relying on enclosing scopes, this routine looks at the
346 tree structure to figure out the proper context for a _master
347 or a _chain. This approach eliminates the issues with transient
348 scopes which have not been converted into blocks.
349 * exp_ch9.ads (Build_Master_Entity): Change parameter profile
350 to better reflect the new usage. Update the related comment.
351 (Build_Master_Renaming): Add formal parameter Ins_Nod. Update
352 the comment on usage.
353 * sem_ch3.adb (Access_Definition): Update the calls to
354 Build_Master_Entity and Build_Master_Renaming.
355 * sem_ch6.adb (Create_Extra_Formals): Add local variable
356 Full_Subt. Code reformatting.
357 * sem_util.adb (Is_Iterator): Alphabetized.
358 (Is_LHS): Alphabetized.
359 (Is_Limited_Class_Wide_Type): New routine.
360 * sem_util.ads (Is_Limited_Class_Wide_Type): New routine.
361
a5917ffb
GB
3622011-10-13 Geert Bosch <bosch@adacore.com>
363
364 * a-ngrear.adb (Solve): Make generic and move to
365 System.Generic_Array_Operations.
366 * s-gearop.ads (Matrix_Vector_Solution, Matrix_Matrix_Solution):
367 New generic solvers to compute a vector resp. matrix Y such
368 that A * Y = X, approximately.
369 * s-gearop.adb (Matrix_Vector_Solution, Matrix_Matrix_Solution):
370 Implement using Forward_Eliminate and Back_Substitute
371 * a-ngcoar.adb: Reimplement in pure Ada to remove dependencies
372 on BLAS and LAPACK.
373 * a-ngcoar.ads ("abs"): Fix return type to be real.
374
574ec945
EB
3752011-10-13 Eric Botcazou <ebotcazou@adacore.com>
376
377 PR ada/50589
378 * s-linux-alpha.ads: Do not "with" Interfaces.C.
379 * s-linux-sparc.ads: Likewise.
380
8668ea36
GB
3812011-10-13 Geert Bosch <bosch@adacore.com>
382
383 * s-gearop.ads (Forward_Eliminate): Add "abs" formal function
384 returning a Real.
385 * s-gearop.adb (Forward_Eliminate): Remove local "abs" function
386 and use formal.
387 * a-ngrear.adb (Forward_Eliminate): Adjust instantiation for
388 new profile.
389
edcf5983
GB
3902011-10-13 Geert Bosch <bosch@adacore.com>
391
392 * a-ngrear.adb, s-gearop.adb, s-gearop.ads (Sqrt): Make generic and
393 move to System.Generic_Array_Operations.
394
a4935dea
GB
3952011-10-13 Geert Bosch <bosch@adacore.com>
396
397 * a-ngrear.adb ("abs"): Adjust for modified L2_Norm generic
398 * s-gearop.ads (L2_Norm): Change profile to be suitable for
399 Complex_Vector
400 * s-gearop.adb (L2_Norm): Reimplement using direct definition,
401 not inner product
402
3e7302c3
AC
4032011-10-13 Robert Dewar <dewar@adacore.com>
404
405 * exp_ch5.adb, sem_ch3.adb, impunit.adb, impunit.ads, sem_type.adb,
406 prj-proc.adb, exp_ch9.adb, s-regpat.adb, sem_ch10.adb, sem_prag.adb,
407 sem_ch12.adb, freeze.adb, sem_attr.adb, sem_attr.ads, gnatlink.adb,
408 par-ch6.adb, exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, sem_ch8.adb,
409 par-util.adb, sem_ch13.adb, lib-xref.adb, g-trasym.adb, g-trasym.ads,
410 exp_aggr.adb, s-taprop-posix.adb: Minor reformatting.
411
4122011-10-13 Geert Bosch <bosch@adacore.com>
413
414 * s-gearop.adb: Minor comment additions.
415
8417f4b2
AC
4162011-10-13 Fedor Rybin <frybin@adacore.com>
417
418 * gnat_ugn.texi: Add gnattest section.
419
4202011-10-13 Ed Schonberg <schonberg@adacore.com>
421
422 * freeze.adb: Do not create body of renaming if declaration has
423 errors.
424
4252011-10-13 Olivier Hainque <hainque@adacore.com>
426
427 * init.c (__gnat_error_handler - vxworks case): Restrict sigtramp calls
428 further, to the ppc+kernel case only.
429
4302011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
431
432 * exp_ch4.adb (Expand_N_Allocator): Comment reformatting.
433 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call):
434 Do not create a pool formal on .NET/JVM.
435 (Expand_N_Extended_Return_Statement): Alphabetize local
436 variables. Do not create a renaming of the build-in-place pool
437 parameter on .NET/JVM. (Make_Build_In_Place_Call_In_Allocator):
438 Add the user-defined pool only on non-VM targets.
439 (Make_Build_In_Place_Call_In_Object_Declaration): Alphabetize
440 local variables. Do not add a pool actual on .NET/JVM.
441 * sem_ch6.adb: Add with and use clause for Targparm.
442 (Create_Extra_Formals): Add build-in-place pool formal only on
443 non-VM targets.
444 * rtsfind.ads: Alphabetize entries.
445
4674dd21
AC
4462011-10-13 Sergey Rybin <rybin@adacore.com>
447
448 * gnat_ugn.texi: Minor correction.
449
4502011-10-13 Ed Schonberg <schonberg@adacore.com>
451
452 * sem_ch8.adb: Minor error message improvement.
453
4542011-10-13 Robert Dewar <dewar@adacore.com>
455
456 * a-cbprqu.adb, a-ciorma.adb, exp_ch3.adb: Minor reformatting.
457
95aeda79
GD
4582011-10-13 Gary Dismukes <dismukes@adacore.com>
459
460 * exp_ch5.adb (Expand_N_Loop_Statement): For the transformation
461 of a for loop for an enumeration type with an enumeration rep
462 clause, which involves moving the original loop parameter into
463 a nested block, the loop parameter's entity must be removed from
464 the entity list of the loop scope.
465
200b7162
BD
4662011-10-13 Bob Duff <duff@adacore.com>
467
468 * exp_ch6.ads (BIP_Storage_Pool): New "extra implicit parameter"
469 that gets passed in the same cases where BIP_Alloc_Form is passed
470 (caller-unknown-size results). BIP_Storage_Pool is used when
471 BIP_Alloc_Form = User_Storage_Pool. In that case, a pointer
472 to the user-defined storage pool is passed at the call site,
473 and this pool is used in callee to allocate the result.
474 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call): New
475 version of Add_Alloc_Form_Actual_To_Build_In_Place_Call. Passes
476 the additional BIP_Storage_Pool actual.
477 (Expand_N_Extended_Return_Statement): Allocate the function
478 result using the user-defined storage pool, if BIP_Alloc_Form =
479 User_Storage_Pool.
480 * sem_ch6.adb: Add the "extra formal" for BIP_Storage_Pool.
481 * exp_ch4.adb: Don't overwrite storage pool set by
482 Expand_N_Extended_Return_Statement.
483 * s-stopoo.ads, rtsfind.ads (Root_Storage_Pool_Ptr): New type,
484 for use in build-in-place function calls within allocators
485 where the access type has a user-defined storage pool.
486
9f8d1e5c
AC
4872011-10-13 Sergey Rybin <rybin@adacore.com>
488
489 * gnat_ugn.texi, vms_data.ads: Add an option to control enumeration
490 literal casing.
491
4922011-10-13 Nicolas Roche <roche@adacore.com>
493
494 * gnatlink.adb: Ensure that -mrtp is passed when
495 runtime name ends with 'rtp'.
496
4972011-10-13 Ed Schonberg <schonberg@adacore.com>
498
499 * sem_prag.adb (Analyze_Pragma, case Unchecked_Union): an
500 unchecked union type can be limited.
501
5022011-10-13 Olivier Hainque <hainque@adacore.com>
503
504 * init.c (__gnat_error_handler) <VxWorks version>: Add comments on
505 the use of the signal trampoline for PPC in the sjlj case as well.
506 Add legitimate casts, preventing compile time warnings on the
507 (sighandler *) profile.
508
5092011-10-13 Yannick Moy <moy@adacore.com>
510
511 * sem_aggr.adb (Resolve_Aggr_Expr): Always perform semantic
512 analysis in Alfa mode.
513
5142011-10-13 Ed Schonberg <schonberg@adacore.com>
515
516 * sem_ch3.adb (OK_For_Limited_Init_In_05): Conditional and case
517 expressions are legal limited return values if each one of their
518 dependent expressions are legal.
519
5202011-10-13 Ed Schonberg <schonberg@adacore.com>
521
522 * sem_ch6.adb (Analyze_Procedure_Call_Statement): In Ada 2012 mode,
523 if the prefix of the call is a qualified expression, rewrite as
524 a code statement.
525 * sem_ch13.adb (Analyze_Code_Statement): In Ada 2012 mode, the
526 code statement is legal if it is a rewriting of a procedure call.
527
5282011-10-13 Ed Schonberg <schonberg@adacore.com>
529
530 * exp_aggr.adb (Flatten): If a component association has a box,
531 assume that aggregate is not static.
532 (Safe_Aggregate): If a component association in a non-limited
533 aggregate has a box, assume that it cannot be expanded in place.
534
5352011-10-13 Vincent Celier <celier@adacore.com>
536
537 * prj-conf.adb (Get_Or_Create_Configuration_File): Call
538 Process_Project_Tree_Phase_1 with Packages_To_Check.
539 (Process_Project_And_Apply_Config): Ditto
540 * prj-part.ads, prj-part.adb, prj-pars.ads, prj-pars.adb (Parse):
541 Remove default for argument Packages_To_Check.
542 * prj-proc.adb (Recursive_Process): New argument
543 Packages_To_Check.
544 (Process): Ditto.
545 (Process_Project_Tree_Phase_1): Ditto.
546 (Recursive_Project.Process_Aggregated_Projects): Call
547 Prj.Part.Parse and Process_Project_Tree_Phase_1 with
548 Packages_To_Check.
549 * prj-proc.ads (Process): New argument Packages_To_Check
550 (Process_Project_Tree_Phase_1): Ditto
551
46f8e1ac
AC
5522011-10-13 Arnaud Charlet <charlet@adacore.com>
553
554 * gcc-interface/Makefile.in: Fix typo.
555
8097203f
AC
5562011-10-13 Ed Schonberg <schonberg@adacore.com>
557
558 * sem_ch12.adb (Analyze_Formal_{Floating_Type,
559 Signed_Integer_Type, Decimal_Fixed_Point_Type, Discrete_Type}):
560 Use sloc of defining identifier of farmal type declaration,
561 as sloc of generated internal entity, to prevent misplaced
562 references in ali.
563
5642011-10-13 Ed Schonberg <schonberg@adacore.com>
565
566 * sem_intr.adb (Check_Intrinsic_Operator): Check that type
567 is fully defined before checking that it is a numeric type.
568
5692011-10-13 Ed Schonberg <schonberg@adacore.com>
570
571 * sem_aggr.adb (Resolve_Record_Aggregate): If a component
572 association for component X has a box, then X is covered in the
573 aggregate even if there is not default value for X in the type
574 declaration, and X has to be default-initialized.
575
5762011-10-13 Ed Schonberg <schonberg@adacore.com>
577
578 * sem_attr.adb (Check_Enum_Image, Analyze_Attribute case
579 'Value): Mark literals as referenced only if reference is in
580 current source unit.
581
5822011-10-13 Matthew Heaney <heaney@adacore.com>
583
584 * a-csquin.ads (Enque, Dequeue): Mark interface operations as entries.
585
5862011-10-13 Olivier Hainque <hainque@adacore.com>
587
588 * sigtramp.h: New file. Prototype and spec of the signal
589 trampoline to be called by an established handler to provide
590 dwarf call frame info before the real signal processing code.
591 * sigtramp-ppcvxw.c: New file. Implementation of the signal
592 trampoline for ppc-vxworks.
593 * init.c (vxworks section): Use it for ppc.
594
e192a2cd
AC
5952011-10-13 Thomas Quinot <quinot@adacore.com>
596
597 * par-ch2.adb, par.adb, par-util.adb, par-ch3.adb
598 (Check_Future_Identifier): New subprogram,
599 factors duplicated code from Par.Ch2.P_Identifier and
600 Par.Ch3.P_Defining_Identifier.
601
6022011-10-13 Thomas Quinot <quinot@adacore.com>
603
604 * s-taprop-posix.adb (Initialize): Always raise Storage_Error
605 if we fail to initialize CV attributes or CV.
606
6072011-10-13 Thomas Quinot <quinot@adacore.com>
608
609 * s-tasren.adb (Timed_Selective_Wait, case
610 Accept_Alternative_Selected): Use Defer_Abort_Nestable, since
611 we know abortion is already deferred.
612
6132011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
614
615 * exp_ch3.adb (Build_Class_Wide_Master): Moved to exp_ch9.
616 (Build_Master_Renaming (function)): Removed.
617 (Build_Master_Renaming (procedure)): Moved to exp_ch9.
618 (Expand_Full_Type_Declaration): Alphabetize
619 variables. Reformatting of code and comments. Rewrite the
620 section on processing of anonymous access-to-task types in
621 record components.
622 * exp_ch3.ads (Build_Class_Wide_Master): Moved to exp_ch9.
623 (Build_Master_Renaming): Moved to exp_ch9.
624 * exp_ch9.adb (Build_Class_Wide_Master): Moved from exp_ch3.
625 (Build_Master_Entity): Add formal parameter
626 Use_Current. Reformatting of code and comments.
627 (Build_Master_Renaming): Moved from exp_ch3.
628 * exp_ch9.ads (Build_Class_Wide_Master): Moved from
629 exp_ch3. Update comment on usage.
630 (Build_Master_Entity):
631 Add formal parameter Use_Current. Update comment on usage.
632 (Build_Master_Renaming): Moved from exp_ch3.
633 * sem_ch3.adb (Access_Definition): Remove redundant code to
634 create a _master and a renaming.
635
6362011-10-13 Ed Schonberg <schonberg@adacore.com>
637
638 * lib-xref.adb: Do no emit reference to overridden operation,
639 if it is internally generated.
640
6412011-10-13 Vincent Celier <celier@adacore.com>
642
643 * bindgen.adb: Remove any processing related to g-trasym
644 * Makefile.rtl: Add g-trasym.o to GNATRTL_NONTASKING_OBJS
645 * mlib-prj.adb: Remove any processing related to g-trasym.
646
0cfaf83f
EB
6472011-10-12 Eric Botcazou <ebotcazou@adacore.com>
648
649 * sem_util.adb (Denotes_Same_Prefix): Fix fatal warning.
650 * gcc-interface/Make-lang.in (WARN_ADAFLAGS): New.
651 (ALL_ADAFLAGS): Include WARN_ADAFLAGS.
652 (ADA_FLAGS_TO_PASS): Likewise.
653 (COMMON_FLAGS_TO_PASS): New.
654 (ADA_TOOLS_FLAGS_TO_PASS): Use COMMON_FLAGS_TO_PASS. In the regular
655 native case, also use FLAGS_TO_PASS and ADA_FLAGS_TO_PASS.
656 (gnatlib): Use COMMON_FLAGS_TO_PASS.
657 (ada.install-common): Likewise.
658 (install-gnatlib): Likewise.
659 (install-gnatlib-obj): Likewise.
660 (gnattools): Use ADA_TOOLS_FLAGS_TO_PASS for gnattools1 as well.
661 (gnat-cross): Delete.
662 (gnatboot): Likewise.
663 (gnatboot2): Likewise.
664 (gnatboot3): Likewise.
665 (gnatstage1): Likewise.
666 (gnatstage2): Likewise.
667 * gcc-interface/Makefile.in (SOME_ADAFLAGS): Likewise.
668 (MOST_ADAFLAGS): Likewise.
669 (LOOSE_CFLAGS): Likewise.
670 (gnat-cross): Likewise.
671 (GNATLIBFLAGS): Add -W -Wall.
672 (GNATLIBCFLAGS_FOR_C): Likewise.
673 * gcc-interface/lang.opt: Remove C-specific warnings. Add doc lines.
674 * gcc-interface/misc.c (gnat_handle_option): Remove obsolete cases.
675
722356ce
EB
6762011-10-12 Eric Botcazou <ebotcazou@adacore.com>
677
678 * gcc-interface/trans.c (Attribute_to_gnu): Use remove_conversions.
679 (push_range_check_info): Likewise.
680 (gnat_to_gnu) <N_Code_Statement>: Likewise.
681 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Likewise.
682 (gnat_invariant_expr): Likewise.
683 * gcc-interface/utils.c (compute_related_constant): Likewise.
684 (max_size): Fix handling of SAVE_EXPR.
685 (remove_conversions): Fix formatting.
686
15bf7d19
EB
6872011-10-12 Eric Botcazou <ebotcazou@adacore.com>
688
689 * gcc-interface/ada-tree.h (DECL_LOOP_PARM_P): New flag.
690 (DECL_INDUCTION_VAR): New macro.
691 (SET_DECL_INDUCTION_VAR): Likewise.
692 * gcc-interface/gigi.h (convert_to_index_type): Declare.
693 (gnat_invariant_expr): Likewise.
694 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: If this is a loop
695 parameter, set DECL_LOOP_PARM_P on it.
696 * gcc-interface/misc.c (gnat_print_decl) <VAR_DECL>: If DECL_LOOP_PARM_P
697 is set, print DECL_INDUCTION_VAR instead of DECL_RENAMED_OBJECT.
698 * gcc-interface/trans.c (gnu_loop_label_stack): Delete.
699 (struct range_check_info_d): New type.
700 (struct loop_info_d): Likewise.
701 (gnu_loop_stack): New stack.
702 (Identifier_to_gnu): Set TREE_READONLY flag on the first dereference
703 built for a by-double-ref read-only parameter. If DECL_LOOP_PARM_P
704 is set, do not test DECL_RENAMED_OBJECT.
705 (push_range_check_info): New function.
706 (Loop_Statement_to_gnu): Push a new struct loop_info_d instead of just
707 the label. Reference the label and the iteration variable from it.
708 Build the special induction variable in the unsigned version of the
709 size type, if it is larger than the base type. And attach it to the
710 iteration variable if the latter isn't by-ref. In the iteration scheme
711 case, initialize the invariant conditions in front of the loop if
712 deemed profitable. Use gnu_loop_stack.
713 (gnat_to_gnu) <N_Exit_Statement>: Use gnu_loop_stack.
714 <N_Raise_Constraint_Error>: Always process the reason. In the range
715 check and related cases, and if loop unswitching is enabled, compute
716 invariant conditions and push this information onto the stack.
717 Do not translate again the condition if it has been already translated.
718 * gcc-interface/utils.c (record_global_renaming_pointer): Assert that
719 DECL_LOOP_PARM_P isn't set.
720 (convert_to_index_type): New function.
721 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Use it in order
722 to convert the index from the base index type to sizetype.
723 (gnat_invariant_expr): New function.
724
e79983f4
MM
7252011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
726
727 * gcc-interface/utils.c (def_builtin_1): Delete old interface with
728 two parallel arrays to hold standard builtin declarations, and
729 replace it with a function based interface that can support
15bf7d19 730 creating builtins on the fly in the future.
e79983f4
MM
731 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Ditto.
732 (gnat_to_gnu): Ditto.
733
228ee426
EB
7342011-10-07 Eric Botcazou <ebotcazou@adacore.com>
735
736 PR lto/50492
737 * gcc-interface/gigi.h (gnat_pushdecl): Adjust comment.
738 * gcc-interface/utils.c (global_context): New variable.
739 (gnat_pushdecl): Initialize it and set it as the DECL_CONTEXT of DECLs
740 that are either public external or at top level. Use "No" macro.
741 (end_subprog_body): Call decl_function_context.
742 (rest_of_subprog_body_compilation): Likewise.
743
71196d4e
EB
7442011-10-07 Eric Botcazou <ebotcazou@adacore.com>
745
746 * gcc-interface/gigi.h (gnat_useless_type_conversion): Declare.
747 (rest_of_subprog_body_compilation): Likewise.
748 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: For renaming,
749 test for useless conversions by means of gnat_useless_type_conversion.
750 * gcc-interface/trans.c: Include bitmap.h and cgraph.h.
751 (language_function): Add named_ret_val and other_ret_val.
752 (f_named_ret_val): New macro.
753 (f_other_ret_val): Likewise.
754 (gigi): Call rest_of_subprog_body_compilation.
755 (struct nrv_data): New structure.
756 (is_nrv_p): New predicate.
757 (prune_nrv_r): New helper function.
758 (prune_nrv_in_block): New function.
759 (finalize_nrv_r): New helper function.
760 (finalize_nrv): New function.
761 (return_value_ok_for_nrv_p): New predicate.
762 (build_return_expr): If optimization is enabled, record candidates for
763 the Named Return Value optimization.
764 (build_function_stub): Call rest_of_subprog_body_compilation.
765 (Subprogram_Body_to_gnu): If optimization is enabled and there are
766 candidates, finalize the Named Return Value optimization.
767 Call rest_of_subprog_body_compilation.
768 (call_to_gnu): At the end, if a return value is needed, simplify the
769 result before wrapping it up in a COMPOUND_EXPR.
770 * gcc-interface/utils.c (end_subprog_body): Split into...
771 (rest_of_subprog_body_compilation): ...this. New function.
772 (gnat_useless_type_conversion): Likewise.
773
885c4871
AC
7742011-10-06 Thomas Quinot <quinot@adacore.com>
775
776 * einfo.ads, exp_attr.adb, exp_ch3.adb, exp_ch4.adb, exp_ch7.adb,
777 exp_ch9.adb, exp_ch9.ads, exp_strm.adb, exp_util.adb, freeze.adb,
778 g-debpoo.ads, opt.ads, par-ch12.adb, par-ch2.adb, par-ch3.adb,
779 par-ch5.adb, par-ch6.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
780 sem_ch10.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
781 sem_ch6.adb, sem_intr.adb, sem_res.ads, sem_type.adb, sem_util.adb,
782 s-regpat.adb, s-tpopde-vms.ads: Minor reformatting.
783 * s-osinte-freebsd.ads: Fix for tasking failures on FreeBSD.
784
7852011-10-06 Ed Schonberg <schonberg@adacore.com>
786
787 * a-cihase.adb, a-ciorma.adb: Avoid accessibility checks in container
788 references.
789
7902011-10-06 Matthew Heaney <heaney@adacore.com>
791
792 * a-cuprqu.ads, a-cuprqu.adb, a-cbprqu.ads, a-cbprqu.adb
793 (Dequeue_Only_High_Priority): Protected procedure now implemented.
794
7952011-10-06 Vincent Celier <celier@adacore.com>
796
797 * g-trasym.adb: Replace old implementation with the default
798 implementation that returns list of addresses as "0x...".
799 * g-trasym.ads: Update the list of platforms with the full
800 capability. Indicate that there is a default implementation
801 for other platforms.
802 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: Remove.
803 * gcc-interface/Makefile.in: Remove g-trasym-unimplemented, as there
804 is now a default implementation for all platforms without the full
805 capability.
806
ce72a9a3
AC
8072011-10-06 Robert Dewar <dewar@adacore.com>
808
809 * a-ciorse.adb, a-cihase.adb, a-cihase.ads, a-coorse.adb,
810 a-cborse.adb, a-comutr.adb, a-ciorma.adb, a-cbmutr.adb,
811 a-cbmutr.ads, a-cbhase.adb, a-cbhase.ads: Minor reformatting and code
812 reorganization (use conditional expressions).
813
8142011-10-06 Robert Dewar <dewar@adacore.com>
815
816 * sem_res.adb (Resolve_Arithmetic_Op): Fix bad warning for
817 floating divide by zero.
818
8192011-10-06 Ed Schonberg <schonberg@adacore.com>
820
821 * sem_ch6.adb: Limited interfaces that are not immutably limited
822 are OK in return statements.
823
a912d7d9
IS
8242011-09-30 Iain Sandoe <iains@gcc.gnu.org>
825
826 * gcc-interface/Makefile.in (Darwin): Partial reversion of previous
827 change to powerpc section.
828
39ffb1f9
IS
8292011-09-29 Iain Sandoe <iains@gcc.gnu.org>
830
831 * gcc-interface/Makefile.in (Darwin): Factor LIBGNAT_TARGET_PAIRS
832 across the port.
833
ffb35bbf
ES
8342011-09-27 Ed Schonberg <schonberg@adacore.com>
835
836 * a-cbhase.adb, a-cbhase.ads, a-cborse.adb, a-cborse.ads,
837 a-cihase.adb, a-cihase.ads, a-ciorse.adb, a-ciorse.ads,
838 a-coorse.adb, a-coorse.ads: Add iterator machinery to bounded sets and
839 indefinite sets.
840 * a-coorma.ads: Minor reformmating.
841 * einfo.ads: Improve the comment describing the
842 Directly_Designated_Type function.
843 * a-ciorma.adb, a-ciorma.ads: Add iterator machinery to indefinite
844 ordered maps.
845 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
846 dependencies.
847
da124b6a
AC
8482011-09-27 Robert Dewar <dewar@adacore.com>
849
850 * a-comutr.ads: Minor reformatting.
851
8522011-09-27 Ed Schonberg <schonberg@adacore.com>
853
854 * a-cimutr.adb, a-cimutr.ads, a-cbmutr.adb, a-cbmutr.ads: Add children
855 iterators to multiway trees.
856
8572011-09-27 Yannick Moy <moy@adacore.com>
858
859 * debug.adb (d.D): New option for strict Alfa mode.
860 * opt.ads (Strict_Alfa_Mode): New flag to interpret compiler
861 permissions as strictly as possible.
862 * sem_ch3.adb (Signed_Integer_Type_Declaration): In non-strict
863 Alfa mode, now, interpret ranges of base types like GNAT does; in
864 strict mode, simply change the range of the implicit base Itype.
865 * gnat1drv.adb: Update comments. Set Strict_Alfa_Mode.
866
706a4067
AC
8672011-09-27 Robert Dewar <dewar@adacore.com>
868
869 * exp_ch9.adb: Minor comment fixes.
870
8712011-09-27 Ed Schonberg <schonberg@adacore.com>
872
873 * a-comutr.adb, a-comutr.ads: Add children iterators on multiway
874 trees.
875
05c1e7d2
AC
8762011-09-27 Eric Botcazou <ebotcazou@adacore.com>
877
878 * checks.adb (Apply_Scalar_Range_Check): Use Designated_Type
879 instead of Directly_Designated_Type in the indirect array case.
880
8812011-09-27 Robert Dewar <dewar@adacore.com>
882
883 * exp_util.adb, exp_aggr.adb: Minor reformatting.
884
65e78a74
AC
8852011-09-27 Ed Schonberg <schonberg@adacore.com>
886
887 * sinfo.ads, par-ch3.adb: Minor comment update: aspect specification
888 on subtype declarations.
889 * exp_aggr.adb: Minor comment update.
890
8912011-09-27 Eric Botcazou <ebotcazou@adacore.com>
892
893 * exp_util.adb (Safe_Prefixed_Reference): Remove always-false
894 test in the N_Explicit_Dereference case. Fold double logical
895 negation in the special loop case and conditionalize it on
896 Variable_Ref being true.
897
8982011-09-27 Ed Schonberg <schonberg@adacore.com>
899
900 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is a
901 single protected object and the selector is a discriminant or an
902 entry family, this is a non-overloaded candidate interpretation,
903 and possible primitive operations of the type must not be
904 examined.
905
9062011-09-27 Arnaud Charlet <charlet@adacore.com>
907
908 * s-taspri-posix-noaltstack.ads (Lock): Mark fields aliased.
909
6f5add73
AC
9102011-09-27 Pascal Obry <obry@adacore.com>
911
912 * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
913 s-osinte-irix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads:
914 Add dummy definitions for pthread_rwlock_t
915 and pthread_rwlockattr_t on all POSIX platforms.
916 * s-taprop-irix.adb, s-taprop-posix.adb (Initialize_Lock): Fix lock
917 reference.
918 (Finalize_Lock): Likewise.
919 (Write_Lock): Likewise.
920 (Unlock): Likewise.
921
9222011-09-27 Tristan Gingold <gingold@adacore.com>
923
924 * s-tassta.adb (Task_Wrapper): Increase Guard_Page_Size value for
925 windows 64.
926
64a63cd5
PO
9272011-09-27 Pascal Obry <obry@adacore.com>
928
929 * s-osinte-hpux.ads, s-taprop-vxworks.adb, s-taspri-vxworks.ads,
930 s-taprop-tru64.adb, s-osinte-aix.ads, s-taspri-posix-noaltstack.ads,
931 s-taspri-mingw.ads, s-taprop-vms.adb, s-tpoben.adb, s-tpoben.ads,
932 s-taprop-mingw.adb, s-taprob.adb, s-taprob.ads,
933 s-osinte-solaris-posix.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
934 s-osinte-irix.ads, s-taprop-irix.adb, s-osinte-darwin.ads,
935 s-taspri-dummy.ads, s-taspri-posix.ads, s-taprop.ads,
936 s-taspri-vms.ads, s-osinte-freebsd.ads, s-taprop-hpux-dce.adb,
937 s-taspri-hpux-dce.ads, s-taspri-tru64.ads, s-taprop-dummy.adb,
938 s-taprop-posix.adb: Revert previous changes.
939 (Lock): Now a record containing the two possible lock
940 (mutex and read/write) defined in OS_Interface.
941 * s-taprop-linux.adb (Finalize_Protection): Use r/w lock for
942 'R' locking policy.
943 (Initialize_Protection): Likewise.
944 (Lock): Likewise.
945 (Lock_Read_Only): Likewise.
946 (Unlock): Likewise.
947
f672a756
AC
9482011-09-27 Pascal Obry <obry@adacore.com>
949
950 * s-taspri-posix-noaltstack.ads (RW_Lock): This type is now defined as
951 OS_Interface.pthread_rwlock_t.
952
9532011-09-27 Robert Dewar <dewar@adacore.com>
954
955 * exp_ch9.adb, a-cimutr.adb, a-cimutr.ads, gnat1drv.adb, a-comutr.adb,
956 a-comutr.ads, exp_dist.adb, a-cbmutr.adb, a-cbmutr.ads,
957 sem_ch5.adb, sem_util.adb: Minor reformatting.
958
7a44cb69
PO
9592011-09-27 Pascal Obry <obry@adacore.com>
960
961 * s-taprop.ads (Initialize_Lock)[RW_Lock]: New spec for r/w lock.
962 (Finalize_Lock)[RW_Lock]: Likewise.
963 (Write_Lock)[RW_Lock]: Likewise.
964 (Unlock)[RW_Lock]: Likewise.
965 (Read_Lock): Define L as RW_Lock (instead of Lock).
966 * s-taprop-linux.adb (Initialize_Lock)[RW_Lock]: New
967 routine for r/w lock.
968 (Finalize_Lock)[RW_Lock]: Likewise.
969 (Write_Lock)[RW_Lock]: Likewise.
970 (Unlock)[RW_Lock]: Likewise.
971 (Read_Lock): Define L as RW_Lock (instead of Lock).
972
973 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
974 s-taprop-mingw.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
975 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
976 (Initialize_Lock)[RW_Lock]: Same implementation as corresponding
977 routine for standard lock.
978 (Finalize_Lock)[RW_Lock]: Likewise.
979 (Write_Lock)[RW_Lock]: Likewise.
980 (Unlock)[RW_Lock]: Likewise.
981 (Read_Lock): Define L as RW_Lock (instead of Lock).
982 * s-taprob.ads, s-tpoben.ads (Protection): Add RWL (RW_Lock)
983 in the record definition.
984 * s-taprob.adb, s-taproben.adb (Finalize_Protection): Use r/w
985 lock for 'R' locking policy.
986 (Initialize_Protection): Likewise.
987 (Lock): Likewise.
988 (Lock_Read_Only): Likewise.
989 (Unlock): Likewise.
990 * s-taspri-posix.ads (RW_Lock): New type defined as
991 OS_Interface.pthread_rwlock_t.
992
993 * s-taspri-vxworks.ads, s-taspri-posix-noaltstack.ads,
994 s-taspri-mingw.ads, s-taspri-solaris.ads, s-taspri-dummy.ads,
995 s-taspri-posix.ads, s-taspri-vms.ads, s-taspri-hpux-dce.ads,
996 s-taspri-tru64.ads (RW_Lock): New type defined as alias to Lock.
997
4c173b50
PO
9982011-09-27 Pascal Obry <obry@adacore.com>
999
1000 * exp_ch9.adb, s-taspri-posix.ads: Minor reformatting.
1001
10022011-09-27 Pascal Obry <obry@adacore.com>
1003
1004 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
1005 s-osinte-hpux.ads, s-osinte-irix.ads,
1006 s-osinte-solaris-posix.ads (pthread_rwlock_t): New definition alias of
1007 pthread_mutex_t.
1008 (pthread_rwlockattr_t): New definition alias of pthread_mutexattr_t.
1009 * s-osinte-linux.ads (pthread_rwlock_t, pthread_rwlockattr_t,
1010 pthread_rwlockattr_init, pthread_rwlockattr_destroy,
1011 pthread_rwlockattr_setkind_np, pthread_rwlock_init,
1012 pthread_rwlock_destroy, pthread_rwlock_rdlock,
1013 pthread_rwlock_wrlock, pthread_rwlock_unlock): New.
1014
343250a6
PO
10152011-09-27 Pascal Obry <obry@adacore.com>
1016
1017 * rtsfind.ads: Add RE_Lock_Read_Only into rtsfind circuitry.
1018 (RE_Id): Add RE_Lock_Read_Only.
1019 (RE_Unit_Table): Likewise.
1020 * sem_prag.adb (Process_Convention): Change Pragma_Locking_Policy
1021 to lift restriction on first character. Handle now the
1022 Name_Concurrent_Readers_Locking where policy character is set to
1023 'R'.
1024 * snames.ads-tmpl (Name_Concurrent_Readers_Locking): New
1025 constant.
1026 * exp_ch9.adb (Build_Protected_Subprogram_Body): Generate a
1027 read only lock for function in protected object.
1028 * s-taprob.ads (Lock_Read_Only): Remove obsolete comment as
1029 this routine is now used.
1030
2d0dd51a
EB
10312011-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1032
1033 * s-atocou-x86.adb (Decrement): Use %;.
1034 (Increment): Likewise.
1035
bdbebf66
EB
10362011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1037
1038 * gcc-interface/utils2.c (build_allocator): Set TREE_THIS_NOTRAP on the
1039 dereference of the pointer to the storage area. Remove useless type
1040 conversions and factor out common code.
1041
1aa291f7
EB
10422011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1043
1044 * gcc-interface/utils.c (maybe_unconstrained_array): Declare TYPE local
1045 variable and use it throughout.
1046 <UNCONSTRAINED_ARRAY_TYPE>: Add 'break' at the end.
1047 <RECORD_TYPE>: Do not unconditionally convert to the unpadded type as a
1048 first step. Also convert to the unpadded type as a last step.
1049
7d76717d
EB
10502011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1051
1052 * gcc-interface/gigi.h (create_subprog_decl): Replace TREE_CHAIN with
1053 DECL_CHAIN in comment.
1054 * gcc-interface/trans.c (gigi): Likewise.
1055 (Attribute_to_gnu): Likewise.
1056 (build_function_stub): Likewise.
1057 (gnat_to_gnu): Likewise.
1058 * gcc-interface/utils.c (create_subprog_decl): Likewise.
1059 (convert_vms_descriptor64): Likewise.
1060 (convert_vms_descriptor32): Likewise.
1061
42acad07
EB
10622011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1063
1064 * gcc-interface/trans.c (assoc_to_constructor): Minor tweaks.
1065 * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting
1066 issues. Use COMPLETE_TYPE_P in assertion. Also set TREE_READONLY if
1067 the type of the record is TYPE_READONLY.
1068
a1d72281
EB
10692011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1070 Robert Dewar <dewar@adacore.com>
1071
1072 * sem_ch6.adb (Set_Formal_Mode): Set Can_Never_Be_Null on an IN or IN
1073 OUT formal parameter which is of an null-exclusion access subtype.
1074
a1c7d797
EB
10752011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1076
1077 * gcc-interface/ada-tree.h (DECL_CAN_NEVER_BE_NULL_P): New macro.
1078 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Set the flag.
1079 (gnat_to_gnu_param): Likewise.
1080 * gcc-interface/utils.c (convert) <UNCONSTRAINED_ARRAY_REF>: Invoke
1081 maybe_unconstrained_array instead of doing the work manually.
1082 (maybe_unconstrained_array): Propagate the TREE_THIS_NOTRAP flag.
1083 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: If operand
1084 is a DECL with the flag, set TREE_THIS_NOTRAP on the reference.
1085 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1086 (gnat_stabilize_reference): Likewise.
1087
50179d58
EB
10882011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1089
1090 * gcc-interface/ada-tree.h (TYPE_NULL_BOUNDS): New macro.
1091 (SET_TYPE_NULL_BOUNDS): Likewise.
1092 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set again
1093 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1094 * gcc-interface/trans.c (Identifier_to_gnu): Return initializers of fat
1095 pointer types.
1096 * gcc-interface/utils.c (create_var_decl_1): If the object is external,
1097 check that the initializer is a valid constant expression for use in
1098 initializing a static variable. Add missing guard.
1099 (update_pointer_to): Adjust TYPE_NULL_BOUNDS if set.
1100 (convert_to_fat_pointer): In the null fat pointer case, build a valid
1101 pointer for the bounds.
1102 * gcc-interface/utils2.c (compare_fat_pointers): New function.
1103 (build_binary_op) <EQ_EXPR>: Call it to compare fat pointers.
1104
ad1d36ba
EB
11052011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1106
1107 * gcc-interface/ada-tree.h (TREE_THIS_NOTRAP): Redefine.
1108 * gcc-interface/trans.c (Identifier_to_gnu): Factor out common code in
1109 the by-ref case. Do not set TREE_READONLY on a renamed object. Set
1110 TREE_THIS_NOTRAP on UNCONSTRAINED_ARRAY_REF nodes.
1111 (Attribute_to_gnu) <Attr_Length>: Expand the use of the parameter cache
1112 to the indirect case.
1113 * gcc-interface/utils.c (convert) <UNCONSTRAINED_ARRAY_REF>: Preserve
1114 the TREE_THIS_NOTRAP flag.
1115
6162cec0
EB
11162011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1117
1118 * gcc-interface/trans.c (Loop_Statement_to_gnu): In the case of an
1119 iteration scheme, always generate the do-while form if optimization
1120 is enabled. Use more straightforward test at the end.
1121
dee12fcd
EB
11222011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1123
1124 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Subtype>: Use
1125 XNEW instead of xmalloc. Do not build useless pointer type.
1126 <E_Anonymous_Access_Subprogram_Type>: Use XNEW instead of xmalloc.
1127 * gcc-interface/trans.c (gnat_to_gnu) <N_Raise_Constraint_Error>: Tidy.
1128 * gcc-interface/utils2.c (build_unary_op): Remove local variable.
1129
dea976c4
EB
11302011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1131
1132 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not promote
1133 the alignment if this doesn't prevent BLKmode access to the object.
1134
655ae828
IS
11352011-09-24 Iain Sandoe <iains@gcc.gnu.org>
1136
1137 * gcc-interface/Makefile.in (darwin): Do not issue the
1138 '-flat_namespace' linker flag during Ada build.
1139 * mlib-tgt-specific-darwin.adb: Remove '-flat_namespace' flag from the
1140 default shared library options.
1141
0e871c15
AO
11422011-09-19 Alexandre Oliva <aoliva@redhat.com>
1143
1144 * gcc-interface/decl.c (annotate_value): Look up expression for
1145 insertion in the cache at the end.
1146
1e6a52b4
AC
11472011-09-19 Arnaud Charlet <charlet@adacore.com>
1148
1149 * gcc-interface/Make-lang.in: Update dependencies.
1150
a3068ca6
AC
11512011-09-19 Steve Baird <baird@adacore.com>
1152
1153 * snames.ads-tmpl: Move declaration of Name_Annotate into range of
1154 configuration pragma names so that Is_Configuration_Pragma_Name
1155 will return True for Name_Annotate. Make corresponding change in
1156 Pragma_Id enumeration type. This is needed to allow an Annotate
1157 pragma to occur in a configuration pragma file (typically,
1158 a gnat.adc file).
1159 * gnat_ugn.texi: Add Annotate to the list of configuration pragmas.
1160 * gnat_rm.texi: Note that pragma Annotate may be used as a
1161 configuration pragma.
1162
11632011-09-19 Ed Schonberg <schonberg@adacore.com>
1164
1165 * a-cbmutr.adb, a-cbmutr.ads, a-cimutr.adb, a-cimutr.ads,
1166 a-comutr.adb, a-comutr.ads: Add iterator machinery for multiway trees.
1167
11682011-09-19 Yannick Moy <moy@adacore.com>
1169
1170 * exp_alfa.adb, exp_alfa.ads (Expand_Alfa_N_In): New function
1171 for expansion of set membership.
1172 (Expand_Alfa): Call expansion for N_In and N_Not_In nodes.
1173 * exp_ch4.adb, exp_ch4.ads (Expand_Set_Membership): Make procedure
1174 visible for use in Alfa expansion.
1175 * sem_ch5.adb (Analyze_Iterator_Specification): Introduce loop
1176 variable in Alfa mode.
1177
11782011-09-19 Thomas Quinot <quinot@adacore.com>
1179
1180 * s-osinte-darwin.ads: Change SIGADAABRT on Darwin to SIGABRT.
1181
11822011-09-19 Thomas Quinot <quinot@adacore.com>
1183
1184 * exp_ch9.adb: Minor reformatting.
1185
11862011-09-19 Hristian Kirtchev <kirtchev@adacore.com>
1187
1188 * freeze.adb (Build_Renamed_Body): Generic subprograms
1189 instantiations cannot be poperly inlined by the compiler, do
1190 not set the Body_To_Inline attribute in such cases.
1191 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Inherit all
1192 inlining-related flags from the generic subprogram declaration.
1193
11942011-09-19 Thomas Quinot <quinot@adacore.com>
1195
1196 * exp_dist.adb, rtsfind.ads, sem_util.adb, sem_util.ads
1197 (Build_Stub_Type): Remove, instead copy components from
1198 System.Partition_Interface.RACW_Stub_Type.
1199 (RPC_Receiver_Decl): Remainder of code from old Build_Stub_Type routine.
1200 (Copy_Component_List): New subprogram.
1201
12022011-09-19 Yannick Moy <moy@adacore.com>
1203
1204 * lib-xref.adb (Generate_Reference): Ignore references to
1205 constants in Standard.
1206
e7fceebc
AC
12072011-09-19 Robert Dewar <dewar@adacore.com>
1208
1209 * err_vars.ads, errout.ads: Minor reformatting.
1210
12112011-09-19 Robert Dewar <dewar@adacore.com>
1212
1213 * aspects.ads (Impl_Defined_Aspects): New array
1214 * lib-writ.adb (No_Dependences): New name for No_Dependence
1215 * restrict.adb (No_Dependences): New name for No_Dependence
1216 (Check_Restriction_No_Specification_Of_Aspect): New
1217 procedure.
1218 (Set_Restriction_No_Specification_Of_Aspect): New procedure
1219 (Restricted_Profile_Result): New variable
1220 (No_Specification_Of_Aspects): New variable
1221 (No_Specification_Of_Aspect_Warning): New variable
1222 * restrict.ads (No_Dependences): New name for No_Dependence
1223 (Check_Restriction_No_Specification_Of_Aspect): New procedure
1224 (Set_Restriction_No_Specification_Of_Aspect): New procedure
1225 * s-rident.ads: Add restriction
1226 No_Implementation_Aspect_Specifications, this is also added to
1227 the No_Implementation_Extensions profile.
1228 * sem_ch13.adb (Analyze_Aspect_Specifications): Check
1229 No_Implementation_Defined_Aspects
1230 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
1231 * sem_prag.adb (Analyze_Aspect_Specifications): Check
1232 No_Implementation_Aspects
1233 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
1234 * snames.ads-tmpl (Name_No_Specification_Of_Aspect): New name
1235
12362011-09-19 Yannick Moy <moy@adacore.com>
1237
1238 * lib-xref.adb (Generate_Reference): Take into account multiple
1239 renamings for Alfa refs.
1240
12412011-09-19 Thomas Quinot <quinot@adacore.com>
1242
1243 * g-socthi-mingw.adb: Minor reformatting.
1244
12452011-09-19 Yannick Moy <moy@adacore.com>
1246
1247 * gnat1drv.adb (Adjust_Global_Switches): Set tagged type
1248 expansion to False in mode Alfa
1249
12502011-09-19 Pascal Obry <obry@adacore.com>
1251
1252 * mingw32.h: Remove obsolete code needed for old versions
1253 of MingW.
1254
e5a163fc
RD
12552011-09-19 Robert Dewar <dewar@adacore.com>
1256
1257 * errout.ads: Minor reformatting.
1258
6d7e5c54
AC
12592011-09-19 Ed Schonberg <schonberg@adacore.com>
1260
1261 * sem_ch6.adb (Analyze_Expression_Function): When the expression
1262 function is transformed into a declaration and a body, insert
1263 body at the end of the declarative part, to prevent premature
1264 freeze actions, and preserve original specification in the
1265 subprogram declaration.
1266
12672011-09-19 Vincent Celier <celier@adacore.com>
1268
1269 * projects.texi: Minor editing.
1270
99ba07a3
AC
12712011-09-19 Robert Dewar <dewar@adacore.com>
1272
1273 * sem_aggr.adb, lib-writ.ads, s-restri.ads, sem_ch6.adb,
1274 exp_aggr.adb: Minor reformatting.
1275
12762011-09-19 Yannick Moy <moy@adacore.com>
1277
1278 * lib-xref.adb (Generate_Reference): Change entity referenced
1279 to underlying object if any, or else reference to the HEAP.
1280
41781043
AC
12812011-09-15 Arnaud Charlet <charlet@adacore.com>
1282
1283 * gcc-interface/Make-lang.in: Update dependencies.
1284
804ff4c3
AC
12852011-09-15 Robert Dewar <dewar@adacore.com>
1286
1287 * tree_io.ads: Minor reformatting.
1288 * a-intnam.ads: Fix bad header.
1289
12902011-09-15 Thomas Quinot <quinot@adacore.com>
1291
1292 * a-exexpr-gcc.adb: Minor reformatting.
1293
12942011-09-15 Yannick Moy <moy@adacore.com>
1295
1296 * sem_ch6.adb: Propagate information that an expression function comes
1297 from source (otherwise references to this entity are not stored).
1298
0b5b2bbc
AC
12992011-09-15 Robert Dewar <dewar@adacore.com>
1300
1301 * a-cdlili.adb, a-coinve.adb, a-stzunb-shared.ads, a-suezst.adb,
1302 a-suenco.adb, a-stwiun-shared.ads, a-cobove.adb, a-convec.adb,
1303 a-btgbso.adb, a-cbdlli.adb, a-suewst.adb: Minor reformatting.
1304
13052011-09-15 Ed Schonberg <schonberg@adacore.com>
1306
1307 * sem_ch6.adb (Analyze_Expression_Function): Code cleanup:
1308 if the expression function is not a completion, create a
1309 new specification for the generated declaration, and keep the
1310 original specification in the generated body. Shorter code also
1311 ensures that proper warnings are generated for unused formals
1312 in all cases.
1313
13142011-09-15 Sergey Rybin <rybin@adacore.com>
1315
1316 * tree_io.ads: Update ASIS_Version_Number because of the changes
1317 in the tree structures for expression functions.
1318
13192011-09-15 Arnaud Charlet <charlet@adacore.com>
1320
1321 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
1322 s-osinte-hpux.ads, s-osinte-lynxos.ads, s-osinte-solaris-posix.ads,
1323 s-taprop-posix.adb (CLOCK_MONOTONIC): New constant.
1324 (CLOCK_REALTIME): Fix wrong value on some OSes.
1325 * s-taprop-posix.adb (Monotonic_Clock): Use CLOCK_MONOTONIC.
1326
7e169899
EB
13272011-09-11 Eric Botcazou <ebotcazou@adacore.com>
1328
1329 * gcc-interface/utils.c (maybe_unconstrained_array): In the reference
1330 to unconstrained array case, deal with each branch of a COND_EXPR.
1331 * gcc-interface/utils2.c (build_allocator): Deal with each branch of
1332 a COND_EXPR in the initializer, if present.
1333
819a653e
EB
13342011-09-11 Eric Botcazou <ebotcazou@adacore.com>
1335
1336 * gcc-interface/decl.c (maybe_pad_type): Do not try to change the form
1337 of an addressable type.
1338 * gcc-interface/trans.c (gnat_gimplify_expr) <VIEW_CONVERT_EXPR>: New.
1339 Deal with those cases for which creating a temporary is mandatory.
1340
c946adde
EB
13412011-09-11 Eric Botcazou <ebotcazou@adacore.com>
1342
1343 * gcc-interface/trans.c (call_to_gnu): Use local variable. Make sure
1344 this is a real formal parameter before testing whether it is by ref.
1345
dddf8120
EB
13462011-09-11 Eric Botcazou <ebotcazou@adacore.com>
1347
1348 * gcc-interface/gigi.h (build_call_0_expr): Delete.
1349 (build_call_1_expr): Likewise.
1350 (build_call_2_expr): Likewise.
1351 (build_call_n_expr): New prototype.
1352 * gcc-interface/decl.c (gnat_to_gnu_entity): Use build_call_n_expr.
1353 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Ditto.
1354 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
1355 (Exception_Handler_to_gnu_zcx): Likewise.
1356 (gnat_to_gnu): Likewise.
1357 (build_binary_op_trapv): Likewise.
1358 * gcc-interface/utils2.c (build_call_0_expr): Delete.
1359 (build_call_1_expr): Likewise.
1360 (build_call_2_expr): Likewise.
1361 (build_call_n_expr): New function.
1362 (build_call_raise): Use build_call_n_expr.
1363 (build_call_raise_range): Likewise.
1364 (build_call_raise_column): Likewise.
1365 (build_call_alloc_dealloc_proc): Likewise.
1366 (maybe_wrap_malloc): Likewise.
1367 (maybe_wrap_free): Likewise.
1368
d8e38554
EB
13692011-09-11 Eric Botcazou <ebotcazou@adacore.com>
1370
1371 * gcc-interface/trans.c (build_return_expr): Use void_type_node for
1372 MODIFY_EXPR.
1373 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Assert that
1374 the result type is null if ENABLE_CHECKING. Set operation_type at the
1375 end unconditionally if not set in the previous cases.
1376 Use build2 and void_type_node for MODIFY_EXPR.
1377 (build_allocator): Use NULL_TREE for MODIFY_EXPR.
1378
416de7d5
EB
13792011-09-08 Eric Botcazou <ebotcazou@adacore.com>
1380
1381 * gcc-interface/utils.c (unchecked_convert): Use a field of the right
1382 precision when converting to or from an integral type whose precision
1383 is not equal to its size.
1384
88b76013
IS
13852011-09-08 Iain Sandoe <iains@gcc.gnu.org>
1386
416de7d5 1387 * traceback.c (Darwin) USE_GCC_UNWINDER for Darwin versions >= 8.
88b76013 1388
1aeee5ad
IS
13892011-09-07 Iain Sandoe <iains@gcc.gnu.org>
1390
416de7d5 1391 * gcc-interface/Makefile.in (darwin): Provide powerpc64 system
1aeee5ad
IS
1392 implementation.
1393 * system-darwin-ppc64.ads: New file.
1394
f61fc398
IS
13952011-09-06 Iain Sandoe <iains@gcc.gnu.org>
1396
1397 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Remove
1398 reference to "-lm".
1399
84ef27d3
IS
14002011-09-06 Iain Sandoe <iains@gcc.gnu.org>
1401
1402 * gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture
1403 size switches to the link phase for shared libs.
1404
a1bf1ec7
IS
14052011-09-06 Iain Sandoe <iains@gcc.gnu.org>
1406
416de7d5 1407 * gcc-interface/Makefile.in (x86_64 darwin arch): Adjust
a1bf1ec7
IS
1408 LIBGNAT_TARGET_PAIRS for x86 and x86_64 variants.
1409
e972fd52
AC
14102011-09-06 Arnaud Charlet <charlet@adacore.com>
1411
1412 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in
1413 (gnattools, regnattools, cross-gnattools, canadian-gnattools,
1414 gnatlib, gnatlib-sjlj, gnatlib-zcx, gnatlib-shared, gnatlib_and_tools):
1415 New targets.
1416 (TOOLS_FLAGS_TO_PASS): New.
1417 (../stamp-tools): Reintroduce, to avoid merge conflicts.
1418
ef417be1
RD
14192011-09-06 Robert Dewar <dewar@adacore.com>
1420
1421 * sem_ch10.adb, impunit.ads, impunit.adb (Not_Impl_Defined_Unit): New
1422 name for Is_RM_Defined_Unit. Also several fixes to this unit.
1423
0a034606
RD
14242011-09-06 Robert Dewar <dewar@adacore.com>
1425
1426 * impunit.ads, impunit.adb (Is_RM_Defined_Unit): New function.
1427 * s-rident.ads: New restriction No_Implementation_Units
1428 (this restriction is also part of the profile
1429 No_Implementation_Extensions)
1430 * sem_ch10.adb (Analyze_With_Clause): Add check for
1431 No_Implementation_Units restriction.
1432
ebb6faaa
AC
14332011-09-06 Jerome Guitton <guitton@adacore.com>
1434
1435 * sysdep.c (__gnat_get_task_options): Disable VX_SPE_TASK
1436 on vThreads.
1437
14382011-09-06 Thomas Quinot <quinot@adacore.com>
1439
1440 * s-solita.adb: Minor reformatting.
1441
14422011-09-06 Ed Schonberg <schonberg@adacore.com>
1443
1444 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The body that
1445 is a rewriting of an expression function does not freeze previous
1446 entities.
1447
14482011-09-06 Robert Dewar <dewar@adacore.com>
1449
1450 * impunit.adb (Is_Known_Unit): Fix bad handling of Ada 2012 case
1451
60435286
TG
14522011-09-06 Tristan Gingold <gingold@adacore.com>
1453
1454 * gcc-interface/Makefile.in: Handle e500v2-wrs-vxworksae like
1455 powerpc-wrs-vxworksae.
1456
08f8a983
AC
14572011-09-06 Thomas Quinot <quinot@adacore.com>
1458
1459 * s-os_lib.ads (Spawn): Minor documentation clarification,
1460 Success is True for a zero exit status.
1461
14622011-09-06 Ed Schonberg <schonberg@adacore.com>
1463
1464 * sem_ch5.adb: Add message for common iterator error.
1465
14662011-09-06 Ed Schonberg <schonberg@adacore.com>
1467
1468 * exp_ch3.adb (Build_Initialization_Call): If the target is a
1469 selected component discriminated by a current instance, replace
1470 the constraint with a reference to the target object, regardless
1471 of whether the context is an init_proc.
1472
14732011-09-06 Robert Dewar <dewar@adacore.com>
1474
1475 * exp_attr.adb: Descriptor_Size is never static.
1476
14772011-09-06 Robert Dewar <dewar@adacore.com>
1478
1479 * gnat_ugn.texi: Add documentation for LSLOC metric in gnatmetric
1480
14812011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
1482
1483 * gnat_rm.texi: Clarify that attribute Descriptor_Size is
1484 non-static.
1485
14862011-09-06 Ed Schonberg <schonberg@adacore.com>
1487
1488 * sem_res.adb (Resolve): An expression that is the body of an
1489 expression function does not freeze.
1490
14912011-09-06 Matthew Heaney <heaney@adacore.com>
1492
1493 * a-csquin.ads, a-cusyqu.adb, a-cbprqu.adb, a-cbsyqu.adb,
1494 a-cuprqu.adb: Changed copyright notice to indicate current
1495 year only.
1496
14972011-09-06 Vincent Celier <celier@adacore.com>
1498
1499 * prj.adb: Minor spelling error fix in comment
1500 * sem_res.adb: Minor reformatting
1501
15022011-09-06 Pascal Obry <obry@adacore.com>
1503
1504 * sysdep.c (winflush_nt): Removed as not needed anymore.
1505 (winflush_95): Likewise.
1506 (winflush_init): Likewise.
1507 (winflush_function): Likewise.
1508 (getc_immediate_common): Remove call to winflush_function.
1509
cb3d8731
HK
15102011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
1511
1512 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite the
1513 processing for Descriptor_Size.
1514 * gnat_rm.texi: Rephrase the wording for attribute Descriptor_Size
1515 to account for its broader usage.
1516 * sem_attr.adb (Analyze_Attribute): Change the error detection
1517 circuitry for Descriptor_Size as the attribute is now applicable
1518 to all types.
1519
f7e6fc47
RD
15202011-09-06 Robert Dewar <dewar@adacore.com>
1521
1522 * sem_attr.adb, prj-nmsc.adb, exp_aggr.adb: Minor reformatting.
1523
f8e9fc30
AC
15242011-09-06 Ed Schonberg <schonberg@adacore.com>
1525
1526 * lib-xref.adb (OK_To_Set_Referenced): A reference to a formal
1527 in a parameter association must not set the Referenced flag on
1528 the formal.
1529 * prj-nmsc.adb (Check_File_Naming_Schemes): Remove useless formal
1530
15312011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
1532
1533 * gnat_rm.texi: Add a section on attribute Descriptor_Size
1534
e8e38f35
AC
15352011-09-06 Arnaud Charlet <charlet@adacore.com>
1536
1537 * gcc-interface/Makefile.in (common-tools, gnatmake-re,
1538 gnatlink-re): Speed up by using -j0.
1539
ba759acd
AC
15402011-09-06 Yannick Moy <moy@adacore.com>
1541
1542 * sem_ch13.adb (Analyze_Aspect_Specifications): Call
1543 Set_Corresponding_Aspect when creating pragma from aspect.
1544 (Add_Predicates): Use new field Corresponding_Aspect.
1545 * sem_prag.adb (Analyze_Pragma): Make Pname hold source aspect
1546 name when present, for the purpose of issuing error messages;
1547 remove local procedure Error_Pragma_Arg_Alternate_Name.
1548 * sinfo.adb, sinfo.ads (Corresponding_Aspect): New field in
1549 N_Pragma node.
1550 (From_Dynamic_Predicate, From_Static_Predicate): Remove fields from
1551 N_Pragma node.
1552
15532011-09-06 Robert Dewar <dewar@adacore.com>
1554
1555 * checks.adb, s-except.ads, g-socket.adb: Minor reformatting.
1556
15572011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
1558
1559 * exp_ch6.adb (Build_Heap_Allocator): Add new
1560 local variable Desig_Typ. Code and comment reformatting. Add
1561 machinery to ensure that the allocation uses a fat pointer when
1562 the type of the return object is a constrained array and the
1563 function return type is an unconstrained array.
1564
15652011-09-06 Vincent Celier <celier@adacore.com>
1566
1567 * make.adb, prj-part.adb, prj-nmsc.adb: Remove unused formal
1568 parameters in subprograms.
1569
15702011-09-06 Arnaud Charlet <charlet@adacore.com>
1571
1572 * s-taprop-mingw.adb (Finalize_TCB): Fix typo.
1573
15742011-09-06 Thomas Quinot <quinot@adacore.com>
1575
1576 * s-taprop-vxworks.adb, s-tpoaal.adb, s-tpopsp-vxworks.adb
1577 (System.Tasking.Primitive_Operations.Specific.Delete): Remove
1578 subprogram.
1579 (System.Tasking.Primitive_Operations.Specific.Set): If argument
1580 is null, destroy task specific data, to make API consistent with
1581 other platforms, and thus compatible with the shared version
1582 of s-tpoaal.adb.
1583 (System.Tasking.Primitive_Operations.ATCB_Allocation.Free_ATCB):
1584 Document the above assumption.
1585
f4f92d9d
AC
15862011-09-06 Ed Schonberg <schonberg@adacore.com>
1587
1588 * exp_ch6.adb (Expand_Inlined_Call): Fix use of uninitialized
1589 variable for type of return value when return type is
1590 unconstrained and context is an assignment.
1591
15922011-09-06 Ed Schonberg <schonberg@adacore.com>
1593
1594 * sem_ch8.adb (Check_Class_Wide_Actual): Do not generate body of
1595 class-wide operation if expansion is not enabled.
1596
15972011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1598
1599 * checks.adb (Apply_Scalar_Range_Check): Deal with access
1600 type prefix.
1601
16022011-09-06 Yannick Moy <moy@adacore.com>
1603
1604 * sem_ch13.adb (Analyze_Aspect_Specifications, case
1605 Aspect_Invariant): Do not issue error at this point on illegal
1606 pragma placement, as this is checked later on when analyzing
1607 the corresponding pragma.
1608 * sem_prag.adb (Error_Pragma_Arg_Alternate_Name): New procedure
1609 similar to Error_Pragma_Arg, except the source name of the
1610 aspect/pragma to use in warnings may be equal to parameter
1611 Alt_Name (Analyze_Pragma, case Pragma_Invariant): refine error
1612 message to distinguish source name of pragma/aspect, and whether
1613 the illegality resides in the type being public, or being private
1614 without a public declaration
1615
16162011-09-06 Thomas Quinot <quinot@adacore.com>
1617
1618 * g-socket.adb (Check_For_Fd_Set): On Windows, no need for bitmap
1619 size check (fd_set is implemented differently on that platform).
1620
16212011-09-06 Thomas Quinot <quinot@adacore.com>
1622
1623 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1624 s-tpoaal.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
1625 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop.ads,
1626 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
1627 (ATCB_Allocation): New subpackage of
1628 System.Tasking.Primitive_Operations, shared across all targets
1629 with full tasking runtime.
1630 (ATCB_Allocation.New_ATCB): Moved there (from target specific
1631 s-taprop bodies).
1632 (ATCB_Allocation.Free_ATCB): New subprogram. Deallocate an ATCB,
1633 taking care of establishing a local temporary ATCB if the one
1634 being deallocated is Self, to avoid a reference to the freed
1635 ATCB in Abort_Undefer.
1636
16372011-09-06 Thomas Quinot <quinot@adacore.com>
1638
1639 * s-tassta.adb, s-taskin.ads (Free_Task): If the task is not
1640 terminated, mark it for deallocation upon termination.
1641 (Terminate_Task): Call Free_Task again if the task is marked
1642 for automatic deallocation upon termination.
1643
df177175
RD
16442011-09-06 Robert Dewar <dewar@adacore.com>
1645
1646 * a-cbprqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cusyqu.ads,
1647 a-intnam-aix.ads, a-intnam-darwin.ads, a-intnam-dummy.ads,
1648 a-intnam-freebsd.ads, a-intnam-hpux.ads, a-intnam-irix.ads,
1649 a-intnam-linux.ads, a-intnam-lynxos.ads, a-intnam-mingw.ads,
1650 a-intnam-solaris.ads, a-intnam-tru64.ads,
1651 a-intnam-vms.ads, a-intnam-vxworks.ads, a-intnam.ads, interfac.ads,
1652 cstand.adb, s-maccod.ads: Mark all entities as Implementation_Defined
1653 * einfo.ads, einfo.adb (Is_Implementation_Defined): New flag
1654 * par-prag.adb: Add dummy entry for pragma Implementation_Defined
1655 * s-rident.ads: Add new restriction No_Implementation_Identifiers
1656 Add new profile No_Implementation_Extensions
1657 * sem_prag.adb: Implement pragma Implementation_Defined Implement
1658 profile No_Implementation_Extensions
1659 * sem_util.adb: Minor reformatting (Set_Entity_With_Style_Check):
1660 Check violation of restriction No_Implementation_Identifiers
1661 * snames.ads-tmpl: Add entries for pragma Implementation_Defined
1662 Add entry for Name_No_Implementation_Extensions
1663
16642011-09-06 Robert Dewar <dewar@adacore.com>
1665
1666 * impunit.ads: Minor reformatting.
1667
b991dd43
AC
16682011-09-06 Robert Dewar <dewar@adacore.com>
1669
1670 * ali.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting.
1671
16722011-09-06 Pascal Obry <obry@adacore.com>
1673
1674 * s-osinte-linux.ads, s-oscons-tmplt.c: Use oscons to define sigset_t
1675 types.
1676
516785cc
AC
16772011-09-06 Robert Dewar <dewar@adacore.com>
1678
1679 * g-socket.adb: Minor reformatting
1680
16812011-09-06 Javier Miranda <miranda@adacore.com>
1682
1683 * ali.adb (Scan_ALI): Add missing support to load references of
1684 entities imported from other languages.
1685 * ali.ads (Xref_Record): Adding new fields to store the language and
1686 name of an imported entity.
1687 * lib-xref.adb (Output_Import_Export_Info): Fix typo
1688 in comment.
1689
16902011-09-06 Ed Schonberg <schonberg@adacore.com>
1691
1692 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): A type invariant
1693 is allowed on a full type declaration if it is the completion of
1694 a private declarations.
1695 * sem_ch13.adb (Analyze_Aspect_Specifications): An invariant
1696 aspect is allowed on a full type declaration in the private part
1697 of a package.
1698
96691943
AC
16992011-09-06 Robert Dewar <dewar@adacore.com>
1700
1701 * sem_ch8.ads: Minor reformatting
1702
17032011-09-06 Thomas Quinot <quinot@adacore.com>
1704
1705 * s-oscons-tmplt.c, g-socket.adb (GNAT.Sockets.Clear,Set,Is_Set):
1706 Guard against socket values that are not in [0;FD_SETSIZE[
1707
54bf19e4
AC
17082011-09-06 Robert Dewar <dewar@adacore.com>
1709
1710 * s-osinte-linux.ads, a-iteint.ads, exp_ch6.adb, s-solita.adb: Minor
1711 reformatting.
1712
17132011-09-06 Arnaud Charlet <charlet@adacore.com>
1714
1715 * s-linux-alpha.ads: Minor reformatting
1716 * s-oscons-tmplt.c: Fix generated comments in s-oscons template.
1717 Use sizeof instead of corresponding C defines in s-oscons template.
1718
5d42cba1
VG
17192011-09-06 Vadim Godunko <godunko@adacore.com>
1720
1721 * a-convec.ads, a-iteint.ads: Minor reformatting.
1722
77aa62e7
AC
17232011-09-06 Vincent Celier <celier@adacore.com>
1724
1725 * projects.texi: Add menus and @node lines.
1726
17272011-09-06 Ed Schonberg <schonberg@adacore.com>
1728
1729 * exp_ch6.adb (Expand_Inlined_Call): Handle properly the case
1730 where the return type is an unconstrained array and the context
1731 is an assignment. Optimize the case when the target of the
1732 assignment is a selected component.
1733
17342011-09-06 Arnaud Charlet <charlet@adacore.com>
1735
1736 * s-solita.adb: Update comments.
1737
17382011-09-06 Pascal Obry <obry@adacore.com>
1739
1740 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, s-linux-mipsel.ads,
1741 s-linux-sparc.ads: Remove hard coded and now wrong definitions.
1742 * s-oscons-tmplt.c: Add support for generating pthread related
1743 types size on GNU/Linux as done for Darwin.
1744 * s-osinte-linux.ads: Use s-oscons to define the pthread types.
1745
886b5a18
AC
17462011-09-06 Robert Dewar <dewar@adacore.com>
1747
1748 * exp_ch6.adb: Fix minor typo.
1749
17502011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
1751
1752 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
1753 (Alignment_Of): Moved to the body of Nearest_Multiple_Rounded_Up.
1754 (Double_Size_Of): Alphabetized. Update the comment on usage.
1755 (Make_Finalize_Address_Stmts): Update comments and reformat code.
1756 (Nearest_Multiple_Rounded_Up): New routine.
1757 (Size_Of): Update comment on usage. The generated expression now
1758 accounts for alignment gaps by rounding the size of the type to the
1759 nearest multiple rounded up of the type's alignment.
1760
57a3fca9
AC
17612011-09-06 Robert Dewar <dewar@adacore.com>
1762
1763 * exp_ch7.adb, g-comlin.adb: Minor reformatting.
1764
17652011-09-06 Steve Baird <baird@adacore.com>
1766
1767 * exp_ch4.adb (Expand_Allocator_Expression): Look through
1768 derived subprograms in checking for presence of an
1769 Extra_Accessibility_Of_Result formal parameter.
1770 * exp_ch6.adb (Expand_Call): Look through derived subprograms in
1771 checking for presence of an Extra_Accessibility_Of_Result formal
1772 parameter.
1773 (Expand_Call.Add_Actual_Parameter): Fix a bug in the
1774 case where the Parameter_Associatiations attribute is already set,
1775 but set to an empty list.
1776 (Needs_Result_Accessibility_Level):
1777 Unconditionally return False. This is a temporary
1778 change, disabling the Extra_Accessibility_Of_Result
1779 mechanism.
1780 (Expand_Simple_Function_Return): Check for
1781 Extra_Accessibility_Of_Result parameter's presence instead of
1782 testing Ada_Version when generating a runtime accessibility
1783 check which makes use of the parameter.
1784
eaed0c37
AC
17852011-09-06 Ed Schonberg <schonberg@adacore.com>
1786
1787 * exp_ch4.adb (Expand_N_Case_Expression): Actions created for the
1788 expression in a given case alternative must be attached to the
1789 statement list of the ccrresponding case statement alternative
1790 They cannot be propagated ahead of the case statement, because
1791 the validity of the expression that generated the action may
1792 hold only for that alternative.
1793
17942011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
1795
1796 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
1797 (Alignment_Of): Remove the code for strict alignment targets.
1798 (Double_Alignment_Of): Removed.
1799 (Double_Size_Of): New routine.
1800 (Make_Finalize_Address_Stmts): Change the
1801 calculation of the dope's size. Update relevant comments.
1802 (Size_Of): New routine.
1803
b8a93198
AC
18042011-09-06 Steve Baird <baird@adacore.com>
1805
1806 * einfo.ads (Extra_Accessibility): Update associated comment to use
1807 the term "present" correctly ("present" just means that it is not
1808 an error to query the value of the attribute - it does not imply
1809 that the value must be non-null).
1810 (Extra_Constrained): Ditto.
1811 (Is_Visible_Formal): Ditto.
1812 (Extra_Accessibility_Of_Result) Ditto; also add Inline pragma.
1813 (Set_Extra_Accessibility_Of_Result): Add Inline pragma.
1814 * exp_ch4.adb (Expand_Allocator_Expression): Improve a comment.
1815 * exp_ch6.adb (Expand_Call): The callee may require an
1816 Extra_Accessibility_Of_Result actual parameter even if Ada_Version
1817 < Ada_2012. This can occur if the callee is exported from a Gnat
1818 runtimes unit. Also improve a comment.
1819
18202011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
1821
1822 * exp_ch7.adb: Add with and use clauses for Get_Targ.
1823 (Alignment_Of): Rename formal parameter Some_Typ
1824 to Typ, update related comment. Use the allocator alignment on
1825 strict alignment targets such as SPARC.
1826 (Double_Alignment_Of): Rename formal parameter Some_Typ to Typ, update
1827 related comment.
1828
18292011-09-06 Gary Dismukes <dismukes@adacore.com>
1830
1831 * sem_ch9.adb (Check_Interfaces): Test
1832 Is_Limited_Type rather than Is_Limited_Record when checking that
1833 the partial view of a synchronized full view must be limited.
1834
18352011-09-06 Emmanuel Briot <briot@adacore.com>
1836
1837 * g-comlin.adb (Free): Fix memory leak.
1838
ebf494ec
RD
18392011-09-06 Robert Dewar <dewar@adacore.com>
1840
1841 * sem_util.adb, exp_ch6.adb: Minor reformatting and code reorganization.
1842
63585f75
SB
18432011-09-06 Steve Baird <baird@adacore.com>
1844
1845 * einfo.ads (Extra_Accessibility_Of_Result): New function; in the
1846 (Ada2012) cases described in AI05-0234 where the accessibility
1847 level of a function result is "determined by the point of
1848 call", an implicit parameter representing that accessibility
1849 level is passed in. Extra_Accessibilty_Of_Result yields this
1850 additional formal parameter. Extra_Accessibility_Of_Result
1851 is analogous to the existing Extra_Accessibility
1852 function used in the implementation of access parameters.
1853 (Set_Extra_Accessibility_Of_Result): New procedure; sets
1854 Extra_Accessibility_Of_Result attribute.
1855 * einfo.adb (Extra_Accessibility_Of_Result): New function.
1856 (Set_Extra_Accessibility_Of_Result): New procedure.
1857 (Write_Field19_Name): Display Extra_Accessibilty_Of_Result attribute.
1858 * sem_util.adb (Dynamic_Accessibility_Level): Set Etype of
1859 an accessibility level literal to Natural; introduce a nested
1860 function, Make_Level_Literal, to do this.
1861 * exp_ch6.ads (Needs_Result_Accessibility_Level): New function;
1862 determines whether a given function (or access-to-function
1863 type) needs to have an implicitly-declared accessibility-level
1864 parameter added to its profile.
1865 (Add_Extra_Actual_To_Call): Export an existing procedure which was
1866 previously declared in the body of Exp_Ch6.
1867 * exp_ch6.adb (Add_Extra_Actual_To_Call): Export declaration by moving
1868 it to exp_ch6.ads.
1869 (Has_Unconstrained_Access_Discriminants): New Function; a
1870 predicate on subtype entities which returns True if the given
1871 subtype is unconstrained and has one or more access discriminants.
1872 (Expand_Call): When expanding a call to a function which takes an
1873 Extra_Accessibility_Of_Result parameter, pass in the appropriate
1874 actual parameter value. In the case of a function call which is
1875 used to initialize an allocator, this may not be possible because
1876 the Etype of the allocator may not have been set yet. In this
1877 case, we defer passing in the parameter and handle it later in
1878 Expand_Allocator_Expression.
1879 (Expand_Simple_Function_Return): When returning from a function which
1880 returns an unconstrained subtype having at least one access
1881 discriminant, generate the accessibility check needed to ensure that
1882 the function result will not outlive any objects designated by its
1883 discriminants.
1884 (Needs_Result_Accessibility_Level): New function; see exp_ch6.ads
1885 description.
1886 * exp_ch4.adb (Expand_Allocator_Expression): When a function call
1887 is used to initialize an allocator, we may need to pass in "the
1888 accessibility level determined by the point of call" (AI05-0234)
1889 to the function. Expand_Call, where such actual parameters are
1890 usually generated, is too early in this case because the Etype of
1891 the allocator (which is used in determining the level to be passed
1892 in) may not have been set yet when Expand_Call executes. Instead,
1893 we generate code to pass in the appropriate actual parameter
1894 in Expand_Allocator_Expression.
1895 * sem_ch6.adb (Create_Extra_Formals): Create
1896 the new Extra_Accessibility_Of_Result formal if
1897 Needs_Result_Accessibility_Level returns True. This includes the
1898 introduction of a nested procedure, Check_Against_Result_Level.
1899
1a982c6e
AC
19002011-09-06 Arnaud Charlet <charlet@adacore.com>
1901
1902 * gcc-interface/Makefile.in (X86_TARGET_PAIRS): Remove duplicate
1903 declaration.
1904
e42bcfa3
AC
19052011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
1906
1907 * s-finmas.adb (Set_Finalize_Address): Explain the reason
1908 for the synchronization. Move the test for null from
1909 s-stposu.Allocate_Any_Controlled to this routine since the check
1910 needs to be protected too.
1911 (Set_Heterogeneous_Finalize_Address): Explain the reason for the
1912 synchronization code.
1913 * s-finmas.ads (Set_Heterogeneous_Finalize_Address): Add comment
1914 explaining the context in which this routine is used.
1915 * s-stposu.adb (Allocate_Any_Controlled): Move the test for null
1916 to s-finmas.Set_Finalize_Address.
1917
19182011-09-05 Ed Schonberg <schonberg@adacore.com>
1919
1920 * einfo.ads: Document that itypes have no parent field.
1921
19222011-09-05 Robert Dewar <dewar@adacore.com>
1923
1924 * rtsfind.adb (Check_CRT): Check for overloaded entity
1925 * rtsfind.ads: Document that entities to be found by rtsfind
1926 cannot be overloaded
1927 * s-taenca.adb, s-tasren.adb, s-tpobop.adb, s-tpoben.ads, s-tpoben.adb
1928 (Lock_Entries_With_Status): New name for Lock_Entries with two
1929 arguments (changed to meet rtsfind no overloading rule).
1930
544e7c17
AC
19312011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
1932
1933 * s-finmas.adb (Set_Finalize_Address (Address,
1934 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
1935 (Set_Finalize_Address (in out Finalization_Master,
1936 Finalize_Address_Ptr): Add synchronization code.
1937 * s-finmas.ads (Set_Finalize_Address (Address,
1938 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
1939 * s-stposu.adb (Allocate_Any_Controlled): Update the call to
1940 Set_Finalize_Address for the heterogeneous case.
1941
19422011-09-05 Ed Schonberg <schonberg@adacore.com>
1943
1944 * sem_ch3.adb: Undo previous change, not suitable after all.
1945
19462011-09-05 Robert Dewar <dewar@adacore.com>
1947
1948 * einfo.ads: Minor comment clarification.
1949
0613fb33
AC
19502011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
1951
1952 * exp_ch6.adb (Move_Activation_Chain): Rewritten. The routine
1953 no longer needs to search through the entities of the return
1954 statement scope to find the _chain.
1955 * sem_ch5.adb: Add with and use clauses for Exp_Ch6 and Sem_Ch6.
1956 (Analyze_Block_Statement): Add local variable
1957 Is_BIP_Return_Statement. Add machinery to install all entities
1958 produced by the expansion of the return object declaration.
1959 (Install_Return_Entities): New routine.
1960 * sem_ch6.ads, sem_ch6.adb (Install_Entity): Moved from body to spec.
1961
19622011-09-05 Ed Schonberg <schonberg@adacore.com>
1963
1964 * sem_ch10.adb (Analyze_Context): Apply simple fixup if context
1965 of subunit is incomplete.
1966 (Analyze_Proper_Body): If parent spec is not available, do not
1967 attempt analysis.
1968
5dcab3ca
AC
19692011-09-05 Ed Schonberg <schonberg@adacore.com>
1970
1971 * sem_disp.adb (Find_Controlling_Arg): Add checks for
1972 interface type conversions, that are expanded into dereferences.
1973
19742011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
1975
1976 * sem_ch6.adb (Analyze_Subprogram_Body_Helper):
1977 Examine the parameter and return profile of a subprogram and swap
1978 any incomplete types coming from a limited context with their
1979 corresponding non-limited views.
1980 (Exchange_Limited_Views): New routine.
1981
19822011-09-05 Ed Schonberg <schonberg@adacore.com>
1983
1984 * sem_ch3.adb (Prepare_Private_Subtype_Completion): Set parent
1985 of internal entity to the subtype declaration, so that when
1986 entities are subsequently exchanged in a package body, the tree
1987 remains properly formatted for ASIS.
1988
8da1a312
AC
19892011-09-05 Johannes Kanig <kanig@adacore.com>
1990
1991 * g-comlin.adb (Set_Usage): Additional optional argument to set help
1992 message.
1993 (Display_Help): display the user given help message, if available.
1994
19952011-09-05 Ed Schonberg <schonberg@adacore.com>
1996
1997 * sem_ch3.adb (OK_For_Limited_Init_In_05): The expression
1998 is legal if the original node is an identifier that is a
1999 parameterless function call.
2000
69b73847
PO
20012011-09-05 Pascal Obry <obry@adacore.com>
2002
2003 * prj-nmsc.adb: Minor reformatting.
2004 Add support for standalone aggregate library.
2005 (Check_Stand_Alone_Library): Handle standalone aggregate library.
2006 * projects.texi: Fix documentation for aggregate library projects.
2007
81bf2382
AC
20082011-09-05 Robert Dewar <dewar@adacore.com>
2009
2010 * sem_ch6.adb: Minor reformatting.
2011
20122011-09-05 Matthew Gingell <gingell@adacore.com>
2013
2014 * s-tassta.adb (Task_Wrapper): Ensure that we don't try to write the
2015 stack guard page on PPC Linux. This patch ensures the 64K guard page at
2016 the bottom of the stack is not overwritten.
2017
13a0b1e8
AC
20182011-09-05 Thomas Quinot <quinot@adacore.com>
2019
2020 * exp_intr.adb, s-tasini.adb: Minor reformatting.
2021
20222011-09-05 Ed Schonberg <schonberg@adacore.com>
2023
2024 * sem_ch3.adb (Access_Definition): If an access type declaration
2025 appears in a child unit, the scope of whatever anonymous type
2026 may be generated is the child unit itself.
2027
20282011-09-05 Ed Schonberg <schonberg@adacore.com>
2029
2030 * sem_ch6.adb (Analyze_Expression_Function): Do not set
2031 Comes_From_Source on rewritten body.
2032 (Analyze_Subprogram_Body_Helper): Check that the original node for
2033 the body comes from source, when determining whether expansion
2034 of a protected operation is needed.
2035
20428725
AC
20362011-09-05 Ed Schonberg <schonberg@adacore.com>
2037
2038 * exp_aggr.adb (Replace_Type): If the target of the assignment is
2039 a selected component and the right-hand side is a self-referential
2040 access, the proper prefix of the rewritten attribute is a copy
2041 of the left-hand side, not of its prefix.
2042
20432011-09-05 Robert Dewar <dewar@adacore.com>
2044
2045 * sem_ch5.adb: Minor reformatting.
2046 * sem_ch3.adb: Minor code clean up.
2047
20482011-09-05 Jose Ruiz <ruiz@adacore.com>
2049
2050 * exp_ch9.adb (Make_Initialize_Protection): The fact that
2051 restriction No_Dynamic_Attachment is in effect or not should
2052 not influence the default priority associated to a protected
2053 object. With this change, when the restriction is in effect (as
2054 is the case for the Ravenscar profile) the default priority of
2055 a protected object with an interrupt handler is in the range of
2056 interrupt priorities (Default_Interrupt_Priority) as required
2057 by D.3(10).
2058
20592011-09-05 Arnaud Charlet <charlet@adacore.com>
2060
2061 * a-iteint.ads: Fix header.
2062
20632011-09-05 Vincent Celier <celier@adacore.com>
2064
2065 * prj-conf.adb (Do_Autoconf): Make sure Obj_Dir always ends
2066 with a directory separator to avoid output such as:
2067 "/path/to/objauto.cgpr" has been deleted.
2068
4a1bfefb
AC
20692011-09-05 Robert Dewar <dewar@adacore.com>
2070
2071 * sem_ch3.adb: Minor reformatting.
2072
20732011-09-05 Ed Schonberg <schonberg@adacore.com>
2074
2075 * sem_ch5.adb: Better error message.
2076
20772011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
2078
2079 * exp_aggr.adb: Add with and use clause for Exp_Ch6.
2080 (Expand_Array_Aggregate): Detect a special case of an aggregate
2081 which contains tasks in the context of an unexpanded return
2082 statement of a build-in-place function.
2083 * exp_ch6.adb: Add with and use clause for Exp_Aggr.
2084 (Expand_N_Extended_Return_Statement): Detect a delayed aggregate
2085 which contains tasks and expand it now that the original simple
2086 return statement has been rewritten.
2087 * exp_ch9.adb (Build_Activation_Chain_Entity): Code
2088 reformatting. Do not create a chain for an extended return
2089 statement if one is already available.
2090 (Has_Activation_Chain): New routine.
2091
9ec080cb
AC
20922011-09-05 Marc Sango <sango@adacore.com>
2093
2094 * sem_ch3.adb (Analyze_Object_Declaration): Remove
2095 the wrong test and add the correct test to detect the violation
2096 of illegal use of unconstrained string type in SPARK mode.
2097
20982011-09-05 Ed Schonberg <schonberg@adacore.com>
2099
2100 * sem_ch5.adb (Analyze_Iteration_Specification): Improve error
2101 message on an iterator over an array.
2102
21032011-09-05 Robert Dewar <dewar@adacore.com>
2104
2105 * lib-xref-alfa.adb: Minor reformatting.
2106
aeae67ed
RD
21072011-09-05 Robert Dewar <dewar@adacore.com>
2108
2109 * sem_ch3.adb, sem_res.adb, par.adb, par-ch6.adb, g-comlin.adb,
2110 exp_ch6.adb, lib-xref-alfa.adb: Minor reformatting.
2111
d72e7628
AC
21122011-09-05 Gary Dismukes <dismukes@adacore.com>
2113
2114 * exp_ch7.adb, exp_ch6.adb: Minor reformatting.
2115
21162011-09-05 Johannes Kanig <kanig@adacore.com>
2117
2118 * lib-xref-alfa.adb: Update comments.
2119
21202011-09-05 Thomas Quinot <quinot@adacore.com>
2121
2122 * sem_res.adb: Minor reformatting
2123
0d566e01
ES
21242011-09-05 Ed Schonberg <schonberg@adacore.com>
2125
2126 * exp_ch6.adb (Build_In_Place_Formal): If extra formals are not
2127 present, create them now. Needed in case the return type was
2128 a limited view in the function declaration.
2129 (Make_Build_In_Place_Call_In_Allocator): If return type contains
2130 tasks, build the activation chain for it. Pass a reference to
2131 the Master_Id in call to Add_Task_Actuals_To_Build_In_Place call.
2132 * exp_ch7.adb (Make_Set_Finalize_Address_Call): Clean up interface
2133 with build_in_place calls.
2134 * sem_ch9.adb (Analyze_Task_Type_Declaration): If partial view was
2135 incomplete, inatialize its Corresponding_Record_Type component.
2136 * sem_ch10.adb (Build_Chain): Initialize Private_Dependents field
2137 of limited views.
2138
ec09f261
AC
21392011-09-05 Johannes Kanig <kanig@adacore.com>
2140
2141 * lib-xref-alfa.adb (Is_Alfa_Reference): Filter constants from effect
2142 information.
2143
21442011-09-05 Ed Schonberg <schonberg@adacore.com>
2145
2146 * par-ch6.adb (P_Subprogram): In Ada2012 mode, if the subprogram
2147 appears within a package specification and the token after "IS"
2148 is not a parenthesis, assume that this is an unparenthesized
2149 expression function, even if the token appears in a line by
2150 itself.
2151 * par.adb: Clarify use of Labl field of scope stack in error
2152 recovery.
2153
7109f4f5
AC
21542011-09-05 Bob Duff <duff@adacore.com>
2155
2156 * sem_res.adb (Resolve_Intrinsic_Operator): Use unchecked
2157 conversions instead of normal type conversions in all cases where a
2158 type conversion would be illegal. In particular, use unchecked
2159 conversions when the operand types are private.
2160
21612011-09-05 Johannes Kanig <kanig@adacore.com>
2162
2163 * lib-xref-alfa.adb (Is_Alfa_Reference): Never declare effects on
2164 objects of task type or protected type.
2165
66dc8075
AC
21662011-09-05 Ed Schonberg <schonberg@adacore.com>
2167
2168 * sem_ch6.adb (Analyze_Expression_Function): If the expression
2169 function comes from source, indicate that so does its rewriting,
2170 so it is compatible with any subsequent expansion of the
2171 subprogram body (e.g. when it is a protected operation).
2172 * sem_ch4.adb: minor reformatting
2173
21742011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
2175
2176 * lib.adb (Check_Same_Extended_Unit): Comment rewriting. Use
2177 Get_Source_Unit rather than Get_Code_Unit as instantiation unfolding
2178 may lead to wrong ancestor package in the case of instantiated subunit
2179 bodies. If a subunit is instantiated, follow the chain of instantiations
2180 rather than the stub structure.
2181
bd38b431
AC
21822011-09-02 Robert Dewar <dewar@adacore.com>
2183
2184 * sem_ch4.adb, sem_ch6.adb: Minor reformatting.
2185 * gcc-interface/Make-lang.in: Update dependencies.
2186
21872011-09-02 Marc Sango <sango@adacore.com>
2188
2189 * sem_ch3.adb (Analyze_Object_Declaration): Change
2190 comment and add additional check to differentiate constant of
2191 type string from others unconstrained type.
2192
99d520ad
ES
21932011-09-02 Ed Schonberg <schonberg@adacore.com>
2194
2195 * sinfo.ads, sinfo.adb: New semantic attribute Premature_Use,
2196 present in incomplete type declarations to refine the error
2197 message the full declaration is in the same unit.
2198 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of
2199 an incomplete type, set the Premature_Use for additional message.
2200 * sem_ch3.adb (Find_Type_Name): If partial view is incomplete
2201 and Premature_Use is set, place additional information at the
2202 point of premature use.
2203
5b5588dd
AC
22042011-09-02 Bob Duff <duff@adacore.com>
2205
2206 * sem_ch6.adb: (Check_Post_State): Suppress warning
2207 "postcondition refers only to pre-state" when the expression has not
2208 yet been analyzed, because it causes false alarms. This can happen when
2209 the postcondition contains a quantified expression, because those are
2210 analyzed later. This is a temporary/partial fix.
2211 (Process_Post_Conditions): Minor: change wording of warning.
2212
22132011-09-02 Marc Sango <sango@adacore.com>
2214
2215 * sem_ch3.adb (Analyze_Object_Declaration): Detect the violation of
2216 illegal use of unconstrained string type in SPARK mode.
2217 * sem_res.adb (Analyze_Operator_Symbol): Set the
2218 right place where the string operand of concatenation should be
2219 violate in SPARK mode.
2220
bd603506
RD
22212011-09-02 Robert Dewar <dewar@adacore.com>
2222
2223 * sem_prag.adb, sem_util.adb, sem_ch6.adb, prj-nmsc.adb,
2224 exp_ch3.adb: Minor reformatting.
2225
24a120ac
AC
22262011-09-02 Vincent Celier <celier@adacore.com>
2227
2228 * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Declare "gcc"
2229 as the compiler driver so Is_Compilable returns True for sources.
2230 * prj-nmsc.adb (Override_Kind): When Kind is Sep, set the source
2231 for the body.
2232
22332011-09-02 Ed Schonberg <schonberg@adacore.com>
2234
2235 * sem_prag.adb (Analyze_PPC_In_Decl_Part): for a class-wide
2236 condition, a reference to a controlling formal must be interpreted
2237 as having the class-wide type (or an access to such) so that the
2238 inherited condition can be properly applied to any overriding
2239 operation (see ARM12 6.6.1 (7)).
2240
22412011-09-02 Tristan Gingold <gingold@adacore.com>
2242
2243 * init.c (__gnat_is_vms_v7): Fix case and add prototype
2244 for LIB$GETSYI.
2245
22462011-09-02 Javier Miranda <miranda@adacore.com>
2247
2248 * exp_ch3.adb (Expand_N_Object_Declaration): Do not copy the
2249 initializing expression of a class-wide interface object declaration
2250 if its type is limited.
2251
22522011-09-02 Johannes Kanig <kanig@adacore.com>
2253
2254 * sem_util.adb (Unique_Name): To obtain a unique name for enumeration
2255 literals, take into account the type name; the type is *not*
2256 the scope for an enumeration literal.
2257
22582011-09-02 Ed Schonberg <schonberg@adacore.com>
2259
2260 * sem_ch6.adb (Check_Overriding_Indicator): add special check
2261 to reject an overriding indicator on a user-defined Adjust
2262 subprogram for a limited controlled type.
2263
22642011-09-02 Ed Schonberg <schonberg@adacore.com>
2265
2266 * sem_res.adb (Resolve_Actuals): add missing call to Resolve
2267 for an actual that is a function call returning an unconstrained
2268 limited controlled type.
2269
22702011-09-02 Tristan Gingold <gingold@adacore.com>
2271
2272 * g-socthi-vms.adb (c_sendmsg, c_recvmsg): Use unpacked msg if on vms 7
2273
22742011-09-02 Johannes Kanig <kanig@adacore.com>
2275
2276 * alfa.ads (Name_Of_Heap_Variable): Change value of the HEAP variable
2277 from "HEAP" to __HEAP Change comment that refers to that variable
2278 * put_alfa.adb: Change comment that refers to that variable
2279
c5f5123f
AC
22802011-09-02 Robert Dewar <dewar@adacore.com>
2281
2282 * exp_ch4.adb, exp_ch6.adb, prj-nmsc.adb: Minor reformatting.
2283
22842011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
2285
2286 * exp_util.adb (Extract_Renamed_Object): Renamed to
2287 Find_Renamed_Object. This routine has been reimplemented and now uses
2288 tree traversal to locate a renamed object.
2289 (Is_Aliased): Replace call to Extract_Renamed_Object with
2290 Find_Renamed_Object.
2291
22922011-09-02 Tristan Gingold <gingold@adacore.com>
2293
2294 * init.c: (__gnat_is_vms_v7): New function.
2295
22962011-09-02 Olivier Hainque <hainque@adacore.com>
2297
2298 * tracebak.c (STOP_FRAME, ppc elf/vxworks case): Stop on frames
2299 that have a misaligned backchain, necessarily bogus.
2300
2bfa5484
HK
23012011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
2302
2303 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not create
2304 TSS routine Finalize_Address when compiling in Alfa mode.
2305 (Expand_Freeze_Record_Type): Do not create TSS routine
2306 Finalize_Address when compiling in Alfa mode.
2307 * exp_ch4.adb (Expand_Allocator_Expression): Do not produce a
2308 call to Set_Finalize_Address in Alfa mode because Finalize_Address is
2309 not built.
2310 (Expand_N_Allocator): Do not produce a call to
2311 Set_Finalize_Address in Alfa mode because Finalize_Address is not built.
2312 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not
2313 produce a call to primitive Set_Finalize_Address in Alfa mode because
2314 Finalize_Address is not built.
2315 * exp_ch7.adb (Build_Finalization_Master): Do not create
2316 finalization masters in Afa mode since they are not needed.
2317 (Build_Finalizer): Do not create scope and library-level
2318 finalizers in Alfa mode since they are not needed.
2319 * exp_util.adb (Build_Allocate_Deallocate_Proc): Do not expand
2320 "new" and "free" when applied to controlled objects in Alfa mode since
2321 this is not needed.
2322
7a0ddd20
AC
23232011-09-02 Vincent Celier <celier@adacore.com>
2324
2325 * prj-nmsc.db: (Check_Stand_Alone_Library): For SALs, allow
2326 only library names with the syntax of Ada identifiers, to avoid errors
2327 when compiling the binder generated files.
2328 * projects.texi: Document restriction on SAL library names
2329
23302011-09-02 Thomas Quinot <quinot@adacore.com>
2331
2332 * a-chtgbo.adb: Minor comment fix.
2333
439b6dfa
AC
23342011-09-02 Robert Dewar <dewar@adacore.com>
2335
2336 * lib-xref.adb: Minor reformatting
2337
23382011-09-02 Vincent Celier <celier@adacore.com>
2339
2340 * bindusg.adb, clean.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
2341 gnatls.adb, gnatname.adb, gnatxref.adb, gprep.adb, makeusg.adb: Add
2342 --version and --help in usage.
2343 * switch.ads, switch.adb (Display_Usage_Version_And_Help): New procedure
2344
f2404867
AC
23452011-09-02 Bob Duff <duff@adacore.com>
2346
2347 * lib-xref.adb: (Hash): Avoid use of 'Mod attribute, because old
2348 compilers don't understand it.
2349
23502011-09-02 Gary Dismukes <dismukes@adacore.com>
2351
2352 * exp_attr.adb (Expand_N_Attribute_Reference): Pass the
2353 underlying subtype rather than its base type on the call to
2354 Build_Record_Or_Elementary_Input_Function, so that any
2355 constraints on a discriminated subtype will be available for
2356 doing the check required by AI05-0192.
2357 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
2358 If the prefix subtype of the 'Input attribute is a constrained
2359 discriminated subtype, then check each constrained discriminant value
2360 against the corresponding value read from the stream.
2361
029b67ba
YM
23622011-09-02 Yannick Moy <moy@adacore.com>
2363
2364 * usage.adb, warnsw.adb, sem_ch6.adb, opt.ads: Disable by default
2365 warnings on suspicious contracts, and enable them with -gnatwa.
2366
dc36a7e3
RD
23672011-09-02 Robert Dewar <dewar@adacore.com>
2368
2369 * exp_util.adb, exp_ch9.adb, sem_attr.adb, sem_ch6.adb: Minor
2370 reformatting.
2371
d5aa443c
AC
23722011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
2373
2374 * exp_ch9.adb (Install_Private_Data_Declarations): Add guards
2375 which ensure that restriction No_Dynamic_Attachment has not been
2376 violated.
2377 (Make_Initialize_Protection): Protected types with attach or
2378 interrupt handlers must not violate restriction No_Dynamic_Attachment.
2379 * exp_util.adb (Corresponding_Runtime_Package): Add a guard
2380 which ensures that restriction No_Dynamic_Attachment has not been
2381 violated.
2382 * sem_attr.adb: (Eval_Attribute): Transform
2383 VAX_Float_Type'First and 'Last into references to
2384 the temporaries which store the corresponding bounds. The
2385 transformation is needed since the back end cannot evaluate
2386 'First and 'Last on VAX.
2387 (Is_VAX_Float): New routine.
2388
23892011-09-02 Ed Schonberg <schonberg@adacore.com>
2390
2391 * sem_ch12.adb (Analyze_Subprogram_Instantiation): If the
2392 generic unit is not intrinsic and has an explicit convention,
2393 the instance inherits it.
2394
67c86178
AC
23952011-09-02 Robert Dewar <dewar@adacore.com>
2396
2397 * prj-dect.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, prj-tree.adb,
2398 prj.adb, prj.ads, sem_ch5.adb: Minor reformatting.
2399
24002011-09-02 Thomas Quinot <quinot@adacore.com>
2401
2402 * sem_attr.adb (Analyze_Attribute, case Unrestriced_Access):
2403 Guard against a prefix that is an N_Has_Entity but has no
2404 associated entity.
2405
24062011-09-02 Yannick Moy <moy@adacore.com>
2407
2408 * lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa
2409 references.
2410
24112011-09-02 Yannick Moy <moy@adacore.com>
2412
2413 * opt.ads (Warn_On_Suspicious_Contract): New warning flag.
2414 * sem_ch3.adb (Analyze_Declarations): Call checker for suspicious
2415 contracts.
2416 * sem_ch6.adb, sem_ch6.ads (Check_Subprogram_Contract): New
2417 procedure looking for suspicious postconditions.
2418 * usage.adb (Usage): New options -gnatw.t and -gnatw.T.
2419 * warnsw.adb (Set_Dot_Warning_Switch): Take into account new
2420 options -gnatw.t and -gnatw.T.
2421
735ca1b9
PO
24222011-09-02 Pascal Obry <obry@adacore.com>
2423
2424 * prj.adb: Minor code refactoring. Move check for null project in
2425 Project_Changed.
2426 * projects.texi: Fix minor typos.
2427
86828d40
AC
24282011-09-02 Ed Schonberg <schonberg@adacore.com>
2429
2430 * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
2431 of iteration is an expression, its value must be captured in a
2432 renaming declaration, so that modification of the elements is
2433 propagated to the original container.
2434
24352011-09-02 Pascal Obry <obry@adacore.com>
2436
2437 * prj-proc.adb, prj.adb, makeutl.adb, makeutl.ads, prj-dect.adb,
2438 prj-nmsc.adb, prj-util.adb, prj-conf.adb, prj-env.adb,
2439 prj-tree.adb: Minor reformatting and style fixes.
2440
83de674b
AC
24412011-09-02 Robert Dewar <dewar@adacore.com>
2442
2443 * s-rident.ads: Add new restriction No_Implicit_Aliasing
2444 * sem_attr.adb: (Analyze_Access_Attribute): Deal with
2445 No_Implicit_Aliasing
2446 (Analyze_Attribute, case Address): ditto
2447 (Analyze_Attribute, case Unrestricted_Access): ditto
2448 * sem_util.ads, sem_util.adb: (Is_Aliased_View): Handle
2449 No_Implicit_Aliasing restriction.
2450 * gnat_rm.texi: Add documentation for No_Implicit_Aliasing
2451
24522011-09-02 Ed Schonberg <schonberg@adacore.com>
2453
2454 * exp_util.adb: (Possible_Bit_Aligned_Object): If the object
2455 is an unchecked conversion, apply test to its expression.
2456
24572011-09-02 Javier Miranda <miranda@adacore.com>
2458
2459 * sem_ch3.adb (Check_Abstract_Overriding): When
2460 traversing the chain of aliased subprograms avoid reporting a
2461 redundant error on the current entity.
2462
24632011-09-02 Sergey Rybin <rybin@adacore.com>
2464
2465 * gnat_ugn.texi: Minor clean up.
2466
24672011-09-02 Bob Duff <duff@adacore.com>
2468
2469 * s-htable.adb (Set_If_Not_Present): Use renaming
2470 instead of ":=", because the type Key is limited in the generic (even
2471 if not in the instances).
2472
2c17ca0a
AC
24732011-09-02 Robert Dewar <dewar@adacore.com>
2474
2475 * exp_util.adb, sem_ch10.adb, sem_attr.adb, s-htable.adb,
2476 g-comlin.adb, g-comlin.ads, lib-xref-alfa.adb, lib-xref.adb: Minor
2477 reformatting.
2478
24792011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
2480
2481 * sem_ch3.adb: (Set_Anonymous_Type): Associate the itype of an
2482 inherited component with the enclosing derived type. Code reformatting.
2483
24842011-09-02 Gary Dismukes <dismukes@adacore.com>
2485
2486 * checks.adb: (Determine_Range): Add test of OK1 to prevent the early
2487 return done when overflow checks are enabled, since comparisons against
2488 Lor and Hir should not be done when OK1 is False.
2489
24902011-09-02 Gary Dismukes <dismukes@adacore.com>
2491
2492 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
2493 Add new formal Master_Exp. When present, add that expression to the
2494 call as an extra actual.
2495 (Make_Build_In_Place_Call_In_Object_Declaration): Add variable
2496 Fmaster_Actual and in the case of a BIP call initializing a return
2497 object of an enclosing BIP function set it to a
2498 new reference to the implicit finalization master
2499 formal of the enclosing function. Fmaster_Actual is
2500 then passed to the new formal Master_Exp on the call to
2501 Add_Finalization_Master_Actual_To_Build_ In_Place_Call. Move
2502 initializations of Enclosing_Func to its declaration.
2503
25042011-09-02 Thomas Quinot <quinot@adacore.com>
2505
2506 * csets.ads: Minor reformatting
2507
25082011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
2509
2510 * exp_aggr.adb: (Get_Constraint_Association): Add code to retrieve
2511 the full view of a private type coming from an instantiation.
2512 * exp_ch4.adb: (Current_Anonymous_Master): Reimplement the search
2513 loop to iterate over the declarations rather than use the
2514 First_Entity / Next_Entity scheme.
2515
ed32b82e
ES
25162011-09-02 Ed Schonberg <schonberg@adacore.com>
2517
2518 * sem_attr.adb: (Analyze_Attribute, case 'Range): when expanding
2519 X'range (N) into X'First (N) .. X'Last (N), do not share the
2520 dimension indicator N, if present. Even though it is a static
2521 constant, its source location may be modified when printing
2522 expanded code under -gnatDL, and node sharing will lead to chaos
2523 in Sprint on large files, by generating a sloc value that does
2524 not correspond to any source file.
2525
f7bb41af
AC
25262011-09-02 Bob Duff <duff@adacore.com>
2527
2528 * einfo.adb: (Has_Xref_Entry): Do not call
2529 Implementation_Base_Type. Lib.Xref has been
2530 rewritten to avoid the need for it, and it was costly.
2531 * s-htable.ads,s-htable.adb: (Present,Set_If_Not_Present): New
2532 functions in support of efficient xref.
2533 * lib-xref-alfa.adb: Misc changes related to Key component of
2534 type Xref_Entry.
2535 * lib-xref.adb: (Add_Entry,etc): Speed improvement.
2536 (New_Entry): Call Implementation_Base_Type, because Has_Xref_Entry
2537 no longer does. This is the one place where it is needed.
2538
25392011-09-02 Johannes Kanig <kanig@adacore.com>
2540
2541 * g-comlin.adb (Getopt): New optional argument Concatenate to have
2542 similar interface as the other Getopt function.
2543
25442011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
2545
2546 * exp_ch4.adb: (Expand_Allocator_Expression): Do not generate
2547 a call to Set_Finalize_Address if there is no allocator available.
2548 * exp_util.adb: (Build_Allocate_Deallocate_Proc): Account for
2549 a case of allocator expansion where the allocator is not expanded but
2550 needs a custom allocate routine. Code reformatting.
2551 (Is_Finalizable_Transient): Remove local variables Has_Rens and
2552 Ren_Obj. Code reformatting.
2553 (Is_Renamed): Renamed to Is_Aliased. Add code to detect aliasing
2554 through the use of 'reference.
2555 * sem_ch4.adb: (Analyze_Allocator): Detect allocators generated
2556 as part of build-in-place expansion. They are intentionally marked as
2557 coming from source, but their parents are not.
2558
bd0bc43e
AC
25592011-09-02 Ed Schonberg <schonberg@adacore.com>
2560
2561 * sem_ch10.adb (Analyze_With_Clause): If the library unit
2562 is the generated subprogram declaration for a child unit body
2563 that acts as spec, use the original body in the with_clause,
2564 to prevent binding errors.
2565
25662011-09-02 Vincent Celier <celier@adacore.com>
2567
2568 * gnat_ugn.texi: Adapt documentation of -gnateInnn to new VMS
2569 qualifier /MULTI_UNIT_INDEX=
2570
25712011-09-02 Johannes Kanig <kanig@adacore.com>
2572
2573 * g-comlin.adb (Getopt): Return when switch is dealt with automatically,
2574 instead of calling the callback function
2575
9fdb5d21
RD
25762011-09-02 Robert Dewar <dewar@adacore.com>
2577
2578 * prj-proc.adb, prj.ads, sem_util.adb, s-taprop-linux.adb,
2579 prj-nmsc.adb, prj-util.ads, prj-env.adb: Minor reformatting.
2580
c6d5d1ac
AC
25812011-09-02 Vincent Celier <celier@adacore.com>
2582
2583 * prj-nmsc.adb: (Find_Sources): When the list of sources is
2584 explicitly declared in an extending project, do not warn if a source
2585 for an inherited naming exception is not found.
2586
25872011-09-02 Gary Dismukes <dismukes@adacore.com>
2588
2589 * exp_ch6.adb: (Is_Build_In_Place_Function_Call): Return False if
2590 expansion is inactive.
2591
25922011-09-02 Ed Schonberg <schonberg@adacore.com>
2593
2594 * sem_util.adb (Note_Possible_Modification): If the entity
2595 being modified is the renaming generated for an Ada2012 iterator
2596 element, the enclosing container or array is modified as well.
2597
2ba1a7c7
AC
25982011-09-02 Jose Ruiz <ruiz@adacore.com>
2599
2600 * s-taprop-linux.adb (Initialize_Lock, Initialize_TCB,
2601 Initialize): Define and initialize the
2602 mutex attributes and condition variable attributes locally.
2603
26042011-09-02 Vincent Celier <celier@adacore.com>
2605
2606 * prj-nmsc.adb (Check_File): Mark as Locally_Removed a naming
2607 exception replaced in an extending project.
2608 (Check_Object): No error when the other source is locally removed.
2609
26102011-09-02 Yannick Moy <moy@adacore.com>
2611
2612 * exp_ch6.adb (Is_Build_In_Place_Function_Call): in Alfa mode, allow
2613 unresolved calls.
2614
d51813db
AC
26152011-08-31 Arnaud Charlet <charlet@adacore.com>
2616
2617 * gcc-interface/Makefile.in: Clean up handling of x86 and x86-64
2618 run-time files.
2619 * gcc-interface/Make-lang.in: Update dependencies.
2620
9f55bc62
AC
26212011-09-01 Robert Dewar <dewar@adacore.com>
2622
2623 * sem_ch3.adb, s-taprop-linux.adb, gnatls.adb: Minor reformatting.
2624
26252011-09-01 Jose Ruiz <ruiz@adacore.com>
2626
2627 * adaint.h (__gnat_cpu_free): Fix the name of this profile.
2628 * adaint.c (__gnat_cpu_alloc, __gnat_cpu_alloc_size, __gnat_cpu_free,
2629 __gnat_cpu_zero, __gnat_cpu_set): Create version of these subprograms
2630 specific for systems where their glibc version does not define the
2631 routines to handle dynamically allocated CPU sets.
2632
26332011-09-01 Vincent Celier <celier@adacore.com>
2634
2635 * prj-proc.adb, prj.ads, prj-nmsc.adb, prj-util.adb, prj-util.ads,
2636 prj-env.adb: Implement inheritance of naming exceptions in extending
2637 projects.
2638
d7386a7a
AC
26392011-09-01 Romain Berrendonner <berrendo@adacore.com>
2640
2641 * gnatls.adb: Display simple message instead of content of
2642 gnatlic.adl.
2643
26442011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
2645
2646 * sem_ch3.adb: (Build_Derived_Record_Type) Remove the kludgy update of
2647 access discriminant and anonymous access component scopes.
2648 (Inherit_Component): Reuse the itype of an access discriminant
2649 or anonymous access component by copying it in order to set the proper
2650 scope. This is done only when the parent and the derived type
2651 are in different scopes.
2652 (Set_Anonymous_Etype): New routine.
2653
26542011-09-01 Robert Dewar <dewar@adacore.com>
2655
2656 * a-convec.adb: Minor reformatting throughout.
2657
9d1e0e72
JR
26582011-09-01 Jose Ruiz <ruiz@adacore.com>
2659
2660 * adaint.c, adaint.h (__gnat_cpu_alloc, __gnat_cpu_alloc_size,
2661 __gnat_cpu_set_free): Create these wrappers around the CPU_ALLOC,
2662 CPU_ALLOC_SIZE and CPU_FREE linux macros.
2663 (__gnat_cpu_zero, __gnat_cpu_set): Use the CPU_ZERO_S and
2664 CPU_SET_S respectively because we are now using dynamically allocated
2665 CPU sets which are more portable across different glibc versions.
2666 * s-osinte-linux.ads (cpu_set_t_ptr, CPU_ALLOC, CPU_ALLOC_SIZE,
2667 CPU_FREE): Add this type and subprograms to be able to create cpu_set_t
2668 masks dynamically according to the number of processors in the target
2669 platform.
2670 (CPU_ZERO, CPU_SET): They are now mapped to the CPU_ZERO_S and CPU_SET_S
2671 respectively, so we need to pass the size of the masks as
2672 parameters.
2673 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use dynamically
2674 created cpu_set_t masks
2675 with the number of processors available in the target platform,
2676 instead of static bit arrays. It enhances portability because
2677 it uses the information from the target platform.
2678 * sem_ch8.adb: (Attribute_Renaming): When checking whether we
2679 are using a restricted run-time library, use the flag
2680 Configurable_Run_Time_Mode instead of Restricted_Profile.
2681
a95be2d4
AC
26822011-09-01 Vincent Celier <celier@adacore.com>
2683
2684 * ug_words: Add /MULTI_UNIT_INDEX= -> -gnateI
2685 * vms_data.ads: Add new VMS qualifier equivalent for -gnateInnn
2686
26872011-09-01 Nicolas Roche <roche@adacore.com>
2688
2689 * adaint.c (__gnat_tmp_name): Don't use tmpnam function from the system
2690 on VxWorks in kernel mode.
2691
6b81741c
AC
26922011-09-01 Jose Ruiz <ruiz@adacore.com>
2693
2694 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use the linux
2695 macros for handling CPU sets (CPU_ZERO, CPU_SET) instead of modifying
2696 directly the bit array.
2697 * s-osinte-linux.ads (CPU_ZERO, CPU_SET): Import these wrappers around
2698 the linux macros with the same name.
2699 * adaint.h, adaint.c (__gnat_cpu_zero, __gnat_cpu_set): Create these
2700 wrappers around the CPU_ZERO and CPU_SET linux macros.
2701
27022011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
2703
2704 * exp_ch7.adb (Find_Insertion_List): Removed.
2705 (Process_Transient_Objects): Insert the declarations of the hook
2706 access type and the hook object before the associated transient object.
2707
27082011-09-01 Jose Ruiz <ruiz@adacore.com>
2709
2710 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
2711 package System.Aux_Dec when using restricted run-time libraries which
2712 do not have this package.
2713
27142011-09-01 Tristan Gingold <gingold@adacore.com>
2715
2716 * s-vaflop-vms-alpha.adb: Remove pragma optimize, useless.
2717
27182011-09-01 Bob Duff <duff@adacore.com>
2719
2720 * sem_attr.adb (Analyze_Access_Attribute): Do not call
2721 Kill_Current_Values for P'Unrestricted_Access, where P is library level
2722
27232011-09-01 Thomas Quinot <quinot@adacore.com>
2724
2725 * exp_ch5.adb: Minor reformatting
2726 * gnat_ugn.texi: Fix minor typos.
2727 * gcc-interface/Make-lang.in: Update dependencies.
2728
8256c1bf
AC
27292011-09-01 Robert Dewar <dewar@adacore.com>
2730
2731 * inline.adb, sem_aggr.adb: Minor reformatting.
2732
27332011-09-01 Ed Schonberg <schonberg@adacore.com>
2734
2735 * a-convec.adb: Proper handling of cursors for Ada2012 iterators.
2736
d1c5f424
AC
27372011-09-01 Robert Dewar <dewar@adacore.com>
2738
2739 * prj-proc.adb, exp_ch6.adb, prj-env.adb: Minor reformatting.
2740
27412011-09-01 Bob Duff <duff@adacore.com>
2742
2743 * sem_aggr.adb (Resolve_Aggregate): Need to treat "in instance
2744 body" the same as "in inlined body", because visibility shouldn't
2745 apply there.
2746
27472011-09-01 Eric Botcazou <ebotcazou@adacore.com>
2748
2749 * inline.adb (Add_Inlined_Body): Refine previous change.
2750
1bb6e262
AC
27512011-09-01 Gary Dismukes <dismukes@adacore.com>
2752
2753 * exp_ch6.ads (Needs_BIP_Alloc_Form): New utility function.
2754 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
2755 Test for case where call
2756 initializes an object of a return statement before testing for
2757 a constrained call, to ensure that all such cases get handled
2758 by simply passing on the caller's parameters. Also, in that
2759 case call Needs_BIP_Alloc_Form to determine whether to pass on
2760 the BIP_Alloc_Form parameter of the enclosing function rather
2761 than testing Is_Constrained. Add similar tests for the return
2762 of a BIP call to later processing to ensure consistent handling.
2763 (Needs_BIP_Alloc_Form): New utility function.
2764 * sem_ch6.adb: (Create_Extra_Formals): Replace test for adding
2765 a BIP_Alloc_Form formal with call to new utility function
2766 Needs_BIP_Alloc_Form.
2767
27682011-09-01 Pascal Obry <obry@adacore.com>
2769
2770 * prj-part.adb: Minor reformatting.
2771
27722011-09-01 Vincent Celier <celier@adacore.com>
2773
2774 * prj-env.adb (Create_Mapping_File.Process): Encode the upper
2775 half character in the unit name.
2776
db15225a
AC
27772011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
2778
2779 * exp_ch4.adb: Minor code and comment reformatting.
2780
27812011-09-01 Thomas Quinot <quinot@adacore.com>
2782
2783 * exp_ch6.adb (Expand_Inlined_Call): Remove redundant tests
2784 for Is_Limited_Type and Is_Tagged_Type in condition checking
2785 for by-reference type.
2786 * inline.adb (Add_Inlined_Body): Only exclude init_procs. Other
2787 subprograms may have a completion because of a previous
2788 Inline_Always clause, but the enclosing package must be marked
2789 inlined for the subprogram body to become visible to the backend.
2790
9d641fc0
TQ
27912011-09-01 Thomas Quinot <quinot@adacore.com>
2792
2793 * sem_aux.adb, exp_ch4.adb: Minor reformatting
2794
dbe36d67
AC
27952011-09-01 Pascal Obry <obry@adacore.com>
2796
2797 * prj-proc.adb, prj.ads, sinput-p.adb: Minor reformatting.
2798
27992011-09-01 Ed Schonberg <schonberg@adacore.com>
2800
2801 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Generate references to
2802 the formals of a subprogram stub that acts as a spec.
2803
28042011-09-01 Ed Schonberg <schonberg@adacore.com>
2805
2806 * exp_ch6.adb (Expand_Inlined_Call): If an actual is a by_reference
2807 type, declare a renaming for it, not an object declaration.
2808
f5037886
AC
28092011-09-01 Yannick Moy <moy@adacore.com>
2810
2811 * ali-util.adb, ali-util.ads (Read_Withed_ALIs): Add parameter
2812 Ignore_Errors to ignore failures to read ALI files when True.
2813
28142011-09-01 Javier Miranda <miranda@adacore.com>
2815
2816 * exp_ch3.adb (Expand_N_Object_Declaration): Handle non-default
2817 constructor calls associated with non-tagged record types.
2818
28192011-09-01 Robert Dewar <dewar@adacore.com>
2820
2821 * g-socthi-vms.adb: Minor reformatting.
2822
28232011-09-01 Nicolas Roche <roche@adacore.com>
2824
2825 * sysdep.c: Don't use macro functions for stdio functions on VxWorks
2826 in order to avoid impact of imcompatible changes.
2827 * cstreams.c: Likewise
2828 * cio.c: Likewise
2829 * aux-io.c: Likewise
2830
28312011-09-01 Yannick Moy <moy@adacore.com>
2832
2833 * lib-writ.adb (Write_With_Lines): Always output complete information
2834 on "with" line in Alfa mode, as this is required by formal verification
2835 back-end.
2836
549e4558
AC
28372011-09-01 Tristan Gingold <gingold@adacore.com>
2838
2839 * g-socthi-vms.adb: Add comments.
2840
28412011-09-01 Pascal Obry <obry@adacore.com>
2842
2843 * prj.ads: Minor reformatting.
2844
70c0422d
AC
28452011-09-01 Vincent Celier <celier@adacore.com>
2846
2847 * prj-env.adb (Create_Config_Pragmas_File.Check): Put all naming
2848 exceptions in the config pragmas file.
2849
28502011-09-01 Tristan Gingold <gingold@adacore.com>
2851
2852 * gnat_ugn.texi: Document GNAT_STACK_SIZE on IVMS.
2853
8c5b03a0
AC
28542011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
2855
2856 * exp_ch7.adb (Find_Insertion_List): New routine.
2857 (Process_Transient_Objects): Add code to handle the abnormal
2858 finalization of a controlled transient associated with a subprogram
2859 call. Since transients are cleaned up right after the associated
2860 context, an exception raised during a subprogram call may bypass the
2861 finalization code.
2862
28632011-09-01 Robert Dewar <dewar@adacore.com>
2864
2865 * exp_ch6.adb (Expand_Call): Check actual for aliased parameter is
2866 aliased.
2867
3040dbd4
RD
28682011-09-01 Robert Dewar <dewar@adacore.com>
2869
2870 * exp_ch4.adb, a-exexda.adb: Minor reformatting.
2871
fecbd779
AC
28722011-09-01 Robert Dewar <dewar@adacore.com>
2873
2874 * s-taskin.ads, s-tassta.adb, sem_ch13.adb: Minor reformatting.
2875
28762011-09-01 Thomas Quinot <quinot@adacore.com>
2877
2878 * Makefile.rtl: Move s-oscons.o from GNATRTL_TASKING_OBJS to
2879 GNATRTL_NONTASKING_OBJS.
2880
28812011-09-01 Robert Dewar <dewar@adacore.com>
2882
2883 * einfo.ads (Is_Aliased): Fix existing documentation and add note on
2884 possibility of this flag being set for formals in Ada 2012 mode.
2885 * par-ch6.adb (P_Formal_Part): Handle aliased for parameters for Ada
2886 2012.
2887 * sem_ch6.adb (Process_Formals): Handle aliased parameters in Ada 2012
2888 mode.
2889 * sinfo.adb (Aliased_Present): Allowed in N_Parameter_Specification for
2890 Ada 2012.
2891 * sinfo.ads (Aliased_Present): Allowed in N_Parameter_Specification for
2892 Ada 2012.
2893
28942011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
2895
2896 * exp_ch4.adb (Find_Insertion_Node): New routine. Determines the proper
2897 insertion node in a tree of nested Expression_With_Actions nodes.
2898 (Process_Transient_Object): In the case where a complex if statement
2899 has been converted into nested Expression_With_Actions nodes, the
2900 "hook" object and the associated access type must be inserted before
2901 the top most Expression_With_Actions.
2902
516f608f
AC
29032011-09-01 Robert Dewar <dewar@adacore.com>
2904
2905 * a-cbprqu.adb, a-cbprqu.ads, a-cuprqu.adb, a-cuprqu.ads,
2906 a-cbsyqu.adb, a-cbsyqu.ads: Minor reformatting.
2907
29082011-09-01 Ed Schonberg <schonberg@adacore.com>
2909
2910 * sem_attr.adb: Conditionalize aliasing predicates to Ada2012.
2911
29122011-09-01 Jose Ruiz <ruiz@adacore.com>
2913
2914 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the CPU
2915 aspect.
2916 * aspects.adb (Canonical_Aspect): Add entry for the CPU aspect.
2917 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the CPU aspect
2918 in a similar way as we do for the Priority or Dispatching_Domain aspect.
2919 * s-mudido-affinity.adb (Dispatching_Domain_Tasks,
2920 Dispatching_Domains_Frozen): Move this local data to package
2921 System.Tasking because with the CPU aspect we need to have access
2922 to this data when creating the task in System.Tasking.Stages.Create_Task
2923 * s-taskin.ads (Dispatching_Domain_Tasks, Dispatching_Domains_Frozen):
2924 Move these variables from the body of
2925 System.Multiprocessors.Dispatching_Domains because with the CPU aspect
2926 we need to have access to this data when creating the task in
2927 System.Tasking.Stages.Create_Task.
2928 * s-taskin.adb (Initialize): Signal the allocation of the environment
2929 task to a CPU, if any, so that we know whether the CPU can be
2930 transferred to a different dispatching domain.
2931 * s-tassta.adb (Create_Task): Check whether the CPU to which this task
2932 is being allocated belongs to the dispatching domain where the task
2933 lives. Signal the allocation of the task to a CPU, if any, so that we
2934 know whether the CPU can be transferred to a different dispatching
2935 domain.
2936
2d42e881
ES
29372011-09-01 Ed Schonberg <schonberg@adacore.com>
2938
2939 * exp_attr.adb, sem_attr.adb, snames.ads-tmpl: Implementation of
2940 attributes Same_Storage and Overlaps_Storage.
2941
579fda56
AC
29422011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
2943
2944 * exp_strm.adb: Remove with and use clause for Opt.
2945 (Build_Array_Input_Function): Remove the version-dependent generation
2946 of the return statement. The Ada 2005 tree is now the default.
2947
29482011-09-01 Yannick Moy <moy@adacore.com>
2949
2950 * put_alfa.adb: Unconditionnally write files in Alfa section, so that
2951 it is never empty when compiling in Alfa mode.
2952
29532011-09-01 Robert Dewar <dewar@adacore.com>
2954
2955 * sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb,
2956 comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb,
2957 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
2958 gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting
2959
29602011-09-01 Matthew Heaney <heaney@adacore.com>
2961
2962 * Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb],
2963 a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb]
2964 * a-csquin.ads: New Ada 2012 unit that specifies the queue interface
2965 * a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the
2966 unbounded queue container.
2967 * a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the
2968 bounded queue container.
2969 * a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the
2970 unbounded priority queue container.
2971 * a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the
2972 bounded priority queue container.
2973
24c34107
AC
29742011-08-31 Pascal Obry <obry@adacore.com>
2975
2976 * a-direct.adb: Do not try to create an UNC path on Windows.
2977 (Create_Path): Skip leading computer name in UNC path if any.
2978
29792011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2980
2981 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): Remove the
2982 version-dependent generation of the return statement. The Ada 2005 tree
2983 is now the default.
2984
29852011-08-31 Thomas Quinot <quinot@adacore.com>
2986
2987 * rtsfind.ads, exp_dist.adb (Find_Numeric_Representation): Predefined
2988 types Stream_Element_Offset and Storage_Offset have a different native
2989 type depending on whether the platform is 32 or 64 bits. When
2990 exchanging them, always convert to 64 bits.
2991
29922011-08-31 Yannick Moy <moy@adacore.com>
2993
2994 * debug.adb: Reserve debug option -gnatd.E for passing gnatprove option
2995 --force-alfa to gnat2why.
2996
29972011-08-31 Ed Schonberg <schonberg@adacore.com>
2998
2999 * sem_ch12.adb (Save_References): If the node has aspects, save
3000 references within the corresponding expressions in a separate step,
3001 because the aspects are not directly in the tree for the declaration
3002 to which they belong.
3003
30042011-08-31 Arnaud Charlet <charlet@adacore.com>
3005
3006 * freeze.adb (Freeze_Record_Type): Omit test on variable size component
3007 in CodePeer mode, since representation clauses are partially ignored.
3008 * gcc-interface/Make-lang.in: Update dependencies.
3009
702d2020
AC
30102011-08-31 Jose Ruiz <ruiz@adacore.com>
3011
3012 * s-taprop-vxworks.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
3013 s-taprop-solaris.adb (Create_Task): Not_A_Specific_CPU can be assigned
3014 to any dispatching domain.
3015
30162011-08-31 Thomas Quinot <quinot@adacore.com>
3017
3018 * exp_ch4.adb: Minor reformatting.
3019
30202011-08-31 Bob Duff <duff@adacore.com>
3021
3022 * sem_ch6.adb (Get_Generic_Parent_Type): Don't query Subtype_Indication
3023 on nodes for which it is not defined.
3024 (Is_Non_Overriding_Operation): Exit the loop when we find a generic
3025 parent type.
3026
30272011-08-31 Bob Duff <duff@adacore.com>
3028
3029 * sem_ch3.adb (Process_Full_View): Disable legality check if
3030 In_Instance, to avoid spurious errors.
3031 * sem_ch12.adb (Validate_Derived_Type_Instance): Disable legality check
3032 if In_Instance, to avoid spurious errors.
3033
30342011-08-31 Pascal Obry <obry@adacore.com>
3035
3036 * a-direct.adb: Use Dir_Seps everywhere to properly handle all
3037 directory speparators.
3038 (Compose): Use Dir_Seps to handle both forms.
3039 (Create_Path): Use Dir_Seps instead of explicit check, no semantic
3040 changes.
3041 (Extension): Use Dir_Seps to handle both forms.
3042
30432011-08-31 Pascal Obry <obry@adacore.com>
3044
3045 * prj-conf.adb: Minor reformatting.
3046
67645bde
AC
30472011-08-31 Jose Ruiz <ruiz@adacore.com>
3048
3049 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the
3050 dispatching domain aspect.
3051 * aspects.adb (Canonical_Aspect): Add entry for the dispatching domain
3052 aspect.
3053 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the
3054 Dispatching_Domain aspect in a similar way as we do for the Priority
3055 aspect.
3056 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add the
3057 Dispatching_Domain component if a Dispatching_Domain pragma or aspect
3058 is present.
3059 (Make_Task_Create_Call): Add the Dispatching_Domain when creating a task
3060 * par-prag.adb (Prag): Add Pragma_Dispatching_Domain as a known pragma.
3061 * sem_prag.adb (Analyze_Pragma): Check the correctness of a pragma
3062 Dispatching_Domain and add it to the task definition.
3063 (Sig_Flags): Add Pragma_Dispatching_Domain.
3064 * rtsfind.ads, rtsfind.adb (RTU_Id, RE_Id, Get_Unit_Name): Add the
3065 support to find the types Dispatching_Domain and
3066 Dispatching_Domain_Access.
3067 * sinfo.ads, sinfo.adb (Has_Pragma_Dispatching_Domain,
3068 Set_Has_Pragma_Dispatching_Domain): Add these subprograms to set and
3069 query the availability of a pragma Dispatching_Domain.
3070 * snames.ads-tmpl (Name_uDispatching_Domain): Add this name required by
3071 the expander to pass the Dispatching_Domain when creating a task.
3072 (Name_Dispatching_Domain): Add this new name for a pragma.
3073 (Pragma_Id): Add the new Pragma_Dispatching_Domain.
3074 * s-tassta.ads, s-tassta.adb (Create_Task): Set the domain to which the
3075 task has been allocated at creation time.
3076 * s-tarest.adb (Create_Restricted_Task): The dispatching domain using
3077 Ravenscar is always null.
3078 * s-taskin.ads, s-taskin.adb (Initialize_ATCB): Set the domain to which
3079 the task has been allocated at creation time.
3080 * s-tporft.adb (Register_Foreign_Thread): A foreign task will not have
3081 a specific dispatching domain.
3082 * s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-vxworks.adb,
3083 s-taprop-mingw.adb (Create_Task): Check whether both Dispatching_Domain
3084 and CPU are specified for the task, and the CPU value is not contained
3085 within the range of processors for the domain.
3086
30872011-08-31 Vincent Celier <celier@adacore.com>
3088
3089 * make.adb (Original_Gcc) : New constant String_Access.
3090 (Gnatmake): For VM targets, do not use VM version of the compiler if
3091 --GCC= has been specified.
3092
30932011-08-31 Thomas Quinot <quinot@adacore.com>
3094
3095 * sem_ch5.adb: Minor reformatting.
3096
30972011-08-31 Ed Schonberg <schonberg@adacore.com>
3098
3099 * exp_pakd.adb (Convert_To_PAT_Type): If prefix is a function call, do
3100 not reanalyze it.
3101
31022011-08-31 Bob Duff <duff@adacore.com>
3103
3104 * exp_ch4.adb (Expand_N_Selected_Component): Use the full type, in case
3105 the access type is private; we don't care about privacy in expansion.
3106
31072011-08-31 Ed Schonberg <schonberg@adacore.com>
3108
3109 * sem_aggr.adb (Resolve_Aggregate): In an instance, ignore aggregate
3110 subcomponents tnat may be limited, because they originate in view
3111 conflicts. If the original aggregate is legal and the actuals are
3112 legal, the aggregate itself is legal.
3113
b8789727
AC
31142011-08-31 Matthew Heaney <heaney@adacore.com>
3115
3116 * a-rbtgbo.adb (Clear_Tree): Assert representation invariant for lock
3117 status.
3118
31192011-08-31 Ed Schonberg <schonberg@adacore.com>
3120
3121 * sem_ch5.adb: Set kind of loop parameter properly, to preserve all
3122 errors in B tests.
3123
31242011-08-31 Jose Ruiz <ruiz@adacore.com>
3125
3126 * sem_ch13.adb (Analyze_Aspect_Specifications): For the Priority and
3127 Interrupt_Priority aspects, force the analysis of the aspect expression
3128 (when building the equivalent pragma). Otherwise, its analysis is done
3129 too late, after the task or protected object has been created.
3130 * sem_ch9.adb (Analyze_Single_Protected_Declaration,
3131 Analyze_Single_Task_Declaration): Remove the code to move the aspects
3132 to the object declaration because they are needed in the type
3133 declaration.
3134
e0c32166
AC
31352011-08-31 Robert Dewar <dewar@adacore.com>
3136
3137 * exp_ch5.adb, exp_ch7.ads, sem_ch5.adb, put_scos.adb, s-rannum.adb,
3138 a-rbtgbo.adb, exp_intr.adb, a-cbdlli.adb, a-cbdlli.ads: Minor
3139 reformatting.
3140
31412011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3142
3143 * exp_util.adb (Find_Protection_Type): Do not look for fields _object
3144 if the corresponding type is malformed due to restriction violations.
3145
31462011-08-31 Robert Dewar <dewar@adacore.com>
3147
3148 * s-ransee.ads, s-ransee.adb: Minor reformatting.
3149
31502011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3151
3152 * exp_ch4.adb (Expand_N_Allocator): Correct faulty condition which
3153 would cause the generation of Set_Finalize_Address if the target is a
3154 VM and the designated type is not derived from [Limited_]Controlled.
3155
31562011-08-31 Arnaud Charlet <charlet@adacore.com>
3157
3158 * comperr.adb, comperr.ads, gnat1drv.adb (Delete_SCIL_Files): New
3159 subprogram.
3160 (Compiler_Abort, Gnat1drv): Call Delete_SCIL_Files in codepeer mode in
3161 case of a compilation error.
3162
31632011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3164
3165 * init.c (__gnat_error_handler): Standardize the stack overflow or
3166 erroneous memory access message.
3167 * seh_init.c (__gnat_SEH_error_handler): Standardize the stack overflow
3168 or erroneous memory access message.
3169
11bc76df
AC
31702011-08-31 Robert Dewar <dewar@adacore.com>
3171
3172 * sem_ch4.adb: Minor reformatting.
3173 * sem_ch6.adb: Minor code reorganization (use Ekind_In).
3174
31752011-08-31 Thomas Quinot <quinot@adacore.com>
3176
3177 * scos.ads: Minor documentation clarification.
3178 * put_scos.adb: Do not generate SCO unit header line for a unit that
3179 has no SCO lines.
3180
876d4394
RD
31812011-08-31 Robert Dewar <dewar@adacore.com>
3182
3183 * a-rbtgbo.adb, alfa_test.adb: Minor reformatting.
3184
36b8f95f
AC
31852011-08-31 Tristan Gingold <gingold@adacore.com>
3186
3187 * exp_ch7.ads, exp_ch7.adb (Finalization_Exception_Data): New type to
3188 hold variables between these following subprograms.
3189 (Build_Exception_Handler, Build_Object_Declarations,
3190 Build_Raise_Statement): Use the above type as parameter.
3191 Make the above adjustments.
3192 * exp_intr.adb (Expand_Unc_Deallocation): Adjust.
3193
31942011-08-31 Pascal Obry <obry@adacore.com>
3195
3196 * projects.texi: Minor reformatting.
3197
31982011-08-31 Tristan Gingold <gingold@adacore.com>
3199
3200 * s-ransee.ads, s-ransee.adb: Add system.random_seed unit.
3201 * s-rannum.adb (Reset): Use Get_Seed from s-ransee.
3202
32032011-08-31 Ed Schonberg <schonberg@adacore.com>
3204
3205 * exp_ch5.adb: Minor code cleanup.
3206 * sem_ch5.adb (Analyze_Iteration_Scheme): Set ekind of loop variable to
3207 prevent cascaded errors.
3208 (Analyze_Loop_Statement): In semantics-only mode, introduce loop
3209 variable of an iterator specification in current scope.
3210 * sem_ch6.adb (Analyze_Return_Statement, Find_what_It_Apples_To): Skip
3211 postconditions on the stack, as they contain no return statements.
3212
32132011-08-31 Yannick Moy <moy@adacore.com>
3214
3215 * exp_alfa.adb (Expand_Alfa_N_Package_Declaration,
3216 Expand_Alfa_N_Subprogram_Body): Remove useless procedures which simply
3217 call Qualify_Entity_Names.
3218 (Expand_Alfa): call Qualify_Entity_Names in more cases
3219 * lib-xref-alfa.adb: Take into account system package.
3220 * sem_prag.adb Take into account restrictions in Alfa mode, contrary to
3221 CodePeer mode in which we are interested in finding bugs even if
3222 compiler cannot compile source.
3223 * sem_util.adb, sem_util.ads (Unique_Entity): Take into account case of
3224 deferred constant.
3225
32262011-08-31 Gary Dismukes <dismukes@adacore.com>
3227
3228 * sem_ch3.adb (Constrain_Concurrent): Retrieve Base_Type of the subtype
3229 denoted by the subtype mark to ensure getting the concurrent type in
3230 the case where the subtype mark denotes a private subtype of a
3231 concurrent type (needed when using -gnatc).
3232 (Process_Subtype): For the processing specific to type kinds, case on
3233 the Base_Type kind of the Subtype_Mark_Id, to handle cases where the
3234 subtype denotes a private subtype whose base type is nonprivate (needed
3235 for subtypes of private fulfilled by task types when compiling with
3236 -gnatc).
3237
32382011-08-31 Gary Dismukes <dismukes@adacore.com>
3239
3240 * sem_disp.adb (Check_Dispatching_Operation): Bypass registration of
3241 late primitives that override interface operations when the full
3242 expander is not active, to avoid blowups in Register_Primitive when
3243 types don't have associated secondary dispatch tables.
3244
32452011-08-31 Yannick Moy <moy@adacore.com>
3246
3247 * alfa_test.adb: Code clean up.
3248
32492011-08-31 Marc Sango <sango@adacore.com>
3250
3251 * restrict.adb (Check_SPARK_Restriction): Change Comes_From_Source (N)
3252 by Comes_From_Source (Original_Node (N)) in order to treat also the
3253 nodes which have been rewritten.
3254 * sem_ch4.adb (Analyze_Explicit_Dereference, Analyze_Slice): Guard the
3255 explicit dereference and slice violation in spark mode on the nodes
3256 coming only from the source code.
3257
8cf23b91
AC
32582011-08-31 Robert Dewar <dewar@adacore.com>
3259
3260 * exp_ch5.adb, exp_alfa.ads, prj.ads, sem_attr.adb,
3261 lib-xref-alfa.adb: Minor reformatting.
3262
32632011-08-31 Matthew Heaney <heaney@adacore.com>
3264
3265 * a-crbltr.ads (Tree_Type): Default-initialize the Nodes component.
3266
32672011-08-31 Javier Miranda <miranda@adacore.com>
3268
3269 * sem_ch4.adb (Try_Object_Operation): Addition of one formal to search
3270 only for class-wide subprograms conflicting with entities of concurrent
3271 tagged types.
3272
32732011-08-31 Matthew Heaney <heaney@adacore.com>
3274
3275 * a-rbtgbo.adb (Generic_Allocate): Initialize pointer components of
3276 node to null value.
3277
32782011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3279
3280 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Provide a more
3281 general description of the routine.
3282
32832011-08-31 Ed Schonberg <schonberg@adacore.com>
3284
3285 * a-cbdlli.adb, a-cbdlli.ads: Add iterator machinery to bounded
3286 doubly-linked lists.
3287
0bb3bfb8
GD
32882011-08-31 Gary Dismukes <dismukes@adacore.com>
3289
3290 * exp_ch5.adb (Expand_N_Assignment_Statement): When a discriminant
3291 check is needed for a left-hand side that is a dereference, and the
3292 base type is private without discriminants (whereas the full type does
3293 have discriminants), an extra retrieval of the underlying type may be
3294 needed in the case where the subtype is a record subtype whose base
3295 type is private. Update comments.
3296
11fa950b
AC
32972011-08-31 Javier Miranda <miranda@adacore.com>
3298
3299 * sem_ch4.adb (Try_Object_Operation): When a dispatching primitive is
3300 found check if there is a class-wide subprogram covering the primitive.
3301
33022011-08-31 Yannick Moy <moy@adacore.com>
3303
3304 * sem_res.adb: Further cases where full expansion test is needed,
3305 rather than expansion test.
3306
33072011-08-31 Pascal Obry <obry@adacore.com>
3308
3309 * prj-attr.adb: Fix Source_File_Switches attribute kind (must be a list)
3310
33112011-08-31 Ed Schonberg <schonberg@adacore.com>
3312
3313 * exp_ch5.adb: Handle iterators over derived container types.
3314
33152011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3316
3317 * einfo.ads, einfo.adb: Add new flag Has_Anonymous_Master.
3318 (Has_Anonymous_Master): New routine.
3319 (Set_Has_Anonymous_Master): New routine.
3320 (Write_Entity_Flags): Add an entry for Has_Anonymous_Master.
3321 * exp_ch4.adb: Add with and use clause for Sem_Ch8.
3322 (Current_Anonymous_Master): New routine.
3323 (Current_Unit_First_Declaration): Removed.
3324 (Current_Unit_Scope): Removed.
3325 (Expand_N_Allocator): Anonymous access-to-controlled types now chain
3326 their objects on a per-unit heterogeneous finalization master.
3327
33282011-08-31 Matthew Heaney <heaney@adacore.com>
3329
3330 * a-cbhama.adb, a-cbhase.adb (Insert): Check for zero-length buckets
3331 array.
3332
33332011-08-31 Jose Ruiz <ruiz@adacore.com>
3334
3335 * s-taprop-linux.adb (Create_Task): Avoid changing the affinity mask
3336 when not needed.
3337
33382011-08-31 Gary Dismukes <dismukes@adacore.com>
3339
3340 * sem_disp.adb (Propagate_Tag): Return without propagating in the case
3341 where the actual is an unexpanded call to 'Input.
3342
d2b4b3da
AC
33432011-08-31 Yannick Moy <moy@adacore.com>
3344
3345 * sem_ch4.adb: Code clean up.
3346
33472011-08-31 Yannick Moy <moy@adacore.com>
3348
3349 * exp_alfa.adb, exp_alfa.ads: Minor correction of copyright notice.
3350
33512011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3352
3353 * exp_ch7.adb (Build_Array_Deep_Procs): Do not generate Deep_Finalize
3354 and TSS primitive Finalize_Address if finalization is suppressed.
3355 (Build_Record_Deep_Procs): Do not generate Deep_Finalize and TSS
3356 primitive Finalize_Address if finalization is suppressed.
3357
33582011-08-31 Jose Ruiz <ruiz@adacore.com>
3359
3360 * s-mudido-affinity.adb, s-taprop-linux.adb, s-taprop-mingw.adb,
3361 s-taprop-solaris.adb, s-taprop-vxworks.adb (Set_Task_Affinity): Make
3362 sure that the underlying task has already been created before trying
3363 to change its affinity.
3364 (Set_CPU): Use the term processor instead of CPU, as we do in
3365 Assign_Task.
3366
33672011-08-31 Vincent Celier <celier@adacore.com>
3368
3369 * prj-attr.adb: New Compiler attribute Source_File_Switches.
3370 * prj-nmsc.adb (Process_Compiler): Process attribute
3371 Source_File_Switches.
3372 * prj.ads (Language_Config): New name list component
3373 Name_Source_File_Switches.
3374 * snames.ads-tmpl (Name_Source_File_Switches): New standard name.
3375
33762011-08-31 Ed Schonberg <schonberg@adacore.com>
3377
3378 * sem_attr.adb (Analyze_Attribute, case 'Old): If prefix may be a
3379 discriminated component of an actual, expand at once to prevent
3380 ouf-of-order references with generated subtypes.
3381
33822011-08-31 Yannick Moy <moy@adacore.com>
3383
3384 * lib-xref-alfa.adb (Add_Alfa_Xrefs): Do not take into account read
3385 reference to operator in Alfa xrefs.
3386
33872011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3388
3389 * sem_ch12.adb (Freeze_Subprogram_Body): Add code to handle the case
3390 where the parent instance was frozen before the current instance due to
3391 the presence of a source body. Update calls to Insert_After_Last_Decl.
3392 (Insert_After_Last_Decl): Renamed to Insert_Freeze_Node_For_Instance.
3393 Update the comment which illustrates the purpose of the routine.
3394 Package instances are now frozen by source bodies which appear after
3395 the instance. This ensures that entities coming from within the
3396 instance are available for use in the said bodies.
3397 (Install_Body): Add code to handle the case where the parent instance
3398 was frozen before the current instance due to the presence of a source
3399 body. Update calls to Insert_After_Last_Decl.
3400
56812278
AC
34012011-08-31 Jose Ruiz <ruiz@adacore.com>
3402
3403 * s-taprop-linux.adb (Set_Task_Affinity): Avoid the use of anonymous
3404 access types.
3405 * affinity.c (__gnat_set_affinity_mask): Declare index variable.
3406
34072011-08-31 Yannick Moy <moy@adacore.com>
3408
3409 * sem_ch8.adb (Analyze_Subprogram_Renaming): Refine expander test in
3410 full-expander test.
16c3301a
AC
3411 * alfa.adb, alfa.ads, alfa_test.adb, ali.adb, debug.adb, errout.adb,
3412 errout.ads, erroutc.adb, expander.adb, exp_ch4.adb, exp_ch7.adb,
3413 freeze.adb, get_alfa.adb, get_alfa.ads, gnat1drv.adb, lib-writ.adb,
3414 lib-writ.ads, lib-xref.adb, lib-xref.ads, lib-xref-alfa.adb, opt.adb,
3415 opt.ads, put_alfa.adb, put_alfa.ads, restrict.adb, sem_ch12.adb,
3416 sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3417 sem_prag.adb, sem_res.adb, sem_util.adb: Minor reformatting, renaming
3418 ALFA in Alfa (we dropped acronym).
56812278
AC
3419 * einfo.adb (Primitive_Operations): Correctly return list of primitive
3420 operations in a case where it returned previously No_Elist.
3421
7cda9727
RD
34222011-08-31 Robert Dewar <dewar@adacore.com>
3423
3424 * s-taprop-vxworks.adb, sem_ch5.adb, s-taprop-tru64.adb, exp_alfa.adb,
3425 s-taprop-vms.adb, bindgen.adb, s-mudido.adb, s-mudido.ads,
3426 sem_res.adb, expander.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
3427 s-taprop-solaris.adb, s-mudido-affinity.adb, vms_conv.adb,
3428 s-taprop-irix.adb, s-taprop.ads, s-taskin.adb, s-taskin.ads,
3429 s-taprop-hpux-dce.adb, a-chtgbo.adb, s-taprop-posix.adb: Minor
3430 reformatting.
3431
0a190dfd
AC
34322011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3433
3434 * sem_ch12 (Check_Private_View): Revert previous change.
3435 * sem_res.adb (Conversion_Check): Do not emit the error message if the
3436 conversion is in a generic instance.
3437
34382011-08-31 Matthew Heaney <heaney@adacore.com>
3439
3440 * a-cbhase.adb (Symmetric_Difference): Dereference correct node array.
3441 * a-chtgbo.adb (Free): Allow 0 as index value.
3442
34432011-08-31 Matthew Heaney <heaney@adacore.com>
3444
3445 * a-cborma.adb (Insert): Add comment to explain why no element
3446 assignment.
3447
34482011-08-31 Gary Dismukes <dismukes@adacore.com>
3449
3450 * sem_util.adb (Find_Body_Discriminal): Test whether the scope of the
3451 spec discriminant is already a concurrent type, in which case just use
3452 it, otherwise fetch the Corresponding_Concurrent_Type as before.
3453
7d266442
EB
34542011-08-30 Eric Botcazou <ebotcazou@adacore.com>
3455
3456 * system-irix-n64.ads, system-linux-armeb.ads, system-linux-armel.ads,
3457 system-linux-mips.ads, system-linux-mipsel.ads,
3458 system-linux-mips64el.ads, system-linux-ppc64.ads,
3459 system-linux-sparcv9.ads, system-rtems.ads: Remove GCC_ZCX_Support.
3460
4f1a975c
EB
34612011-08-30 Eric Botcazou <ebotcazou@adacore.com>
3462
3463 * gcc-interface/ada-tree.h (TYPE_EXTRA_SUBTYPE_P): Add internal check.
3464 * gcc-interface/utils2.c (build_binary_op): Tighten condition.
3465 (build_unary_op): Likewise.
3466
f2991b48
EB
34672011-08-30 Eric Botcazou <ebotcazou@adacore.com>
3468
3469 * raise-gcc.c: Do not include coretypes.h and tm.h.
3470 (setup_to_install): Remove test for compiler macro.
3471 * targext.c: Document use for the library.
3472 * gcc-interface/Makefile.in: Fix comment on the use of IN_GCC.
3473
10a22f43
EB
34742011-08-30 Eric Botcazou <ebotcazou@adacore.com>
3475
3476 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert
3477 the expression to the nominal type if the latter is a record type with
3478 a variant part and the type of the former is a record type without one.
3479
bfa2e39d
AC
34802011-08-30 Yannick Moy <moy@adacore.com>
3481
3482 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
3483 expansion in Alfa mode.
3484 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public
3485 * exp_alfa.adb, exp_alfa.ads: New package defining light expansion for
3486 Alfa mode.
3487 * gnat1drv.adb (Adjust_Global_Switches): Update Comment.
3488 * sem_res.adb: Ditto.
bd34109a 3489 * gcc-interface/Make-lang.in: Update dependencies.
bfa2e39d
AC
3490
34912011-08-30 Thomas Quinot <quinot@adacore.com>
3492
3493 * g-socket.ads: Minor documentation adjustment.
3494
a0347839
AC
34952011-08-30 Robert Dewar <dewar@adacore.com>
3496
3497 * exp_ch9.adb, s-tassta.adb, s-secsta.adb: Minor reformatting.
3498
34992011-08-30 Yannick Moy <moy@adacore.com>
3500
3501 * exp_ch6_light.adb, exp_ch6_light.ads, exp_attr_light.adb,
3502 exp_attr_light.ads, exp_ch7_light.adb, exp_ch7_light.ads,
3503 exp_light.adb, exp_light.ads, exp_prag.adb, expander.adb,
3504 gnat1drv.adb, exp_ch11.adb, exp_ch6.adb, exp_ch6.ads, exp_aggr.adb:
3505 Revert change which introduced files for "light"
3506 expansion, to be replaced by a single file for Alfa expansion.
3507
3597c0e9
RD
35082011-08-30 Robert Dewar <dewar@adacore.com>
3509
3510 * opt.ads, s-soflin.adb, exp_ch9.adb, sem_res.adb: Update comment.
3511 Minor code reorg/reformatting.
3512
da94696d
AC
35132011-08-30 Yannick Moy <moy@adacore.com>
3514
3515 * opt.adb, opt.ads (Full_Expander_Active): New function defines a
3516 common shorthand for (Expander_Active and not ALFA_Mode) that can be
3517 used for testing full expansion, that is active expansion not in the
3518 reduced mode for Alfa
3519 * exp_ch4.adb, exp_ch9.adb, exp_disp.adb, sem_ch10.adb, sem_ch12.adb,
3520 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Use newly defined "flag" instead
3521 of the verbose (Expander_Active and not ALFA_Mode)
3522
35232011-08-30 Tristan Gingold <gingold@adacore.com>
3524
3525 * s-parame-vms-alpha.ads, s-parame-hpux.ads, s-tassta.adb,
3526 s-tarest.adb, s-parame-vms-ia64.ads, s-soflin.adb, s-secsta.adb,
5b8ca141
TG
3527 s-secsta.ads, s-parame.ads, s-parame-vxworks.ads, s-parame-ae653.ads:
3528 Renames Ratio to Percentage, and Sec_Stack_Ratio to Sec_Stack_Percentage
da94696d 3529
c199ccf7
AC
35302011-08-30 Gary Dismukes <dismukes@adacore.com>
3531
3532 * sem_res.adb (Valid_Conversion): Revise test for implicit anonymous
3533 access conversions to check that the conversion is a rewritten node,
3534 rather than just having Comes_From_Source set to False, which wasn't
3535 sufficient.
3536
35372011-08-30 Robert Dewar <dewar@adacore.com>
3538
3539 * exp_ch9.adb, sem_ch9.adb, sem_ch6.adb, exp_disp.adb,
3540 g-socket.ads: Minor reformatting.
3541
35422011-08-30 Thomas Quinot <quinot@adacore.com>
3543
3544 * sem_util.adb: Minor reformatting.
3545
35462011-08-30 Tristan Gingold <gingold@adacore.com>
3547
3548 * raise-gcc.c: Never catch exception if _UA_FORCE_UNWIND flag is set,
3549 to be compliant with the ABI.
3550
dff99e1a
AC
35512011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
3552
3553 * sem_ch12.adb (Check_Private_View): Exchange the private and full view
3554 of a designated type when the related access type is an actual in an
3555 instance. This ensures that the full view of designated type is
3556 available when inside the body of the instance.
3557
35582011-08-30 Ed Schonberg <schonberg@adacore.com>
3559
3560 * sem_util.adb (May_Be_Lvalue): To determine whether a reference may be
3561 in a position to be modified, a slice is treated like an indexed
3562 component.
3563
63be2a5a
AC
35642011-08-30 Thomas Quinot <quinot@adacore.com>
3565
3566 * s-oscons-tmplt.c, g-socket.ads: Adjust maximum allowed value for
3567 field tv_sec in struct timeval.
3568
35692011-08-30 Yannick Moy <moy@adacore.com>
3570
3571 * exp_ch9.adb, exp_disp.adb, sem_ch9.adb, sem_res.adb: Protect several
3572 blocks of code doing full expansion, previously only guarded by
3573 Expander_Active, by anding the test that ALFA_Mode is not set
3574
35752011-08-30 Ed Schonberg <schonberg@adacore.com>
3576
3577 * sem_ch6.adb (Analyze_Return_Type): If the return type is incomplete,
3578 add the function to the list of private dependents, for subsequent
3579 legality check on Taft amendment types.
3580 * sem_ch12.adb (Analyze_Formal_Incomplete_Type): Initialize
3581 Private_Dependents, as for other incomplete types.
3582 * sem_util.adb (Wrong_Type): Avoid cascaded errors when a
3583 Taft-amendment type is used as the return type of a function.
3584
dd54644b
JM
35852011-08-30 Javier Miranda <miranda@adacore.com>
3586
3587 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code
3588 which emits an error by a call to a new routine which report the error.
3589 * exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the
3590 entity does not cover an existing interface.
3591 * errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize
3592 code.
3593 * sem_ch6.adb (Check_Conformance): Add specific error for wrappers of
3594 protected procedures or entries whose mode is not conformant.
3595 (Check_Synchronized_Overriding): Code cleanup: replace code which emits
3596 an error by a call to a new routine which report the error.
3597
d3ba478e
AC
35982011-08-30 Robert Dewar <dewar@adacore.com>
3599
3600 * gnat_rm.texi: Minor change.
3601 * exp_attr_light.adb: Minor reformatting.
3602
36032011-08-30 Ed Schonberg <schonberg@adacore.com>
3604
3605 * sem_ch3.adb: Patch inheritance of aspects in
3606 Complete_Private_Subtype, to avoid infinite loop.
3607
c01817d2
AC
36082011-08-30 Javier Miranda <miranda@adacore.com>
3609
3610 * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have
3611 been reported and a subprogram covering an interface primitive is not
3612 found then skip generating the internal entity. Done to avoid crashing
3613 the frontend.
3614 (Check_Abstract_Overriding): Change text of error of wrong formal of
3615 protected subprogram or entry. Done for consistency to emit exactly the
3616 same error reported by Check_Synchronized_Overriding. In addition, the
3617 error is restricted to protected types (bug found working on AI05-0090)
3618
36192011-08-30 Yannick Moy <moy@adacore.com>
3620
3621 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
3622 expansion in Alfa mode.
3623 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public.
3624 * exp_light.adb, exp_light.ads: New package defining light expansion.
3625 * expander.adb (Expand): Call light expansion in Alfa mode
3626 * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6
3627 constructs.
3628 * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7
3629 constructs.
3630 * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes
3631 * gnat1drv.adb (Adjust_Global_Switches): Comment
3632
36332011-08-30 Yannick Moy <moy@adacore.com>
3634
3635 * lib-xref-alfa.adb: Minor refactoring.
3636
36372011-08-30 Yannick Moy <moy@adacore.com>
3638
3639 * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa
3640 mode.
3641 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform
3642 expansion in Alfa mode.
3643 * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa
3644 mode.
3645
36462011-08-30 Robert Dewar <dewar@adacore.com>
3647
3648 * debug_a.adb: Update comment.
3649
996c8821
RD
36502011-08-30 Robert Dewar <dewar@adacore.com>
3651
3652 * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb,
3653 sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb,
3654 exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb,
3655 sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting
3656
36572011-08-30 Robert Dewar <dewar@adacore.com>
3658
3659 * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma
3660 volatile.
3661
3647ca26
HK
36622011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
3663
3664 * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to
3665 Build_Finalization_Master by supplying an insertion node and enclosing
3666 scope. In its old version, the call did not generate a finalization
3667 master.
3668 (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to
3669 recognize anonymous access-to-controlled components. Rewrite the
3670 machinery which creates finalization masters to service anonymous
3671 access-to-controlled components of a record type. In its current state,
3672 only one heterogeneous master is necessary to handle multiple anonymous
3673 components.
3674 (Freeze_Type): Comment reformatting.
3675 * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and
3676 RE_Unit_Table.
3677 * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which
3678 associates TSS primitive Finalize_Address with either the master itself
3679 or with the internal hash table depending on the mode of operation of
3680 the master.
3681
6d4e4fbc
JM
36822011-08-30 Javier Miranda <miranda@adacore.com>
3683
3684 * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an
3685 interface type then do not generate code to compare this component.
3686 Required since they have no components and their equality operator is
3687 abstract.
3688
d15f9422
AC
36892011-08-30 Steve Baird <baird@adacore.com>
3690
3691 * sem_util.ads (Deepest_Type_Access_Level): New function; for the type
3692 of a saooaaat (i.e, a stand-alone object of an anonymous access type),
3693 returns the (static) accessibility level of the object. Otherwise, the
3694 same as Type_Access_Level.
3695 (Dynamic_Accessibility_Level): New function; given an expression which
3696 could occur as the rhs of an assignment to a saooaaat (i.e., an
3697 expression of an access-to-object type), return the new value for the
3698 saooaaat's associated Extra_Accessibility object.
3699 (Effective_Extra_Accessibility): New function; same as
3700 Einfo.Extra_Accessibility except that object renames are looked through.
3701 * sem_util.adb
3702 (Deepest_Type_Access_Level): New function; see sem_util.ads description.
3703 (Dynamic_Accessibility_Level): New function; see sem_util.ads
3704 description.
3705 (Effective_Extra_Accessibility): New function; see sem_util.ads
3706 description.
3707 * einfo.ads (Is_Local_Anonymous_Access): Update comments.
3708 (Extra_Accessibility): Update comments.
3709 (Init_Object_Size_Align): New procedure; same as Init_Size_Align
3710 except RM_Size field (which is only for types) is unaffected.
3711 * einfo.adb
3712 (Extra_Accessibility): Expand domain to allow objects, not just formals.
3713 (Set_Extra_Accessibility): Expand domain to allow objects, not just
3714 formals.
3715 (Init_Size): Add assertion that we are not trashing the
3716 Extra_Accessibility attribute of an object.
3717 (Init_Size_Align): Add assertion that we are not trashing the
3718 Extra_Accessibility attribute of an object.
3719 (Init_Object_Size_Align): New procedure; see einfo.ads description.
3720 * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access
3721 differently for the type of a (non-library-level) saooaaat depending
3722 whether Ada_Version < Ada_2012. This is the only point where Ada_Version
3723 is queried in this set of changes - everything else (in particular,
3724 setting of the Extra_Accessibility attribute in exp_ch3.adb) is
3725 driven off of the setting of the Is_Local_Anonymous_Access attribute.
3726 The special treatment of library-level saooaaats is an optimization,
3727 not required for correctnesss. This is based on the observation that the
3728 Ada2012 rules (static and dynamic) for saooaaats turn out to be
3729 equivalent to the Ada2005 rules in the case of a library-level saooaaat.
3730 * exp_ch3.adb
3731 (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is
3732 false for the type of a saooaaat, declare and initialize its
3733 accessibility level object and set the Extra_Accessibility attribute
3734 of the saooaaat to refer to this object.
3735 * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support.
3736 * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with
3737 calls to Effective_Extra_Accessibility in order to support
3738 renames of saooaaats.
3739 (Expand_N_Type_Conversion): Add new local function,
3740 Has_Extra_Accessibility, and call it when determining whether an
3741 accessibility check is needed.
3742 It returns True iff Present (Effective_Extra_Accessibility (Id)) would
3743 evaluate to True (without raising an exception).
3744 * exp_ch5.adb
3745 (Expand_N_Assignment_Statement): When assigning to an Ada2012
3746 saooaaat, update its associated Extra_Accessibility object (if
3747 it has one). This includes an accessibility check.
3748 * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates
3749 a saooaaat, update its Extra_Accessibility object too (if it
3750 has one).
3751 (Expand_Call): Replace a couple of calls to Type_Access_Level
3752 with calls to Dynamic_Access_Level to handle cases where
3753 passing a literal (any literal) is incorrect.
3754 * sem_attr.adb (Resolve_Attribute): Handle the static accessibility
3755 checks associated with "Saooaat := Some_Object'Access;"; this must
3756 be rejected if Some_Object is declared in a more nested scope
3757 than Saooaat.
3758 * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an
3759 assignment to a saooaaat even if Is_Local_Anonymous_Access
3760 returns False for its type (indicating a 2012-style saooaaat).
3761 * sem_ch8.adb
3762 (Analyze_Object_Renaming): Replace a call to Init_Size_Align
3763 (which is only appropriate for objects, not types) with a call
3764 of Init_Object_Size_Align in order to avoid trashing the
3765 Extra_Accessibility attribute of a rename (the two attributes
3766 share storage).
3767 * sem_res.adb
3768 (Valid_Conversion) Replace six calls to Type_Access_Level with
3769 calls to Deepest_Type_Access_Level. This is a bit tricky. For an
3770 Ada2012 non-library-level saooaaat, the former returns library level
3771 while the latter returns the (static) accessibility level of the
3772 saooaaat. A type conversion to the anonymous type of a saooaaat
3773 can only occur as part of an assignment to the saooaaat, so we
3774 know that such a conversion must be in a lhs context, so Deepest
3775 yields the result that we need. If such a conversion could occur,
3776 say, as the operand of an equality operator, then this might not
3777 be right. Also add a test so that static accessibilty checks are
3778 performed for converting to a saooaaat's type even if
3779 Is_Local_Anonymous_Access yields False for the type.
3780
37812011-08-30 Javier Miranda <miranda@adacore.com>
3782
3783 * sem_disp.adb (Check_Dispatching_Operation): Complete condition that
3784 controls generation of a warning associated with late declaration of
3785 dispatching functions. Required to avoid generating spurious
3786 warnings.
3787
6cce2156
GD
37882011-08-30 Gary Dismukes <dismukes@adacore.com>
3789
3790 * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the
3791 return object has an anonymous access type and the function's type is
3792 a named access type.
3793 * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming
3794 conversions on implicit conversions, since such conversions can occur
3795 for anonymous access cases due to expansion. Issue error for attempt
3796 to rename an anonymous expression as an object of a named access type.
3797 * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs,
3798 to indicate whether this function should report errors on invalid
3799 conversions.
3800 * sem_res.adb (Resolve): For Ada 2012, in the case where the type of
3801 the expression is of an anonymous access type and the expected type is
3802 a named general access type, rewrite the expression as a type
3803 conversion, unless this is an expression of a membership test.
3804 (Valid_Conversion.Error_Msg_N): New procedure that conditions the
3805 calling of Error_Msg_N on new formal Report_Errs.
3806 (Valid_Conversion.Error_Msg_NE): New procedure that conditions the
3807 calling of Error_Msg_NE on new formal Report_Errs.
3808 (Valid_Conversion): Move declaration of this function to the package
3809 spec, to allow calls from membership test processing. For Ada 2012,
3810 enforce legality restrictions on implicit conversions of anonymous
3811 access values to general access types, disallowing such conversions in
3812 cases where the expression has a dynamic accessibility level (access
3813 parameters, stand-alone anonymous access objects, or a component of a
3814 dereference of one of the first two cases).
3815 * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type
3816 in the context of a named general access expected type.
3817 * exp_ch4.adb Add with and use of Exp_Ch2.
3818 (Expand_N_In): Add processing for membership tests applied to
3819 expressions of an anonymous access type. First, Valid_Conversion is
3820 called to check whether the test is statically False, and then the
3821 conversion is expanded to test that the expression's accessibility
3822 level is no deeper than that of the tested type. In the case of
3823 anonymous access-to-tagged types, a tagged membership test is applied
3824 as well.
3825 (Tagged_Membership): Extend to handle access type cases, applying the
3826 test to the designated types.
3827 * exp_ch6.adb (Expand_Call): When creating an extra actual for an
3828 accessibility level, and the actual is a 'Access applied to a current
3829 instance, pass the accessibility level of the type of the current
3830 instance rather than applying Object_Access_Level to the prefix. Add a
3831 ??? comment, since this level isn't quite right either (will eventually
3832 need to pass an implicit level parameter to init procs).
3833
747de90b
AC
38342011-08-30 Bob Duff <duff@adacore.com>
3835
3836 * s-taskin.ads: Minor comment fix.
3837
38382011-08-30 Ed Schonberg <schonberg@adacore.com>
3839
3840 * sem_res.adb (Check_Parameterless_Call): If the node is a selected
3841 component and the selector is a dispatching operation, check if it is
3842 a prefixed call before rewriting as a parameterless function call.
3843
cdc4cc65
JJ
38442011-08-29 Jakub Jelinek <jakub@redhat.com>
3845
3846 * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy
3847 tsystem.h into $(RTSDIR) instead of rts.
3848
226a7fa4
AC
38492011-08-29 Robert Dewar <dewar@adacore.com>
3850
3851 * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor
3852 reformatting.
3853 * gcc-interface/Make-lang.in: Update dependencies.
3854
38552011-08-29 Yannick Moy <moy@adacore.com>
3856
3857 * alfa.ads (Name_Of_Heap_Variable): New constant name.
3858 * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global
3859 table to hold dereferences.
3860 (Add_ALFA_Xrefs): Take into account dereferences as special
3861 reads/writes to the variable "HEAP".
3862 (Enclosing_Subprogram_Or_Package): Move subprogram here.
3863 (Generate_Dereference): New procedure to store a read/write dereferencew
3864 in the table Drefs.
3865 * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for
3866 the special "HEAP" var.
3867 * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference
3868 in ALFA mode.
3869 * sem_util.adb (Note_Possible_Modification): Store write dereference
3870 in ALFA mode.
3871
dfbcb149
HK
38722011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3873
3874 * exp_ch3.adb (Freeze_Type): Generate an accessibility check which
3875 ensures that the level of the subpool access type is not deeper than
3876 that of the pool object.
3877 * sem_util.adb (Object_Access_Level): Expand to handle defining
3878 identifiers.
3879 * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the
3880 subpool handle name of a rewritten allocator.
3881
1df4f514
AC
38822011-08-29 Robert Dewar <dewar@adacore.com>
3883
3884 * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting.
3885
38862011-08-29 Thomas Quinot <quinot@adacore.com>
3887
3888 * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple
3889 values, we generate multiple triples of parameters in the TypeCode.
3890 Bump Choice_Index for each such triple so that a subsequent default
3891 choice is associated with the correct index in the typecode.
3892
38932011-08-29 Ed Schonberg <schonberg@adacore.com>
3894
3895 * a-cdlili.adb (Iterate): Initialize properly an iterator over a null
3896 container.
3897 (First, Last): Handle properly an iterator over a null container.
3898
38992011-08-29 Bob Duff <duff@adacore.com>
3900
3901 * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon
3902 processing if we run across a node with no Scope. This can happen if
3903 we're with-ing an library-level instance, and that instance got errors
3904 that caused "instantiation abandoned".
3905 * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising
3906 an exception instead of using Assert, so it won't go into an infinite
3907 loop, even when assertions are turned off.
3908
39092011-08-29 Ed Schonberg <schonberg@adacore.com>
3910
3911 * a-coorse.adb: Proper handling of empty ordered sets.
3912
14f0f659
AC
39132011-08-29 Johannes Kanig <kanig@adacore.com>
3914
3915 * debug.adb: Add comments.
3916
8027b455
AC
39172011-08-29 Thomas Quinot <quinot@adacore.com>
3918
3919 * a-except.adb, a-except-2005.adb: Minor comment rewording and
3920 reformatting.
3921
39222011-08-29 Yannick Moy <moy@adacore.com>
3923
3924 * sem_ch3.adb (Array_Type_Declaration): Remove insertion of
3925 declaration for Itypes in Alfa mode.
3926
d85fd922
AC
39272011-08-29 Robert Dewar <dewar@adacore.com>
3928
3929 * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb,
3930 a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads,
3931 a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor
3932 reformatting.
3933
39342011-08-29 Tristan Gingold <gingold@adacore.com>
3935
3936 * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to
3937 package spec.
3938 * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler.
3939 * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts
3940 while raising PE.
3941
fd3d2680
AC
39422011-08-29 Robert Dewar <dewar@adacore.com>
3943
3944 * a-cbhama.adb, a-cbhama.ads: Minor reformatting.
3945
39462011-08-29 Javier Miranda <miranda@adacore.com>
3947
3948 * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for
3949 renamings of formal subprograms when the actual for a formal type is
3950 class-wide.
3951
dfbf013f
MH
39522011-08-29 Matthew Heaney <heaney@adacore.com>
3953
3954 * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment
3955 to Target.
3956
39572011-08-29 Matthew Heaney <heaney@adacore.com>
3958
3959 * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all
3960 components of record type.
3961 * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw
3962 to Target.
3963
a6dd3a54
ES
39642011-08-29 Ed Schonberg <schonberg@adacore.com>
3965
3966 * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb,
3967 a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to
3968 container packages.
3969
c54796e0
AC
39702011-08-29 Robert Dewar <dewar@adacore.com>
3971
3972 * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor
3973 reformatting.
3974
39752011-08-29 Matthew Heaney <heaney@adacore.com>
3976
3977 * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all
3978 components of record type.
3979
39802011-08-29 Bob Duff <duff@adacore.com>
3981
3982 * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated
3983 by the termination handler.
3984
9fd9d2be
AC
39852011-08-29 Yannick Moy <moy@adacore.com>
3986
3987 * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes
3988 created in Alfa mode, instead of inserting artificial declarations of
3989 non-Itypes in the tree.
3990 * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to
3991 know if an Itype has a corresponding declaration, as defined in
3992 itypes.ads.
3993
39942011-08-29 Yannick Moy <moy@adacore.com>
3995
3996 * gnat1drv.adb: Minor rewrite.
3997
39982011-08-29 Bob Duff <duff@adacore.com>
3999
4000 * s-tasuti.adb (Make_Passive): Work around race condition in
4001 Make_Independent, which can cause Wait_Count to be zero. So instead of
4002 asserting that Wait_Count > 0, and then decrementing it, decrement it
4003 only if Wait_Count > 0.
4004 * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these
4005 should be nonnegative, so declare them Natural instead of Integer.
4006
833eaa8a
AC
40072011-08-29 Robert Dewar <dewar@adacore.com>
4008
4009 * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb,
4010 sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb,
4011 a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb,
4012 a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb,
4013 exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting.
4014
40152011-08-29 Tristan Gingold <gingold@adacore.com>
4016
4017 * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels.
4018
40192011-08-29 Vadim Godunko <godunko@adacore.com>
4020
4021 * s-parint.ads: Minor comment clarification.
4022
40232011-08-29 Vincent Celier <celier@adacore.com>
4024
4025 * prj.adb (Initialize): Make sure that new reserved words after Ada 95
4026 may be used as identifiers.
4027
40282011-08-29 Ed Schonberg <schonberg@adacore.com>
4029
4030 * a-coinho.ads: Minor reformating.
4031
3a613a36
AC
40322011-08-29 Ed Schonberg <schonberg@adacore.com>
4033
4034 * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a
4035 container of a derived type.
4036
3a613a36
AC
40372011-08-29 Ed Schonberg <schonberg@adacore.com>
4038
4039 * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads,
4040 a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers.
4041
14848f57
AC
40422011-08-29 Pascal Obry <obry@adacore.com>
4043
4044 * exp_disp.adb: Minor comment fix.
4045 (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters
4046 to avoid warnings when compiling with -Wall.
4047 (Make_Disp_Conditional_Select_Body): Likewise.
4048 (Make_Disp_Timed_Select_Body): Likewise.
4049
40502011-08-29 Ed Schonberg <schonberg@adacore.com>
4051
4052 * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is
4053 an entity name, generate reference for it.
4054
40552011-08-29 Ed Schonberg <schonberg@adacore.com>
4056
4057 * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S"
4058 iterator form.
4059 * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for
4060 the class-wide type.
4061 * sem_ch5.adb: Move some rewriting to the expander, where it belongs.
4062
40632011-08-29 Ed Schonberg <schonberg@adacore.com>
4064
4065 * sem_ch8.adb (Check_Constrained_Object): Do not create an actual
4066 subtype for an object whose type is an unconstrained union.
4067
40682011-08-29 Ed Schonberg <schonberg@adacore.com>
4069
4070 * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased"
4071 is allowed in a component definition, by AI95-406.
4072
40732011-08-29 Matthew Heaney <heaney@adacore.com>
4074
4075 * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next.
4076
40772011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4078
4079 * a-except-2005.adb: Alphabetize all routines.
4080 (Triggered_By_Abort): New routine.
4081 * a-except-2005.ads (Triggered_By_Abort): New routine.
4082 * a-except.adb Alphabetize all routines.
4083 (Triggered_By_Abort): New routine.
4084 * a-except.ads (Triggered_By_Abort): New routine.
4085 * exp_ch7.adb: Update all comments involving the detection of aborts in
4086 finalization code.
4087 (Build_Object_Declarations): Do not generate code to detect the
4088 presence of an abort at the start of finalization code, use a runtime
4089 routine istead.
4090 * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and
4091 RE_Unit_Table.
4092 * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to
4093 allocate a task on a subpool.
4094 * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use.
4095 The flag disables all actions related to the maintenance of
4096 Finalize_Address_Table when subpools are not in use.
4097 (Allocate_Any_Controlled): Signal the machinery that subpools are in
4098 use.
4099 (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which
4100 performs costly task locking when subpools are not in use.
4101
57a8057a
AC
41022011-08-29 Yannick Moy <moy@adacore.com>
4103
4104 * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged
4105 types and dispatching calls in Alfa mode.
4106 * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of
4107 correspondance between body and spec scopes, to reuse utility functions
4108 (Traverse_Declarations_Or_Statements): Protect access to body for stub
4109 by testing the presence of the library unit for the body
4110 * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa
4111 mode the expansion of accept statements is skipped
4112 * sem_util.adb, sem_util.ads (Unique_Entity): New function returning
4113 the unique entity corresponding to the one returned by
4114 Unique_Defining_Entity applied to the enclosing declaration of the
4115 argument.
4116
41172011-08-29 Bob Duff <duff@adacore.com>
4118
4119 * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in
4120 gdb when x is not a node (it can be a node list, name_id, etc). pp is
4121 an alias for pn. ppp is an alias for pt.
4122
41232011-08-29 Javier Miranda <miranda@adacore.com>
4124
4125 * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing
4126 aggregate to take a consistent decision on the need to convert into
4127 assignments aggregates that initialize constant objects.
4128
41292011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4130
4131 * exp_ch4.adb (Expand_Allocator_Expression): Add a call to
4132 Build_Allocate_Deallocate_Proc in order to handle allocation of
4133 non-controlled objects on subpools.
4134 * impunit.adb: Remove s-finmas and s-spsufi since they were never meant
4135 to be end-user visible.
4136 * s-finmas.adb: Add with and use clause for System.HTable.
4137 Add an instantiation of Simple_HTable which provides a mapping between
4138 the address of a controlled object and the corresponding
4139 Finalize_Address used to clean up the object. The table is used when a
4140 master is operating in heterogeneous mode.
4141 (Attach): Explain why the input node is not verified on being already
4142 attached.
4143 (Delete_Finalize_Address): New routine.
4144 (Detach): Add pragma Assert which ensures that a node is already
4145 attached.
4146 (Finalize): Add local variable Cleanup. Rewrite the iteration scheme
4147 since nodes are no longer removed on traversal. Explain why node
4148 detachment is undesirable in this case.
4149 (Get_Finalize_Address): New routine.
4150 (Hash): New routine.
4151 (Is_Empty_List): Removed.
4152 (pm): Renamed to Print_Master. Add output for discriminant
4153 Is_Homogeneous.
4154 Comment reformatting.
4155 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
4156 * s-finmas.ads: Various comments additions / improvements.
4157 Type Finalization_Master has a discriminant which determines the mode of
4158 operation.
4159 (Delete_Finalize_Address): New routine.
4160 (Get_Finalize_Address): New routine.
4161 (pm): Renamed to Print_Master.
4162 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
4163 * s-stposu.adb: Add with clause for System.Address_Image; Add with and
4164 use clause for System.IO.
4165 (Allocate_Any_Controlled): Add machinery to set TSS primitive
4166 Finalize_Address depending on the mode of allocation and the mode of
4167 the master.
4168 (Deallocate_Any_Controlled): Remove the relation pair object -
4169 Finalize_Address regardless of the master mode. Add comment explaining
4170 the reason.
4171 (Detach): Ensure that fields Prev and Next are null after detachment.
4172 (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration
4173 scheme to check whether the list of subpools is empty. There is no
4174 longer need to store the next subpool or advance the current pointer.
4175 (Is_Empty_List): New routine.
4176 (Print_Pool): New routine.
4177 (Print_Subpool): New routine.
4178 * s-stposu.ads: Various comments additions / improvements.
4179 Field Master of type Root_Subpool is now a heterogeneous collection.
4180 (Print_Pool): New routine.
4181 (Print_Subpool): New routine.
4182
41832011-08-29 Ed Schonberg <schonberg@adacore.com>
4184
4185 * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator
4186 forms, using aspects of container types.
4187 * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and
4188 Has_Implicit_Dereference flags, that may be set on the partial view.
4189 * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a
4190 container type with an indexing aspect.
4191 (Analyze_Quantified_Expression): Analyze construct with expansion
4192 disabled, because it will be rewritten as a loop during expansion.
4193 (Try_Container_Indexing): The prefix itself may be a container type
4194 with an indexing aspect, as with a vector of vectors.
4195 * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze
4196 the original doamin of iteration, for name capture.
4197 (Analyze_Iterator_Specification): If the domain is an expression that
4198 needs finalization, create a separate declaration for it.
4199 For an iterator with "of" retrieve default iterator info from aspect of
4200 container type. For "in" iterator, retrieve type of Iterate function.
4201 * sem_ch13.adb (Check_Iterator_Function): Fix typo.
4202 (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before
4203 analysis, to prevent spurious errors about late attributes.
4204 * sprint.adb: Handle quantified expression with either loop or iterator
4205 specification.
4206 * a-convec.ads, a-convec.adb: Iterate function returns a reversible
4207 iterator.
4208
ddf67a1d
AC
42092011-08-29 Vincent Celier <celier@adacore.com>
4210
4211 * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler,
4212 Binder or Linker of the main project file.
4213
42142011-08-29 Ed Schonberg <schonberg@adacore.com>
4215
4216 * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic
4217 unit.
4218
42192011-08-29 Yannick Moy <moy@adacore.com>
4220
4221 * exp_ch9.adb: Partial revert of previous change for Alfa mode
4222
42232011-08-29 Yannick Moy <moy@adacore.com>
4224
4225 * exp_ch11.adb: Minor expansion of comment.
4226
42272011-08-29 Yannick Moy <moy@adacore.com>
4228
4229 * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities.
4230
42312011-08-29 Ed Schonberg <schonberg@adacore.com>
4232
4233 * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal
4234 interpretation, set the type before resolving the operands, because
4235 legality checks on an exponention operand need to know the type of the
4236 context.
4237
42382011-08-29 Ed Schonberg <schonberg@adacore.com>
4239
4240 * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed
4241 cleanups on a master if the instance is within a generic unit.
4242 Complement to the corresponding fix to inline.adb for K520-030.
4243
42442011-08-29 Tristan Gingold <gingold@adacore.com>
4245
4246 * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current
4247 occurrence.
4248 * exp_intr.adb: Minor comment fix.
4249
42502011-08-29 Bob Duff <duff@adacore.com>
4251
4252 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where
4253 Delay_Required was used as an uninitialized variable.
4254
690943fc
RD
42552011-08-29 Robert Dewar <dewar@adacore.com>
4256
4257 * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads,
4258 sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb,
4259 a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting.
4260
9f0ee988
TQ
42612011-08-29 Thomas Quinot <quinot@adacore.com>
4262
4263 * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True.
4264 Remove unused variables.
4265
3e24afaa
AC
42662011-08-29 Ed Schonberg <schonberg@adacore.com>
4267
4268 * sem_res.adb: Remove Build_Explicit_Dereference.
4269 * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here
4270 from sem_res.adb, used in analysis of additional constructs.
4271 (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012
4272 expansion of iterators.
4273 (Is_Object_Reference): Recognize variables rewritten as explicit
4274 dereferences in Ada2012.
4275 * snames.ads-tmpl: Add Has_Element, Forward_Iterator,
4276 Reversible_Iterator names, for expansion of Ada2012 iterators.
4277 * aspects.ads, aspects.adb (Find_Aspect): Utility.
4278 * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly
4279 linked list container.
4280 * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers.
4281 * a-coorse.ads, a-coorse.adb: Ditto for ordered sets.
4282
42832011-08-29 Ed Schonberg <schonberg@adacore.com>
4284
4285 * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map
4286 containers.
4287
42882011-08-29 Vincent Celier <celier@adacore.com>
4289
4290 * make.adb (Gnatmake): Get the maximum number of simultaneous
4291 compilation processes after the Builder switches has been scanned, as
4292 there may include -jnn.
4293
42942011-08-29 Matthew Heaney <heaney@adacore.com>
4295
4296 * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next.
4297
42982011-08-29 Tristan Gingold <gingold@adacore.com>
4299
4300 * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of
4301 GNAT_DRIVER_COMMAND_LINE to 255.
4302
43032011-08-29 Pascal Obry <obry@adacore.com>
4304
4305 * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor
4306 reformatting and style fix (class attribute casing).
4307
43082011-08-29 Yannick Moy <moy@adacore.com>
4309
4310 * exp_ch11.adb: Yet another case where expansion should be common
4311 between CodePeer and Alfa.
4312
43132011-08-29 Yannick Moy <moy@adacore.com>
4314
4315 * exp_ch9.adb: Partial revert of previous change for Alfa mode.
4316
43172011-08-29 Ed Schonberg <schonberg@adacore.com>
4318
4319 * sem_ch6.adb (Matches_Limited_With_View): The limited views of an
4320 incomplete type and its completion match.
4321
3ddd922e
AC
43222011-08-29 Yannick Moy <moy@adacore.com>
4323
4324 * exp_ch13.adb: Adjust previous change.
4325
43262011-08-29 Robert Dewar <dewar@adacore.com>
4327
4328 * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb,
4329 exp_ch4.adb, sem_ch8.adb: Minor code reorganization
4330 Minor reformatting.
4331
444acbdd
AC
43322011-08-29 Emmanuel Briot <briot@adacore.com>
4333
4334 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also
4335 initialize aggregated projects.
4336
43372011-08-29 Ed Schonberg <schonberg@adacore.com>
4338
4339 * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope
4340 depth of candidates to resolve a potentially spurious ambiguity between
4341 two visible subprograms.
4342
e0296583
AC
43432011-08-29 Yannick Moy <moy@adacore.com>
4344
4345 * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without
4346 Requires/Ensures.
4347 * sem_util.adb (Get_Ensures_From_Test_Case_Pragma,
4348 Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without
4349 Requires/Ensures.
4350
43512011-08-29 Arnaud Charlet <charlet@adacore.com>
4352
4353 * gnat1drv.adb (Adjust_Global_Switches): Improve previous change.
4354 Add comment.
4355
43562011-08-29 Thomas Quinot <quinot@adacore.com>
4357
4358 * sem_res.adb: Minor reformatting.
4359
69794413
JK
43602011-08-29 Johannes Kanig <kanig@adacore.com>
4361
4362 * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA
4363 mode.
4364 * gnat1drv.adb (Adjust_Global_Switches): Set
4365 Use_Expressions_With_Actions to False in ALFA mode.
4366 * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in
4367 ALFA mode.
4368
59e6b23c
AC
43692011-08-29 Yannick Moy <moy@adacore.com>
4370
4371 * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode.
4372 * exp_ch9.adb: Do not expand tasking constructs in Alfa mode.
4373 * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of
4374 tagged types and dispatching calls in Alfa mode.
4375
43762011-08-29 Javier Miranda <miranda@adacore.com>
4377
4378 * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that
4379 we do not report an error on an Empty node.
4380
43812011-08-29 Geert Bosch <bosch@adacore.com>
4382
4383 * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o,
4384 a-nlrear.o and a-nurear.o.
4385
43862011-08-29 Robert Dewar <dewar@adacore.com>
4387
4388 * freeze.adb: Minor code reorganization.
4389 Minor reformatting.
4390 * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb,
4391 sem_ch6.adb: Minor reformatting
4392
43932011-08-29 Tristan Gingold <gingold@adacore.com>
4394
4395 * s-except.ads, s-except.adb: Provide dummy body.
4396
43972011-08-29 Yannick Moy <moy@adacore.com>
4398
4399 * sem_warn.adb (Within_Postcondition): Take into account the case of
4400 an Ensures component in a Test_Case.
4401
4d792549
AC
44022011-08-29 Tristan Gingold <gingold@adacore.com>
4403
4404 * s-excdeb.ads, s-excdeb.adb: New files, created from s-except.
4405 * rtsfind.ads (RTU_Id): Replaces System_Exceptions by
4406 System_Exceptions_Debug
4407 (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug
4408 * a-except.adb: With and use System.Exceptions_Debug instead of
4409 System.Exceptions.
4410 * a-except-2005.adb: Likewise.
4411 * s-assert.adb: Likewise.
4412 * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb.
4413 * Makefile.rtl: Add s-excdeb. Adjust compilation rule.
4414 * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add
4415 s-excdeb. Update dependencies.
4416 (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o
4417 as these no longer need external libraries.
4418
44192011-08-29 Ed Schonberg <schonberg@adacore.com>
4420
4421 * sem_res.adb (Resolve_Op_Expon): Additional check to reject an
4422 exponentiation operator on universal values in a context that requires
4423 a fixed-point type.
4424
44252011-08-29 Tristan Gingold <gingold@adacore.com>
4426
4427 * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence
4428 before calling notify_handled_exception.
4429 * a-exextr.adb: Fix comment.
4430
b254da66
AC
44312011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4432
4433 * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute
4434 Finalize_Address of the access type's finalization master.
4435 (Expand_N_Allocator): Add code to set attribute Finalize_Address of the
4436 access type's finalization master. Add a guard to prevent
4437 Associated_Storage_Pool from being set on .NET/JVM.
4438 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set
4439 attribute Finalize_Address of the access type's finalization master.
4440 * exp_ch7.adb (Make_Finalize_Address_Call): New routine.
4441 * exp_ch7.ads (Make_Finalize_Address_Call): New routine.
4442 * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and
4443 RE_Unit_Table.
4444 * s-finmas.adb: Add with clause for System.Address_Image. Add with and
4445 use clause for System.IO
4446 (Detach): Relax the assertion, to be reinstated later.
4447 (Finalize): Rewrite the iteration loop to avoid pointer comparison.
4448 Relax the assertion on Finalize_Address, to be reinstated later.
4449 (Is_Empty_List): New routine.
4450 (pm): New debug routine.
4451 (Set_Finalize_Address): New routine.
4452 * s-finmas.ads (pm): New debug routine.
4453 (Set_Finalize_Address): New routine.
4454 * s-stposu.adb (Allocate_Any_Controlled): Code reformatting.
4455
44562011-08-29 Tristan Gingold <gingold@adacore.com>
4457
4458 * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access):
4459 Remove convention C.
4460
44612011-08-29 Tristan Gingold <gingold@adacore.com>
4462
4463 * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove.
4464 (Initialize_TCB): Remove Exc_Stack_Ptr initialization.
4465 (Finalize_TCB): Remove its finalization.
4466 (Initialize): Remove assignment of GET_Exc_Stack_Addr
4467 * s-soflin.adb (NT_Exc_Stack): Remove
4468 (Get_Exc_Stack_Addr_NT): Likewise.
4469 (Get_Exc_Stack_Addr_Soft): Likewise.
4470 * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove.
4471 (Get_Exc_Stack_Addr): Likewise.
4472 (Get_Exc_Stack_Addr_Soft): Likewise
4473 * s-taspri-vms.ads (Exc_Stack_T): Remove.
4474 (Exc_Stack_Ptr_T): Likewise.
4475 (Private_Data): Remove Exc_Stack_Ptr component.
4476
44772011-08-29 Tristan Gingold <gingold@adacore.com>
4478
4479 * raise-gcc.c (get_ip_from_context): New function. Factorize code.
4480
44812011-08-29 Tristan Gingold <gingold@adacore.com>
4482
4483 * gnat_ugn.texi: Fix aix and x86-solaris info for run-time.
4484
44852011-08-29 Geert Bosch <bosch@adacore.com>
4486
4487 * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate,
4488 L2_Norm, Swap_Column): New generic subprograms
4489 * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate,
4490 L2_Norm, Swap_Column): Implement new subprograms in order to
4491 eliminate dependency on BLAS and LAPACK libraries in
4492 Ada.Numerics.Generic_Real_Arrays and eventually also the complex
4493 version. Forward_Eliminate/Back_Substitute can be used to put a
4494 matrix in row echelon or reduced row echelon form using partial
4495 pivoting.
4496 * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate,
4497 Swap_Column): Instantiate from System.Generic_Array_Operations.
4498 ("*", "abs"): Implement by instantiation from Generic_Array_Operations.
4499 (Sqrt): Local function for simple computation of square root without
4500 adding dependencies on Generic_Elementary_Functions.
4501 (Swap): New subprogram to exchange floating point numbers.
4502 (Inverse): Reimplement using Jordan-Gauss elimination.
4503 (Jacobi): New procedure implementing Jacobi's method for computation
4504 of eigensystems, based on Rutishauser's implementation.
4505 (L2_Norm): Implement directly using the inner product.
4506 (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of
4507 decreasing eigenvalue as required by the Ada RM.
4508 (Swap_Column): New helper procedure for Sort_Eigensystem.
4509 Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK.
4510 Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for
4511 Sort_Eigensystems.
4512
45132011-08-29 Thomas Quinot <quinot@adacore.com>
4514
4515 * put_scos.adb (Put_SCOs): Do not emit a newline for an empty
4516 statements line.
4517
60370fb1
AC
45182011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4519
4520 * s-finmas.adb (Finalize): Check Finalize_Address of the master rather
4521 than the current node.
4522 * s-finmas.ads: Move field Finalize_Address from type FM_Node to
4523 Finalization_Master. The list headers have two fields instead of three.
4524 This should fix alignment issue but subpool allocations are now
4525 unusable. Alphabetize subprograms.
4526 * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than
4527 the size of the header when converting the beginning of the object to
4528 a FM_Node. Set the master's Finalize_Address attribute if not already
4529 set.
4530 (Deallocate_Any_Controlled): Use the offset rather than the size of the
4531 header when converting the beginning of the object to a FM_Node.
4532
45332011-08-29 Gary Dismukes <dismukes@adacore.com>
4534
4535 * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of
4536 reraise when compiling for CodePeer.
4537
45382011-08-29 Arnaud Charlet <charlet@adacore.com>
4539
4540 * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads,
4541 now needed by a-convec.adb. Fix warning.
4542
45432011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4544
4545 * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the
4546 processing of TSS routine Finalize_Address when compiling in
4547 CodePeer_Mode.
4548
45492011-08-29 Thomas Quinot <quinot@adacore.com>
4550
4551 * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb,
4552 sem_warn.adb: Minor reformatting.
4553
45542011-08-29 Emmanuel Briot <briot@adacore.com>
4555
4556 * prj-conf.adb (Get_Config_Switches): Also collect the list of
4557 languages from aggregated projects.
4558
45592011-08-29 Yannick Moy <moy@adacore.com>
4560
4561 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements,
4562 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
4563 Traverse_Package_Declaration, Traverse_Subprogram_Body,
4564 Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies
4565 for stubs are traversed too when parameter is set
4566 (Traverse_All_Compilation_Units): Traverse without going inside stubs
4567 (Traverse_Declarations_Or_Statements): Do the special traversing for
4568 stubs when required.
4569 * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to
4570 return subprogram or package body from stub.
4571 (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect
4572 stubs without prior subprogram decl.
4573
45742011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
4575
4576 * gnat_ugn.texi: Fix typo.
4577
e9c9d122
HK
45782011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4579
4580 * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism
4581 which accounts for size vs alignment issues and calculates the size of
4582 the list header.
4583 (Deallocate_Any_Controlled): Ditto.
4584 (Nearest_Multiple_Rounded_Up): New routine.
4585
25ebc085
AC
45862011-08-29 Tristan Gingold <gingold@adacore.com>
4587
4588 * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag.
4589 * a-exexda.adb (Set_Exception_C_Msg): Ditto.
4590 (Set_Exception_Msg): Ditto.
4591 * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set
4592 Private_Data.
4593 * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove.
4594 Use Save_Occurrence instead of Save_Occurrence_No_Private.
4595 (Raise_With_Msg): Remove Cleanup_Flag.
4596 * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove
4597 Clean_Flag and Private_Data components.
4598
45992011-08-29 Yannick Moy <moy@adacore.com>
4600
4601 * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like
4602 in CodePeer mode.
4603 * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation
4604 of an explicitly declared type, so that the base types of the original
4605 type and this generated type are the same, and a "type" (not a subtype
4606 like previously).
4607 * errout.adb (Special_Msg_Delete): Do not issue messages "Size too
4608 small" in Alfa mode, like in CodePeer mode.
4609 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep
4610 clauses in Alfa mode.
4611
46122011-08-29 Javier Miranda <miranda@adacore.com>
4613
4614 * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this
4615 function to the package spec.
4616 * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For
4617 internally generated bodies of null procedures locate the internally
4618 generated spec enforcing mode conformance.
4619 (Is_Interface_Conformant): Ensure that the controlling formal of the
4620 primitives match.
4621
46222011-08-29 Ed Schonberg <schonberg@adacore.com>
4623
4624 * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not
4625 reject the pragma if it appears to apply to a formal subprogram.
4626
46272011-08-29 Ed Schonberg <schonberg@adacore.com>
4628
4629 * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for
4630 inner expression, to prevent double evaluation.
4631
590549fb
AC
46322011-08-29 Tristan Gingold <gingold@adacore.com>
4633
4634 * a-exexpr.adb (Propagate_Exception): Remove all the parameters as
4635 they were unused.
4636 * a-exexpr-gcc.adb (Propagate_Exception): Ditto.
4637 * a-except-2005.adb (Propagate_Exception): Adjust spec.
4638 (Raise_Current_Excep): Adjust call.
4639 (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep.
4640
46412011-08-29 Thomas Quinot <quinot@adacore.com>
4642
4643 * exp_disp.adb: Minor reformatting.
4644
62380e66
TG
46452011-08-29 Tristan Gingold <gingold@adacore.com>
4646
4647 * a-exexpr.adb (Setup_Exception): Removed.
4648 * a-exexpr-gcc.adb (Setup_Exception): Removed.
4649 * a-except.adb (Exception_Propagation): Removed.
4650 * a-except-2005.adb (Setup_Exception): Removed.
4651 (Reraise): Remove call to Setup_Exception.
4652 (Reraise_Occurrence): Ditto.
4653 (Reraise_Occurrence_Always): Ditto.
4654 (Reraise_Occurrence_No_Defer): Ditto.
4655 (Transfer_Occurrence): Ditto.
4656 * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception.
4657 (Set_Exception_Msg): Ditto.
4658
c95aa61c
AC
46592011-08-29 Robert Dewar <dewar@adacore.com>
4660
4661 * a-convec.adb, exp_disp.adb: Minor reformatting.
4662
46632011-08-29 Tristan Gingold <gingold@adacore.com>
4664
4665 * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
4666
624e1688
AC
46672011-08-29 Gary Dismukes <dismukes@adacore.com>
4668
4669 * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
4670 Exception_Handlers to No_List instead of Empty_List in the case where
4671 there are no handlers.
4672
46732011-08-29 Tristan Gingold <gingold@adacore.com>
4674
4675 * gcc-interface/gigi.h (enum standard_datatypes): Add
4676 ADT_reraise_zcx_decl
4677 (reraise_zcx_decl): New macro.
4678 * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable.
4679 (gigi): Set reraise_zcx_decl.
4680 (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr.
4681 (gnat_to_gnu): Handle N_Raise_Statement.
4682
7134062a
AC
46832011-08-29 Robert Dewar <dewar@adacore.com>
4684
4685 * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads,
4686 a-undesu.adb: Minor reformatting.
4687
46882011-08-29 Ed Schonberg <schonberg@adacore.com>
4689
4690 * exp_disp.adb (Check_Premature_Freezing): When building a dispatch
4691 table, accept an unfrozen untagged component if it is an actual for a
4692 formal incomplete type.
4693 * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to
4694 provide new iterator forms over vectors.
4695 Introduce type Iterator in package body to implement operations of
4696 Reversible_Iterator interface.
4697 * a-iteint.ads: Make package pure so it is usable with new container
4698 packages, that are categorized Remote_Types.
4699
ca5af305
AC
47002011-08-29 Robert Dewar <dewar@adacore.com>
4701
4702 * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting.
4703
47042011-08-29 Bob Duff <duff@adacore.com>
4705
4706 * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case
4707 of <>, because this is the routine that checks for dimensionality
4708 errors (for example, for a two-dimensional array, (others => <>) should
4709 be (others => (others => <>)).
4710
47112011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4712
4713 * impunit.adb: Add new run-time units.
4714 * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb,
4715 s-stposu.ads, s-stposu.adb: Code clean up.
4716 Handle protected class-wide or task class-wide types
4717 Handle C/C++/CIL/Java types.
4718 * s-spsufi.adb, s-spsufi.ads: New files.
4719
5accd7b6
AC
47202011-08-29 Yannick Moy <moy@adacore.com>
4721
4722 * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on
4723 library-level subprogram.
4724 * sem_prag.adb (Check_Test_Case): Stricter rules for test-case
4725 placement.
4726 (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case
4727 component.
4728 * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case
4729 component.
4730 * gnat_rm.texi: Update doc for Test_Case pragma.
4731
47322011-08-29 Tristan Gingold <gingold@adacore.com>
4733
4734 * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it
4735 convention C.
4736 (GCC_Exception_Access): New type.
4737 (Unwind_DeleteException): New imported procedure
4738 (Foreign_Exception): Import it.
4739 (GNAT_GCC_Exception): Simply have the occurrence inside.
4740 (To_GCC_Exception): New function.
4741 (To_GNAT_GCC_Exception): New function.
4742 (GNAT_GCC_Exception_Cleanup): New procedure..
4743 (Propagate_GCC_Exception): New procedure.
4744 (Reraise_GCC_Exception): New procedure.
4745 (Setup_Current_Excep): New procedure.
4746 (CleanupUnwind_Handler): Change type of UW_Exception parameter.
4747 (Unwind_RaiseException): Ditto.
4748 (Unwind_ForcedUnwind): Ditto.
4749 (Remove): Removed.
4750 (Begin_Handler): Change type of parameter.
4751 (End_Handler): Ditto. Now delete the exception if still present.
4752 (Setup_Key): Removed.
4753 (Is_Setup_And_Not_Propagated): Removed.
4754 (Set_Setup_And_Not_Propagated): Ditto.
4755 (Clear_Setup_And_Not_Propagated): Ditto.
4756 (Save_Occurrence_And_Private): Ditto.
4757 (EID_For): Add 'not null' constraint on parameter.
4758 (Setup_Exception): Does nothing.
4759 (Propagate_Exception): Simplified.
4760 * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model,
4761 re-raise is not expanded anymore.
4762 * s-except.ads (Foreign_Exception): New exception - placeholder for
4763 non Ada exceptions.
4764 * raise-gcc.c (__gnat_setup_current_excep): Declare
4765 (CXX_EXCEPTION_CLASS): Define (not yet used)
4766 (GNAT_EXCEPTION_CLASS): Define.
4767 (is_handled_by): Handle foreign exceptions.
4768 (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep.
4769
47702011-08-29 Jose Ruiz <ruiz@adacore.com>
4771
4772 * a-synbar.adb (Synchronous_Barrier): Some additional clarification.
4773
2ef48385
AC
47742011-08-29 Thomas Quinot <quinot@adacore.com>
4775
4776 * a-synbar-posix.adb: Minor reformatting.
4777
47782011-08-29 Jose Ruiz <ruiz@adacore.com>
4779
4780 * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads,
4781 a-exetim-default.ads (Interrupt_Clocks_Supported,
4782 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
4783 definitions to be compliant with AI-0171. The target systems do not
4784 support separate account for the execution time of interrupt handlers.
4785
47862011-08-29 Jose Ruiz <ruiz@adacore.com>
4787
4788 * a-synbar.adb (Wait): Change the order of evaluation of the conditions
4789 in the barrier to put first the easiest to evaluate (and the one which
4790 will be True more often). More efficient.
4791
47922011-08-29 Eric Botcazou <ebotcazou@adacore.com>
4793
4794 * s-atocou-x86.adb: Fix constraint in machine code insertion.
4795
47962011-08-29 Bob Duff <duff@adacore.com>
4797
4798 * aspects.ads, aspects.adb: Add new aspects for various pragmas and
4799 attributes that are now aspects, as specified by AI05-0229-1.
4800 * sem_ch13.adb (Analyze_Aspect_Specifications,
4801 Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into
4802 pragmas or attribute references, as appropriate.
4803
0db16b1e
AC
48042011-08-29 Robert Dewar <dewar@adacore.com>
4805
4806 * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb,
4807 a-synbar-posix.ads: Minor reformatting.
4808
48092011-08-29 Yannick Moy <moy@adacore.com>
4810
4811 * snames.ads-tmpl: Add name Force.
4812
978ffe02
AC
48132011-08-29 Pascal Obry <obry@adacore.com>
4814
4815 * prj-nmsc.adb: Minor reformatting.
4816
48172011-08-29 Jose Ruiz <ruiz@adacore.com>
4818
4819 * a-exetim.ads (Interrupt_Clocks_Supported,
4820 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
4821 definitions to be compliant with AI-0171.
4822
48232011-08-29 Robert Dewar <dewar@adacore.com>
4824
4825 * a-ngelfu.adb: Add comments.
4826
718f39dc
AC
48272011-08-29 Geert Bosch <bosch@adacore.com>
4828
4829 * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is
4830 the closest machine number to Pi / 2.0.
4831
48322011-08-29 Jose Ruiz <ruiz@adacore.com>
4833
4834 * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012
4835 package Ada.Synchronous_Barriers.
4836 * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb:
4837 Add new specs and bodies for Ada.Synchronous_Barriers. There is a
4838 default implementation using protected objects and another one
4839 a-synbar-posix using POSIX barriers as the underlying support.
4840 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86,
4841 x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of
4842 Ada.Synchronous_Barriers which uses POSIX barriers (more efficient).
4843 Clean up dependencies.
4844 * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o
4845
ee2e3f6b
AC
48462011-08-29 Robert Dewar <dewar@adacore.com>
4847
4848 * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb,
4849 exp_dist.adb: Minor code reorganization.
4850 Minor reformatting.
4851
48522011-08-29 Thomas Quinot <quinot@adacore.com>
4853
4854 * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW
4855 primitive operation must support external streaming if it is not a
4856 controlling access result.
4857
646e2823
AC
48582011-08-29 Thomas Quinot <quinot@adacore.com>
4859
4860 * sinfo.ads, sem_ch7.adb: Minor reformatting.
4861
48622011-08-29 Bob Duff <duff@adacore.com>
4863
4864 * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization
4865 restriction on allocators, as required by AI05-0013-1.
4866 * restrict.ads: Minor comment fix.
4867
5d59eef2
AC
48682011-08-29 Tristan Gingold <gingold@adacore.com>
4869
4870 * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb
4871 (To_Jmpbuf_Address): Ditto
4872 (builtin_longjmp): Ditto
4873
48742011-08-29 Thomas Quinot <quinot@adacore.com>
4875
4876 * sem_res.adb: Minor reformatting.
4877
48782011-08-29 Vincent Celier <celier@adacore.com>
4879
4880 * make.adb (Gnatmake): Move special processing for VM targets after the
4881 call to Get_Target_Parameters.
4882
48832011-08-29 Thomas Quinot <quinot@adacore.com>
4884
4885 * sem_ch12.adb, par-ch12.adb: Minor reformatting.
4886
949a18cc
AC
48872011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4888
4889 * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases
4890 where an anonymous access discriminant of a limited designated type
4891 appears in a non-immutably limited discriminated type and issue an
4892 error message. Add local variable Desig_T and replace all occurrences
4893 of Designated_Type.
4894
48952011-08-29 Jose Ruiz <ruiz@adacore.com>
4896
4897 * a-rttiev.adb (Set_Handler): Update comment to indicate that our
4898 implementation is compliant to RM D.15(15/2) after the modification
4899 imposed by AI05-0094-1 (binding interpretation).
4900
cb25faf8
AC
49012011-08-29 Robert Dewar <dewar@adacore.com>
4902
4903 * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb,
4904 s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting.
4905
49062011-08-29 Thomas Quinot <quinot@adacore.com>
4907
4908 * par-endh.adb (Check_End): For an END where it is mandatory to repeat
4909 the scope name, do not report a missing label as a style violation (it
4910 will be diagnosed as an illegality).
4911 * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of
4912 variant records: Get_Enum_Lit_From_Pos already returns a usage
4913 occurrence of the literal, no need to use New_Occurrence_Of. Set Etype
4914 on Expr in Integer_Literal case so that it can be used by
4915 Build_To_Any_Call.
4916
1d10f669
AC
49172011-08-29 Tristan Gingold <gingold@adacore.com>
4918
4919 * exp_sel.ads (Build_Abort_BLock_Handler): New function spec.
4920 Adjust comment.
4921 * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler.
4922 (Build_Abort_Block_Handler): New function to build an Abort_Signal
4923 exception handler.
4924 * exp_ch9.adb (Expand_N_Asynchronous_Select): Call
4925 Build_Abort_Block_Handler to build the exception handler. Do not
4926 undefer aborts for the Abort_Signal exception handler if back-end
4927 exception mechanism.
4928 * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if
4929 back_end exceptions for all others and abort_signal.
4930 * s-except.ads (ZCX_By_Default): New constant.
4931 * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX.
4932 (Raise_Exception_Always): Ditto.
4933 (Raise_From_Signal_Handler): Ditto.
4934 (Raise_With_Location_And_Msg): Ditto.
4935 (Raise_With_Msg): Ditto.
4936 (Reraise): Ditto.
4937 (Reraise_Occurence): Ditto.
4938 (Reraise_Occurrence_Always): Ditto.
4939 * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX.
4940 * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX.
1d10f669
AC
4941
49422011-08-29 Thomas Quinot <quinot@adacore.com>
4943
4944 * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation.
4945
d986066d
AC
49462011-08-29 Robert Dewar <dewar@adacore.com>
4947
4948 * snames.adb-tmpl, sem_ch13.adb: Minor reformatting
4949 Minor code reorganization.
4950
49512011-08-29 Bob Duff <duff@adacore.com>
4952
4953 * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada
4954 2012, not just Ada 2005.
4955
49562011-08-29 Vincent Celier <celier@adacore.com>
4957
4958 * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake
4959 with a project file or with gprbuid, if -gnatep= is specified, the
4960 builder may need to be invoked with -x.
4961
49622011-08-29 Tristan Gingold <gingold@adacore.com>
4963
4964 * a-exexpr-gcc.adb: Minor comment fix.
4965
ff4f0ed0
AC
49662011-08-29 Robert Dewar <dewar@adacore.com>
4967
4968 * sem_ch8.adb: Minor reformatting.
4969
49702011-08-29 Bob Duff <duff@adacore.com>
4971
4972 * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012.
4973 * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for
4974 treating "some" as unreserved in earlier Ada versions. This is now
4975 handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some,
4976 rather than Name_Some, since Tok_Some is now recognized as reserved.
4977 * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other
4978 reserved word.
4979 * scans.ads: Minor comment fixes.
4980 * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as
4981 for other language versions.
4982 * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for
4983 treating "some" as unreserved in earlier Ada versions. This is now
4984 handled in Snames.Is_Keyword_Name.
4985 * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in
4986 Ada 2012.
4987 (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as
4988 unreserved in earlier Ada versions. This is now handled in
4989 Snames.Is_Keyword_Name.
4990 * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved
4991 words as for other language versions.
4992 * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to
4993 Ada 2012, not just Ada 2005.
4994
d941cee6
AC
49952011-08-29 Ed Schonberg <schonberg@adacore.com>
4996
4997 * sem_ch13.adb: Additional semantic checks for aspects involved in
4998 iterators.
4999
50002011-08-29 Matthew Heaney <heaney@adacore.com>
5001
5002 * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb,
5003 a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous
5004 Container parameter.
5005 (Ancestor_Find): ditto.
5006
b970af39
TQ
50072011-08-29 Thomas Quinot <quinot@adacore.com>
5008
5009 * par-endh.adb: Minor reformatting.
d941cee6 5010
92db5dee
AC
50112011-08-29 Tristan Gingold <gingold@adacore.com>
5012
5013 * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants.
5014 (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component.
5015 (Adjust_N_CLeanups_For): Remove.
5016 (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of
5017 stack is reached.
5018 (Propgate_Exception): Adjust.
5019 * raise-gcc.c: Add a few static/const.
5020 (Adjust_N_Cleanups_For): Remove declaration.
5021 (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger.
5022
50232011-08-29 Ed Schonberg <schonberg@adacore.com>
5024
5025 * sem_ch8.adb: Use type of function return when rewriting as object
5026 declaration.
5027
1378bf10
AC
50282011-08-29 Gary Dismukes <dismukes@adacore.com>
5029
5030 * sem_type.adb: Minor reformatting.
5031
50322011-08-29 Robert Dewar <dewar@adacore.com>
5033
5034 * makeutl.adb: Minor reformatting.
5035
50362011-08-29 Ed Schonberg <schonberg@adacore.com>
5037
5038 * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a
5039 function call of a limited type, the expansion of the renaming is
5040 complicated by the presence of various temporaries and subtypes that
5041 capture constraints of the renamed object.
5042 Rewrite node as an object declaration, whose expansion is simpler.
5043 Given that the object is limited there is no copy involved and no
5044 performance hit.
5045
164e06c6
AC
50462011-08-29 Robert Dewar <dewar@adacore.com>
5047
5048 * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb,
5049 freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting.
5050
50512011-08-29 Tristan Gingold <gingold@adacore.com>
5052
5053 * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
5054 system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads,
5055 system-linux-hppa.ads, system-linux-s390.ads,
5056 system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
5057 system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads,
5058 system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads,
5059 system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads,
5060 system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads,
5061 system-solaris-sparc.ads, system-lynxos-x86.ads,
5062 system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads,
5063 system-solaris-x86_64.ads, system-mingw-x86_64.ads,
5064 system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads,
5065 system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads,
7d266442 5066 system-vxworks-x86.ads: Remove GCC_ZCX_Support.
164e06c6
AC
5067 * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb,
5068 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto.
5069 * opt.ads: Adjust comment.
5070 * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target.
5071 * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target.
5072 * system.ads: Move GCC_ZCX_Support to obsolete entries.
5073
50742011-08-29 Emmanuel Briot <briot@adacore.com>
5075
5076 * makeutl.adb (Do_Complete): Resolve symbolic links when a relative
5077 file name is specified on the gnatmake or gprbuild command line, and
5078 before we search for that file in the project.
5079
50802011-08-29 Ed Schonberg <schonberg@adacore.com>
5081
5082 * sem_type.adb (Within_Instance): New predicate in Collect_Interps,
5083 used to determine whether a possible interpretation for an overloadable
5084 entity is declared within the current instantiation and should be
5085 included in the candidate set.
5086
50872011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
5088
5089 * gnat_rm.texi, gnat_ugn.texi: Clean ups.
5090
97216ca8
ES
50912011-08-29 Ed Schonberg <schonberg@adacore.com>
5092
5093 * sem_res.adb (Resolve_Actuals): Use base type to determine whether an
5094 access subtype is access_to_subprogram, when applying checks for
5095 RM 3.10.2 (27).
5096
d3cb4cc0
AC
50972011-08-29 Matthew Heaney <heaney@adacore.com>
5098
5099 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
5100 for sibling when common parent.
5101
51022011-08-29 Thomas Quinot <quinot@adacore.com>
5103
5104 * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
5105 "pragma_".
5106
51072011-08-29 Ed Schonberg <schonberg@adacore.com>
5108
5109 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
5110 for the return type when in ASIS mode.
5111
51122011-08-29 Vincent Celier <celier@adacore.com>
5113
5114 * make.adb (Gnatmake): Get the default search dirs, then the target
5115 parameters after getting the Builder switches, as the Builder switches
5116 may include --RTS= and that could change the default search dirs.
5117
51182011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5119
5120 * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
5121 Make_Final_Call. Move the processing for class-wide types before the
5122 processing for derivations from [Limited_]Controlled.
5123 (Make_Final_Call): Move the processing for class-wide types before the
5124 processing for derivations from [Limited_]Controlled.
5125 * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
5126 Add code to account for alignments larger than the list header. Add a
5127 comment illustrating the structure of the allocated object + padding +
5128 header.
5129 (Deallocate_Any_Controlled): Add code to account for alignments larger
5130 than the list header.
5131
51322011-08-29 Ed Schonberg <schonberg@adacore.com>
5133
5134 * sinfo.ads, sinfo.adb: New node kind
5135 N_Formal_Incomplete_Type_Definition, related flags.
5136 par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
5137 Parse formal incomplete types.
5138 * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
5139 sem_ch12.
5140 * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
5141 Formal incomplete types do not need completion.
5142 * sem_ch12.adb (Analyze_Formal_Incomplete_Type,
5143 Validate_Incomplete_Type_Instance): New procedures to handle formal
5144 incomplete types.
5145 * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
5146 that corresponds to a formal incomplete type.
5147 * sprint.adb: Handle formal incomplete type declarations.
5148 * exp_util.adb (Insert_Actions): An incomplete_type_definition is not
5149 an insertion point.
5150
d3f70b35
AC
51512011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5152
5153 * a-fihema.ads, a-fihema.adb: Unit removed.
5154 * a-undesu.ads, a-undesu.adb: New unit implementing
5155 Ada.Unchecked_Deallocate_Subpool.
5156 * einfo.adb: Remove Associated_Collection from the node usage.
5157 Add Finalization_Master to the node usage.
5158 (Associated_Collection): Removed.
5159 (Finalization_Master): New routine.
5160 (Set_Associated_Collection): Removed.
5161 (Set_Finalization_Master): New routine.
5162 (Write_Field23_Name): Remove Associated_Collection from the output. Add
5163 Finalization_Master to the output.
5164 * einfo.ads: Remove attribute Associated_Collection and its uses in
5165 entities.
5166 Add new attribute Finalization_Master along with its uses in entitites.
5167 (Associated_Collection): Removed along with its pragma import.
5168 (Finalization_Master): New routine along with a pragma import.
5169 (Set_Associated_Collection): Removed along with its pragma import.
5170 (Set_Finalization_Master): New routine along with a pragma import.
5171 * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to
5172 Build_Finalization_Collection with Build_Finalization_Master.
5173 (Expand_Freeze_Record_Type): Move the generation of Finalize_Address
5174 before the bodies of the predefined routines. Add comment explaining
5175 this. Replace call to Build_Finalization_Collection with
5176 Build_Finalization_Master.
5177 (Freeze_Type): Replace call to Build_Finalization_Collection with
5178 Build_Finalization_Master.
5179 (Make_Finalize_Address_Body): Comment reformatting.
5180 (Make_Predefined_Primitive_Specs): Code reformatting.
5181 (Stream_Operation_OK): Update comment mentioning finalization
5182 collections. Replace RE_Finalization_Collection with
5183 RE_Finalization_Master.
5184 * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to
5185 Associated_Collection with Finalization_Master. Replace call to
5186 Build_Finalization_Collection with Build_Finalization_Master.
5187 (Expand_Allocator_Expression): Replace call to Associated_Collection
5188 with Finalization_Master. Replace call to Set_Associated_Collection with
5189 Set_Finalization_Master. Remove the generation of
5190 Set_Finalize_Address_Ptr.
5191 (Expand_N_Allocator): Replace call to Associated_Collection with
5192 Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr.
5193 * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to
5194 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the
5195 comment on usage. Replace call to Needs_BIP_Collection with
5196 Needs_BIP_Finalization_Master Remplace BIP_Collection with
5197 BIP_Finalization_Master. Update all comments which mention finalization
5198 collections. Replace Associated_Collection with
5199 Finalization_Master. Replace Build_Finalization_Collection with
5200 Build_Finalization_Master.
5201 (BIP_Formal_Suffix): Update BIP_Collection's case.
5202 (Build_Heap_Allocator): Update the related comment. Rename local
5203 variable Collect to Fin_Mas_Id and update its occurrences. Update
5204 comments which mention finalization collections. Replace
5205 Set_Associated_Collection with Set_Finalization_Master.
5206 (Expand_Call): Update the code which detects a special piece of library
5207 code for .NET/JVM.
5208 (Make_Build_In_Place_Call_In_Allocator): Replace the call to
5209 Add_Collection_Actual_To_Build_In_Place_Call with
5210 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code
5211 which generates a call to Make_Set_Finalize_Address_Ptr_Call.
5212 (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to
5213 Add_Collection_Actual_To_Build_In_Place_Call with
5214 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
5215 (Make_Build_In_Place_Call_In_Assignment): Replace call to
5216 Add_Collection_Actual_To_Build_In_Place_Call with
5217 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
5218 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
5219 * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master.
5220 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
5221 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage.
5222 Rename local variable Collect to Fin_Mas_Id and update its occurrences.
5223 Replace call to Set_Associated_Collection with Set_Finalization_Master.
5224 (Build_Finalization_Collection): Renamed to Build_Finalization_Master.
5225 Replace the call to Associated_Collection with Finalization_Master.
5226 Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences.
5227 Update the way finalization master names are generated. Update the
5228 retrieval of the correct access type which will carry the pool and
5229 master attributes.
5230 (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved.
5231 (Make_Finalize_Address_Body): Abstract types do not need
5232 Finalize_Address. Code reformatting.
5233 (Make_Finalize_Address_Stmts): Update comment on usage.
5234 (Make_Set_Finalize_Address_Ptr_Call): Removed.
5235 (Process_Declarations): Update comments.
5236 * exp_ch7.ads (Build_Finalization_Collection): Renamed to
5237 Build_Finalization_Master. Update associated comment.
5238 (Make_Set_Finalize_Address_Ptr_Call): Removed.
5239 * exp_ch13.adb: Update comments which mention finalization collections.
5240 (Expand_N_Free_Statement): Replace the call to Associated_Collection
5241 with Finalization_Master.
5242 * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to
5243 create calls to routines Allocate_Any_Controlled and
5244 Deallocate_Any_Controlled.
5245 (Find_Finalize_Address): New routine.
5246 (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the
5247 comparison.
5248 (Requires_Cleanup_Actions): Update the comment on freeze node
5249 inspection.
5250 * exp_util.ads: Remove comment on generated code for
5251 Build_Allocate_Deallocate_Proc. The code is now quite complex and it
5252 is better to simply look in the body.
5253 * freeze.adb (Freeze_All): Update the comment of finalization
5254 collections. Replace the call to Associated_Collection with
5255 Finalization_Master. Replace the call to Build_Finalization_Collection
5256 with Build_Finalization_Master.
5257 * impunit.adb: Add a-undesu and s-stposu to the list of units.
5258 * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file
5259 a-fihema.
5260 * rtsfind.adb (Get_Unit_Name): Remove the processing for children of
5261 Ada.Finalization. Add processing for children of System.Storage_Pools.
5262 * rtsfind.ads: Remove the naming of second level children of
5263 Ada.Finalization.
5264 Remove Ada_Finalization_Heap_Management from the list of units.
5265 Remove subtype Ada_Finalization_Child.
5266 Remove the following subprogram entities:
5267
5268 RE_Allocate
5269 RE_Deallocate
5270 RE_Finalization_Collection
5271 RE_Finalization_Collection_Ptr
5272 RE_Set_Finalize_Address_Ptr
5273
5274 Add the naming of second level children of System.Storage_Pools.
5275 Add System_Finalization_Masters and System_Storage_Pools_Subpools to
5276 the list of units.
5277 Add subtype System_Storage_Pools_Child.
5278 Add the following subprogram entities to System.Finalization_Masters:
5279
5280 RE_Finalization_Master
5281 RE_Finalization_Master_Ptr
5282
5283 Add the following subprogram entities to System.Storage_Pools.Subpools:
5284
5285 RE_Allocate_Any_Controlled
5286 RE_Deallocate_Any_Controlled
5287 RE_Root_Storage_Pool_With_Subpools
5288 RE_Root_Subpool
5289 RE_Subpool_Handle
5290
5291 Move the following subprogram entities from
5292 Ada.Finalization.Heap_Management to System.Finalization_Masters:
5293
5294 RE_Add_Offset_To_Address
5295 RE_Attach
5296 RE_Base_Pool
5297 RE_Detach
5298
5299 * sem_ch3.adb (Access_Type_Declaration): Replace the call to
5300 Set_Associated_Collection with Set_Finalization_Master.
5301 * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal
5302 BIP_Finalization_Master is created.
5303 * s-finmas.adb: New unit System.Finalization_Masters.
5304 * s-finmas.ads: New unit System.Finalization_Masters.
5305 * s-stopoo.ads, s-stopoo.adb: Minor code reformatting.
5306 * s-stposu.ads, s-stposu.adb: New unit implementing
5307 System.Storage_Pools.Subpools.
5308
53092011-08-29 Bob Duff <duff@adacore.com>
5310
5311 * tbuild.adb: Add assertion.
5312
8c889ae4
AC
53132011-08-29 Thomas Quinot <quinot@adacore.com>
5314
5315 * s-pooglo.adb: Minor reformatting.
5316
53172011-08-29 Ed Schonberg <schonberg@adacore.com>
5318
5319 * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is
5320 an indexed component of a packed array whose element type is a record
5321 with a representation clause different from that of the right-hand
5322 side, generate a temporary to minimuze the number of bit-field
5323 operations generated.
5324
53252011-08-29 Ed Schonberg <schonberg@adacore.com>
5326
5327 * exp_util.adb (Insert_Actions): Use clauses can be part of lists of
5328 declarations, and thus are likely insertion points for actions.
5329
53302011-08-29 Bob Duff <duff@adacore.com>
5331
5332 * einfo.ads: Minor comment fix.
5333
1a07a71a
AC
53342011-08-29 Robert Dewar <dewar@adacore.com>
5335
5336 * frontend.adb, gnat1drv.adb: Minor reformatting.
5337
53382011-08-29 Tristan Gingold <gingold@adacore.com>
5339
5340 * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment.
5341 * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding
5342 space in front of the header.
5343
4bcd6411
JK
53442011-08-29 Johannes Kanig <kanig@adacore.com>
5345
5346 * frontend.adb (Frontend): Exit after creating Standard package when
5347 -gnatd.H is present.
5348 * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is
5349 present.
5350
f0f88eb6
RD
53512011-08-29 Robert Dewar <dewar@adacore.com>
5352
5353 * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb,
5354 makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl,
5355 snames.ads-tmpl: Minor reformatting.
5356
3e37be71
PG
53572011-08-29 Philippe Gil <gil@adacore.com>
5358
5359 * prj.adb (Reset_Units_In_Table): New procedure.
5360 Reset units to avoid access to freed memory.
5361
94fb7608
AC
53622011-08-29 Thomas Quinot <quinot@adacore.com>
5363
5364 * get_scos.adb: When reading a P statement SCO without a pragma name
5365 (from an older ALI file), ensure that the Pragma_Name component is set
5366 to Unknown_Pragma (not left uninitialized).
5367
53682011-08-29 Vincent Celier <celier@adacore.com>
5369
5370 * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and
5371 modified to compute correctly the object path of a SAL project that is
5372 extending another library project.
5373 (Write_Path_File): New procedure.
5374 * makeutl.ads (Directories): New table moved from Buildgpr
5375 (Get_Directories): New procedure moved from Buildgpr
5376 (Write_Path_File): New procedure
5377 * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the
5378 paths before binding SALs, instead of Set_Ada_Paths.
5379 * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package
5380 Prj.
5381 * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env
5382 (Current_Source_Path_File_Of): New function
5383 (Set_Current_Object_Path_File_Of): New procedure
5384 (Current_Source_Object_File_Of): New function
5385 (Set_Current_Object_Path_File_Of): New procedure
5386 * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env
5387 (Current_Source_Path_File_Of): New function
5388 (Set_Current_Object_Path_File_Of): New procedure
5389 (Current_Source_Object_File_Of): New function
5390 (Set_Current_Object_Path_File_Of): New procedure
5391
53922011-08-29 Ed Schonberg <schonberg@adacore.com>
5393
5394 * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a
5395 packed entity, use a bit-field assignment only if there is no change of
5396 representation.
5397
c5ecd6b7
AC
53982011-08-29 Thomas Quinot <quinot@adacore.com>
5399
5400 * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use
5401 Is_RTU instead of using Chars comparisons.
5402
54032011-08-29 Thomas Quinot <quinot@adacore.com>
5404
5405 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a
5406 temporary object if the actual is constrained, and the discriminants
5407 read from the stream don't match.
5408
54092011-08-29 Tristan Gingold <gingold@adacore.com>
5410
5411 * sem_attr.adb, exp_attr.adb: Add handling of
5412 Attribute_System_Allocator_Alignment
5413 * snames.ads-tmpl: Add Name_System_Allocator_Alignment and
5414 Attribute_System_Allocator_Alignment.
5415 * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment.
5416 * gcc-interface/targtyps.c, gcc-interface/utils2.c,
5417 gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to
5418 get_target_system_allocator_alignment.
5419
54202011-08-29 Arnaud Charlet <charlet@adacore.com>
5421
5422 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
5423 dependencies.
5424
8abdac29
AC
54252011-08-29 Arnaud Charlet <charlet@adacore.com>
5426
5427 * exp_ch3.adb (In_Runtime): Fix typo.
5428
df170605
AC
54292011-08-29 Bob Duff <duff@adacore.com>
5430
5431 * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification.
5432
54332011-08-29 Ed Schonberg <schonberg@adacore.com>
5434
5435 * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged
5436 and a separate tag assignment is generated, ensure that the tag
5437 assignment is analyzed.
5438
864a4236
ES
54392011-08-29 Ed Schonberg <schonberg@adacore.com>
5440
5441 * atree.ads, atree.adb (Copy_Separate_List): New function that applies
5442 Copy_Separate_Tree to a list of nodes. Used to create disjoint copies
5443 of statement lists that may contain local declarations.
df170605
AC
5444 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to
5445 duplicate the triggering statements needed for the expansion of this
5446 construct, when the trigger is a dispatching call to a synchronized
5447 primitive.
864a4236 5448
7f394c1d
AC
54492011-08-29 Arnaud Charlet <charlet@adacore.com>
5450
5451 * gnat_rm.texi: Add doc for 'Elab_Subp_Body.
5452 * bindgen.adb: Add comments.
5453 * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body
5454 in CodePeer mode.
5455
2c1a2cf3
RD
54562011-08-29 Robert Dewar <dewar@adacore.com>
5457
5458 * exp_attr.adb: Minor reformatting.
5459 Minor code reorganization and commenting.
5460 * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor
5461 reformatting.
5462
0bfc9a64
AC
54632011-08-29 Thomas Quinot <quinot@adacore.com>
5464
5465 * get_scos.adb: Ignore chaining indicators not currently supported
5466 by Ada.
5467
54682011-08-29 Arnaud Charlet <charlet@adacore.com>
5469
5470 * system.ads: Minor editing.
5471
54722011-08-29 Arnaud Charlet <charlet@adacore.com>
5473
5474 * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in
5475 CodePeer mode.
5476 * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of
5477 Attribute_Elab_Subp_Body.
5478 * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New.
5479 * sem_util.adb: Update comments.
5480
828d4cf0
TQ
54812011-08-29 Thomas Quinot <quinot@adacore.com>
5482
5483 * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record
5484 pragma name for each SCO statement corresponding to a pragma.
5485
5cd7bb15
AC
54862011-08-29 Arnaud Charlet <charlet@adacore.com>
5487
5488 * opt.ads: Minor editing.
5489
54902011-08-29 Yannick Moy <moy@adacore.com>
5491
5492 * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode
5493 that only made sense for CodePeer mode.
5494
54952011-08-29 Jose Ruiz <ruiz@adacore.com>
5496
5497 * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag
5498 which is no longer used.
5499 * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the
5500 handling of the 64-bit division check.
5501 * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit
5502 division available.
5503 * system*.ads (Support_64_Bit_Divides): Remove this flag which is no
5504 longer used.
5505
55062011-08-29 Thomas Quinot <quinot@adacore.com>
5507
5508 * get_scos.adb: Minor reformatting.
5509
25b589cb
AC
55102011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5511
5512 * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a
5513 statement list is wrapped in a block, the block is explicitly analyzed
5514 in order to properly redecorate the entities and create a servicing
5515 finalizer.
5516
55172011-08-29 Tristan Gingold <gingold@adacore.com>
5518
5519 * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove.
5520 (Set_Zero_Cost_Handling): Remove.
5521
55222011-08-29 Thomas Quinot <quinot@adacore.com>
5523
5524 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting
5525
1197ddb1
AC
55262011-08-29 Geert Bosch <bosch@adacore.com>
5527
5528 * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation
5529 instruction, as the latter may produce -0.0, which is not a valid VAX
5530 F float number.
5531 (Neg_G): Likewise for VAX F float.
5532
55332011-08-29 Robert Dewar <dewar@adacore.com>
5534
5535 * exp_util.adb: Minor reformatting.
5536
55372011-08-29 Yannick Moy <moy@adacore.com>
5538
5539 * sem_ch3.adb: Minor comment update.
5540
55412011-08-29 Thomas Quinot <quinot@adacore.com>
5542
5543 * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of
5544 the operand type.
5545
55462011-08-29 Thomas Quinot <quinot@adacore.com>
5547
5548 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush
5549 current statement sequence on a generic instantiation or a subprogram
5550 declaration.
5551
8f66cda7
AC
55522011-08-29 Robert Dewar <dewar@adacore.com>
5553
5554 * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb:
5555 Minor reformatting.
5556
55572011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5558
5559 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
5560 Correct the check which involves the freeze node of a controlled or
5561 access-to-controlled type.
5562
55632011-08-29 Geert Bosch <bosch@adacore.com>
5564
5565 * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm
5566 statements.
5567 * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from
5568 Asm statements.
5569
cf161d66
AC
55702011-08-29 Yannick Moy <moy@adacore.com>
5571
5572 * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration
5573 for every index type and component type that is not a subtype_mark.
5574 (Process_Subtype): Set Etype of subtype.
5575
55762011-08-29 Robert Dewar <dewar@adacore.com>
5577
5578 * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code
5579 reorganization. Minor reformatting.
5580
7cc83cd8
AC
55812011-08-29 Steve Baird <baird@adacore.com>
5582
5583 * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion
5584 for CodePeer and ALFA modes.
5585
55862011-08-29 Ed Schonberg <schonberg@adacore.com>
5587
5588 * sem_type.adb (Collect_Interps): Within an instance, collect a homonym
5589 that comes from an enclosing scope if it is not the renaming of an
5590 actual, to handle properly a spurious ambiguity in an instance.
5591
76af4137
AC
55922011-08-29 Eric Botcazou <ebotcazou@adacore.com>
5593
5594 * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to...
5595 (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and
5596 use it instead of the Esize of the first parameter.
5597 (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to
5598 above change.
5599 <Size>: Likewise. Call it for composite types on the RM size.
5600
56012011-08-29 Yannick Moy <moy@adacore.com>
5602
5603 * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array.
5604 * sem_util.adb (Unique_Name): Correct behaviour for names of
5605 compilation units.
5606
9b20e59b
AC
56072011-08-29 Yannick Moy <moy@adacore.com>
5608
5609 * sem_prag.adb (Check_Precondition_Postcondition): In formal
5610 verification mode, analyze pragma expression for correctness, for
5611 pre/post on library-level subprogram, as it is not expanded later.
5612
56132011-08-29 Yannick Moy <moy@adacore.com>
5614
5615 * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates
5616 in formal verification.
5617
56182011-08-29 Thomas Quinot <quinot@adacore.com>
5619
5620 * sem_util.adb: Minor reformatting.
5621 * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute,
5622 there's no pragma.
5623 * par_sco.ads, par_sco.adb: Update comments.
5624
56252011-08-29 Yannick Moy <moy@adacore.com>
5626
5627 * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and
5628 associated getter/setter.
5629 * sem_ch6.adb: Remove reference to Is_Postcondition_Proc.
5630
56312011-08-29 Vincent Celier <celier@adacore.com>
5632
5633 * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind
5634 * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler
5635 with declarations for Language_Kind and Dependency_Kind for Ada.
5636 * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name
5637 (Process_Compiler): Take into account the new attributes Dependency_Kind
5638 and Language_Kind.
5639 (Check_Configuration): Check if language kind is unit based, not if the
5640 language name is Ada.
5641 (Process_Exceptions_Unit_Based): Ditto
5642 (Add_Language): Remove default additions of language and dependency kind
5643 * prj.ads: Minor comment change
5644 * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind
5645
56462011-08-29 Johannes Kanig <kanig@adacore.com>
5647
5648 * debug.adb: Update comments.
5649
c5bc3df6
JM
56502011-08-24 Joseph Myers <joseph@codesourcery.com>
5651
5652 * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
5653 (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
5654 (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
5655 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
5656 (ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
5657
e3aa9eba
RO
56582011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5659
5660 * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
5661 (GNATLIBCFLAGS_FOR_C): Replace
5662 TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
5663 (gnatlib-shared-default, gnatlib-shared-dual-win32)
5664 (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
5665 (gnatlib-sjlj, gnatlib-zcx): Likewise.
5666
f446d60e
EB
56672011-08-07 Eric Botcazou <ebotcazou@adacore.com>
5668
5669 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
5670
588c8f48
EB
5671 * gcc-interface/gigi.h (enumerate_modes): Fix formatting.
5672
5673 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.
5674
28d711bf
NR
56752011-08-05 Nicolas Roche <roche@adacore.com>
5676
5677 * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared
5678 libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with
5679 canadian cross.
5680 * gcc-interface/Make-lang.in: Add support for canadian cross setting.
5681
993f8920
AC
56822011-08-05 Matthew Heaney <heaney@adacore.com>
5683
5684 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth):
5685 subprogram bodies declared out-of-order.
5686
56872011-08-05 Yannick Moy <moy@adacore.com>
5688
5689 * sem_util.adb (Unique_Name): only prefix with "standard" the names of
5690 entities directly in package Standard, otherwise skip the standard
5691 prefix.
5692
9b3956dd
RD
56932011-08-05 Robert Dewar <dewar@adacore.com>
5694
5695 * a-cbmutr.adb: Minor reformatting
5696 (Allocate_Node): refactor node allocation algorithm
5697
56982011-08-05 Robert Dewar <dewar@adacore.com>
5699
5700 * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch.
5701 * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable
5702 mode.
5703 (Analyze_Pragma, case Check_Policy): Ditto.
5704 * sem_prag.ads (Check_Disabled): New function
5705 * snames.ads-tmpl: Add Name_Disable.
5706
57072011-08-05 Robert Dewar <dewar@adacore.com>
5708
5709 * gnat_rm.texi: Document implementation-defined policy DISABLE for
5710 pragmas Assertion_Policy, Check_Policy, Debug_Policy.
5711
79e705d6
AC
57122011-08-05 Ed Schonberg <schonberg@adacore.com>
5713
5714 * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma
5715 that appears in a generic formal part and applies to a formal
5716 subprogram.
5717
57182011-08-05 Robert Dewar <dewar@adacore.com>
5719
5720 * a-cbmutr.ads: Minor reformatting.
5721
23b6deca
AC
57222011-08-05 Matthew Heaney <heaney@adacore.com>
5723
5724 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid
5725 to check count, check sign of value instead.
5726 * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty
5727 (Copy_Subtree): allocate copy of source element
5728 (Equal_Subtree): compare elements, not access objects
5729
57302011-08-05 Vincent Celier <celier@adacore.com>
5731
5732 * gnat_ugn.texi: Fix VMS alternative.
5733
a2773bd3
AC
57342011-08-05 Thomas Quinot <quinot@adacore.com>
5735
5736 * sem_ch11.adb: Add comment.
5737
57382011-08-05 Robert Dewar <dewar@adacore.com>
5739
5740 * exp_util.adb: Minor comment fix.
5741
57422011-08-05 Robert Dewar <dewar@adacore.com>
5743
5744 * scng.adb (Error_Unterminated_String): Improve flag position when
5745 comma present.
5746
57472011-08-05 Matthew Heaney <heaney@adacore.com>
5748
5749 * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway
5750 tree containers).
5751 * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded
5752 multiway tree containers.
5753
57542011-08-05 Robert Dewar <dewar@adacore.com>
5755
5756 * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2
5757 * stylesw.adb: Implement -gnatyC to control comment spacing
5758 * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by
5759 -gnatyc/C).
5760 * usage.adb: Add line for -gnatyC.
5761
57622011-08-05 Robert Dewar <dewar@adacore.com>
5763
f446d60e 5764 * gnat_ugn.texi: Document -gnatyC.
a2773bd3
AC
5765 * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a
5766 synonym for COMMENTS2).
5767
dedac3eb
RD
57682011-08-05 Robert Dewar <dewar@adacore.com>
5769
5770 * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb,
5771 a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb,
5772 sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb,
5773 a-comutr.ads, lib-xref.adb: Minor reformatting.
5774
57752011-08-05 Robert Dewar <dewar@adacore.com>
5776
5777 * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal
5778 warning if there is an exception handler present.
5779
7c62a85a
AC
57802011-08-05 Pascal Obry <obry@adacore.com>
5781
5782 * a-iteint.ads: Fix copyright year.
5783
57842011-08-05 Thomas Quinot <quinot@adacore.com>
5785
5786 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a
5787 statement SCO for a USE clause or a representation clause.
5788
57892011-08-05 Yannick Moy <moy@adacore.com>
5790
5791 * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation
5792 between body and spec for stub.
5793 (Detect_And_Add_ALFA_Scope): take into account subprogram stub
5794 * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a
5795 pragma precondition or postcondition, for which the enclosing
5796 subprogram or package in the AST is not the desired one, return empty.
5797
e49208a9
AC
57982011-08-05 Thomas Quinot <quinot@adacore.com>
5799
5800 * g-expect.adb: Minor reformatting.
5801
58022011-08-05 Bob Duff <duff@adacore.com>
5803
5804 * a-fihema.adb: Comment out OS_Lib.
5805
58062011-08-05 Matthew Heaney <heaney@adacore.com>
5807
5808 * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb]
5809 (unbounded multiway tree containers) and a-iteint.ads.
5810 * a-comutr.ads, a-comutr.adb:
5811 This is the new Ada 2012 unit for unbounded multiway tree containers
5812 * a-cimutr.ads, a-cimutr.adb
5813 This is the new Ada 2012 unit for indefinite multiway tree containers
5814 * a-iteint.ads: New file.
5815
201cdb74
RO
58162011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5817
f446d60e 5818 * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc.
201cdb74 5819
d50f4827
AC
58202011-08-05 Bob Duff <duff@adacore.com>
5821
5822 * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for
5823 subpools.
5824 * par-ch4.adb (P_Allocator): Parse new subpool specification syntax.
5825
58262011-08-05 Ed Schonberg <schonberg@adacore.com>
5827
5828 * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the
5829 general indexing aspects of Ada2012. Called when analyzing indexed
5830 components when other interpretations fail.
5831 * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only
5832 in an expression context where overloading is meaningful. This excludes
5833 the occurrence in an aspect specification (efficiency only).
5834 * sem_attr.adb (Analyze_Attribute): indicate that the attributes
5835 related to iterators can be set by an attribute specification, but
5836 cannot be queried.
5837 * sem_ch13.adb (Analyze_Aspect_Specifications): handle
5838 Constant_Indexing and Variable_Indexing.
5839 (Check_Indexing_Functions): New procedure to perform legality checks.
5840 Additional semantic checks at end of declarations.
5841
efe05dfc
AC
58422011-08-05 Sergey Rybin <rybin@adacore.com>
5843
5844 * tree_io.ads: Update ASIS_Version_Number because of the change of the
5845 order of calling Tree_Write/Tree_Read routines made for aspects.
5846
58472011-08-05 Bob Duff <duff@adacore.com>
5848
5849 * a-fihema.adb (Finalize): Fix race condition.
5850
5f9cdefe
AC
58512011-08-05 Yannick Moy <moy@adacore.com>
5852
5853 * sem_ch12.adb (Analyze_Package_Instantiation,
5854 Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA
5855 mode.
5856
58572011-08-05 Ed Schonberg <schonberg@adacore.com>
5858
5859 * sem_type.adb (Specific_Type): in an instance, the type-specific
5860 operand of an equality check that involves null may have a private
5861 type. Use full view to determine legality of construct.
5862
822868aa
AC
58632011-08-05 Vincent Celier <celier@adacore.com>
5864
5865 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
5866 delete or close the file when the call to gnatmake was successful.
5867
58682011-08-05 Yannick Moy <moy@adacore.com>
5869
5870 * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set
5871 Global_Discard_Names.
5872
58732011-08-05 Ed Schonberg <schonberg@adacore.com>
5874
5875 * sinfo.ads: comments on use of entity field for aspect specifications.
5876
58772011-08-05 Ed Schonberg <schonberg@adacore.com>
5878
5879 * sem_ch12.adb (Reset_Entity): If the entity field of the associated
5880 node is not itself an entity but a selected component, it is a
5881 rewritten parameterless call to an en enclosing synchronized operation,
5882 and this expansion will be performed again in the instance, so there is
5883 no global information to preserve.
5884
44a10091
AC
58852011-08-05 Javier Miranda <miranda@adacore.com>
5886
5887 * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support
5888 for renamings of predefined primitives.
5889 (In_Predef_Prims_DT): New subprogram.
5890
58912011-08-05 Ed Schonberg <schonberg@adacore.com>
5892
5893 * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a
5894 possible interpretation of name is a reference type, add an
5895 interpretation that is the designated type of the reference
5896 discriminant of that type.
5897 * sem_res.adb (resolve): If the interpretation imposed by context is an
5898 implicit dereference, rewrite the node as the deference of the
5899 reference discriminant.
5900 * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type,
5901 Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from
5902 parent type or base type.
5903 * sem_ch4.adb (Process_Indexed_Component,
5904 Process_Overloaded_Indexed_Component, Indicate_Name_And_Type,
5905 Analyze_Overloaded_Selected_Component, Analyze_Selected_Component):
5906 Check for implicit dereference.
5907 (List_Operand_Interps): Indicate when an implicit dereference is
5908 ambiguous.
5909 * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference.
5910
59112011-08-05 Thomas Quinot <quinot@adacore.com>
5912
5913 * scos.ads: Update documentation of SCO table. Pragma statements can now
5914 be marked as disabled (using 'p' instead of 'P' as the statement kind).
5915 * par_sco.ads, par_sco.adb: Implement the above change.
5916 (Process_Decisions_Defer): Generate a P decision for the first parameter
5917 of a dyadic pragma Debug.
5918 * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if
5919 necessary.
5920 * put_scos.adb: Code simplification based on above change.
5921
bb3c784c
AC
59222011-08-05 Robert Dewar <dewar@adacore.com>
5923
5924 * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb,
5925 bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb,
5926 a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads,
5927 prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting
5928
59292011-08-05 Bob Duff <duff@adacore.com>
5930
5931 * a-stunau.ads, g-spipat.adb: Update comments.
5932
36f686f9
BD
59332011-08-05 Bob Duff <duff@adacore.com>
5934
5935 * a-fihema.ads: Minor comment fix.
5936 * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is
5937 correct.
5938 (Attach, Detach): Remove some unnecessary code.
5939 (Finalize): Remove Node_Ptr_To_Address, replace with a constant.
5940
7882673f
BD
59412011-08-05 Bob Duff <duff@adacore.com>
5942
5943 * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
5944 allocation for Objects component. This simplifies the code somewhat. It
5945 is also a little more efficient in the not-so-unusual case where there
5946 are no controlled objects allocated.
5947 Make Finalization_Started flag atomic.
5948 (Finalize): Avoid unnecessary detachment of items from the list.
5949 (pcol): Minor cleanup.
5950
d34cd274
AC
59512011-08-05 Ed Schonberg <schonberg@adacore.com>
5952
5953 * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal
5954 package whose name is the same as that of the generic unit, or its
5955 ultimate prefix.
5956
59572011-08-05 Bob Duff <duff@adacore.com>
5958
5959 * a-fihema.adb, a-fihema.ads: Minor comment improvements.
5960 * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb:
5961 Minor comment fixes.
5962
00332244
AC
59632011-08-05 Arnaud Charlet <charlet@adacore.com>
5964
5965 * make.adb (Linking_Phase): No longer need to set source search path
5966 before calling gnatlink in CodePeer mode.
5967 * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to
5968 gcc in CodePeer mode, since the binder generated file no longer has a
5969 'with Main'.
5970 * switch.ads, switch.adb (Is_Language_Switch): Removed.
5971 * switch-c.adb: Update comment.
5972
59732011-08-05 Thomas Quinot <quinot@adacore.com>
5974
5975 * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting.
5976
59772011-08-05 Nicolas Roche <roche@adacore.com>
5978
5979 * gnat_ugn.texi: Fix minor syntax error issue.
5980
59812011-08-05 Vincent Celier <celier@adacore.com>
5982
5983 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
5984 delete or close the file when the call to gnatmake returns a non
5985 successful return code.
5986
59872011-08-05 Ed Schonberg <schonberg@adacore.com>
5988
5989 * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate
5990 check, indicate that the copy of the original node does not come from
5991 source, to prevent an infinite recursion of the expansion.
5992
59932011-08-05 Johannes Kanig <kanig@adacore.com>
5994
5995 * debug.adb: document switch -gnatd.G for gnat2why, which deactivates
5996 VC generation for subprogram bodies.
5997
59982011-08-05 Yannick Moy <moy@adacore.com>
5999
6000 * einfo.ads: Typo.
6001 * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define
6002 the base type with the smallest allowed base type.
6003
60042011-08-05 Sergey Rybin <rybin@adacore.com>
6005
6006 * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for
6007 aspects.
6008
60092011-08-05 Ed Schonberg <schonberg@adacore.com>
6010
6011 * sem_ch12.ads: minor comment updates.
6012
60132011-08-05 Ed Schonberg <schonberg@adacore.com>
6014
6015 * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an
6016 instantiation and a formal package the compiler generates a package
6017 renaming declaration so that the generic name within the declaration
6018 is interpreted as a renaming of the instance. At the end of a formal
6019 package declaration, this renaming must become invisible.
6020
0da80d7d
AC
60212011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
6022
6023 * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character
6024 comparison and rely on concrete entities instead.
6025
60262011-08-05 Ed Schonberg <schonberg@adacore.com>
6027
6028 * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types
6029 and discriminants, to indicate that the type has an access discriminant
6030 that supports implicit dereference.
6031 * snames.ads-tmpl: Add names of aspects and attributes related to
6032 Ada2012 iterators: constant_indexing, default_iterator,
6033 iterator_element, implicit_dereference, variable_indexing.
6034 * aspects.ads, aspects.adb: entries for iterator-related aspects.
6035 * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for
6036 iterator-related aspects.
6037 * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects.
6038
60392011-08-05 Sergey Rybin <rybin@adacore.com>
6040
6041 * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling
6042 metrics in gnatmetric to cover new kinds of coupling mentrics.
6043
60442011-08-05 Steve Baird <baird@adacore.com>
6045
6046 * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead
2c7f9cc0 6047 of calling the user-defined main subprogram.
0da80d7d
AC
6048 (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode
6049 is set) Call_Main_Subprogram ahead of, as opposed to
6050 inside of, Main.
6051 (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional
6052 generation of a "with" of the user-defined main subprogram.
6053 Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper
6054 (which is now called from Gen_Main instead).
6055
73242473
AC
60562011-08-05 Emmanuel Briot <briot@adacore.com>
6057
6058 * projects.texi: Added reference to the Makefile package.
6059
60602011-08-05 Thomas Quinot <quinot@adacore.com>
6061
6062 * exp_ch7.adb: Minor comment rewording.
6063
60642011-08-05 Ed Falis <falis@adacore.com>
6065
6066 * env.c: Fix comment.
6067
60682011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
6069
6070 * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid
6071 character comparison and rely on concrete entities instead.
6072
97ed5872
AC
60732011-08-05 Ed Schonberg <schonberg@adacore.com>
6074
6075 * sem_ch3.adb: (Check_Private_Overriding): better error message,
6076 suggested by AI95-0068.
6077
60782011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
6079
6080 * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve
6081 the two potential initialization calls. This accounts for any
6082 access-before-elaboration checks which may precede the initialization
6083 calls.
6084 (Next_Suitable_Statement): New routine. Returns the next real statement
6085 after the input node while skipping generated checks.
6086 * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along
6087 with comment on usage.
6088 Do not generate Elaborate_All when the trigger is a finalization call
6089 coming from a type init proc.
6090 (Check_Elab_Call): Propagate the initialization procedure context to
6091 subsequent calls to Check_A_Call.
6092 (Check_Internal_Call_Continue): Propagate the initialization procedure
6093 context to subsequent calls to Check_Elab_Call.
6094 (Is_Finalization_Procedure): New routine. Returns True if the input
6095 entity denotes a [Deep_]Finalize routine.
6096 * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc
6097 along with comment on usage.
6098
60992011-08-05 Vadim Godunko <godunko@adacore.com>
6100
6101 * s-atocou.ads: Add list of supported platforms.
6102
61032011-08-05 Yannick Moy <moy@adacore.com>
6104
6105 * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables
6106
6107 * opt.ads (Disable_ALI_File): new Boolean flag
6108 * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing
6109
61102011-08-05 Ed Falis <falis@adacore.com>
6111
6112 * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that
6113 environ is properly defined.
6114
61152011-08-05 Vincent Celier <celier@adacore.com>
6116
6117 * make.adb (Compilation_Phase): Exit immediately when all objects have
6118 been found up to date, to avoid multiple exit messages.
6119 * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the
6120 same project for languages with no compiler.
6121 * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch
6122 -eI.
9aff36e9
RD
61232011-08-05 Robert Dewar <dewar@adacore.com>
6124
6125 * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb,
6126 sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb,
6127 prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb,
6128 s-atocou-builtin.adb: Minor reformatting.
6129
406935b6
AC
61302011-08-05 Yannick Moy <moy@adacore.com>
6131
6132 * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode,
6133 if the node to wrap is a pragma check, this node and enclosed
6134 expression are not expanded, so do not apply any transformations here.
6135 * exp_prag.adb (Expand_Pragma_Check): document the need to avoid
6136 introducing transient scopes.
6137
61382011-08-05 Jose Ruiz <ruiz@adacore.com>
6139
6140 * adaint.c (__gnat_set_writable, __gnat_set_readable,
6141 __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable,
6142 __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod
6143 routine is available, so we use the default implementation of these
6144 functions.
6145 * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is
6146 support for copying attributes on VxWorks 6.
6147
61482011-08-05 Yannick Moy <moy@adacore.com>
6149
6150 * debug.adb: Remove use of -gnatd.D.
6151 * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode
6152 * opt.ads: Simplify variables for ALFA mode, to keep one only
6153 * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode
6154 to ALFA mode.
6155
61562011-08-05 Vincent Celier <celier@adacore.com>
6157
6158 * prj-conf.adb (Do_Autoconf): Look also for --RTS in
6159 Builder'Default_Switches.
6160
61612011-08-05 Vincent Celier <celier@adacore.com>
6162
6163 * makeusg.adb: Add lines for --create-map-file switches.
6164
61652011-08-05 Ed Schonberg <schonberg@adacore.com>
6166
6167 * freeze.adb (Freeze_Entity): For a subprogram, if a type in the
6168 profile is incomplete and the full view is available, replace it with
6169 the full view.
6170 * sem_ch6.adb (Possible_Freeze): if a type in the profile is
6171 incomplete, freezing the subprogram is delayed until the full view is
6172 frozen.
6173 * sem_type.adb (Disambiguate): an ambiguity between a user-defined
6174 fixed-point multiplication operator and the predefined operator is
6175 resolved in favor of the user-defined one.
6176
96c891b3
RO
61772011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6178
6179 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use
6180 CONST_CAST.
6181
276e7ed0
AC
61822011-08-04 Ed Schonberg <schonberg@adacore.com>
6183
6184 * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
6185 whether a type lacks user-defined Read or Write operations, or has a
6186 component that lacks them.
6187 * sem_attr.adb (Check_Stream_Attribute): if restriction
6188 No_Default_Stream_Attributes is active, verify that all subcomponent
6189 types of the target have user-defined stream operations, and report
6190 error otherwise.
6191 * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
6192 * exp_strm.adb: Build_Elementary_Input_Call,
6193 Build_Elementary_Write_Call): remove checks for restriction
6194 No_Default_Stream_Attributes, now checked in semantics.
6195
61962011-08-04 Vincent Celier <celier@adacore.com>
6197
6198 * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
6199 switches on the command line, look for all valid --RTS switches in the
6200 Builder switches and for each language use the first runtime name found
6201 to invoke gprconfig.
6202 (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
6203 command line and there is no auto-configuration.
6204 (Runtime_Name_Set_For): New function.
6205
62062011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6207
6208 * exp_ch7.adb (Build_Object_Declarations): Do not generate the
6209 elaborate initialization expression for variable Abort when processing
6210 a package body or a declaration.
6211 (Create_Finalizer): Propagate the package context when creating the
6212 exception-related variables.
6213 * exp_ch7.ads (Build_Object_Declarations): New formal parameter
6214 For_Package along with usage comment.
6215
19172ae9
AC
62162011-08-04 Arnaud Charlet <charlet@adacore.com>
6217
6218 * gcc-interface/Makefile.in: Clean up targets.
6219 Enable new package for atomic counters and copy-on-write implementation
6220 of unbounded strings on x86 platforms.
6221 * gcc-interface/Make-lang.in: Update dependencies.
6222
0319cacc
AC
62232011-08-04 Robert Dewar <dewar@adacore.com>
6224
6225 * exp_ch7.adb: Minor reformatting.
6226
62272011-08-04 Robert Dewar <dewar@adacore.com>
6228
6229 * exp_strm.adb: Minor reformatting.
6230
62312011-08-04 Vadim Godunko <godunko@adacore.com>
6232
6233 * s-atocou.adb: Replace by dummy version and use on targets where atomic
6234 operations are not supported.
6235 * s-atocou-builtin.adb: Renamed from s-atocou.adb.
6236 * s-atocou-x86.adb: New file.
6237 * Makefile.rtl: Add s-atocou.o file
6238
62392011-08-04 Arnaud Charlet <charlet@adacore.com>
6240
6241 * make.adb (Compile): Move setting of CodePeer_Mode to ...
6242 (Compilation_Phase): ... here.
6243 (Scan_Make_Arg): Now bind and link by default in CodePeer mode.
6244
62452011-08-04 Thomas Quinot <quinot@adacore.com>
6246
6247 * Make-generated.in: Fix minor typo in comment.
6248
26e7e1a0
AC
62492011-08-04 Thomas Quinot <quinot@adacore.com>
6250
6251 * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve
6252 the project path.
6253
62542011-08-04 Robert Dewar <dewar@adacore.com>
6255
6256 * a-coinho.adb: Minor reformatting.
6257
62582011-08-04 Robert Dewar <dewar@adacore.com>
6259
6260 * a-coinho.ads: Minor reformatting.
6261
62622011-08-04 Vadim Godunko <godunko@adacore.com>
6263
6264 * s-atocou.ads, s-atocou.adb: New files.
6265 * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads,
6266 a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove
6267 direct use of GCC's atomic builtins and replace them by use of new
6268 atomic counter package.
6269
62702011-08-04 Ed Schonberg <schonberg@adacore.com>
6271
6272 * exp_strm.adb: better error message for No_Default_Stream_Attributes.
6273
62742011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6275
6276 * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic
6277 with a call to Get_External_Tag.
6278 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on
6279 subprogram usage. Remove the guard against package declarations and
6280 bodies since Build_Cleanup_Statements is no longer invoked in that
6281 context.
6282 (Build_Components): Initialize Tagged_Type_Stmts when the context
6283 contains at least one library-level tagged type.
6284 (Build_Finalizer): New local variables Has_Tagged_Types and
6285 Tagged_Type_Stmts along with associated comments on usage. Update the
6286 logic to include tagged type processing.
6287 (Create_Finalizer): Insert all library-level tagged type unregistration
6288 code before the jump block circuitry.
6289 (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements.
6290 (Expand_N_Package_Declaration): Remove the call to
6291 Build_Cleanup_Statements.
6292 (Process_Tagged_Type_Declaration): New routine. Generate a call to
6293 unregister the external tag of a tagged type.
6294 (Processing_Actions): Reimplemented to handle tagged types.
6295 (Process_Declarations): Detect the declaration of a library-level
6296 tagged type and carry out the appropriate actions.
6297 (Unregister_Tagged_Types): Removed. The machinery has been directly
6298 merged with Build_Finalizer.
6299
7483c888
AC
63002011-08-04 Robert Dewar <dewar@adacore.com>
6301
6302 * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb,
6303 gnatls.adb, exp_ch3.adb: Minor reformatting.
6304
63052011-08-04 Marc Sango <sango@adacore.com>
6306
6307 * sem_attr.adb (Analyze_Attribute): Replace the message
6308 "invisible attribute of}" of the spark restriction violation in
6309 attribute reference by the simple message "invisible attribute of type".
6310 Indeed, the node value Error_Msg_Node_1 used is in conflit with the
6311 two insertion characters: '&' and '}'.
6312
63132011-08-04 Vadim Godunko <godunko@adacore.com>
6314
6315 * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho".
6316 * a-coinho.ads, a-coinho.adb: New file.
6317 * Makefile.rtl: Add Ada.Containers.Indefinite_Holders.
6318
5207696c
AC
63192011-08-04 Nicolas Roche <roche@adacore.com>
6320
6321 * alfa_test.adb: Not all ali files are containing alfa information even
6322 if compiled with -gnatd.F. So suppress warning about missing ALFA
6323 information.
6324
63252011-08-04 Yannick Moy <moy@adacore.com>
6326
6327 * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for
6328 scope.
6329 * put_alfa.adb: Check that scope name is not empty.
6330
63312011-08-04 Ed Schonberg <schonberg@adacore.com>
6332
6333 * exp_ch3.adb (Stream_Operation_Ok): new predicate
6334 Needs_Elementary_Stream_Operation, to determine whether user-defined
6335 Read and Write attributes are available for the elementary components
6336 of the given type. If only the predefined attributes are available,
6337 then when restriction No_Default_Stream_Attributes is active the
6338 predefined stream attributes for the composite type cannot be created.
6339
63402011-08-04 Robert Dewar <dewar@adacore.com>
6341
6342 * bindgen.adb: Fix obsolete comments and names from Ada/C days.
6343 Put routines in alpha order
6344
2bd2d858
JR
63452011-08-04 Jose Ruiz <ruiz@adacore.com>
6346
6347 * gcc-interface/Makefile.in: Remove xenomai specific versions of system.
6348 * gcc-interface/Make-lang.in: Update dependencies.
6349
8fae6016
AC
63502011-08-04 Arnaud Charlet <charlet@adacore.com>
6351
6352 * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
6353 * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
6354 gnat1why).
6355
a54d0eb4
AC
63562011-08-04 Robert Dewar <dewar@adacore.com>
6357
6358 * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
6359 lib-xref-alfa.adb: Minor reformatting.
6360
63612011-08-04 Marc Sango <sango@adacore.com>
6362
6363 * sem_ch12.adb (Analyze_Generic_Package_Declaration,
6364 Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation,
6365 Analyze_Subprogram_Instantiation): Check absence of generic in SPARK
6366 mode.
6367
63682011-08-04 Tristan Gingold <gingold@adacore.com>
6369
6370 * bindgen.adb (Gen_Adainit_C): Remove.
6371 (Gen_Adafinal_C): Ditto.
6372 (Gen_Elab_Externals_C): Ditto.
6373 (Gen_Elab_Calls_C): Ditto.
6374 (Gen_Elab_Order_C): Ditto.
6375 (Gen_Elab_Defs_C): Ditto.
6376 (Gen_Finalize_Library_C): Ditto.
6377 (Gen_Finalize_Library_Defs_C): Ditto.
6378 (Gen_Main_C): Ditto.
6379 (Gen_Output_File_C): Ditto.
6380 (Gen_Restrictions_C): Ditto.
6381 (Gen_Versions_C): Ditto.
6382 (Write_Info_Ada_C): Ditto.
6383 (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C
6384 (Gen_Output_File): Do not force Ada_Bind_File anymore.
6385 Always call Gen_Output_File_Ada.
6386 * gnatlink.adb (Begin_Info): Now a constant.
6387 (End_Info): Ditto.
6388 (Ada_Bind_File): Remove
6389 (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases.
6390 * switch-b.adb (Scan_Binder_Switches): Do not handle -C.
6391 * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases.
6392 * opt.ads (Ada_Bind_File): Remove.
6393
63942011-08-04 Thomas Quinot <quinot@adacore.com>
6395
6396 * projects.texi: Document target-specific directory in default project
6397 path for gnatmake.
6398
63992011-08-04 Thomas Quinot <quinot@adacore.com>
6400
6401 * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project
6402 path in all cases .
6403
24558db8
AC
64042011-08-04 Yannick Moy <moy@adacore.com>
6405
6406 * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb,
6407 opt.ads, lib-xref.ads: Code clean up.
6408
64092011-08-04 Yannick Moy <moy@adacore.com>
6410
6411 * gnat_rm.texi: Update description of Test_Case
6412 * gnat_ugn.texi: Typo.
6413
64142011-08-04 Ed Falis <falis@adacore.com>
6415
6416 * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin.
6417
64182011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6419
6420 * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when
6421 it is of type Root_Controlled. This action eliminates fields Prev and
6422 Next from type equality.
6423
64242011-08-04 Yannick Moy <moy@adacore.com>
6425
6426 * lib-xref-alfa.adb: Correct typo.
6427
64282011-08-04 Matthew Heaney <heaney@adacore.com>
6429
6430 * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes
6431 component.
6432
1f9939b5
AC
64332011-08-04 Yannick Moy <moy@adacore.com>
6434
6435 * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure
6436 (Analyze_Pragma): allow static string expression for name of Test_Case,
6437 instead of simply string literals.
6438 * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string
6439 expressions.
6440
64412011-08-04 Vincent Celier <celier@adacore.com>
6442
6443 * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical
6444 case suffixes to find truncated main sources.
6445
64462011-08-04 Tristan Gingold <gingold@adacore.com>
6447
6448 * impunit.adb (Non_Imp_File_Names_95): Add g-tastus.
6449 s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put.
6450 (Compute_Current_Task): Ditto.
6451
64522011-08-04 Tristan Gingold <gingold@adacore.com>
6453
6454 * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage.
6455
64562011-08-04 Yannick Moy <moy@adacore.com>
6457
6458 * lib-xref-alfa.adb (Is_Global_Constant): new function that detects
6459 library-level constant.
6460 (Add_ALFA_Xrefs): ignore global constants in ALFA xref.
6461 * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal
6462 used as selector of parameter association, in ALFA mode.
6463
15d8a51d
AC
64642011-08-04 Robert Dewar <dewar@adacore.com>
6465
6466 * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb,
6467 s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor
6468 reformatting.
6469
64702011-08-04 Arnaud Charlet <charlet@adacore.com>
6471
6472 * make.adb (Linking_Phase): Set source search path before calling
6473 gnatlink in CodePeer mode.
6474
f46faa08
AC
64752011-08-04 Javier Miranda <miranda@adacore.com>
6476
6477 * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration):
6478 Remove code which takes care of building TSDs.
6479 * rtsfind.ads (RE_Check_Interface_Conversion): New entity.
6480 * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating
6481 the accessibility check in VM targets.
6482 * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads
6483 (Building_Static_DT): Now returns false for VM targets.
6484 (Build_VM_TSDs): Removed.
6485 (Expand_Interface_Conversion): Generate missing runtime check for
6486 conversions to interface types whose target type is unknown at compile
6487 time.
6488 (Make_VM_TSD): Add missing code to disable the generation of calls to
6489 Check_TSD if the tagged type is not defined at library level, or not
6490 has a representation clause specifying its external tag, or -gnatdQ is
6491 active.
6492 * exp_disp.ads (Build_VM_TSDs): Removed.
6493 (Make_VM_TSDs): Spec relocated from exp_disp.adb
6494 * sem_disp.adb (Check_Dispatching_Operation): No code required to
6495 register primitives in the dispatch tables in VM targets.
6496 * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of
6497 initialization of class-wide interface objects in VM targets.
6498 (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead
6499 of Make_DT).
6500
65012011-08-04 Jerome Lambourg <lambourg@adacore.com>
6502
6503 * gnatlink.adb (Gnatlink): Correct missleading error message displayed
6504 when dotnet-ld cannot be found.
6505
65062011-08-04 Arnaud Charlet <charlet@adacore.com>
6507
6508 * bindgen.adb: Simplify significantly generation of binder body file in
6509 CodePeer mode.
6510 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure
6511 when compiling binder generated file in CodePeer mode (xxx'Elab_Spec
6512 not expanded).
6513
2ba7e31e
AC
65142011-08-04 Yannick Moy <moy@adacore.com>
6515
6516 * sem_prag.adb, sem.ads: Code cleanup.
6517
65182011-08-04 Tristan Gingold <gingold@adacore.com>
6519
6520 * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part.
6521 * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate
6522 results if possible.
6523 * s-stusta.adb (Print): Adjust after changes in s-stausa.
6524 * gnat_ugn.texi: Update dynamic stack usage section.
6525
65262011-08-04 Steve Baird <baird@adacore.com>
6527
6528 * bindgen.adb (Gen_CodePeer_Wrapper): new procedure.
6529 Generate (if CodePeer_Mode is set) a "wrapper" subprogram which
6530 contains only a call to the user-defined main subprogram.
6531 (Gen_Main_Ada) - If CodePeer_Mode is set, then
6532 call the "wrapper" subprogram instead of directly
6533 calling the user-defined main subprogram.
6534
65352011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6536
6537 * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all
6538 alternatives of a case statement for controlled objects. Rename local
6539 variable A to Dead_Alt.
6540 (Expand_N_If_Statement): Check the then and else statements of an if
6541 statement for controlled objects. Check the then statements of all
6542 elsif parts of an if statement for controlled objects.
6543 (Expand_N_Loop_Statement): Check the statements of a loop for controlled
6544 objects.
6545 * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which
6546 detects a loop associated with the expansion of an array object.
6547 Augment the processing of the loop statements to account for a possible
6548 wrap done by Process_Statements_For_Controlled_Objects.
6549 * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering
6550 statements and abortable part of an asynchronous select for controlled
6551 objects.
6552 (Expand_N_Conditional_Entry_Call): Check the else statements of a
6553 conditional entry call for controlled objects.
6554 (Expand_N_Selective_Accept): Check the alternatives of a selective
6555 accept for controlled objects.
6556 (Expand_N_Timed_Entry_Call): Check the entry call and delay
6557 alternatives of a timed entry call for controlled objects.
6558 * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an
6559 exception handler for controlled objects.
6560 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
6561 Add formal parameter Nested_Constructs along with its associated
6562 comment.
6563 (Requires_Cleanup_Actions (Node_Id)): Update all calls to
6564 Requires_Cleanup_Actions.
6565 (Process_Statements_For_Controlled_Objects): New routine.
6566 * exp_util.ads (Process_Statements_For_Controlled_Objects): New
6567 routine. Inspect a node which contains a non-handled sequence of
6568 statements for controlled objects. If such an object is found, the
6569 statements are wrapped in a block.
6570
1bf773bb
AC
65712011-08-04 Bob Duff <duff@adacore.com>
6572
6573 * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we
6574 need to compare with Class_Wide_Type (T2), in order to get at the
6575 original class-wide type node.
6576 * sem_type.ads (Covers): Improve the comment.
6577 * einfo.ads (Class_Wide_Type): Improve the comment.
6578 * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of
6579 the type of the Deref.
6580
65812011-08-04 Yannick Moy <moy@adacore.com>
6582
6583 * gnat_rm.texi: Document that Test_Case pragma can only appear on
6584 separate declarations.
6585 * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to
6586 check identifier of pragma argument.
6587 (Chain_TC): check that no other test case associated to the same entity
6588 share the same name.
6589 (Check_Test_Case): disallow test case inside subprogram body
6590 (Analyze_Pragma): correct call to check identifier and not argument
6591 * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new
6592 function gets name from test case pragma.
6593
dac3bede
YM
65942011-08-04 Yannick Moy <moy@adacore.com>
6595
6596 * gnat_rm.texi: Document new pragma and aspect.
6597 * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case
6598 (No_Duplicates_Allowed): new constant array defining whether duplicates
6599 aspects of each kind can appear on the same declaration.
6600 * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract
6601 field, which points to a node holding the previous Spec_PPC_List.
6602 * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List
6603 through the indirection with Contract.
6604 * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node
6605 * par-prag.adb (Prag): do nothing on Test_Case pragma
6606 * sem.adb (Analyze): abort on N_Contract, on which Analyze should not
6607 be called directly.
6608 * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in
6609 component Ensures of Test_Case.
6610 * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb
6611 (Analyze_Generic_Subprogram_Declaration,
6612 Analyze_Subprogram_Instantiation,
6613 Analyze_Abstract_Subprogram_Declaration,
6614 Analyze_Subprogram_Body_Helper,
6615 Analyze_Subprogram_Specification, Analyze_Entry_Declaration):
6616 insert contract in subprogram node at point of definition
6617 * sem_ch13.adb
6618 (Aspect_Loop): do not raise error on duplicate Test_Case aspect
6619 (Analyze_Aspect_Specifications): analyze Test_Case aspect and create
6620 corresponding pragma
6621 (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect
6622 * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases,
6623 similar to the analysis of pre/post
6624 (Derive_Subprogram): insert contract in subprogram node at point of
6625 derivation.
6626 * sem_prag.adb, sem_prag.ads
6627 (Check_Arg_Is_String_Literal, Check_Identifier):
6628 new checking procedures to be called in treatment of pragmas
6629 (Check_Test_Case): new procedure to check that a Test_Case aspect or
6630 pragma is well-formed. This does not check currently that 'Result is
6631 used only in the Ensures component of a Test_Case.
6632 (Analyze_Pragma): add case for Test_Case
6633 (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures
6634 components of a Test_Case.
6635 (Preanalyze_TC_Args): new procedure to preanalyze the boolean
6636 expressions in the 3rd (and 4th if present) arguments of a Test_Case
6637 pragma, treated as spec expressions.
6638 (Sig_Flags): add value -1 for Test_Case.
6639 * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma,
6640 Get_Requires_From_Test_Case_Pragma): getters for both expression
6641 components of a Test_Case.
6642 * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as
6643 indirection between an entry or [generic] subprogram entity and its
6644 pre/post + test-cases.
6645 (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List):
6646 get/set for fields of an N_Contract node.
6647 * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode,
6648 Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new
6649 names and pragma for Test_Case.
6650 * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node
6651
6a2e5d0f
AC
66522011-08-04 Vincent Celier <celier@adacore.com>
6653
6654 * gnat_ugn.texi: Improve documentation of gnatmake switch
6655 --source-info-file=.
6656
66572011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6658
6659 * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion
6660 type). Initialize Atyp to the appropriate type which is later checked
6661 for completion. Rewrite the assertion associated with private type
6662 completion.
6663
66642011-08-04 Ed Falis <falis@adacore.com>
6665
6666 * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to
6667 initialize the number of CPUs.
6668
66692011-08-04 Ed Schonberg <schonberg@adacore.com>
6670
6671 * sem_type.adb (Disambiguate): New subsidiary routine
6672 In_Same_Declaration_List, to implement AI05-0020: a user-defined
6673 equality on an anonymous access type whose designated type is private
6674 does not lead to an ambiguity with the universal access equality
6675 operator in the body or child units of the defining package. The same
6676 is true for a multiplication operator on a private type completed with
6677 a fixed-point-type.
6678
66792011-08-04 Javier Miranda <miranda@adacore.com>
6680
6681 * opt.ads (Init_Or_Norm_Scalars_Config): Removed.
6682 (Normalize_Scalars_Config): Removed.
6683 * opt.adb
6684 (Register_Opt_Config_Switches): Remove registering config values of
6685 Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config.
6686 (Restore_Opt_Config_Switches): Remove code which restores the values of
6687 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
6688 Init_Or_Norm_Scalars.
6689 (Save_Opt_Config_Switches): Remove code which saves values of
6690 Init_Or_Norm_Scalars and Normalize_Scalars.
6691 (Set_Opt_Config_Switches): Remove code which restores config values of
6692 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
6693 Init_Or_Norm_Scalars.
6694
66952011-08-04 Yannick Moy <moy@adacore.com>
6696
6697 * frontend.adb (Frontend): remove previous patch to avoid full
6698 qualification in ALFA mode.
6699 * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables.
6700 * sem_util.adb, sem_util.ads (Unique_Name): new function to define a
6701 unique name for an entity, which could be used to identify the entity
6702 across compilation units.
6703
67042011-08-04 Thomas Quinot <quinot@adacore.com>
6705
6706 * prj-env.adb
6707 (Initialize_Default_Project_Path): Add target specific directory
6708 ($prefix/$target/lib/gnat) in front of project path in all cases
6709 (making gnatmake's behaviour consistent with gprbuild).
6710 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb:
6711 Pass target name from Sdefault to project subsystem.
6712 * gnatls.adb: Show new target specific default project directory.
6713
67142011-08-04 Johannes Kanig <kanig@adacore.com>
6715
6716 * cstand.adb: Add Information to Identifier in Standard
6717 (Identifer_For): Set Entity to the corresponding entity
6718
483361a6
AC
67192011-08-04 Sergey Rybin <rybin@adacore.com>
6720
6721 * gnat_ugn.texi: Update doc on gnatcheck.
6722
67232011-08-04 Yannick Moy <moy@adacore.com>
6724
6725 * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of
6726 xrefs in a scope.
6727
67282011-08-04 Yannick Moy <moy@adacore.com>
6729
6730 * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without
6731 performing expansion.
6732 * sem_ch6.adb (Analyze_Subprogram_Body_Helper,
6733 Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that
6734 it is not called in ALFA mode.
6735
ef5569c6
AC
67362011-08-04 Emmanuel Briot <briot@adacore.com>
6737
6738 * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used
6739 after all, so removed.
6740
67412011-08-04 Sergey Rybin <rybin@adacore.com>
6742
6743 * vms_data.ads: Add missing VMS qualifiers.
6744
1ab4a286
EB
67452011-08-04 Emmanuel Briot <briot@adacore.com>
6746
6747 * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild
6748 the list of files on the command line after processing it through
6749 Complete_Mains.
6750
7ae0d98c
AC
67512011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6752
6753 * exp_ch7.adb (Build_Raise_Statement): Remove the specialized
6754 processing for .NET/JVM. These targets can now benefit from
6755 Raise_From_Controlled_Operation and they share the same processing with
6756 standard targets.
6757 (Establish_Transient_Scope): Remove the restriction for .NET/JVM.
6758 These targets need transient scopes in order to properly finalize short
6759 lived controlled objects.
6760 (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for
6761 NET/JVM. These targets can now benefit from
6762 Raise_From_Controlled_Operation and they share the same processing with
6763 standard targets.
6764
67652011-08-04 Geert Bosch <bosch@adacore.com>
6766
6767 * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack
6768
67692011-08-04 Ed Schonberg <schonberg@adacore.com>
6770
6771 * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to
6772 Expand_Record_Aggregate, to determine whether aggregate must be
6773 expanded into assignments. This is the case if the ancestor part is
6774 private, regarless of the setting of the flag Has_Private_Ancestor.
6775
67762011-08-04 Ed Falis <falis@adacore.com>
6777
6778 * vxaddr2line.adb: Add support for e500v2 and for Linux hosts
6779
67802011-08-04 Bob Duff <duff@adacore.com>
6781
6782 * sinfo.ads: Fix comment.
6783
67842011-08-04 Steve Baird <baird@adacore.com>
6785
6786 * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then
6787 choose a package name in much the same way as is
6788 done for JGNAT when VM_Target /= No_VM, except that
6789 a slightly more distinctive prefix string is used.
6790
67912011-08-04 Emmanuel Briot <briot@adacore.com>
6792
6793 * makeutl.adb (Complete_Mains): no longer accept unit names on the
6794 gnatmake command line.
6795 This behavior was never documented (and was supported only because of
6796 an early bug in the code). This case might lead to ambiguous cases
6797 (between unit names and truncated base names without suffixes).
6798
87729e5a
AC
67992011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6800
6801 * a-tags.ads, a-tags.adb (Unregister_Tag): New routine.
6802 Remove the external tag of a tagged type from the internal hash table.
6803 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the
6804 expanded usage of the routine. Strenghten the check for Is_Master. Add
6805 processing for tagged types.
6806 (Build_Finalizer): Create all the necessary lists used in finalizer
6807 creation when the processed context is a package that may contain
6808 tagged types.
6809 (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to
6810 Requires_Cleanup_Actions.
6811 (Expand_N_Package_Body): Package bodies may need clean up code
6812 depending on whether they contain tagged types.
6813 (Expand_N_Package_Declaration): Package declarations may need clean up
6814 code depending on whether they contain tagged types.
6815 (Unregister_Tagged_Types): New routine. Search through a list of
6816 declarations or statements, looking for non-abstract Ada tagged types.
6817 For each such type, generate code to unregister the external tag.
6818 * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to
6819 Requires_Cleanup_Actions.
6820 (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search
6821 through a list of declarations or statements looking for non-abstract
6822 Ada tagged types or controlled objects.
6823 * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to
6824 Requires_Cleanup_Actions.
6825 (Has_Controlled_Objects (List_Id, Boolean)): Removed.
6826 * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and
6827 RE_Unit_Table.
6828
68292011-08-04 Vincent Celier <celier@adacore.com>
6830
6831 * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj
6832 has Ada sources, not project Project, because if the root project
6833 Project has no sources of its own, all projects will be deemed without
6834 sources.
6835
68362011-08-04 Gary Dismukes <dismukes@adacore.com>
6837
6838 * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration
6839 of the No_Param_Proc acc-to-subp type used for initialization of
6840 __gnat_finalize_library_objects so that it's declared at library level
6841 rather than nested inside of the adainit routine.
6842
68432011-08-04 Javier Miranda <miranda@adacore.com>
6844
6845 * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY
6846 if the tagged type has a representation clause which specifies its
6847 external tag.
6848
68492011-08-04 Ed Schonberg <schonberg@adacore.com>
6850
6851 * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types.
6852 Remove previous procedure with that name.
6853 * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor
6854 when appropriate.
6855 * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a
6856 subtype mark, the ancestor cannot have unknown discriminants.
6857 (Resolve_Record_Aggregate): if the type has invisible components
6858 because of a private ancestor, the aggregate is illegal.
6859
68602011-08-04 Vincent Celier <celier@adacore.com>
6861
6862 * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into
6863 account switches -gnat2005, -gnat12 and -gnat2012.
6864
68652011-08-04 Bob Duff <duff@adacore.com>
6866
6867 * s-tasdeb.ads: Minor comment fix.
6868
68692011-08-04 Arnaud Charlet <charlet@adacore.com>
6870
6871 * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in
6872 CodePeer mode.
6873 * switch.ads, switch.adb (Is_Language_Switch): New function.
6874
68752011-08-04 Vincent Celier <celier@adacore.com>
6876
6877 * switch-c.adb: Minor comment addition.
6878
68792011-08-04 Vincent Celier <celier@adacore.com>
6880
6881 * vms_conv.adb (Process_Argument): Fail graciously when qualifier
6882 ending with '=' is followed by a space (missing file name).
6883
68842011-08-04 Pascal Obry <obry@adacore.com>
6885
6886 * g-regist.ads: Fix size of HKEY on x86_64-windows.
6887
68882011-08-04 Ed Schonberg <schonberg@adacore.com>
6889
6890 * sem_ch12.adb (Analyze_Associations): New routine
6891 Check_Overloaded_Formal_Subprogram to reject a formal package when
6892 there is a named association or a box initialisation for an overloaded
6893 formal subprogram of the corresponding generic.
6894
68952011-08-04 Yannick Moy <moy@adacore.com>
6896
6897 * alfa.ads (ALFA_Xref_Record): add component for type of entity
6898 * get_alfa.adb, put_alfa.adb: Read and write new component of
6899 cross-reference.
6900 * lib-xref-alfa.adb (Collect_ALFA): generate new component.
6901
88f47280
AC
69022011-08-04 Pascal Obry <obry@adacore.com>
6903
6904 * urealp.adb: Minor reformatting.
6905
69062011-08-04 Tristan Gingold <gingold@adacore.com>
6907
6908 * exp_ch7.adb (build_finalizer.process_declarations.processing_actions):
6909 Handle the case when Cleanup_Protected_Object returns Empty.
6910
69112011-08-04 Yannick Moy <moy@adacore.com>
6912
6913 * frontend.adb (Frontend): only qualify names in non-ALFA mode
6914
69152011-08-04 Ed Schonberg <schonberg@adacore.com>
6916
6917 * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure
6918 call, ignore functions.
6919
05c53a69
GB
69202011-08-04 Geert Bosch <bosch@adacore.com>
6921
6922 * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating
6923 point.
6924
23cc1ace
EB
69252011-08-04 Emmanuel Briot <briot@adacore.com>
6926
6927 * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name
6928 as an index for Builder'Switches. This conforms to the documentation.
6929 * make.adb (Insert_Project_Sources): avoid duplicate code
6930
cef14201
AC
69312011-08-04 Emmanuel Briot <briot@adacore.com>
6932
6933 * makeutl.adb (Complete_Mains): if the user has passed a relative file
6934 name on the command line (for instance "../dummy"), never assume it can
6935 be a unit name.
6936
69372011-08-04 Tristan Gingold <gingold@adacore.com>
6938
6939 * bindgen.adb: Remove code the reference or create the
6940 Break_Start/__gnat_break_start procedure.
6941 * s-stalib.adb (Break_Start): Removed.
6942
e2fee30d
EB
69432011-08-04 Emmanuel Briot <briot@adacore.com>
6944
6945 * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now
6946 shared with gprbuild.
6947
2d395256
AC
69482011-08-04 Yannick Moy <moy@adacore.com>
6949
6950 * par-ch4.adb (P_Primary): preferentially issue an error message about
6951 a missing parenthesis arount a conditional or case expression in Ada
6952 2012 mode, if we detect that the alignment is not correct for a
6953 statement.
6954
69552011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6956
6957 * exp_ch7.adb (Process_Declarations): Do not consider the result of a
6958 tag-to-class-wide conversion as needing finalization actions.
6959 * exp_util.adb (Has_Controlled_Objects): Do not consider the result of
6960 a tag-to-class-wide conversion as needing finalization actions.
6961 (Is_Finalizable_Transient): The result of a tag-to-class-wide
6962 conversion does not need finalization actions.
6963 (Is_Tag_To_CW_Conversion): New routine.
6964 * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines
6965 whether an object is the result of a tag-to-class-wide conversion.
6966
69672011-08-04 Yannick Moy <moy@adacore.com>
6968
6969 * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which
6970 the left-hand-side and right-hand-side of a conjunct are inserted when
6971 translating a pre- or postcondition
6972 * sem_ch6.adb: Correct typo in comment
6973
69742011-08-04 Ed Schonberg <schonberg@adacore.com>
6975
6976 * gnat_rm.texi: Ravenscar does not prohibit dependence on
6977 Unchecked_Conversion and Unchecked_Deallocation.
6978
69792011-08-04 Thomas Quinot <quinot@adacore.com>
6980
6981 * make.adb: Minor reformatting.
6982
767ab2fd
EB
69832011-08-04 Emmanuel Briot <briot@adacore.com>
6984
6985 * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the
6986 sources in the project and its imported projects, but not in the whole
6987 tree.
6988
8fb3f5df
AC
69892011-08-04 Emmanuel Briot <briot@adacore.com>
6990
6991 * make.adb: Remove debug trace.
6992
69932011-08-04 Vincent Celier <celier@adacore.com>
6994
6995 * makeutl.adb (Do_Complete): Get the absolute path name of a relative
6996 path in canonical form, to be able to compare path names on platforms
6997 such as Windows or Darwin.
6998
69992011-08-04 Thomas Quinot <quinot@adacore.com>
7000
7001 * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry):
7002 For a pragma (statement with C1 = 'P'), record the sloc of the pragma.
7003 * scos.ads: Update documentation accordingly.
7004 * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled
7005 pragmas.
7006
9515740f
AC
70072011-08-04 Ed Schonberg <schonberg@adacore.com>
7008
7009 * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of
7010 attribute only if prefix type is scalar.
7011
70122011-08-04 Emmanuel Briot <briot@adacore.com>
7013
7014 * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support
7015 in gnatmake for specifying mains on the command line that do not belong
7016 to the main project. These mains must currently all belong to the same
7017 project, though.
7018 (Ultimate_Extension_Of): removed, since duplicated
7019 Ultimate_Extending_Project.
7020
92966893
AC
70212011-08-04 Arnaud Charlet <charlet@adacore.com>
7022
7023 * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode
7024 instead.
7025 (CodePeer_Mode_String): New.
7026 (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in
7027 CodePeer mode.
7028 (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode.
7029 * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer
7030 mode, since no useful elaboration subprogram is needed by CodePeer.
7031 * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode).
7032 In this mode, compile binder file with -gnatC and do stop after this
7033 step.
7034
70352011-08-04 Vincent Celier <celier@adacore.com>
7036
7037 * exp_ch7.adb: Minor comment fix.
7038
5969611f
RD
70392011-08-04 Robert Dewar <dewar@adacore.com>
7040
7041 * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb,
7042 exp_ch4.adb, makeutl.adb: Minor reformatting.
7043
6367dd30
AC
70442011-08-04 Emmanuel Briot <briot@adacore.com>
7045
7046 * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring.
7047 Create several new subprograms to move code out of Make. This makes the
7048 code more readable, removes code duplication, and is a preparation work
7049 for adding support for aggregate projects.
7050
70512011-08-04 Tristan Gingold <gingold@adacore.com>
7052
7053 * s-po32gl.ads, s-po32gl.adb: New files.
7054 * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function.
7055 * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function.
7056 (Build_Finalization_Collection): Use it.
7057 * exp_ch4.adb (Complete_Controlled_Allocation): Ditto.
7058 * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New
7059 literals.
7060 * gcc-interface/Makefile.in: Use s-po32gl.o on VMS.
7061 * gcc-interface/Make-lang.in: Update dependencies.
7062
cd8bfe35
EB
70632011-08-04 Emmanuel Briot <briot@adacore.com>
7064
7065 * makeutl.adb (Complete_Mains): add support for specs with no suffix on
7066 the command line.
7067
7db29ea7
EB
70682011-08-04 Emmanuel Briot <briot@adacore.com>
7069
7070 * make.adb, makeutl.adb (Complete_Mains): if a main specified on the
7071 command line is not a file name, also check whether it could be a unit
7072 name.
7073
d9b056ea
AC
70742011-08-04 Eric Botcazou <ebotcazou@adacore.com>
7075
7076 * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate
7077 the header of the finalization routine.
7078 If the unit has no finalizer but is a body whose spec has one, then
7079 generate the decrement of the elaboration entity only.
7080 If the unit has a finalizer and is a spec, then do not generate the
7081 decrement of the elaboration entity.
7082 (Gen_Finalize_Library_C): Likewise.
7083
70842011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7085
7086 * exp_ch7.adb (Alignment_Of): New subsidiary routine.
7087 (Bounds_Size_Expression): Removed.
7088 (Double_Alignment_Of): New subsidiary routine.
7089 (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account
7090 for a hole in the dope vector of unconstrained arrays due to different
7091 index and element alignments.
7092
70932011-08-04 Ed Schonberg <schonberg@adacore.com>
7094
7095 * sem_res.adb (Resolve_Allocator): diagnose task allocator that will
7096 raise program_error because body has not been seen yet.
7097
70982011-08-04 Ed Schonberg <schonberg@adacore.com>
7099
7100 * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with
7101 an unresolved name.
7102
71032011-08-04 Vincent Celier <celier@adacore.com>
7104
7105 * makeutl.adb (Do_Complete): Check absolute paths in canonical forms
7106
71072011-08-04 Yannick Moy <moy@adacore.com>
7108
7109 * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here
7110 * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here
7111
71122011-08-04 Thomas Quinot <quinot@adacore.com>
7113
7114 * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for
7115 instantiation in RCI.
7116
71172011-08-04 Emmanuel Briot <briot@adacore.com>
7118
7119 * make.adb: Share more code with gprbuild
7120
f5fc5b9d
AC
71212011-08-04 Emmanuel Briot <briot@adacore.com>
7122
7123 * projects.texi: Added documentation for the IDE'Gnat project file
7124 attribute.
7125
71262011-08-04 Nicolas Roche <roche@adacore.com>
7127
7128 * gnat_rm.texi: Minor editing.
7129
71302011-08-04 Javier Miranda <miranda@adacore.com>
7131
7132 * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case
7133 and the library case for VM targets.
7134 (Gen_Adainit_Ada): Likewise.
7135
71362011-08-04 Robert Dewar <dewar@adacore.com>
7137
7138 * g-altive.ads: Minor comment updates.
7139 * prj-nmsc.adb: Minor reformatting.
7140
71412011-08-04 Javier Miranda <miranda@adacore.com>
7142
7143 * opt.ads
7144 (Normalize_Scalars_Config): Value of the configuration switch set by
7145 pragma Normalize_Scalars when it appears in the gnat.adc file.
7146 (Normalize_Scalars): New field for record Config_Switches_Type. Used
7147 to save and restore settings of this pragma.
7148 * opt.adb
7149 (Register_Opt_Config_Switches, Save_Opt_Config_Switches,
7150 Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars.
7151
71522011-08-04 Vincent Celier <celier@adacore.com>
7153
7154 * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile
7155
0c4683cf
AC
71562011-08-04 Arnaud Charlet <charlet@adacore.com>
7157
7158 * makeutl.adb: Minor reformatting.
7159
71602011-08-04 Olivier Hainque <hainque@adacore.com>
7161
7162 * g-altive.ads: Update comments to reflect that only the soft
7163 binding is available today.
7164
2598ee6d
RD
71652011-08-04 Robert Dewar <dewar@adacore.com>
7166
7167 * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb,
7168 makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting
7169 * gcc-interface/Make-lang.in: Update dependencies.
7170
c2db4b32
AC
71712011-08-04 Arnaud Charlet <charlet@adacore.com>
7172
7173 * prj-env.adb: Remove local debug traces.
7174
71752011-08-04 Yannick Moy <moy@adacore.com>
7176
7177 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
7178 was used instead of Hi_OK, which could cause a read of an uninitialized
7179 value later on. Detected while working on the new warning.
7180 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
7181 to local variable.
7182 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
7183 in more cases, in order to detect more unreferenced values.
7184 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
7185 object for expression, if any.
7186
71872011-08-04 Eric Botcazou <ebotcazou@adacore.com>
7188
7189 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
7190 the operand types instead of the Esize.
7191
71922011-08-04 Steve Baird <baird@adacore.com>
7193
7194 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
7195 enable CodePeer_Mode.
7196 * bindusg.adb (Display): Add help message describing -P binder switch.
7197 * gnat_ugn.texi: Document -P binder switch.
7198 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
7199 user-defined main program directly.
7200 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
7201 user-defined main program in the context clause of the package body.
7202
ad05f2e9
AC
72032011-08-04 Yannick Moy <moy@adacore.com>
7204
7205 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
7206 duplicate of Defining_Entity
7207 (Get_Unique_Entity_For_Decl): rename function into
7208 Unique_Defining_Entity
7209 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
7210 (Formal_Proof_On): remove synthesized flag
7211 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
7212 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
7213 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
7214 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
7215 Annotate (Formal_Proof)
7216
72172011-08-04 Emmanuel Briot <briot@adacore.com>
7218
7219 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
7220 source files with non-standard naming schemes, in imported projects
7221
756ef2a0
AC
72222011-08-04 Emmanuel Briot <briot@adacore.com>
7223
7224 * makeutl.adb (Complete_Mains): when a multi-unit source file is
7225 specified on the gprbuild command line, we need to compile all units
7226 within that file, not just the first one we find
7227 Fix error message for mains that are not found.
7228
72292011-08-04 Thomas Quinot <quinot@adacore.com>
7230
7231 * sem_ch6.adb: Update comment.
7232 * sem_ch12.adb: Minor reformatting.
7233
72342011-08-04 Bob Duff <duff@adacore.com>
7235
7236 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
7237 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
7238 race condition whose symptom is to fail to lock Parent. That, in turn,
7239 causes Parent.Awake_Count to be accessed without locking Parent, which
7240 causes another race condition whose symptom is that Parent.Awake_Count
7241 can be off by 1 (either too high or too low). The solution is to lock
7242 Parent unconditionally, and then lock Acceptor, before reading
7243 Acceptor.Terminate_Alternative.
7244
4fdebd93
AC
72452011-08-04 Arnaud Charlet <charlet@adacore.com>
7246
7247 * debug.adb: Update comment.
7248
72492011-08-04 Robert Dewar <dewar@adacore.com>
7250
7251 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
7252 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
7253 exp_ch6.adb: Minor reformatting.
7254
72552011-08-04 Gary Dismukes <dismukes@adacore.com>
7256
7257 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
7258 checks for -gnateE.
7259
72602011-08-04 Ed Schonberg <schonberg@adacore.com>
7261
7262 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
7263
72642011-08-04 Thomas Quinot <quinot@adacore.com>
7265
7266 * sinfo.ads: Minor reformatting.
7267
72682011-08-04 Emmanuel Briot <briot@adacore.com>
7269
7270 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
7271 even if there is no location.
7272
6aaa0587
ES
72732011-08-04 Ed Schonberg <schonberg@adacore.com>
7274
7275 * sem_res.adb, sem_ch4.adb: move check for restriction
7276 No_Task_Hierarchy to resolve_allocator.
7277
35a1c212
AC
72782011-08-04 Thomas Quinot <quinot@adacore.com>
7279
7280 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
7281 This flag of N_Pragma nodes is not used, remove it as well as all of
7282 the associated circuitry.
7283
72842011-08-04 Javier Miranda <miranda@adacore.com>
7285
7286 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
7287 runtime check on duplicated externa tags
7288 * debug.adb Document switch -gnatdQ.
7289
72902011-08-04 Gary Dismukes <dismukes@adacore.com>
7291
7292 * a-fihema.ads: Minor typo fix.
7293
72942011-08-04 Yannick Moy <moy@adacore.com>
7295
7296 * sem_ch10.adb: Minor comment update.
7297
72982011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7299
7300 * einfo.adb: Update the node field usage to reflect the renaming of
7301 Return_Flag to Return_ Flag_Or_Transient_Decl.
7302 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
7303 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
7304 (Write_Field15_Name): Change Return_Flag to
7305 Return_Flag_Or_Transient_Decl.
7306 * einfo.ads: Rename node field Return_Flag to
7307 Return_Flag_Or_Transient_Decl. Update the associated comment and all
7308 occurrences in entities.
7309 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
7310 associated Inline pragma.
7311 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
7312 associated Inline pragma.
7313 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
7314 routine.
7315 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
7316 Return_Flag and Set_Return_Flag.
7317 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
7318 objects generated for controlled transients declared inside an
7319 Exception_With_Actions. Update the calls to Return_Flag.
7320 (Process_Object_Declaration): Add code to add a null guard for hook
7321 objects generated for controlled transients declared inside an
7322 Exception_With_Actions. Update related comment.
7323 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
7324 objects generated for controlled transients declared inside an
7325 Exception_With_Actions. Update the calls to Return_Flag.
7326 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
7327
73282011-08-04 Ed Schonberg <schonberg@adacore.com>
7329
7330 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
7331 positional aggregate.
7332
73332011-08-04 Vincent Celier <celier@adacore.com>
7334
7335 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
7336 SLOC only for pragmas.
7337
73382011-08-04 Emmanuel Briot <briot@adacore.com>
7339
7340 * projects.texi: Minor typo fix.
7341
73422011-08-04 Emmanuel Briot <briot@adacore.com>
7343
7344 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
7345 on case-sensitive file systems.
7346
c2873f74
TQ
73472011-08-04 Thomas Quinot <quinot@adacore.com>
7348
7349 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
7350 nested in a disabled pragma.
7351 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
7352 enclosing pragma, if any, for X decisions.
7353
73542011-08-04 Thomas Quinot <quinot@adacore.com>
7355
7356 * sem_prag.adb: Minor reformatting.
7357
46414266
VC
73582011-08-04 Vincent Celier <celier@adacore.com>
7359
7360 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
7361 allowed in no run time mode.
7362
73632011-08-04 Vincent Celier <celier@adacore.com>
7364
7365 * make.adb (Check): When -gnatc is used, check for the source file
7366 inside the ALI file with a canonical case file name.
7367
afab164f
EB
73682011-08-04 Emmanuel Briot <briot@adacore.com>
7369
7370 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
7371 overriding the separator.
7372
fe0ec02f
AC
73732011-08-04 Robert Dewar <dewar@adacore.com>
7374
7375 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
7376 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
7377
73782011-08-04 Robert Dewar <dewar@adacore.com>
7379
7380 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
7381
73822011-08-04 Yannick Moy <moy@adacore.com>
7383
7384 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
7385 'Result only appears in postcondition of function.
7386
73872011-08-04 Thomas Quinot <quinot@adacore.com>
7388
7389 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
7390 external tag, include the value of the external tag in the exception
7391 message.
7392
0180fd26
AC
73932011-08-04 Yannick Moy <moy@adacore.com>
7394
7395 * sem_attr.adb (Result): modify error message for misplaced 'Result
7396
73972011-08-04 Sergey Rybin <rybin@adacore.com>
7398
7399 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
7400 clear that the second argument must be an identifier.
7401
74022011-08-04 Thomas Quinot <quinot@adacore.com>
7403
7404 * exp_ch9.adb (Build_Barrier_Function): When compiling with
7405 -fpreserve-control-flow, insert an IF statement on the barrier
7406 condition to ensure that a conditional branch instruction is generated.
7407
74082011-08-04 Emmanuel Briot <briot@adacore.com>
7409
7410 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
7411 (Processing_Flags.Ignore_Missing_With): new flag.
7412
74132011-08-04 Emmanuel Briot <briot@adacore.com>
7414
7415 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
7416 Source_List_File on case-insensitive systems where the file is actually
7417 on a case-sensitive file system (NFS,...).
7418
74192011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7420
7421 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
7422 function return contains a controlled [extension] aggregate and the
7423 return statement is not part of a handled sequence of statements, wrap
7424 the return in a block. This ensures that all controlled temporaries
7425 generated during aggregate resolution will be picked up by the
7426 finalization machinery.
7427
74282011-08-04 Ed Schonberg <schonberg@adacore.com>
7429
7430 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
7431 components, freeze type before resolution, to ensure that default
7432 initializations are present for all components.
7433 * sem_res.adb (Resolve_Actuals): the designated object of an
7434 accces-to-constant type is a legal actual in a call to an
7435 initialization procedure.
7436
74372011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7438
7439 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
7440 N_Unchecked_Type_Conversion to the possible containers of a renamed
7441 transient variable.
7442
78efd712
AC
74432011-08-04 Yannick Moy <moy@adacore.com>
7444
7445 * par-ch13.adb (Aspect_Specifications_Present): recognize
7446 "with Identifier'Class =>" as an aspect, so that a meaningful warning
7447 is issued in Strict mode.
7448 * par.adb: Fix typos in comments.
7449
74502011-08-04 Yannick Moy <moy@adacore.com>
7451
7452 * sem_attr.adb (Result): modify error message to take into account Post
7453 aspect when compiling Ada 2012 (or newer) code.
7454
74552011-08-04 Nicolas Roche <roche@adacore.com>
7456
7457 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
2c7f9cc0 7458 remove need for GCC exceptions.
78efd712
AC
7459
74602011-08-04 Vincent Celier <celier@adacore.com>
7461
7462 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
7463 project, not the source file name.
7464 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
7465 excluded, continue looking. This excluded source will only be returned
7466 if there is no other source with the same base name that is not locally
7467 removed.
7468
74692011-08-04 Ed Schonberg <schonberg@adacore.com>
7470
7471 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
7472 private and one of the operands is a real literal, use a qualified
7473 expression rather than a conversion which is not meaningful to the
7474 back-end.
7475
0170a691
AC
74762011-08-04 Yannick Moy <moy@adacore.com>
7477
7478 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
7479 corresponding aspect X'Class are allowed, proceed with analysis of the
7480 aspect instead of skipping it.
7481
74822011-08-04 Tristan Gingold <gingold@adacore.com>
7483
7484 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
7485 This will allow to have an Ada implementation for the subprogram.
7486
deb4f5ba
ES
74872011-08-04 Ed Schonberg <schonberg@adacore.com>
7488
7489 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
7490 completion and aspects are present, apply them to the entity for the
7491 type which is currently the partial view, but which is the one that
7492 will be frozen.
7493 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
7494 applies to a partial view, indicate that the full view has predicates
7495 and delayed aspects.
7496 (Replace_Type_Reference): Handle properly predicates that apply to the
7497 full view of a private completion.
7498
fc893455
AC
74992011-08-04 Eric Botcazou <ebotcazou@adacore.com>
7500
7501 * layout.adb (Layout_Type): For composite types, do not set Esize.
7502 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
7503 set Esize.
7504 (Size_Known): Look at the RM size of components instead of the Esize.
7505 (Freeze_Record_Type): Look at the RM size instead of the Esize to
7506 issue warning and activate Implicit_Packing.
7507 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
7508 if the Esize is not known.
7509 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
7510 for elementary types only.
7511 (Analyze_Record_Representation_Clause): Look at the RM size instead
7512 of the Esize to issue errors.
7513 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
7514 is not known.
7515 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
2c7f9cc0 7516 obsolete block.
fc893455
AC
7517 Look at the RM size instead of the Esize for types if the latter is
7518 not known.
7519 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
7520
75212011-08-04 Ed Schonberg <schonberg@adacore.com>
7522
7523 * sem_type.adb: proper handling of equality not involving anonymous
7524 access types.
7525
b37d5bc6
AC
75262011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7527
7528 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
7529 Vis_Decls. When creating a library-level finalizer for a package spec,
7530 both the declaration and body of the finalizer are inserted either in
7531 the visible or private declarations of the package spec.
7532
75332011-08-04 Javier Miranda <miranda@adacore.com>
7534
7535 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
7536 use of the full-view of a type when invoking Is_Ancestor.
7537 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
7538 the full-view of private parents is requested, then use also the
7539 full-view of the parent of the first derivation.
7540
7ab4d95a
AC
75412011-08-04 Tristan Gingold <gingold@adacore.com>
7542
7543 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
7544 instead of the locally imported procedure.
7545 * s-taprop-mingw.adb (Enter_Task): Ditto.
7546 * s-valrea.adb (Scan_Real): Ditto.
7547 * s-imgrea.adb (Set_Image_Real): Ditto.
7548 * s-flocon.ads: Make the package pure.
7549
75502011-08-04 Thomas Quinot <quinot@adacore.com>
7551
7552 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
7553 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
7554 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
7555 New subprogram, moved here from...
7556 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
7557 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
7558 rewriting of the last argument into a procedure call statement here...
7559 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
7560 instead.
7561
75622011-08-04 Thomas Quinot <quinot@adacore.com>
7563
7564 * par_sco.adb: Minor reformatting.
7565
51c400f5
AC
75662011-08-04 Robert Dewar <dewar@adacore.com>
7567
7568 * erroutc.adb: Minor reformatting.
7569
75702011-08-04 Thomas Quinot <quinot@adacore.com>
7571
7572 * par_sco.adb: Comment update.
7573
75742011-08-04 Tristan Gingold <gingold@adacore.com>
7575
7576 * s-flocon.ads: New file.
7577 * g-flocon.ads: Now a renaming of s-flocon.
7578 * Makefile.rtl: Add s-flocon.o
7579
6a49f110
AC
75802011-08-04 Javier Miranda <miranda@adacore.com>
7581
7582 * exp_strm.adb (Build_Array_Input_Function): if the array type is
7583 constrained, do not attempt to build a subtype of it.
7584
75852011-08-04 Yannick Moy <moy@adacore.com>
7586
7587 * errout.ads Change comments: remove 'R'M as an example where quotes
7588 are needed; add ALFA as another case where quotes are not needed
7589 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
7590 case where quotes are not needed.
7591 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
7592 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
7593 Remove all occurrences of 'A'L'F'A
7594
75952011-08-04 Ed Schonberg <schonberg@adacore.com>
7596
7597 * sem_ch13.adb: check legality of invariant pragma.
7598
a4640a39
AC
75992011-08-04 Eric Botcazou <ebotcazou@adacore.com>
7600
7601 * bindgen.adb: Add comments.
7602
76032011-08-04 Yannick Moy <moy@adacore.com>
7604
7605 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
7606 synthesized flag.
7607 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
7608 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
7609
76102011-08-04 Robert Dewar <dewar@adacore.com>
7611
7612 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
7613 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
7614 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
7615
39ade2f9
AC
76162011-08-04 Thomas Quinot <quinot@adacore.com>
7617
7618 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
7619
76202011-08-04 Thomas Quinot <quinot@adacore.com>
7621
7622 PR ada/47880
7623 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
7624 allocated object.
7625
76262011-08-04 Robert Dewar <dewar@adacore.com>
7627
7628 * einfo.ads, exp_ch4.adb: Minor reformatting.
7629
76302011-08-04 Jerome Lambourg <lambourg@adacore.com>
7631
7632 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
7633
7efc3f2d
AC
76342011-08-04 Ed Schonberg <schonberg@adacore.com>
7635
7636 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
7637 type in all cases to compute list of primitive operations, because full
7638 view may be an itype that is not attached to the list of declarations.
7639
76402011-08-04 Eric Botcazou <ebotcazou@adacore.com>
7641
7642 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
7643 library has already been finalized.
7644 (Gen_Adafinal_C): Likewise.
7645 (Gen_Adainit_Ada): Generate an early return if the library has
7646 already been elaborated.
7647 (Gen_Adainit_C): Likewise.
7648 (Gen_Output_File_Ada): Generate an elaboration flag.
7649 (Gen_Output_File_C): Likewise.
7650
f65df609
HK
76512011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7652
7653 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
7654 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
7655 built in the first place.
7656 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
7657 for CodePeer because Finalize_Address was not built to begin with.
7658 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
7659
a0fb8fe8
AC
76602011-08-04 Pascal Obry <obry@adacore.com>
7661
7662 * adaint.c (__gnat_tmp_name): Use current process id to create temp
7663 filenames, this ensures unicity of filenames across processes.
7664
76652011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7666
7667 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
7668 Raise_Controlled to Raise_From_Controlled_Operation. Update the
7669 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
7670 Add False as the actual to From_Abort in the generated call to
7671 Raise_From_Controlled_Operation.
7672
76732011-08-04 Jerome Lambourg <lambourg@adacore.com>
7674
7675 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
7676 so that the ali file name can be retrieved from outside of this package.
7677 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
7678 doing nothing in the general case, but used to update the object file
7679 timestamp if directly generated by the backend.
7680 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
7681 to a later time than the ali file one.
7682
9534ab17
AC
76832011-08-04 Yannick Moy <moy@adacore.com>
7684
7685 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
7686 entities whose body contains an Annotate pragma which forces formal
7687 proof on this body.
7688 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
7689 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
7690 Mark_Non_ALFA_Subprogram to pass in a message and node.
7691 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
7692 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
7693 surrounding subprogram.
7694 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
7695 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
7696 as not in ALFA is annotated with Formal_Proof being On, then an error
7697 is issued based on the additional parameters for message and node.
7698 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
7699 * gcc-interface/Make-lang.in: Update dependencies.
7700
77012011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7702
7703 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
7704 Finalize_Address when CodePeer is enabled.
7705
77062011-08-04 Pascal Obry <obry@adacore.com>
7707
7708 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
7709 the latter returns a pointer to a static buffer which is deallocated
7710 at the end of the routine.
7711
5c0e97dd
AC
77122011-08-04 Yannick Moy <moy@adacore.com>
7713
7714 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
7715 after index creation; mark unconstrained base array type generated as
7716 being in/not in ALFA as well
7717 (Make_Index): mark subtype created as in/not in ALFA
7718 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
7719 over a loop as in/not in ALFA, depending on its type and form of loop
7720 iteration.
7721
77222011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7723
7724 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
7725 directly to False on .NET and JVM.
7726
7a93c64b
YM
77272011-08-04 Yannick Moy <moy@adacore.com>
7728
7729 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
7730 constraint that subtype must come from source code to be in ALFA, so
7731 that anonymous subtypes can be in ALFA too.
7732
e9a1ed9b
YM
77332011-08-04 Yannick Moy <moy@adacore.com>
7734
7735 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
7736 reference for ALFA mode.
7737 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
7738 procedure public so as to use it from formal verification back-end.
7739
8e293fbd
AC
77402011-08-04 Jerome Lambourg <lambourg@adacore.com>
7741
7742 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
7743 invalid checks of the Parameter, making Remove_Switch not working
7744 correctly.
7745
77462011-08-04 Arnaud Charlet <charlet@adacore.com>
7747
7748 * targparm.ads: Update header: no run-time exception is needed on this
7749 file.
7750
77512011-08-04 Vincent Celier <celier@adacore.com>
7752
7753 * a-fihema.adb: Use System.IO instead of GNAT.IO
7754
77552011-08-04 Thomas Quinot <quinot@adacore.com>
7756
7757 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
7758 are forbidden in Compiler_Unit mode.
7759
cfae2bed
AC
77602011-08-04 Robert Dewar <dewar@adacore.com>
7761
7762 * sem_util.adb: Minor reformatting.
7763
77642011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7765
7766 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
7767 library-level finalizers.
7768 (Gen_Finalize_Library_C): Update the import string for library-level
7769 finalizers.
7770 (Gen_Finalize_Library_Defs_C): Update the definition name of a
7771 library-level finalizer.
7772 * exp_ch7.adb: Remove with and use clauses for Stringt.
7773 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
7774 Spec_Decl. Add local variable Body_Id. The names of library-level
7775 finalizers are now manually fully qualified and are no longer external.
7776 A single name is now capable of servicing .NET, JVM and non-VM targets.
7777 Pragma Export is no longer required to provide visibility for the name.
7778 (Create_Finalizer_String): Removed.
7779 (New_Finalizer_Name): New routine which mimics New_..._Name.
7780
01f0729a
AC
77812011-08-04 Eric Botcazou <ebotcazou@adacore.com>
7782
7783 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
7784 elaboration counter to Standard_Short_Integer.
7785 * sem_util.adb (Build_Elaboration_Entity): Likewise.
7786 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
7787 (Gen_Elab_Externals_C): Likewise.
7788
77892011-08-04 Ed Falis <falis@adacore.com>
7790
7791 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
7792 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
7793 system-vxworks-mips.ads, system-vxworks-x86.ads
7794 (Always_Compatible_Rep): set to False for all VxWorks targets.
7795
2c1b72d7
AC
77962011-08-04 Robert Dewar <dewar@adacore.com>
7797
7798 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
7799 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
7800 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
7801 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
7802 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
7803 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
7804 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
7805 Minor reformatting and code reorganization.
7806
78072011-08-04 Emmanuel Briot <briot@adacore.com>
7808
7809 * projects.texi: Added doc for aggregate projects.
7810
824e9320
AC
78112011-08-04 Emmanuel Briot <briot@adacore.com>
7812
7813 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
7814 Add support for overriding the Project_Path in aggregate projects.
7815
78162011-08-04 Robert Dewar <dewar@adacore.com>
7817
7818 * a-cofove.ads: Minor reformatting.
7819
78202011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7821
7822 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
7823 on the generated code.
7824 (Build_Finalize_Statements): Update the comment on the generated code.
7825 (Build_Initialize_Statements): Update the comment on the generated code.
7826 (Build_Object_Declarations): Add local variable Result. The object
7827 declarations are now built in sequence.
7828 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
7829 RE_Unit_Table.
7830
78312011-08-04 Robert Dewar <dewar@adacore.com>
7832
7833 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
7834
78352011-08-04 Eric Botcazou <ebotcazou@adacore.com>
7836
7837 * einfo.ads (Elaboration_Entity): Document new definition and use.
7838 (Elaboration_Entity_Required): Adjust to above change.
7839 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
7840 * exp_ch12.adb: And with and use for Snames.
7841 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
7842 * exp_util.adb (Set_Elaboration_Flag): Likewise.
7843 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
7844 <Check_Unit_Name>: Deal with N_Expanded_Name.
7845 <Attribute_Elaborated>: Extend to all unit names.
7846 * sem_elab.adb: And with and use for Uintp.
7847 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
7848 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
7849 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
7850 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
7851 from Gen_Adainit_Ada.
7852 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
7853 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
7854 case, do not call System.Standard_Library.Adafinal; instead call
7855 finalize_library if needed.
7856 (Gen_Adafinal_C): Likewise.
7857 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
7858 non-main program case.
7859 (Gen_Adainit_C): Generate a couple of external declarations here.
7860 In the main program case, set SSL.Finalize_Library_Objects.
7861 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
7862 (Gen_Elab_Calls_C): Likewise.
7863 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
7864 (Gen_Finalize_Library_C): Likewise. Generate a full function.
7865 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
7866 objects here.
7867 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
7868 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
7869 Gen_Adafinal_Ada.
7870 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
7871 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
2c7f9cc0 7872 of external declarations. Call Gen_Finalize_Library_C.
824e9320 7873
316d9d4f
EB
78742011-08-04 Emmanuel Briot <briot@adacore.com>
7875
7876 * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains,
7877 Compute_Compilation_Phases): new subprogram.
7878 (Builder_Data, Builder_Project_Tree_Data): new subprogram and type
7879 The number of mains as well as the various compilation phases that
7880 need to be run are now project tree specific, since various
7881 aggregated trees might have different requirements. In particular,
7882 they do not all require bind or link phases.
7883
9434c32e
EB
78842011-08-04 Emmanuel Briot <briot@adacore.com>
7885
7886 * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb
7887 (Project_Tree_Appdata): New type.
7888 It is now possible to associate application-specific data to a project
7889 tree. In particular, this is used in the gprbuild builder to avoid a
7890 number of global tables and htables, especially now that there can be
7891 several project trees loaded at once because of aggregate projects.
7892 (Debug_Name): new procedure.
7893 * projects.texi: Clarify syntax of "**" for Source_Dirs
7894
41ba34db
EB
78952011-08-03 Emmanuel Briot <briot@adacore.com>
7896
7897 * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts
7898 the "roots" for a main.
7899 (Fill_From_Project): add support for aggregate projects. Main units
7900 in aggregated projects are now automatically added in the list of
7901 files to build (although this fails later on in gprbuild, because
7902 these files are not using the root proejct tree, so this needs
7903 further cleanup)
7904 * gcc-interface/Make-lang.in: Update dependencies.
7905
fccd42a9
AC
79062011-08-03 Yannick Moy <moy@adacore.com>
7907
7908 * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean
7909 conditional expression in ALFA.
7910 * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean
7911 expressions as not in ALFA.
7912
79132011-08-03 Robert Dewar <dewar@adacore.com>
7914
7915 * a-cofove.adb: Minor reformatting.
7916
79172011-08-03 Emmanuel Briot <briot@adacore.com>
7918
7919 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads
7920 (Insert_Project_Sources, Insert_withed_Sources_For): moved from the
7921 gprbuild sources.
7922 These packages are more logically placed in the Queue package, since
7923 they manipulate the queue. It is also likely that they can be adapted
7924 for gnatmake, thus sharing more code.
7925 (Finish_Program, Fail_Program): moved from the gprbuild sources, so
7926 that we could move the above.
7927
79282011-08-03 Emmanuel Briot <briot@adacore.com>
7929
7930 * errutil.adb (Finalize): clean up the list of error messages on exit.
7931 Calling this subprogram multiple times will no longer show duplicate
7932 error messages on stderr.
7933
79342011-08-03 Emmanuel Briot <briot@adacore.com>
7935
7936 * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter
7937 Getopt_Switches when we have already define a command line
7938 configuration.
7939
5e8c8e44
YM
79402011-08-03 Yannick Moy <moy@adacore.com>
7941
7942 * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not
7943 in ALFA. Instead, they are considered as assertions to prove.
7944 * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such
7945 nodes as not in ALFA. Instead, include conditional expressions in ALFA
7946 if they have no ELSE part, or if they occur in pre- and postconditions,
7947 where the Condition cannot have side-effects in ALFA
7948 (Analyze_Membership_Op): do not mark such nodes as not in ALFA
7949 (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA.
7950 Instead, include type conversion between scalar types in ALFA.
7951 * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA
7952 if-and-only-if its type is in ALFA.
7953
5ffe0bab
AC
79542011-08-03 Thomas Quinot <quinot@adacore.com>
7955
7956 * scos.adb, get_scos.adb, put_scos.adb
7957 New code letter for decisions: G (entry guard)
7958 * par_sco.adb
7959 (Traverse_Subprogram_Body): Rename to...
7960 (Traverse_Subprogram_Or_Task_Body): New subrpogram.
7961 (Traverse_Protected_Body): New subprogram
7962 (Traverse_Declarations_Or_Statements): Add traversal of task bodies,
7963 protected bodies and entry bodies.
7964
79652011-08-03 Yannick Moy <moy@adacore.com>
7966
7967 * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure
7968 entities with get/set subprograms, which is set on procedure entities
7969 generated by the compiler for a postcondition.
7970 * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures
7971 * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the
7972 entity for a declaration
7973 (Get_Unique_Entity_For_Decl): new function returning an entity which
7974 represents a declaration, so that matching spec and body have the same
7975 entity.
7976
79772011-08-03 Robert Dewar <dewar@adacore.com>
7978
7979 * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads,
7980 a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting
7981
79822011-08-03 Yannick Moy <moy@adacore.com>
7983
7984 * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram
7985 library-level because retriction No_Implicit_Dynamic_Code in the
7986 front-end prevents its definition as a local subprogram
7987 (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File,
7988 for reuse in other contexts
7989 (Traverse_Declarations_Or_Statements,
7990 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
7991 Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these
7992 procedures take a callback parameter to be called on all declarations
7993 * lib-xref.ads
7994 (Traverse_All_Compilation_Units): new generic function to traverse a
7995 compilation unit and call a callback parameter on all declarations
7996
f9ad6b62
AC
79972011-08-03 Javier Miranda <miranda@adacore.com>
7998
7999 * sem_prag.adb (Process_Interface_Name): Allow duplicated export names
8000 in Java since they are always enclosed in a namespace that
8001 differentiates them, and overloaded entities are supported by the VM.
8002
80032011-08-03 Ed Schonberg <schonberg@adacore.com>
8004
8005 * checks.adb (Determine_Range): If a computed bound of an operation is
8006 outside the range of the base type of the expression, and overflow
8007 checks are enabled, the result is unknown and cannot be used for any
8008 subsequent constant folding.
8009 * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are
8010 unknown, so is the result of the comparison.
8011
80122011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8013
8014 * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal
8015 From_Abort. When finalization was triggered by an abort, propagate
8016 Standard'Abort_Signal rather than Program_Error.
8017 * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal
8018 From_Abort.
8019 * a-except.adb (Raise_From_Controlled_Operation): Add new formal
8020 From_Abort. When finalization was triggered by an abort, propagate
8021 Standard'Abort_Signal rather than Program_Error.
8022 * a-except.ads:(Raise_From_Controlled_Operation): Add new formal
8023 From_Abort.
8024 * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable
8025 Abort_Id. Update the calls to Build_Object_Declarations and
8026 Build_Raise_Statement to include Abort_Id.
8027 (Build_Adjust_Statements): New local variable Abort_Id. Update the
8028 calls to Build_Object_Declarations and Build_Raise_Statement to include
8029 Abort_Id.
8030 (Build_Finalize_Statements): New local variable Abort_Id. Update the
8031 calls to Build_Object_Declarations and Build_Raise_Statement to include
8032 Abort_Id.
8033 (Build_Components): Create an entity for Abort_Id when exceptions are
8034 allowed on the target.
8035 (Build_Finalizer): New local variable Abort_Id.
8036 (Build_Initialize_Statements): New local variable Abort_Id. Update the
8037 calls to Build_Object_Declarations and Build_Raise_Statement to include
8038 Abort_Id.
8039 (Build_Object_Declarations): Add new formal Abort_Id. Create the
8040 declaration of flag Abort_Id to preserve the original abort status
8041 before finalization code is executed.
8042 (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to
8043 runtime routine Raise_From_Controlled_Operation.
8044 (Create_Finalizer): Update the call to Build_Raise_Statement to include
8045 Abort_Id. Update the call to Build_Object_Declarations to include
8046 Abort_Id. Update the layout of the finalizer body.
8047 (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort.
8048 (Process_Transient_Objects): New local variable Abort_Id. Remove the
8049 clunky code to create all flags and objects related to
8050 exception propagation and replace it with a call to
8051 Build_Object_Declarations. Update the call to Build_Raise_Statement to
8052 include Abort_Id.
8053 * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec.
8054 Add new formal Abort_Id and associated comment on its use.
8055 (Build_Raise_Statement): Add new formal Abort_Id and associated comment
8056 on its use.
8057 * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id.
8058 Remove the clunky code to create all flags and objects related to
8059 exception propagation and replace it with a call to
8060 Build_Object_Declarations. Update the call to Build_Raise_Statement.
8061
80622011-08-03 Eric Botcazou <ebotcazou@adacore.com>
8063
8064 * s-tassta.adb: Fix minor typos.
8065
80662011-08-03 Robert Dewar <dewar@adacore.com>
8067
8068 * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb,
8069 lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting.
8070
1cdfa9be
AC
80712011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8072
8073 * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion
8074 to packages. This ensures that the finalizer body will not end up
8075 inside the freeze node.
8076 (Process_Declarations): Add code to detect whether a freeze node has a
8077 nested finalization collection.
8078
80792011-08-03 Pascal Obry <obry@adacore.com>
8080
8081 * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005.
8082 (Current_Session): Return a not null access to Session_Type.
8083 (Default_Session): Likewise.
8084
243cae0a
AC
80852011-08-03 Robert Dewar <dewar@adacore.com>
8086
8087 * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb,
8088 exp_ch3.adb, exp_ch3.ads: Minor reformatting.
8089
80902011-08-03 Pascal Obry <obry@adacore.com>
8091
8092 * g-awk.ads: Minor comment fix.
8093
80942011-08-03 Sergey Rybin <rybin@adacore.com>
8095
8096 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
8097 the tree structure related to discriminant constraints.
8098 Original_Discriminant cannot be used any more for computing the
8099 defining name for the reference to a discriminant.
8100
81012011-08-03 Ed Schonberg <schonberg@adacore.com>
8102
8103 * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the
8104 function is not visibly tagged, this is not a dispatching call and
8105 therfore is not Tag_Indeterminate, even if the function is marked as
8106 dispatching on result.
8107
f553e7bc
AC
81082011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8109
8110 * exp_ch13.adb: Add with and use clauses for Restrict and Rident.
8111 (Expand_N_Free_Statement): Add a guard to protect against run-times
8112 which do not support controlled types.
8113 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect
8114 against run-times which do not support controlled types.
8115 * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect
8116 against run-times which do not support controlled types.
8117 * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect
8118 against run-times which do not support controlled types.
8119 * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to
8120 protect against run-times which do not support controlled types.
8121
81222011-08-03 Eric Botcazou <ebotcazou@adacore.com>
8123
8124 * exp_intr.adb: Put back with and use clauses for Exp_Ch11.
8125 (Expand_Unc_Deallocation): Expand the AT_END handler at the very end.
8126
e4982b64
AC
81272011-08-03 Ed Schonberg <schonberg@adacore.com>
8128
8129 * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is
8130 modified in the source, to prevent spurious warnings when compiling
8131 with -gnatg.
8132
81332011-08-03 Thomas Quinot <quinot@adacore.com>
8134
8135 * a-except-2005.adb: Minor reformatting.
8136
81372011-08-03 Ed Schonberg <schonberg@adacore.com>
8138
8139 * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit
8140 is a renaming declaration in the private part of a package, do not emit
8141 a warning that the with_clause could be moved because the renaming may
8142 be used in the body or in a child unit.
8143
81442011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8145
8146 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8147 Propagate the Comes_From_Source attribute from the original return
8148 object to the renaming.
8149
81502011-08-03 Jose Ruiz <ruiz@adacore.com>
8151
8152 * exp_ch7.adb (Build_Raise_Statement): Do not call
8153 Raise_From_Controlled_Operation when this routine is not present in
8154 the run-time library.
8155 (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time
8156 libraries (Ravenscar), tasks are non-terminating, and protected objects
8157 and tasks can only appear at library level, so we do not want
8158 finalization of protected objects nor tasks.
8159 * exp_intr.adb: Minor clarification in comment.
8160 bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada,
8161 Gen_Output_File_C): Remove references to finalization of library-level
8162 objects when using restricted run-time libraries.
8163
81642011-08-03 Ed Schonberg <schonberg@adacore.com>
8165
8166 * sem_ch3.adb (Build_Discriminant_Constraints): Set
8167 Original_Discriminant only if the parent type is a generic formal.
8168
deb8dacc
HK
81692011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8170
8171 * exp_ch13.adb: Add with and use clause for Targparm;
8172 (Expand_N_Free_Statement): Prevent the generation of a custom
8173 Deallocate on .NET/JVM targets since this requires pools and address
8174 arithmetic.
8175 * exp_ch4.adb (Expand_Allocator_Expression): When compiling for
8176 .NET/JVM targets, attach the newly allocated object to the access
8177 type's finalization collection. Do not generate a call to
8178 Set_Finalize_Address_Ptr on .NET/JVM because this routine does not
8179 exist in the runtime.
8180 (Expand_N_Allocator): When compiling for .NET/JVM targets, do not
8181 create a custom Allocate for object that do not require initialization.
8182 Attach a newly allocated object to the access type's finalization
8183 collection on .NET/JVM.
8184 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for
8185 assignment of controlled types on .NET/JVM. The two hidden pointers
8186 Prev and Next and stored and later restored after the assignment takes
8187 place.
8188 * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized
8189 kludge for .NET/JVM to recognize a particular piece of code coming from
8190 Heap_Management and change the call to Finalize into Deep_Finalize.
8191 * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of
8192 finalization collections on .NET/JVM only for types derived from
8193 Controlled. Separate the association of storage pools with a collection
8194 and only allow it on non-.NET/JVM targets.
8195 (Make_Attach_Call): New routine.
8196 (Make_Detach_Call): New routine.
8197 (Process_Object_Declarations): Suppress the generation of
8198 build-in-place return object clean up code on .NET/JVM since it uses
8199 pools.
8200 * exp_ch7.ads (Make_Attach_Call): New routine.
8201 (Make_Detach_Call): New routine.
8202 * exp_intr.adb Add with and use clause for Targparm.
8203 (Expand_Unc_Deallocation): Detach a controlled object from a collection
8204 on .NET/JVM targets.
8205 * rtsfind.ads: Add entries RE_Attach, RE_Detach and
8206 RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table.
8207 * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special
8208 names used in finalization.
8209
82102011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8211
8212 * a-fihema.adb: Add with and use clauses for System.Soft_Links.
8213 (Attach, Detach): Lock the current task when chaining an object onto a
8214 collection.
8215
df3e68b1
HK
82162011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8217
8218 * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation):
8219 Rewritten to create the message strings when the exception is not
8220 raised by an abort during finalization.
8221 * a-except.ads, a-except-2005.ads: Add pragma Export for procedure
8222 Raise_From_Controlled_Operation and update its associated comment.
8223 * a-fihema.ads, a-fihema.adb: New GNAT unit.
8224 Ada.Finalization.Heap_Management provides key functionality
8225 associated with controlled objects on the heap, their creation,
8226 finalization and reclamation. Type Finalization_Collection is
8227 effectively a wrapper which sits ontop of a storage pool and performs
8228 all necessary bookkeeping for all the objects it contains. Each
8229 access-to-controlled or access-to-class-wide type receives a collection
8230 as part of its expansion. The compiler generates buffer code and
8231 invokes Allocate / Deallocate to create and destroy allocated
8232 controlled objects.
8233 * a-finali.adb ("="): Removed.
8234 * a-finali.ads ("="): Removed. Controlled types no longer carry hidden
8235 fields Prev and Next.
8236 * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer.
8237 A library unit with at least one controlled object on the library level
8238 has a special finalizer which is invoked by the binder. To signal this,
8239 ali files carry field PF.
8240 * ali.ads: New field in type Unit_Record called Has_Finalizer. Add
8241 associated comment on field usage.
8242 * a-tags.adb (Get_RC_Offset): Removed.
8243 (Needs_Finalization): New routine.
8244 * a-tags.ads: Update the structure of the GNAT dispatch tables.
8245 Dispatch tables now carry field Needs_Finalization which provides
8246 runtime indication whether a type is controlled or has controlled
8247 components or both. Remove field RC_Offset.
8248 (Get_RC_Offset): Removed along with its associated pragma Export.
8249 Since tagged types with controlled components no longer carry hidden
8250 field _controller, the special mechanism to retrieve its location is no
8251 longer needed.
8252 (Needs_Finalization): New routine.
8253 * atree.ads, atree.adb (Elist24): New routine.
8254 (Set_Elist24): New routine.
8255 * atree.h: Add a define clause for Elist24.
8256 * bindgen.adb New library-level variable Lib_Final_Built.
8257 (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the
8258 presence of a VM target, the routine generates calls to the proper
8259 library finalization routine.
8260 (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM
8261 targets. Set the correct library finalization routine depending on
8262 whether the library has controlled objects or this is a VM compilation.
8263 (Gen_Finalize_Library_Ada): New routine. This procedure generates calls
8264 to library-level finalizers of compiled units in reverse order of
8265 elaboration. It also produces exception management code and reraises a
8266 potential exception after all units have been finalized.
8267 (Gen_Finalize_Library_C): New routine. This procedure generates calls to
8268 library-level finalizers of compiled units in reverse order of
8269 elaboration.
8270 (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the
8271 definitions of all library-level finalizers available to the compilation
8272 (Gen_Main_Ada): Directly call Adafinal which now contails all target
8273 dependent code.
8274 (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call
8275 System.Standard_Library.Adafinal directly. If the library needs
8276 finalization actions, create the sequence of finalization calls.
8277 (Gen_Output_File_Ada): Alphabetize local variables and constants.
8278 Generate a with clause for System.Soft_Links when compiling for a VM.
8279 Remove the code which imports System.Standard_Library.Adafinal as
8280 Do_Finalize. Generate the library finalization routine.
8281 (Gen_Output_File_C): Add new local constant Needs_Library_Finalization.
8282 If the library needs finalization actions, create all the definitions
8283 of library- level finalizers.
8284 (Has_Finalizer): New routine. Determines whether at least one compiled
8285 unit has a library-level finalizer.
8286 Add type Qualification_Mode.
8287 (Set_Unit_Name): Add a formal which controls the replacement of a dot.
8288 * einfo.adb: New usage of field 15 as Return_Flag.
8289 Remove Finalization_Chain_Entity from the usages of field 19.
8290 Remove Associated_Final_Chain from the usages of field 23.
8291 New usage of field 23 as Associated_Collection.
8292 New usage of field 24 as Finalizer.
8293 New usage of flag 252 as Is_Processed_Transient.
8294 (Associated_Final_Chain): Removed.
8295 (Associated_Collection): New routine.
8296 (Finalization_Chain_Entity): Removed.
8297 (Finalizer): New routine.
8298 (Is_Finalizer): New routine.
8299 (Is_Processed_Transient): New routine.
8300 (Return_Flag): New routine.
8301 (Set_Associated_Final_Chain): Removed.
8302 (Set_Associated_Collection): New routine.
8303 (Set_Finalization_Chain_Entity): Removed.
8304 (Set_Finalizer): New routine.
8305 (Set_Is_Processed_Transient): New routine.
8306 (Set_Return_Flag): New routine.
8307 (Write_Entity_Flags): Include Is_Processed_Transient to the list of
8308 displayed flags.
8309 (Write_Field8_Name): Alphabetize the output.
8310 (Write_Field11_Name): Alphabetize the output.
8311 (Write_Field12_Name): Alphabetize the output.
8312 (Write_Field13_Name): Alphabetize the output.
8313 (Write_Field14_Name): Alphabetize the output.
8314 (Write_Field15_Name): Alphabetize the output.
8315 (Write_Field16_Name): Alphabetize the output.
8316 (Write_Field17_Name): Alphabetize the output.
8317 (Write_Field18_Name): Alphabetize the output.
8318 (Write_Field19_Name): Alphabetize the output. Remove the output of
8319 Finalization_Chain_Entity.
8320 (Write_Field20_Name): Alphabetize the output.
8321 (Write_Field21_Name): Alphabetize the output.
8322 (Write_Field22_Name): Alphabetize the output.
8323 (Write_Field23_Name): Alphabetize the output. Remove the output of
8324 Associated_Final_Chain. Add output for Associated_Collection.
8325 (Write_Field24_Name): Alphabetize the output.
8326 (Write_Field25_Name): Add output for Finalizer.
8327 (Write_Field26_Name): Alphabetize the output.
8328 (Write_Field27_Name): Alphabetize the output.
8329 (Write_Field28_Name): Alphabetize the output.
8330 * einfo.ads: Add new field description for Associated_Collection and
8331 its uses in nodes.
8332 Remove Associated_Final_Chain and its uses in nodes.
8333 Remove Finalization_Chain_Entity and its uses in nodes.
8334 Add new field description for Finalizer and its uses in nodes.
8335 Add new synthesized attribute Is_Finalizer.
8336 Add new flag description for Is_Processed_Transient and its uses in
8337 nodes.
8338 Add new field description for Return_Flag and its uses in nodes.
8339 (Associated_Final_Chain): Removed along with its pragma Inline.
8340 (Associated_Collection): New routine and pragma Inline.
8341 (Finalization_Chain_Entity): Removed along with its pragma Inline.
8342 (Finalizer): New routine and pragma Inline.
8343 (Is_Finalizer): New routine and pragma Inline.
8344 (Is_Processed_Transient): New routine and pragma Inline.
8345 (Return_Flag): New routine and pragma Inline.
8346 (Set_Associated_Final_Chain): Removed along with its pragma Inline.
8347 (Set_Associated_Collection): New routine and pragma Inline.
8348 (Set_Finalization_Chain_Entity): Removed along with its pragma Inline.
8349 (Set_Finalizer): New routine and pragma Inline.
8350 (Set_Is_Processed_Transient): New routine and pragma Inline.
8351 (Set_Return_Flag): New routine and pragma Inline.
8352 * exp_aggr.adb: Alphabetize subprograms.
8353 (Build_Array_Aggr_Code): Remove formal Flist and its associated comment.
8354 (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their
8355 associated comments. Remove local variables External_Final_List and
8356 Attach.
8357 Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to
8358 Ancestor. Remove the retrieval of finalization lists. Update the call to
8359 Make_Adjust_Call.
8360 (Convert_Aggr_In_Allocator): Remove the retrieval of finalization
8361 lists. Update the call to Late_Expansion.
8362 (Convert_Aggr_In_Assignment): Update the call to Late_Expansion.
8363 (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion.
8364 (Gen_Assign): Remove the retrieval of the finalization list used to
8365 build the assignment. Update the calls to Make_Init_Call and
8366 Make_Adjust_Call.
8367 (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions.
8368 Remove the mechanism to determine attachment levels and finalization
8369 list retrieval. Remove the processing for coextensions.
8370 (Init_Controller): Removed. Controllers no longer exist.
8371 (Late_Expansion): Remove formals Flist and Obj along with their
8372 associated comments. Update the calls to Build_Record_Aggr_Code and
8373 Build_Array_Aggr_Code.
8374 * exp_ch13.adb (Expand_N_Free_Statement): New routine.
8375 (Expand_N_Freeze_Entity): Add special processing for finalizers which
8376 appear in entry bodies, protected subprograms and task bodies.
8377 * exp_ch13.ads (Expand_N_Free_Statement): New routine.
8378 * exp_ch3.adb (Add_Final_Chain): Removed.
8379 (Build_Array_Init_Proc): Alphabetize local variables.
8380 (Build_Assignment): Alphabetize local variables. Update the call to
8381 Maked_Adjust_Call.
8382 (Build_Class_Wide_Master): Rename local variables to better reflect
8383 their role.
8384 (Build_Discriminant_Assignments): Code reformatting.
8385 (Build_Init_Call_Thru): Code reformatting.
8386 (Build_Init_Procedure): Code reformatting. Generate a special version
8387 of Deep_Finalize which is capable of finalizing all initialized
8388 components and ignore the rest.
8389 (Build_Init_Statements): Rename local variables to better reflect their
8390 role.
8391 Reimplement the mechanism to include the creation and update of an index
8392 variable called a "counter". It is used as a bookmark for tracing
8393 initialized and non-initialized components.
8394 (Build_Initialization_Call): Remove local variable Controller_Typ.
8395 Alphabetize all local variables. Remove the initialization of the
8396 record controller and update the call to Make_Init_Call.
8397 (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent.
8398 New local variable Counter.
8399 (Constrain_Array): Alphabetize.
8400 (Expand_Freeze_Array_Type): Create a collection instead of a
8401 finalization list.
8402 (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive
8403 Finalize_Address which is used in conjunction with allocated controlled
8404 objects.
8405 (Expand_N_Object_Declaration): Remove the creation of a finalization
8406 list for anonymous access types. Update the calls to Make_Init_Call and
8407 Make_Adjust_Call.
8408 (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the
8409 retrieval of finalization lists. Remove the expansion of the record
8410 controller. Create TSS primitive Finalize_Address used in conjunction
8411 with controlled objects on the heap. Create finalization collections
8412 for access-to-controlled record components.
8413 (Expand_Record_Controller): Removed.
8414 (Freeze_Type): Remove the freezing of record controllers. Freezing of
8415 class-wide types now requires additional processing. Create
8416 finalization collections for access-to-controlled types.
8417 (Increment_Counter): New routine.
8418 (Make_Counter): New routine.
8419 (Make_Eq_If): Remove the mention of Name_uController.
8420 (Make_Predefined_Primitive_Specs): There is no longer need to skip
8421 types coming from System.Finalization_Root.
8422 (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles.
8423 (Predefined_Primitive_Bodies): There is no longer need to skip types
8424 coming from System.Finalization_Root.
8425 (Stream_Operation_OK): Do not generate stream routines for
8426 type Ada.Finalization.Heap_Management.Finalization_Collection.
8427 * exp_ch3.ads: Alphabetize subprograms.
8428 * exp_ch4.adb: Remove with and use clause for Sem_Ch8.
8429 Add with and use clause for Lib.
8430 (Complete_Coextension_Finalization): Removed.
8431 (Complete_Controlled_Allocation): New routine. Create a finalization
8432 collection for anonymous access-to-controlled types. Create a custom
8433 Allocate which interfaces with the back end and the machinery in
8434 Heap_Management.
8435 (Expand_Allocator_Expression): Add necessary calls to
8436 Complete_Controlled_Allocation. Remove the retrieval of finalization
8437 lists. Update the calls to Make_Adjust_Call. Generate a call to
8438 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
8439 the associated collection.
8440 (Expand_N_Allocator): Remove the processing for dynamic coextensions.
8441 Code clean up. Remove the retrieval of finalization lists and
8442 attachment levels.
8443 Update the call to Make_Init_Call. Generate a call to
8444 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
8445 the associated collection.
8446 (Get_Allocator_Final_List): Removed. Finalization lists are not
8447 available.
8448 (Suitable_Element): Remove the mention of Name_uController.
8449 * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp.
8450 (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of
8451 the left hand side, carry out the assignment and adjust the left hand
8452 side.
8453 * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed.
8454 (Add_Collection_Actual_To_Build_In_Place_Call): New routine.
8455 (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to
8456 BIP_Collection and BIPcollection.
8457 (Build_Heap_Allocator): New routine used to allocate the return object
8458 of a build-in-place function onto a collection.
8459 (Expand_Ctrl_Function_Call): Moved from Exp_Ch7.
8460 (Expand_Call): Do not replace direct calls to Deep routines with their
8461 aliases.
8462 (Expand_N_Extended_Return_Statement): Give all variables shorter names
8463 and update their occurrences. Add a special return flag to monitor the
8464 [ab]normal execution of the function. The flag is set right before the
8465 return statement.
8466 Rewrite the mechanism used to allocate a build-in-place return object
8467 on the heap or on a storage pool.
8468 (Is_Direct_Deep_Call): New routine.
8469 (Make_Build_In_Place_Call_In_Allocator): Add a collection to a
8470 build-in-place function call instead of a final list. Build a call to
8471 Set_Finalize_Address_Ptr to decorate the associated collection.
8472 (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in
8473 order to name the build-in-place function call's result for later
8474 finalization. Add a collection to a build-in-place function call
8475 instead of a final list.
8476 (Make_Build_In_Place_Call_In_Assignment): Add a collection to a
8477 build-in-place function call instead of a final list. Remove the code
8478 which moves one final list and transforms it into the actual in a
8479 nested build-in-place call.
8480 (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a
8481 build-in-place function call instead of a final list.
8482 (Move_Final_List): Removed.
8483 (Needs_BIP_Collection): New routine.
8484 (Needs_BIP_Final_List): Removed.
8485 * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in
8486 enumeration type BIP_Formal_Kind.
8487 Update the related comment.
8488 (Needs_BIP_Collection): New routine.
8489 (Needs_BIP_Final_List): Removed.
8490 * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt
8491 and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the
8492 majority of subprograms in this unit. Add Name_Finalize_Address to
8493 array Name_Of and TSS_Finalize_Address to array Deep_Name_Of.
8494 (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization
8495 statements for an array type.
8496 (Build_Adjust_Statements): Create the adjust statements for a record
8497 type.
8498 (Build_Cleanup_Statements): New routine. A procedure which given any
8499 construct containing asynchronous calls, references to _master, or is a
8500 task body, a task allocation or a protected body produces the necessary
8501 runtime calls to clean up these constructs.
8502 (Build_Exception_Handler): New routine.
8503 (Build_Final_List): Removed.
8504 (Build_Finalization_Collection): New routine. A core procedure which
8505 creates a collection to service heap allocated controlled objects
8506 associated with an access-to-controlled type.
8507 (Build_Finalize_Statements): Create the finalization statements for a
8508 record types.
8509 (Build_Finalizer): New routine. A core procedure which given any
8510 construct with declarations and/or statements detects all objects which
8511 need any type of clean up (controlled objects, protected objects) and
8512 generates all necessary code to clean up the said objects in the proper
8513 order.
8514 (Build_Finalizer_Call): New routine.
8515 (Build_Initialize_Statements): Create the initialization statements for
8516 an array type. The generated routine contains code to finalize partially
8517 initialized arrays.
8518 (Build_Object_Declarations): New routine.
8519 (Build_Raise_Statement): New routine.
8520 (Clean_Simple_Protected_Objects): Removed.
8521 (Controller_Component): Removed.
8522 (Enclosing_Function): New routine.
8523 (Expand_Cleanup_Actions): Create a finalizer for a construct which has
8524 either declarations or statements or both.
8525 (Expand_N_Package_Body): Create a finalizer for a non-generic package.
8526 (Expand_N_Package_Declaration): Create a finalizer for a non-generic
8527 package.
8528 (Find_Final_List): Removed.
8529 (Global_Flist_Ref): Removed.
8530 (In_Finalization_Root): Removed.
8531 (Insert_Actions_In_Scope_Around): Determine the range of the transient
8532 scope in terms of tree nodes. Process all transient variables within
8533 that range.
8534 (Make_Adjust_Call): Rewritten. There is no longer an attach call
8535 generated after the adjust.
8536 (Make_Attach_Call): Removed.
8537 (Make_Call): New routine.
8538 (Make_Clean): Removed.
8539 (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate
8540 build routines.
8541 (Make_Deep_Proc): Rewritten to generate the new profile signature used
8542 in Deep routines.
8543 (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate
8544 build routines.
8545 (Make_Final_Call): Modified to simply create a call to either
8546 Deep_Finalize or Finalize.
8547 (Make_Finalize_Address_Body): New routine.
8548 (Make_Finalize_Address_Stmts): New routine. A function which produces
8549 TSS primitive Finalize_Address used in conjunction with heap allocated
8550 controlled objects.
8551 (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM.
8552 (Make_Init_Call): Rewritten. There is no longer an attach call
8553 generated after initialization.
8554 (Make_Local_Deep_Finalize): New routine.
8555 (Make_Set_Finalize_Address_Ptr_Call): New routine.
8556 (Make_Transient_Block): Remove the finalization list retrieval and
8557 manipulation.
8558 (Needs_Finalization): Moved to Exp_Util.
8559 (Parent_Field_Type): New routine.
8560 (Preprocess_Components): New routine.
8561 (Process_Transient_Objects): New routine.
8562 (Wrap_HSS_In_Block): New routine.
8563 (Wrap_Transient_Declaration): Remove finalization list management and
8564 controller insertion.
8565 (Wrap_Transient_Expression): Code reformatting.
8566 (Wrap_Transient_Statement): Code reformatting.
8567 * exp_ch7.ads (Build_Final_List): Removed.
8568 (Build_Finalization_Collection): New routine.
8569 (Build_Raise_Statement): New routine.
8570 (Controller_Component): Removed.
8571 (Expand_Ctrl_Function_Call): Moved to Exp_Ch6.
8572 (Find_Final_List): Removed.
8573 (In_Finalization_Root): Removed.
8574 (Is_Simple_Protected_Type): Update related comment.
8575 (Make_Adjust_Call): New parameter profile and associated comments.
8576 (Make_Attach_Call): Removed.
8577 (Make_Final_Call): New parameter profile and associated comments.
8578 (Make_Finalize_Address_Body): New routine.
8579 (Make_Init_Call): New parameter profile and associated comments.
8580 (Make_Local_Deep_Finalize): New routine.
8581 (Make_Set_Finalize_Address_Ptr_Call): New routine.
8582 (Needs_Finalization): Moved to Exp_Util.
8583 * exp_ch9.adb (Add_Object_Pointer): Code reformatting.
8584 (Expand_N_Protected_Body): Remove the handling of finalization lists.
8585 (Find_Protection_Type): Moved to Exp_Util.
8586 * exp_disp.adb: Remove with and use clauses for Exp_Ch7.
8587 (Make_DT): Update sequence of dispatch table initialization. Remove the
8588 initialization of field RC_Offset. Add initialization of field Needs_
8589 Finalization.
8590 * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting.
8591 Reimplement how an object is first finalized, then deallocated.
8592 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
8593 Code reformatting.
8594 * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address.
8595 Register TSS_Finalize_Address with type TSS_Names.
8596 * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core
8597 procedure provides the interface between an allocation / deallocation
8598 and the support machinery in Ada.Finalization.Heap_Management.
8599 (Find_Init_Call): Code reformatting.
8600 (Find_Init_Call_In_List): Code reformatting.
8601 (Find_Protection_Type): Moved from Exp_Ch9.
8602 (Find_Prim_Op): Reimplement to add preference of recovered primitive.
8603 (Has_Controlled_Coextensions): Removed.
8604 (Has_Controlled_Objects): New routine.
8605 (In_Library_Level_Package_Body): New routine.
8606 (Insert_Action_After): New routine.
8607 (Is_Finalizable_Transient): New routine. This predicate determines
8608 whether an object declaration is one of the many variants of controlled
8609 transients.
8610 (Is_Null_Access_BIP_Func_Call): New routine.
8611 (Is_Non_BIP_Func_Call): New routine.
8612 (Is_Related_To_Func_Return): New routine.
8613 (Needs_Finalization): Moved from Exp_Ch7.
8614 * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine.
8615 (Find_Protection_Type): Moved from Exp_Ch9.
8616 (Has_Controlled_Coextensions): Removed.
8617 (Has_Controlled_Objects): New routine.
8618 (In_Library_Level_Package_Body): New routine.
8619 (Insert_Action_After): New routine.
8620 (Is_Finalizable_Transient): New routine.
8621 (Is_Null_Access_BIP_Func_Call): New routine.
8622 (Is_Non_BIP_Func_Call): New routine.
8623 (Is_Related_To_Func_Return): New routine.
8624 (Needs_Finalization): Moved from Exp_ch7.
8625 * expander.adb (Expand): Add a case for N_Free_Statement.
8626 * freeze.adb (Freeze_All): Replace the generation of a finalization
8627 list with a collection for access-to-controlled types.
8628 (Freeze_Entity): Code reformatting.
8629 (Freeze_Record_Type): Remove the freezing of a record controller
8630 component.
8631 (Freeze_Subprogram): Code reformatting.
8632 * inline.adb (Cleanup_Scopes): Remove the reset of the scope
8633 finalization list.
8634 * lib-writ.adb (Write_Unit_Information): Output "PF" when a package
8635 has a library-level finalizer.
8636 * lib-writ.ads: Add "PF" to the sequence of unit attributes.
8637 * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed.
8638 * Makefile.rtl: Remove a-filico and s-finimp from the list of object
8639 files. Add a-fihema to the list of object files.
8640 * par-ch4.adb:
8641 Alphabetize the associations in type Is_Parameterless_Attribute.
8642 * rtsfind.ads: Ada.Finalization_List.Controller and
8643 System.Finalization_Implementation are no longer a GNAT unit.
8644 Update the range of type Ada_Finalization_Child. Remove the following
8645 recoverable entities:
2c7f9cc0 8646
df3e68b1
HK
8647 RE_Attach_To_Final_List
8648 RE_Deep_Tag_Attach
8649 RE_Finalize_List
8650 RE_Finalize_One
8651 RE_Finalizable_Ptr_Ptr
8652 RE_Global_Final_List
8653 RE_Limited_Record_Controller
8654 RE_List_Controller
8655 RE_Move_Final_List
8656 RE_Record_Controller
8657 RE_Simple_List_Controller
2c7f9cc0 8658
df3e68b1 8659 Add the following recoverable entities:
2c7f9cc0 8660
df3e68b1
HK
8661 RE_Add_Offset_To_Address
8662 RE_Allocate
8663 RE_Base_Pool
8664 RE_Deallocate
8665 RE_Exception_Identity
8666 RE_Finalization_Collection
8667 RE_Finalization_Collection_Ptr
8668 RE_Needs_Finalization
8669 RE_Save_Library_Occurrence
8670 RE_Set_Finalize_Address_Ptr
8671 RE_Set_Storage_Pool_Ptr
8672 RE_Storage_Count
8673 * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of
8674 Name_uController.
8675 * sem_aux.adb (First_Discriminant): Remove mention of Name_uController.
8676 (First_Stored_Discriminant): Remove the mention of Name_uController.
8677 * sem_aux.ads: Comment reformatting.
8678 * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery
8679 to redecorate an already existing class-wide type.
8680 (Decorate_Tagged_Type): New parameter profile and associated comment.
8681 Create a "shadow class-wide type" for a shadow entity.
8682 * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting
8683 of the final chain along with the associated comment.
8684 * sem_ch3.adb (Access_Type_Declaration): Add new local variable
8685 Full_Desig and set it to the full view of the designated type.
8686 Initialize the finalization collection to empty.
8687 (Build_Derived_Record_Type): Alphabetize local variables. Code
8688 reformatting.
8689 (Collect_Fixed_Components): Remove the mention of Name_uController.
8690 (Create_Constrained_Components): Remove the mention of Name_uController.
8691 (Make_Class_Wide_Type): Add specialized code to redecorate an existing
8692 class-wide type of a shadow entity.
8693 (Process_Full_View): Update the machinery which marks type
8694 Limited_Controlled's entity as limited.
8695 * sem_ch4.adb (Analyze_One_Call): Code reformatting.
8696 * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization
8697 list, instead make a collection build-in-place formal.
8698 * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of
8699 a designated type in order to establish a match between the renaming
8700 and the renamed entity.
8701 (Find_Selected_Component): Add guard to prevent spurious exceptions
8702 from being raised on .NET/JVM.
8703 * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address
8704 to the list of primitive that need special processing. Update arrays
8705 C_Names and D_Names.
8706 (Replace_Types): Handle class-wide types.
8707 * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a
8708 different parameter profile, look at the first formal.
8709 * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and
8710 use clauses for Exp_Util.
8711 * sem_res.adb: Remove with and use clauses for Elists.
8712 (Propagate_Coextensions): Removed.
8713 (Resolve_Allocator): Do not propagate the list of coextensions from one
8714 allocator to another.
8715 * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable
8716 Deaccessed_T to Desig_Typ.
8717 (Enter_Name): Remove the mention of Name_uController.
8718 (Gather_Components): Remove the mention of Name_uController.
8719 (Incomplete_Or_Private_View): New routine.
8720 (Is_Coextension_Root): Removed.
8721 (Is_Fully_Initialized_Type): Remove the mention of Name_uController.
8722 * sem_util.ads (Incomplete_Or_Private_View): New routine.
8723 (Is_Coextension_Root): Removed.
8724 * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion.
8725 Controlled types are now derived from a null tagged record. Remove
8726 types Finalizable_Ptr, Finalizable and Empty_Root_Controlled.
8727 * sinfo.adb (Coextensions): Removed.
8728 (Set_Coextensions): Removed.
8729 * sinfo.ads: Remove Coextensions from the explanation of node fields
8730 and its uses in nodes.
8731 Update the field usage of N_Allocator.
8732 (Coextensions): Removed along with its pragma Inline.
8733 (Set_Coextensions): Removed along with its pragma Inline.
8734 * snames.ads-tmpl: Remove names
2c7f9cc0 8735
df3e68b1
HK
8736 Name_uClean
8737 Name_uController
8738 Name_uFinal_List
8739 Name_uLocal_Final_List
8740 Name_Finalization_Root
8741 Name_Next
8742 Name_Prev
2c7f9cc0 8743
df3e68b1 8744 Add names
2c7f9cc0 8745
df3e68b1
HK
8746 Name_uFinalizer
8747 Name_Finalize_Address
8748 * s-pooglo.adb (Allocate): Add overriding indicator.
8749 (Deallocate): Add overriding indicator.
8750 (Storage_Size): Add overriding indicator.
8751 * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather
8752 than Finalize_Global_List.
8753 (Null_Finalize_Global_List): Removed.
8754 (Save_Library_Occurrence): New routine.
8755 * s-soflin.ads: Remove variable Finalize_Global_List along with its
8756 initialization. Add variable Finalize_Library_Objects along with its
8757 pragma Export. Add variables Library_Exception and
8758 Library_Exception_Set along with their pragma Export.
8759 (Null_Finalize_Global_List): Removed.
8760 (Save_Library_Occurrence): New routine.
8761 * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects
8762 rather than Finalize_Global_List.
8763 * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field
8764 of the constructed node.
8765
2ee06322
RO
87662011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8767
8768 * link.c: Include "auto-host.h" before system headers.
8769
f77b022b
VC
87702011-08-03 Vincent Celier <celier@adacore.com>
8771
8772 * make.adb (Gnatmake): Add to table Library_Projs only library projects
8773 that are not extended. Do not check if a library project that is
8774 extended should be regenerated. Do not add to table Library_Paths the
8775 libraries that are in extended projects. Link only with libraries that
8776 are in libray projects that are not extended.
8777 * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library
8778 for a library project that is extended.
8779
0187b60e
AC
87802011-08-03 Gary Dismukes <dismukes@adacore.com>
8781
8782 * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip
8783 conforming subprogram renamings that appear to be completions if they
8784 are not fully conformant.
8785 Such renamings are homographs but not completions.
8786 * sem_type.adb (Disambiguate): Handle disambiguation of overloaded
8787 names in a subprogram renaming that appears in an instance.
8788
87892011-08-03 Ed Schonberg <schonberg@adacore.com>
8790
8791 * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but
8792 not immutably limited, build actual subtype from expression to provide
8793 proper bounds to caller.
8794
87952011-08-03 Gary Dismukes <dismukes@adacore.com>
8796
8797 * sem_ch8.adb: Minor comment correction.
8798
87992011-08-03 Thomas Quinot <quinot@adacore.com>
8800
8801 * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when
8802 returning a limited array, use an extended return statement.
8803
88042011-08-03 Vincent Celier <celier@adacore.com>
8805
8806 * make.adb (Initialize): If --subdirs= is used, but no project file is
8807 specified, attempt to create the specify subdir if it does not already
8808 exist and use it as the object directory as if -D had been specified.
8809
88102011-08-03 Arnaud Charlet <charlet@adacore.com>
8811
8812 * s-tpopsp-vms.adb: New file.
8813 * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS.
8814 * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS.
8815
e280f981
AC
88162011-08-03 Emmanuel Briot <briot@adacore.com>
8817
8818 * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new
8819 package.
8820
88212011-08-03 Yannick Moy <moy@adacore.com>
8822
8823 * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type
8824 * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA
8825 * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to
8826 detect that an array has static bounds.
8827
98c99a5a
AC
88282011-08-03 Thomas Quinot <quinot@adacore.com>
8829
8830 * exp_dist.adb: Minor reformatting.
8831
88322011-08-03 Arnaud Charlet <charlet@adacore.com>
8833
8834 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb
8835 (ATCB_Key): Removed, not always used.
8836
88372011-08-03 Emmanuel Briot <briot@adacore.com>
8838
8839 * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads,
8840 clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove
8841 most remaining global variables.
8842
686d0984
AC
88432011-08-03 Robert Dewar <dewar@adacore.com>
8844
8845 * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads,
8846 prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor
8847 reformatting.
8848
88492011-08-03 Javier Miranda <miranda@adacore.com>
8850
8851 * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals
8852 that must be passed by copy in VM targets.
8853
88542011-08-03 Emmanuel Briot <briot@adacore.com>
8855
8856 * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which
8857 duplicates a similar htable now in the project tree.
8858
88592011-08-03 Claire Dross <dross@adacore.com>
8860
8861 * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
8862 a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element,
8863 Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend,
8864 Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap,
8865 Splice, First, First_Element, Last, Last_Element, Next, Previous, Find,
8866 Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity,
8867 Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure
8868 update.
8869
88702011-08-03 Arnaud Charlet <charlet@adacore.com>
8871
8872 * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb
8873 (ATCB_Key): Removed, not always used.
8874 * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from
8875 s-taprop-posix.adb.
8876 * s-tpopsp-tls.adb: New file.
8877 * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on
8878 x86/x64/ia64/powerpc/sparc Linux.
8879
88802011-08-03 Arnaud Charlet <charlet@adacore.com>
8881
8882 * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True.
8883 * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports.
8884
88852011-08-03 Thomas Quinot <quinot@adacore.com>
8886
8887 * rtsfind.ads, exp_dist.adb, exp_dist.ads
8888 (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call):
8889 Fix type selection for mapping integer types to PolyORB types.
8890
88912011-08-03 Bob Duff <duff@adacore.com>
8892
8893 * sem_ch7.adb: Minor comment clarification.
8894
88952011-08-03 Bob Duff <duff@adacore.com>
8896
8897 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get
8898 an error analyzing a choice, skip further processing. Further
8899 processing could cause a crash or cascade errors.
8900
40ecf2f5
EB
89012011-08-03 Emmanuel Briot <briot@adacore.com>
8902
8903 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
8904 prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
8905 prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
8906 prj-env.ads (Shared_Project_Tree_Data): new type
8907 An aggregate project and its aggregated trees need to share the common
8908 data structures used for lists of strings, packages,... This makes the
8909 code simpler since otherwise we have to pass the root tree (also used
8910 for the configuration file data) in addition to the current project
8911 tree. This also avoids ambiguities as to which tree should be used.
8912 And finally this saves a bit of memory.
8913 (For_Every_Project_Imported): new parameter Tree.
8914 Since aggregated projects are using a different tree, we need to let
8915 the caller know which tree to use to manipulate the returned project.
8916
9fde638d
RD
89172011-08-03 Robert Dewar <dewar@adacore.com>
8918
8919 * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb,
8920 prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads,
8921 lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb,
8922 prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting.
8923
95eb8b69
AC
89242011-08-03 Javier Miranda <miranda@adacore.com>
8925
8926 * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads:
8927 Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util.
8928
89292011-08-03 Bob Duff <duff@adacore.com>
8930
8931 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on
8932 the Base_Type.
8933
89342011-08-03 Joel Brobecker <brobecker@adacore.com brobecker>
8935
8936 * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads,
8937 g-sehash.ads: Fix typo. Update header.
8938
89392011-08-03 Thomas Quinot <quinot@adacore.com>
8940
8941 * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place
8942 expansion.
8943
89442011-08-03 Gary Dismukes <dismukes@adacore.com>
8945
8946 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider
8947 prefixes of private types along with records, since the selector may be
8948 a discriminant.
8949 * sem_res.adb (Resolve_Selected_Component): Consider prefixes of
8950 private types along with records, since the selector may be a
8951 discriminant.
8952
92e77027
AC
89532011-08-03 Emmanuel Briot <briot@adacore.com>
8954
b2f7ebc1 8955 * prj-pp.adb (Pretty_Print): Remove trailing blank line.
92e77027
AC
8956
89572011-08-03 Javier Miranda <miranda@adacore.com>
8958
8959 * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of
8960 Tagged_Type_Expansion.
8961
89622011-08-03 Yannick Moy <moy@adacore.com>
8963
b2f7ebc1
GP
8964 * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK
8965 violation when the argument of concatenation is the name of a
8966 constant.
92e77027 8967
ab29a348
EB
89682011-08-03 Emmanuel Briot <briot@adacore.com>
8969
8970 * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads,
8971 prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms
8972 (Process_Declarative_Items): new parameter Child_Env.
8973
9466892f
AC
89742011-08-03 Yannick Moy <moy@adacore.com>
8975
589ef536
GP
8976 * alfa.ads: Update format of ALFA section in ALI file in order to
8977 add a mapping from bodies to specs when both are present.
8978 (ALFA_Scope_Record): Add components for spec file/scope.
8979 * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when
8980 present.
8981 * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been
8982 collected, fill in the spec information when relevant.
8983 * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when
9466892f
AC
8984 present.
8985
89862011-08-03 Eric Botcazou <ebotcazou@adacore.com>
8987
8988 * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing
8989 code unit to decide whether to add internally generated subprograms.
2c7f9cc0 8990
9466892f
AC
89912011-08-03 Javier Miranda <miranda@adacore.com>
8992
8993 * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram.
589ef536
GP
8994 * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must
8995 be handled by copy in VM targets.
9466892f
AC
8996
89972011-08-03 Emmanuel Briot <briot@adacore.com>
8998
589ef536 8999 * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share
9466892f
AC
9000 code with Makeutl.Get_Switches.
9001 * prj-tree.adb: Update comment.
9002
b5ea9143
AC
90032011-08-03 Thomas Quinot <quinot@adacore.com>
9004
9005 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote
9006 subprogram with a limited formal that does not support external
9007 streaming.
9008
90092011-08-03 Yannick Moy <moy@adacore.com>
9010
9011 * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of
9012 continuation line
9013 * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are
9014 not from current unit in two phases, because it is not possible to
9015 change the table while iterating over its content.
9016 * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity
9017
90182011-08-03 Sergey Rybin <rybin@adacore.com>
9019
9020 * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option
9021 * gnat_ugn.texi: Update description of complexity metrics (gnatmetric)
9022
668a19bc
ES
90232011-08-03 Ed Schonberg <schonberg@adacore.com>
9024
9025 * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate
9026 and the component type is composite, this is ambiguous for predefined
9027 concatenation, but if the node is not overloaded and the entity is a use
9028 -defined function its profile can be used to resolve that aggregate.
9029
170b2989
AC
90302011-08-03 Robert Dewar <dewar@adacore.com>
9031
9032 * exp_ch4.adb: Minor code cleanup.
9033
90342011-08-03 Thomas Quinot <quinot@adacore.com>
9035
9036 * exp_dist.adb: Do not generate distribution stubs if serious errors
9037 have been diagnosed.
9038
90392011-08-03 Ed Schonberg <schonberg@adacore.com>
9040
9041 * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of
9042 the first formal of a primitive operation, go to the base type to
9043 handle properly an access to a derived type with constrained
9044 discriminants.
9045 * sem_type.adb (Disambiguate): an immediately visible operator hides a
9046 user-defined function that is only use-visible.
170b2989 9047
e917aec2
RD
90482011-08-03 Robert Dewar <dewar@adacore.com>
9049
9050 * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb,
9051 make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb,
9052 fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb,
9053 prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads,
9054 sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb,
9055 prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb,
9056 prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads,
9057 alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting
9058
90592011-08-03 Robert Dewar <dewar@adacore.com>
9060
9061 * repinfo.adb (List_Mechanism): Add handling of
9062 Convention_Ada_Pass_By_XXX.
9063 * sem_mech.adb (Set_Mechanism): Ditto.
9064 * sem_prag.adb (Process_Convention): Add entries for
9065 Convention_Ada_Pass_By_XXX.
9066 * snames.adb-tmpl, snames.ads-tmpl: Ditto.
9067
49bfcf43
AC
90682011-08-03 Pascal Obry <obry@adacore.com>
9069
9070 * makeutl.adb: Minor reformatting.
9071
90722011-08-03 Vincent Celier <celier@adacore.com>
9073
9074 * fname-uf.adb
9075 (Get_File_Name) If the file cannot be found when there are no config
9076 pragmas file and May_Fail is True, return No_File instead of the file
9077 name, to be consistent.
9078
90792011-08-03 Pascal Obry <obry@adacore.com>
9080
9081 * adaint.c (__gnat_is_executable_file_attr): Avoid access
9082 to null pointer.
9083
90842011-08-03 Javier Miranda <miranda@adacore.com>
9085
9086 * sem_ch13.adb
9087 (Same_Representation): In VM targets the representation of arrays with
9088 aliased components differs from arrays with non-aliased components.
9089
34798441
EB
90902011-08-03 Emmanuel Briot <briot@adacore.com>
9091
9092 * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do
9093 not systematically lower case attribute indexes that contain no "."
9094 Fix definition of several Naming attributes, which take
9095 a unit name as index and therefore should be case insensitive.
9096 Minor refactoring (reduce length of variable names).
9097
90982011-08-03 Emmanuel Briot <briot@adacore.com>
9099
9100 * makeutl.adb, makeutl.ads (Get_Switches): new subprogram.
9101
4437a530
EB
91022011-08-03 Emmanuel Briot <briot@adacore.com>
9103
9104 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
9105 prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb,
9106 prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
9107 prj-tree.ads (Prj.Tree.Environment): new type.
9108
804fe3c4
EB
91092011-08-03 Emmanuel Briot <briot@adacore.com>
9110
9111 * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb,
9112 prj-tree.adb, prj-tree.ads (Environment): new type.
9113
c565bc66
AC
91142011-08-03 Emmanuel Briot <briot@adacore.com>
9115
9116 * prj-tree.ads: Remove unused variable.
9117
91182011-08-03 Yannick Moy <moy@adacore.com>
9119
9120 * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for
9121 issuing messages related to SPARK restriction violation.
9122
4ee646da
AC
91232011-08-03 Ed Schonberg <schonberg@adacore.com>
9124
9125 * sem_ch6.adb: guard against error nodes in return statements.
9126
91272011-08-03 Arnaud Charlet <charlet@adacore.com>
9128
9129 * errout.adb (Error_Msg_Internal): the main unit has not been read yet,
9130 a warning can only appear on a configuration file, so emit warning
9131 without further checks.
9132
91332011-08-03 Arnaud Charlet <charlet@adacore.com>
9134
9135 * s-interr.ads: add overriding keyword.
9136
91372011-08-03 Geert Bosch <bosch@adacore.com>
9138
9139 * exp_attr.adb: Fix minor typo.
9140
91412011-08-03 Ed Schonberg <schonberg@adacore.com>
9142
9143 * par-ch4.adb: improve error recovery.
9144
c0e538ad
AC
91452011-08-03 Emmanuel Briot <briot@adacore.com>
9146
9147 * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb,
9148 prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize
9149 to Errout_Handling.
9150
91512011-08-03 Emmanuel Briot <briot@adacore.com>
9152
9153 * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use
9154 "external" as an attribute name in aggregate projects.
9155
91562011-08-03 Jose Ruiz <ruiz@adacore.com>
9157
9158 * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU
9159 uses CPU numbers starting 1, while VxWorks uses CPU numbers starting
9160 from 0, so we need to adjust.
9161
91622011-08-03 Emmanuel Briot <briot@adacore.com>
9163
9164 * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb,
9165 prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type.
9166
c4d67e2d
AC
91672011-08-03 Yannick Moy <moy@adacore.com>
9168
9169 * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK
9170 restriction on overloaded entity if the entity is not an operator.
9171
91722011-08-03 Yannick Moy <moy@adacore.com>
9173
9174 * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb,
9175 restrict.ads: Rename remaining Check_Formal_Restriction* into
9176 Check_SPARK_Restriction*.
9177
91782011-08-03 Emmanuel Briot <briot@adacore.com>
9179
9180 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb,
9181 prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its
9182 qualifier.
9183 (Project_Empty): removed
9184 (Empty_Project): new parameter Qualifier
9185 This is used to have fields specific to aggregate projects, cleaner
9186 New field to store the list of aggregated projects.
9187 (Check_Aggregate_Project): removed
9188 (Process_Aggregated_Projects, Free): new subprograms.
9189
3f5a8fee
AC
91902011-08-03 Olivier Hainque <hainque@adacore.com>
9191
9192 * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well.
9193
91942011-08-03 Ed Schonberg <schonberg@adacore.com>
9195
9196 * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an
9197 explicit dereference of an unconstrained type, create a constrained
9198 subtype for it, as is done for function calls that return an
9199 unconstrained type.
9200
92012011-08-03 Thomas Quinot <quinot@adacore.com>
9202
9203 * g-pehage.adb (Finalize): Avoid possible double-free.
9204
92052011-08-03 Steve Baird <baird@adacore.com>
9206
9207 * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand
9208 Elab_Spec/Body attrs in CodePeer_Mode.
9209
92102011-08-03 Javier Miranda <miranda@adacore.com>
9211
9212 * exp_aggr.adb (Flatten): Convert to positional form aggregates whose
9213 low bound is not known at compile time but they have no others choice.
9214 Done because in this case the bounds can be obtained directly from the
9215 aggregate.
9216
92172011-08-03 Ed Falis <falis@adacore.com>
9218
9219 * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs
9220 on VxWorks SMP. Remove unusable constant ANY_CPU.
9221
a96ca600
EB
92222011-08-03 Emmanuel Briot <briot@adacore.com>
9223
9224 * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb,
9225 clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb,
9226 prj-env.ads (Prj.Env.Initialize_Default_Project_Path,
9227 Prj.Env.Initialize_Empty): new subprograms
9228 (Get_Env, Find_Project): remove parameter Target_Name.
9229
3e582869
AC
92302011-08-03 Gary Dismukes <dismukes@adacore.com>
9231
9232 * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal
9233 as a condition for the delayed call to Derived_Subprograms done for the
9234 case of the rewriting of a derived type that constrains the
9235 discriminants of its parent type.
9236 Avoids redundant subprogram derivations for private subtype derivations.
9237
92382011-08-03 Javier Miranda <miranda@adacore.com>
9239
9240 * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of
9241 Build_Record_Aggr_Code.
9242 (Build_Record_Aggr_Code): Add missing support to initialize hidden
9243 discriminants in extension aggregates.
9244
92452011-08-03 Emmanuel Briot <briot@adacore.com>
9246
9247 * prj-pp.adb (Print): also output project qualifiers, since in
9248 particular "aggregate" is mandatory in an aggregate project.
9249
92502011-08-03 Emmanuel Briot <briot@adacore.com>
9251
9252 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb:
9253 (Debug_Output): new function.
9254
56e94186
AC
92552011-08-03 Eric Botcazou <ebotcazou@adacore.com>
9256
9257 * gnat_ugn.texi: Document -Wstack-usage.
9258 * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes.
9259
92602011-08-03 Thomas Quinot <quinot@adacore.com>
9261
9262 * sem_prag.adb Issue an error (not a warning) when a C++ type does not
9263 have keyword LIMITED.
9264
92652011-08-03 Yannick Moy <moy@adacore.com>
9266
9267 * alfa.adb, alfa.ads, alfa_test.adb: New files.
9268 * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA)
9269 (Scan_ALI): do not issue a fatal error if parsing known lines after Xref
9270 section (does not happen in compiler, only if code directly calls
9271 Scan_ALI).
9272 * get_alfa.adb, get_alfa.ads: New files.
9273 * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if
9274 needed.
9275 * lib-xref-alfa.adb: New file.
9276 * lib-xref.adb, lib-xref.ads
9277 (Xref_Entry): redefine information needed in cross-references for ALFA.
9278 Push ALFA treatments in separated local package.
9279 (Enclosing_Subpragram_Or_Package): treat specially subprogram
9280 identifiers. Return entity of package body instead of spec. Return
9281 Empty for a scope with no location.
9282 (Generate_Reference): adapt to new components for ALFA information.
9283 Remove the need for D references on definitions.
9284 (Is_Local_Reference): moved to ALFA local package
9285 (Output_References): extract subfunction as Extract_Source_Name
9286 (Output_Local_References): remove procedure, replaced by filtering of
9287 cross-references in package ALFA and printing in Put_ALFA.
9288 (Write_Entity_Name): remove procedure
9289 * lib.adb, lib.ads (Extract_Source_Name): extract here function to
9290 print exact name of entity as it appears in source file
9291 (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA
9292 * put_alfa.adb, put_alfa.ads: New files.
9293 * xref_lib.adb (Search_Xref): protect read of cross-references against
9294 reading other sections of the ALI file, in gnatxref
9295 (Search): protect read of cross-references against reading other
9296 sections of the ALI file, in gnatfind.
9297 * gcc-interface/Make-lang.in: Update dependencies.
9298
92992011-08-03 Thomas Quinot <quinot@adacore.com>
9300
9301 * sem_ch3.adb: Minor reformatting.
9302
93032011-08-03 Jose Ruiz <ruiz@adacore.com>
9304
9305 * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of
9306 raising an exception.
9307
93082011-08-03 Ed Schonberg <schonberg@adacore.com>
9309
9310 * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer
9311 type, always use 1 as the lower bound or string, even if lower bound of
9312 context is not static, to handle properly null strings in a non-static
9313 context.
9314
93152011-08-03 Bob Duff <duff@adacore.com>
9316
9317 * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is
9318 always legal on the right-hand side of an assignment statement; there
9319 is always an applicable index constraint in this case. Therefore, the
9320 check for Pkind = N_Assignment_Statement is now unconditional -- it
9321 doesn't depend on whether Is_Constrained (Typ).
9322
4317e442
AC
93232011-08-03 Robert Dewar <dewar@adacore.com>
9324
9325 * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting.
9326
93272011-08-03 Ed Schonberg <schonberg@adacore.com>
9328
9329 * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference
9330 for an itype created within a generic unit.
9331
93322011-08-03 Eric Botcazou <ebotcazou@adacore.com>
9333
9334 * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline
9335 suppresses all inlining.
9336
53f29d4f
AC
93372011-08-03 Robert Dewar <dewar@adacore.com>
9338
9339 * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb,
9340 exp_aggr.adb: Minor reformatting.
9341
93422011-08-03 Thomas Quinot <quinot@adacore.com>
9343
9344 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of
9345 tagged assignment when discriminant checks are suppressed. This is
9346 useless and extremely costly in terms of static stack usage.
9347
93482011-08-03 Bob Duff <duff@adacore.com>
9349
9350 * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances
9351 of generics, because this leads to the wrong entity in the wrong scope,
9352 causing (e.g.) pragma Export_Procedure to get an error if the entity is
9353 an instance.
9354 (Process_Interface_Name): Follow Alias for instances of generics, to
9355 correct for the above change.
9356
93572011-08-03 Ed Schonberg <schonberg@adacore.com>
9358
9359 * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value
9360 is an integer literal it is always safe to replace the reference. In
9361 addition, if the reference appears in the generated code for an object
9362 declaration it is necessary to copy because otherwise the reference
9363 might be to the uninitilized value of the discriminant of the object
9364 itself.
9365
93662011-08-03 Pascal Obry <obry@adacore.com>
9367
9368 * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no
9369 ACL used, in this case we want to check for ending .exe, not .exe
9370 anywhere in the path.
9371
93722011-08-03 Sergey Rybin <rybin@adacore.com>
9373
9374 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
9375 the tree structure (semantic decoration of references to record
9376 discriminants).
9377
c0b11850
AC
93782011-08-03 Gary Dismukes <dismukes@adacore.com>
9379
9380 * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete
9381 choices of a named array aggregate, bail out when any choices are
9382 marked as Errors_Posted.
9383
93842011-08-03 Ed Schonberg <schonberg@adacore.com>
9385
9386 * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope
9387 in which entity is frozen, to handle properly loop variables in
9388 iterators.
9389
93902011-08-03 Ed Schonberg <schonberg@adacore.com>
9391
9392 * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the
9393 subtype is not static, compute the upper bound using attributes, to
9394 handle properly index types that are not integer types.
9395
93962011-08-03 Bob Duff <duff@adacore.com>
9397
9398 * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs.
9399 Update copyright notice.
9400
94012011-08-03 Ed Schonberg <schonberg@adacore.com>
9402
9403 * sem_ch3.adb (Build_Discriminant_Constraints): Only use
9404 Original_Discriminant if within an instance.
9405 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
9406
94072011-08-03 Thomas Quinot <quinot@adacore.com>
9408
9409 * einfo.ads: Minor reformatting.
9410
94112011-08-03 Ed Schonberg <schonberg@adacore.com>
9412
9413 * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a
9414 composite type with an unfrozen subcomponent, in the profile of a
9415 primitive operation.
9416
5c34e9cd
AC
94172011-08-03 Robert Dewar <dewar@adacore.com>
9418
9419 * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
9420
94212011-08-03 Ed Schonberg <schonberg@adacore.com>
9422
9423 * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an
9424 unconstrained type with discriminants is initialized with an aggregate,
9425 use the constrained subtype of the aggregate as the type of the object,
9426 because it is immutable, and this allows the back-end to generate no
9427 code for the object declaration.
9428
abcd9db2
AC
94292011-08-03 Robert Dewar <dewar@adacore.com>
9430
9431 * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where
9432 comparison operand is variable, and turns out to be zero or negative.
9433
94342011-08-03 Javier Miranda <miranda@adacore.com>
9435
9436 * exp_intr.adb
9437 (Expand_Dispatching_Constructor_Call): Disable expansion of
9438 code required for native targets. Done to avoid generating
9439 references to unavailable runtime entities in VM targets.
9440 * exp_ch3.adb
9441 (Expand_N_Object_Declaration): Add missing support to handle
9442 the explicit initialization of class-wide interface objects.
9443 Fix documentation.
9444
94452011-08-03 Matthew Heaney <heaney@adacore.com>
9446
7089ef0f
GP
9447 * a-cobove.adb (Merge): Move source onto target, instead of using
9448 Assign.
abcd9db2
AC
9449
94502011-08-03 Matthew Heaney <heaney@adacore.com>
9451
7089ef0f 9452 * a-cbdlli.adb (Splice): Move source items from first to last.
abcd9db2
AC
9453
94542011-08-03 Yannick Moy <moy@adacore.com>
9455
7089ef0f 9456 * sem_util.ads: Add comment.
abcd9db2
AC
9457
94582011-08-03 Javier Miranda <miranda@adacore.com>
9459
9460 * exp_aggr.adb
9461 (Expand_Record_Aggregate): In VM targets disable the expansion into
9462 assignments of aggregates whose type is not known at compile time.
9463
b474d6c3
ES
94642011-08-03 Ed Schonberg <schonberg@adacore.com>
9465
9466 * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for
9467 protected entries and task entries, to build the proper renaming
9468 declaration for entry formals, used in debugging.
9469 * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry
9470 parameters in the same way.
9471
0580d807
AC
94722011-08-02 Robert Dewar <dewar@adacore.com>
9473
9474 * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb,
9475 sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or
9476 code reorganization.
9477
94782011-08-02 Robert Dewar <dewar@adacore.com>
9479
9480 * debug.adb: Debug flag d.P to suppress length comparison optimization
9481 * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize
9482 comparison of Length by comparing First/Last instead.
9483
94842011-08-02 Matthew Heaney <heaney@adacore.com>
9485
9486 * a-cobove.ads: Code clean up.
9487
b191a125
AC
94882011-08-02 Vincent Celier <celier@adacore.com>
9489
9490 * adaint.c (file_names_case_sensitive_cache): New static int.
9491 (__gnat_get_file_names_case_sensitive): Cache the return value in
9492 file_names_case_sensitive_cache at the first invocation, to avoid
9493 multiple calls to getenv.
9494
94952011-08-02 Bob Duff <duff@adacore.com>
9496
9497 * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1.
9498
316a0661
AC
94992011-08-02 Yannick Moy <moy@adacore.com>
9500
9501 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads,
9502 sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb,
9503 sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to
9504 indicate that we are in a precondition or postcondition. This is used in
9505 Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to
9506 decide whether to flag the spec or body of the current subprogram as
9507 not in ALFA.
9508
95092011-08-02 Fabien Chouteau <chouteau@adacore.com>
9510
9511 * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package
9512 list.
9513 * a-extiin.ads: New file.
9514
95152011-08-02 Bob Duff <duff@adacore.com>
9516
9517 * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename
9518 now raises Name_Error instead of Use_Error in certain cases. The other
9519 parts of this AI were already implemented properly.
9520
f9adb9d4
AC
95212011-08-02 Vincent Celier <celier@adacore.com>
9522
9523 * link.c: Only import "auto-host.h" when building the gnattools.
9524
95252011-08-02 Yannick Moy <moy@adacore.com>
9526
9527 * sem_util.adb: Inter-unit inlining does not work for a subprogram
9528 which calls a local subprogram, so extract subprogram
9529 from Mark_Non_ALFA_Subprogram_Body.
9530
95312011-08-02 Javier Miranda <miranda@adacore.com>
9532
9533 * exp_ch9.adb
9534 (Extract_Dispatching_Call): If the type of the dispatching object is an
9535 access type then return an explicit dereference in the Object out-mode
9536 parameter.
9537
95382011-08-02 Gary Dismukes <dismukes@adacore.com>
9539
9540 * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range
9541 compatibility checks for all indexes of an array subtype, not just the
9542 first. Reset Has_Dynamic_Range_Check on the subtype before each
9543 potential check to ensure that Insert_Range_Checks will not elide any
9544 of the dynamic checks.
9545
95462011-08-02 Yannick Moy <moy@adacore.com>
9547
9548 * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize
9549 SPARK restriction at parsing time.
9550 * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE
9551 directive only if the SPARK restriction is set for this unit.
9552
83f33150
YM
95532011-08-02 Yannick Moy <moy@adacore.com>
9554
9555 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
9556 sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
9557 sem_ch11.adb: Protect call to Current_Subprogram which might be costly
9558 when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
9559 Mark_Non_ALFA_Subprogram_Body.
9560 Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
9561 inlined.
9562
7b98672f
YM
95632011-08-02 Yannick Moy <moy@adacore.com>
9564
9565 * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which
9566 might be costly.
9567
052e0603
AC
95682011-08-02 Robert Dewar <dewar@adacore.com>
9569
9570 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
9571 exp_ch3.adb: Minor reformatting.
9572
95732011-08-02 Emmanuel Briot <briot@adacore.com>
9574
9575 * adaint.c (__gnat_locate_exec_on_path): only returns executable
9576 files, not any regular file.
9577 (__gnat_locate_file_with_predicate): new subprogram.
9578
95792011-08-02 Yannick Moy <moy@adacore.com>
9580
9581 * sinfo.adb, sinfo.ads: Restrict the use of flags
9582 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
9583 nodes, plus N_Subtype_Declaration for the 2nd one.
9584
4fbad0ba
AC
95852011-08-02 Sergey Rybin <rybin@adacore.com>
9586
9587 * gnat_rm.texi: Ramification of pragma Eliminate documentation
9588 - fix bugs in the description of Source_Trace;
9589 - get rid of UNIT_NAME;
9590
052e0603
AC
95912011-08-02 Javier Miranda <miranda@adacore.com>
9592
9593 * exp_ch9.adb
9594 (Build_Dispatching_Requeue): Adding support for VM targets
9595 since we cannot directly reference the Tag entity.
9596 * exp_sel.adb (Build_K): Adding support for VM targets.
9597 (Build_S_Assignment): Adding support for VM targets.
9598 * exp_disp.adb
9599 (Default_Prim_Op_Position): In VM targets do not restrict availability
9600 of predefined interface primitives to compiling in Ada 2005 mode.
9601 (Is_Predefined_Interface_Primitive): In VM targets this service is not
9602 restricted to compiling in Ada 2005 mode.
9603 (Make_VM_TSD): Generate code that declares and initializes the OSD
9604 record. Needed to support dispatching calls through synchronized
9605 interfaces.
9606 * exp_ch3.adb
9607 (Make_Predefined_Primitive_Specs): Enable generation of predefined
9608 primitives associated with synchronized interfaces.
9609 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
9610 primitives associated with synchronized interfaces.
9611
96122011-08-02 Yannick Moy <moy@adacore.com>
9613
9614 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
9615 statements hidden in SPARK if preceded by the HIDE directive
9616 (Parse_Exception_Handlers): mark each exception handler in a sequence of
9617 exception handlers as hidden in SPARK if preceded by the HIDE directive
9618 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
9619 if starting with the HIDE directive
9620 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
9621 starting with the HIDE directive; mark the declarations in a private
9622 part as hidden in SPARK if the private part starts with the HIDE
9623 directive
9624 * restrict.adb, restrict.ads
9625 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
9626 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
9627 argument node belongs to a part which is hidden in SPARK
9628 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
9629 parts in SPARK; protect the possibly costly call to
9630 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
9631 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
9632 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
9633 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
9634 Tok_SPARK_Hide.
9635 (Scan): recognize special comment starting with '#' and followed by
9636 SPARK keyword "hide" as a HIDE directive.
9637
96382011-08-02 Yannick Moy <moy@adacore.com>
9639
9640 * types.ads, erroutc.ads: Minor reformatting.
9641
96422011-08-02 Vincent Celier <celier@adacore.com>
9643
9644 * link.c: Add response file support for cross platforms.
9645
96462011-08-02 Ed Schonberg <schonberg@adacore.com>
9647
9648 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
9649 in an association, set parent field of copy before partial analysis.
9650 * sem_res.adb (Resolve_Slice): create reference to itype only when
9651 expansion is enabled.
9652
96532011-08-02 Yannick Moy <moy@adacore.com>
9654
9655 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
9656 for new flag denoting which subprogram bodies are in ALFA
9657 * restrict.adb, sem_ch7.adb: Update comment
9658 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
9659 sem_ch9.adb, sem_res.adb: Add calls to
9660 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
9661 * sem_ch6.adb (Analyze_Function_Return): add calls to
9662 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
9663 middle of the body, and extended return.
9664 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
9665 False when missing return.
9666 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
9667 to True for subprograms whose spec is in ALFA. Remove later on the flag
9668 on the entity used for a subprogram body when there exists a separate
9669 declaration.
9670 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
9671 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
9672 False, otherwise do nothing.
9673
96742011-08-02 Robert Dewar <dewar@adacore.com>
9675
9676 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
9677
96782011-08-02 Yannick Moy <moy@adacore.com>
9679
9680 * sem_ch4.ads: minor formatting.
9681
96822011-08-02 Yannick Moy <moy@adacore.com>
9683
9684 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
9685 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
9686 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
9687 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
9688 opt.ads: cleanup of SPARK mode
9689
96902011-08-02 Yannick Moy <moy@adacore.com>
9691
9692 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
9693 types.
9694 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
9695 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
9696 * sem_ch3.adb
9697 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
9698 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
9699 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
9700 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
9701 types.
9702 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
9703 non-static range.
9704 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
9705 functions whose return type is not in ALFA.
9706 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
9707 specifications.
9708 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
9709 parameter's type is not in ALFA.
9710 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
9711 types are in ALFA.
9712
97132011-08-02 Ed Schonberg <schonberg@adacore.com>
9714
9715 * sem_ch6 (Analyze_Expression_Function): treat the function as
9716 Inline_Always, and introduce a subprogram declaration for it when it is
9717 not a completion.
9718 * inline.adb (Add_Inlined_Body): recognize bodies that come from
9719 expression functions, so that the back-end can determine whether they
9720 can in fact be inlined.
9721 * sem_util.adb (Is_Expression_Function): predicate to determine whether
9722 a function body comes from an expression function.
9723
97242011-08-02 Gary Dismukes <dismukes@adacore.com>
9725
9726 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
9727 null exclusions to test Can_Never_Be_Null on the anonymous access types
9728 of the formals rather than testing the formals themselves. Exclude this
9729 check in cases where the Old_Formal is marked as a controlling formal,
9730 to avoid issuing spurious errors for bodies completing dispatching
9731 operations (due to the flag not getting set on controlling access
9732 formals in body specs).
9733 (Find_Corresponding_Spec): When checking full and subtype conformance of
9734 subprogram bodies in instances, pass Designated and E in that order, for
9735 consistency with the expected order of the formals (New_Id followed by
9736 Old_Id).
9737
97382011-08-02 Robert Dewar <dewar@adacore.com>
9739
9740 * sem_ch8.adb: Minor reformatting.
9741
97422011-08-02 Ed Schonberg <schonberg@adacore.com>
9743
9744 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
9745 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
9746 primitive operations of class-wide actuals.
9747
97482011-08-02 Javier Miranda <miranda@adacore.com>
9749
9750 * exp_atag.ads, exp_atag.adb
9751 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
9752 since its value is implicitly passed in argument Typ.
9753 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
9754 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
9755 Build_Common_Dispatching_Select_Statements.
9756
97572011-08-02 Robert Dewar <dewar@adacore.com>
9758
9759 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
9760 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
9761 Minor reformatting.
9762
97632011-08-02 Robert Dewar <dewar@adacore.com>
9764
9765 * sem_res.adb: Minor reformatting.
9766 * sem_prag.adb: Minor reformatting.
9767
97682011-08-02 Javier Miranda <miranda@adacore.com>
9769
9770 * exp_atag.adb, exp_atags.ads
9771 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
9772 by the tagged type Entity. Required to use this routine in the VM
9773 targets since we do not have available the Tag entity in the VM
9774 platforms.
9775 * exp_ch6.adb
9776 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
9777 Ada.Tags has not been previously loaded.
9778 * exp_ch7.adb
9779 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
9780 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
9781 * sem_aux.adb
9782 (Enclosing_Dynamic_Scope): Add missing support to handle the full
9783 view of enclosing scopes. Required to handle enclosing scopes that
9784 are synchronized types whose full view is a task type.
9785 * exp_disp.adb
9786 (Build_VM_TSDs): Minor code improvement to avoid generating and
9787 analyzing lists with empty nodes.
9788 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
9789 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
9790 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
9791 (Make_Disp_Timed_Select_Body): Add support for VM targets.
9792 (Make_Select_Specific_Data_Table): Add support for VM targets.
9793 (Make_VM_TSD): Generate code to initialize the SSD structure of
9794 the TSD.
9795
97962011-08-02 Yannick Moy <moy@adacore.com>
9797
9798 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
9799 cross-references section in ALI.
9800 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
9801 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
9802 Sub).
9803 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
9804 subprogram or package entity of a node
9805 (Is_Local_Reference_Type): new function returns True for references
9806 selected in local cross-references.
9807 (Lt): function extracted from Lt in Output_References
9808 (Write_Entity_Name): function extracted from Output_References
9809 (Generate_Definition): generate reference with type 'D' for definition
9810 of objects (object declaration and parameter specification), with
9811 appropriate locations and units, for use in local cross-references.
9812 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
9813 references of type 'I' for initialization in object definition.
9814 (Output_References): move part of function Lt and procedure
9815 Write_Entity_Name outside of the body. Ignore references of types 'D'
9816 and 'I' introduced for local cross-references.
9817 (Output_Local_References): new procedure to output the local
9818 cross-references sections.
9819 (Lref_Entity_Status): new array defining whether an entity is a local
9820 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
9821 with 'I' type when initialization expression is present.
9822 * get_scos.adb, get_scos.ads: Correct comments and typos
9823
98242011-08-02 Javier Miranda <miranda@adacore.com>
9825
9826 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
9827 the JVM target.
9828 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
9829 the JVM target.
9830 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
9831 TSD support.
9832
98332011-08-02 Vincent Celier <celier@adacore.com>
9834
9835 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
9836 (No_Space_Img): New function
9837 (Find_Excluded_Sources): When reading from a file, record the file name
9838 and the line number for each excluded source.
9839 (Mark_Excluded_Sources): When reporting an error, if the excluded
9840 sources were read from a file, include file name and line number in
9841 the error message.
9842
98432011-08-02 Ed Schonberg <schonberg@adacore.com>
9844
9845 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
9846
98472011-08-02 Robert Dewar <dewar@adacore.com>
9848
9849 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
9850
98512011-08-02 Javier Miranda <miranda@adacore.com>
9852
9853 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
9854 generation of TSDs to the DOTNET compiler.
9855 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
9856 generation of TSDs to the DOTNET compiler.
9857
98582011-08-02 Javier Miranda <miranda@adacore.com>
9859
9860 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
9861 record of all the tagged types declared inside library level package
9862 declarations, library level package bodies or library level subprograms.
9863 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
9864 associated with a given tagged type.
9865 (Build_VM_TSDs): New subprogram.
9866 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
9867 compilation units that are subprograms.
9868 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
9869 compilation units that are package bodies.
9870 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
9871 units that are a package declaration or a package instantiation.
9872 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
9873 reorganization to improve the error generated by the frontend when the
9874 function Ada.Tags.Secondary_Tag is not available.
9875 * rtsfind.ads (RE_Register_TSD): New runtime entity.
9876 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
9877
98782011-08-02 Javier Miranda <miranda@adacore.com>
9879
9880 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
9881
98822011-08-02 Robert Dewar <dewar@adacore.com>
9883
9884 * s-imenne.ads: Minor reformatting.
9885
98862011-08-02 Robert Dewar <dewar@adacore.com>
9887
9888 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
9889 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
9890 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
9891
98922011-08-02 Robert Dewar <dewar@adacore.com>
9893
9894 * einfo.ads (Materialize_Entity): Document this is only for renamings
9895 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
9896 required debug information in the case where we transform the object
9897 declaration into a renaming declaration.
9898 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
9899 object
9900 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
9901 Materialize_Entity.
9902
99032011-08-02 Robert Dewar <dewar@adacore.com>
9904
9905 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
9906 Suppress_Init_Procs.
9907 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
9908 Suppress_Initialization/Initialization_Suppressed.
9909 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
9910 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
9911 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
9912 * sem_prag.adb: New processing for pragma Suppress_Initialization.
9913
99142011-08-02 Robert Dewar <dewar@adacore.com>
9915
9916 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
9917 Minor reformatting.
9918
99192011-08-02 Ed Schonberg <schonberg@adacore.com>
9920
9921 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
9922 only have inheritable classwide pre/postconditions.
9923
99242011-08-02 Javier Miranda <miranda@adacore.com>
9925
9926 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
9927 * rtsfind.ads (RE_Check_TSD): New runtime entity.
9928 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
9929 checks if the external tag of a type is the same as the external tag
9930 of some other declaration.
9931
99322011-08-02 Thomas Quinot <quinot@adacore.com>
9933
9934 * s-taskin.ads: Minor reformatting.
9935
99362011-08-02 Emmanuel Briot <briot@adacore.com>
9937
9938 * g-comlin.adb (Display_Help): swap the order in which it prints the
9939 short help and the general usage.
9940
99412011-08-02 Ed Schonberg <schonberg@adacore.com>
9942
9943 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
9944 the aspect declarations and attach them to the generic copy for
9945 subsequent analysis.
9946 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
9947 declarations of the generic tree to the new subprogram declarations.
9948 * sem_attr.adb (Check_Precondition_Postcondition): recognize
9949 conditions that apply to a subprogram instance.
9950
99512011-08-02 Robert Dewar <dewar@adacore.com>
9952
9953 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
9954
99552011-08-02 Ed Schonberg <schonberg@adacore.com>
9956
9957 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
9958 private type with a tagged full view is not derived in the immediate
9959 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
9960
99612011-08-02 Robert Dewar <dewar@adacore.com>
9962
9963 * exp_ch4.adb: Minor reformatting.
9964
99652011-08-02 Ed Schonberg <schonberg@adacore.com>
9966
9967 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
9968 Ada2012 iterator, the loop will be rewritten during expansion into a
9969 while loop with a cursor and an element declaration. Do not analyze the
9970 body in this case, because if the container is for indefinite types the
9971 actual subtype of the elements will only be determined when the cursor
9972 declaration is analyzed.
9973
99742011-08-02 Arnaud Charlet <charlet@adacore.com>
9975
9976 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
9977 size/alignment related attributes in CodePeer_Mode.
9978
99792011-08-02 Gary Dismukes <dismukes@adacore.com>
9980
9981 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
9982 Prepend_Element, since this can result in the operation getting the
9983 wrong slot in the full type's dispatch table if the full type has
9984 inherited operations. The incomplete type's operation will get added
9985 to the proper position in the full type's primitives
9986 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
9987 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
9988 dispatching operations, since there are cases where nonprimitive
9989 subprograms can get added to the list of incomplete dependents (such
9990 as subprograms in nested packages).
9991 * sem_ch6.adb (Process_Formals): First, remove test for being in a
9992 private part when determining whether to add a primitive with a
9993 parameter of a tagged incomplete type to the Private_Dependents list.
9994 Such primitives can also occur in the visible part, and should not have
9995 been excluded from being private dependents.
9996 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
9997 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
9998 list of a Taft-amendment incomplete type is a primitive before issuing
9999 an error that the full type must appear in the same unit. There are
10000 cases where nonprimitives can be in the list (such as subprograms in
10001 nested packages).
10002 * sem_disp.adb (Derives_From): Use correct condition for checking that
10003 a formal's type is derived from the type of the corresponding formal in
10004 the parent subprogram (the condition was completely wrong). Add
10005 checking that was missing for controlling result types being derived
10006 from the result type of the parent operation.
10007
100082011-08-02 Yannick Moy <moy@adacore.com>
10009
10010 * errout.adb (First_Node): minor renaming
10011 * restrict.adb (Check_Formal_Restriction): put restriction warning on
10012 first node.
10013
100142011-08-02 Yannick Moy <moy@adacore.com>
10015
10016 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
10017 before accessing operands.
10018 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
10019 decide whether an initialization expression respects SPARK rules, as
10020 the plain node is the expanded one. This allows for more valid warnings
10021 to be issued.
10022 * gnat_rm.texi: Minor update.
10023
100242011-08-02 Arnaud Charlet <charlet@adacore.com>
10025
10026 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
10027 previous change.
10028
100292011-08-02 Robert Dewar <dewar@adacore.com>
10030
10031 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
10032
100332011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
10034
10035 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
10036 loop statements and the element renaming declaration with a block when
10037 the element type is controlled.
10038
100392011-08-02 Yannick Moy <moy@adacore.com>
10040
10041 * sinfo.ads: Minor formatting.
10042
100432011-08-02 Ed Schonberg <schonberg@adacore.com>
10044
10045 * sem_aggr.adb (Add_Association): if the association has a box and no
10046 expression, use the Sloc of the aggregate itself for the new
10047 association.
10048 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
10049 the Original_Node.
10050
100512011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
10052
10053 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
10054 When a container is provided via a function call, generate a renaming
10055 of the function result. This avoids the creation of a transient scope
10056 and the premature finalization of the container.
10057 * exp_ch7.adb (Is_Container_Cursor): Removed.
10058 (Wrap_Transient_Declaration): Remove the supression of the finalization
10059 of the list controller when the declaration denotes a container cursor,
10060 it is not needed.
10061
100622011-08-02 Yannick Moy <moy@adacore.com>
10063
10064 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
10065 node is from source, instead of the original node being from source.
10066 * sem_aggr.adb
10067 (Resolve_Array_Aggregate): refine the check for a static expression, to
10068 recognize also static ranges
10069 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
10070 Array_Type_Declaration): postpone the test for the type being a subtype
10071 mark after the type has been resolved, so that component-selection and
10072 expanded-name are discriminated.
10073 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
10074 to distinguish the case of an iteration scheme, so that an error is
10075 issed on a non-static range in SPARK except in an iteration scheme.
10076 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
10077 In_Iter_Schm = True.
10078 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
10079 user-defined operators so that they are allowed in renaming
10080 * sem_ch8.adb
10081 (Find_Selected_Component): refine the check for prefixing of operators
10082 so that they are allowed in renaming. Move the checks for restrictions
10083 on selector name after analysis discriminated between
10084 component-selection and expanded-name.
10085 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
10086 concatenation argument of string type if it is static.
10087 * sem_util.adb, sem_util.ads
10088 (Check_Later_Vs_Basic_Declarations): add a new function
10089 Is_Later_Declarative_Item to decice which declarations are allowed as
10090 later items, in the two different modes Ada 83 and SPARK. In the SPARK
10091 mode, add that renamings are considered as later items.
10092 (Enclosing_Package): new function to return the enclosing package
10093 (Enter_Name): correct the rule for homonyms in SPARK
10094 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
10095 from source (result of expansion) to avoid issuing wrong warnings.
10096
100972011-08-02 Ed Schonberg <schonberg@adacore.com>
10098
10099 * errout.adb: On anything but an expression First_Node returns its
10100 argument.
10101
101022011-08-02 Pascal Obry <obry@adacore.com>
10103
10104 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
10105
101062011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
10107
10108 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
10109 Set the associated loop as the related expression of internally
10110 generated cursors.
10111 * exp_ch7.adb (Is_Container_Cursor): New routine.
10112 (Wrap_Transient_Declaration): Supress the finalization of the list
10113 controller when the declaration denotes a container cursor.
10114
101152011-08-02 Yannick Moy <moy@adacore.com>
10116
10117 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
10118 command line now.
10119 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
10120 expression is a simple expression. This check cannot be performed in
10121 the semantics, so just drop it.
10122 (P_Index_Or_Discriminant_Constraint): move check that the index or
10123 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
10124 semantics. Other cases were previously checked in the semantics.
10125 * par-ch4.adb (P_Name): move checks that a selector name is not
10126 character literal or an operator symbol to Find_Selected_Component in
10127 the semantics
10128 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
10129 declarations are not placed after later declarations in a separate
10130 procedure in Sem_Util (possibly not the best choice?), to be used both
10131 during parsing, for Ada 83 mode, and during semantic analysis, for
10132 SPARK mode.
10133 * par-endh.adb (Check_End): move check that end label is not missing
10134 to Process_End_Label in the semantics
10135 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
10136 the special case for SPARK restriction
10137 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
10138 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
10139 parameter Force to issue the error message even on internal node (used
10140 for generated end label). Call Check_Restriction to check when an error
10141 must be issued. In SPARK mode, issue an error message even if the
10142 restriction is not set.
10143 (Check_Restriction): new procedure with an additional out parameter to
10144 inform the caller that a message has been issued
10145 * sem_aggr.adb: Minor modification of message
10146 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
10147 instead of issuing an error message directly
10148 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
10149 declarations are not placed after later declarations, by calling
10150 Check_Later_Vs_Basic_Declarations
10151 (Analyze_Subtype_Declaration): move here the check that an index or
10152 discriminant constraint must be a subtype mark. Change the check that
10153 a subtype of String must start at one so that it works on subtype marks.
10154 * sem_ch4.adb (Analyze_Call): move here the check that a named
10155 association cannot follow a positional one in a call
10156 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
10157 instead of issuing an error message directly
10158 * sem_ch8.adb (Find_Selected_Component): move here the check that a
10159 selector name is not a character literal or an operator symbol. Move
10160 here the check that the prefix of an expanded name cannot be a
10161 subprogram or a loop statement.
10162 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
10163 procedure called from parsing and semantics to check that basic
10164 declarations are not placed after later declarations
10165 (Process_End_Label): move here the check that end label is not missing
10166
101672011-08-02 Arnaud Charlet <charlet@adacore.com>
10168
10169 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
10170 representation clause in codepeer mode, since it confuses CodePeer and
10171 does not bring useful info.
10172
101732011-08-02 Ed Falis <falis@adacore.com>
10174
10175 * init.c: initialize fp hw on MILS.
10176
101772011-08-02 Ed Schonberg <schonberg@adacore.com>
10178
10179 * errout.adb (First_Node): for bodies, return the node itself (small
10180 optimization). For other nodes, do not check source_unit if the node
10181 comes from Standard.
10182
101832011-08-02 Robert Dewar <dewar@adacore.com>
10184
10185 * exp_ch3.adb: Minor comment additions.
10186 * sem_ch13.adb: Minor reformatting.
10187
101882011-08-02 Pascal Obry <obry@adacore.com>
10189
10190 * make.adb, makeutl.adb: Removes some superfluous directory separator.
10191
101922011-08-02 Robert Dewar <dewar@adacore.com>
10193
10194 * sem_attr.adb: Minor reformatting.
10195
101962011-08-02 Robert Dewar <dewar@adacore.com>
10197
10198 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
10199 (Has_Default_Component_Value): Removed
10200 * einfo.ads Comment updates
10201 (Has_Default_Aspect): Replaces Has_Default_Value
10202 (Has_Default_Component_Value): Removed
10203 * exp_ch13.adb
10204 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
10205 * exp_ch3.adb
10206 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
10207 (Get_Simple_Init_Val): Handle Default_Value aspect
10208 (Needs_Simple_Initialization): Handle Default_Value aspect
10209 * exp_ch3.ads: Needs_Simple_Initialization
10210 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
10211 * par-prag.adb (Pragma_Default[_Component]Value) Removed
10212 * sem_ch13.adb
10213 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
10214 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
10215 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
10216
102172011-08-02 Ed Schonberg <schonberg@adacore.com>
10218
10219 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
10220 package containing iteration primitives.
10221 exp_ch5.adb (Expand_Iterator_Loop): ditto.
10222
102232011-08-02 Ed Schonberg <schonberg@adacore.com>
10224
10225 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
10226 "of", pre-analyze expression in case it is a function call with
10227 finalization actions that must be placed ahead of the loop.
10228 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
10229 on an Ada2012 iterator, insert them ahead of the rewritten loop.
10230
102312011-08-02 Geert Bosch <bosch@adacore.com>
10232
10233 * cstand.adb (Create_Float_Types): Only consider C's long double for
10234 Long_Long_Float, in addition to double.
10235
102362011-08-02 Robert Dewar <dewar@adacore.com>
10237
10238 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
10239 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
10240 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
10241 Minor reformatting.
10242
102432011-08-02 Ed Schonberg <schonberg@adacore.com>
10244
10245 * sem_attr.adb: handle properly 'Result when it is a prefix of an
10246 indexed component.
10247
102482011-08-02 Javier Miranda <miranda@adacore.com>
10249
10250 * einfo.ads, einfo.adb
10251 (Original_Access_Type): Move this attribute to Node26 since there was
10252 an undocumented use of Node21 in E_Access_Subprogram_Type entities
10253 which causes conflicts and breaks the generation of the .NET compiler.
10254 (Interface_Name): Add missing documentation on JGNAT only uses of
10255 this attribute.
10256
102572011-08-02 Geert Bosch <bosch@adacore.com>
10258
10259 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
10260 (Find_Back_End_Float_Type): Likewise
10261 (Create_Back_End_Float_Types): Likewise
10262 (Create_Float_Types): Likewise
10263 (Register_Float_Type): Likewise
10264 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
10265 Nlist and split out type selection in new local Find_Base_Type function.
10266 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
10267 Nlist
10268 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
10269
102702011-08-02 Robert Dewar <dewar@adacore.com>
10271
10272 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
10273 alpha order).
10274 * opt.ads: Minor comment change.
10275 * sem_ch12.adb: Minor code reorganization.
10276
102772011-08-02 Gary Dismukes <dismukes@adacore.com>
10278
10279 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
10280 subtype's list of rep items to the list on the full subtype in the case
10281 where the lists are the same.
10282
102832011-08-02 Geert Bosch <bosch@adacore.com>
10284
10285 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
10286 using the one from System.Strings, which also deallocates all strings.
10287
102882011-08-02 Geert Bosch <bosch@adacore.com>
10289
10290 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
10291 function.
10292 * gcc-interface/Make-lang.in: Update dependencies.
10293
102942011-08-02 Olivier Hainque <hainque@adacore.com>
10295
10296 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
10297 end_locus.
10298
102992011-08-02 Javier Miranda <miranda@adacore.com>
10300
10301 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
10302 associated with anonymous access to subprograms.
10303
103042011-08-02 Geert Bosch <bosch@adacore.com>
10305
10306 * opt.ads
10307 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
10308 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
10309 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
10310 (Add_Symbol_Definition): Move to switch-c.adb
10311 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
10312 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
10313 (Add_Symbol_Definition): Move to switch-c.adb.
10314 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
10315 * sem_warn.adb
10316 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
10317 Move to warnsw.adb.
10318 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
10319 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
10320 Move to warnsw.adb.
10321 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
10322 (Add_Symbol_Definition): Moved from Prepcomp.
10323 * switch-c.ads: Update copyright notice. Use String_List instead of
10324 Argument_List, removing dependency on System.OS_Lib.
10325
103262011-08-02 Yannick Moy <moy@adacore.com>
10327
10328 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
10329 mode on initialization expression which does not respect SPARK
10330 restrictions.
10331 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
10332 if the tree referenced by its argument represents an initialization
10333 expression in SPARK, suitable for initializing an object in an object
10334 declaration.
10335
103362011-08-02 Javier Miranda <miranda@adacore.com>
10337
10338 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
10339 internally generated access to subprogram with its associated protected
10340 subprogram type.
10341 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
10342
103432011-08-02 Geert Bosch <bosch@adacore.com>
10344
10345 * cstand.adb (Register_Float_Type): Print information about type to
10346 register, if the Debug_Flag_Dot_B is set.
10347 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
10348 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
10349 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
10350 with a requested precision of more than Max_Digits digits and no more
10351 than Max_Base_Digits digits, if a range specification is present and the
10352 Predefined_Float_Types list has a suitable type to derive from.
10353 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
10354 case of type completion with pragma Import
10355 * sem_prag.adb
10356 (Process_Import_Predefined_Type): Processing to complete a type
10357 with pragma Import. Currently supports floating point types only.
10358 (Set_Convention_From_Pragma): Do nothing without underlying type.
10359 (Process_Convention): Guard against absence of underlying type,
10360 which may happen when importing incomplete types.
10361 (Process_Import_Or_Interface): Handle case of importing predefined
10362 types. Tweak error message.
10363
103642011-08-02 Eric Botcazou <ebotcazou@adacore.com>
10365
10366 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
10367 functions to previous change. Reorganize code slightly.
10368
103692011-08-02 Geert Bosch <bosch@adacore.com>
10370
10371 * back_end.ads (Register_Type_Proc): New call back procedure type for
10372 allowing the back end to provide information about available types.
10373 (Register_Back_End_Types): New procedure to register back end types.
10374 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
10375 available types.
10376 * cstand.adb (Back_End_Float_Types): New list for floating point types
10377 supported by the back end.
10378 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
10379 (Copy_Float_Type): New procedure to make new copies of predefined types.
10380 (Register_Float_Type): New call back procedure to populate the BEFT list
10381 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
10382 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
10383 (Create_Float_Types): New procedure to create entities for floating
10384 point types predefined in Standard, and put these and any remaining
10385 BEFTs on the Predefined_Float_Types list.
10386 * stand.ads (Predefined_Float_Types): New list for predefined floating
10387 point types that do not have declarations in package Standard.
10388
103892011-08-02 Eric Botcazou <ebotcazou@adacore.com>
10390
10391 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
10392 entity node for the unit containing the parameter.
10393 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
10394 (Add_Inlined_Subprogram): Likewise.
10395 * gcc-interface/Make-lang.in: Update dependencies.
10396
103972011-08-02 Thomas Quinot <quinot@adacore.com>
10398
10399 * s-stusta.adb (Print): Make sure Pos is always initialized to a
10400 suitable value.
10401
104022011-08-02 Geert Bosch <bosch@adacore.com>
10403
10404 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
10405
104062011-08-02 Eric Botcazou <ebotcazou@adacore.com>
10407
10408 * sem_type.adb (Covers): Move trivial case to the top and reuse the
10409 computed value of Base_Type.
10410
104112011-08-02 Yannick Moy <moy@adacore.com>
10412
10413 * restrict.adb (Check_Restriction): issue an error for any use of
10414 class-wide, even if the No_Dispatch restriction is not set.
10415 * sem_aggr.adb: Correct typos in comments and messages in formal mode
10416 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
10417 when completing a private extension, the type named in the private part
10418 is not the same as that named in the visible part.
10419 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
10420 of an inherited primitive operations of a tagged type or type extension
10421 that returns the tagged type.
10422 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
10423 function which returns True for an implicit operation inherited by the
10424 derived type declaration for the argument type.
10425 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
10426 order.
10427
104282011-08-02 Ed Schonberg <schonberg@adacore.com>
10429
10430 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
10431 Process_Bounds, to perform analysis with expansion of a range or an
10432 expression that is the iteration scheme for a loop.
10433 (Analyze_Iterator_Specification): If domain of iteration is given by a
10434 function call with a controlled result, as is the case if call returns
10435 a predefined container, ensure that finalization actions are properly
10436 generated.
10437 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
10438
104392011-08-02 Javier Miranda <miranda@adacore.com>
10440
10441 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
10442 * gcc-interface/Make-lang.in: Update dependencies.
10443
104442011-08-02 Javier Miranda <miranda@adacore.com>
10445
10446 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
10447 determine if the analysis is performed using N or Original_Node (N).
10448 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
10449 functionality of routine Is_Variable avoids code duplication.
10450 * checks.adb (Determine_Range): Handle temporaries generated by
10451 Remove_Side_Effects.
10452
104532011-08-02 Javier Miranda <miranda@adacore.com>
10454
10455 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
10456 expansion of the condition. Required since the previous analysis was
10457 done with expansion disabled (see Resolve_Quantified_Expression) and
10458 hence checks were not inserted and record comparisons have not been
10459 expanded.
10460
104612011-08-02 Ed Falis <falis@adacore.com>
10462
10463 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
10464 Update header.
10465
104662011-08-02 Bob Duff <duff@adacore.com>
10467
10468 * opt.ads: Minor comment fix.
10469
104702011-08-02 Bob Duff <duff@adacore.com>
10471
10472 * sem_ch12.adb (Analyze_Package_Instantiation,
10473 Analyze_Subprogram_Instantiation): Turn off style checking while
10474 analyzing an instance. Whatever style checks that apply to the generic
10475 unit should apply, so it makes no sense to apply them in an instance.
10476 This was causing trouble when compiling an instance of a runtime
10477 unit that violates the -gnatyO switch.
10478 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
10479 one of the two case statements, causing spurious errors.
10480
104812011-08-02 Robert Dewar <dewar@adacore.com>
10482
10483 * uname.adb: Minor reformatting.
10484 * gnatcmd.adb: Minor reformatting.
10485 * exp_attr.adb: Minor reformatting.
10486
104872011-08-02 Ed Schonberg <schonberg@adacore.com>
10488
10489 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
10490 No_Dispatching_Calls, do not look for the Assign primitive, because
10491 predefined primitives are not created in this case.
10492
104932011-08-02 Bob Duff <duff@adacore.com>
10494
10495 * stylesw.ads: Minor comment fixes.
10496
104972011-08-02 Robert Dewar <dewar@adacore.com>
10498
10499 * freeze.adb (Add_To_Result): New procedure.
10500
105012011-08-02 Jose Ruiz <ruiz@adacore.com>
10502
10503 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
10504 time, if the specific run-time routines for handling streams of strings
10505 are not available, use the default mechanism.
10506
105072011-08-02 Arnaud Charlet <charlet@adacore.com>
10508
10509 * s-regpat.ads: Fix typo.
10510
105112011-08-02 Vincent Celier <celier@adacore.com>
10512
10513 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
10514 not null, call it to create the in memory config project file without
10515 parsing an existing default config project file.
10516
105172011-08-02 Eric Botcazou <ebotcazou@adacore.com>
10518
10519 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
10520
105212011-08-02 Ed Schonberg <schonberg@adacore.com>
10522
10523 * sem_elim.adb: an abstract subprogram does not need an eliminate
10524 pragma for its descendant to be eliminable.
10525
105262011-08-02 Ed Falis <falis@adacore.com>
10527
10528 * init.c: revert to handling before previous checkin for VxWorks
10529 * s-intman-vxworks.adb: delete unnecessary declarations related to
10530 using Ada interrupt facilities for handling signals.
10531 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
10532 * s-intman-vxworks.ads: Import __gnat_install_handler as
10533 Initialize_Interrupts.
10534 * s-taprop-vxworks.adb: Delete Signal_Mask.
10535 (Abort_Handler): change construction of mask to unblock exception
10536 signals.
10537
105382011-08-02 Jerome Guitton <guitton@adacore.com>
10539
10540 * a-except-2005.adb (Raise_From_Signal_Handler): Call
10541 Debug_Raise_Exception before propagation starts.
10542
105432011-08-02 Eric Botcazou <ebotcazou@adacore.com>
10544
10545 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
10546 to Restriction_Check_Required.
10547 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
10548 * sem_res.adb (Resolve_Call): Likewise.
10549 * sem_attr.adb (Check_Stream_Attribute): Likewise.
10550
105512011-08-02 Bob Duff <duff@adacore.com>
10552
10553 * stylesw.ads: Update comment.
10554 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
10555 * errout.ads: Remove obsolete comment.
10556
105572011-08-02 Javier Miranda <miranda@adacore.com>
10558
10559 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
10560 (Set_Is_Safe_To_Reevaluate): new procedure.
10561 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
10562 assignment is allowed on safe-to-reevaluate variables.
10563 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
10564 temporary created to remove side effects in expressions that use
10565 the secondary stack as safe-to-reevaluate.
10566 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
10567 variables that are not true constants.
10568
105692011-08-02 Robert Dewar <dewar@adacore.com>
10570
10571 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
10572 sem_res.adb, sem_ch6.adb: Minor reformatting.
10573
105742011-08-02 Jerome Guitton <guitton@adacore.com>
10575
10576 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
10577
105782011-08-02 Ed Schonberg <schonberg@adacore.com>
10579
10580 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
10581 not set Overridden_Operation if subprogram is an initialization
10582 procedure.
10583
105842011-08-02 Yannick Moy <moy@adacore.com>
10585
10586 * par-ch6.adb: Correct obsolete name in comments
10587 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
10588 which takes two message arguments (existing function takes one), with
10589 second message used for continuation.
10590 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
10591 block statements that originate from a source block statement, not
10592 generated block statements
10593 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
10594 symmetry with procedure case
10595 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
10596 function to issue an error in formal mode if a package specification
10597 contains more than one tagged type or type extension.
10598 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
10599 parameters matching formals of tagged types are objects (or ancestor
10600 type conversions of objects), not general expressions. Issue an error
10601 on view conversions that are not involving ancestor conversion of an
10602 extended type.
10603 (Resolve_Type_Conversion): in formal mode, issue an error on the
10604 operand of an ancestor type conversion which is not an object
10605 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
10606 procedure so that it works also for actuals of function calls
10607 (Is_Actual_Tagged_Parameter): new function which determines if its
10608 argument is an actual parameter of a formal of tagged type in a
10609 subprogram call
10610 (Is_SPARK_Object_Reference): new function which determines if the tree
10611 referenced by its argument represents an object in SPARK
10612
106132011-08-02 Robert Dewar <dewar@adacore.com>
10614
10615 * sem_ch3.adb: Minor reformatting
10616 Minor comment addition
10617 Minor error msg text change
10618
106192011-08-02 Javier Miranda <miranda@adacore.com>
10620
10621 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
10622 function. Used to be more precise when we generate a variable plus one
10623 assignment to remove side effects in the evaluation of the Bound
10624 expressions.
10625 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
10626 of the bound expression to force its re-analysis and thus expand the
10627 associated transient scope (if required). Code cleanup replacing the
10628 previous code that declared the constant entity by an invocation to
10629 routine Force_Evaluation which centralizes this work in the frontend.
10630
106312011-08-02 Robert Dewar <dewar@adacore.com>
10632
10633 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
10634 (Base_Type): Now uses improved Is_Base_Type function
10635 * einfo.ads (Base_Type): Inline this function
10636
106372011-08-02 Robert Dewar <dewar@adacore.com>
10638
10639 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
10640 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
10641
106422011-08-02 Arnaud Charlet <charlet@adacore.com>
10643
10644 * gcc-interface/Make-lang.in: Update dependencies.
10645 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
10646 targets.
10647
106482011-08-02 Yannick Moy <moy@adacore.com>
10649
10650 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
10651 non-simple expression used in delta constraint
10652 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
10653 index constraint which is not a subtype mark
10654 * par.adb: With and use Restrict
10655 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
10656 mode on component type which is not a subtype mark and default
10657 expression on component
10658 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
10659 of string which does not have a lower index bound equal to 1
10660 (Array_Type_Declaration): issue an error in formal mode on index or
10661 component type which is not a subtype mark, and on aliased keyword on
10662 component
10663 (Derived_Type_Declaration): issue an error in formal mode on interface,
10664 limited or abstract type
10665 (Record_Type_Declaration): issue an error in formal mode on interface
10666 (Record_Type_Definition): issue an error in formal mode on tagged types
10667 and type extensions not declared in the specification of a library unit
10668 package; on null non-tagged record; on variant part
10669
106702011-08-02 Vincent Celier <celier@adacore.com>
10671
10672 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
10673 not declared for qualified library project when Library_Name is not
10674 declared, but Library_Dir is.
10675
106762011-08-02 Robert Dewar <dewar@adacore.com>
10677
10678 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
10679 pragmas (affects aspects [Component_]Default_Value
10680 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
10681 component type for the resolution
10682
106832011-08-02 Eric Botcazou <ebotcazou@adacore.com>
10684
10685 * einfo.adb (Base_Type): Tune implementation for speed.
10686
106872011-08-02 Robert Dewar <dewar@adacore.com>
10688
10689 * freeze.adb: Minor reformatting.
10690
106912011-08-02 Thomas Quinot <quinot@adacore.com>
10692
10693 * scos.ads: Update comments.
10694
106952011-08-02 Ed Schonberg <schonberg@adacore.com>
10696
10697 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
10698 base type, because the parent may be a subtype of a private type whose
10699 convention is established in a private part.
10700
107012011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
10702
10703 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
10704 statement in a block when the expansion of the return expression has
10705 created a finalization chain.
10706 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
10707 with the parent node.
10708 Add N_Extended_Return_Statement to handle the case where a transient
10709 object declaration appears in the Return_Object_Declarations list of
10710 an extended return statement.
10711
107122011-08-02 Matthew Gingell <gingell@adacore.com>
10713
10714 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
10715 unused parameter 'name'.
10716
107172011-08-02 Ed Schonberg <schonberg@adacore.com>
10718
10719 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
10720 inherited operation, check whether its alias, which is the source
10721 operastion that it renames, has been marked eliminated.
10722
107232011-08-02 Javier Miranda <miranda@adacore.com>
10724
10725 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
10726 in-mode parameter whose type is an access type since it can be used to
10727 modify its designated object. Enforce code that handles as safe an
10728 access type that is not access-to-constant but it is the result of a
10729 previous removal of side-effects.
10730 (Remove_Side_Effects): Minor code reorganization of cases which require
10731 no action. Done to incorporate documentation on new cases uncovered
10732 working in this ticket: no action needed if this routine was invoked
10733 too early and the nodes are not yet decorated.
10734 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
10735 to routine Remove_Side_Effects by calls to Force_Evaluation since they
10736 were issued with actuals that are implicitly provided by
10737 Force_Evaluation.
10738
107392011-08-02 Robert Dewar <dewar@adacore.com>
10740
10741 * sem_ch3.adb, sem_res.adb: Minor reformatting.
10742
107432011-08-02 Yannick Moy <moy@adacore.com>
10744
10745 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
10746 to issue an error in formal mode on attribute not supported in this mode
10747 (Analyze_Attribute): issue errors on standard attributes not supported
10748 in formal mode.
10749 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
10750 comment, and issue error in formal mode on modulus which is not a power
10751 of 2.
10752 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
10753 range.
10754 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
10755 subtype mark.
10756 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
10757 operator on modular type (except 'not').
10758
107592011-08-02 Robert Dewar <dewar@adacore.com>
10760
10761 * gnat_rm.texi: Minor reformatting.
10762
107632011-08-02 Arnaud Charlet <charlet@adacore.com>
10764
10765 * s-osinte-linux.ads: Minor comment update and reformatting.
10766 * i-cexten.ads: Make this unit pure, as for its parent.
10767 Will allow its usage in more contexts if needed.
10768
107692011-08-02 Robert Dewar <dewar@adacore.com>
10770
10771 * s-utf_32.ads: Minor comment fix.
10772
107732011-08-02 Ed Schonberg <schonberg@adacore.com>
10774
10775 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
10776 operation of a tagged synchronized type, handle the case where the
10777 controlling argument is overloaded.
10778
107792011-08-02 Yannick Moy <moy@adacore.com>
10780
10781 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
10782 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
10783 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
10784 SPARK mode and formal verification mode on processing SPARK restriction
10785 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
10786 requiring consistency checking.
10787
107882011-08-02 Robert Dewar <dewar@adacore.com>
10789
10790 * sem_res.adb: Minor reformatting.
10791
107922011-08-02 Robert Dewar <dewar@adacore.com>
10793
10794 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
10795 a-cforse.ads: Remove unneeded with of Ada.Containers
10796 Remove commented out pragma Inline's
10797 Move specifications of new subprograms to the actual specs
10798
107992011-08-02 Yannick Moy <moy@adacore.com>
10800
10801 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
10802 a-cforse.ads: Update comments.
10803
108042011-08-02 Ed Schonberg <schonberg@adacore.com>
10805
10806 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
10807
108082011-08-02 Robert Dewar <dewar@adacore.com>
10809
10810 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
10811 a-cforse.ads, a-cofove.ads: Minor reformatting.
10812
108132011-08-02 Claire Dross <dross@adacore.com>
10814
10815 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
10816 a-cofove.ads: Add comments.
10817
108182011-08-02 Yannick Moy <moy@adacore.com>
10819
10820 * gnat_rm.texi: Document formal containers.
10821
108222011-08-02 Emmanuel Briot <briot@adacore.com>
10823
10824 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
10825 are empty sections.
10826
108272011-08-02 Robert Dewar <dewar@adacore.com>
10828
10829 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
10830 reformatting.
10831
108322011-08-02 Robert Dewar <dewar@adacore.com>
10833
10834 * aspects.adb: New aspects Default_Value and Default_Component_Value
10835 New format of Aspect_Names table checks for omitted entries
10836 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
10837 handling of boolean aspects for derived types.
10838 New aspects Default_Value and Default_Component_Value
10839 New format of Aspect_Names table checks for omitted entries
10840 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
10841 (Has_Default_Value): New flag
10842 (Has_Default_Component_Value): New flag
10843 (Has_Default_Value): New flag
10844 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
10845 table.
10846 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
10847 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
10848 Default_Value and Default_Component_Value
10849 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
10850 New aspects Default_Value and Default_Component_Value
10851 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
10852 * sprint.adb: Print N_Aspect_Specification node when called from gdb
10853
108542011-08-02 Vincent Celier <celier@adacore.com>
10855
10856 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
10857 inherit library kind.
10858
108592011-08-02 Ed Schonberg <schonberg@adacore.com>
10860
10861 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
10862 Minor reformatting.
10863
108642011-08-02 Robert Dewar <dewar@adacore.com>
10865
10866 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
10867
108682011-08-02 Yannick Moy <moy@adacore.com>
10869
10870 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
10871
108722011-08-02 Robert Dewar <dewar@adacore.com>
10873
10874 * impunit.adb: Add comment.
10875
108762011-08-02 Yannick Moy <moy@adacore.com>
10877
10878 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
10879 qualification of aggregates in formal mode
10880 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
10881 another aggregate
10882 (Resolve_Aggregate): complete the test that an aggregate is adequately
10883 qualified in formal mode
10884
108852011-08-02 Pascal Obry <obry@adacore.com>
10886
10887 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
10888 * mlib-prj.adb: Supress warning when compiling binder generated file.
10889 (Build_Library): Supress all warnings when compiling the binder
10890 generated file.
10891
108922011-08-02 Yannick Moy <moy@adacore.com>
10893
10894 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
10895 from here...
10896 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
10897 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
10898 Add with/use clauses to make Check_Formal_Restriction visible
10899
109002011-08-02 Ed Schonberg <schonberg@adacore.com>
10901
10902 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
10903 in-parameters when type of the generic formal is private in the generic
10904 spec and non-private in the body.
10905
109062011-08-02 Claire Dross <dross@adacore.com>
10907
10908 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
10909 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
10910 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
10911 * impunit.adb, Makefile.rtl: Take new files into account.
10912
109132011-08-02 Robert Dewar <dewar@adacore.com>
10914
10915 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
10916 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
10917
109182011-08-02 Yannick Moy <moy@adacore.com>
10919
10920 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
10921 formal mode
10922 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
10923 matching static array bounds, taking into account the special case of
10924 string literals
10925 * sem_ch3.adb: Typo in comment.
10926
109272011-08-02 Yannick Moy <moy@adacore.com>
10928
10929 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
10930 which issues an error in formal mode if its argument node is originally
10931 from source
10932 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
10933 has a discriminant specification so that it does not include the case
10934 of derived types
10935 (Derived_Type_Declaration): move here the test that a derived type has a
10936 discriminant specification
10937 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
10938 first element of a component association before accessing its choices
10939 (presence of component association is not enough)
10940 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
10941 declaration is a library item before accessing the next element in a
10942 list, as library items are not member of lists
10943 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
10944 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
10945 Check_Formal_Restriction whenever possible.
10946
109472011-08-02 Ed Schonberg <schonberg@adacore.com>
10948
10949 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
10950 reference when needed.
10951
109522011-08-02 Bob Duff <duff@adacore.com>
10953
10954 * gnat_ugn.texi: Fix typo.
10955
109562011-08-02 Vincent Celier <celier@adacore.com>
10957
10958 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
10959 archive file name. Do not use the full path name of archives for Open
10960 VMS.
10961
109622011-08-02 Robert Dewar <dewar@adacore.com>
10963
10964 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
10965 Analyze_Aspect_Specifications
10966 * sem_ch13.adb
10967 (Analyze_Aspect_Specifications): New handling for boolean aspects
10968 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
10969 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
10970 sequence for Analyze_Aspect_Specifications
10971 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
10972 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
10973
109742011-08-02 Robert Dewar <dewar@adacore.com>
10975
10976 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
10977 aspects, since these no longer exist.
10978
109792011-08-02 Robert Dewar <dewar@adacore.com>
10980
10981 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
10982 semicolon, do not try to see if there are aspects following it.
10983 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
10984 aspect spec.
10985
109862011-08-02 Robert Dewar <dewar@adacore.com>
10987
10988 * sem_ch8.adb, aspects.ads: Minor reformatting.
10989
109902011-08-02 Eric Botcazou <ebotcazou@adacore.com>
10991
10992 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
10993 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
10994 extracted from...
10995 (Analyze_Aspect_Specifications): ...here. Call above procedure.
10996
109972011-08-02 Yannick Moy <moy@adacore.com>
10998
10999 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
11000 mode on subprogram declaration outside of package specification, unless
11001 it is followed by a pragma Import
11002 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
11003 Access_Type_Declaration): issue error in formal mode on access type
11004 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
11005 incomplete type
11006 (Analyze_Object_Declaration): issue error in formal mode on object
11007 declaration which does not respect SPARK restrictions
11008 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
11009 declaration which does not respect SPARK restrictions
11010 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
11011 error in formal mode on digits or delta constraint
11012 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
11013 decimal fixed point type
11014 (Derived_Type_Declaration): issue error in formal mode on derived type
11015 other than type extensions of tagged record types
11016 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
11017 with check on access definition
11018 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
11019 mode on protected definition.
11020 (Analyze_Task_Definition): issue error in formal mode on task definition
11021
110222011-08-02 Robert Dewar <dewar@adacore.com>
11023
11024 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
11025
110262011-08-02 Javier Miranda <miranda@adacore.com>
11027
11028 * sem_ch6.adb (Can_Override_Operator): New function.
11029 (Verify_Overriding_Indicator): Add missing code to check overriding
11030 indicator in operators. Fixes regression.
11031 (Check_Overriding_Indicator): Minor reformating after replacing the
11032 code that evaluates if the subprogram can override an operator by
11033 invocations to the above new function.
11034 * einfo.adb
11035 (Write_Field26_Name): Add missing code to ensure that, following
11036 the documentation in einfo.ads, this field is not shown as attribute
11037 "Static_Initialization" on non-dispatching functions.
11038
110392011-08-02 Jose Ruiz <ruiz@adacore.com>
11040
11041 * sem_res.adb (Resolve_Call): A call to
11042 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
11043 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
11044 i.e., when the second parameter is of type Time_Span.
11045
110462011-08-02 Vincent Celier <celier@adacore.com>
11047
11048 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
11049 with an archive instead of -L<library dir> -l<library name>.
11050
110512011-08-02 Ed Schonberg <schonberg@adacore.com>
11052
11053 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
11054 mark the base types In_Use in addition to making the operations
11055 use_visible.
11056
110572011-08-02 Ed Falis <falis@adacore.com>
11058
11059 * init.c: add and setup __gnat_signal_mask for the exception signals
11060 * s-inmaop-vxworks.adb: new file.
11061 * s-intman-vxworks.adb: remove unnecessary initializations and
11062 simplify remaining
11063 * s-intman-vxworks.ads: remove unnecessary variable
11064 * s-taprop-vxworks.adb: simplify signal initialization
11065
110662011-08-02 Robert Dewar <dewar@adacore.com>
11067
11068 * sem_ch8.adb: Minor code reorganization, comment updates.
11069
110702011-08-02 Robert Dewar <dewar@adacore.com>
11071
11072 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
11073 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
11074 here from Sem_Res.
11075 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
11076 (Matching_Static_Array_Bounds): Moved here from Sem_Res
11077
110782011-08-02 Ed Schonberg <schonberg@adacore.com>
11079
11080 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
11081 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
11082 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
11083 use_type_clauses, to handle more efficiently use_type and use_all_type
11084 constructs.
11085 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
11086 Ada2012 Use_All_Type clause.
11087 (Use_Class_Wide_Operations): new procedure.
11088
110892011-08-02 Robert Dewar <dewar@adacore.com>
11090
11091 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
11092 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
11093 expression to expression function.
11094
110952011-08-02 Ed Schonberg <schonberg@adacore.com>
11096
11097 * sem_ch4.adb: transform simple Ada2012 membership into equality only
11098 if types are compatible.
11099
111002011-08-02 Yannick Moy <moy@adacore.com>
11101
11102 * sem_res.adb (Matching_Static_Array_Bounds): new function which
11103 returns True if its argument array types have same dimension and same
11104 static bounds at each index.
11105 (Resolve_Actuals): issue an error in formal mode on actuals passed as
11106 OUT or IN OUT paramaters which are not view conversions in SPARK.
11107 (Resolve_Arithmetic_Op): issue an error in formal mode on
11108 multiplication or division with operands of fixed point types which are
11109 not qualified or explicitly converted.
11110 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
11111 Boolean or array type (except String) operands.
11112 (Resolve_Equality_Op): issue an error in formal mode on equality
11113 operators for array types other than String with non-matching static
11114 bounds.
11115 (Resolve_Logical_Op): issue an error in formal mode on logical operators
11116 for array types with non-matching static bounds. Factorize the code in
11117 Matching_Static_Array_Bounds.
11118 (Resolve_Qualified_Expression): issue an error in formal mode on
11119 qualified expressions for array types with non-matching static bounds.
11120 (Resolve_Type_Conversion): issue an error in formal mode on type
11121 conversion for array types with non-matching static bounds
11122
111232011-08-02 Robert Dewar <dewar@adacore.com>
11124
11125 * par-ch10.adb: Minor code reorganization (use Nkind_In).
11126
111272011-08-02 Ed Schonberg <schonberg@adacore.com>
11128
11129 * par-ch9.adb: save location of entry for proper error message.
11130
111312011-08-02 Javier Miranda <miranda@adacore.com>
11132
11133 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
11134 (Use_Full_View) which permits this routine to climb through the
11135 ancestors using the full-view of private parents.
11136 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
11137 Use_Full_View to true in calls to Is_Ancestor.
11138 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
11139 true in call to Is_Ancestor.
11140 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
11141 Use_Full_View to true in call to Is_Ancestor.
11142 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
11143 call to Is_Ancestor.
11144 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
11145 Use_Full_View to true in calls to Is_Ancestor.
11146 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
11147 Make_Select_Specific_Data_Table, Register_Primitive,
11148 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
11149 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
11150 to true in call to Is_Ancestor.
11151 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
11152 Use_Full_View to true in calls to Is_Ancestor.
11153 * exp_cg.adb
11154 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
11155 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
11156
111572011-08-02 Robert Dewar <dewar@adacore.com>
11158
11159 * gnat_rm.texi: Minor reformatting.
11160 * sem_prag.adb: Minor reformatting.
11161
111622011-08-02 Tristan Gingold <gingold@adacore.com>
11163
11164 * vms_data.ads: Add VMS qualifier for -gnateP.
11165
111662011-08-02 Robert Dewar <dewar@adacore.com>
11167
11168 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
11169 * par-ch7.adb (P_Package): Proper placement of aspects for package
11170 decl/instantiation.
11171 * par-endh.adb (Check_End): Ad Is_Sloc parameter
11172 (End_Statements): Add Is_Sloc parameterr
11173 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
11174 (Check_End): Ad Is_Sloc parameter
11175 (End_Statements): Add Is_Sloc parameterr
11176
111772011-08-02 Vincent Celier <celier@adacore.com>
11178
11179 * ug_words: Add VMS qualifier equivalent to -gnateP:
11180 /SYMBOL_PREPROCESSING.
11181
111822011-08-02 Jose Ruiz <ruiz@adacore.com>
11183
11184 * gnat-style.texi: For hexadecimal numeric literals the typical
11185 grouping of digits is 4 to represent 2 bytes.
11186 A procedure spec which is split into several lines is indented two
11187 characters.
11188
111892011-08-02 Yannick Moy <moy@adacore.com>
11190
11191 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
11192 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
11193 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
11194 properly qualified
11195 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
11196 choice in array aggregate
11197 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
11198 mark as ancestor
11199 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
11200 positional and named aggregate for record, or others in record
11201 aggregate, or multiple choice in record aggregate
11202 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
11203 array operands to logical operations AND, OR and XOR do not have the
11204 same static lower and higher bounds
11205 * sem_ch5.adb, sinfo.ads: Correct typos in comments
11206
112072011-08-01 Robert Dewar <dewar@adacore.com>
11208
11209 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
11210 Replaces Last_Source_Node_In_Sequence.
11211 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
11212 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
11213 parens and blank in string (this was inconsistently implemented).
11214 * errout.ads
11215 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
11216 blank in string (this was inconsistently implemented).
11217 * gnat1drv.adb
11218 (Set_Global_Switches): Set formal mode switches appropriately
11219 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
11220 * par-prag.adb
11221 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
11222 call Set_Error_Msg_Lang to set "spark" as language name.
11223 * par.adb: Remove unnecessary call to set formal language for errout
11224 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
11225 appropriately and call Set_Error_Msg_Lang to set "spark" as language
11226 name.
11227 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
11228 calls to it, moved after resolution so that types are known
11229 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
11230 result of concatenation is not of type String
11231 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
11232 concatenation is not properly restricted
11233 * gnat_rm.texi: Add doc on pragma Spark_95.
11234 * gcc-interface/Makefile.in: Remove obsolete target pairs for
11235 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
11236 * gcc-interface/Make-lang.in: Update dependencies.
11237
112382011-08-01 Javier Miranda <miranda@adacore.com>
11239
11240 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
11241 condition that detects if the overridden operation must replace an
11242 existing entity.
11243
112442011-08-01 Javier Miranda <miranda@adacore.com>
11245
11246 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
11247 code declarations inserted by Insert_Actions in each alternative of the
11248 N_Case_Expression node.
11249
112502011-08-01 Robert Dewar <dewar@adacore.com>
11251
11252 * sem_ch6.adb: Minor code reorganization.
11253 * sem_util.adb: Minor reformatting.
11254
112552011-08-01 Pascal Obry <obry@adacore.com>
11256
11257 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
11258 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
11259
112602011-08-01 Yannick Moy <moy@adacore.com>
11261
11262 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
11263 literal or operator symbol which is prefixed
11264 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
11265 mode on access attributes.
11266 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
11267 that concatenation operands are properly restricted in formal mode
11268 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
11269 Analyze_Concatenation_Operand. Issue an error in formal mode if the
11270 result of the concatenation has a type different from String.
11271 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
11272 Analyze_Quantified_Expression, Analyze_Slice,
11273 Analyze_Null): issue an error in formal mode on unsupported constructs
11274 * sem_ch5.adb
11275 (Analyze_Block_Statement): only issue error on source block statement
11276 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
11277 function which returns the last node in a list of nodes for which
11278 Comes_From_Source returns True, if any
11279 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
11280 Last_Source_Node_In_Sequence
11281 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
11282 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
11283 mode on unsupported constructs
11284 * sem_ch9.adb Do not return after issuing error in formal mode, as the
11285 rest of the actions may be needed later on since the error is marked as
11286 not serious.
11287 * sinfo.ads: Typos in comments.
11288
112892011-08-01 Pascal Obry <obry@adacore.com>
11290
11291 * projects.texi: Minor editing.
11292
112932011-08-01 Yannick Moy <moy@adacore.com>
11294
11295 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
11296 insertion character ~~
11297 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
11298 (Set_Error_Msg_Lang): new procedure which fixes the language for use
11299 with insertion character ~~
11300 (Set_Msg_Text): treat insertion character ~~
11301 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
11302 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
11303 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
11304 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
11305 errors related to the formal language restriction not serious
11306 (insertion character |).
11307 * par.adb (Par): set formal language for error messages if needed
11308 * sem_ch6.adb (Check_Missing_Return): take into account possible
11309 generated statements at the end of the function
11310 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
11311 enumeration value to define a new pragma SPARK_95
11312 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
11313 SPARK_Version): new type and variables to store the SPARK version
11314 (none by default).
11315 (SPARK_Mode): return True when SPARK_Version is set
11316 * par-prag.adb: Correct indentation
11317 (Prag): take Pragma_SPARK_95 into account
11318 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
11319 into account.
11320
113212011-08-01 Robert Dewar <dewar@adacore.com>
11322
11323 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
11324 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
11325 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
11326
113272011-08-01 Pascal Obry <obry@adacore.com>
11328
11329 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
11330 Target_Name to Get_Path call.
11331 (Parse_Single_Project): Likewise.
11332 (Post_Parse_Context_Clause): Likewise.
11333 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
11334 Call Initialise_Project_Path with the proper Target_Name.
11335 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
11336 search path.
11337 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
11338 with the proper Target_Name.
11339 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
11340 Part.Parse routine.
11341 (Parse_Project_And_Apply_Config): Likewise.
11342 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
11343 This is fine as this part of the code is supporting only native
11344 compilation.
11345 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
11346 is fine as this part of the code is supporting only native compilation.
11347
113482011-08-01 Yannick Moy <moy@adacore.com>
11349
11350 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
11351 of homonym, unless the homonym is one of the cases allowed in SPARK
11352 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
11353 package declaration occurring after a body.
11354
113552011-08-01 Robert Dewar <dewar@adacore.com>
11356
11357 * checks.adb, exp_ch4.adb: Minor reformatting.
11358
113592011-08-01 Javier Miranda <miranda@adacore.com>
11360
11361 * einfo.ads (Access_Disp_Table): Fix documentation.
11362 (Dispatch_Table_Wrappers): Fix documentation.
11363
113642011-08-01 Pascal Obry <obry@adacore.com>
11365
11366 * prj-env.adb, prj-env.ads: Minor reformatting.
11367
113682011-08-01 Yannick Moy <moy@adacore.com>
11369
11370 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
11371 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
11372 procedures out of these packages.
2c7f9cc0 11373 * errout.ads, errout.adb
052e0603
AC
11374 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
11375 procedures in of this package
11376 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
11377 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
11378 on misplaced later vs initial declarations, like in Ada 83
11379 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
11380 formal mode on attribute of private type whose full type declaration
11381 is not visible
11382 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
11383 package declaration inside a package specification
11384 (Analyze_Full_Type_Declaration): issue error in formal mode on
11385 controlled type or discriminant type
11386 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
11387 user-defined operator means that it should come from the source
11388 (New_Overloaded_Entity): issue error in formal mode on overloaded
11389 entity.
11390 * sem_ch6.ads, sem_ch13.ads: typos in comments.
11391
113922011-08-01 Thomas Quinot <quinot@adacore.com>
11393
11394 * atree.adb: Minor reformatting.
11395 * checks.adb: Minor reformatting.
11396
113972011-08-01 Vincent Celier <celier@adacore.com>
11398
11399 * s-parame-vms-ia64.ads: Fix typo in comment
11400 Minor reformatting
11401 * s-parame-vms-restrict.ads: Removed, unused.
11402
114032011-08-01 Javier Miranda <miranda@adacore.com>
11404
11405 * exp_ch3.adb
11406 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
11407 * sem_ch3.adb
11408 (Constrain_Index): Remove side effects in the evaluation of the bounds.
11409 * sem_ch3.ads, sem_ch3.adb
11410 (Is_Constant_Bound): New extended version of the subprogram that was
11411 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
11412 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
11413 * sem_aux.ads (Constant_Value): Fix typo in comment.
11414 * checks.adb (Generate_Index_Checks): New implementation which, for
11415 array objects with constant bounds, generates the runtime check
11416 referencing the bounds of the array type. For other cases this routine
11417 provides its previous behavior obtaining such values from the array
11418 object.
11419 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
11420 parent type.
11421 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
11422 we cannot have semantic interpretations of the new node.
11423
114242011-08-01 Ed Schonberg <schonberg@adacore.com>
11425
11426 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
11427 expressions.
11428
114292011-08-01 Arnaud Charlet <charlet@adacore.com>
11430
11431 * sem_ch8.adb: Minor code editing.
11432 * s-vxwext.adb: Remove trailing space.
11433 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
11434 consistency with other files.
11435
114362011-08-01 Thomas Quinot <quinot@adacore.com>
11437
11438 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
11439
114402011-08-01 Ed Schonberg <schonberg@adacore.com>
11441
11442 * par-ch10.adb: reject parameterized expressions as compilation unit.
11443 * sem_ch4.adb: handle properly conditional expression with overloaded
11444 then_clause and no else_clause.
11445
114462011-08-01 Tristan Gingold <gingold@adacore.com>
11447
11448 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
11449 like done by System.Aux_DEC.
11450 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
11451
114522011-08-01 Yannick Moy <moy@adacore.com>
11453
11454 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
11455 missing label at end of declaration (subprogram or package)
11456 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
11457 of positional and named parameter association
11458 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
11459 Error_Msg_SP which adds a prefix to the error message giving the name
11460 of the formal language analyzed
11461 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
11462 access result type in subprogram, unconstrained array as result type,.
11463 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
11464 procedure
11465 * sem_ch8.adb: Code clean up.
11466
114672011-08-01 Javier Miranda <miranda@adacore.com>
11468
11469 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
11470 * einfo.ads (Access_Disp_Table): Fix documentation.
11471 (Dispatch_Table_Wrappers): Fix documentation.
11472 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
11473 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
11474 to enforce the documentation of this attribute.
11475 (Set_Is_Interface): Cleanup the assertion.
11476 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
11477 the Underlying_Type entity before reading attribute Access_Disp_Table.
11478 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
11479 Locate the Underlying_Type before reading attribute Access_Disp_Table.
11480 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
11481 the Underlying_Type entity before reading attribute Access_Disp_Table.
11482 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
11483 Locate the Underlying_Type entity before reading attribute
11484 Access_Disp_Table.
11485
114862011-08-01 Ed Schonberg <schonberg@adacore.com>
11487
11488 * s-poosiz.ads: Additional overriding indicators.
11489
114902011-08-01 Yannick Moy <moy@adacore.com>
11491
11492 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
11493 formal mode.
11494 (Analyze_Iteration_Scheme): issue error in formal mode when loop
11495 parameter specification does not include a subtype mark.
11496 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
11497 formal mode on abstract subprogram.
11498 (Analyze_Subprogram_Specification): issue error in formal mode on
11499 user-defined operator.
11500 (Process_Formals): issue error in formal mode on access parameter and
11501 default expression.
11502 * sem_ch9.adb (Analyze_Abort_Statement,
11503 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
11504 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
11505 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
11506 Analyze_Requeue, Analyze_Selective_Accept,
11507 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
11508 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
11509 issue error in formal mode on user-defined raise statement.
11510
115112011-08-01 Thomas Quinot <quinot@adacore.com>
11512
11513 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
11514 declaration being hidden when overriding an implicit inherited
11515 subprogram.
11516 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
11517 (-gnats), do not complain about a source file that contains only a
11518 pragma No_Body.
11519
115202011-08-01 Ed Schonberg <schonberg@adacore.com>
11521
11522 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
11523 variable if already set.
11524
115252011-08-01 Arnaud Charlet <charlet@adacore.com>
11526
11527 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
11528 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
11529 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
11530 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
11531 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
11532 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
11533 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
11534 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
11535 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
11536 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
11537 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
11538 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
11539 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
11540 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
11541 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
11542 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
11543 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
11544 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
11545 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
11546 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
11547 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
11548 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
11549 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
11550 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
11551 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
11552 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
11553 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
11554 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
11555 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
11556 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
11557 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
11558 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
11559 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
11560 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
11561 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
11562 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
11563 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
11564 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
11565 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
11566 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
11567 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
11568 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
11569 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
11570 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
11571 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
11572 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
11573 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
11574 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
11575 s-osinte-mingw.ads: Update to GPLv3 run-time license.
11576 Use GNAT instead of GNARL.
11577
115782011-08-01 Bob Duff <duff@adacore.com>
11579
11580 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
11581 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
11582 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
11583 reformatting.
11584
115852011-08-01 Yannick Moy <moy@adacore.com>
11586
11587 * debug.adb (d.D) reverve flag for the SPARK mode
11588 (d.E) reverve flag for SPARK generation mode
11589 (d.F) reverve flag for Why generation mode
2c7f9cc0 11590 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
052e0603
AC
11591 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
11592 functions which return True when the corresponding modes are set
11593 (Formal_Language): return "spark" or "alfa" when in formal verification
11594 mode.
11595 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
11596 Error_Msg to prefix the error message with a tag giving the formal
11597 language
11598 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
11599 message with a tag giving the formal language
11600 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
11601 block statement
11602 (Analyze_Case_Statement): issue error in formal mode on case statement
11603 with a single "others" case alternative
11604 (Analyze_Exit_Statement): issue errors in formal mode on exit
11605 statements which do not respect SPARK restrictions
11606 (Analyze_Goto_Statement): issue error in formal mode on goto statement
11607 (Check_Unreachable_Code): always issue an error (not a warning) in
11608 formal mode on unreachable code (concerns both code after an infinite
11609 loop and after an unconditional jump, both not allowed in SPARK)
11610 * sem_ch6.adb (Analyze_Return_Statement): add call to
11611 Set_Return_Present for a procedure containing a return statement
11612 (already done for functions in Analyze_Function_Return)
11613 (Analyze_Function_Return): issue error in formal mode on extended
11614 return or if return is not last statement in function
11615 (Check_Missing_Return): issue error in formal mode if function does
11616 not end with return or if procedure contains a return
11617 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
11618 function to detect if there is an inner scope of its parameter S which
11619 is a loop.
11620
116212011-08-01 Thomas Quinot <quinot@adacore.com>
11622
11623 * sem_ch6.ads: Minor reformatting.
11624
116252011-08-01 Javier Miranda <miranda@adacore.com>
11626
11627 * sem_util.adb (Abstract_Interface_List): Complete condition when
11628 processing private type declarations to avoid reading unavailable
11629 attribute.
11630 (Is_Synchronized_Tagged_Type): Complete condition when processing
11631 private extension declaration nodes to avoid reading unavailable
11632 attribute.
11633
116342011-08-01 Thomas Quinot <quinot@adacore.com>
11635
11636 * sem_ch3.adb: Minor reformatting.
11637
116382011-08-01 Thomas Quinot <quinot@adacore.com>
11639
11640 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
11641 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
11642 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
11643 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
11644 for VMS, instead parametrize the common implementation with
11645 System.Parameters declarations.
11646
116472011-08-01 Eric Botcazou <ebotcazou@adacore.com>
11648
11649 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
11650
116512011-08-01 Tristan Gingold <gingold@adacore.com>
11652
11653 * seh_init.c: Fix SEH handler installation on win64.
11654
116552011-08-01 Ed Schonberg <schonberg@adacore.com>
11656
11657 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
11658 double analysis of an anonymous access to subprogram, because it can
11659 lead to improper sharing of profiles and a back-end crash.
11660
116612011-08-01 Robert Dewar <dewar@adacore.com>
11662
11663 * make.adb, sem_ch4.adb: Minor reformatting.
11664 * gcc-interface/Make-lang.in: Update dependencies.
11665 * sem_util.adb, exp_ch5.adb: Minor reformatting.
11666
116672011-08-01 Arnaud Charlet <charlet@adacore.com>
11668
11669 * gnat_rm.texi: Fix definition of Long_Integer.
11670
116712011-08-01 Ed Schonberg <schonberg@adacore.com>
11672
11673 * exp_aggr.adb: check limit size of static aggregate unconditionally,
11674 to prevent storage exhaustion.
11675 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
11676 finalized is a function body, insert the cleanup code before the final
11677 return statement, to prevent spurious warnings.
11678 * s-pooglo.ads: add overriding indicator.
11679
116802011-08-01 Ed Schonberg <schonberg@adacore.com>
11681
11682 * sem_ch4.adb (Operator_Check): improve error message when both a
11683 with_clause and a use_clause are needed to make operator usage legal.
11684 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
11685 determine whether a compilation unit is visible within an other,
11686 either through a with_clause in the current unit, or a with_clause in
11687 its library unit or one one of its parents.
11688
116892011-08-01 Ed Schonberg <schonberg@adacore.com>
11690
11691 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
11692 over an arbitrary expression of an array or container type.
11693 * lib-xref.adb: clarify comment.
11694
116952011-08-01 Bob Duff <duff@adacore.com>
11696
11697 * einfo.ads: Minor reformatting.
11698 * debug.adb: Minor comment improvement.
11699
117002011-08-01 Javier Miranda <miranda@adacore.com>
11701
11702 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
11703 consider hidden subprograms as valid candidates.
11704
117052011-08-01 Arnaud Charlet <charlet@adacore.com>
11706
11707 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
11708
117092011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
11710
11711 * gnat_ugn.texi: Fix typo.
11712
117132011-08-01 Robert Dewar <dewar@adacore.com>
11714
11715 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
11716 lib-xref.adb: Minor reformatting
11717
117182011-08-01 Gary Dismukes <dismukes@adacore.com>
11719
11720 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
11721 when to generate a call to Move_Final_List.
11722 (Has_Controlled_Parts): Remove this function.
11723
117242011-08-01 Geert Bosch <bosch@adacore.com>
11725
11726 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
11727 "," in choice list.
11728
117292011-08-01 Thomas Quinot <quinot@adacore.com>
11730
11731 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
11732 explicit raise of a predefined exception as Comes_From_Source if the
11733 original N_Raise_Statement comes from source.
11734
117352011-08-01 Robert Dewar <dewar@adacore.com>
11736
11737 * sinfo.ads: Add comment.
11738 * sem_ch6.adb: Minor reformatting.
11739
117402011-08-01 Robert Dewar <dewar@adacore.com>
11741
11742 * freeze.adb (Freeze_Entity): Refine check for bad component size
11743 clause to avoid rejecting confirming clause when atomic/aliased present.
11744
117452011-08-01 Ed Schonberg <schonberg@adacore.com>
11746
11747 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
11748 better determine whether an entity reference is a write.
11749 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
11750 subcomponent.
11751 * lib-xref.adb (Output_References): Do no suppress a read reference at
11752 the same location as an immediately preceeding modify-reference, to
11753 handle properly in-out actuals.
11754
117552011-08-01 Tristan Gingold <gingold@adacore.com>
11756
11757 * env.c (__gnat_setenv) [VMS]: Refine previous change.
11758
117592011-08-01 Quentin Ochem <ochem@adacore.com>
11760
11761 * i-cstrin.adb (New_String): Changed implementation, now uses only the
11762 heap to compute the result.
11763
117642011-08-01 Robert Dewar <dewar@adacore.com>
11765
11766 * atree.ads: Minor reformatting.
11767
117682011-08-01 Emmanuel Briot <briot@adacore.com>
11769
11770 * g-expect.adb (Get_Command_Output): Fix memory leak.
11771
117722011-08-01 Geert Bosch <bosch@adacore.com>
11773
11774 * cstand.adb (P_Float_Type): New procedure to print the definition of
11775 predefined fpt types.
11776 (P_Mixed_Name): New procedure to print a name using mixed case
11777 (Print_Standard): Use P_Float_Type for printing floating point types
11778 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
11779 precision IEEE float.
11780
117812011-08-01 Thomas Quinot <quinot@adacore.com>
11782
11783 * sem_ch3.adb: Minor reformatting.
11784
117852011-08-01 Ed Schonberg <schonberg@adacore.com>
11786
11787 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
11788 the completion of a generic function, insert the new body rather than
11789 rewriting the original.
11790
117912011-08-01 Yannick Moy <moy@adacore.com>
11792
11793 * sinfo.ads, errout.ads: Typos in comments.
11794
117952011-08-01 Robert Dewar <dewar@adacore.com>
11796
11797 * par-endh.adb: Minor reformatting.
11798
117992011-08-01 Robert Dewar <dewar@adacore.com>
11800
11801 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
11802 (Pre_Post_Aspects): New subtype.
11803 * par-ch12.adb (P_Generic): New syntax for aspects in packages
11804 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
11805 * par-ch7.adb (P_Package): Remove Decl parameter
11806 (P_Package): Handle new syntax for aspects (before IS)
11807 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
11808 new aspect syntax
11809 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
11810 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
11811 (P_Package): Remove Decl parameter
11812 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
11813 aspects
11814 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
11815 specs
11816 * sem_util.ads, sem_util.adb (Static_Boolean): New function
11817 * sinfo.ads: Document new syntax for aspects in packages etc.
11818 * sprint.adb: Handle new syntax of aspects before IS in package
11819
118202011-08-01 Thomas Quinot <quinot@adacore.com>
11821
11822 * atree.ads: Minor reformatting.
11823 * sem_prag.adb: Minor reformatting.
11824
118252011-08-01 Robert Dewar <dewar@adacore.com>
11826
11827 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
11828 case expr alternative.
11829
118302011-08-01 Ed Schonberg <schonberg@adacore.com>
11831
11832 * sem_ch12.adb: Fix typo.
11833
118342011-08-01 Geert Bosch <bosch@adacore.com>
11835
11836 * sem_prag.adb (Check_No_Link_Name): New procedure.
11837 (Process_Import_Or_Interface): Use Check_No_Link_Name.
11838 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
11839 instead of Standard_Long_Long_Float_Size global. Preparation for
11840 eventual removal of per type constants.
11841 * exp_util.ads (Get_Stream_Size): New function returning the stream
11842 size value of subtype E.
11843 * exp_util.adb (Get_Stream_Size): Implement new function.
11844 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
11845 function.
11846 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
11847 * einfo.adb:
11848 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
11849
118502011-08-01 Geert Bosch <bosch@adacore.com>
11851
11852 * cstand.adb: Fix comments.
11853 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
11854 count of arguments.
11855
118562011-08-01 Robert Dewar <dewar@adacore.com>
11857
11858 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
11859
118602011-08-01 Geert Bosch <bosch@adacore.com>
11861
11862 * atree.ads: Fix comment.
11863
118642011-08-01 Robert Dewar <dewar@adacore.com>
11865
11866 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
11867 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
11868 * par.adb: Add with for Namet.Sp.
11869 * par-tchk.adb: Minor reformatting.
11870
118712011-08-01 Vincent Celier <celier@adacore.com>
11872
11873 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
11874 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
11875 of the init procedure of a SAL.
11876 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
11877 New procedure.
11878
118792011-08-01 Thomas Quinot <quinot@adacore.com>
11880
11881 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
11882 reformatting.
11883
118842011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11885
11886 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
11887
118882011-08-01 Thomas Quinot <quinot@adacore.com>
11889
11890 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
11891 conformant with its spec (return True only for types that have
11892 an overriding Initialize primitive operation that prevents them from
11893 having preelaborable initialization).
11894 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
11895 initialization for controlled types in Ada 2005 or later mode.
11896
118972011-08-01 Robert Dewar <dewar@adacore.com>
11898
11899 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
11900 Postcondition.
11901 (Same_Aspect): New function.
11902 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
11903 Type_Invariant, Precondition, Postcondition.
11904 * snames.ads-tmpl: Add Name_Type_Invariant.
11905
119062011-08-01 Robert Dewar <dewar@adacore.com>
11907
11908 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
11909 here.
11910 (Freeze_All_Ent): Fix error in handling inherited aspects.
11911 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
11912 already analyzed, but don't skip entire processing of a declaration,
11913 that's wrong in some cases of declarations being rewritten.
11914 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
11915 Don't delay for integer, string literals
11916 Treat predicates in usual manner for delay, remove special case code,
11917 not needed.
11918 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
11919 (Build_Predicate_Function): Update saved expression in aspect
11920 (Build_Invariant_Procedure): Update saved expression in aspect
11921 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
11922 of replacement of discriminant references if the reference is simple.
11923
119242011-08-01 Robert Dewar <dewar@adacore.com>
11925
11926 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
11927 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
11928 Static_Predicate and Dynamic_Predicate.
11929 (Build_Predicate_Function): Add processing for Static_Predicate
11930 and Dynamic_Predicate.
11931 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
11932 (From_Static_Predicate): New flag
11933 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
11934
119352011-08-01 Robert Dewar <dewar@adacore.com>
11936
11937 * usage.adb: Documentation cleanup for Ada version modes in usage.
11938 * expander.adb: Minor reformatting.
11939
119402011-08-01 Robert Dewar <dewar@adacore.com>
11941
11942 * atree.ads: Minor comment fix.
11943 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
11944 a-witeio.ads, sem_prag.adb: Minor reformatting.
11945
119462011-08-01 Doug Rupp <rupp@adacore.com>
11947
11948 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
11949 pointers. Use descrip.h header file for convenience. Add some
11950 comments.
11951
119522011-08-01 Robert Dewar <dewar@adacore.com>
11953
11954 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
11955 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
11956 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
11957 New procedure.
11958 (Check_Aspect_At_End_Of_Declarations): New procedure
11959 (Analye_Aspect_Specification): Minor changes for above procedures
11960 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
11961 specification node as well.
11962
119632011-08-01 Pascal Obry <obry@adacore.com>
11964
11965 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
11966 Windows files. Use GetFilesAttributes() in this case to check for file
11967 existence instead of returning with an error code.
11968
119692011-08-01 Vincent Celier <celier@adacore.com>
11970
11971 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
11972 High is above Source length.
11973
119742011-08-01 Robert Dewar <dewar@adacore.com>
11975
11976 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
11977
119782011-08-01 Robert Dewar <dewar@adacore.com>
11979
11980 * aspects.ads (Boolean_Aspects): New subtype.
11981 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
11982 for derived types in cases where the parent type and derived type have
11983 aspects.
11984 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
11985 with aspects when parent type also has aspects.
11986 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
11987 boolean expression at this point).
11988 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
11989 accordance with final decision on the Ada 2012 feature.
11990 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
11991
119922011-08-01 Matthew Heaney <heaney@adacore.com>
11993
11994 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
11995
119962011-08-01 Pascal Obry <obry@adacore.com>
11997
11998 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
11999 Fix Replace_Slice when High is above current string size.
12000 (Replace_Slice): Fix DL computation when High is above current
12001 string length.
12002
120032011-08-01 Gary Dismukes <dismukes@adacore.com>
12004
12005 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
12006
120072011-08-01 Matthew Heaney <heaney@adacore.com>
12008
12009 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
12010 of node.
12011
120122011-08-01 Pascal Obry <obry@adacore.com>
12013
12014 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
12015 reformatting.
12016
120172011-08-01 Ed Schonberg <schonberg@adacore.com>
12018
12019 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
12020 access to protected subprograms in generic bodies.
12021 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
12022 protected type, indicate that the convention of the subprogram is
12023 Convention_Protected, because it may be used in subsequent declarations
12024 within the protected declaration.
12025
120262011-08-01 Vincent Celier <celier@adacore.com>
12027
12028 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
12029 and "final" procedures when the name of the library is "ada", to avoid
12030 duplicate symbols "adainit" and "adafinal" in executables.
12031
120322011-08-01 Ed Schonberg <schonberg@adacore.com>
12033
12034 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
12035 quantified expression that appears within a postcondition and uses the
12036 Ada2012 'Result attribute.
12037
120382011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12039
12040 * init.c (__gnat_error_handler): Cast reason to int.
12041 (__gnat_install_handler): Explain sa_sigaction use.
12042
120432011-07-24 Eric Botcazou <ebotcazou@adacore.com>
12044
12045 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
12046 subprogram has copy-in copy-out parameters, try to promote the mode of
12047 the return type if it is passed in registers.
12048
120492011-07-24 Eric Botcazou <ebotcazou@adacore.com>
12050
12051 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
12052 left operand as addressable.
12053
120542011-07-24 Eric Botcazou <ebotcazou@adacore.com>
12055
12056 * gcc-interface/gigi.h (build_function_stub): Remove.
12057 (build_return_expr): Likewise.
12058 (convert_vms_descriptor): Declare.
12059 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
12060 (build_function_stub): Move to...
12061 * gcc-interface/utils2.c (build_return_expr): Move to...
12062 * gcc-interface/trans.c (build_function_stub): ...here.
12063 (build_return_expr): ...here.
12064 (Subprogram_Body_to_gnu): Add local variable for language_function.
12065 Disconnect the parameter attributes cache, if any, once done with it.
12066 Call end_subprog_body only after setting the end_locus.
12067 Build the stub associated with the function, if any, at the very end.
12068 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
12069 variables and streamline control flow.
12070
120712011-07-23 Arnaud Charlet <charlet@adacore.com>
12072
12073 PR ada/49819
12074 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
12075 g-trasym-dwarf.adb.
12076
120772011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12078
12079 PR bootstrap/49794
12080 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
12081 Assign to act.sa_sigaction.
12082 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
12083 current->return_address to char * before arithmetic.
12084
120852011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12086
12087 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
12088 Correct argument types.
12089 Extract code from reason.
12090 (__gnat_install_handler): Assign to act.sa_sigaction.
12091
120922011-07-21 Eric Botcazou <ebotcazou@adacore.com>
12093
12094 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
12095 (GNAT1_OBJS): ...here.
12096
120972011-07-15 Eric Botcazou <ebotcazou@adacore.com>
12098
12099 PR ada/48711
12100 * g-socthi-mingw.adb (Fill): Fix formatting.
12101
12102 * gcc-interface/gigi.h: Move around comment.
12103
121042011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12105
12106 PR ada/46350
12107 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
12108
121092011-07-14 Florian Weimer <fw@deneb.enyo.de>
12110
12111 PR ada/48711
12112 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
12113
121142011-07-13 Eric Botcazou <ebotcazou@adacore.com>
12115
12116 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
12117 range comparison if Pmode is SImode.
12118
121192011-07-12 Laurent GUERBY <laurent@guerby.net>
12120 Eric Botcazou <ebotcazou@adacore.com>
12121
12122 * adadecode.c: Wrap up in extern "C" block.
12123 * adadecode.h: Likewise.
12124 * adaint.c: Likewise. Remove 'const' keyword.
12125 * adaint.h: Likewise.
12126 * argv.c: Likewise.
12127 * atree.h: Likewise.
12128 * cio.c: Likewise.
12129 * cstreams.c: Likewise.
12130 * env.c: Likewise.
12131 * exit.c: Likewise.
12132 * fe.h: Likewise.
12133 * final.c: Likewise.
12134 * init.c: Likewise.
12135 * initialize.c: Likewise.
12136 * link.c: Likewise.
12137 * namet.h: Likewise.
12138 * nlists.h: Likewise.
12139 * raise.c: Likewise.
12140 * raise.h: Likewise.
12141 * repinfo.h: Likewise.
12142 * seh_init.c: Likewise.
12143 * targext.c: Likewise.
12144 * tracebak.c: Likewise.
12145 * uintp.h: Likewise.
12146 * urealp.h: Likewise.
12147 * xeinfo.adb: Wrap up generated C code in extern "C" block.
12148 * xsinfo.adb: Likewise.
12149 * xsnamest.adb: Likewise.
12150 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
12151 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
12152 * gcc-interface/misc.c: Likewise.
12153 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
12154 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
12155 ada/targext.o here...
12156 (GNAT_ADA_OBJS): ...and not here.
12157 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
12158 (GNATBIND_OBJS): Reorder.
12159
121602011-07-07 Richard Henderson <rth@redhat.com>
12161
12162 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
12163 dwarf2out_frame_init.
12164
121652011-07-07 Eric Botcazou <ebotcazou@adacore.com>
12166
12167 * gcc-interface/misc.c (gnat_init): Tweak previous change.
12168
121692011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12170
12171 PR target/39150
12172 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
12173
121742011-07-06 Richard Guenther <rguenther@suse.de>
12175
12176 * gcc-interface/misc.c (gnat_init): Merge calls to
12177 build_common_tree_nodes and build_common_tree_nodes_2.
12178 Re-initialize boolean_false_node.
12179
121802011-07-02 Eric Botcazou <ebotcazou@adacore.com>
12181 Olivier Hainque <hainque@adacore.com>
12182 Nicolas Setton <setton@adacore.com>
12183
12184 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
12185 the type according to the ARTIFICIAL_P parameter.
12186 (create_type_decl): Likewise.
12187 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
12188
121892011-07-01 Eric Botcazou <ebotcazou@adacore.com>
12190
12191 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
12192 (gnatbind): Likewise.
12193
121942011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12195
12196 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
12197
121982011-06-18 Eric Botcazou <ebotcazou@adacore.com>
12199
12200 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
12201 local variable throughout. Remove useless call to Base_Type.
12202 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
12203 Take it also into account for the volatileness of the field. Set the
12204 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
12205
122062011-06-18 Eric Botcazou <ebotcazou@adacore.com>
12207
12208 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
12209 on a dereference built for a by-ref object if it has an address clause.
12210
122112011-06-18 Eric Botcazou <ebotcazou@adacore.com>
12212
12213 * einfo.ads (Address_Taken): Document use for the second argument of
12214 Asm_Input and Asm_Output attributes.
12215 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
12216 argument is an entity name, then set Address_Taken on it.
12217 <Attribute_Asm_Output>: Likewise.
12218 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
12219 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
12220 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
12221 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
12222
122232011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
12224
12225 PR middle-end/46500
12226 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
12227
122282011-06-14 Joseph Myers <joseph@codesourcery.com>
12229
12230 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
12231 (ada/utils.o): Update dependencies.
12232 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
12233 ../../../libcpp/libcpp.a.
12234 * gcc-interface/utils.c: Include common/common-target.h.
12235 (process_attributes): Use targetm_common.have_named_sections.
12236
122372011-06-07 Richard Guenther <rguenther@suse.de>
12238
12239 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
12240 set_sizetype.
12241
122422011-06-06 Eric Botcazou <ebotcazou@adacore.com>
12243
12244 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
12245 TREE_THIS_NOTRAP flag.
12246
122472011-06-06 Eric Botcazou <ebotcazou@adacore.com>
12248
12249 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
12250 Fix thinko.
12251
122522011-06-06 Eric Botcazou <ebotcazou@adacore.com>
12253
12254 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
12255 constants whose full view has discriminants specially.
12256
122572011-06-06 Eric Botcazou <ebotcazou@adacore.com>
12258
12259 * gcc-interface/utils.c: Include diagnostic.h.
12260 (gnat_write_global_declarations): Output debug information for all
12261 global type declarations before finalizing the compilation unit.
12262 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
12263
122642011-05-25 Jakub Jelinek <jakub@redhat.com>
12265
12266 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
12267
122682011-05-25 Kai Tietz <ktietz@redhat.com>
12269
12270 * adaint.c (__gnat_to_canonical_file_list_next): Use array
12271 initialization instead of const/none-const pointer assignment.
12272
122732011-05-24 Joseph Myers <joseph@codesourcery.com>
12274
12275 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
12276 $(EXTRA_GNAT1_OBJS).
12277 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
12278 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
12279 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
12280 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
12281 libcommon-target.a instead of prefix.o.
12282
122832011-05-21 Joseph Myers <joseph@codesourcery.com>
12284
12285 PR ada/49097
12286 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
12287
122882011-05-20 Joseph Myers <joseph@codesourcery.com>
12289
12290 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
12291 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
12292 instead of version.o.
12293
2d0dd51a 122942011-05-18 Kai Tietz <ktietz@redhat.com>
052e0603
AC
12295
12296 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
12297 boolean_false_node instead of integer_zero_node.
12298 (convert_with_check): Likewise.
12299 * gcc-interface/decl.c (choices_to_gnu): Likewise.
12300
123012011-05-12 Eric Botcazou <ebotcazou@adacore.com>
12302
12303 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
12304 type of the parameter is an unconstrained array, convert the actual to
12305 the type of the formal in the In Out and Out cases as well.
12306
123072011-05-11 Nathan Froyd <froydnj@codesourcery.com>
12308
12309 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
12310 call build_function_type_array or build_varargs_function_type_array
12311 instead.
12312 (create_subprog_type): Don't call build_function_type; call
12313 build_function_type_vec instead.
12314
123152011-05-11 Nathan Froyd <froydnj@codesourcery.com>
12316
12317 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
12318 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
12319 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
12320
123212011-05-07 Eric Botcazou <ebotcazou@adacore.com>
12322
12323 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
12324
12325 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
12326 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
12327
123282011-05-05 Nathan Froyd <froydnj@codesourcery.com>
12329
12330 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
12331
123322011-05-05 Nathan Froyd <froydnj@codesourcery.com>
12333
12334 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
12335 instead of accessing TYPE_ARG_TYPES directly.
12336 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
12337
123382011-05-05 Eric Botcazou <ebotcazou@adacore.com>
12339
12340 PR ada/48844
12341 * gcc-interface/gigi.h (get_variant_part): Declare.
12342 * gcc-interface/decl.c (get_variant_part): Make global.
12343 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
12344 types have the same constant size, are record types and T1 has a
12345 variant part while T2 doesn't.
12346
123472011-05-05 Eric Botcazou <ebotcazou@adacore.com>
12348
12349 * gcc-interface/utils.c (begin_subprog_body): Do not call
12350 get_pending_sizes.
12351 (end_subprog_body): Likewise.
12352
123532011-05-04 Richard Guenther <rguenther@suse.de>
12354
12355 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
12356 int_const_binop.
12357 (pos_to_constructor): Likewise.
12358
123592011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 12360 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
12361
12362 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
12363 of build_function_type. Adjust calls to...
12364 (build_raise_check): ...this. Do not take a void_tree parameter.
12365 Call build_function_type_list instead of build_function_type.
12366 Fix head comment and swap couple of conditional blocks.
12367
123682011-04-30 Eric Botcazou <ebotcazou@adacore.com>
12369
12370 * gnatvsn.ads (Library_Version): Bump to 4.7.
12371 (Current_Year): Bump to 2011.
12372
123732011-04-29 Michael Matz <matz@suse.de>
12374
12375 * gcc-interface/misc.c (gnat_handle_option): Set
12376 warn_maybe_uninitialized.
12377
123782011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
12379
12380 * gnat_ugn.texi (Complexity Metrics Control): Update link to
12381 the Watson/McCabe paper.
12382
123832011-04-23 Jim Meyering <meyering@redhat.com>
12384
12385 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
12386
123872011-04-22 Eric Botcazou <ebotcazou@adacore.com>
12388
12389 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
12390 onto the new type.
12391
123922011-04-22 Eric Botcazou <ebotcazou@adacore.com>
12393
12394 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
12395 parameter.
12396 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
12397 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
12398 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
12399 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
12400 <all>: Do not set flags on the reused DECL node coming from an alias.
12401 Set DECL_IGNORED_P on the DECL node built for subprograms if they
12402 don't need debug info here...
12403 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
12404 (gigi): Adjust calls to create_subprog_decl.
12405 (build_raise_check): Likewise.
12406 (establish_gnat_vms_condition_handler): Likewise.
12407 (Compilation_Unit_to_gnu): Likewise.
12408 (gnat_to_gnu): Likewise.
12409
124102011-04-21 Eric Botcazou <ebotcazou@adacore.com>
12411
12412 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
12413 (NO_REORDER_ADAFLAGS): New variable.
12414 (EXTRA_GNATTOOLS): Always define.
12415 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
12416 Clean up and adjust list of files compiled with special options.
12417 * gcc-interface/Make-lang.in: Likewise.
12418 (ada/decl.o): Cosmetical change.
12419 (ada/misc.o): Remove dependency on $(PLUGIN_H).
12420
124212011-04-20 Jim Meyering <meyering@redhat.com>
12422
12423 * initialize.c (__gnat_initialize): Remove useless if-before-free.
12424
124252011-04-17 Eric Botcazou <ebotcazou@adacore.com>
12426
12427 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
12428 $(CFLAGS) on the link line.
12429
124302011-04-17 Eric Botcazou <ebotcazou@adacore.com>
12431
12432 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
12433 padded type built for the return type if it is unconstrained.
12434
124352011-04-14 Nathan Froyd <froydnj@codesourcery.com>
12436
12437 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
12438
124392011-04-12 Nathan Froyd <froydnj@codesourcery.com>
12440
12441 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
12442 before calling TREE_CHAIN.
12443 * gcc-interface/misc.c (gnat_init_ts): New function.
12444 (LANG_HOOKS_INIT_TS): Define.
12445
124462011-04-12 Martin Jambor <mjambor@suse.cz>
12447
12448 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
12449 instead of cgraph_node.
12450
124512011-04-08 Eric Botcazou <ebotcazou@adacore.com>
12452
12453 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
12454 alignment on fields of the RETURN type built for the Copy-In Copy-Out
12455 mechanism.
12456
124572011-04-08 Eric Botcazou <ebotcazou@adacore.com>
12458
12459 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
12460 of aggregate types that contain a placeholder.
12461
124622011-04-08 Nathan Froyd <froydnj@codesourcery.com>
12463
12464 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
12465 TYPE_ARG_TYPES.
12466 (handle_type_generic_attribute): Likewise.
12467
124682011-04-04 Eric Botcazou <ebotcazou@adacore.com>
12469
12470 PR ada/47163
12471 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
12472
124732011-04-04 Kai Tietz <ktietz@redhat.com>
12474
12475 PR ada/47163
12476 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
12477 to flag value.
12478
124792011-04-02 Eric Botcazou <ebotcazou@adacore.com>
12480
12481 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
12482 type case, do not strip a padding type around the array type.
12483
124842011-04-02 Eric Botcazou <ebotcazou@adacore.com>
12485
12486 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
12487 types.
12488
124892011-04-02 Eric Botcazou <ebotcazou@adacore.com>
12490
12491 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
12492 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
12493 code for -feliminate-unused-debug-types.
12494 (gnat_post_options): Likewise.
12495
124962011-04-02 Eric Botcazou <ebotcazou@adacore.com>
12497
12498 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
12499 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
12500 distinct copy.
12501
125022011-04-02 Eric Botcazou <ebotcazou@adacore.com>
12503
12504 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
12505 DECL_ARTIFICIAL flag on enumeration types.
12506
125072011-04-02 Eric Botcazou <ebotcazou@adacore.com>
12508
12509 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
12510 fat pointer types artificial unconditionally.
12511 <E_Array_Subtype>: Attach the base array type as a parallel type if it
12512 isn't artificial.
12513
125142011-04-02 Eric Botcazou <ebotcazou@adacore.com>
12515
12516 * gcc-interface/gigi.h (get_dummy_type): Declare.
12517 (build_dummy_unc_pointer_types): Likewise.
12518 (finish_fat_pointer_type): Likewise.
12519 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
12520 fat pointer type has been built, complete it in place.
12521 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
12522 and thin pointers. Remove useless variable.
12523 (finish_fat_pointer_type): Make global and move to...
12524 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
12525 (get_dummy_type): New function.
12526 (build_dummy_unc_pointer_types): Likewise.
12527 (gnat_pushdecl): Propage the name to the anonymous variants only.
12528 (update_pointer_to): Only adjust the pointer types in the unconstrained
12529 array case.
12530
125312011-04-02 Eric Botcazou <ebotcazou@adacore.com>
12532
12533 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
12534 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
12535 if this is a Taft amendment type and the full declaration is available.
12536 * gcc-interface/trans.c (process_type): Likewise.
12537 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
12538 (process_freeze_entity): Likewise.
12539 * gcc-interface/utils.c (dummy_global): New static variable.
12540 (gnat_write_global_declarations): If there are types declared as used
12541 at the global level, insert them in the global hash table.
12542
125432011-04-02 Eric Botcazou <ebotcazou@adacore.com>
12544
12545 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
12546 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
12547 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
12548 copy.
12549 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
12550 flag of the type accordingly.
12551 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
12552
125532011-04-02 Eric Botcazou <ebotcazou@adacore.com>
12554
12555 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
12556 finalizing types when updating the pointers to the designated type.
12557 <all>: Finalize the deferred types even if we didn't defer processing
12558 of incomplete types in this invocation.
12559
125602011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
12561 Nicolas Setton <setton@adacore.com>
12562 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
12563
12564 * gcc-interface/misc.c (gnat_descriptive_type): New function.
12565 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
12566
125672011-03-28 Kai Tietz <ktietz@redhat.com>
12568
12569 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
12570 Windows targets.
12571 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
12572 * system-mingw.ads (System): Change ZCX_By_Default default to True.
12573
12574 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
12575
125762011-03-28 Tristan Gingold <gingold@adacore.com>
12577
12578 PR ada/44431
12579 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
12580 Use ada output of gnatbind.
12581 (ada/b_gnatb.adb): Ditto.
12582 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
12583 (ada.mostlyclean, ada.stage1)
12584 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
12585 (ada.stagefeedback): Adjust.
12586 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
12587 Use ada output of gnatbind.
12588 (b_gnatm.adb): Ditto.
12589 (b_gnatl.o, b_gnatm.o): New rules.
12590
125912011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12592
12593 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
12594 for the padded type built to support a specified size or alignment.
12595
125962011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12597
12598 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
12599 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
12600 unconditionally to the end of the unit when the designated type is
12601 limited_with'ed.
12602 <all>: Rename local variable. Attempt to un-defer types only and do it
12603 for limited_with'ed types as well.
12604 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
12605 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
12606 consistently and remove redundant call to finalize_from_with_types.
12607
126082011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12609
12610 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
12611 subprograms without a previous spec declared in the same unit.
12612 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
12613 subprograms at the end of the unit instead of at the beginning.
12614 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
12615 isn't public for the special handling of non-inline functions nested
12616 inside inline external functions.
12617
126182011-03-25 Jeff Law <law@redhat.com>
12619
12620 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
12621
126222011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12623
12624 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
12625 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
12626 to compute Set_Size_Depends_On_Discriminant.
12627 (Layout_Type): Call it on array types in back-end layout mode.
12628 * sem_util.adb (Requires_Transient_Scope): Return true for array
12629 types only if the size depends on the value of discriminants.
12630 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
12631 type if the RHS is a call to a function that returns an unconstrained
12632 type with default discriminant.
12633
126342011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12635
12636 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
12637 non-conversion to the nominal result type at the end.
12638
126392011-03-23 Eric Botcazou <ebotcazou@adacore.com>
12640
12641 * gcc-interface/trans.c (create_temporary): New function taken from...
12642 (create_init_temporary): ...here. Call it.
12643 (call_to_gnu): Create the temporary for the return value early, if any.
12644 Create it for a function with copy-in/copy-out parameters if there is
12645 no target; in other cases of copy-in/copy-out, use another temporary.
12646 Push the new binding level lazily. Add and rename local variables.
12647
126482011-03-23 Eric Botcazou <ebotcazou@adacore.com>
12649
12650 * gcc-interface/decl.c (validate_size): Improve comments and tweak
12651 error message.
12652 (set_rm_size): Likewise.
12653
126542011-03-23 Eric Botcazou <ebotcazou@adacore.com>
12655
12656 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
12657 for the padded type built in order to support a specified alignment.
12658 Fix incorrect formatting.
12659
126602011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12661
12662 PR bootstrap/48216
12663 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
12664
126652011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12666
12667 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
12668 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
12669 to the end of the list. Adjust recursive call. Rename local variable.
12670 If REORDER is true, reorder components of the record type.
12671 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
12672 components_to_record and adjust the parameter list.
12673
126742011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12675
12676 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
12677 disabled, use the variable for bounds of loop iteration scheme.
12678
126792011-03-21 Kai Tietz <ktietz@redhat.com>
12680
12681 PR target/12171
12682 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
12683
126842011-03-17 Eric Botcazou <ebotcazou@adacore.com>
12685
12686 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
12687 out whether the expression is read-only. Short-circuit placeholder
12688 case and rename a couple of local variables.
12689
126902011-03-17 Eric Botcazou <ebotcazou@adacore.com>
12691
12692 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
12693 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
12694 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
12695 (convert): Deal with conversions from a smaller form type specially.
12696
126972011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12698
12699 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
12700 its argument, except for the special -I- switch.
12701
127022011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
12703
12704 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
12705 "Ada Issues".
12706
127072011-02-08 Eric Botcazou <ebotcazou@adacore.com>
12708
12709 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
12710
127112011-02-03 Eric Botcazou <ebotcazou@adacore.com>
12712
12713 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
12714 GNAT_FORMAL.
12715 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
12716 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
12717 instead of GNAT_FORMAL. Protect the expression against multiple uses.
12718 Do not generate the check directly, instead instantiate the template
12719 check present in the descriptor.
12720 (make_descriptor_field): Move around.
12721 (build_vms_descriptor32): Build a template check in the POINTER field.
12722 (build_vms_descriptor): Remove useless suffixes.
12723 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
12724
127252011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12726
12727 PR bootstrap/47467
12728 * targext.c: Include target files if IN_RTS is defined.
12729
127302011-01-26 Richard Guenther <rguenther@suse.de>
12731
12732 PR bootstrap/47467
12733 * targext.c: Include config.h.
12734 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
12735 dependency.
12736
127372011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 12738 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
12739
12740 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
12741
127422011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12743
12744 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
12745 end-of-case on the end label and its associated gotos, if any.
12746
127472011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12748
12749 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
12750 expressions of the parameter cache within the statement group of
12751 the CICO mechanism.
12752
127532011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 12754 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
12755
12756 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
12757 (set_end_locus_from_node): New function.
12758 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
12759 make and the function end_locus.
12760 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
12761 for the elaboration subprogram.
12762 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
12763 set the end_locus of the expression as well.
12764
127652011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12766
12767 PR ada/47131
12768 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
12769 variables that are referenced in exception handlers volatile.
12770
12771
12772\f
12773Copyright (C) 2011 Free Software Foundation, Inc.
12774
12775Copying and distribution of this file, with or without modification,
12776are permitted in any medium without royalty provided the copyright
12777notice and this notice are preserved.
12778
12779 * gnat_rm.texi: Ramification of pragma Eliminate documentation
12780 - fix bugs in the description of Source_Trace;
12781 - get rid of UNIT_NAME;
12782
4fbad0ba
AC
127832011-08-02 Javier Miranda <miranda@adacore.com>
12784
12785 * exp_ch9.adb
12786 (Build_Dispatching_Requeue): Adding support for VM targets
12787 since we cannot directly reference the Tag entity.
12788 * exp_sel.adb (Build_K): Adding support for VM targets.
12789 (Build_S_Assignment): Adding support for VM targets.
12790 * exp_disp.adb
12791 (Default_Prim_Op_Position): In VM targets do not restrict availability
12792 of predefined interface primitives to compiling in Ada 2005 mode.
12793 (Is_Predefined_Interface_Primitive): In VM targets this service is not
12794 restricted to compiling in Ada 2005 mode.
12795 (Make_VM_TSD): Generate code that declares and initializes the OSD
12796 record. Needed to support dispatching calls through synchronized
12797 interfaces.
12798 * exp_ch3.adb
12799 (Make_Predefined_Primitive_Specs): Enable generation of predefined
12800 primitives associated with synchronized interfaces.
12801 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
12802 primitives associated with synchronized interfaces.
12803
128042011-08-02 Yannick Moy <moy@adacore.com>
12805
12806 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
12807 statements hidden in SPARK if preceded by the HIDE directive
12808 (Parse_Exception_Handlers): mark each exception handler in a sequence of
12809 exception handlers as hidden in SPARK if preceded by the HIDE directive
12810 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
12811 if starting with the HIDE directive
12812 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
12813 starting with the HIDE directive; mark the declarations in a private
12814 part as hidden in SPARK if the private part starts with the HIDE
12815 directive
12816 * restrict.adb, restrict.ads
12817 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
12818 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
12819 argument node belongs to a part which is hidden in SPARK
12820 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
12821 parts in SPARK; protect the possibly costly call to
12822 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
12823 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
12824 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
12825 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
12826 Tok_SPARK_Hide.
12827 (Scan): recognize special comment starting with '#' and followed by
12828 SPARK keyword "hide" as a HIDE directive.
12829
128302011-08-02 Yannick Moy <moy@adacore.com>
12831
12832 * types.ads, erroutc.ads: Minor reformatting.
12833
128342011-08-02 Vincent Celier <celier@adacore.com>
12835
12836 * link.c: Add response file support for cross platforms.
12837
6ff6152d
ES
128382011-08-02 Ed Schonberg <schonberg@adacore.com>
12839
12840 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
12841 in an association, set parent field of copy before partial analysis.
12842 * sem_res.adb (Resolve_Slice): create reference to itype only when
12843 expansion is enabled.
12844
975c6896
YM
128452011-08-02 Yannick Moy <moy@adacore.com>
12846
12847 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
12848 for new flag denoting which subprogram bodies are in ALFA
12849 * restrict.adb, sem_ch7.adb: Update comment
12850 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
12851 sem_ch9.adb, sem_res.adb: Add calls to
12852 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
12853 * sem_ch6.adb (Analyze_Function_Return): add calls to
12854 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
12855 middle of the body, and extended return.
12856 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
12857 False when missing return.
12858 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
12859 to True for subprograms whose spec is in ALFA. Remove later on the flag
12860 on the entity used for a subprogram body when there exists a separate
12861 declaration.
12862 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
12863 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
12864 False, otherwise do nothing.
12865
afc8324d
AC
128662011-08-02 Robert Dewar <dewar@adacore.com>
12867
12868 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
12869
128702011-08-02 Yannick Moy <moy@adacore.com>
12871
12872 * sem_ch4.ads: minor formatting.
12873
2ba431e5
YM
128742011-08-02 Yannick Moy <moy@adacore.com>
12875
12876 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
12877 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
12878 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
12879 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
12880 opt.ads: cleanup of SPARK mode
12881
0f853035
YM
128822011-08-02 Yannick Moy <moy@adacore.com>
12883
12884 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
12885 types.
12886 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
12887 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
12888 * sem_ch3.adb
12889 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
12890 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
12891 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
12892 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
12893 types.
12894 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
12895 non-static range.
12896 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
12897 functions whose return type is not in ALFA.
12898 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
12899 specifications.
12900 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
12901 parameter's type is not in ALFA.
12902 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
12903 types are in ALFA.
12904
d2b10647
ES
129052011-08-02 Ed Schonberg <schonberg@adacore.com>
12906
12907 * sem_ch6 (Analyze_Expression_Function): treat the function as
12908 Inline_Always, and introduce a subprogram declaration for it when it is
12909 not a completion.
12910 * inline.adb (Add_Inlined_Body): recognize bodies that come from
12911 expression functions, so that the back-end can determine whether they
12912 can in fact be inlined.
12913 * sem_util.adb (Is_Expression_Function): predicate to determine whether
12914 a function body comes from an expression function.
12915
c7b9d548
AC
129162011-08-02 Gary Dismukes <dismukes@adacore.com>
12917
12918 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
12919 null exclusions to test Can_Never_Be_Null on the anonymous access types
12920 of the formals rather than testing the formals themselves. Exclude this
12921 check in cases where the Old_Formal is marked as a controlling formal,
12922 to avoid issuing spurious errors for bodies completing dispatching
12923 operations (due to the flag not getting set on controlling access
12924 formals in body specs).
12925 (Find_Corresponding_Spec): When checking full and subtype conformance of
12926 subprogram bodies in instances, pass Designated and E in that order, for
12927 consistency with the expected order of the formals (New_Id followed by
12928 Old_Id).
12929
129302011-08-02 Robert Dewar <dewar@adacore.com>
12931
12932 * sem_ch8.adb: Minor reformatting.
12933
1138cf59
AC
129342011-08-02 Ed Schonberg <schonberg@adacore.com>
12935
12936 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
12937 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
12938 primitive operations of class-wide actuals.
12939
129402011-08-02 Javier Miranda <miranda@adacore.com>
12941
12942 * exp_atag.ads, exp_atag.adb
12943 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
12944 since its value is implicitly passed in argument Typ.
12945 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
12946 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
12947 Build_Common_Dispatching_Select_Statements.
12948
7b9db926
RD
129492011-08-02 Robert Dewar <dewar@adacore.com>
12950
12951 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
12952 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
12953 Minor reformatting.
12954
e8374e7a
AC
129552011-08-02 Robert Dewar <dewar@adacore.com>
12956
12957 * sem_res.adb: Minor reformatting.
12958 * sem_prag.adb: Minor reformatting.
12959
129602011-08-02 Javier Miranda <miranda@adacore.com>
12961
12962 * exp_atag.adb, exp_atags.ads
12963 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
12964 by the tagged type Entity. Required to use this routine in the VM
12965 targets since we do not have available the Tag entity in the VM
12966 platforms.
12967 * exp_ch6.adb
12968 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
12969 Ada.Tags has not been previously loaded.
12970 * exp_ch7.adb
12971 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
12972 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
12973 * sem_aux.adb
12974 (Enclosing_Dynamic_Scope): Add missing support to handle the full
12975 view of enclosing scopes. Required to handle enclosing scopes that
12976 are synchronized types whose full view is a task type.
12977 * exp_disp.adb
12978 (Build_VM_TSDs): Minor code improvement to avoid generating and
12979 analyzing lists with empty nodes.
12980 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
12981 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
12982 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
12983 (Make_Disp_Timed_Select_Body): Add support for VM targets.
12984 (Make_Select_Specific_Data_Table): Add support for VM targets.
12985 (Make_VM_TSD): Generate code to initialize the SSD structure of
12986 the TSD.
12987
129882011-08-02 Yannick Moy <moy@adacore.com>
12989
12990 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
12991 cross-references section in ALI.
12992 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
12993 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
12994 Sub).
12995 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
12996 subprogram or package entity of a node
12997 (Is_Local_Reference_Type): new function returns True for references
12998 selected in local cross-references.
12999 (Lt): function extracted from Lt in Output_References
13000 (Write_Entity_Name): function extracted from Output_References
13001 (Generate_Definition): generate reference with type 'D' for definition
13002 of objects (object declaration and parameter specification), with
13003 appropriate locations and units, for use in local cross-references.
13004 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
13005 references of type 'I' for initialization in object definition.
13006 (Output_References): move part of function Lt and procedure
13007 Write_Entity_Name outside of the body. Ignore references of types 'D'
13008 and 'I' introduced for local cross-references.
13009 (Output_Local_References): new procedure to output the local
13010 cross-references sections.
13011 (Lref_Entity_Status): new array defining whether an entity is a local
13012 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
13013 with 'I' type when initialization expression is present.
13014 * get_scos.adb, get_scos.ads: Correct comments and typos
13015
1f6439e3
AC
130162011-08-02 Javier Miranda <miranda@adacore.com>
13017
13018 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
13019 the JVM target.
13020 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
13021 the JVM target.
13022 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
13023 TSD support.
13024
130252011-08-02 Vincent Celier <celier@adacore.com>
13026
13027 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
13028 (No_Space_Img): New function
13029 (Find_Excluded_Sources): When reading from a file, record the file name
13030 and the line number for each excluded source.
13031 (Mark_Excluded_Sources): When reporting an error, if the excluded
13032 sources were read from a file, include file name and line number in
13033 the error message.
13034
130352011-08-02 Ed Schonberg <schonberg@adacore.com>
13036
13037 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
13038
ab027d28
RD
130392011-08-02 Robert Dewar <dewar@adacore.com>
13040
13041 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
13042
b3b28b0c
JM
130432011-08-02 Javier Miranda <miranda@adacore.com>
13044
13045 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
13046 generation of TSDs to the DOTNET compiler.
13047 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
13048 generation of TSDs to the DOTNET compiler.
13049
9732e886
JM
130502011-08-02 Javier Miranda <miranda@adacore.com>
13051
13052 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
13053 record of all the tagged types declared inside library level package
13054 declarations, library level package bodies or library level subprograms.
13055 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
13056 associated with a given tagged type.
13057 (Build_VM_TSDs): New subprogram.
13058 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
13059 compilation units that are subprograms.
13060 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
13061 compilation units that are package bodies.
13062 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
13063 units that are a package declaration or a package instantiation.
13064 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
13065 reorganization to improve the error generated by the frontend when the
13066 function Ada.Tags.Secondary_Tag is not available.
13067 * rtsfind.ads (RE_Register_TSD): New runtime entity.
13068 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
13069
e526d0c7
AC
130702011-08-02 Javier Miranda <miranda@adacore.com>
13071
13072 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
13073
130742011-08-02 Robert Dewar <dewar@adacore.com>
13075
13076 * s-imenne.ads: Minor reformatting.
13077
130782011-08-02 Robert Dewar <dewar@adacore.com>
13079
13080 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
13081 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
13082 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
13083
130842011-08-02 Robert Dewar <dewar@adacore.com>
13085
13086 * einfo.ads (Materialize_Entity): Document this is only for renamings
13087 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
13088 required debug information in the case where we transform the object
13089 declaration into a renaming declaration.
13090 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
13091 object
13092 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
13093 Materialize_Entity.
13094
5b1e6aca
RD
130952011-08-02 Robert Dewar <dewar@adacore.com>
13096
13097 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
13098 Suppress_Init_Procs.
13099 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
13100 Suppress_Initialization/Initialization_Suppressed.
13101 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
13102 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
13103 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
13104 * sem_prag.adb: New processing for pragma Suppress_Initialization.
13105
5ad4969d
RD
131062011-08-02 Robert Dewar <dewar@adacore.com>
13107
13108 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
13109 Minor reformatting.
13110
8c4ee6f5
AC
131112011-08-02 Ed Schonberg <schonberg@adacore.com>
13112
13113 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
13114 only have inheritable classwide pre/postconditions.
13115
131162011-08-02 Javier Miranda <miranda@adacore.com>
13117
13118 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
13119 * rtsfind.ads (RE_Check_TSD): New runtime entity.
13120 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
13121 checks if the external tag of a type is the same as the external tag
13122 of some other declaration.
13123
0b3d16c0
AC
131242011-08-02 Thomas Quinot <quinot@adacore.com>
13125
13126 * s-taskin.ads: Minor reformatting.
13127
131282011-08-02 Emmanuel Briot <briot@adacore.com>
13129
13130 * g-comlin.adb (Display_Help): swap the order in which it prints the
13131 short help and the general usage.
13132
131332011-08-02 Ed Schonberg <schonberg@adacore.com>
13134
13135 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
13136 the aspect declarations and attach them to the generic copy for
13137 subsequent analysis.
13138 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
13139 declarations of the generic tree to the new subprogram declarations.
13140 * sem_attr.adb (Check_Precondition_Postcondition): recognize
13141 conditions that apply to a subprogram instance.
13142
131432011-08-02 Robert Dewar <dewar@adacore.com>
13144
13145 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
13146
131472011-08-02 Ed Schonberg <schonberg@adacore.com>
13148
13149 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
13150 private type with a tagged full view is not derived in the immediate
13151 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
13152
4637729f
AC
131532011-08-02 Robert Dewar <dewar@adacore.com>
13154
13155 * exp_ch4.adb: Minor reformatting.
13156
131572011-08-02 Ed Schonberg <schonberg@adacore.com>
13158
13159 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
13160 Ada2012 iterator, the loop will be rewritten during expansion into a
13161 while loop with a cursor and an element declaration. Do not analyze the
13162 body in this case, because if the container is for indefinite types the
13163 actual subtype of the elements will only be determined when the cursor
13164 declaration is analyzed.
13165
131662011-08-02 Arnaud Charlet <charlet@adacore.com>
13167
13168 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
13169 size/alignment related attributes in CodePeer_Mode.
13170
131712011-08-02 Gary Dismukes <dismukes@adacore.com>
13172
13173 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
13174 Prepend_Element, since this can result in the operation getting the
13175 wrong slot in the full type's dispatch table if the full type has
13176 inherited operations. The incomplete type's operation will get added
13177 to the proper position in the full type's primitives
13178 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
13179 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
13180 dispatching operations, since there are cases where nonprimitive
13181 subprograms can get added to the list of incomplete dependents (such
13182 as subprograms in nested packages).
13183 * sem_ch6.adb (Process_Formals): First, remove test for being in a
13184 private part when determining whether to add a primitive with a
13185 parameter of a tagged incomplete type to the Private_Dependents list.
13186 Such primitives can also occur in the visible part, and should not have
13187 been excluded from being private dependents.
13188 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
13189 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
13190 list of a Taft-amendment incomplete type is a primitive before issuing
13191 an error that the full type must appear in the same unit. There are
13192 cases where nonprimitives can be in the list (such as subprograms in
13193 nested packages).
13194 * sem_disp.adb (Derives_From): Use correct condition for checking that
13195 a formal's type is derived from the type of the corresponding formal in
13196 the parent subprogram (the condition was completely wrong). Add
13197 checking that was missing for controlling result types being derived
13198 from the result type of the parent operation.
13199
4c60de0c
YM
132002011-08-02 Yannick Moy <moy@adacore.com>
13201
13202 * errout.adb (First_Node): minor renaming
13203 * restrict.adb (Check_Formal_Restriction): put restriction warning on
13204 first node.
13205
f5afb270
AC
132062011-08-02 Yannick Moy <moy@adacore.com>
13207
13208 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
13209 before accessing operands.
13210 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
13211 decide whether an initialization expression respects SPARK rules, as
13212 the plain node is the expanded one. This allows for more valid warnings
13213 to be issued.
13214 * gnat_rm.texi: Minor update.
13215
132162011-08-02 Arnaud Charlet <charlet@adacore.com>
13217
13218 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
13219 previous change.
13220
132212011-08-02 Robert Dewar <dewar@adacore.com>
13222
13223 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
13224
132252011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
13226
13227 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
13228 loop statements and the element renaming declaration with a block when
13229 the element type is controlled.
13230
132312011-08-02 Yannick Moy <moy@adacore.com>
13232
13233 * sinfo.ads: Minor formatting.
13234
132352011-08-02 Ed Schonberg <schonberg@adacore.com>
13236
13237 * sem_aggr.adb (Add_Association): if the association has a box and no
13238 expression, use the Sloc of the aggregate itself for the new
13239 association.
13240 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
13241 the Original_Node.
13242
db72f10a
AC
132432011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
13244
13245 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
13246 When a container is provided via a function call, generate a renaming
13247 of the function result. This avoids the creation of a transient scope
13248 and the premature finalization of the container.
13249 * exp_ch7.adb (Is_Container_Cursor): Removed.
13250 (Wrap_Transient_Declaration): Remove the supression of the finalization
13251 of the list controller when the declaration denotes a container cursor,
13252 it is not needed.
13253
132542011-08-02 Yannick Moy <moy@adacore.com>
13255
13256 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
13257 node is from source, instead of the original node being from source.
13258 * sem_aggr.adb
13259 (Resolve_Array_Aggregate): refine the check for a static expression, to
13260 recognize also static ranges
13261 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
13262 Array_Type_Declaration): postpone the test for the type being a subtype
13263 mark after the type has been resolved, so that component-selection and
13264 expanded-name are discriminated.
13265 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
13266 to distinguish the case of an iteration scheme, so that an error is
13267 issed on a non-static range in SPARK except in an iteration scheme.
13268 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
13269 In_Iter_Schm = True.
13270 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
13271 user-defined operators so that they are allowed in renaming
13272 * sem_ch8.adb
13273 (Find_Selected_Component): refine the check for prefixing of operators
13274 so that they are allowed in renaming. Move the checks for restrictions
13275 on selector name after analysis discriminated between
13276 component-selection and expanded-name.
13277 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
13278 concatenation argument of string type if it is static.
13279 * sem_util.adb, sem_util.ads
13280 (Check_Later_Vs_Basic_Declarations): add a new function
13281 Is_Later_Declarative_Item to decice which declarations are allowed as
13282 later items, in the two different modes Ada 83 and SPARK. In the SPARK
13283 mode, add that renamings are considered as later items.
13284 (Enclosing_Package): new function to return the enclosing package
13285 (Enter_Name): correct the rule for homonyms in SPARK
13286 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
13287 from source (result of expansion) to avoid issuing wrong warnings.
13288
132892011-08-02 Ed Schonberg <schonberg@adacore.com>
13290
13291 * errout.adb: On anything but an expression First_Node returns its
13292 argument.
13293
23685ae6
AC
132942011-08-02 Pascal Obry <obry@adacore.com>
13295
13296 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
13297
132982011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
13299
13300 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
13301 Set the associated loop as the related expression of internally
13302 generated cursors.
13303 * exp_ch7.adb (Is_Container_Cursor): New routine.
13304 (Wrap_Transient_Declaration): Supress the finalization of the list
13305 controller when the declaration denotes a container cursor.
13306
133072011-08-02 Yannick Moy <moy@adacore.com>
13308
13309 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
13310 command line now.
13311 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
13312 expression is a simple expression. This check cannot be performed in
13313 the semantics, so just drop it.
13314 (P_Index_Or_Discriminant_Constraint): move check that the index or
13315 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
13316 semantics. Other cases were previously checked in the semantics.
13317 * par-ch4.adb (P_Name): move checks that a selector name is not
13318 character literal or an operator symbol to Find_Selected_Component in
13319 the semantics
13320 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
13321 declarations are not placed after later declarations in a separate
13322 procedure in Sem_Util (possibly not the best choice?), to be used both
13323 during parsing, for Ada 83 mode, and during semantic analysis, for
13324 SPARK mode.
13325 * par-endh.adb (Check_End): move check that end label is not missing
13326 to Process_End_Label in the semantics
13327 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
13328 the special case for SPARK restriction
13329 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
13330 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
13331 parameter Force to issue the error message even on internal node (used
13332 for generated end label). Call Check_Restriction to check when an error
13333 must be issued. In SPARK mode, issue an error message even if the
13334 restriction is not set.
13335 (Check_Restriction): new procedure with an additional out parameter to
13336 inform the caller that a message has been issued
13337 * sem_aggr.adb: Minor modification of message
13338 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
13339 instead of issuing an error message directly
13340 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
13341 declarations are not placed after later declarations, by calling
13342 Check_Later_Vs_Basic_Declarations
13343 (Analyze_Subtype_Declaration): move here the check that an index or
13344 discriminant constraint must be a subtype mark. Change the check that
13345 a subtype of String must start at one so that it works on subtype marks.
13346 * sem_ch4.adb (Analyze_Call): move here the check that a named
13347 association cannot follow a positional one in a call
13348 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
13349 instead of issuing an error message directly
13350 * sem_ch8.adb (Find_Selected_Component): move here the check that a
13351 selector name is not a character literal or an operator symbol. Move
13352 here the check that the prefix of an expanded name cannot be a
13353 subprogram or a loop statement.
13354 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
13355 procedure called from parsing and semantics to check that basic
13356 declarations are not placed after later declarations
13357 (Process_End_Label): move here the check that end label is not missing
13358
133592011-08-02 Arnaud Charlet <charlet@adacore.com>
13360
13361 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
13362 representation clause in codepeer mode, since it confuses CodePeer and
13363 does not bring useful info.
13364
133652011-08-02 Ed Falis <falis@adacore.com>
13366
13367 * init.c: initialize fp hw on MILS.
13368
133692011-08-02 Ed Schonberg <schonberg@adacore.com>
13370
13371 * errout.adb (First_Node): for bodies, return the node itself (small
13372 optimization). For other nodes, do not check source_unit if the node
13373 comes from Standard.
13374
d2d9cc22
AC
133752011-08-02 Robert Dewar <dewar@adacore.com>
13376
13377 * exp_ch3.adb: Minor comment additions.
13378 * sem_ch13.adb: Minor reformatting.
13379
133802011-08-02 Pascal Obry <obry@adacore.com>
13381
13382 * make.adb, makeutl.adb: Removes some superfluous directory separator.
13383
a01b9df6
AC
133842011-08-02 Robert Dewar <dewar@adacore.com>
13385
13386 * sem_attr.adb: Minor reformatting.
13387
133882011-08-02 Robert Dewar <dewar@adacore.com>
13389
13390 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
13391 (Has_Default_Component_Value): Removed
13392 * einfo.ads Comment updates
13393 (Has_Default_Aspect): Replaces Has_Default_Value
13394 (Has_Default_Component_Value): Removed
13395 * exp_ch13.adb
13396 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
13397 * exp_ch3.adb
13398 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
13399 (Get_Simple_Init_Val): Handle Default_Value aspect
13400 (Needs_Simple_Initialization): Handle Default_Value aspect
13401 * exp_ch3.ads: Needs_Simple_Initialization
13402 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
13403 * par-prag.adb (Pragma_Default[_Component]Value) Removed
13404 * sem_ch13.adb
13405 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
13406 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
13407 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
13408
134092011-08-02 Ed Schonberg <schonberg@adacore.com>
13410
13411 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
13412 package containing iteration primitives.
13413 exp_ch5.adb (Expand_Iterator_Loop): ditto.
13414
75c90775
AC
134152011-08-02 Ed Schonberg <schonberg@adacore.com>
13416
13417 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
13418 "of", pre-analyze expression in case it is a function call with
13419 finalization actions that must be placed ahead of the loop.
13420 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
13421 on an Ada2012 iterator, insert them ahead of the rewritten loop.
13422
134232011-08-02 Geert Bosch <bosch@adacore.com>
13424
13425 * cstand.adb (Create_Float_Types): Only consider C's long double for
13426 Long_Long_Float, in addition to double.
13427
ded8909b
AC
134282011-08-02 Robert Dewar <dewar@adacore.com>
13429
13430 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
13431 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
13432 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
13433 Minor reformatting.
13434
134352011-08-02 Ed Schonberg <schonberg@adacore.com>
13436
13437 * sem_attr.adb: handle properly 'Result when it is a prefix of an
13438 indexed component.
13439
134402011-08-02 Javier Miranda <miranda@adacore.com>
13441
13442 * einfo.ads, einfo.adb
13443 (Original_Access_Type): Move this attribute to Node26 since there was
13444 an undocumented use of Node21 in E_Access_Subprogram_Type entities
13445 which causes conflicts and breaks the generation of the .NET compiler.
13446 (Interface_Name): Add missing documentation on JGNAT only uses of
13447 this attribute.
13448
70c34e1c
AC
134492011-08-02 Geert Bosch <bosch@adacore.com>
13450
13451 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
13452 (Find_Back_End_Float_Type): Likewise
13453 (Create_Back_End_Float_Types): Likewise
13454 (Create_Float_Types): Likewise
13455 (Register_Float_Type): Likewise
13456 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
13457 Nlist and split out type selection in new local Find_Base_Type function.
13458 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
13459 Nlist
13460 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
13461
134622011-08-02 Robert Dewar <dewar@adacore.com>
13463
13464 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
13465 alpha order).
13466 * opt.ads: Minor comment change.
13467 * sem_ch12.adb: Minor code reorganization.
13468
b715bc59
AC
134692011-08-02 Gary Dismukes <dismukes@adacore.com>
13470
13471 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
13472 subtype's list of rep items to the list on the full subtype in the case
13473 where the lists are the same.
13474
134752011-08-02 Geert Bosch <bosch@adacore.com>
13476
13477 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
13478 using the one from System.Strings, which also deallocates all strings.
13479
002bdd68
AC
134802011-08-02 Geert Bosch <bosch@adacore.com>
13481
13482 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
13483 function.
13484 * gcc-interface/Make-lang.in: Update dependencies.
13485
134862011-08-02 Olivier Hainque <hainque@adacore.com>
13487
13488 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
13489 end_locus.
13490
499769ec
AC
134912011-08-02 Javier Miranda <miranda@adacore.com>
13492
13493 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
13494 associated with anonymous access to subprograms.
13495
134962011-08-02 Geert Bosch <bosch@adacore.com>
13497
13498 * opt.ads
13499 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
13500 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
13501 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
13502 (Add_Symbol_Definition): Move to switch-c.adb
13503 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
13504 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
13505 (Add_Symbol_Definition): Move to switch-c.adb.
13506 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
13507 * sem_warn.adb
13508 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
13509 Move to warnsw.adb.
13510 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
13511 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
13512 Move to warnsw.adb.
13513 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
13514 (Add_Symbol_Definition): Moved from Prepcomp.
13515 * switch-c.ads: Update copyright notice. Use String_List instead of
13516 Argument_List, removing dependency on System.OS_Lib.
13517
aa1e353a
AC
135182011-08-02 Yannick Moy <moy@adacore.com>
13519
13520 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
13521 mode on initialization expression which does not respect SPARK
13522 restrictions.
13523 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
13524 if the tree referenced by its argument represents an initialization
13525 expression in SPARK, suitable for initializing an object in an object
13526 declaration.
13527
135282011-08-02 Javier Miranda <miranda@adacore.com>
13529
13530 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
13531 internally generated access to subprogram with its associated protected
13532 subprogram type.
13533 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
13534
15b682ca
GB
135352011-08-02 Geert Bosch <bosch@adacore.com>
13536
13537 * cstand.adb (Register_Float_Type): Print information about type to
13538 register, if the Debug_Flag_Dot_B is set.
13539 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
13540 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
13541 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
13542 with a requested precision of more than Max_Digits digits and no more
13543 than Max_Base_Digits digits, if a range specification is present and the
13544 Predefined_Float_Types list has a suitable type to derive from.
13545 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
13546 case of type completion with pragma Import
13547 * sem_prag.adb
13548 (Process_Import_Predefined_Type): Processing to complete a type
13549 with pragma Import. Currently supports floating point types only.
13550 (Set_Convention_From_Pragma): Do nothing without underlying type.
13551 (Process_Convention): Guard against absence of underlying type,
13552 which may happen when importing incomplete types.
13553 (Process_Import_Or_Interface): Handle case of importing predefined
13554 types. Tweak error message.
13555
f8726f2b
AC
135562011-08-02 Eric Botcazou <ebotcazou@adacore.com>
13557
13558 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
13559 functions to previous change. Reorganize code slightly.
13560
135612011-08-02 Geert Bosch <bosch@adacore.com>
13562
13563 * back_end.ads (Register_Type_Proc): New call back procedure type for
13564 allowing the back end to provide information about available types.
13565 (Register_Back_End_Types): New procedure to register back end types.
13566 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
13567 available types.
13568 * cstand.adb (Back_End_Float_Types): New list for floating point types
13569 supported by the back end.
13570 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
13571 (Copy_Float_Type): New procedure to make new copies of predefined types.
13572 (Register_Float_Type): New call back procedure to populate the BEFT list
13573 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
13574 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
13575 (Create_Float_Types): New procedure to create entities for floating
13576 point types predefined in Standard, and put these and any remaining
13577 BEFTs on the Predefined_Float_Types list.
13578 * stand.ads (Predefined_Float_Types): New list for predefined floating
13579 point types that do not have declarations in package Standard.
13580
feecad68
AC
135812011-08-02 Eric Botcazou <ebotcazou@adacore.com>
13582
13583 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
13584 entity node for the unit containing the parameter.
13585 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
13586 (Add_Inlined_Subprogram): Likewise.
13587 * gcc-interface/Make-lang.in: Update dependencies.
13588
135892011-08-02 Thomas Quinot <quinot@adacore.com>
13590
13591 * s-stusta.adb (Print): Make sure Pos is always initialized to a
13592 suitable value.
13593
12f0c50c
AC
135942011-08-02 Geert Bosch <bosch@adacore.com>
13595
13596 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
13597
135982011-08-02 Eric Botcazou <ebotcazou@adacore.com>
13599
13600 * sem_type.adb (Covers): Move trivial case to the top and reuse the
13601 computed value of Base_Type.
13602
136032011-08-02 Yannick Moy <moy@adacore.com>
13604
13605 * restrict.adb (Check_Restriction): issue an error for any use of
13606 class-wide, even if the No_Dispatch restriction is not set.
13607 * sem_aggr.adb: Correct typos in comments and messages in formal mode
13608 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
13609 when completing a private extension, the type named in the private part
13610 is not the same as that named in the visible part.
13611 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
13612 of an inherited primitive operations of a tagged type or type extension
13613 that returns the tagged type.
13614 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
13615 function which returns True for an implicit operation inherited by the
13616 derived type declaration for the argument type.
13617 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
13618 order.
13619
fb86fe11
ES
136202011-08-02 Ed Schonberg <schonberg@adacore.com>
13621
13622 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
13623 Process_Bounds, to perform analysis with expansion of a range or an
13624 expression that is the iteration scheme for a loop.
13625 (Analyze_Iterator_Specification): If domain of iteration is given by a
13626 function call with a controlled result, as is the case if call returns
13627 a predefined container, ensure that finalization actions are properly
13628 generated.
13629 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
13630
62be5d0a
JM
136312011-08-02 Javier Miranda <miranda@adacore.com>
13632
13633 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
13634 * gcc-interface/Make-lang.in: Update dependencies.
13635
136362011-08-02 Javier Miranda <miranda@adacore.com>
13637
13638 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
13639 determine if the analysis is performed using N or Original_Node (N).
13640 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
13641 functionality of routine Is_Variable avoids code duplication.
13642 * checks.adb (Determine_Range): Handle temporaries generated by
13643 Remove_Side_Effects.
13644
136452011-08-02 Javier Miranda <miranda@adacore.com>
13646
13647 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
13648 expansion of the condition. Required since the previous analysis was
13649 done with expansion disabled (see Resolve_Quantified_Expression) and
13650 hence checks were not inserted and record comparisons have not been
13651 expanded.
13652
a20f4389
AC
136532011-08-02 Ed Falis <falis@adacore.com>
13654
13655 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
13656 Update header.
13657
136582011-08-02 Bob Duff <duff@adacore.com>
13659
13660 * opt.ads: Minor comment fix.
13661
136622011-08-02 Bob Duff <duff@adacore.com>
13663
13664 * sem_ch12.adb (Analyze_Package_Instantiation,
13665 Analyze_Subprogram_Instantiation): Turn off style checking while
13666 analyzing an instance. Whatever style checks that apply to the generic
13667 unit should apply, so it makes no sense to apply them in an instance.
13668 This was causing trouble when compiling an instance of a runtime
13669 unit that violates the -gnatyO switch.
13670 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
13671 one of the two case statements, causing spurious errors.
13672
136732011-08-02 Robert Dewar <dewar@adacore.com>
13674
13675 * uname.adb: Minor reformatting.
13676 * gnatcmd.adb: Minor reformatting.
13677 * exp_attr.adb: Minor reformatting.
13678
90878b12
AC
136792011-08-02 Ed Schonberg <schonberg@adacore.com>
13680
13681 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
13682 No_Dispatching_Calls, do not look for the Assign primitive, because
13683 predefined primitives are not created in this case.
13684
136852011-08-02 Bob Duff <duff@adacore.com>
13686
13687 * stylesw.ads: Minor comment fixes.
13688
136892011-08-02 Robert Dewar <dewar@adacore.com>
13690
13691 * freeze.adb (Add_To_Result): New procedure.
13692
136932011-08-02 Jose Ruiz <ruiz@adacore.com>
13694
13695 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
13696 time, if the specific run-time routines for handling streams of strings
13697 are not available, use the default mechanism.
13698
136992011-08-02 Arnaud Charlet <charlet@adacore.com>
13700
13701 * s-regpat.ads: Fix typo.
13702
137032011-08-02 Vincent Celier <celier@adacore.com>
13704
13705 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
13706 not null, call it to create the in memory config project file without
13707 parsing an existing default config project file.
13708
137092011-08-02 Eric Botcazou <ebotcazou@adacore.com>
13710
13711 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
13712
137132011-08-02 Ed Schonberg <schonberg@adacore.com>
13714
13715 * sem_elim.adb: an abstract subprogram does not need an eliminate
13716 pragma for its descendant to be eliminable.
13717
137182011-08-02 Ed Falis <falis@adacore.com>
13719
13720 * init.c: revert to handling before previous checkin for VxWorks
13721 * s-intman-vxworks.adb: delete unnecessary declarations related to
13722 using Ada interrupt facilities for handling signals.
13723 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
13724 * s-intman-vxworks.ads: Import __gnat_install_handler as
13725 Initialize_Interrupts.
13726 * s-taprop-vxworks.adb: Delete Signal_Mask.
13727 (Abort_Handler): change construction of mask to unblock exception
13728 signals.
13729
273adcdf
AC
137302011-08-02 Jerome Guitton <guitton@adacore.com>
13731
13732 * a-except-2005.adb (Raise_From_Signal_Handler): Call
13733 Debug_Raise_Exception before propagation starts.
13734
137352011-08-02 Eric Botcazou <ebotcazou@adacore.com>
13736
13737 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
13738 to Restriction_Check_Required.
13739 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
13740 * sem_res.adb (Resolve_Call): Likewise.
13741 * sem_attr.adb (Check_Stream_Attribute): Likewise.
13742
137432011-08-02 Bob Duff <duff@adacore.com>
13744
13745 * stylesw.ads: Update comment.
13746 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
13747 * errout.ads: Remove obsolete comment.
13748
137492011-08-02 Javier Miranda <miranda@adacore.com>
13750
13751 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
13752 (Set_Is_Safe_To_Reevaluate): new procedure.
13753 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
13754 assignment is allowed on safe-to-reevaluate variables.
13755 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
13756 temporary created to remove side effects in expressions that use
13757 the secondary stack as safe-to-reevaluate.
13758 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
13759 variables that are not true constants.
13760
6320f5e1
AC
137612011-08-02 Robert Dewar <dewar@adacore.com>
13762
13763 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
13764 sem_res.adb, sem_ch6.adb: Minor reformatting.
13765
137662011-08-02 Jerome Guitton <guitton@adacore.com>
13767
13768 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
13769
2fe829ae
ES
137702011-08-02 Ed Schonberg <schonberg@adacore.com>
13771
13772 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
13773 not set Overridden_Operation if subprogram is an initialization
13774 procedure.
13775
e24329cd
YM
137762011-08-02 Yannick Moy <moy@adacore.com>
13777
13778 * par-ch6.adb: Correct obsolete name in comments
13779 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
13780 which takes two message arguments (existing function takes one), with
13781 second message used for continuation.
13782 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
13783 block statements that originate from a source block statement, not
13784 generated block statements
13785 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
13786 symmetry with procedure case
13787 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
13788 function to issue an error in formal mode if a package specification
13789 contains more than one tagged type or type extension.
13790 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
13791 parameters matching formals of tagged types are objects (or ancestor
13792 type conversions of objects), not general expressions. Issue an error
13793 on view conversions that are not involving ancestor conversion of an
13794 extended type.
13795 (Resolve_Type_Conversion): in formal mode, issue an error on the
13796 operand of an ancestor type conversion which is not an object
13797 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
13798 procedure so that it works also for actuals of function calls
13799 (Is_Actual_Tagged_Parameter): new function which determines if its
13800 argument is an actual parameter of a formal of tagged type in a
13801 subprogram call
13802 (Is_SPARK_Object_Reference): new function which determines if the tree
13803 referenced by its argument represents an object in SPARK
13804
176dadf6
AC
138052011-08-02 Robert Dewar <dewar@adacore.com>
13806
13807 * sem_ch3.adb: Minor reformatting
13808 Minor comment addition
13809 Minor error msg text change
13810
138112011-08-02 Javier Miranda <miranda@adacore.com>
13812
13813 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
13814 function. Used to be more precise when we generate a variable plus one
13815 assignment to remove side effects in the evaluation of the Bound
13816 expressions.
13817 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
13818 of the bound expression to force its re-analysis and thus expand the
13819 associated transient scope (if required). Code cleanup replacing the
13820 previous code that declared the constant entity by an invocation to
13821 routine Force_Evaluation which centralizes this work in the frontend.
13822
d8b962d8
AC
138232011-08-02 Robert Dewar <dewar@adacore.com>
13824
13825 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
13826 (Base_Type): Now uses improved Is_Base_Type function
13827 * einfo.ads (Base_Type): Inline this function
13828
138292011-08-02 Robert Dewar <dewar@adacore.com>
13830
13831 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
13832 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
13833
138342011-08-02 Arnaud Charlet <charlet@adacore.com>
13835
13836 * gcc-interface/Make-lang.in: Update dependencies.
13837 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
13838 targets.
13839
138402011-08-02 Yannick Moy <moy@adacore.com>
13841
13842 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
13843 non-simple expression used in delta constraint
13844 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
13845 index constraint which is not a subtype mark
13846 * par.adb: With and use Restrict
13847 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
13848 mode on component type which is not a subtype mark and default
13849 expression on component
13850 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
13851 of string which does not have a lower index bound equal to 1
13852 (Array_Type_Declaration): issue an error in formal mode on index or
13853 component type which is not a subtype mark, and on aliased keyword on
13854 component
13855 (Derived_Type_Declaration): issue an error in formal mode on interface,
13856 limited or abstract type
13857 (Record_Type_Declaration): issue an error in formal mode on interface
13858 (Record_Type_Definition): issue an error in formal mode on tagged types
13859 and type extensions not declared in the specification of a library unit
13860 package; on null non-tagged record; on variant part
13861
138622011-08-02 Vincent Celier <celier@adacore.com>
13863
13864 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
13865 not declared for qualified library project when Library_Name is not
13866 declared, but Library_Dir is.
13867
138682011-08-02 Robert Dewar <dewar@adacore.com>
13869
13870 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
13871 pragmas (affects aspects [Component_]Default_Value
13872 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
13873 component type for the resolution
13874
f96b2d85
AC
138752011-08-02 Eric Botcazou <ebotcazou@adacore.com>
13876
13877 * einfo.adb (Base_Type): Tune implementation for speed.
13878
138792011-08-02 Robert Dewar <dewar@adacore.com>
13880
13881 * freeze.adb: Minor reformatting.
13882
8b3c6430
AC
138832011-08-02 Thomas Quinot <quinot@adacore.com>
13884
13885 * scos.ads: Update comments.
13886
138872011-08-02 Ed Schonberg <schonberg@adacore.com>
13888
13889 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
13890 base type, because the parent may be a subtype of a private type whose
13891 convention is established in a private part.
13892
138932011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
13894
13895 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
13896 statement in a block when the expansion of the return expression has
13897 created a finalization chain.
13898 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
13899 with the parent node.
13900 Add N_Extended_Return_Statement to handle the case where a transient
13901 object declaration appears in the Return_Object_Declarations list of
13902 an extended return statement.
13903
139042011-08-02 Matthew Gingell <gingell@adacore.com>
13905
13906 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
13907 unused parameter 'name'.
13908
139092011-08-02 Ed Schonberg <schonberg@adacore.com>
13910
13911 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
13912 inherited operation, check whether its alias, which is the source
13913 operastion that it renames, has been marked eliminated.
13914
cae81f17
JM
139152011-08-02 Javier Miranda <miranda@adacore.com>
13916
13917 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
13918 in-mode parameter whose type is an access type since it can be used to
13919 modify its designated object. Enforce code that handles as safe an
13920 access type that is not access-to-constant but it is the result of a
13921 previous removal of side-effects.
13922 (Remove_Side_Effects): Minor code reorganization of cases which require
13923 no action. Done to incorporate documentation on new cases uncovered
13924 working in this ticket: no action needed if this routine was invoked
13925 too early and the nodes are not yet decorated.
13926 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
13927 to routine Remove_Side_Effects by calls to Force_Evaluation since they
13928 were issued with actuals that are implicitly provided by
13929 Force_Evaluation.
13930
218e6dee
RD
139312011-08-02 Robert Dewar <dewar@adacore.com>
13932
13933 * sem_ch3.adb, sem_res.adb: Minor reformatting.
13934
7a489a2b
AC
139352011-08-02 Yannick Moy <moy@adacore.com>
13936
13937 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
13938 to issue an error in formal mode on attribute not supported in this mode
13939 (Analyze_Attribute): issue errors on standard attributes not supported
13940 in formal mode.
13941 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
13942 comment, and issue error in formal mode on modulus which is not a power
13943 of 2.
13944 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
13945 range.
13946 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
13947 subtype mark.
13948 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
13949 operator on modular type (except 'not').
13950
139512011-08-02 Robert Dewar <dewar@adacore.com>
13952
13953 * gnat_rm.texi: Minor reformatting.
13954
cb7fa356
AC
139552011-08-02 Arnaud Charlet <charlet@adacore.com>
13956
13957 * s-osinte-linux.ads: Minor comment update and reformatting.
13958 * i-cexten.ads: Make this unit pure, as for its parent.
13959 Will allow its usage in more contexts if needed.
13960
139612011-08-02 Robert Dewar <dewar@adacore.com>
13962
13963 * s-utf_32.ads: Minor comment fix.
13964
139652011-08-02 Ed Schonberg <schonberg@adacore.com>
13966
13967 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
13968 operation of a tagged synchronized type, handle the case where the
13969 controlling argument is overloaded.
13970
139712011-08-02 Yannick Moy <moy@adacore.com>
13972
13973 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
13974 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
13975 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
13976 SPARK mode and formal verification mode on processing SPARK restriction
13977 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
13978 requiring consistency checking.
13979
5cc9353d
RD
139802011-08-02 Robert Dewar <dewar@adacore.com>
13981
13982 * sem_res.adb: Minor reformatting.
13983
e51537ff
RD
139842011-08-02 Robert Dewar <dewar@adacore.com>
13985
13986 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
13987 a-cforse.ads: Remove unneeded with of Ada.Containers
13988 Remove commented out pragma Inline's
13989 Move specifications of new subprograms to the actual specs
13990
83fa09c5
AC
139912011-08-02 Yannick Moy <moy@adacore.com>
13992
13993 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
13994 a-cforse.ads: Update comments.
13995
139962011-08-02 Ed Schonberg <schonberg@adacore.com>
13997
13998 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
13999
d11cfaf8
RD
140002011-08-02 Robert Dewar <dewar@adacore.com>
14001
14002 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
14003 a-cforse.ads, a-cofove.ads: Minor reformatting.
14004
300b98bb
AC
140052011-08-02 Claire Dross <dross@adacore.com>
14006
14007 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
14008 a-cofove.ads: Add comments.
14009
140102011-08-02 Yannick Moy <moy@adacore.com>
14011
14012 * gnat_rm.texi: Document formal containers.
14013
140142011-08-02 Emmanuel Briot <briot@adacore.com>
14015
14016 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
14017 are empty sections.
14018
19fb051c
AC
140192011-08-02 Robert Dewar <dewar@adacore.com>
14020
14021 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
14022 reformatting.
14023
140242011-08-02 Robert Dewar <dewar@adacore.com>
14025
14026 * aspects.adb: New aspects Default_Value and Default_Component_Value
14027 New format of Aspect_Names table checks for omitted entries
14028 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
14029 handling of boolean aspects for derived types.
14030 New aspects Default_Value and Default_Component_Value
14031 New format of Aspect_Names table checks for omitted entries
14032 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
14033 (Has_Default_Value): New flag
14034 (Has_Default_Component_Value): New flag
14035 (Has_Default_Value): New flag
14036 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
14037 table.
14038 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
14039 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
14040 Default_Value and Default_Component_Value
14041 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
14042 New aspects Default_Value and Default_Component_Value
14043 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
14044 * sprint.adb: Print N_Aspect_Specification node when called from gdb
14045
140462011-08-02 Vincent Celier <celier@adacore.com>
14047
14048 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
14049 inherit library kind.
14050
140512011-08-02 Ed Schonberg <schonberg@adacore.com>
14052
14053 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
14054 Minor reformatting.
14055
140562011-08-02 Robert Dewar <dewar@adacore.com>
14057
14058 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
14059
5f7747af
AC
140602011-08-02 Yannick Moy <moy@adacore.com>
14061
14062 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
14063
140642011-08-02 Robert Dewar <dewar@adacore.com>
14065
14066 * impunit.adb: Add comment.
14067
a5fe697b
AC
140682011-08-02 Yannick Moy <moy@adacore.com>
14069
14070 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
14071 qualification of aggregates in formal mode
14072 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
14073 another aggregate
14074 (Resolve_Aggregate): complete the test that an aggregate is adequately
14075 qualified in formal mode
14076
140772011-08-02 Pascal Obry <obry@adacore.com>
14078
14079 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
14080 * mlib-prj.adb: Supress warning when compiling binder generated file.
14081 (Build_Library): Supress all warnings when compiling the binder
14082 generated file.
14083
bd65a2d7 140842011-08-02 Yannick Moy <moy@adacore.com>
d4487611 14085
bd65a2d7
AC
14086 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
14087 from here...
14088 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
14089 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
14090 Add with/use clauses to make Check_Formal_Restriction visible
14091
140922011-08-02 Ed Schonberg <schonberg@adacore.com>
14093
14094 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
14095 in-parameters when type of the generic formal is private in the generic
14096 spec and non-private in the body.
14097
140982011-08-02 Claire Dross <dross@adacore.com>
14099
14100 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
14101 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
14102 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
14103 * impunit.adb, Makefile.rtl: Take new files into account.
d4487611
AC
14104
141052011-08-02 Robert Dewar <dewar@adacore.com>
14106
14107 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
14108 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
14109
bd434b3f
YM
141102011-08-02 Yannick Moy <moy@adacore.com>
14111
14112 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
14113 formal mode
14114 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
14115 matching static array bounds, taking into account the special case of
14116 string literals
14117 * sem_ch3.adb: Typo in comment.
14118
fe5d3068
YM
141192011-08-02 Yannick Moy <moy@adacore.com>
14120
14121 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
14122 which issues an error in formal mode if its argument node is originally
14123 from source
14124 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
14125 has a discriminant specification so that it does not include the case
14126 of derived types
14127 (Derived_Type_Declaration): move here the test that a derived type has a
14128 discriminant specification
14129 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
14130 first element of a component association before accessing its choices
14131 (presence of component association is not enough)
14132 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
14133 declaration is a library item before accessing the next element in a
14134 list, as library items are not member of lists
14135 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
14136 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
14137 Check_Formal_Restriction whenever possible.
14138
b60a3f26
AC
141392011-08-02 Ed Schonberg <schonberg@adacore.com>
14140
14141 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
14142 reference when needed.
14143
141442011-08-02 Bob Duff <duff@adacore.com>
14145
14146 * gnat_ugn.texi: Fix typo.
14147
141482011-08-02 Vincent Celier <celier@adacore.com>
14149
14150 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
14151 archive file name. Do not use the full path name of archives for Open
14152 VMS.
14153
eaba57fb
RD
141542011-08-02 Robert Dewar <dewar@adacore.com>
14155
14156 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
14157 Analyze_Aspect_Specifications
14158 * sem_ch13.adb
14159 (Analyze_Aspect_Specifications): New handling for boolean aspects
14160 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
14161 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
14162 sequence for Analyze_Aspect_Specifications
14163 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
14164 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
14165
141662011-08-02 Robert Dewar <dewar@adacore.com>
14167
14168 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
14169 aspects, since these no longer exist.
14170
141712011-08-02 Robert Dewar <dewar@adacore.com>
14172
14173 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
14174 semicolon, do not try to see if there are aspects following it.
14175 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
14176 aspect spec.
14177
8830d1d2
AC
141782011-08-02 Robert Dewar <dewar@adacore.com>
14179
14180 * sem_ch8.adb, aspects.ads: Minor reformatting.
14181
141822011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14183
14184 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
14185 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
14186 extracted from...
14187 (Analyze_Aspect_Specifications): ...here. Call above procedure.
14188
7ff2d234
AC
141892011-08-02 Yannick Moy <moy@adacore.com>
14190
14191 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
14192 mode on subprogram declaration outside of package specification, unless
14193 it is followed by a pragma Import
14194 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
14195 Access_Type_Declaration): issue error in formal mode on access type
14196 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
14197 incomplete type
14198 (Analyze_Object_Declaration): issue error in formal mode on object
14199 declaration which does not respect SPARK restrictions
14200 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
14201 declaration which does not respect SPARK restrictions
14202 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
14203 error in formal mode on digits or delta constraint
14204 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
14205 decimal fixed point type
14206 (Derived_Type_Declaration): issue error in formal mode on derived type
14207 other than type extensions of tagged record types
14208 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
14209 with check on access definition
14210 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
14211 mode on protected definition.
14212 (Analyze_Task_Definition): issue error in formal mode on task definition
14213
142142011-08-02 Robert Dewar <dewar@adacore.com>
14215
14216 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
14217
806f6d37
AC
142182011-08-02 Javier Miranda <miranda@adacore.com>
14219
14220 * sem_ch6.adb (Can_Override_Operator): New function.
14221 (Verify_Overriding_Indicator): Add missing code to check overriding
14222 indicator in operators. Fixes regression.
14223 (Check_Overriding_Indicator): Minor reformating after replacing the
14224 code that evaluates if the subprogram can override an operator by
14225 invocations to the above new function.
14226 * einfo.adb
14227 (Write_Field26_Name): Add missing code to ensure that, following
14228 the documentation in einfo.ads, this field is not shown as attribute
14229 "Static_Initialization" on non-dispatching functions.
14230
142312011-08-02 Jose Ruiz <ruiz@adacore.com>
14232
14233 * sem_res.adb (Resolve_Call): A call to
14234 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
14235 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
14236 i.e., when the second parameter is of type Time_Span.
14237
142382011-08-02 Vincent Celier <celier@adacore.com>
14239
14240 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
14241 with an archive instead of -L<library dir> -l<library name>.
14242
142432011-08-02 Ed Schonberg <schonberg@adacore.com>
14244
14245 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
14246 mark the base types In_Use in addition to making the operations
14247 use_visible.
14248
142492011-08-02 Ed Falis <falis@adacore.com>
14250
14251 * init.c: add and setup __gnat_signal_mask for the exception signals
14252 * s-inmaop-vxworks.adb: new file.
14253 * s-intman-vxworks.adb: remove unnecessary initializations and
14254 simplify remaining
14255 * s-intman-vxworks.ads: remove unnecessary variable
14256 * s-taprop-vxworks.adb: simplify signal initialization
14257
780d052e
RD
142582011-08-02 Robert Dewar <dewar@adacore.com>
14259
14260 * sem_ch8.adb: Minor code reorganization, comment updates.
14261
142622011-08-02 Robert Dewar <dewar@adacore.com>
14263
14264 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
14265 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
14266 here from Sem_Res.
14267 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
14268 (Matching_Static_Array_Bounds): Moved here from Sem_Res
14269
29efbb8c
ES
142702011-08-02 Ed Schonberg <schonberg@adacore.com>
14271
14272 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
14273 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
14274 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
14275 use_type_clauses, to handle more efficiently use_type and use_all_type
14276 constructs.
14277 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
14278 Ada2012 Use_All_Type clause.
14279 (Use_Class_Wide_Operations): new procedure.
14280
b0186f71
AC
142812011-08-02 Robert Dewar <dewar@adacore.com>
14282
14283 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
14284 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
14285 expression to expression function.
14286
142872011-08-02 Ed Schonberg <schonberg@adacore.com>
14288
14289 * sem_ch4.adb: transform simple Ada2012 membership into equality only
14290 if types are compatible.
14291
142922011-08-02 Yannick Moy <moy@adacore.com>
14293
14294 * sem_res.adb (Matching_Static_Array_Bounds): new function which
14295 returns True if its argument array types have same dimension and same
14296 static bounds at each index.
14297 (Resolve_Actuals): issue an error in formal mode on actuals passed as
14298 OUT or IN OUT paramaters which are not view conversions in SPARK.
14299 (Resolve_Arithmetic_Op): issue an error in formal mode on
14300 multiplication or division with operands of fixed point types which are
14301 not qualified or explicitly converted.
14302 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
14303 Boolean or array type (except String) operands.
14304 (Resolve_Equality_Op): issue an error in formal mode on equality
14305 operators for array types other than String with non-matching static
14306 bounds.
14307 (Resolve_Logical_Op): issue an error in formal mode on logical operators
14308 for array types with non-matching static bounds. Factorize the code in
14309 Matching_Static_Array_Bounds.
14310 (Resolve_Qualified_Expression): issue an error in formal mode on
14311 qualified expressions for array types with non-matching static bounds.
14312 (Resolve_Type_Conversion): issue an error in formal mode on type
14313 conversion for array types with non-matching static bounds
14314
767bb4e8
AC
143152011-08-02 Robert Dewar <dewar@adacore.com>
14316
14317 * par-ch10.adb: Minor code reorganization (use Nkind_In).
14318
143192011-08-02 Ed Schonberg <schonberg@adacore.com>
14320
14321 * par-ch9.adb: save location of entry for proper error message.
14322
4ac2477e
JM
143232011-08-02 Javier Miranda <miranda@adacore.com>
14324
14325 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
14326 (Use_Full_View) which permits this routine to climb through the
14327 ancestors using the full-view of private parents.
14328 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
14329 Use_Full_View to true in calls to Is_Ancestor.
14330 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
14331 true in call to Is_Ancestor.
14332 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
14333 Use_Full_View to true in call to Is_Ancestor.
14334 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
14335 call to Is_Ancestor.
14336 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
14337 Use_Full_View to true in calls to Is_Ancestor.
14338 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
14339 Make_Select_Specific_Data_Table, Register_Primitive,
14340 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
14341 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
14342 to true in call to Is_Ancestor.
14343 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
14344 Use_Full_View to true in calls to Is_Ancestor.
14345 * exp_cg.adb
14346 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
14347 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
14348
9f90d123
AC
143492011-08-02 Robert Dewar <dewar@adacore.com>
14350
14351 * gnat_rm.texi: Minor reformatting.
14352 * sem_prag.adb: Minor reformatting.
14353
143542011-08-02 Tristan Gingold <gingold@adacore.com>
14355
14356 * vms_data.ads: Add VMS qualifier for -gnateP.
14357
143582011-08-02 Robert Dewar <dewar@adacore.com>
14359
14360 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
14361 * par-ch7.adb (P_Package): Proper placement of aspects for package
14362 decl/instantiation.
14363 * par-endh.adb (Check_End): Ad Is_Sloc parameter
14364 (End_Statements): Add Is_Sloc parameterr
14365 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
14366 (Check_End): Ad Is_Sloc parameter
14367 (End_Statements): Add Is_Sloc parameterr
14368
143692011-08-02 Vincent Celier <celier@adacore.com>
14370
14371 * ug_words: Add VMS qualifier equivalent to -gnateP:
14372 /SYMBOL_PREPROCESSING.
14373
143742011-08-02 Jose Ruiz <ruiz@adacore.com>
14375
14376 * gnat-style.texi: For hexadecimal numeric literals the typical
14377 grouping of digits is 4 to represent 2 bytes.
14378 A procedure spec which is split into several lines is indented two
14379 characters.
14380
143812011-08-02 Yannick Moy <moy@adacore.com>
14382
14383 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
14384 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
14385 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
14386 properly qualified
14387 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
14388 choice in array aggregate
14389 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
14390 mark as ancestor
14391 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
14392 positional and named aggregate for record, or others in record
14393 aggregate, or multiple choice in record aggregate
14394 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
14395 array operands to logical operations AND, OR and XOR do not have the
14396 same static lower and higher bounds
14397 * sem_ch5.adb, sinfo.ads: Correct typos in comments
14398
2933b16c
RD
143992011-08-01 Robert Dewar <dewar@adacore.com>
14400
14401 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
14402 Replaces Last_Source_Node_In_Sequence.
14403 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
14404 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
14405 parens and blank in string (this was inconsistently implemented).
14406 * errout.ads
14407 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
14408 blank in string (this was inconsistently implemented).
14409 * gnat1drv.adb
14410 (Set_Global_Switches): Set formal mode switches appropriately
14411 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
14412 * par-prag.adb
14413 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
14414 call Set_Error_Msg_Lang to set "spark" as language name.
14415 * par.adb: Remove unnecessary call to set formal language for errout
14416 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
14417 appropriately and call Set_Error_Msg_Lang to set "spark" as language
14418 name.
14419 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
14420 calls to it, moved after resolution so that types are known
14421 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
14422 result of concatenation is not of type String
14423 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
14424 concatenation is not properly restricted
14425 * gnat_rm.texi: Add doc on pragma Spark_95.
14426 * gcc-interface/Makefile.in: Remove obsolete target pairs for
14427 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
14428 * gcc-interface/Make-lang.in: Update dependencies.
14429
05dbd302
AC
144302011-08-01 Javier Miranda <miranda@adacore.com>
14431
14432 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
14433 condition that detects if the overridden operation must replace an
14434 existing entity.
14435
144362011-08-01 Javier Miranda <miranda@adacore.com>
14437
14438 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
14439 code declarations inserted by Insert_Actions in each alternative of the
14440 N_Case_Expression node.
14441
144422011-08-01 Robert Dewar <dewar@adacore.com>
14443
14444 * sem_ch6.adb: Minor code reorganization.
14445 * sem_util.adb: Minor reformatting.
14446
af9e051f
PO
144472011-08-01 Pascal Obry <obry@adacore.com>
14448
14449 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
14450 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
14451
1d801f21
AC
144522011-08-01 Yannick Moy <moy@adacore.com>
14453
14454 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
14455 literal or operator symbol which is prefixed
14456 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
14457 mode on access attributes.
14458 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
14459 that concatenation operands are properly restricted in formal mode
14460 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
14461 Analyze_Concatenation_Operand. Issue an error in formal mode if the
14462 result of the concatenation has a type different from String.
14463 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
14464 Analyze_Quantified_Expression, Analyze_Slice,
14465 Analyze_Null): issue an error in formal mode on unsupported constructs
14466 * sem_ch5.adb
14467 (Analyze_Block_Statement): only issue error on source block statement
14468 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
14469 function which returns the last node in a list of nodes for which
14470 Comes_From_Source returns True, if any
14471 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
14472 Last_Source_Node_In_Sequence
14473 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
14474 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
14475 mode on unsupported constructs
14476 * sem_ch9.adb Do not return after issuing error in formal mode, as the
14477 rest of the actions may be needed later on since the error is marked as
14478 not serious.
14479 * sinfo.ads: Typos in comments.
14480
144812011-08-01 Pascal Obry <obry@adacore.com>
14482
14483 * projects.texi: Minor editing.
14484
53beff22
YM
144852011-08-01 Yannick Moy <moy@adacore.com>
14486
14487 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
14488 insertion character ~~
14489 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
14490 (Set_Error_Msg_Lang): new procedure which fixes the language for use
14491 with insertion character ~~
14492 (Set_Msg_Text): treat insertion character ~~
14493 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
14494 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
14495 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
14496 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
14497 errors related to the formal language restriction not serious
14498 (insertion character |).
14499 * par.adb (Par): set formal language for error messages if needed
14500 * sem_ch6.adb (Check_Missing_Return): take into account possible
14501 generated statements at the end of the function
14502 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
14503 enumeration value to define a new pragma SPARK_95
14504 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
14505 SPARK_Version): new type and variables to store the SPARK version
14506 (none by default).
14507 (SPARK_Mode): return True when SPARK_Version is set
14508 * par-prag.adb: Correct indentation
14509 (Prag): take Pragma_SPARK_95 into account
14510 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
14511 into account.
14512
8d606a78
RD
145132011-08-01 Robert Dewar <dewar@adacore.com>
14514
14515 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
14516 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
14517 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
14518
1982d5a8
PO
145192011-08-01 Pascal Obry <obry@adacore.com>
14520
14521 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
14522 Target_Name to Get_Path call.
14523 (Parse_Single_Project): Likewise.
14524 (Post_Parse_Context_Clause): Likewise.
14525 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
14526 Call Initialise_Project_Path with the proper Target_Name.
14527 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
14528 search path.
14529 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
14530 with the proper Target_Name.
14531 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
14532 Part.Parse routine.
14533 (Parse_Project_And_Apply_Config): Likewise.
14534 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
14535 This is fine as this part of the code is supporting only native
14536 compilation.
14537 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
14538 is fine as this part of the code is supporting only native compilation.
14539
0d53d36b
AC
145402011-08-01 Yannick Moy <moy@adacore.com>
14541
14542 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
14543 of homonym, unless the homonym is one of the cases allowed in SPARK
14544 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
14545 package declaration occurring after a body.
14546
145472011-08-01 Robert Dewar <dewar@adacore.com>
14548
14549 * checks.adb, exp_ch4.adb: Minor reformatting.
14550
145512011-08-01 Javier Miranda <miranda@adacore.com>
14552
14553 * einfo.ads (Access_Disp_Table): Fix documentation.
14554 (Dispatch_Table_Wrappers): Fix documentation.
14555
145562011-08-01 Pascal Obry <obry@adacore.com>
14557
14558 * prj-env.adb, prj-env.ads: Minor reformatting.
14559
8ed68165
AC
145602011-08-01 Yannick Moy <moy@adacore.com>
14561
14562 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
14563 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
14564 procedures out of these packages.
2c7f9cc0 14565 * errout.ads, errout.adb
8ed68165
AC
14566 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
14567 procedures in of this package
14568 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
14569 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
14570 on misplaced later vs initial declarations, like in Ada 83
14571 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
14572 formal mode on attribute of private type whose full type declaration
14573 is not visible
14574 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
14575 package declaration inside a package specification
14576 (Analyze_Full_Type_Declaration): issue error in formal mode on
14577 controlled type or discriminant type
14578 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
14579 user-defined operator means that it should come from the source
14580 (New_Overloaded_Entity): issue error in formal mode on overloaded
14581 entity.
14582 * sem_ch6.ads, sem_ch13.ads: typos in comments.
14583
145842011-08-01 Thomas Quinot <quinot@adacore.com>
14585
14586 * atree.adb: Minor reformatting.
14587 * checks.adb: Minor reformatting.
14588
4230bdb7
AC
145892011-08-01 Vincent Celier <celier@adacore.com>
14590
14591 * s-parame-vms-ia64.ads: Fix typo in comment
14592 Minor reformatting
14593 * s-parame-vms-restrict.ads: Removed, unused.
14594
145952011-08-01 Javier Miranda <miranda@adacore.com>
14596
14597 * exp_ch3.adb
14598 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
14599 * sem_ch3.adb
14600 (Constrain_Index): Remove side effects in the evaluation of the bounds.
14601 * sem_ch3.ads, sem_ch3.adb
14602 (Is_Constant_Bound): New extended version of the subprogram that was
14603 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
14604 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
14605 * sem_aux.ads (Constant_Value): Fix typo in comment.
14606 * checks.adb (Generate_Index_Checks): New implementation which, for
14607 array objects with constant bounds, generates the runtime check
14608 referencing the bounds of the array type. For other cases this routine
14609 provides its previous behavior obtaining such values from the array
14610 object.
14611 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
14612 parent type.
14613 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
14614 we cannot have semantic interpretations of the new node.
14615
2010d078
AC
146162011-08-01 Ed Schonberg <schonberg@adacore.com>
14617
14618 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
14619 expressions.
14620
146212011-08-01 Arnaud Charlet <charlet@adacore.com>
14622
14623 * sem_ch8.adb: Minor code editing.
14624 * s-vxwext.adb: Remove trailing space.
14625 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
14626 consistency with other files.
14627
146282011-08-01 Thomas Quinot <quinot@adacore.com>
14629
14630 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
14631
146322011-08-01 Ed Schonberg <schonberg@adacore.com>
14633
14634 * par-ch10.adb: reject parameterized expressions as compilation unit.
14635 * sem_ch4.adb: handle properly conditional expression with overloaded
14636 then_clause and no else_clause.
14637
146382011-08-01 Tristan Gingold <gingold@adacore.com>
14639
14640 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
14641 like done by System.Aux_DEC.
14642 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
14643
daec8eeb
YM
146442011-08-01 Yannick Moy <moy@adacore.com>
14645
14646 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
14647 missing label at end of declaration (subprogram or package)
14648 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
14649 of positional and named parameter association
14650 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
14651 Error_Msg_SP which adds a prefix to the error message giving the name
14652 of the formal language analyzed
14653 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
14654 access result type in subprogram, unconstrained array as result type,.
14655 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
14656 procedure
14657 * sem_ch8.adb: Code clean up.
14658
38171f43
AC
146592011-08-01 Javier Miranda <miranda@adacore.com>
14660
14661 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
14662 * einfo.ads (Access_Disp_Table): Fix documentation.
14663 (Dispatch_Table_Wrappers): Fix documentation.
14664 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
14665 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
14666 to enforce the documentation of this attribute.
14667 (Set_Is_Interface): Cleanup the assertion.
14668 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
14669 the Underlying_Type entity before reading attribute Access_Disp_Table.
14670 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
14671 Locate the Underlying_Type before reading attribute Access_Disp_Table.
14672 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
14673 the Underlying_Type entity before reading attribute Access_Disp_Table.
14674 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
14675 Locate the Underlying_Type entity before reading attribute
14676 Access_Disp_Table.
14677
146782011-08-01 Ed Schonberg <schonberg@adacore.com>
14679
14680 * s-poosiz.ads: Additional overriding indicators.
14681
146822011-08-01 Yannick Moy <moy@adacore.com>
14683
14684 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
14685 formal mode.
14686 (Analyze_Iteration_Scheme): issue error in formal mode when loop
14687 parameter specification does not include a subtype mark.
14688 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
14689 formal mode on abstract subprogram.
14690 (Analyze_Subprogram_Specification): issue error in formal mode on
14691 user-defined operator.
14692 (Process_Formals): issue error in formal mode on access parameter and
14693 default expression.
14694 * sem_ch9.adb (Analyze_Abort_Statement,
14695 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
14696 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
14697 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
14698 Analyze_Requeue, Analyze_Selective_Accept,
14699 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
14700 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
14701 issue error in formal mode on user-defined raise statement.
14702
1f250383
AC
147032011-08-01 Thomas Quinot <quinot@adacore.com>
14704
14705 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
14706 declaration being hidden when overriding an implicit inherited
14707 subprogram.
14708 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
14709 (-gnats), do not complain about a source file that contains only a
14710 pragma No_Body.
14711
147122011-08-01 Ed Schonberg <schonberg@adacore.com>
14713
14714 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
14715 variable if already set.
14716
607d0635
AC
147172011-08-01 Arnaud Charlet <charlet@adacore.com>
14718
14719 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
14720 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
14721 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
14722 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
14723 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
14724 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
14725 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
14726 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
14727 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
14728 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
14729 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
14730 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
14731 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
14732 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
14733 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
14734 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
14735 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
14736 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
14737 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
14738 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
14739 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
14740 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
14741 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
14742 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
14743 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
14744 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
14745 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
14746 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
14747 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
14748 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
14749 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
14750 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
14751 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
14752 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
14753 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
14754 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
14755 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
14756 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
14757 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
14758 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
14759 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
14760 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
14761 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
14762 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
14763 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
14764 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
14765 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
14766 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
14767 s-osinte-mingw.ads: Update to GPLv3 run-time license.
14768 Use GNAT instead of GNARL.
14769
147702011-08-01 Bob Duff <duff@adacore.com>
14771
14772 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
14773 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
14774 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
14775 reformatting.
14776
147772011-08-01 Yannick Moy <moy@adacore.com>
14778
14779 * debug.adb (d.D) reverve flag for the SPARK mode
14780 (d.E) reverve flag for SPARK generation mode
14781 (d.F) reverve flag for Why generation mode
2c7f9cc0 14782 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
607d0635
AC
14783 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
14784 functions which return True when the corresponding modes are set
14785 (Formal_Language): return "spark" or "alfa" when in formal verification
14786 mode.
14787 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
14788 Error_Msg to prefix the error message with a tag giving the formal
14789 language
14790 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
14791 message with a tag giving the formal language
14792 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
14793 block statement
14794 (Analyze_Case_Statement): issue error in formal mode on case statement
14795 with a single "others" case alternative
14796 (Analyze_Exit_Statement): issue errors in formal mode on exit
14797 statements which do not respect SPARK restrictions
14798 (Analyze_Goto_Statement): issue error in formal mode on goto statement
14799 (Check_Unreachable_Code): always issue an error (not a warning) in
14800 formal mode on unreachable code (concerns both code after an infinite
14801 loop and after an unconditional jump, both not allowed in SPARK)
14802 * sem_ch6.adb (Analyze_Return_Statement): add call to
14803 Set_Return_Present for a procedure containing a return statement
14804 (already done for functions in Analyze_Function_Return)
14805 (Analyze_Function_Return): issue error in formal mode on extended
14806 return or if return is not last statement in function
14807 (Check_Missing_Return): issue error in formal mode if function does
14808 not end with return or if procedure contains a return
14809 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
14810 function to detect if there is an inner scope of its parameter S which
14811 is a loop.
14812
148132011-08-01 Thomas Quinot <quinot@adacore.com>
14814
14815 * sem_ch6.ads: Minor reformatting.
14816
d8b3ccb9
AC
148172011-08-01 Javier Miranda <miranda@adacore.com>
14818
14819 * sem_util.adb (Abstract_Interface_List): Complete condition when
14820 processing private type declarations to avoid reading unavailable
14821 attribute.
14822 (Is_Synchronized_Tagged_Type): Complete condition when processing
14823 private extension declaration nodes to avoid reading unavailable
14824 attribute.
14825
148262011-08-01 Thomas Quinot <quinot@adacore.com>
14827
14828 * sem_ch3.adb: Minor reformatting.
14829
148302011-08-01 Thomas Quinot <quinot@adacore.com>
14831
14832 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
14833 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
14834 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
14835 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
14836 for VMS, instead parametrize the common implementation with
14837 System.Parameters declarations.
14838
0bb9276c
AC
148392011-08-01 Eric Botcazou <ebotcazou@adacore.com>
14840
14841 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
14842
148432011-08-01 Tristan Gingold <gingold@adacore.com>
14844
14845 * seh_init.c: Fix SEH handler installation on win64.
14846
148472011-08-01 Ed Schonberg <schonberg@adacore.com>
14848
14849 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
14850 double analysis of an anonymous access to subprogram, because it can
14851 lead to improper sharing of profiles and a back-end crash.
14852
6a2e4f0b
AC
148532011-08-01 Robert Dewar <dewar@adacore.com>
14854
14855 * make.adb, sem_ch4.adb: Minor reformatting.
14856 * gcc-interface/Make-lang.in: Update dependencies.
14857 * sem_util.adb, exp_ch5.adb: Minor reformatting.
14858
148592011-08-01 Arnaud Charlet <charlet@adacore.com>
14860
14861 * gnat_rm.texi: Fix definition of Long_Integer.
14862
148632011-08-01 Ed Schonberg <schonberg@adacore.com>
14864
14865 * exp_aggr.adb: check limit size of static aggregate unconditionally,
14866 to prevent storage exhaustion.
14867 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
14868 finalized is a function body, insert the cleanup code before the final
14869 return statement, to prevent spurious warnings.
14870 * s-pooglo.ads: add overriding indicator.
14871
4561baf7
ES
148722011-08-01 Ed Schonberg <schonberg@adacore.com>
14873
14874 * sem_ch4.adb (Operator_Check): improve error message when both a
14875 with_clause and a use_clause are needed to make operator usage legal.
14876 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
14877 determine whether a compilation unit is visible within an other,
14878 either through a with_clause in the current unit, or a with_clause in
14879 its library unit or one one of its parents.
14880
383e179e
AC
148812011-08-01 Ed Schonberg <schonberg@adacore.com>
14882
14883 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
14884 over an arbitrary expression of an array or container type.
14885 * lib-xref.adb: clarify comment.
14886
148872011-08-01 Bob Duff <duff@adacore.com>
14888
14889 * einfo.ads: Minor reformatting.
14890 * debug.adb: Minor comment improvement.
14891
148922011-08-01 Javier Miranda <miranda@adacore.com>
14893
14894 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
14895 consider hidden subprograms as valid candidates.
14896
148972011-08-01 Arnaud Charlet <charlet@adacore.com>
14898
14899 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
14900
149012011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
14902
14903 * gnat_ugn.texi: Fix typo.
14904
61c161b2
AC
149052011-08-01 Robert Dewar <dewar@adacore.com>
14906
14907 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
14908 lib-xref.adb: Minor reformatting
14909
149102011-08-01 Gary Dismukes <dismukes@adacore.com>
14911
14912 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
14913 when to generate a call to Move_Final_List.
14914 (Has_Controlled_Parts): Remove this function.
14915
84df40f7
AC
149162011-08-01 Geert Bosch <bosch@adacore.com>
14917
14918 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
14919 "," in choice list.
14920
149212011-08-01 Thomas Quinot <quinot@adacore.com>
14922
14923 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
14924 explicit raise of a predefined exception as Comes_From_Source if the
14925 original N_Raise_Statement comes from source.
14926
149272011-08-01 Robert Dewar <dewar@adacore.com>
14928
14929 * sinfo.ads: Add comment.
14930 * sem_ch6.adb: Minor reformatting.
14931
149322011-08-01 Robert Dewar <dewar@adacore.com>
14933
14934 * freeze.adb (Freeze_Entity): Refine check for bad component size
14935 clause to avoid rejecting confirming clause when atomic/aliased present.
14936
149372011-08-01 Ed Schonberg <schonberg@adacore.com>
14938
14939 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
14940 better determine whether an entity reference is a write.
14941 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
14942 subcomponent.
14943 * lib-xref.adb (Output_References): Do no suppress a read reference at
14944 the same location as an immediately preceeding modify-reference, to
14945 handle properly in-out actuals.
14946
149472011-08-01 Tristan Gingold <gingold@adacore.com>
14948
14949 * env.c (__gnat_setenv) [VMS]: Refine previous change.
14950
149512011-08-01 Quentin Ochem <ochem@adacore.com>
14952
14953 * i-cstrin.adb (New_String): Changed implementation, now uses only the
14954 heap to compute the result.
14955
c7f0d2c0
AC
149562011-08-01 Robert Dewar <dewar@adacore.com>
14957
14958 * atree.ads: Minor reformatting.
14959
149602011-08-01 Emmanuel Briot <briot@adacore.com>
14961
14962 * g-expect.adb (Get_Command_Output): Fix memory leak.
14963
149642011-08-01 Geert Bosch <bosch@adacore.com>
14965
14966 * cstand.adb (P_Float_Type): New procedure to print the definition of
14967 predefined fpt types.
14968 (P_Mixed_Name): New procedure to print a name using mixed case
14969 (Print_Standard): Use P_Float_Type for printing floating point types
14970 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
14971 precision IEEE float.
14972
149732011-08-01 Thomas Quinot <quinot@adacore.com>
14974
14975 * sem_ch3.adb: Minor reformatting.
14976
149772011-08-01 Ed Schonberg <schonberg@adacore.com>
14978
14979 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
14980 the completion of a generic function, insert the new body rather than
14981 rewriting the original.
14982
149832011-08-01 Yannick Moy <moy@adacore.com>
14984
14985 * sinfo.ads, errout.ads: Typos in comments.
14986
1c54829e
AC
149872011-08-01 Robert Dewar <dewar@adacore.com>
14988
14989 * par-endh.adb: Minor reformatting.
14990
149912011-08-01 Robert Dewar <dewar@adacore.com>
14992
14993 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
14994 (Pre_Post_Aspects): New subtype.
14995 * par-ch12.adb (P_Generic): New syntax for aspects in packages
14996 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
14997 * par-ch7.adb (P_Package): Remove Decl parameter
14998 (P_Package): Handle new syntax for aspects (before IS)
14999 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
15000 new aspect syntax
15001 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
15002 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
15003 (P_Package): Remove Decl parameter
15004 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
15005 aspects
15006 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
15007 specs
15008 * sem_util.ads, sem_util.adb (Static_Boolean): New function
15009 * sinfo.ads: Document new syntax for aspects in packages etc.
15010 * sprint.adb: Handle new syntax of aspects before IS in package
15011
150122011-08-01 Thomas Quinot <quinot@adacore.com>
15013
15014 * atree.ads: Minor reformatting.
15015 * sem_prag.adb: Minor reformatting.
15016
150172011-08-01 Robert Dewar <dewar@adacore.com>
15018
15019 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
15020 case expr alternative.
15021
150222011-08-01 Ed Schonberg <schonberg@adacore.com>
15023
15024 * sem_ch12.adb: Fix typo.
15025
9eea4346
GB
150262011-08-01 Geert Bosch <bosch@adacore.com>
15027
15028 * sem_prag.adb (Check_No_Link_Name): New procedure.
15029 (Process_Import_Or_Interface): Use Check_No_Link_Name.
15030 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
15031 instead of Standard_Long_Long_Float_Size global. Preparation for
15032 eventual removal of per type constants.
15033 * exp_util.ads (Get_Stream_Size): New function returning the stream
15034 size value of subtype E.
15035 * exp_util.adb (Get_Stream_Size): Implement new function.
15036 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
15037 function.
15038 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
15039 * einfo.adb:
15040 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
15041
3d6c3bd7
GB
150422011-08-01 Geert Bosch <bosch@adacore.com>
15043
15044 * cstand.adb: Fix comments.
15045 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
15046 count of arguments.
15047
e7d897b8
AC
150482011-08-01 Robert Dewar <dewar@adacore.com>
15049
15050 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
15051
150522011-08-01 Geert Bosch <bosch@adacore.com>
15053
15054 * atree.ads: Fix comment.
15055
c228a069
AC
150562011-08-01 Robert Dewar <dewar@adacore.com>
15057
15058 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
15059 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
15060 * par.adb: Add with for Namet.Sp.
15061 * par-tchk.adb: Minor reformatting.
15062
150632011-08-01 Vincent Celier <celier@adacore.com>
15064
15065 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
15066 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
15067 of the init procedure of a SAL.
15068 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
15069 New procedure.
15070
150712011-08-01 Thomas Quinot <quinot@adacore.com>
15072
15073 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
15074 reformatting.
15075
150762011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15077
15078 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
15079
150802011-08-01 Thomas Quinot <quinot@adacore.com>
15081
15082 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
15083 conformant with its spec (return True only for types that have
15084 an overriding Initialize primitive operation that prevents them from
15085 having preelaborable initialization).
15086 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
15087 initialization for controlled types in Ada 2005 or later mode.
15088
857ade1b
RD
150892011-08-01 Robert Dewar <dewar@adacore.com>
15090
15091 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
15092 Postcondition.
15093 (Same_Aspect): New function.
15094 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
15095 Type_Invariant, Precondition, Postcondition.
15096 * snames.ads-tmpl: Add Name_Type_Invariant.
15097
bd949ee2
RD
150982011-08-01 Robert Dewar <dewar@adacore.com>
15099
15100 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
15101 here.
15102 (Freeze_All_Ent): Fix error in handling inherited aspects.
15103 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
15104 already analyzed, but don't skip entire processing of a declaration,
15105 that's wrong in some cases of declarations being rewritten.
15106 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
15107 Don't delay for integer, string literals
15108 Treat predicates in usual manner for delay, remove special case code,
15109 not needed.
15110 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
15111 (Build_Predicate_Function): Update saved expression in aspect
15112 (Build_Invariant_Procedure): Update saved expression in aspect
15113 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
15114 of replacement of discriminant references if the reference is simple.
15115
f1c952af
RD
151162011-08-01 Robert Dewar <dewar@adacore.com>
15117
15118 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
15119 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
15120 Static_Predicate and Dynamic_Predicate.
15121 (Build_Predicate_Function): Add processing for Static_Predicate
15122 and Dynamic_Predicate.
15123 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
15124 (From_Static_Predicate): New flag
15125 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
15126
151272011-08-01 Robert Dewar <dewar@adacore.com>
15128
15129 * usage.adb: Documentation cleanup for Ada version modes in usage.
15130 * expander.adb: Minor reformatting.
15131
47e11d08
AC
151322011-08-01 Robert Dewar <dewar@adacore.com>
15133
15134 * atree.ads: Minor comment fix.
15135 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
15136 a-witeio.ads, sem_prag.adb: Minor reformatting.
15137
151382011-08-01 Doug Rupp <rupp@adacore.com>
15139
15140 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
15141 pointers. Use descrip.h header file for convenience. Add some
15142 comments.
15143
151442011-08-01 Robert Dewar <dewar@adacore.com>
15145
15146 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
15147 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
15148 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
15149 New procedure.
15150 (Check_Aspect_At_End_Of_Declarations): New procedure
15151 (Analye_Aspect_Specification): Minor changes for above procedures
15152 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
15153 specification node as well.
15154
151552011-08-01 Pascal Obry <obry@adacore.com>
15156
15157 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
15158 Windows files. Use GetFilesAttributes() in this case to check for file
15159 existence instead of returning with an error code.
15160
a3a16b21
VC
151612011-08-01 Vincent Celier <celier@adacore.com>
15162
15163 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
15164 High is above Source length.
15165
ff58cc69
RD
151662011-08-01 Robert Dewar <dewar@adacore.com>
15167
15168 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
15169
6bb88533
AC
151702011-08-01 Robert Dewar <dewar@adacore.com>
15171
15172 * aspects.ads (Boolean_Aspects): New subtype.
15173 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
15174 for derived types in cases where the parent type and derived type have
15175 aspects.
15176 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
15177 with aspects when parent type also has aspects.
15178 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
15179 boolean expression at this point).
15180 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
15181 accordance with final decision on the Ada 2012 feature.
15182 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
15183
151842011-08-01 Matthew Heaney <heaney@adacore.com>
15185
15186 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
15187
060a3f28
AC
151882011-08-01 Pascal Obry <obry@adacore.com>
15189
15190 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
15191 Fix Replace_Slice when High is above current string size.
15192 (Replace_Slice): Fix DL computation when High is above current
15193 string length.
15194
151952011-08-01 Gary Dismukes <dismukes@adacore.com>
15196
15197 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
15198
e7f567a3
AC
151992011-08-01 Matthew Heaney <heaney@adacore.com>
15200
15201 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
15202 of node.
15203
152042011-08-01 Pascal Obry <obry@adacore.com>
15205
15206 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
15207 reformatting.
15208
1a265e78
AC
152092011-08-01 Ed Schonberg <schonberg@adacore.com>
15210
15211 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
15212 access to protected subprograms in generic bodies.
15213 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
15214 protected type, indicate that the convention of the subprogram is
15215 Convention_Protected, because it may be used in subsequent declarations
15216 within the protected declaration.
15217
152182011-08-01 Vincent Celier <celier@adacore.com>
15219
15220 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
15221 and "final" procedures when the name of the library is "ada", to avoid
15222 duplicate symbols "adainit" and "adafinal" in executables.
15223
67e28ef8
ES
152242011-08-01 Ed Schonberg <schonberg@adacore.com>
15225
15226 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
15227 quantified expression that appears within a postcondition and uses the
15228 Ada2012 'Result attribute.
15229
6da2ca7d
RO
152302011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15231
15232 * init.c (__gnat_error_handler): Cast reason to int.
15233 (__gnat_install_handler): Explain sa_sigaction use.
15234
7d5997c6
EB
152352011-07-24 Eric Botcazou <ebotcazou@adacore.com>
15236
15237 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
15238 subprogram has copy-in copy-out parameters, try to promote the mode of
15239 the return type if it is passed in registers.
15240
4b4cfdd5
EB
152412011-07-24 Eric Botcazou <ebotcazou@adacore.com>
15242
15243 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
15244 left operand as addressable.
15245
f3d34576
EB
152462011-07-24 Eric Botcazou <ebotcazou@adacore.com>
15247
15248 * gcc-interface/gigi.h (build_function_stub): Remove.
15249 (build_return_expr): Likewise.
15250 (convert_vms_descriptor): Declare.
15251 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
15252 (build_function_stub): Move to...
15253 * gcc-interface/utils2.c (build_return_expr): Move to...
15254 * gcc-interface/trans.c (build_function_stub): ...here.
15255 (build_return_expr): ...here.
15256 (Subprogram_Body_to_gnu): Add local variable for language_function.
15257 Disconnect the parameter attributes cache, if any, once done with it.
15258 Call end_subprog_body only after setting the end_locus.
15259 Build the stub associated with the function, if any, at the very end.
15260 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
15261 variables and streamline control flow.
15262
0a6ecc08
AC
152632011-07-23 Arnaud Charlet <charlet@adacore.com>
15264
15265 PR ada/49819
15266 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
15267 g-trasym-dwarf.adb.
15268
5b6d595b
RO
152692011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15270
15271 PR bootstrap/49794
15272 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
15273 Assign to act.sa_sigaction.
15274 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
15275 current->return_address to char * before arithmetic.
15276
94017021
RO
152772011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15278
15279 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
15280 Correct argument types.
15281 Extract code from reason.
15282 (__gnat_install_handler): Assign to act.sa_sigaction.
15283
52fd02bb
EB
152842011-07-21 Eric Botcazou <ebotcazou@adacore.com>
15285
15286 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
15287 (GNAT1_OBJS): ...here.
15288
f39a9ca2
EB
152892011-07-15 Eric Botcazou <ebotcazou@adacore.com>
15290
15291 PR ada/48711
15292 * g-socthi-mingw.adb (Fill): Fix formatting.
15293
9e36aa23
EB
15294 * gcc-interface/gigi.h: Move around comment.
15295
e3aca522
JDA
152962011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15297
15298 PR ada/46350
15299 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
15300
696b1960
FW
153012011-07-14 Florian Weimer <fw@deneb.enyo.de>
15302
15303 PR ada/48711
15304 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
15305
f542c405
EB
153062011-07-13 Eric Botcazou <ebotcazou@adacore.com>
15307
15308 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
15309 range comparison if Pmode is SImode.
15310
9e9bd455
LG
153112011-07-12 Laurent GUERBY <laurent@guerby.net>
15312 Eric Botcazou <ebotcazou@adacore.com>
15313
15314 * adadecode.c: Wrap up in extern "C" block.
15315 * adadecode.h: Likewise.
15316 * adaint.c: Likewise. Remove 'const' keyword.
15317 * adaint.h: Likewise.
15318 * argv.c: Likewise.
15319 * atree.h: Likewise.
15320 * cio.c: Likewise.
15321 * cstreams.c: Likewise.
15322 * env.c: Likewise.
15323 * exit.c: Likewise.
15324 * fe.h: Likewise.
15325 * final.c: Likewise.
15326 * init.c: Likewise.
15327 * initialize.c: Likewise.
15328 * link.c: Likewise.
15329 * namet.h: Likewise.
15330 * nlists.h: Likewise.
15331 * raise.c: Likewise.
15332 * raise.h: Likewise.
15333 * repinfo.h: Likewise.
15334 * seh_init.c: Likewise.
15335 * targext.c: Likewise.
15336 * tracebak.c: Likewise.
15337 * uintp.h: Likewise.
15338 * urealp.h: Likewise.
15339 * xeinfo.adb: Wrap up generated C code in extern "C" block.
15340 * xsinfo.adb: Likewise.
15341 * xsnamest.adb: Likewise.
15342 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
15343 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
15344 * gcc-interface/misc.c: Likewise.
15345 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
15346 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
15347 ada/targext.o here...
15348 (GNAT_ADA_OBJS): ...and not here.
15349 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
15350 (GNATBIND_OBJS): Reorder.
15351
7644b3c7
RH
153522011-07-07 Richard Henderson <rth@redhat.com>
15353
15354 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
15355 dwarf2out_frame_init.
15356
8384ac41
EB
153572011-07-07 Eric Botcazou <ebotcazou@adacore.com>
15358
15359 * gcc-interface/misc.c (gnat_init): Tweak previous change.
15360
fbdd5d87
RO
153612011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15362
15363 PR target/39150
15364 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
15365
1a072294
RG
153662011-07-06 Richard Guenther <rguenther@suse.de>
15367
8384ac41
EB
15368 * gcc-interface/misc.c (gnat_init): Merge calls to
15369 build_common_tree_nodes and build_common_tree_nodes_2.
1a072294
RG
15370 Re-initialize boolean_false_node.
15371
bc712852
EB
153722011-07-02 Eric Botcazou <ebotcazou@adacore.com>
15373 Olivier Hainque <hainque@adacore.com>
15374 Nicolas Setton <setton@adacore.com>
15375
15376 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
15377 the type according to the ARTIFICIAL_P parameter.
15378 (create_type_decl): Likewise.
15379 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
15380
2eb22389
EB
153812011-07-01 Eric Botcazou <ebotcazou@adacore.com>
15382
15383 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
15384 (gnatbind): Likewise.
15385
4bdaaf2f
RO
153862011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15387
15388 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
15389
c020c92b
EB
153902011-06-18 Eric Botcazou <ebotcazou@adacore.com>
15391
15392 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
15393 local variable throughout. Remove useless call to Base_Type.
15394 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
15395 Take it also into account for the volatileness of the field. Set the
15396 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
15397
96769d32
EB
153982011-06-18 Eric Botcazou <ebotcazou@adacore.com>
15399
15400 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
15401 on a dereference built for a by-ref object if it has an address clause.
15402
7e4680c1
EB
154032011-06-18 Eric Botcazou <ebotcazou@adacore.com>
15404
15405 * einfo.ads (Address_Taken): Document use for the second argument of
15406 Asm_Input and Asm_Output attributes.
15407 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
15408 argument is an entity name, then set Address_Taken on it.
15409 <Attribute_Asm_Output>: Likewise.
15410 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
15411 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
15412 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
15413 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
15414
154152011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
15416
15417 PR middle-end/46500
15418 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
15419
677f3fa8
JM
154202011-06-14 Joseph Myers <joseph@codesourcery.com>
15421
15422 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
15423 (ada/utils.o): Update dependencies.
15424 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
15425 ../../../libcpp/libcpp.a.
15426 * gcc-interface/utils.c: Include common/common-target.h.
15427 (process_attributes): Use targetm_common.have_named_sections.
15428
009db074
RG
154292011-06-07 Richard Guenther <rguenther@suse.de>
15430
0bad0e23
EB
15431 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
15432 set_sizetype.
009db074 15433
3bfc61cf
EB
154342011-06-06 Eric Botcazou <ebotcazou@adacore.com>
15435
0bad0e23 15436 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
3bfc61cf
EB
15437 TREE_THIS_NOTRAP flag.
15438
5c4a1c7b
EB
154392011-06-06 Eric Botcazou <ebotcazou@adacore.com>
15440
15441 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
15442 Fix thinko.
15443
e9f57686
EB
154442011-06-06 Eric Botcazou <ebotcazou@adacore.com>
15445
15446 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
15447 constants whose full view has discriminants specially.
15448
10e4d056
EB
154492011-06-06 Eric Botcazou <ebotcazou@adacore.com>
15450
15451 * gcc-interface/utils.c: Include diagnostic.h.
15452 (gnat_write_global_declarations): Output debug information for all
15453 global type declarations before finalizing the compilation unit.
15454 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
15455
0957c029
JJ
154562011-05-25 Jakub Jelinek <jakub@redhat.com>
15457
15458 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
15459
52d0a7ac
KT
154602011-05-25 Kai Tietz <ktietz@redhat.com>
15461
15462 * adaint.c (__gnat_to_canonical_file_list_next): Use array
15463 initialization instead of const/none-const pointer assignment.
15464
1ed1641d
JM
154652011-05-24 Joseph Myers <joseph@codesourcery.com>
15466
15467 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
15468 $(EXTRA_GNAT1_OBJS).
15469 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
15470 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
15471 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
15472 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
15473 libcommon-target.a instead of prefix.o.
15474
9fe72ebd
JM
154752011-05-21 Joseph Myers <joseph@codesourcery.com>
15476
15477 PR ada/49097
0bad0e23 15478 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9fe72ebd 15479
2691e6d7
JM
154802011-05-20 Joseph Myers <joseph@codesourcery.com>
15481
0bad0e23
EB
15482 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
15483 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
15484 instead of version.o.
2691e6d7 15485
2d0dd51a 154862011-05-18 Kai Tietz <ktietz@redhat.com>
bf6490b5
KT
15487
15488 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
15489 boolean_false_node instead of integer_zero_node.
15490 (convert_with_check): Likewise.
15491 * gcc-interface/decl.c (choices_to_gnu): Likewise.
15492
7bf9a5ac
EB
154932011-05-12 Eric Botcazou <ebotcazou@adacore.com>
15494
15495 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
15496 type of the parameter is an unconstrained array, convert the actual to
15497 the type of the formal in the In Out and Out cases as well.
15498
e5b00edf
NF
154992011-05-11 Nathan Froyd <froydnj@codesourcery.com>
15500
15501 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
15502 call build_function_type_array or build_varargs_function_type_array
15503 instead.
15504 (create_subprog_type): Don't call build_function_type; call
15505 build_function_type_vec instead.
15506
51545682
NF
155072011-05-11 Nathan Froyd <froydnj@codesourcery.com>
15508
15509 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
15510 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
15511 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
15512
c99c0026
EB
155132011-05-07 Eric Botcazou <ebotcazou@adacore.com>
15514
f620bd21
EB
15515 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
15516
c99c0026
EB
15517 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
15518 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
15519
3d528853
NF
155202011-05-05 Nathan Froyd <froydnj@codesourcery.com>
15521
c99c0026 15522 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
3d528853 15523
d7d058c5
NF
155242011-05-05 Nathan Froyd <froydnj@codesourcery.com>
15525
15526 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
15527 instead of accessing TYPE_ARG_TYPES directly.
15528 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
15529
805e60a0
EB
155302011-05-05 Eric Botcazou <ebotcazou@adacore.com>
15531
15532 PR ada/48844
15533 * gcc-interface/gigi.h (get_variant_part): Declare.
15534 * gcc-interface/decl.c (get_variant_part): Make global.
15535 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
15536 types have the same constant size, are record types and T1 has a
15537 variant part while T2 doesn't.
15538
907a08d9
EB
155392011-05-05 Eric Botcazou <ebotcazou@adacore.com>
15540
15541 * gcc-interface/utils.c (begin_subprog_body): Do not call
15542 get_pending_sizes.
15543 (end_subprog_body): Likewise.
15544
d35936ab
RG
155452011-05-04 Richard Guenther <rguenther@suse.de>
15546
15547 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
15548 int_const_binop.
15549 (pos_to_constructor): Likewise.
15550
c1fd8753 155512011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 15552 Eric Botcazou <ebotcazou@adacore.com>
c1fd8753
NF
15553
15554 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
15555 of build_function_type. Adjust calls to...
15556 (build_raise_check): ...this. Do not take a void_tree parameter.
15557 Call build_function_type_list instead of build_function_type.
15558 Fix head comment and swap couple of conditional blocks.
15559
4fb87d2b
EB
155602011-04-30 Eric Botcazou <ebotcazou@adacore.com>
15561
15562 * gnatvsn.ads (Library_Version): Bump to 4.7.
15563 (Current_Year): Bump to 2011.
15564
fa5e5a76
MM
155652011-04-29 Michael Matz <matz@suse.de>
15566
15567 * gcc-interface/misc.c (gnat_handle_option): Set
15568 warn_maybe_uninitialized.
15569
8d6a2f69
GP
155702011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
15571
15572 * gnat_ugn.texi (Complexity Metrics Control): Update link to
15573 the Watson/McCabe paper.
15574
770937fd
JM
155752011-04-23 Jim Meyering <meyering@redhat.com>
15576
15577 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
15578
eb601ae1
EB
155792011-04-22 Eric Botcazou <ebotcazou@adacore.com>
15580
15581 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
15582 onto the new type.
15583
7d7fcb08
EB
155842011-04-22 Eric Botcazou <ebotcazou@adacore.com>
15585
15586 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
15587 parameter.
15588 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
15589 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
15590 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
15591 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
15592 <all>: Do not set flags on the reused DECL node coming from an alias.
15593 Set DECL_IGNORED_P on the DECL node built for subprograms if they
15594 don't need debug info here...
15595 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
15596 (gigi): Adjust calls to create_subprog_decl.
15597 (build_raise_check): Likewise.
15598 (establish_gnat_vms_condition_handler): Likewise.
15599 (Compilation_Unit_to_gnu): Likewise.
15600 (gnat_to_gnu): Likewise.
15601
e1876cac
EB
156022011-04-21 Eric Botcazou <ebotcazou@adacore.com>
15603
15604 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
15605 (NO_REORDER_ADAFLAGS): New variable.
15606 (EXTRA_GNATTOOLS): Always define.
15607 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
15608 Clean up and adjust list of files compiled with special options.
15609 * gcc-interface/Make-lang.in: Likewise.
15610 (ada/decl.o): Cosmetical change.
15611 (ada/misc.o): Remove dependency on $(PLUGIN_H).
15612
04695783
JM
156132011-04-20 Jim Meyering <meyering@redhat.com>
15614
15615 * initialize.c (__gnat_initialize): Remove useless if-before-free.
15616
23399579
EB
156172011-04-17 Eric Botcazou <ebotcazou@adacore.com>
15618
15619 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
15620 $(CFLAGS) on the link line.
15621
51c5169c
EB
156222011-04-17 Eric Botcazou <ebotcazou@adacore.com>
15623
15624 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
15625 padded type built for the return type if it is unconstrained.
15626
61e46a7d
NF
156272011-04-14 Nathan Froyd <froydnj@codesourcery.com>
15628
15629 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
15630
81f653d6
NF
156312011-04-12 Nathan Froyd <froydnj@codesourcery.com>
15632
b4867846
EB
15633 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
15634 before calling TREE_CHAIN.
81f653d6
NF
15635 * gcc-interface/misc.c (gnat_init_ts): New function.
15636 (LANG_HOOKS_INIT_TS): Define.
15637
a358e188
MJ
156382011-04-12 Martin Jambor <mjambor@suse.cz>
15639
b4867846
EB
15640 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
15641 instead of cgraph_node.
a358e188 15642
29b1c5a4
EB
156432011-04-08 Eric Botcazou <ebotcazou@adacore.com>
15644
15645 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
15646 alignment on fields of the RETURN type built for the Copy-In Copy-Out
15647 mechanism.
15648
88872b00
EB
156492011-04-08 Eric Botcazou <ebotcazou@adacore.com>
15650
15651 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
15652 of aggregate types that contain a placeholder.
15653
dcf0c47e
NF
156542011-04-08 Nathan Froyd <froydnj@codesourcery.com>
15655
15656 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 15657 TYPE_ARG_TYPES.
dcf0c47e
NF
15658 (handle_type_generic_attribute): Likewise.
15659
53e3000c
EB
156602011-04-04 Eric Botcazou <ebotcazou@adacore.com>
15661
15662 PR ada/47163
15663 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
15664
ab380bb4
KT
156652011-04-04 Kai Tietz <ktietz@redhat.com>
15666
15667 PR ada/47163
0bad0e23
EB
15668 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
15669 to flag value.
ab380bb4 15670
8ffac116
EB
156712011-04-02 Eric Botcazou <ebotcazou@adacore.com>
15672
15673 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
15674 type case, do not strip a padding type around the array type.
15675
de9528f0
EB
156762011-04-02 Eric Botcazou <ebotcazou@adacore.com>
15677
15678 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
15679 types.
15680
d9d7a26c
EB
156812011-04-02 Eric Botcazou <ebotcazou@adacore.com>
15682
15683 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
15684 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 15685 code for -feliminate-unused-debug-types.
d9d7a26c
EB
15686 (gnat_post_options): Likewise.
15687
4cb12a90
EB
156882011-04-02 Eric Botcazou <ebotcazou@adacore.com>
15689
15690 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
15691 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
15692 distinct copy.
15693
acccc61c
EB
156942011-04-02 Eric Botcazou <ebotcazou@adacore.com>
15695
15696 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
15697 DECL_ARTIFICIAL flag on enumeration types.
15698
583eb0c9
EB
156992011-04-02 Eric Botcazou <ebotcazou@adacore.com>
15700
15701 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
15702 fat pointer types artificial unconditionally.
15703 <E_Array_Subtype>: Attach the base array type as a parallel type if it
15704 isn't artificial.
15705
e3edbd56
EB
157062011-04-02 Eric Botcazou <ebotcazou@adacore.com>
15707
15708 * gcc-interface/gigi.h (get_dummy_type): Declare.
15709 (build_dummy_unc_pointer_types): Likewise.
15710 (finish_fat_pointer_type): Likewise.
15711 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
15712 fat pointer type has been built, complete it in place.
15713 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
15714 and thin pointers. Remove useless variable.
15715 (finish_fat_pointer_type): Make global and move to...
15716 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
15717 (get_dummy_type): New function.
15718 (build_dummy_unc_pointer_types): Likewise.
15719 (gnat_pushdecl): Propage the name to the anonymous variants only.
15720 (update_pointer_to): Only adjust the pointer types in the unconstrained
15721 array case.
15722
65444786
EB
157232011-04-02 Eric Botcazou <ebotcazou@adacore.com>
15724
15725 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
15726 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
15727 if this is a Taft amendment type and the full declaration is available.
15728 * gcc-interface/trans.c (process_type): Likewise.
15729 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
15730 (process_freeze_entity): Likewise.
15731 * gcc-interface/utils.c (dummy_global): New static variable.
15732 (gnat_write_global_declarations): If there are types declared as used
15733 at the global level, insert them in the global hash table.
15734
1aeb40dd
EB
157352011-04-02 Eric Botcazou <ebotcazou@adacore.com>
15736
15737 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
15738 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
15739 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
15740 copy.
15741 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
15742 flag of the type accordingly.
15743 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
15744
80ec8b4c
EB
157452011-04-02 Eric Botcazou <ebotcazou@adacore.com>
15746
15747 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
15748 finalizing types when updating the pointers to the designated type.
15749 <all>: Finalize the deferred types even if we didn't defer processing
15750 of incomplete types in this invocation.
15751
2a9d769a 157522011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
15753 Nicolas Setton <setton@adacore.com>
15754 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
15755
15756 * gcc-interface/misc.c (gnat_descriptive_type): New function.
15757 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
15758
2438d7a6
KT
157592011-03-28 Kai Tietz <ktietz@redhat.com>
15760
333d8aff 15761 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
15762 Windows targets.
15763 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
15764 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 15765
80ec8b4c 15766 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 15767
8ad150f6
TG
157682011-03-28 Tristan Gingold <gingold@adacore.com>
15769
15770 PR ada/44431
80ec8b4c
EB
15771 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
15772 Use ada output of gnatbind.
8ad150f6
TG
15773 (ada/b_gnatb.adb): Ditto.
15774 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
15775 (ada.mostlyclean, ada.stage1)
15776 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
15777 (ada.stagefeedback): Adjust.
80ec8b4c 15778 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
15779 Use ada output of gnatbind.
15780 (b_gnatm.adb): Ditto.
15781 (b_gnatl.o, b_gnatm.o): New rules.
15782
51c7954d
EB
157832011-03-26 Eric Botcazou <ebotcazou@adacore.com>
15784
15785 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
15786 for the padded type built to support a specified size or alignment.
15787
6ddf9843
EB
157882011-03-26 Eric Botcazou <ebotcazou@adacore.com>
15789
15790 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
15791 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
15792 unconditionally to the end of the unit when the designated type is
15793 limited_with'ed.
15794 <all>: Rename local variable. Attempt to un-defer types only and do it
15795 for limited_with'ed types as well.
15796 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
15797 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
15798 consistently and remove redundant call to finalize_from_with_types.
15799
5daed84a
EB
158002011-03-26 Eric Botcazou <ebotcazou@adacore.com>
15801
15802 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
15803 subprograms without a previous spec declared in the same unit.
15804 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
15805 subprograms at the end of the unit instead of at the beginning.
15806 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
15807 isn't public for the special handling of non-inline functions nested
15808 inside inline external functions.
15809
0edf1bb2
JL
158102011-03-25 Jeff Law <law@redhat.com>
15811
5daed84a 15812 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 15813
e3c4580e
EB
158142011-03-24 Eric Botcazou <ebotcazou@adacore.com>
15815
15816 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
15817 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
15818 to compute Set_Size_Depends_On_Discriminant.
15819 (Layout_Type): Call it on array types in back-end layout mode.
15820 * sem_util.adb (Requires_Transient_Scope): Return true for array
15821 types only if the size depends on the value of discriminants.
15822 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
15823 type if the RHS is a call to a function that returns an unconstrained
15824 type with default discriminant.
15825
abbc8c7b
EB
158262011-03-24 Eric Botcazou <ebotcazou@adacore.com>
15827
15828 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
15829 non-conversion to the nominal result type at the end.
15830
ddb5a105
EB
158312011-03-23 Eric Botcazou <ebotcazou@adacore.com>
15832
15833 * gcc-interface/trans.c (create_temporary): New function taken from...
15834 (create_init_temporary): ...here. Call it.
15835 (call_to_gnu): Create the temporary for the return value early, if any.
15836 Create it for a function with copy-in/copy-out parameters if there is
15837 no target; in other cases of copy-in/copy-out, use another temporary.
15838 Push the new binding level lazily. Add and rename local variables.
15839
0d853156
EB
158402011-03-23 Eric Botcazou <ebotcazou@adacore.com>
15841
15842 * gcc-interface/decl.c (validate_size): Improve comments and tweak
15843 error message.
15844 (set_rm_size): Likewise.
15845
4184ef1b
EB
158462011-03-23 Eric Botcazou <ebotcazou@adacore.com>
15847
15848 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
15849 for the padded type built in order to support a specified alignment.
15850 Fix incorrect formatting.
15851
bf7eefab
EB
158522011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15853
15854 PR bootstrap/48216
15855 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
15856
ef0feeb2
EB
158572011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15858
15859 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
15860 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
15861 to the end of the list. Adjust recursive call. Rename local variable.
15862 If REORDER is true, reorder components of the record type.
15863 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
15864 components_to_record and adjust the parameter list.
15865
646f9414
EB
158662011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15867
15868 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
15869 disabled, use the variable for bounds of loop iteration scheme.
15870
62d784f7
KT
158712011-03-21 Kai Tietz <ktietz@redhat.com>
15872
15873 PR target/12171
0bad0e23 15874 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
62d784f7 15875
f230d759
EB
158762011-03-17 Eric Botcazou <ebotcazou@adacore.com>
15877
15878 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
15879 out whether the expression is read-only. Short-circuit placeholder
15880 case and rename a couple of local variables.
15881
bb1f7929
EB
158822011-03-17 Eric Botcazou <ebotcazou@adacore.com>
15883
15884 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
15885 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
15886 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
15887 (convert): Deal with conversions from a smaller form type specially.
15888
400a2d24
EB
158892011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15890
15891 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
15892 its argument, except for the special -I- switch.
15893
c26bc3ad
GP
158942011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
15895
0bad0e23
EB
15896 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
15897 "Ada Issues".
c26bc3ad 15898
07b8e910
EB
158992011-02-08 Eric Botcazou <ebotcazou@adacore.com>
15900
15901 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
15902
31a5a547
EB
159032011-02-03 Eric Botcazou <ebotcazou@adacore.com>
15904
15905 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
15906 GNAT_FORMAL.
15907 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
15908 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
15909 instead of GNAT_FORMAL. Protect the expression against multiple uses.
15910 Do not generate the check directly, instead instantiate the template
15911 check present in the descriptor.
15912 (make_descriptor_field): Move around.
15913 (build_vms_descriptor32): Build a template check in the POINTER field.
15914 (build_vms_descriptor): Remove useless suffixes.
15915 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
15916
dcf25f59
EB
159172011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15918
15919 PR bootstrap/47467
15920 * targext.c: Include target files if IN_RTS is defined.
15921
0418e131
RG
159222011-01-26 Richard Guenther <rguenther@suse.de>
15923
15924 PR bootstrap/47467
15925 * targext.c: Include config.h.
15926 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
15927 dependency.
15928
c6eecbd8 159292011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 15930 Eric Botcazou <ebotcazou@adacore.com>
c6eecbd8
PO
15931
15932 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
15933
2d3c7e4f
EB
159342011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15935
15936 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
15937 end-of-case on the end label and its associated gotos, if any.
15938
0394741f
EB
159392011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15940
15941 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
15942 expressions of the parameter cache within the statement group of
15943 the CICO mechanism.
15944
2a02d090 159452011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 15946 Eric Botcazou <ebotcazou@adacore.com>
2a02d090
OH
15947
15948 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
15949 (set_end_locus_from_node): New function.
15950 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
15951 make and the function end_locus.
15952 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
15953 for the elaboration subprogram.
15954 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
15955 set the end_locus of the expression as well.
15956
89f5e978
EB
159572011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15958
15959 PR ada/47131
15960 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
15961 variables that are referenced in exception handlers volatile.
15962
15963
ad41bd84 15964\f
797103eb 15965Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
15966
15967Copying and distribution of this file, with or without modification,
15968are permitted in any medium without royalty provided the copyright
15969notice and this notice are preserved.
This page took 2.581538 seconds and 5 git commands to generate.