]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
usage.adb, [...]: Disable by default warnings on suspicious contracts, and enable...
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
029b67ba
YM
12011-09-02 Yannick Moy <moy@adacore.com>
2
3 * usage.adb, warnsw.adb, sem_ch6.adb, opt.ads: Disable by default
4 warnings on suspicious contracts, and enable them with -gnatwa.
5
dc36a7e3
RD
62011-09-02 Robert Dewar <dewar@adacore.com>
7
8 * exp_util.adb, exp_ch9.adb, sem_attr.adb, sem_ch6.adb: Minor
9 reformatting.
10
d5aa443c
AC
112011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
12
13 * exp_ch9.adb (Install_Private_Data_Declarations): Add guards
14 which ensure that restriction No_Dynamic_Attachment has not been
15 violated.
16 (Make_Initialize_Protection): Protected types with attach or
17 interrupt handlers must not violate restriction No_Dynamic_Attachment.
18 * exp_util.adb (Corresponding_Runtime_Package): Add a guard
19 which ensures that restriction No_Dynamic_Attachment has not been
20 violated.
21 * sem_attr.adb: (Eval_Attribute): Transform
22 VAX_Float_Type'First and 'Last into references to
23 the temporaries which store the corresponding bounds. The
24 transformation is needed since the back end cannot evaluate
25 'First and 'Last on VAX.
26 (Is_VAX_Float): New routine.
27
282011-09-02 Ed Schonberg <schonberg@adacore.com>
29
30 * sem_ch12.adb (Analyze_Subprogram_Instantiation): If the
31 generic unit is not intrinsic and has an explicit convention,
32 the instance inherits it.
33
67c86178
AC
342011-09-02 Robert Dewar <dewar@adacore.com>
35
36 * prj-dect.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, prj-tree.adb,
37 prj.adb, prj.ads, sem_ch5.adb: Minor reformatting.
38
392011-09-02 Thomas Quinot <quinot@adacore.com>
40
41 * sem_attr.adb (Analyze_Attribute, case Unrestriced_Access):
42 Guard against a prefix that is an N_Has_Entity but has no
43 associated entity.
44
452011-09-02 Yannick Moy <moy@adacore.com>
46
47 * lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa
48 references.
49
502011-09-02 Yannick Moy <moy@adacore.com>
51
52 * opt.ads (Warn_On_Suspicious_Contract): New warning flag.
53 * sem_ch3.adb (Analyze_Declarations): Call checker for suspicious
54 contracts.
55 * sem_ch6.adb, sem_ch6.ads (Check_Subprogram_Contract): New
56 procedure looking for suspicious postconditions.
57 * usage.adb (Usage): New options -gnatw.t and -gnatw.T.
58 * warnsw.adb (Set_Dot_Warning_Switch): Take into account new
59 options -gnatw.t and -gnatw.T.
60
735ca1b9
PO
612011-09-02 Pascal Obry <obry@adacore.com>
62
63 * prj.adb: Minor code refactoring. Move check for null project in
64 Project_Changed.
65 * projects.texi: Fix minor typos.
66
86828d40
AC
672011-09-02 Ed Schonberg <schonberg@adacore.com>
68
69 * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
70 of iteration is an expression, its value must be captured in a
71 renaming declaration, so that modification of the elements is
72 propagated to the original container.
73
742011-09-02 Pascal Obry <obry@adacore.com>
75
76 * prj-proc.adb, prj.adb, makeutl.adb, makeutl.ads, prj-dect.adb,
77 prj-nmsc.adb, prj-util.adb, prj-conf.adb, prj-env.adb,
78 prj-tree.adb: Minor reformatting and style fixes.
79
83de674b
AC
802011-09-02 Robert Dewar <dewar@adacore.com>
81
82 * s-rident.ads: Add new restriction No_Implicit_Aliasing
83 * sem_attr.adb: (Analyze_Access_Attribute): Deal with
84 No_Implicit_Aliasing
85 (Analyze_Attribute, case Address): ditto
86 (Analyze_Attribute, case Unrestricted_Access): ditto
87 * sem_util.ads, sem_util.adb: (Is_Aliased_View): Handle
88 No_Implicit_Aliasing restriction.
89 * gnat_rm.texi: Add documentation for No_Implicit_Aliasing
90
912011-09-02 Ed Schonberg <schonberg@adacore.com>
92
93 * exp_util.adb: (Possible_Bit_Aligned_Object): If the object
94 is an unchecked conversion, apply test to its expression.
95
962011-09-02 Javier Miranda <miranda@adacore.com>
97
98 * sem_ch3.adb (Check_Abstract_Overriding): When
99 traversing the chain of aliased subprograms avoid reporting a
100 redundant error on the current entity.
101
1022011-09-02 Sergey Rybin <rybin@adacore.com>
103
104 * gnat_ugn.texi: Minor clean up.
105
1062011-09-02 Bob Duff <duff@adacore.com>
107
108 * s-htable.adb (Set_If_Not_Present): Use renaming
109 instead of ":=", because the type Key is limited in the generic (even
110 if not in the instances).
111
2c17ca0a
AC
1122011-09-02 Robert Dewar <dewar@adacore.com>
113
114 * exp_util.adb, sem_ch10.adb, sem_attr.adb, s-htable.adb,
115 g-comlin.adb, g-comlin.ads, lib-xref-alfa.adb, lib-xref.adb: Minor
116 reformatting.
117
1182011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
119
120 * sem_ch3.adb: (Set_Anonymous_Type): Associate the itype of an
121 inherited component with the enclosing derived type. Code reformatting.
122
1232011-09-02 Gary Dismukes <dismukes@adacore.com>
124
125 * checks.adb: (Determine_Range): Add test of OK1 to prevent the early
126 return done when overflow checks are enabled, since comparisons against
127 Lor and Hir should not be done when OK1 is False.
128
1292011-09-02 Gary Dismukes <dismukes@adacore.com>
130
131 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
132 Add new formal Master_Exp. When present, add that expression to the
133 call as an extra actual.
134 (Make_Build_In_Place_Call_In_Object_Declaration): Add variable
135 Fmaster_Actual and in the case of a BIP call initializing a return
136 object of an enclosing BIP function set it to a
137 new reference to the implicit finalization master
138 formal of the enclosing function. Fmaster_Actual is
139 then passed to the new formal Master_Exp on the call to
140 Add_Finalization_Master_Actual_To_Build_ In_Place_Call. Move
141 initializations of Enclosing_Func to its declaration.
142
1432011-09-02 Thomas Quinot <quinot@adacore.com>
144
145 * csets.ads: Minor reformatting
146
1472011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
148
149 * exp_aggr.adb: (Get_Constraint_Association): Add code to retrieve
150 the full view of a private type coming from an instantiation.
151 * exp_ch4.adb: (Current_Anonymous_Master): Reimplement the search
152 loop to iterate over the declarations rather than use the
153 First_Entity / Next_Entity scheme.
154
ed32b82e
ES
1552011-09-02 Ed Schonberg <schonberg@adacore.com>
156
157 * sem_attr.adb: (Analyze_Attribute, case 'Range): when expanding
158 X'range (N) into X'First (N) .. X'Last (N), do not share the
159 dimension indicator N, if present. Even though it is a static
160 constant, its source location may be modified when printing
161 expanded code under -gnatDL, and node sharing will lead to chaos
162 in Sprint on large files, by generating a sloc value that does
163 not correspond to any source file.
164
f7bb41af
AC
1652011-09-02 Bob Duff <duff@adacore.com>
166
167 * einfo.adb: (Has_Xref_Entry): Do not call
168 Implementation_Base_Type. Lib.Xref has been
169 rewritten to avoid the need for it, and it was costly.
170 * s-htable.ads,s-htable.adb: (Present,Set_If_Not_Present): New
171 functions in support of efficient xref.
172 * lib-xref-alfa.adb: Misc changes related to Key component of
173 type Xref_Entry.
174 * lib-xref.adb: (Add_Entry,etc): Speed improvement.
175 (New_Entry): Call Implementation_Base_Type, because Has_Xref_Entry
176 no longer does. This is the one place where it is needed.
177
1782011-09-02 Johannes Kanig <kanig@adacore.com>
179
180 * g-comlin.adb (Getopt): New optional argument Concatenate to have
181 similar interface as the other Getopt function.
182
1832011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
184
185 * exp_ch4.adb: (Expand_Allocator_Expression): Do not generate
186 a call to Set_Finalize_Address if there is no allocator available.
187 * exp_util.adb: (Build_Allocate_Deallocate_Proc): Account for
188 a case of allocator expansion where the allocator is not expanded but
189 needs a custom allocate routine. Code reformatting.
190 (Is_Finalizable_Transient): Remove local variables Has_Rens and
191 Ren_Obj. Code reformatting.
192 (Is_Renamed): Renamed to Is_Aliased. Add code to detect aliasing
193 through the use of 'reference.
194 * sem_ch4.adb: (Analyze_Allocator): Detect allocators generated
195 as part of build-in-place expansion. They are intentionally marked as
196 coming from source, but their parents are not.
197
bd0bc43e
AC
1982011-09-02 Ed Schonberg <schonberg@adacore.com>
199
200 * sem_ch10.adb (Analyze_With_Clause): If the library unit
201 is the generated subprogram declaration for a child unit body
202 that acts as spec, use the original body in the with_clause,
203 to prevent binding errors.
204
2052011-09-02 Vincent Celier <celier@adacore.com>
206
207 * gnat_ugn.texi: Adapt documentation of -gnateInnn to new VMS
208 qualifier /MULTI_UNIT_INDEX=
209
2102011-09-02 Johannes Kanig <kanig@adacore.com>
211
212 * g-comlin.adb (Getopt): Return when switch is dealt with automatically,
213 instead of calling the callback function
214
9fdb5d21
RD
2152011-09-02 Robert Dewar <dewar@adacore.com>
216
217 * prj-proc.adb, prj.ads, sem_util.adb, s-taprop-linux.adb,
218 prj-nmsc.adb, prj-util.ads, prj-env.adb: Minor reformatting.
219
c6d5d1ac
AC
2202011-09-02 Vincent Celier <celier@adacore.com>
221
222 * prj-nmsc.adb: (Find_Sources): When the list of sources is
223 explicitly declared in an extending project, do not warn if a source
224 for an inherited naming exception is not found.
225
2262011-09-02 Gary Dismukes <dismukes@adacore.com>
227
228 * exp_ch6.adb: (Is_Build_In_Place_Function_Call): Return False if
229 expansion is inactive.
230
2312011-09-02 Ed Schonberg <schonberg@adacore.com>
232
233 * sem_util.adb (Note_Possible_Modification): If the entity
234 being modified is the renaming generated for an Ada2012 iterator
235 element, the enclosing container or array is modified as well.
236
2ba1a7c7
AC
2372011-09-02 Jose Ruiz <ruiz@adacore.com>
238
239 * s-taprop-linux.adb (Initialize_Lock, Initialize_TCB,
240 Initialize): Define and initialize the
241 mutex attributes and condition variable attributes locally.
242
2432011-09-02 Vincent Celier <celier@adacore.com>
244
245 * prj-nmsc.adb (Check_File): Mark as Locally_Removed a naming
246 exception replaced in an extending project.
247 (Check_Object): No error when the other source is locally removed.
248
2492011-09-02 Yannick Moy <moy@adacore.com>
250
251 * exp_ch6.adb (Is_Build_In_Place_Function_Call): in Alfa mode, allow
252 unresolved calls.
253
d51813db
AC
2542011-08-31 Arnaud Charlet <charlet@adacore.com>
255
256 * gcc-interface/Makefile.in: Clean up handling of x86 and x86-64
257 run-time files.
258 * gcc-interface/Make-lang.in: Update dependencies.
259
9f55bc62
AC
2602011-09-01 Robert Dewar <dewar@adacore.com>
261
262 * sem_ch3.adb, s-taprop-linux.adb, gnatls.adb: Minor reformatting.
263
2642011-09-01 Jose Ruiz <ruiz@adacore.com>
265
266 * adaint.h (__gnat_cpu_free): Fix the name of this profile.
267 * adaint.c (__gnat_cpu_alloc, __gnat_cpu_alloc_size, __gnat_cpu_free,
268 __gnat_cpu_zero, __gnat_cpu_set): Create version of these subprograms
269 specific for systems where their glibc version does not define the
270 routines to handle dynamically allocated CPU sets.
271
2722011-09-01 Vincent Celier <celier@adacore.com>
273
274 * prj-proc.adb, prj.ads, prj-nmsc.adb, prj-util.adb, prj-util.ads,
275 prj-env.adb: Implement inheritance of naming exceptions in extending
276 projects.
277
d7386a7a
AC
2782011-09-01 Romain Berrendonner <berrendo@adacore.com>
279
280 * gnatls.adb: Display simple message instead of content of
281 gnatlic.adl.
282
2832011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
284
285 * sem_ch3.adb: (Build_Derived_Record_Type) Remove the kludgy update of
286 access discriminant and anonymous access component scopes.
287 (Inherit_Component): Reuse the itype of an access discriminant
288 or anonymous access component by copying it in order to set the proper
289 scope. This is done only when the parent and the derived type
290 are in different scopes.
291 (Set_Anonymous_Etype): New routine.
292
2932011-09-01 Robert Dewar <dewar@adacore.com>
294
295 * a-convec.adb: Minor reformatting throughout.
296
9d1e0e72
JR
2972011-09-01 Jose Ruiz <ruiz@adacore.com>
298
299 * adaint.c, adaint.h (__gnat_cpu_alloc, __gnat_cpu_alloc_size,
300 __gnat_cpu_set_free): Create these wrappers around the CPU_ALLOC,
301 CPU_ALLOC_SIZE and CPU_FREE linux macros.
302 (__gnat_cpu_zero, __gnat_cpu_set): Use the CPU_ZERO_S and
303 CPU_SET_S respectively because we are now using dynamically allocated
304 CPU sets which are more portable across different glibc versions.
305 * s-osinte-linux.ads (cpu_set_t_ptr, CPU_ALLOC, CPU_ALLOC_SIZE,
306 CPU_FREE): Add this type and subprograms to be able to create cpu_set_t
307 masks dynamically according to the number of processors in the target
308 platform.
309 (CPU_ZERO, CPU_SET): They are now mapped to the CPU_ZERO_S and CPU_SET_S
310 respectively, so we need to pass the size of the masks as
311 parameters.
312 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use dynamically
313 created cpu_set_t masks
314 with the number of processors available in the target platform,
315 instead of static bit arrays. It enhances portability because
316 it uses the information from the target platform.
317 * sem_ch8.adb: (Attribute_Renaming): When checking whether we
318 are using a restricted run-time library, use the flag
319 Configurable_Run_Time_Mode instead of Restricted_Profile.
320
a95be2d4
AC
3212011-09-01 Vincent Celier <celier@adacore.com>
322
323 * ug_words: Add /MULTI_UNIT_INDEX= -> -gnateI
324 * vms_data.ads: Add new VMS qualifier equivalent for -gnateInnn
325
3262011-09-01 Nicolas Roche <roche@adacore.com>
327
328 * adaint.c (__gnat_tmp_name): Don't use tmpnam function from the system
329 on VxWorks in kernel mode.
330
6b81741c
AC
3312011-09-01 Jose Ruiz <ruiz@adacore.com>
332
333 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use the linux
334 macros for handling CPU sets (CPU_ZERO, CPU_SET) instead of modifying
335 directly the bit array.
336 * s-osinte-linux.ads (CPU_ZERO, CPU_SET): Import these wrappers around
337 the linux macros with the same name.
338 * adaint.h, adaint.c (__gnat_cpu_zero, __gnat_cpu_set): Create these
339 wrappers around the CPU_ZERO and CPU_SET linux macros.
340
3412011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
342
343 * exp_ch7.adb (Find_Insertion_List): Removed.
344 (Process_Transient_Objects): Insert the declarations of the hook
345 access type and the hook object before the associated transient object.
346
3472011-09-01 Jose Ruiz <ruiz@adacore.com>
348
349 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
350 package System.Aux_Dec when using restricted run-time libraries which
351 do not have this package.
352
3532011-09-01 Tristan Gingold <gingold@adacore.com>
354
355 * s-vaflop-vms-alpha.adb: Remove pragma optimize, useless.
356
3572011-09-01 Bob Duff <duff@adacore.com>
358
359 * sem_attr.adb (Analyze_Access_Attribute): Do not call
360 Kill_Current_Values for P'Unrestricted_Access, where P is library level
361
3622011-09-01 Thomas Quinot <quinot@adacore.com>
363
364 * exp_ch5.adb: Minor reformatting
365 * gnat_ugn.texi: Fix minor typos.
366 * gcc-interface/Make-lang.in: Update dependencies.
367
8256c1bf
AC
3682011-09-01 Robert Dewar <dewar@adacore.com>
369
370 * inline.adb, sem_aggr.adb: Minor reformatting.
371
3722011-09-01 Ed Schonberg <schonberg@adacore.com>
373
374 * a-convec.adb: Proper handling of cursors for Ada2012 iterators.
375
d1c5f424
AC
3762011-09-01 Robert Dewar <dewar@adacore.com>
377
378 * prj-proc.adb, exp_ch6.adb, prj-env.adb: Minor reformatting.
379
3802011-09-01 Bob Duff <duff@adacore.com>
381
382 * sem_aggr.adb (Resolve_Aggregate): Need to treat "in instance
383 body" the same as "in inlined body", because visibility shouldn't
384 apply there.
385
3862011-09-01 Eric Botcazou <ebotcazou@adacore.com>
387
388 * inline.adb (Add_Inlined_Body): Refine previous change.
389
1bb6e262
AC
3902011-09-01 Gary Dismukes <dismukes@adacore.com>
391
392 * exp_ch6.ads (Needs_BIP_Alloc_Form): New utility function.
393 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
394 Test for case where call
395 initializes an object of a return statement before testing for
396 a constrained call, to ensure that all such cases get handled
397 by simply passing on the caller's parameters. Also, in that
398 case call Needs_BIP_Alloc_Form to determine whether to pass on
399 the BIP_Alloc_Form parameter of the enclosing function rather
400 than testing Is_Constrained. Add similar tests for the return
401 of a BIP call to later processing to ensure consistent handling.
402 (Needs_BIP_Alloc_Form): New utility function.
403 * sem_ch6.adb: (Create_Extra_Formals): Replace test for adding
404 a BIP_Alloc_Form formal with call to new utility function
405 Needs_BIP_Alloc_Form.
406
4072011-09-01 Pascal Obry <obry@adacore.com>
408
409 * prj-part.adb: Minor reformatting.
410
4112011-09-01 Vincent Celier <celier@adacore.com>
412
413 * prj-env.adb (Create_Mapping_File.Process): Encode the upper
414 half character in the unit name.
415
db15225a
AC
4162011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
417
418 * exp_ch4.adb: Minor code and comment reformatting.
419
4202011-09-01 Thomas Quinot <quinot@adacore.com>
421
422 * exp_ch6.adb (Expand_Inlined_Call): Remove redundant tests
423 for Is_Limited_Type and Is_Tagged_Type in condition checking
424 for by-reference type.
425 * inline.adb (Add_Inlined_Body): Only exclude init_procs. Other
426 subprograms may have a completion because of a previous
427 Inline_Always clause, but the enclosing package must be marked
428 inlined for the subprogram body to become visible to the backend.
429
9d641fc0
TQ
4302011-09-01 Thomas Quinot <quinot@adacore.com>
431
432 * sem_aux.adb, exp_ch4.adb: Minor reformatting
433
dbe36d67
AC
4342011-09-01 Pascal Obry <obry@adacore.com>
435
436 * prj-proc.adb, prj.ads, sinput-p.adb: Minor reformatting.
437
4382011-09-01 Ed Schonberg <schonberg@adacore.com>
439
440 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Generate references to
441 the formals of a subprogram stub that acts as a spec.
442
4432011-09-01 Ed Schonberg <schonberg@adacore.com>
444
445 * exp_ch6.adb (Expand_Inlined_Call): If an actual is a by_reference
446 type, declare a renaming for it, not an object declaration.
447
f5037886
AC
4482011-09-01 Yannick Moy <moy@adacore.com>
449
450 * ali-util.adb, ali-util.ads (Read_Withed_ALIs): Add parameter
451 Ignore_Errors to ignore failures to read ALI files when True.
452
4532011-09-01 Javier Miranda <miranda@adacore.com>
454
455 * exp_ch3.adb (Expand_N_Object_Declaration): Handle non-default
456 constructor calls associated with non-tagged record types.
457
4582011-09-01 Robert Dewar <dewar@adacore.com>
459
460 * g-socthi-vms.adb: Minor reformatting.
461
4622011-09-01 Nicolas Roche <roche@adacore.com>
463
464 * sysdep.c: Don't use macro functions for stdio functions on VxWorks
465 in order to avoid impact of imcompatible changes.
466 * cstreams.c: Likewise
467 * cio.c: Likewise
468 * aux-io.c: Likewise
469
4702011-09-01 Yannick Moy <moy@adacore.com>
471
472 * lib-writ.adb (Write_With_Lines): Always output complete information
473 on "with" line in Alfa mode, as this is required by formal verification
474 back-end.
475
549e4558
AC
4762011-09-01 Tristan Gingold <gingold@adacore.com>
477
478 * g-socthi-vms.adb: Add comments.
479
4802011-09-01 Pascal Obry <obry@adacore.com>
481
482 * prj.ads: Minor reformatting.
483
70c0422d
AC
4842011-09-01 Vincent Celier <celier@adacore.com>
485
486 * prj-env.adb (Create_Config_Pragmas_File.Check): Put all naming
487 exceptions in the config pragmas file.
488
4892011-09-01 Tristan Gingold <gingold@adacore.com>
490
491 * gnat_ugn.texi: Document GNAT_STACK_SIZE on IVMS.
492
8c5b03a0
AC
4932011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
494
495 * exp_ch7.adb (Find_Insertion_List): New routine.
496 (Process_Transient_Objects): Add code to handle the abnormal
497 finalization of a controlled transient associated with a subprogram
498 call. Since transients are cleaned up right after the associated
499 context, an exception raised during a subprogram call may bypass the
500 finalization code.
501
5022011-09-01 Robert Dewar <dewar@adacore.com>
503
504 * exp_ch6.adb (Expand_Call): Check actual for aliased parameter is
505 aliased.
506
3040dbd4
RD
5072011-09-01 Robert Dewar <dewar@adacore.com>
508
509 * exp_ch4.adb, a-exexda.adb: Minor reformatting.
510
fecbd779
AC
5112011-09-01 Robert Dewar <dewar@adacore.com>
512
513 * s-taskin.ads, s-tassta.adb, sem_ch13.adb: Minor reformatting.
514
5152011-09-01 Thomas Quinot <quinot@adacore.com>
516
517 * Makefile.rtl: Move s-oscons.o from GNATRTL_TASKING_OBJS to
518 GNATRTL_NONTASKING_OBJS.
519
5202011-09-01 Robert Dewar <dewar@adacore.com>
521
522 * einfo.ads (Is_Aliased): Fix existing documentation and add note on
523 possibility of this flag being set for formals in Ada 2012 mode.
524 * par-ch6.adb (P_Formal_Part): Handle aliased for parameters for Ada
525 2012.
526 * sem_ch6.adb (Process_Formals): Handle aliased parameters in Ada 2012
527 mode.
528 * sinfo.adb (Aliased_Present): Allowed in N_Parameter_Specification for
529 Ada 2012.
530 * sinfo.ads (Aliased_Present): Allowed in N_Parameter_Specification for
531 Ada 2012.
532
5332011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
534
535 * exp_ch4.adb (Find_Insertion_Node): New routine. Determines the proper
536 insertion node in a tree of nested Expression_With_Actions nodes.
537 (Process_Transient_Object): In the case where a complex if statement
538 has been converted into nested Expression_With_Actions nodes, the
539 "hook" object and the associated access type must be inserted before
540 the top most Expression_With_Actions.
541
516f608f
AC
5422011-09-01 Robert Dewar <dewar@adacore.com>
543
544 * a-cbprqu.adb, a-cbprqu.ads, a-cuprqu.adb, a-cuprqu.ads,
545 a-cbsyqu.adb, a-cbsyqu.ads: Minor reformatting.
546
5472011-09-01 Ed Schonberg <schonberg@adacore.com>
548
549 * sem_attr.adb: Conditionalize aliasing predicates to Ada2012.
550
5512011-09-01 Jose Ruiz <ruiz@adacore.com>
552
553 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the CPU
554 aspect.
555 * aspects.adb (Canonical_Aspect): Add entry for the CPU aspect.
556 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the CPU aspect
557 in a similar way as we do for the Priority or Dispatching_Domain aspect.
558 * s-mudido-affinity.adb (Dispatching_Domain_Tasks,
559 Dispatching_Domains_Frozen): Move this local data to package
560 System.Tasking because with the CPU aspect we need to have access
561 to this data when creating the task in System.Tasking.Stages.Create_Task
562 * s-taskin.ads (Dispatching_Domain_Tasks, Dispatching_Domains_Frozen):
563 Move these variables from the body of
564 System.Multiprocessors.Dispatching_Domains because with the CPU aspect
565 we need to have access to this data when creating the task in
566 System.Tasking.Stages.Create_Task.
567 * s-taskin.adb (Initialize): Signal the allocation of the environment
568 task to a CPU, if any, so that we know whether the CPU can be
569 transferred to a different dispatching domain.
570 * s-tassta.adb (Create_Task): Check whether the CPU to which this task
571 is being allocated belongs to the dispatching domain where the task
572 lives. Signal the allocation of the task to a CPU, if any, so that we
573 know whether the CPU can be transferred to a different dispatching
574 domain.
575
2d42e881
ES
5762011-09-01 Ed Schonberg <schonberg@adacore.com>
577
578 * exp_attr.adb, sem_attr.adb, snames.ads-tmpl: Implementation of
579 attributes Same_Storage and Overlaps_Storage.
580
579fda56
AC
5812011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
582
583 * exp_strm.adb: Remove with and use clause for Opt.
584 (Build_Array_Input_Function): Remove the version-dependent generation
585 of the return statement. The Ada 2005 tree is now the default.
586
5872011-09-01 Yannick Moy <moy@adacore.com>
588
589 * put_alfa.adb: Unconditionnally write files in Alfa section, so that
590 it is never empty when compiling in Alfa mode.
591
5922011-09-01 Robert Dewar <dewar@adacore.com>
593
594 * sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb,
595 comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb,
596 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
597 gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting
598
5992011-09-01 Matthew Heaney <heaney@adacore.com>
600
601 * Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb],
602 a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb]
603 * a-csquin.ads: New Ada 2012 unit that specifies the queue interface
604 * a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the
605 unbounded queue container.
606 * a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the
607 bounded queue container.
608 * a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the
609 unbounded priority queue container.
610 * a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the
611 bounded priority queue container.
612
24c34107
AC
6132011-08-31 Pascal Obry <obry@adacore.com>
614
615 * a-direct.adb: Do not try to create an UNC path on Windows.
616 (Create_Path): Skip leading computer name in UNC path if any.
617
6182011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
619
620 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): Remove the
621 version-dependent generation of the return statement. The Ada 2005 tree
622 is now the default.
623
6242011-08-31 Thomas Quinot <quinot@adacore.com>
625
626 * rtsfind.ads, exp_dist.adb (Find_Numeric_Representation): Predefined
627 types Stream_Element_Offset and Storage_Offset have a different native
628 type depending on whether the platform is 32 or 64 bits. When
629 exchanging them, always convert to 64 bits.
630
6312011-08-31 Yannick Moy <moy@adacore.com>
632
633 * debug.adb: Reserve debug option -gnatd.E for passing gnatprove option
634 --force-alfa to gnat2why.
635
6362011-08-31 Ed Schonberg <schonberg@adacore.com>
637
638 * sem_ch12.adb (Save_References): If the node has aspects, save
639 references within the corresponding expressions in a separate step,
640 because the aspects are not directly in the tree for the declaration
641 to which they belong.
642
6432011-08-31 Arnaud Charlet <charlet@adacore.com>
644
645 * freeze.adb (Freeze_Record_Type): Omit test on variable size component
646 in CodePeer mode, since representation clauses are partially ignored.
647 * gcc-interface/Make-lang.in: Update dependencies.
648
702d2020
AC
6492011-08-31 Jose Ruiz <ruiz@adacore.com>
650
651 * s-taprop-vxworks.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
652 s-taprop-solaris.adb (Create_Task): Not_A_Specific_CPU can be assigned
653 to any dispatching domain.
654
6552011-08-31 Thomas Quinot <quinot@adacore.com>
656
657 * exp_ch4.adb: Minor reformatting.
658
6592011-08-31 Bob Duff <duff@adacore.com>
660
661 * sem_ch6.adb (Get_Generic_Parent_Type): Don't query Subtype_Indication
662 on nodes for which it is not defined.
663 (Is_Non_Overriding_Operation): Exit the loop when we find a generic
664 parent type.
665
6662011-08-31 Bob Duff <duff@adacore.com>
667
668 * sem_ch3.adb (Process_Full_View): Disable legality check if
669 In_Instance, to avoid spurious errors.
670 * sem_ch12.adb (Validate_Derived_Type_Instance): Disable legality check
671 if In_Instance, to avoid spurious errors.
672
6732011-08-31 Pascal Obry <obry@adacore.com>
674
675 * a-direct.adb: Use Dir_Seps everywhere to properly handle all
676 directory speparators.
677 (Compose): Use Dir_Seps to handle both forms.
678 (Create_Path): Use Dir_Seps instead of explicit check, no semantic
679 changes.
680 (Extension): Use Dir_Seps to handle both forms.
681
6822011-08-31 Pascal Obry <obry@adacore.com>
683
684 * prj-conf.adb: Minor reformatting.
685
67645bde
AC
6862011-08-31 Jose Ruiz <ruiz@adacore.com>
687
688 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the
689 dispatching domain aspect.
690 * aspects.adb (Canonical_Aspect): Add entry for the dispatching domain
691 aspect.
692 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the
693 Dispatching_Domain aspect in a similar way as we do for the Priority
694 aspect.
695 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add the
696 Dispatching_Domain component if a Dispatching_Domain pragma or aspect
697 is present.
698 (Make_Task_Create_Call): Add the Dispatching_Domain when creating a task
699 * par-prag.adb (Prag): Add Pragma_Dispatching_Domain as a known pragma.
700 * sem_prag.adb (Analyze_Pragma): Check the correctness of a pragma
701 Dispatching_Domain and add it to the task definition.
702 (Sig_Flags): Add Pragma_Dispatching_Domain.
703 * rtsfind.ads, rtsfind.adb (RTU_Id, RE_Id, Get_Unit_Name): Add the
704 support to find the types Dispatching_Domain and
705 Dispatching_Domain_Access.
706 * sinfo.ads, sinfo.adb (Has_Pragma_Dispatching_Domain,
707 Set_Has_Pragma_Dispatching_Domain): Add these subprograms to set and
708 query the availability of a pragma Dispatching_Domain.
709 * snames.ads-tmpl (Name_uDispatching_Domain): Add this name required by
710 the expander to pass the Dispatching_Domain when creating a task.
711 (Name_Dispatching_Domain): Add this new name for a pragma.
712 (Pragma_Id): Add the new Pragma_Dispatching_Domain.
713 * s-tassta.ads, s-tassta.adb (Create_Task): Set the domain to which the
714 task has been allocated at creation time.
715 * s-tarest.adb (Create_Restricted_Task): The dispatching domain using
716 Ravenscar is always null.
717 * s-taskin.ads, s-taskin.adb (Initialize_ATCB): Set the domain to which
718 the task has been allocated at creation time.
719 * s-tporft.adb (Register_Foreign_Thread): A foreign task will not have
720 a specific dispatching domain.
721 * s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-vxworks.adb,
722 s-taprop-mingw.adb (Create_Task): Check whether both Dispatching_Domain
723 and CPU are specified for the task, and the CPU value is not contained
724 within the range of processors for the domain.
725
7262011-08-31 Vincent Celier <celier@adacore.com>
727
728 * make.adb (Original_Gcc) : New constant String_Access.
729 (Gnatmake): For VM targets, do not use VM version of the compiler if
730 --GCC= has been specified.
731
7322011-08-31 Thomas Quinot <quinot@adacore.com>
733
734 * sem_ch5.adb: Minor reformatting.
735
7362011-08-31 Ed Schonberg <schonberg@adacore.com>
737
738 * exp_pakd.adb (Convert_To_PAT_Type): If prefix is a function call, do
739 not reanalyze it.
740
7412011-08-31 Bob Duff <duff@adacore.com>
742
743 * exp_ch4.adb (Expand_N_Selected_Component): Use the full type, in case
744 the access type is private; we don't care about privacy in expansion.
745
7462011-08-31 Ed Schonberg <schonberg@adacore.com>
747
748 * sem_aggr.adb (Resolve_Aggregate): In an instance, ignore aggregate
749 subcomponents tnat may be limited, because they originate in view
750 conflicts. If the original aggregate is legal and the actuals are
751 legal, the aggregate itself is legal.
752
b8789727
AC
7532011-08-31 Matthew Heaney <heaney@adacore.com>
754
755 * a-rbtgbo.adb (Clear_Tree): Assert representation invariant for lock
756 status.
757
7582011-08-31 Ed Schonberg <schonberg@adacore.com>
759
760 * sem_ch5.adb: Set kind of loop parameter properly, to preserve all
761 errors in B tests.
762
7632011-08-31 Jose Ruiz <ruiz@adacore.com>
764
765 * sem_ch13.adb (Analyze_Aspect_Specifications): For the Priority and
766 Interrupt_Priority aspects, force the analysis of the aspect expression
767 (when building the equivalent pragma). Otherwise, its analysis is done
768 too late, after the task or protected object has been created.
769 * sem_ch9.adb (Analyze_Single_Protected_Declaration,
770 Analyze_Single_Task_Declaration): Remove the code to move the aspects
771 to the object declaration because they are needed in the type
772 declaration.
773
e0c32166
AC
7742011-08-31 Robert Dewar <dewar@adacore.com>
775
776 * exp_ch5.adb, exp_ch7.ads, sem_ch5.adb, put_scos.adb, s-rannum.adb,
777 a-rbtgbo.adb, exp_intr.adb, a-cbdlli.adb, a-cbdlli.ads: Minor
778 reformatting.
779
7802011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
781
782 * exp_util.adb (Find_Protection_Type): Do not look for fields _object
783 if the corresponding type is malformed due to restriction violations.
784
7852011-08-31 Robert Dewar <dewar@adacore.com>
786
787 * s-ransee.ads, s-ransee.adb: Minor reformatting.
788
7892011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
790
791 * exp_ch4.adb (Expand_N_Allocator): Correct faulty condition which
792 would cause the generation of Set_Finalize_Address if the target is a
793 VM and the designated type is not derived from [Limited_]Controlled.
794
7952011-08-31 Arnaud Charlet <charlet@adacore.com>
796
797 * comperr.adb, comperr.ads, gnat1drv.adb (Delete_SCIL_Files): New
798 subprogram.
799 (Compiler_Abort, Gnat1drv): Call Delete_SCIL_Files in codepeer mode in
800 case of a compilation error.
801
8022011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
803
804 * init.c (__gnat_error_handler): Standardize the stack overflow or
805 erroneous memory access message.
806 * seh_init.c (__gnat_SEH_error_handler): Standardize the stack overflow
807 or erroneous memory access message.
808
11bc76df
AC
8092011-08-31 Robert Dewar <dewar@adacore.com>
810
811 * sem_ch4.adb: Minor reformatting.
812 * sem_ch6.adb: Minor code reorganization (use Ekind_In).
813
8142011-08-31 Thomas Quinot <quinot@adacore.com>
815
816 * scos.ads: Minor documentation clarification.
817 * put_scos.adb: Do not generate SCO unit header line for a unit that
818 has no SCO lines.
819
876d4394
RD
8202011-08-31 Robert Dewar <dewar@adacore.com>
821
822 * a-rbtgbo.adb, alfa_test.adb: Minor reformatting.
823
36b8f95f
AC
8242011-08-31 Tristan Gingold <gingold@adacore.com>
825
826 * exp_ch7.ads, exp_ch7.adb (Finalization_Exception_Data): New type to
827 hold variables between these following subprograms.
828 (Build_Exception_Handler, Build_Object_Declarations,
829 Build_Raise_Statement): Use the above type as parameter.
830 Make the above adjustments.
831 * exp_intr.adb (Expand_Unc_Deallocation): Adjust.
832
8332011-08-31 Pascal Obry <obry@adacore.com>
834
835 * projects.texi: Minor reformatting.
836
8372011-08-31 Tristan Gingold <gingold@adacore.com>
838
839 * s-ransee.ads, s-ransee.adb: Add system.random_seed unit.
840 * s-rannum.adb (Reset): Use Get_Seed from s-ransee.
841
8422011-08-31 Ed Schonberg <schonberg@adacore.com>
843
844 * exp_ch5.adb: Minor code cleanup.
845 * sem_ch5.adb (Analyze_Iteration_Scheme): Set ekind of loop variable to
846 prevent cascaded errors.
847 (Analyze_Loop_Statement): In semantics-only mode, introduce loop
848 variable of an iterator specification in current scope.
849 * sem_ch6.adb (Analyze_Return_Statement, Find_what_It_Apples_To): Skip
850 postconditions on the stack, as they contain no return statements.
851
8522011-08-31 Yannick Moy <moy@adacore.com>
853
854 * exp_alfa.adb (Expand_Alfa_N_Package_Declaration,
855 Expand_Alfa_N_Subprogram_Body): Remove useless procedures which simply
856 call Qualify_Entity_Names.
857 (Expand_Alfa): call Qualify_Entity_Names in more cases
858 * lib-xref-alfa.adb: Take into account system package.
859 * sem_prag.adb Take into account restrictions in Alfa mode, contrary to
860 CodePeer mode in which we are interested in finding bugs even if
861 compiler cannot compile source.
862 * sem_util.adb, sem_util.ads (Unique_Entity): Take into account case of
863 deferred constant.
864
8652011-08-31 Gary Dismukes <dismukes@adacore.com>
866
867 * sem_ch3.adb (Constrain_Concurrent): Retrieve Base_Type of the subtype
868 denoted by the subtype mark to ensure getting the concurrent type in
869 the case where the subtype mark denotes a private subtype of a
870 concurrent type (needed when using -gnatc).
871 (Process_Subtype): For the processing specific to type kinds, case on
872 the Base_Type kind of the Subtype_Mark_Id, to handle cases where the
873 subtype denotes a private subtype whose base type is nonprivate (needed
874 for subtypes of private fulfilled by task types when compiling with
875 -gnatc).
876
8772011-08-31 Gary Dismukes <dismukes@adacore.com>
878
879 * sem_disp.adb (Check_Dispatching_Operation): Bypass registration of
880 late primitives that override interface operations when the full
881 expander is not active, to avoid blowups in Register_Primitive when
882 types don't have associated secondary dispatch tables.
883
8842011-08-31 Yannick Moy <moy@adacore.com>
885
886 * alfa_test.adb: Code clean up.
887
8882011-08-31 Marc Sango <sango@adacore.com>
889
890 * restrict.adb (Check_SPARK_Restriction): Change Comes_From_Source (N)
891 by Comes_From_Source (Original_Node (N)) in order to treat also the
892 nodes which have been rewritten.
893 * sem_ch4.adb (Analyze_Explicit_Dereference, Analyze_Slice): Guard the
894 explicit dereference and slice violation in spark mode on the nodes
895 coming only from the source code.
896
8cf23b91
AC
8972011-08-31 Robert Dewar <dewar@adacore.com>
898
899 * exp_ch5.adb, exp_alfa.ads, prj.ads, sem_attr.adb,
900 lib-xref-alfa.adb: Minor reformatting.
901
9022011-08-31 Matthew Heaney <heaney@adacore.com>
903
904 * a-crbltr.ads (Tree_Type): Default-initialize the Nodes component.
905
9062011-08-31 Javier Miranda <miranda@adacore.com>
907
908 * sem_ch4.adb (Try_Object_Operation): Addition of one formal to search
909 only for class-wide subprograms conflicting with entities of concurrent
910 tagged types.
911
9122011-08-31 Matthew Heaney <heaney@adacore.com>
913
914 * a-rbtgbo.adb (Generic_Allocate): Initialize pointer components of
915 node to null value.
916
9172011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
918
919 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Provide a more
920 general description of the routine.
921
9222011-08-31 Ed Schonberg <schonberg@adacore.com>
923
924 * a-cbdlli.adb, a-cbdlli.ads: Add iterator machinery to bounded
925 doubly-linked lists.
926
0bb3bfb8
GD
9272011-08-31 Gary Dismukes <dismukes@adacore.com>
928
929 * exp_ch5.adb (Expand_N_Assignment_Statement): When a discriminant
930 check is needed for a left-hand side that is a dereference, and the
931 base type is private without discriminants (whereas the full type does
932 have discriminants), an extra retrieval of the underlying type may be
933 needed in the case where the subtype is a record subtype whose base
934 type is private. Update comments.
935
11fa950b
AC
9362011-08-31 Javier Miranda <miranda@adacore.com>
937
938 * sem_ch4.adb (Try_Object_Operation): When a dispatching primitive is
939 found check if there is a class-wide subprogram covering the primitive.
940
9412011-08-31 Yannick Moy <moy@adacore.com>
942
943 * sem_res.adb: Further cases where full expansion test is needed,
944 rather than expansion test.
945
9462011-08-31 Pascal Obry <obry@adacore.com>
947
948 * prj-attr.adb: Fix Source_File_Switches attribute kind (must be a list)
949
9502011-08-31 Ed Schonberg <schonberg@adacore.com>
951
952 * exp_ch5.adb: Handle iterators over derived container types.
953
9542011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
955
956 * einfo.ads, einfo.adb: Add new flag Has_Anonymous_Master.
957 (Has_Anonymous_Master): New routine.
958 (Set_Has_Anonymous_Master): New routine.
959 (Write_Entity_Flags): Add an entry for Has_Anonymous_Master.
960 * exp_ch4.adb: Add with and use clause for Sem_Ch8.
961 (Current_Anonymous_Master): New routine.
962 (Current_Unit_First_Declaration): Removed.
963 (Current_Unit_Scope): Removed.
964 (Expand_N_Allocator): Anonymous access-to-controlled types now chain
965 their objects on a per-unit heterogeneous finalization master.
966
9672011-08-31 Matthew Heaney <heaney@adacore.com>
968
969 * a-cbhama.adb, a-cbhase.adb (Insert): Check for zero-length buckets
970 array.
971
9722011-08-31 Jose Ruiz <ruiz@adacore.com>
973
974 * s-taprop-linux.adb (Create_Task): Avoid changing the affinity mask
975 when not needed.
976
9772011-08-31 Gary Dismukes <dismukes@adacore.com>
978
979 * sem_disp.adb (Propagate_Tag): Return without propagating in the case
980 where the actual is an unexpanded call to 'Input.
981
d2b4b3da
AC
9822011-08-31 Yannick Moy <moy@adacore.com>
983
984 * sem_ch4.adb: Code clean up.
985
9862011-08-31 Yannick Moy <moy@adacore.com>
987
988 * exp_alfa.adb, exp_alfa.ads: Minor correction of copyright notice.
989
9902011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
991
992 * exp_ch7.adb (Build_Array_Deep_Procs): Do not generate Deep_Finalize
993 and TSS primitive Finalize_Address if finalization is suppressed.
994 (Build_Record_Deep_Procs): Do not generate Deep_Finalize and TSS
995 primitive Finalize_Address if finalization is suppressed.
996
9972011-08-31 Jose Ruiz <ruiz@adacore.com>
998
999 * s-mudido-affinity.adb, s-taprop-linux.adb, s-taprop-mingw.adb,
1000 s-taprop-solaris.adb, s-taprop-vxworks.adb (Set_Task_Affinity): Make
1001 sure that the underlying task has already been created before trying
1002 to change its affinity.
1003 (Set_CPU): Use the term processor instead of CPU, as we do in
1004 Assign_Task.
1005
10062011-08-31 Vincent Celier <celier@adacore.com>
1007
1008 * prj-attr.adb: New Compiler attribute Source_File_Switches.
1009 * prj-nmsc.adb (Process_Compiler): Process attribute
1010 Source_File_Switches.
1011 * prj.ads (Language_Config): New name list component
1012 Name_Source_File_Switches.
1013 * snames.ads-tmpl (Name_Source_File_Switches): New standard name.
1014
10152011-08-31 Ed Schonberg <schonberg@adacore.com>
1016
1017 * sem_attr.adb (Analyze_Attribute, case 'Old): If prefix may be a
1018 discriminated component of an actual, expand at once to prevent
1019 ouf-of-order references with generated subtypes.
1020
10212011-08-31 Yannick Moy <moy@adacore.com>
1022
1023 * lib-xref-alfa.adb (Add_Alfa_Xrefs): Do not take into account read
1024 reference to operator in Alfa xrefs.
1025
10262011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1027
1028 * sem_ch12.adb (Freeze_Subprogram_Body): Add code to handle the case
1029 where the parent instance was frozen before the current instance due to
1030 the presence of a source body. Update calls to Insert_After_Last_Decl.
1031 (Insert_After_Last_Decl): Renamed to Insert_Freeze_Node_For_Instance.
1032 Update the comment which illustrates the purpose of the routine.
1033 Package instances are now frozen by source bodies which appear after
1034 the instance. This ensures that entities coming from within the
1035 instance are available for use in the said bodies.
1036 (Install_Body): Add code to handle the case where the parent instance
1037 was frozen before the current instance due to the presence of a source
1038 body. Update calls to Insert_After_Last_Decl.
1039
56812278
AC
10402011-08-31 Jose Ruiz <ruiz@adacore.com>
1041
1042 * s-taprop-linux.adb (Set_Task_Affinity): Avoid the use of anonymous
1043 access types.
1044 * affinity.c (__gnat_set_affinity_mask): Declare index variable.
1045
10462011-08-31 Yannick Moy <moy@adacore.com>
1047
1048 * sem_ch8.adb (Analyze_Subprogram_Renaming): Refine expander test in
1049 full-expander test.
16c3301a
AC
1050 * alfa.adb, alfa.ads, alfa_test.adb, ali.adb, debug.adb, errout.adb,
1051 errout.ads, erroutc.adb, expander.adb, exp_ch4.adb, exp_ch7.adb,
1052 freeze.adb, get_alfa.adb, get_alfa.ads, gnat1drv.adb, lib-writ.adb,
1053 lib-writ.ads, lib-xref.adb, lib-xref.ads, lib-xref-alfa.adb, opt.adb,
1054 opt.ads, put_alfa.adb, put_alfa.ads, restrict.adb, sem_ch12.adb,
1055 sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
1056 sem_prag.adb, sem_res.adb, sem_util.adb: Minor reformatting, renaming
1057 ALFA in Alfa (we dropped acronym).
56812278
AC
1058 * einfo.adb (Primitive_Operations): Correctly return list of primitive
1059 operations in a case where it returned previously No_Elist.
1060
7cda9727
RD
10612011-08-31 Robert Dewar <dewar@adacore.com>
1062
1063 * s-taprop-vxworks.adb, sem_ch5.adb, s-taprop-tru64.adb, exp_alfa.adb,
1064 s-taprop-vms.adb, bindgen.adb, s-mudido.adb, s-mudido.ads,
1065 sem_res.adb, expander.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
1066 s-taprop-solaris.adb, s-mudido-affinity.adb, vms_conv.adb,
1067 s-taprop-irix.adb, s-taprop.ads, s-taskin.adb, s-taskin.ads,
1068 s-taprop-hpux-dce.adb, a-chtgbo.adb, s-taprop-posix.adb: Minor
1069 reformatting.
1070
0a190dfd
AC
10712011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1072
1073 * sem_ch12 (Check_Private_View): Revert previous change.
1074 * sem_res.adb (Conversion_Check): Do not emit the error message if the
1075 conversion is in a generic instance.
1076
10772011-08-31 Matthew Heaney <heaney@adacore.com>
1078
1079 * a-cbhase.adb (Symmetric_Difference): Dereference correct node array.
1080 * a-chtgbo.adb (Free): Allow 0 as index value.
1081
10822011-08-31 Matthew Heaney <heaney@adacore.com>
1083
1084 * a-cborma.adb (Insert): Add comment to explain why no element
1085 assignment.
1086
10872011-08-31 Gary Dismukes <dismukes@adacore.com>
1088
1089 * sem_util.adb (Find_Body_Discriminal): Test whether the scope of the
1090 spec discriminant is already a concurrent type, in which case just use
1091 it, otherwise fetch the Corresponding_Concurrent_Type as before.
1092
7d266442
EB
10932011-08-30 Eric Botcazou <ebotcazou@adacore.com>
1094
1095 * system-irix-n64.ads, system-linux-armeb.ads, system-linux-armel.ads,
1096 system-linux-mips.ads, system-linux-mipsel.ads,
1097 system-linux-mips64el.ads, system-linux-ppc64.ads,
1098 system-linux-sparcv9.ads, system-rtems.ads: Remove GCC_ZCX_Support.
1099
4f1a975c
EB
11002011-08-30 Eric Botcazou <ebotcazou@adacore.com>
1101
1102 * gcc-interface/ada-tree.h (TYPE_EXTRA_SUBTYPE_P): Add internal check.
1103 * gcc-interface/utils2.c (build_binary_op): Tighten condition.
1104 (build_unary_op): Likewise.
1105
f2991b48
EB
11062011-08-30 Eric Botcazou <ebotcazou@adacore.com>
1107
1108 * raise-gcc.c: Do not include coretypes.h and tm.h.
1109 (setup_to_install): Remove test for compiler macro.
1110 * targext.c: Document use for the library.
1111 * gcc-interface/Makefile.in: Fix comment on the use of IN_GCC.
1112
10a22f43
EB
11132011-08-30 Eric Botcazou <ebotcazou@adacore.com>
1114
1115 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert
1116 the expression to the nominal type if the latter is a record type with
1117 a variant part and the type of the former is a record type without one.
1118
bfa2e39d
AC
11192011-08-30 Yannick Moy <moy@adacore.com>
1120
1121 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
1122 expansion in Alfa mode.
1123 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public
1124 * exp_alfa.adb, exp_alfa.ads: New package defining light expansion for
1125 Alfa mode.
1126 * gnat1drv.adb (Adjust_Global_Switches): Update Comment.
1127 * sem_res.adb: Ditto.
bd34109a 1128 * gcc-interface/Make-lang.in: Update dependencies.
bfa2e39d
AC
1129
11302011-08-30 Thomas Quinot <quinot@adacore.com>
1131
1132 * g-socket.ads: Minor documentation adjustment.
1133
a0347839
AC
11342011-08-30 Robert Dewar <dewar@adacore.com>
1135
1136 * exp_ch9.adb, s-tassta.adb, s-secsta.adb: Minor reformatting.
1137
11382011-08-30 Yannick Moy <moy@adacore.com>
1139
1140 * exp_ch6_light.adb, exp_ch6_light.ads, exp_attr_light.adb,
1141 exp_attr_light.ads, exp_ch7_light.adb, exp_ch7_light.ads,
1142 exp_light.adb, exp_light.ads, exp_prag.adb, expander.adb,
1143 gnat1drv.adb, exp_ch11.adb, exp_ch6.adb, exp_ch6.ads, exp_aggr.adb:
1144 Revert change which introduced files for "light"
1145 expansion, to be replaced by a single file for Alfa expansion.
1146
3597c0e9
RD
11472011-08-30 Robert Dewar <dewar@adacore.com>
1148
1149 * opt.ads, s-soflin.adb, exp_ch9.adb, sem_res.adb: Update comment.
1150 Minor code reorg/reformatting.
1151
da94696d
AC
11522011-08-30 Yannick Moy <moy@adacore.com>
1153
1154 * opt.adb, opt.ads (Full_Expander_Active): New function defines a
1155 common shorthand for (Expander_Active and not ALFA_Mode) that can be
1156 used for testing full expansion, that is active expansion not in the
1157 reduced mode for Alfa
1158 * exp_ch4.adb, exp_ch9.adb, exp_disp.adb, sem_ch10.adb, sem_ch12.adb,
1159 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Use newly defined "flag" instead
1160 of the verbose (Expander_Active and not ALFA_Mode)
1161
11622011-08-30 Tristan Gingold <gingold@adacore.com>
1163
1164 * s-parame-vms-alpha.ads, s-parame-hpux.ads, s-tassta.adb,
1165 s-tarest.adb, s-parame-vms-ia64.ads, s-soflin.adb, s-secsta.adb,
5b8ca141
TG
1166 s-secsta.ads, s-parame.ads, s-parame-vxworks.ads, s-parame-ae653.ads:
1167 Renames Ratio to Percentage, and Sec_Stack_Ratio to Sec_Stack_Percentage
da94696d 1168
c199ccf7
AC
11692011-08-30 Gary Dismukes <dismukes@adacore.com>
1170
1171 * sem_res.adb (Valid_Conversion): Revise test for implicit anonymous
1172 access conversions to check that the conversion is a rewritten node,
1173 rather than just having Comes_From_Source set to False, which wasn't
1174 sufficient.
1175
11762011-08-30 Robert Dewar <dewar@adacore.com>
1177
1178 * exp_ch9.adb, sem_ch9.adb, sem_ch6.adb, exp_disp.adb,
1179 g-socket.ads: Minor reformatting.
1180
11812011-08-30 Thomas Quinot <quinot@adacore.com>
1182
1183 * sem_util.adb: Minor reformatting.
1184
11852011-08-30 Tristan Gingold <gingold@adacore.com>
1186
1187 * raise-gcc.c: Never catch exception if _UA_FORCE_UNWIND flag is set,
1188 to be compliant with the ABI.
1189
dff99e1a
AC
11902011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
1191
1192 * sem_ch12.adb (Check_Private_View): Exchange the private and full view
1193 of a designated type when the related access type is an actual in an
1194 instance. This ensures that the full view of designated type is
1195 available when inside the body of the instance.
1196
11972011-08-30 Ed Schonberg <schonberg@adacore.com>
1198
1199 * sem_util.adb (May_Be_Lvalue): To determine whether a reference may be
1200 in a position to be modified, a slice is treated like an indexed
1201 component.
1202
63be2a5a
AC
12032011-08-30 Thomas Quinot <quinot@adacore.com>
1204
1205 * s-oscons-tmplt.c, g-socket.ads: Adjust maximum allowed value for
1206 field tv_sec in struct timeval.
1207
12082011-08-30 Yannick Moy <moy@adacore.com>
1209
1210 * exp_ch9.adb, exp_disp.adb, sem_ch9.adb, sem_res.adb: Protect several
1211 blocks of code doing full expansion, previously only guarded by
1212 Expander_Active, by anding the test that ALFA_Mode is not set
1213
12142011-08-30 Ed Schonberg <schonberg@adacore.com>
1215
1216 * sem_ch6.adb (Analyze_Return_Type): If the return type is incomplete,
1217 add the function to the list of private dependents, for subsequent
1218 legality check on Taft amendment types.
1219 * sem_ch12.adb (Analyze_Formal_Incomplete_Type): Initialize
1220 Private_Dependents, as for other incomplete types.
1221 * sem_util.adb (Wrong_Type): Avoid cascaded errors when a
1222 Taft-amendment type is used as the return type of a function.
1223
dd54644b
JM
12242011-08-30 Javier Miranda <miranda@adacore.com>
1225
1226 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code
1227 which emits an error by a call to a new routine which report the error.
1228 * exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the
1229 entity does not cover an existing interface.
1230 * errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize
1231 code.
1232 * sem_ch6.adb (Check_Conformance): Add specific error for wrappers of
1233 protected procedures or entries whose mode is not conformant.
1234 (Check_Synchronized_Overriding): Code cleanup: replace code which emits
1235 an error by a call to a new routine which report the error.
1236
d3ba478e
AC
12372011-08-30 Robert Dewar <dewar@adacore.com>
1238
1239 * gnat_rm.texi: Minor change.
1240 * exp_attr_light.adb: Minor reformatting.
1241
12422011-08-30 Ed Schonberg <schonberg@adacore.com>
1243
1244 * sem_ch3.adb: Patch inheritance of aspects in
1245 Complete_Private_Subtype, to avoid infinite loop.
1246
c01817d2
AC
12472011-08-30 Javier Miranda <miranda@adacore.com>
1248
1249 * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have
1250 been reported and a subprogram covering an interface primitive is not
1251 found then skip generating the internal entity. Done to avoid crashing
1252 the frontend.
1253 (Check_Abstract_Overriding): Change text of error of wrong formal of
1254 protected subprogram or entry. Done for consistency to emit exactly the
1255 same error reported by Check_Synchronized_Overriding. In addition, the
1256 error is restricted to protected types (bug found working on AI05-0090)
1257
12582011-08-30 Yannick Moy <moy@adacore.com>
1259
1260 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
1261 expansion in Alfa mode.
1262 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public.
1263 * exp_light.adb, exp_light.ads: New package defining light expansion.
1264 * expander.adb (Expand): Call light expansion in Alfa mode
1265 * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6
1266 constructs.
1267 * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7
1268 constructs.
1269 * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes
1270 * gnat1drv.adb (Adjust_Global_Switches): Comment
1271
12722011-08-30 Yannick Moy <moy@adacore.com>
1273
1274 * lib-xref-alfa.adb: Minor refactoring.
1275
12762011-08-30 Yannick Moy <moy@adacore.com>
1277
1278 * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa
1279 mode.
1280 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform
1281 expansion in Alfa mode.
1282 * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa
1283 mode.
1284
12852011-08-30 Robert Dewar <dewar@adacore.com>
1286
1287 * debug_a.adb: Update comment.
1288
996c8821
RD
12892011-08-30 Robert Dewar <dewar@adacore.com>
1290
1291 * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb,
1292 sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb,
1293 exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb,
1294 sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting
1295
12962011-08-30 Robert Dewar <dewar@adacore.com>
1297
1298 * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma
1299 volatile.
1300
3647ca26
HK
13012011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
1302
1303 * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to
1304 Build_Finalization_Master by supplying an insertion node and enclosing
1305 scope. In its old version, the call did not generate a finalization
1306 master.
1307 (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to
1308 recognize anonymous access-to-controlled components. Rewrite the
1309 machinery which creates finalization masters to service anonymous
1310 access-to-controlled components of a record type. In its current state,
1311 only one heterogeneous master is necessary to handle multiple anonymous
1312 components.
1313 (Freeze_Type): Comment reformatting.
1314 * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and
1315 RE_Unit_Table.
1316 * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which
1317 associates TSS primitive Finalize_Address with either the master itself
1318 or with the internal hash table depending on the mode of operation of
1319 the master.
1320
6d4e4fbc
JM
13212011-08-30 Javier Miranda <miranda@adacore.com>
1322
1323 * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an
1324 interface type then do not generate code to compare this component.
1325 Required since they have no components and their equality operator is
1326 abstract.
1327
d15f9422
AC
13282011-08-30 Steve Baird <baird@adacore.com>
1329
1330 * sem_util.ads (Deepest_Type_Access_Level): New function; for the type
1331 of a saooaaat (i.e, a stand-alone object of an anonymous access type),
1332 returns the (static) accessibility level of the object. Otherwise, the
1333 same as Type_Access_Level.
1334 (Dynamic_Accessibility_Level): New function; given an expression which
1335 could occur as the rhs of an assignment to a saooaaat (i.e., an
1336 expression of an access-to-object type), return the new value for the
1337 saooaaat's associated Extra_Accessibility object.
1338 (Effective_Extra_Accessibility): New function; same as
1339 Einfo.Extra_Accessibility except that object renames are looked through.
1340 * sem_util.adb
1341 (Deepest_Type_Access_Level): New function; see sem_util.ads description.
1342 (Dynamic_Accessibility_Level): New function; see sem_util.ads
1343 description.
1344 (Effective_Extra_Accessibility): New function; see sem_util.ads
1345 description.
1346 * einfo.ads (Is_Local_Anonymous_Access): Update comments.
1347 (Extra_Accessibility): Update comments.
1348 (Init_Object_Size_Align): New procedure; same as Init_Size_Align
1349 except RM_Size field (which is only for types) is unaffected.
1350 * einfo.adb
1351 (Extra_Accessibility): Expand domain to allow objects, not just formals.
1352 (Set_Extra_Accessibility): Expand domain to allow objects, not just
1353 formals.
1354 (Init_Size): Add assertion that we are not trashing the
1355 Extra_Accessibility attribute of an object.
1356 (Init_Size_Align): Add assertion that we are not trashing the
1357 Extra_Accessibility attribute of an object.
1358 (Init_Object_Size_Align): New procedure; see einfo.ads description.
1359 * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access
1360 differently for the type of a (non-library-level) saooaaat depending
1361 whether Ada_Version < Ada_2012. This is the only point where Ada_Version
1362 is queried in this set of changes - everything else (in particular,
1363 setting of the Extra_Accessibility attribute in exp_ch3.adb) is
1364 driven off of the setting of the Is_Local_Anonymous_Access attribute.
1365 The special treatment of library-level saooaaats is an optimization,
1366 not required for correctnesss. This is based on the observation that the
1367 Ada2012 rules (static and dynamic) for saooaaats turn out to be
1368 equivalent to the Ada2005 rules in the case of a library-level saooaaat.
1369 * exp_ch3.adb
1370 (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is
1371 false for the type of a saooaaat, declare and initialize its
1372 accessibility level object and set the Extra_Accessibility attribute
1373 of the saooaaat to refer to this object.
1374 * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support.
1375 * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with
1376 calls to Effective_Extra_Accessibility in order to support
1377 renames of saooaaats.
1378 (Expand_N_Type_Conversion): Add new local function,
1379 Has_Extra_Accessibility, and call it when determining whether an
1380 accessibility check is needed.
1381 It returns True iff Present (Effective_Extra_Accessibility (Id)) would
1382 evaluate to True (without raising an exception).
1383 * exp_ch5.adb
1384 (Expand_N_Assignment_Statement): When assigning to an Ada2012
1385 saooaaat, update its associated Extra_Accessibility object (if
1386 it has one). This includes an accessibility check.
1387 * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates
1388 a saooaaat, update its Extra_Accessibility object too (if it
1389 has one).
1390 (Expand_Call): Replace a couple of calls to Type_Access_Level
1391 with calls to Dynamic_Access_Level to handle cases where
1392 passing a literal (any literal) is incorrect.
1393 * sem_attr.adb (Resolve_Attribute): Handle the static accessibility
1394 checks associated with "Saooaat := Some_Object'Access;"; this must
1395 be rejected if Some_Object is declared in a more nested scope
1396 than Saooaat.
1397 * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an
1398 assignment to a saooaaat even if Is_Local_Anonymous_Access
1399 returns False for its type (indicating a 2012-style saooaaat).
1400 * sem_ch8.adb
1401 (Analyze_Object_Renaming): Replace a call to Init_Size_Align
1402 (which is only appropriate for objects, not types) with a call
1403 of Init_Object_Size_Align in order to avoid trashing the
1404 Extra_Accessibility attribute of a rename (the two attributes
1405 share storage).
1406 * sem_res.adb
1407 (Valid_Conversion) Replace six calls to Type_Access_Level with
1408 calls to Deepest_Type_Access_Level. This is a bit tricky. For an
1409 Ada2012 non-library-level saooaaat, the former returns library level
1410 while the latter returns the (static) accessibility level of the
1411 saooaaat. A type conversion to the anonymous type of a saooaaat
1412 can only occur as part of an assignment to the saooaaat, so we
1413 know that such a conversion must be in a lhs context, so Deepest
1414 yields the result that we need. If such a conversion could occur,
1415 say, as the operand of an equality operator, then this might not
1416 be right. Also add a test so that static accessibilty checks are
1417 performed for converting to a saooaaat's type even if
1418 Is_Local_Anonymous_Access yields False for the type.
1419
14202011-08-30 Javier Miranda <miranda@adacore.com>
1421
1422 * sem_disp.adb (Check_Dispatching_Operation): Complete condition that
1423 controls generation of a warning associated with late declaration of
1424 dispatching functions. Required to avoid generating spurious
1425 warnings.
1426
6cce2156
GD
14272011-08-30 Gary Dismukes <dismukes@adacore.com>
1428
1429 * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the
1430 return object has an anonymous access type and the function's type is
1431 a named access type.
1432 * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming
1433 conversions on implicit conversions, since such conversions can occur
1434 for anonymous access cases due to expansion. Issue error for attempt
1435 to rename an anonymous expression as an object of a named access type.
1436 * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs,
1437 to indicate whether this function should report errors on invalid
1438 conversions.
1439 * sem_res.adb (Resolve): For Ada 2012, in the case where the type of
1440 the expression is of an anonymous access type and the expected type is
1441 a named general access type, rewrite the expression as a type
1442 conversion, unless this is an expression of a membership test.
1443 (Valid_Conversion.Error_Msg_N): New procedure that conditions the
1444 calling of Error_Msg_N on new formal Report_Errs.
1445 (Valid_Conversion.Error_Msg_NE): New procedure that conditions the
1446 calling of Error_Msg_NE on new formal Report_Errs.
1447 (Valid_Conversion): Move declaration of this function to the package
1448 spec, to allow calls from membership test processing. For Ada 2012,
1449 enforce legality restrictions on implicit conversions of anonymous
1450 access values to general access types, disallowing such conversions in
1451 cases where the expression has a dynamic accessibility level (access
1452 parameters, stand-alone anonymous access objects, or a component of a
1453 dereference of one of the first two cases).
1454 * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type
1455 in the context of a named general access expected type.
1456 * exp_ch4.adb Add with and use of Exp_Ch2.
1457 (Expand_N_In): Add processing for membership tests applied to
1458 expressions of an anonymous access type. First, Valid_Conversion is
1459 called to check whether the test is statically False, and then the
1460 conversion is expanded to test that the expression's accessibility
1461 level is no deeper than that of the tested type. In the case of
1462 anonymous access-to-tagged types, a tagged membership test is applied
1463 as well.
1464 (Tagged_Membership): Extend to handle access type cases, applying the
1465 test to the designated types.
1466 * exp_ch6.adb (Expand_Call): When creating an extra actual for an
1467 accessibility level, and the actual is a 'Access applied to a current
1468 instance, pass the accessibility level of the type of the current
1469 instance rather than applying Object_Access_Level to the prefix. Add a
1470 ??? comment, since this level isn't quite right either (will eventually
1471 need to pass an implicit level parameter to init procs).
1472
747de90b
AC
14732011-08-30 Bob Duff <duff@adacore.com>
1474
1475 * s-taskin.ads: Minor comment fix.
1476
14772011-08-30 Ed Schonberg <schonberg@adacore.com>
1478
1479 * sem_res.adb (Check_Parameterless_Call): If the node is a selected
1480 component and the selector is a dispatching operation, check if it is
1481 a prefixed call before rewriting as a parameterless function call.
1482
cdc4cc65
JJ
14832011-08-29 Jakub Jelinek <jakub@redhat.com>
1484
1485 * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy
1486 tsystem.h into $(RTSDIR) instead of rts.
1487
226a7fa4
AC
14882011-08-29 Robert Dewar <dewar@adacore.com>
1489
1490 * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor
1491 reformatting.
1492 * gcc-interface/Make-lang.in: Update dependencies.
1493
14942011-08-29 Yannick Moy <moy@adacore.com>
1495
1496 * alfa.ads (Name_Of_Heap_Variable): New constant name.
1497 * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global
1498 table to hold dereferences.
1499 (Add_ALFA_Xrefs): Take into account dereferences as special
1500 reads/writes to the variable "HEAP".
1501 (Enclosing_Subprogram_Or_Package): Move subprogram here.
1502 (Generate_Dereference): New procedure to store a read/write dereferencew
1503 in the table Drefs.
1504 * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for
1505 the special "HEAP" var.
1506 * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference
1507 in ALFA mode.
1508 * sem_util.adb (Note_Possible_Modification): Store write dereference
1509 in ALFA mode.
1510
dfbcb149
HK
15112011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
1512
1513 * exp_ch3.adb (Freeze_Type): Generate an accessibility check which
1514 ensures that the level of the subpool access type is not deeper than
1515 that of the pool object.
1516 * sem_util.adb (Object_Access_Level): Expand to handle defining
1517 identifiers.
1518 * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the
1519 subpool handle name of a rewritten allocator.
1520
1df4f514
AC
15212011-08-29 Robert Dewar <dewar@adacore.com>
1522
1523 * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting.
1524
15252011-08-29 Thomas Quinot <quinot@adacore.com>
1526
1527 * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple
1528 values, we generate multiple triples of parameters in the TypeCode.
1529 Bump Choice_Index for each such triple so that a subsequent default
1530 choice is associated with the correct index in the typecode.
1531
15322011-08-29 Ed Schonberg <schonberg@adacore.com>
1533
1534 * a-cdlili.adb (Iterate): Initialize properly an iterator over a null
1535 container.
1536 (First, Last): Handle properly an iterator over a null container.
1537
15382011-08-29 Bob Duff <duff@adacore.com>
1539
1540 * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon
1541 processing if we run across a node with no Scope. This can happen if
1542 we're with-ing an library-level instance, and that instance got errors
1543 that caused "instantiation abandoned".
1544 * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising
1545 an exception instead of using Assert, so it won't go into an infinite
1546 loop, even when assertions are turned off.
1547
15482011-08-29 Ed Schonberg <schonberg@adacore.com>
1549
1550 * a-coorse.adb: Proper handling of empty ordered sets.
1551
14f0f659
AC
15522011-08-29 Johannes Kanig <kanig@adacore.com>
1553
1554 * debug.adb: Add comments.
1555
8027b455
AC
15562011-08-29 Thomas Quinot <quinot@adacore.com>
1557
1558 * a-except.adb, a-except-2005.adb: Minor comment rewording and
1559 reformatting.
1560
15612011-08-29 Yannick Moy <moy@adacore.com>
1562
1563 * sem_ch3.adb (Array_Type_Declaration): Remove insertion of
1564 declaration for Itypes in Alfa mode.
1565
d85fd922
AC
15662011-08-29 Robert Dewar <dewar@adacore.com>
1567
1568 * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb,
1569 a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads,
1570 a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor
1571 reformatting.
1572
15732011-08-29 Tristan Gingold <gingold@adacore.com>
1574
1575 * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to
1576 package spec.
1577 * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler.
1578 * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts
1579 while raising PE.
1580
fd3d2680
AC
15812011-08-29 Robert Dewar <dewar@adacore.com>
1582
1583 * a-cbhama.adb, a-cbhama.ads: Minor reformatting.
1584
15852011-08-29 Javier Miranda <miranda@adacore.com>
1586
1587 * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for
1588 renamings of formal subprograms when the actual for a formal type is
1589 class-wide.
1590
dfbf013f
MH
15912011-08-29 Matthew Heaney <heaney@adacore.com>
1592
1593 * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment
1594 to Target.
1595
15962011-08-29 Matthew Heaney <heaney@adacore.com>
1597
1598 * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all
1599 components of record type.
1600 * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw
1601 to Target.
1602
a6dd3a54
ES
16032011-08-29 Ed Schonberg <schonberg@adacore.com>
1604
1605 * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb,
1606 a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to
1607 container packages.
1608
c54796e0
AC
16092011-08-29 Robert Dewar <dewar@adacore.com>
1610
1611 * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor
1612 reformatting.
1613
16142011-08-29 Matthew Heaney <heaney@adacore.com>
1615
1616 * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all
1617 components of record type.
1618
16192011-08-29 Bob Duff <duff@adacore.com>
1620
1621 * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated
1622 by the termination handler.
1623
9fd9d2be
AC
16242011-08-29 Yannick Moy <moy@adacore.com>
1625
1626 * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes
1627 created in Alfa mode, instead of inserting artificial declarations of
1628 non-Itypes in the tree.
1629 * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to
1630 know if an Itype has a corresponding declaration, as defined in
1631 itypes.ads.
1632
16332011-08-29 Yannick Moy <moy@adacore.com>
1634
1635 * gnat1drv.adb: Minor rewrite.
1636
16372011-08-29 Bob Duff <duff@adacore.com>
1638
1639 * s-tasuti.adb (Make_Passive): Work around race condition in
1640 Make_Independent, which can cause Wait_Count to be zero. So instead of
1641 asserting that Wait_Count > 0, and then decrementing it, decrement it
1642 only if Wait_Count > 0.
1643 * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these
1644 should be nonnegative, so declare them Natural instead of Integer.
1645
833eaa8a
AC
16462011-08-29 Robert Dewar <dewar@adacore.com>
1647
1648 * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb,
1649 sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb,
1650 a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb,
1651 a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb,
1652 exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting.
1653
16542011-08-29 Tristan Gingold <gingold@adacore.com>
1655
1656 * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels.
1657
16582011-08-29 Vadim Godunko <godunko@adacore.com>
1659
1660 * s-parint.ads: Minor comment clarification.
1661
16622011-08-29 Vincent Celier <celier@adacore.com>
1663
1664 * prj.adb (Initialize): Make sure that new reserved words after Ada 95
1665 may be used as identifiers.
1666
16672011-08-29 Ed Schonberg <schonberg@adacore.com>
1668
1669 * a-coinho.ads: Minor reformating.
1670
3a613a36
AC
16712011-08-29 Ed Schonberg <schonberg@adacore.com>
1672
1673 * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a
1674 container of a derived type.
1675
3a613a36
AC
16762011-08-29 Ed Schonberg <schonberg@adacore.com>
1677
1678 * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads,
1679 a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers.
1680
14848f57
AC
16812011-08-29 Pascal Obry <obry@adacore.com>
1682
1683 * exp_disp.adb: Minor comment fix.
1684 (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters
1685 to avoid warnings when compiling with -Wall.
1686 (Make_Disp_Conditional_Select_Body): Likewise.
1687 (Make_Disp_Timed_Select_Body): Likewise.
1688
16892011-08-29 Ed Schonberg <schonberg@adacore.com>
1690
1691 * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is
1692 an entity name, generate reference for it.
1693
16942011-08-29 Ed Schonberg <schonberg@adacore.com>
1695
1696 * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S"
1697 iterator form.
1698 * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for
1699 the class-wide type.
1700 * sem_ch5.adb: Move some rewriting to the expander, where it belongs.
1701
17022011-08-29 Ed Schonberg <schonberg@adacore.com>
1703
1704 * sem_ch8.adb (Check_Constrained_Object): Do not create an actual
1705 subtype for an object whose type is an unconstrained union.
1706
17072011-08-29 Ed Schonberg <schonberg@adacore.com>
1708
1709 * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased"
1710 is allowed in a component definition, by AI95-406.
1711
17122011-08-29 Matthew Heaney <heaney@adacore.com>
1713
1714 * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next.
1715
17162011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
1717
1718 * a-except-2005.adb: Alphabetize all routines.
1719 (Triggered_By_Abort): New routine.
1720 * a-except-2005.ads (Triggered_By_Abort): New routine.
1721 * a-except.adb Alphabetize all routines.
1722 (Triggered_By_Abort): New routine.
1723 * a-except.ads (Triggered_By_Abort): New routine.
1724 * exp_ch7.adb: Update all comments involving the detection of aborts in
1725 finalization code.
1726 (Build_Object_Declarations): Do not generate code to detect the
1727 presence of an abort at the start of finalization code, use a runtime
1728 routine istead.
1729 * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and
1730 RE_Unit_Table.
1731 * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to
1732 allocate a task on a subpool.
1733 * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use.
1734 The flag disables all actions related to the maintenance of
1735 Finalize_Address_Table when subpools are not in use.
1736 (Allocate_Any_Controlled): Signal the machinery that subpools are in
1737 use.
1738 (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which
1739 performs costly task locking when subpools are not in use.
1740
57a8057a
AC
17412011-08-29 Yannick Moy <moy@adacore.com>
1742
1743 * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged
1744 types and dispatching calls in Alfa mode.
1745 * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of
1746 correspondance between body and spec scopes, to reuse utility functions
1747 (Traverse_Declarations_Or_Statements): Protect access to body for stub
1748 by testing the presence of the library unit for the body
1749 * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa
1750 mode the expansion of accept statements is skipped
1751 * sem_util.adb, sem_util.ads (Unique_Entity): New function returning
1752 the unique entity corresponding to the one returned by
1753 Unique_Defining_Entity applied to the enclosing declaration of the
1754 argument.
1755
17562011-08-29 Bob Duff <duff@adacore.com>
1757
1758 * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in
1759 gdb when x is not a node (it can be a node list, name_id, etc). pp is
1760 an alias for pn. ppp is an alias for pt.
1761
17622011-08-29 Javier Miranda <miranda@adacore.com>
1763
1764 * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing
1765 aggregate to take a consistent decision on the need to convert into
1766 assignments aggregates that initialize constant objects.
1767
17682011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
1769
1770 * exp_ch4.adb (Expand_Allocator_Expression): Add a call to
1771 Build_Allocate_Deallocate_Proc in order to handle allocation of
1772 non-controlled objects on subpools.
1773 * impunit.adb: Remove s-finmas and s-spsufi since they were never meant
1774 to be end-user visible.
1775 * s-finmas.adb: Add with and use clause for System.HTable.
1776 Add an instantiation of Simple_HTable which provides a mapping between
1777 the address of a controlled object and the corresponding
1778 Finalize_Address used to clean up the object. The table is used when a
1779 master is operating in heterogeneous mode.
1780 (Attach): Explain why the input node is not verified on being already
1781 attached.
1782 (Delete_Finalize_Address): New routine.
1783 (Detach): Add pragma Assert which ensures that a node is already
1784 attached.
1785 (Finalize): Add local variable Cleanup. Rewrite the iteration scheme
1786 since nodes are no longer removed on traversal. Explain why node
1787 detachment is undesirable in this case.
1788 (Get_Finalize_Address): New routine.
1789 (Hash): New routine.
1790 (Is_Empty_List): Removed.
1791 (pm): Renamed to Print_Master. Add output for discriminant
1792 Is_Homogeneous.
1793 Comment reformatting.
1794 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
1795 * s-finmas.ads: Various comments additions / improvements.
1796 Type Finalization_Master has a discriminant which determines the mode of
1797 operation.
1798 (Delete_Finalize_Address): New routine.
1799 (Get_Finalize_Address): New routine.
1800 (pm): Renamed to Print_Master.
1801 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
1802 * s-stposu.adb: Add with clause for System.Address_Image; Add with and
1803 use clause for System.IO.
1804 (Allocate_Any_Controlled): Add machinery to set TSS primitive
1805 Finalize_Address depending on the mode of allocation and the mode of
1806 the master.
1807 (Deallocate_Any_Controlled): Remove the relation pair object -
1808 Finalize_Address regardless of the master mode. Add comment explaining
1809 the reason.
1810 (Detach): Ensure that fields Prev and Next are null after detachment.
1811 (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration
1812 scheme to check whether the list of subpools is empty. There is no
1813 longer need to store the next subpool or advance the current pointer.
1814 (Is_Empty_List): New routine.
1815 (Print_Pool): New routine.
1816 (Print_Subpool): New routine.
1817 * s-stposu.ads: Various comments additions / improvements.
1818 Field Master of type Root_Subpool is now a heterogeneous collection.
1819 (Print_Pool): New routine.
1820 (Print_Subpool): New routine.
1821
18222011-08-29 Ed Schonberg <schonberg@adacore.com>
1823
1824 * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator
1825 forms, using aspects of container types.
1826 * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and
1827 Has_Implicit_Dereference flags, that may be set on the partial view.
1828 * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a
1829 container type with an indexing aspect.
1830 (Analyze_Quantified_Expression): Analyze construct with expansion
1831 disabled, because it will be rewritten as a loop during expansion.
1832 (Try_Container_Indexing): The prefix itself may be a container type
1833 with an indexing aspect, as with a vector of vectors.
1834 * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze
1835 the original doamin of iteration, for name capture.
1836 (Analyze_Iterator_Specification): If the domain is an expression that
1837 needs finalization, create a separate declaration for it.
1838 For an iterator with "of" retrieve default iterator info from aspect of
1839 container type. For "in" iterator, retrieve type of Iterate function.
1840 * sem_ch13.adb (Check_Iterator_Function): Fix typo.
1841 (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before
1842 analysis, to prevent spurious errors about late attributes.
1843 * sprint.adb: Handle quantified expression with either loop or iterator
1844 specification.
1845 * a-convec.ads, a-convec.adb: Iterate function returns a reversible
1846 iterator.
1847
ddf67a1d
AC
18482011-08-29 Vincent Celier <celier@adacore.com>
1849
1850 * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler,
1851 Binder or Linker of the main project file.
1852
18532011-08-29 Ed Schonberg <schonberg@adacore.com>
1854
1855 * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic
1856 unit.
1857
18582011-08-29 Yannick Moy <moy@adacore.com>
1859
1860 * exp_ch9.adb: Partial revert of previous change for Alfa mode
1861
18622011-08-29 Yannick Moy <moy@adacore.com>
1863
1864 * exp_ch11.adb: Minor expansion of comment.
1865
18662011-08-29 Yannick Moy <moy@adacore.com>
1867
1868 * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities.
1869
18702011-08-29 Ed Schonberg <schonberg@adacore.com>
1871
1872 * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal
1873 interpretation, set the type before resolving the operands, because
1874 legality checks on an exponention operand need to know the type of the
1875 context.
1876
18772011-08-29 Ed Schonberg <schonberg@adacore.com>
1878
1879 * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed
1880 cleanups on a master if the instance is within a generic unit.
1881 Complement to the corresponding fix to inline.adb for K520-030.
1882
18832011-08-29 Tristan Gingold <gingold@adacore.com>
1884
1885 * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current
1886 occurrence.
1887 * exp_intr.adb: Minor comment fix.
1888
18892011-08-29 Bob Duff <duff@adacore.com>
1890
1891 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where
1892 Delay_Required was used as an uninitialized variable.
1893
690943fc
RD
18942011-08-29 Robert Dewar <dewar@adacore.com>
1895
1896 * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads,
1897 sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb,
1898 a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting.
1899
9f0ee988
TQ
19002011-08-29 Thomas Quinot <quinot@adacore.com>
1901
1902 * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True.
1903 Remove unused variables.
1904
3e24afaa
AC
19052011-08-29 Ed Schonberg <schonberg@adacore.com>
1906
1907 * sem_res.adb: Remove Build_Explicit_Dereference.
1908 * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here
1909 from sem_res.adb, used in analysis of additional constructs.
1910 (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012
1911 expansion of iterators.
1912 (Is_Object_Reference): Recognize variables rewritten as explicit
1913 dereferences in Ada2012.
1914 * snames.ads-tmpl: Add Has_Element, Forward_Iterator,
1915 Reversible_Iterator names, for expansion of Ada2012 iterators.
1916 * aspects.ads, aspects.adb (Find_Aspect): Utility.
1917 * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly
1918 linked list container.
1919 * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers.
1920 * a-coorse.ads, a-coorse.adb: Ditto for ordered sets.
1921
19222011-08-29 Ed Schonberg <schonberg@adacore.com>
1923
1924 * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map
1925 containers.
1926
19272011-08-29 Vincent Celier <celier@adacore.com>
1928
1929 * make.adb (Gnatmake): Get the maximum number of simultaneous
1930 compilation processes after the Builder switches has been scanned, as
1931 there may include -jnn.
1932
19332011-08-29 Matthew Heaney <heaney@adacore.com>
1934
1935 * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next.
1936
19372011-08-29 Tristan Gingold <gingold@adacore.com>
1938
1939 * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of
1940 GNAT_DRIVER_COMMAND_LINE to 255.
1941
19422011-08-29 Pascal Obry <obry@adacore.com>
1943
1944 * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor
1945 reformatting and style fix (class attribute casing).
1946
19472011-08-29 Yannick Moy <moy@adacore.com>
1948
1949 * exp_ch11.adb: Yet another case where expansion should be common
1950 between CodePeer and Alfa.
1951
19522011-08-29 Yannick Moy <moy@adacore.com>
1953
1954 * exp_ch9.adb: Partial revert of previous change for Alfa mode.
1955
19562011-08-29 Ed Schonberg <schonberg@adacore.com>
1957
1958 * sem_ch6.adb (Matches_Limited_With_View): The limited views of an
1959 incomplete type and its completion match.
1960
3ddd922e
AC
19612011-08-29 Yannick Moy <moy@adacore.com>
1962
1963 * exp_ch13.adb: Adjust previous change.
1964
19652011-08-29 Robert Dewar <dewar@adacore.com>
1966
1967 * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb,
1968 exp_ch4.adb, sem_ch8.adb: Minor code reorganization
1969 Minor reformatting.
1970
444acbdd
AC
19712011-08-29 Emmanuel Briot <briot@adacore.com>
1972
1973 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also
1974 initialize aggregated projects.
1975
19762011-08-29 Ed Schonberg <schonberg@adacore.com>
1977
1978 * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope
1979 depth of candidates to resolve a potentially spurious ambiguity between
1980 two visible subprograms.
1981
e0296583
AC
19822011-08-29 Yannick Moy <moy@adacore.com>
1983
1984 * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without
1985 Requires/Ensures.
1986 * sem_util.adb (Get_Ensures_From_Test_Case_Pragma,
1987 Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without
1988 Requires/Ensures.
1989
19902011-08-29 Arnaud Charlet <charlet@adacore.com>
1991
1992 * gnat1drv.adb (Adjust_Global_Switches): Improve previous change.
1993 Add comment.
1994
19952011-08-29 Thomas Quinot <quinot@adacore.com>
1996
1997 * sem_res.adb: Minor reformatting.
1998
69794413
JK
19992011-08-29 Johannes Kanig <kanig@adacore.com>
2000
2001 * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA
2002 mode.
2003 * gnat1drv.adb (Adjust_Global_Switches): Set
2004 Use_Expressions_With_Actions to False in ALFA mode.
2005 * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in
2006 ALFA mode.
2007
59e6b23c
AC
20082011-08-29 Yannick Moy <moy@adacore.com>
2009
2010 * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode.
2011 * exp_ch9.adb: Do not expand tasking constructs in Alfa mode.
2012 * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of
2013 tagged types and dispatching calls in Alfa mode.
2014
20152011-08-29 Javier Miranda <miranda@adacore.com>
2016
2017 * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that
2018 we do not report an error on an Empty node.
2019
20202011-08-29 Geert Bosch <bosch@adacore.com>
2021
2022 * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o,
2023 a-nlrear.o and a-nurear.o.
2024
20252011-08-29 Robert Dewar <dewar@adacore.com>
2026
2027 * freeze.adb: Minor code reorganization.
2028 Minor reformatting.
2029 * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb,
2030 sem_ch6.adb: Minor reformatting
2031
20322011-08-29 Tristan Gingold <gingold@adacore.com>
2033
2034 * s-except.ads, s-except.adb: Provide dummy body.
2035
20362011-08-29 Yannick Moy <moy@adacore.com>
2037
2038 * sem_warn.adb (Within_Postcondition): Take into account the case of
2039 an Ensures component in a Test_Case.
2040
4d792549
AC
20412011-08-29 Tristan Gingold <gingold@adacore.com>
2042
2043 * s-excdeb.ads, s-excdeb.adb: New files, created from s-except.
2044 * rtsfind.ads (RTU_Id): Replaces System_Exceptions by
2045 System_Exceptions_Debug
2046 (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug
2047 * a-except.adb: With and use System.Exceptions_Debug instead of
2048 System.Exceptions.
2049 * a-except-2005.adb: Likewise.
2050 * s-assert.adb: Likewise.
2051 * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb.
2052 * Makefile.rtl: Add s-excdeb. Adjust compilation rule.
2053 * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add
2054 s-excdeb. Update dependencies.
2055 (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o
2056 as these no longer need external libraries.
2057
20582011-08-29 Ed Schonberg <schonberg@adacore.com>
2059
2060 * sem_res.adb (Resolve_Op_Expon): Additional check to reject an
2061 exponentiation operator on universal values in a context that requires
2062 a fixed-point type.
2063
20642011-08-29 Tristan Gingold <gingold@adacore.com>
2065
2066 * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence
2067 before calling notify_handled_exception.
2068 * a-exextr.adb: Fix comment.
2069
b254da66
AC
20702011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2071
2072 * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute
2073 Finalize_Address of the access type's finalization master.
2074 (Expand_N_Allocator): Add code to set attribute Finalize_Address of the
2075 access type's finalization master. Add a guard to prevent
2076 Associated_Storage_Pool from being set on .NET/JVM.
2077 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set
2078 attribute Finalize_Address of the access type's finalization master.
2079 * exp_ch7.adb (Make_Finalize_Address_Call): New routine.
2080 * exp_ch7.ads (Make_Finalize_Address_Call): New routine.
2081 * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and
2082 RE_Unit_Table.
2083 * s-finmas.adb: Add with clause for System.Address_Image. Add with and
2084 use clause for System.IO
2085 (Detach): Relax the assertion, to be reinstated later.
2086 (Finalize): Rewrite the iteration loop to avoid pointer comparison.
2087 Relax the assertion on Finalize_Address, to be reinstated later.
2088 (Is_Empty_List): New routine.
2089 (pm): New debug routine.
2090 (Set_Finalize_Address): New routine.
2091 * s-finmas.ads (pm): New debug routine.
2092 (Set_Finalize_Address): New routine.
2093 * s-stposu.adb (Allocate_Any_Controlled): Code reformatting.
2094
20952011-08-29 Tristan Gingold <gingold@adacore.com>
2096
2097 * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access):
2098 Remove convention C.
2099
21002011-08-29 Tristan Gingold <gingold@adacore.com>
2101
2102 * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove.
2103 (Initialize_TCB): Remove Exc_Stack_Ptr initialization.
2104 (Finalize_TCB): Remove its finalization.
2105 (Initialize): Remove assignment of GET_Exc_Stack_Addr
2106 * s-soflin.adb (NT_Exc_Stack): Remove
2107 (Get_Exc_Stack_Addr_NT): Likewise.
2108 (Get_Exc_Stack_Addr_Soft): Likewise.
2109 * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove.
2110 (Get_Exc_Stack_Addr): Likewise.
2111 (Get_Exc_Stack_Addr_Soft): Likewise
2112 * s-taspri-vms.ads (Exc_Stack_T): Remove.
2113 (Exc_Stack_Ptr_T): Likewise.
2114 (Private_Data): Remove Exc_Stack_Ptr component.
2115
21162011-08-29 Tristan Gingold <gingold@adacore.com>
2117
2118 * raise-gcc.c (get_ip_from_context): New function. Factorize code.
2119
21202011-08-29 Tristan Gingold <gingold@adacore.com>
2121
2122 * gnat_ugn.texi: Fix aix and x86-solaris info for run-time.
2123
21242011-08-29 Geert Bosch <bosch@adacore.com>
2125
2126 * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate,
2127 L2_Norm, Swap_Column): New generic subprograms
2128 * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate,
2129 L2_Norm, Swap_Column): Implement new subprograms in order to
2130 eliminate dependency on BLAS and LAPACK libraries in
2131 Ada.Numerics.Generic_Real_Arrays and eventually also the complex
2132 version. Forward_Eliminate/Back_Substitute can be used to put a
2133 matrix in row echelon or reduced row echelon form using partial
2134 pivoting.
2135 * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate,
2136 Swap_Column): Instantiate from System.Generic_Array_Operations.
2137 ("*", "abs"): Implement by instantiation from Generic_Array_Operations.
2138 (Sqrt): Local function for simple computation of square root without
2139 adding dependencies on Generic_Elementary_Functions.
2140 (Swap): New subprogram to exchange floating point numbers.
2141 (Inverse): Reimplement using Jordan-Gauss elimination.
2142 (Jacobi): New procedure implementing Jacobi's method for computation
2143 of eigensystems, based on Rutishauser's implementation.
2144 (L2_Norm): Implement directly using the inner product.
2145 (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of
2146 decreasing eigenvalue as required by the Ada RM.
2147 (Swap_Column): New helper procedure for Sort_Eigensystem.
2148 Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK.
2149 Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for
2150 Sort_Eigensystems.
2151
21522011-08-29 Thomas Quinot <quinot@adacore.com>
2153
2154 * put_scos.adb (Put_SCOs): Do not emit a newline for an empty
2155 statements line.
2156
60370fb1
AC
21572011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2158
2159 * s-finmas.adb (Finalize): Check Finalize_Address of the master rather
2160 than the current node.
2161 * s-finmas.ads: Move field Finalize_Address from type FM_Node to
2162 Finalization_Master. The list headers have two fields instead of three.
2163 This should fix alignment issue but subpool allocations are now
2164 unusable. Alphabetize subprograms.
2165 * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than
2166 the size of the header when converting the beginning of the object to
2167 a FM_Node. Set the master's Finalize_Address attribute if not already
2168 set.
2169 (Deallocate_Any_Controlled): Use the offset rather than the size of the
2170 header when converting the beginning of the object to a FM_Node.
2171
21722011-08-29 Gary Dismukes <dismukes@adacore.com>
2173
2174 * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of
2175 reraise when compiling for CodePeer.
2176
21772011-08-29 Arnaud Charlet <charlet@adacore.com>
2178
2179 * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads,
2180 now needed by a-convec.adb. Fix warning.
2181
21822011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2183
2184 * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the
2185 processing of TSS routine Finalize_Address when compiling in
2186 CodePeer_Mode.
2187
21882011-08-29 Thomas Quinot <quinot@adacore.com>
2189
2190 * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb,
2191 sem_warn.adb: Minor reformatting.
2192
21932011-08-29 Emmanuel Briot <briot@adacore.com>
2194
2195 * prj-conf.adb (Get_Config_Switches): Also collect the list of
2196 languages from aggregated projects.
2197
21982011-08-29 Yannick Moy <moy@adacore.com>
2199
2200 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements,
2201 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
2202 Traverse_Package_Declaration, Traverse_Subprogram_Body,
2203 Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies
2204 for stubs are traversed too when parameter is set
2205 (Traverse_All_Compilation_Units): Traverse without going inside stubs
2206 (Traverse_Declarations_Or_Statements): Do the special traversing for
2207 stubs when required.
2208 * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to
2209 return subprogram or package body from stub.
2210 (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect
2211 stubs without prior subprogram decl.
2212
22132011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
2214
2215 * gnat_ugn.texi: Fix typo.
2216
e9c9d122
HK
22172011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2218
2219 * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism
2220 which accounts for size vs alignment issues and calculates the size of
2221 the list header.
2222 (Deallocate_Any_Controlled): Ditto.
2223 (Nearest_Multiple_Rounded_Up): New routine.
2224
25ebc085
AC
22252011-08-29 Tristan Gingold <gingold@adacore.com>
2226
2227 * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag.
2228 * a-exexda.adb (Set_Exception_C_Msg): Ditto.
2229 (Set_Exception_Msg): Ditto.
2230 * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set
2231 Private_Data.
2232 * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove.
2233 Use Save_Occurrence instead of Save_Occurrence_No_Private.
2234 (Raise_With_Msg): Remove Cleanup_Flag.
2235 * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove
2236 Clean_Flag and Private_Data components.
2237
22382011-08-29 Yannick Moy <moy@adacore.com>
2239
2240 * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like
2241 in CodePeer mode.
2242 * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation
2243 of an explicitly declared type, so that the base types of the original
2244 type and this generated type are the same, and a "type" (not a subtype
2245 like previously).
2246 * errout.adb (Special_Msg_Delete): Do not issue messages "Size too
2247 small" in Alfa mode, like in CodePeer mode.
2248 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep
2249 clauses in Alfa mode.
2250
22512011-08-29 Javier Miranda <miranda@adacore.com>
2252
2253 * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this
2254 function to the package spec.
2255 * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For
2256 internally generated bodies of null procedures locate the internally
2257 generated spec enforcing mode conformance.
2258 (Is_Interface_Conformant): Ensure that the controlling formal of the
2259 primitives match.
2260
22612011-08-29 Ed Schonberg <schonberg@adacore.com>
2262
2263 * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not
2264 reject the pragma if it appears to apply to a formal subprogram.
2265
22662011-08-29 Ed Schonberg <schonberg@adacore.com>
2267
2268 * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for
2269 inner expression, to prevent double evaluation.
2270
590549fb
AC
22712011-08-29 Tristan Gingold <gingold@adacore.com>
2272
2273 * a-exexpr.adb (Propagate_Exception): Remove all the parameters as
2274 they were unused.
2275 * a-exexpr-gcc.adb (Propagate_Exception): Ditto.
2276 * a-except-2005.adb (Propagate_Exception): Adjust spec.
2277 (Raise_Current_Excep): Adjust call.
2278 (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep.
2279
22802011-08-29 Thomas Quinot <quinot@adacore.com>
2281
2282 * exp_disp.adb: Minor reformatting.
2283
62380e66
TG
22842011-08-29 Tristan Gingold <gingold@adacore.com>
2285
2286 * a-exexpr.adb (Setup_Exception): Removed.
2287 * a-exexpr-gcc.adb (Setup_Exception): Removed.
2288 * a-except.adb (Exception_Propagation): Removed.
2289 * a-except-2005.adb (Setup_Exception): Removed.
2290 (Reraise): Remove call to Setup_Exception.
2291 (Reraise_Occurrence): Ditto.
2292 (Reraise_Occurrence_Always): Ditto.
2293 (Reraise_Occurrence_No_Defer): Ditto.
2294 (Transfer_Occurrence): Ditto.
2295 * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception.
2296 (Set_Exception_Msg): Ditto.
2297
c95aa61c
AC
22982011-08-29 Robert Dewar <dewar@adacore.com>
2299
2300 * a-convec.adb, exp_disp.adb: Minor reformatting.
2301
23022011-08-29 Tristan Gingold <gingold@adacore.com>
2303
2304 * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
2305
624e1688
AC
23062011-08-29 Gary Dismukes <dismukes@adacore.com>
2307
2308 * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
2309 Exception_Handlers to No_List instead of Empty_List in the case where
2310 there are no handlers.
2311
23122011-08-29 Tristan Gingold <gingold@adacore.com>
2313
2314 * gcc-interface/gigi.h (enum standard_datatypes): Add
2315 ADT_reraise_zcx_decl
2316 (reraise_zcx_decl): New macro.
2317 * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable.
2318 (gigi): Set reraise_zcx_decl.
2319 (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr.
2320 (gnat_to_gnu): Handle N_Raise_Statement.
2321
7134062a
AC
23222011-08-29 Robert Dewar <dewar@adacore.com>
2323
2324 * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads,
2325 a-undesu.adb: Minor reformatting.
2326
23272011-08-29 Ed Schonberg <schonberg@adacore.com>
2328
2329 * exp_disp.adb (Check_Premature_Freezing): When building a dispatch
2330 table, accept an unfrozen untagged component if it is an actual for a
2331 formal incomplete type.
2332 * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to
2333 provide new iterator forms over vectors.
2334 Introduce type Iterator in package body to implement operations of
2335 Reversible_Iterator interface.
2336 * a-iteint.ads: Make package pure so it is usable with new container
2337 packages, that are categorized Remote_Types.
2338
ca5af305
AC
23392011-08-29 Robert Dewar <dewar@adacore.com>
2340
2341 * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting.
2342
23432011-08-29 Bob Duff <duff@adacore.com>
2344
2345 * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case
2346 of <>, because this is the routine that checks for dimensionality
2347 errors (for example, for a two-dimensional array, (others => <>) should
2348 be (others => (others => <>)).
2349
23502011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2351
2352 * impunit.adb: Add new run-time units.
2353 * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb,
2354 s-stposu.ads, s-stposu.adb: Code clean up.
2355 Handle protected class-wide or task class-wide types
2356 Handle C/C++/CIL/Java types.
2357 * s-spsufi.adb, s-spsufi.ads: New files.
2358
5accd7b6
AC
23592011-08-29 Yannick Moy <moy@adacore.com>
2360
2361 * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on
2362 library-level subprogram.
2363 * sem_prag.adb (Check_Test_Case): Stricter rules for test-case
2364 placement.
2365 (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case
2366 component.
2367 * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case
2368 component.
2369 * gnat_rm.texi: Update doc for Test_Case pragma.
2370
23712011-08-29 Tristan Gingold <gingold@adacore.com>
2372
2373 * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it
2374 convention C.
2375 (GCC_Exception_Access): New type.
2376 (Unwind_DeleteException): New imported procedure
2377 (Foreign_Exception): Import it.
2378 (GNAT_GCC_Exception): Simply have the occurrence inside.
2379 (To_GCC_Exception): New function.
2380 (To_GNAT_GCC_Exception): New function.
2381 (GNAT_GCC_Exception_Cleanup): New procedure..
2382 (Propagate_GCC_Exception): New procedure.
2383 (Reraise_GCC_Exception): New procedure.
2384 (Setup_Current_Excep): New procedure.
2385 (CleanupUnwind_Handler): Change type of UW_Exception parameter.
2386 (Unwind_RaiseException): Ditto.
2387 (Unwind_ForcedUnwind): Ditto.
2388 (Remove): Removed.
2389 (Begin_Handler): Change type of parameter.
2390 (End_Handler): Ditto. Now delete the exception if still present.
2391 (Setup_Key): Removed.
2392 (Is_Setup_And_Not_Propagated): Removed.
2393 (Set_Setup_And_Not_Propagated): Ditto.
2394 (Clear_Setup_And_Not_Propagated): Ditto.
2395 (Save_Occurrence_And_Private): Ditto.
2396 (EID_For): Add 'not null' constraint on parameter.
2397 (Setup_Exception): Does nothing.
2398 (Propagate_Exception): Simplified.
2399 * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model,
2400 re-raise is not expanded anymore.
2401 * s-except.ads (Foreign_Exception): New exception - placeholder for
2402 non Ada exceptions.
2403 * raise-gcc.c (__gnat_setup_current_excep): Declare
2404 (CXX_EXCEPTION_CLASS): Define (not yet used)
2405 (GNAT_EXCEPTION_CLASS): Define.
2406 (is_handled_by): Handle foreign exceptions.
2407 (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep.
2408
24092011-08-29 Jose Ruiz <ruiz@adacore.com>
2410
2411 * a-synbar.adb (Synchronous_Barrier): Some additional clarification.
2412
2ef48385
AC
24132011-08-29 Thomas Quinot <quinot@adacore.com>
2414
2415 * a-synbar-posix.adb: Minor reformatting.
2416
24172011-08-29 Jose Ruiz <ruiz@adacore.com>
2418
2419 * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads,
2420 a-exetim-default.ads (Interrupt_Clocks_Supported,
2421 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
2422 definitions to be compliant with AI-0171. The target systems do not
2423 support separate account for the execution time of interrupt handlers.
2424
24252011-08-29 Jose Ruiz <ruiz@adacore.com>
2426
2427 * a-synbar.adb (Wait): Change the order of evaluation of the conditions
2428 in the barrier to put first the easiest to evaluate (and the one which
2429 will be True more often). More efficient.
2430
24312011-08-29 Eric Botcazou <ebotcazou@adacore.com>
2432
2433 * s-atocou-x86.adb: Fix constraint in machine code insertion.
2434
24352011-08-29 Bob Duff <duff@adacore.com>
2436
2437 * aspects.ads, aspects.adb: Add new aspects for various pragmas and
2438 attributes that are now aspects, as specified by AI05-0229-1.
2439 * sem_ch13.adb (Analyze_Aspect_Specifications,
2440 Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into
2441 pragmas or attribute references, as appropriate.
2442
0db16b1e
AC
24432011-08-29 Robert Dewar <dewar@adacore.com>
2444
2445 * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb,
2446 a-synbar-posix.ads: Minor reformatting.
2447
24482011-08-29 Yannick Moy <moy@adacore.com>
2449
2450 * snames.ads-tmpl: Add name Force.
2451
978ffe02
AC
24522011-08-29 Pascal Obry <obry@adacore.com>
2453
2454 * prj-nmsc.adb: Minor reformatting.
2455
24562011-08-29 Jose Ruiz <ruiz@adacore.com>
2457
2458 * a-exetim.ads (Interrupt_Clocks_Supported,
2459 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
2460 definitions to be compliant with AI-0171.
2461
24622011-08-29 Robert Dewar <dewar@adacore.com>
2463
2464 * a-ngelfu.adb: Add comments.
2465
718f39dc
AC
24662011-08-29 Geert Bosch <bosch@adacore.com>
2467
2468 * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is
2469 the closest machine number to Pi / 2.0.
2470
24712011-08-29 Jose Ruiz <ruiz@adacore.com>
2472
2473 * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012
2474 package Ada.Synchronous_Barriers.
2475 * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb:
2476 Add new specs and bodies for Ada.Synchronous_Barriers. There is a
2477 default implementation using protected objects and another one
2478 a-synbar-posix using POSIX barriers as the underlying support.
2479 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86,
2480 x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of
2481 Ada.Synchronous_Barriers which uses POSIX barriers (more efficient).
2482 Clean up dependencies.
2483 * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o
2484
ee2e3f6b
AC
24852011-08-29 Robert Dewar <dewar@adacore.com>
2486
2487 * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb,
2488 exp_dist.adb: Minor code reorganization.
2489 Minor reformatting.
2490
24912011-08-29 Thomas Quinot <quinot@adacore.com>
2492
2493 * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW
2494 primitive operation must support external streaming if it is not a
2495 controlling access result.
2496
646e2823
AC
24972011-08-29 Thomas Quinot <quinot@adacore.com>
2498
2499 * sinfo.ads, sem_ch7.adb: Minor reformatting.
2500
25012011-08-29 Bob Duff <duff@adacore.com>
2502
2503 * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization
2504 restriction on allocators, as required by AI05-0013-1.
2505 * restrict.ads: Minor comment fix.
2506
5d59eef2
AC
25072011-08-29 Tristan Gingold <gingold@adacore.com>
2508
2509 * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb
2510 (To_Jmpbuf_Address): Ditto
2511 (builtin_longjmp): Ditto
2512
25132011-08-29 Thomas Quinot <quinot@adacore.com>
2514
2515 * sem_res.adb: Minor reformatting.
2516
25172011-08-29 Vincent Celier <celier@adacore.com>
2518
2519 * make.adb (Gnatmake): Move special processing for VM targets after the
2520 call to Get_Target_Parameters.
2521
25222011-08-29 Thomas Quinot <quinot@adacore.com>
2523
2524 * sem_ch12.adb, par-ch12.adb: Minor reformatting.
2525
949a18cc
AC
25262011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2527
2528 * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases
2529 where an anonymous access discriminant of a limited designated type
2530 appears in a non-immutably limited discriminated type and issue an
2531 error message. Add local variable Desig_T and replace all occurrences
2532 of Designated_Type.
2533
25342011-08-29 Jose Ruiz <ruiz@adacore.com>
2535
2536 * a-rttiev.adb (Set_Handler): Update comment to indicate that our
2537 implementation is compliant to RM D.15(15/2) after the modification
2538 imposed by AI05-0094-1 (binding interpretation).
2539
cb25faf8
AC
25402011-08-29 Robert Dewar <dewar@adacore.com>
2541
2542 * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb,
2543 s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting.
2544
25452011-08-29 Thomas Quinot <quinot@adacore.com>
2546
2547 * par-endh.adb (Check_End): For an END where it is mandatory to repeat
2548 the scope name, do not report a missing label as a style violation (it
2549 will be diagnosed as an illegality).
2550 * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of
2551 variant records: Get_Enum_Lit_From_Pos already returns a usage
2552 occurrence of the literal, no need to use New_Occurrence_Of. Set Etype
2553 on Expr in Integer_Literal case so that it can be used by
2554 Build_To_Any_Call.
2555
1d10f669
AC
25562011-08-29 Tristan Gingold <gingold@adacore.com>
2557
2558 * exp_sel.ads (Build_Abort_BLock_Handler): New function spec.
2559 Adjust comment.
2560 * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler.
2561 (Build_Abort_Block_Handler): New function to build an Abort_Signal
2562 exception handler.
2563 * exp_ch9.adb (Expand_N_Asynchronous_Select): Call
2564 Build_Abort_Block_Handler to build the exception handler. Do not
2565 undefer aborts for the Abort_Signal exception handler if back-end
2566 exception mechanism.
2567 * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if
2568 back_end exceptions for all others and abort_signal.
2569 * s-except.ads (ZCX_By_Default): New constant.
2570 * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX.
2571 (Raise_Exception_Always): Ditto.
2572 (Raise_From_Signal_Handler): Ditto.
2573 (Raise_With_Location_And_Msg): Ditto.
2574 (Raise_With_Msg): Ditto.
2575 (Reraise): Ditto.
2576 (Reraise_Occurence): Ditto.
2577 (Reraise_Occurrence_Always): Ditto.
2578 * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX.
2579 * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX.
1d10f669
AC
2580
25812011-08-29 Thomas Quinot <quinot@adacore.com>
2582
2583 * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation.
2584
d986066d
AC
25852011-08-29 Robert Dewar <dewar@adacore.com>
2586
2587 * snames.adb-tmpl, sem_ch13.adb: Minor reformatting
2588 Minor code reorganization.
2589
25902011-08-29 Bob Duff <duff@adacore.com>
2591
2592 * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada
2593 2012, not just Ada 2005.
2594
25952011-08-29 Vincent Celier <celier@adacore.com>
2596
2597 * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake
2598 with a project file or with gprbuid, if -gnatep= is specified, the
2599 builder may need to be invoked with -x.
2600
26012011-08-29 Tristan Gingold <gingold@adacore.com>
2602
2603 * a-exexpr-gcc.adb: Minor comment fix.
2604
ff4f0ed0
AC
26052011-08-29 Robert Dewar <dewar@adacore.com>
2606
2607 * sem_ch8.adb: Minor reformatting.
2608
26092011-08-29 Bob Duff <duff@adacore.com>
2610
2611 * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012.
2612 * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for
2613 treating "some" as unreserved in earlier Ada versions. This is now
2614 handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some,
2615 rather than Name_Some, since Tok_Some is now recognized as reserved.
2616 * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other
2617 reserved word.
2618 * scans.ads: Minor comment fixes.
2619 * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as
2620 for other language versions.
2621 * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for
2622 treating "some" as unreserved in earlier Ada versions. This is now
2623 handled in Snames.Is_Keyword_Name.
2624 * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in
2625 Ada 2012.
2626 (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as
2627 unreserved in earlier Ada versions. This is now handled in
2628 Snames.Is_Keyword_Name.
2629 * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved
2630 words as for other language versions.
2631 * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to
2632 Ada 2012, not just Ada 2005.
2633
d941cee6
AC
26342011-08-29 Ed Schonberg <schonberg@adacore.com>
2635
2636 * sem_ch13.adb: Additional semantic checks for aspects involved in
2637 iterators.
2638
26392011-08-29 Matthew Heaney <heaney@adacore.com>
2640
2641 * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb,
2642 a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous
2643 Container parameter.
2644 (Ancestor_Find): ditto.
2645
b970af39
TQ
26462011-08-29 Thomas Quinot <quinot@adacore.com>
2647
2648 * par-endh.adb: Minor reformatting.
d941cee6 2649
92db5dee
AC
26502011-08-29 Tristan Gingold <gingold@adacore.com>
2651
2652 * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants.
2653 (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component.
2654 (Adjust_N_CLeanups_For): Remove.
2655 (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of
2656 stack is reached.
2657 (Propgate_Exception): Adjust.
2658 * raise-gcc.c: Add a few static/const.
2659 (Adjust_N_Cleanups_For): Remove declaration.
2660 (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger.
2661
26622011-08-29 Ed Schonberg <schonberg@adacore.com>
2663
2664 * sem_ch8.adb: Use type of function return when rewriting as object
2665 declaration.
2666
1378bf10
AC
26672011-08-29 Gary Dismukes <dismukes@adacore.com>
2668
2669 * sem_type.adb: Minor reformatting.
2670
26712011-08-29 Robert Dewar <dewar@adacore.com>
2672
2673 * makeutl.adb: Minor reformatting.
2674
26752011-08-29 Ed Schonberg <schonberg@adacore.com>
2676
2677 * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a
2678 function call of a limited type, the expansion of the renaming is
2679 complicated by the presence of various temporaries and subtypes that
2680 capture constraints of the renamed object.
2681 Rewrite node as an object declaration, whose expansion is simpler.
2682 Given that the object is limited there is no copy involved and no
2683 performance hit.
2684
164e06c6
AC
26852011-08-29 Robert Dewar <dewar@adacore.com>
2686
2687 * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb,
2688 freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting.
2689
26902011-08-29 Tristan Gingold <gingold@adacore.com>
2691
2692 * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
2693 system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads,
2694 system-linux-hppa.ads, system-linux-s390.ads,
2695 system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
2696 system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads,
2697 system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads,
2698 system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads,
2699 system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads,
2700 system-solaris-sparc.ads, system-lynxos-x86.ads,
2701 system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads,
2702 system-solaris-x86_64.ads, system-mingw-x86_64.ads,
2703 system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads,
2704 system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads,
7d266442 2705 system-vxworks-x86.ads: Remove GCC_ZCX_Support.
164e06c6
AC
2706 * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb,
2707 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto.
2708 * opt.ads: Adjust comment.
2709 * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target.
2710 * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target.
2711 * system.ads: Move GCC_ZCX_Support to obsolete entries.
2712
27132011-08-29 Emmanuel Briot <briot@adacore.com>
2714
2715 * makeutl.adb (Do_Complete): Resolve symbolic links when a relative
2716 file name is specified on the gnatmake or gprbuild command line, and
2717 before we search for that file in the project.
2718
27192011-08-29 Ed Schonberg <schonberg@adacore.com>
2720
2721 * sem_type.adb (Within_Instance): New predicate in Collect_Interps,
2722 used to determine whether a possible interpretation for an overloadable
2723 entity is declared within the current instantiation and should be
2724 included in the candidate set.
2725
27262011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
2727
2728 * gnat_rm.texi, gnat_ugn.texi: Clean ups.
2729
97216ca8
ES
27302011-08-29 Ed Schonberg <schonberg@adacore.com>
2731
2732 * sem_res.adb (Resolve_Actuals): Use base type to determine whether an
2733 access subtype is access_to_subprogram, when applying checks for
2734 RM 3.10.2 (27).
2735
d3cb4cc0
AC
27362011-08-29 Matthew Heaney <heaney@adacore.com>
2737
2738 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
2739 for sibling when common parent.
2740
27412011-08-29 Thomas Quinot <quinot@adacore.com>
2742
2743 * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
2744 "pragma_".
2745
27462011-08-29 Ed Schonberg <schonberg@adacore.com>
2747
2748 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
2749 for the return type when in ASIS mode.
2750
27512011-08-29 Vincent Celier <celier@adacore.com>
2752
2753 * make.adb (Gnatmake): Get the default search dirs, then the target
2754 parameters after getting the Builder switches, as the Builder switches
2755 may include --RTS= and that could change the default search dirs.
2756
27572011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2758
2759 * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
2760 Make_Final_Call. Move the processing for class-wide types before the
2761 processing for derivations from [Limited_]Controlled.
2762 (Make_Final_Call): Move the processing for class-wide types before the
2763 processing for derivations from [Limited_]Controlled.
2764 * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
2765 Add code to account for alignments larger than the list header. Add a
2766 comment illustrating the structure of the allocated object + padding +
2767 header.
2768 (Deallocate_Any_Controlled): Add code to account for alignments larger
2769 than the list header.
2770
27712011-08-29 Ed Schonberg <schonberg@adacore.com>
2772
2773 * sinfo.ads, sinfo.adb: New node kind
2774 N_Formal_Incomplete_Type_Definition, related flags.
2775 par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
2776 Parse formal incomplete types.
2777 * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
2778 sem_ch12.
2779 * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
2780 Formal incomplete types do not need completion.
2781 * sem_ch12.adb (Analyze_Formal_Incomplete_Type,
2782 Validate_Incomplete_Type_Instance): New procedures to handle formal
2783 incomplete types.
2784 * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
2785 that corresponds to a formal incomplete type.
2786 * sprint.adb: Handle formal incomplete type declarations.
2787 * exp_util.adb (Insert_Actions): An incomplete_type_definition is not
2788 an insertion point.
2789
d3f70b35
AC
27902011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2791
2792 * a-fihema.ads, a-fihema.adb: Unit removed.
2793 * a-undesu.ads, a-undesu.adb: New unit implementing
2794 Ada.Unchecked_Deallocate_Subpool.
2795 * einfo.adb: Remove Associated_Collection from the node usage.
2796 Add Finalization_Master to the node usage.
2797 (Associated_Collection): Removed.
2798 (Finalization_Master): New routine.
2799 (Set_Associated_Collection): Removed.
2800 (Set_Finalization_Master): New routine.
2801 (Write_Field23_Name): Remove Associated_Collection from the output. Add
2802 Finalization_Master to the output.
2803 * einfo.ads: Remove attribute Associated_Collection and its uses in
2804 entities.
2805 Add new attribute Finalization_Master along with its uses in entitites.
2806 (Associated_Collection): Removed along with its pragma import.
2807 (Finalization_Master): New routine along with a pragma import.
2808 (Set_Associated_Collection): Removed along with its pragma import.
2809 (Set_Finalization_Master): New routine along with a pragma import.
2810 * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to
2811 Build_Finalization_Collection with Build_Finalization_Master.
2812 (Expand_Freeze_Record_Type): Move the generation of Finalize_Address
2813 before the bodies of the predefined routines. Add comment explaining
2814 this. Replace call to Build_Finalization_Collection with
2815 Build_Finalization_Master.
2816 (Freeze_Type): Replace call to Build_Finalization_Collection with
2817 Build_Finalization_Master.
2818 (Make_Finalize_Address_Body): Comment reformatting.
2819 (Make_Predefined_Primitive_Specs): Code reformatting.
2820 (Stream_Operation_OK): Update comment mentioning finalization
2821 collections. Replace RE_Finalization_Collection with
2822 RE_Finalization_Master.
2823 * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to
2824 Associated_Collection with Finalization_Master. Replace call to
2825 Build_Finalization_Collection with Build_Finalization_Master.
2826 (Expand_Allocator_Expression): Replace call to Associated_Collection
2827 with Finalization_Master. Replace call to Set_Associated_Collection with
2828 Set_Finalization_Master. Remove the generation of
2829 Set_Finalize_Address_Ptr.
2830 (Expand_N_Allocator): Replace call to Associated_Collection with
2831 Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr.
2832 * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to
2833 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the
2834 comment on usage. Replace call to Needs_BIP_Collection with
2835 Needs_BIP_Finalization_Master Remplace BIP_Collection with
2836 BIP_Finalization_Master. Update all comments which mention finalization
2837 collections. Replace Associated_Collection with
2838 Finalization_Master. Replace Build_Finalization_Collection with
2839 Build_Finalization_Master.
2840 (BIP_Formal_Suffix): Update BIP_Collection's case.
2841 (Build_Heap_Allocator): Update the related comment. Rename local
2842 variable Collect to Fin_Mas_Id and update its occurrences. Update
2843 comments which mention finalization collections. Replace
2844 Set_Associated_Collection with Set_Finalization_Master.
2845 (Expand_Call): Update the code which detects a special piece of library
2846 code for .NET/JVM.
2847 (Make_Build_In_Place_Call_In_Allocator): Replace the call to
2848 Add_Collection_Actual_To_Build_In_Place_Call with
2849 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code
2850 which generates a call to Make_Set_Finalize_Address_Ptr_Call.
2851 (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to
2852 Add_Collection_Actual_To_Build_In_Place_Call with
2853 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
2854 (Make_Build_In_Place_Call_In_Assignment): Replace call to
2855 Add_Collection_Actual_To_Build_In_Place_Call with
2856 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
2857 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
2858 * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master.
2859 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
2860 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage.
2861 Rename local variable Collect to Fin_Mas_Id and update its occurrences.
2862 Replace call to Set_Associated_Collection with Set_Finalization_Master.
2863 (Build_Finalization_Collection): Renamed to Build_Finalization_Master.
2864 Replace the call to Associated_Collection with Finalization_Master.
2865 Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences.
2866 Update the way finalization master names are generated. Update the
2867 retrieval of the correct access type which will carry the pool and
2868 master attributes.
2869 (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved.
2870 (Make_Finalize_Address_Body): Abstract types do not need
2871 Finalize_Address. Code reformatting.
2872 (Make_Finalize_Address_Stmts): Update comment on usage.
2873 (Make_Set_Finalize_Address_Ptr_Call): Removed.
2874 (Process_Declarations): Update comments.
2875 * exp_ch7.ads (Build_Finalization_Collection): Renamed to
2876 Build_Finalization_Master. Update associated comment.
2877 (Make_Set_Finalize_Address_Ptr_Call): Removed.
2878 * exp_ch13.adb: Update comments which mention finalization collections.
2879 (Expand_N_Free_Statement): Replace the call to Associated_Collection
2880 with Finalization_Master.
2881 * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to
2882 create calls to routines Allocate_Any_Controlled and
2883 Deallocate_Any_Controlled.
2884 (Find_Finalize_Address): New routine.
2885 (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the
2886 comparison.
2887 (Requires_Cleanup_Actions): Update the comment on freeze node
2888 inspection.
2889 * exp_util.ads: Remove comment on generated code for
2890 Build_Allocate_Deallocate_Proc. The code is now quite complex and it
2891 is better to simply look in the body.
2892 * freeze.adb (Freeze_All): Update the comment of finalization
2893 collections. Replace the call to Associated_Collection with
2894 Finalization_Master. Replace the call to Build_Finalization_Collection
2895 with Build_Finalization_Master.
2896 * impunit.adb: Add a-undesu and s-stposu to the list of units.
2897 * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file
2898 a-fihema.
2899 * rtsfind.adb (Get_Unit_Name): Remove the processing for children of
2900 Ada.Finalization. Add processing for children of System.Storage_Pools.
2901 * rtsfind.ads: Remove the naming of second level children of
2902 Ada.Finalization.
2903 Remove Ada_Finalization_Heap_Management from the list of units.
2904 Remove subtype Ada_Finalization_Child.
2905 Remove the following subprogram entities:
2906
2907 RE_Allocate
2908 RE_Deallocate
2909 RE_Finalization_Collection
2910 RE_Finalization_Collection_Ptr
2911 RE_Set_Finalize_Address_Ptr
2912
2913 Add the naming of second level children of System.Storage_Pools.
2914 Add System_Finalization_Masters and System_Storage_Pools_Subpools to
2915 the list of units.
2916 Add subtype System_Storage_Pools_Child.
2917 Add the following subprogram entities to System.Finalization_Masters:
2918
2919 RE_Finalization_Master
2920 RE_Finalization_Master_Ptr
2921
2922 Add the following subprogram entities to System.Storage_Pools.Subpools:
2923
2924 RE_Allocate_Any_Controlled
2925 RE_Deallocate_Any_Controlled
2926 RE_Root_Storage_Pool_With_Subpools
2927 RE_Root_Subpool
2928 RE_Subpool_Handle
2929
2930 Move the following subprogram entities from
2931 Ada.Finalization.Heap_Management to System.Finalization_Masters:
2932
2933 RE_Add_Offset_To_Address
2934 RE_Attach
2935 RE_Base_Pool
2936 RE_Detach
2937
2938 * sem_ch3.adb (Access_Type_Declaration): Replace the call to
2939 Set_Associated_Collection with Set_Finalization_Master.
2940 * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal
2941 BIP_Finalization_Master is created.
2942 * s-finmas.adb: New unit System.Finalization_Masters.
2943 * s-finmas.ads: New unit System.Finalization_Masters.
2944 * s-stopoo.ads, s-stopoo.adb: Minor code reformatting.
2945 * s-stposu.ads, s-stposu.adb: New unit implementing
2946 System.Storage_Pools.Subpools.
2947
29482011-08-29 Bob Duff <duff@adacore.com>
2949
2950 * tbuild.adb: Add assertion.
2951
8c889ae4
AC
29522011-08-29 Thomas Quinot <quinot@adacore.com>
2953
2954 * s-pooglo.adb: Minor reformatting.
2955
29562011-08-29 Ed Schonberg <schonberg@adacore.com>
2957
2958 * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is
2959 an indexed component of a packed array whose element type is a record
2960 with a representation clause different from that of the right-hand
2961 side, generate a temporary to minimuze the number of bit-field
2962 operations generated.
2963
29642011-08-29 Ed Schonberg <schonberg@adacore.com>
2965
2966 * exp_util.adb (Insert_Actions): Use clauses can be part of lists of
2967 declarations, and thus are likely insertion points for actions.
2968
29692011-08-29 Bob Duff <duff@adacore.com>
2970
2971 * einfo.ads: Minor comment fix.
2972
1a07a71a
AC
29732011-08-29 Robert Dewar <dewar@adacore.com>
2974
2975 * frontend.adb, gnat1drv.adb: Minor reformatting.
2976
29772011-08-29 Tristan Gingold <gingold@adacore.com>
2978
2979 * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment.
2980 * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding
2981 space in front of the header.
2982
4bcd6411
JK
29832011-08-29 Johannes Kanig <kanig@adacore.com>
2984
2985 * frontend.adb (Frontend): Exit after creating Standard package when
2986 -gnatd.H is present.
2987 * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is
2988 present.
2989
f0f88eb6
RD
29902011-08-29 Robert Dewar <dewar@adacore.com>
2991
2992 * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb,
2993 makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl,
2994 snames.ads-tmpl: Minor reformatting.
2995
3e37be71
PG
29962011-08-29 Philippe Gil <gil@adacore.com>
2997
2998 * prj.adb (Reset_Units_In_Table): New procedure.
2999 Reset units to avoid access to freed memory.
3000
94fb7608
AC
30012011-08-29 Thomas Quinot <quinot@adacore.com>
3002
3003 * get_scos.adb: When reading a P statement SCO without a pragma name
3004 (from an older ALI file), ensure that the Pragma_Name component is set
3005 to Unknown_Pragma (not left uninitialized).
3006
30072011-08-29 Vincent Celier <celier@adacore.com>
3008
3009 * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and
3010 modified to compute correctly the object path of a SAL project that is
3011 extending another library project.
3012 (Write_Path_File): New procedure.
3013 * makeutl.ads (Directories): New table moved from Buildgpr
3014 (Get_Directories): New procedure moved from Buildgpr
3015 (Write_Path_File): New procedure
3016 * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the
3017 paths before binding SALs, instead of Set_Ada_Paths.
3018 * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package
3019 Prj.
3020 * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env
3021 (Current_Source_Path_File_Of): New function
3022 (Set_Current_Object_Path_File_Of): New procedure
3023 (Current_Source_Object_File_Of): New function
3024 (Set_Current_Object_Path_File_Of): New procedure
3025 * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env
3026 (Current_Source_Path_File_Of): New function
3027 (Set_Current_Object_Path_File_Of): New procedure
3028 (Current_Source_Object_File_Of): New function
3029 (Set_Current_Object_Path_File_Of): New procedure
3030
30312011-08-29 Ed Schonberg <schonberg@adacore.com>
3032
3033 * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a
3034 packed entity, use a bit-field assignment only if there is no change of
3035 representation.
3036
c5ecd6b7
AC
30372011-08-29 Thomas Quinot <quinot@adacore.com>
3038
3039 * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use
3040 Is_RTU instead of using Chars comparisons.
3041
30422011-08-29 Thomas Quinot <quinot@adacore.com>
3043
3044 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a
3045 temporary object if the actual is constrained, and the discriminants
3046 read from the stream don't match.
3047
30482011-08-29 Tristan Gingold <gingold@adacore.com>
3049
3050 * sem_attr.adb, exp_attr.adb: Add handling of
3051 Attribute_System_Allocator_Alignment
3052 * snames.ads-tmpl: Add Name_System_Allocator_Alignment and
3053 Attribute_System_Allocator_Alignment.
3054 * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment.
3055 * gcc-interface/targtyps.c, gcc-interface/utils2.c,
3056 gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to
3057 get_target_system_allocator_alignment.
3058
30592011-08-29 Arnaud Charlet <charlet@adacore.com>
3060
3061 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
3062 dependencies.
3063
8abdac29
AC
30642011-08-29 Arnaud Charlet <charlet@adacore.com>
3065
3066 * exp_ch3.adb (In_Runtime): Fix typo.
3067
df170605
AC
30682011-08-29 Bob Duff <duff@adacore.com>
3069
3070 * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification.
3071
30722011-08-29 Ed Schonberg <schonberg@adacore.com>
3073
3074 * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged
3075 and a separate tag assignment is generated, ensure that the tag
3076 assignment is analyzed.
3077
864a4236
ES
30782011-08-29 Ed Schonberg <schonberg@adacore.com>
3079
3080 * atree.ads, atree.adb (Copy_Separate_List): New function that applies
3081 Copy_Separate_Tree to a list of nodes. Used to create disjoint copies
3082 of statement lists that may contain local declarations.
df170605
AC
3083 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to
3084 duplicate the triggering statements needed for the expansion of this
3085 construct, when the trigger is a dispatching call to a synchronized
3086 primitive.
864a4236 3087
7f394c1d
AC
30882011-08-29 Arnaud Charlet <charlet@adacore.com>
3089
3090 * gnat_rm.texi: Add doc for 'Elab_Subp_Body.
3091 * bindgen.adb: Add comments.
3092 * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body
3093 in CodePeer mode.
3094
2c1a2cf3
RD
30952011-08-29 Robert Dewar <dewar@adacore.com>
3096
3097 * exp_attr.adb: Minor reformatting.
3098 Minor code reorganization and commenting.
3099 * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor
3100 reformatting.
3101
0bfc9a64
AC
31022011-08-29 Thomas Quinot <quinot@adacore.com>
3103
3104 * get_scos.adb: Ignore chaining indicators not currently supported
3105 by Ada.
3106
31072011-08-29 Arnaud Charlet <charlet@adacore.com>
3108
3109 * system.ads: Minor editing.
3110
31112011-08-29 Arnaud Charlet <charlet@adacore.com>
3112
3113 * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in
3114 CodePeer mode.
3115 * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of
3116 Attribute_Elab_Subp_Body.
3117 * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New.
3118 * sem_util.adb: Update comments.
3119
828d4cf0
TQ
31202011-08-29 Thomas Quinot <quinot@adacore.com>
3121
3122 * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record
3123 pragma name for each SCO statement corresponding to a pragma.
3124
5cd7bb15
AC
31252011-08-29 Arnaud Charlet <charlet@adacore.com>
3126
3127 * opt.ads: Minor editing.
3128
31292011-08-29 Yannick Moy <moy@adacore.com>
3130
3131 * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode
3132 that only made sense for CodePeer mode.
3133
31342011-08-29 Jose Ruiz <ruiz@adacore.com>
3135
3136 * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag
3137 which is no longer used.
3138 * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the
3139 handling of the 64-bit division check.
3140 * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit
3141 division available.
3142 * system*.ads (Support_64_Bit_Divides): Remove this flag which is no
3143 longer used.
3144
31452011-08-29 Thomas Quinot <quinot@adacore.com>
3146
3147 * get_scos.adb: Minor reformatting.
3148
25b589cb
AC
31492011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3150
3151 * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a
3152 statement list is wrapped in a block, the block is explicitly analyzed
3153 in order to properly redecorate the entities and create a servicing
3154 finalizer.
3155
31562011-08-29 Tristan Gingold <gingold@adacore.com>
3157
3158 * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove.
3159 (Set_Zero_Cost_Handling): Remove.
3160
31612011-08-29 Thomas Quinot <quinot@adacore.com>
3162
3163 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting
3164
1197ddb1
AC
31652011-08-29 Geert Bosch <bosch@adacore.com>
3166
3167 * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation
3168 instruction, as the latter may produce -0.0, which is not a valid VAX
3169 F float number.
3170 (Neg_G): Likewise for VAX F float.
3171
31722011-08-29 Robert Dewar <dewar@adacore.com>
3173
3174 * exp_util.adb: Minor reformatting.
3175
31762011-08-29 Yannick Moy <moy@adacore.com>
3177
3178 * sem_ch3.adb: Minor comment update.
3179
31802011-08-29 Thomas Quinot <quinot@adacore.com>
3181
3182 * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of
3183 the operand type.
3184
31852011-08-29 Thomas Quinot <quinot@adacore.com>
3186
3187 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush
3188 current statement sequence on a generic instantiation or a subprogram
3189 declaration.
3190
8f66cda7
AC
31912011-08-29 Robert Dewar <dewar@adacore.com>
3192
3193 * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb:
3194 Minor reformatting.
3195
31962011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3197
3198 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
3199 Correct the check which involves the freeze node of a controlled or
3200 access-to-controlled type.
3201
32022011-08-29 Geert Bosch <bosch@adacore.com>
3203
3204 * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm
3205 statements.
3206 * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from
3207 Asm statements.
3208
cf161d66
AC
32092011-08-29 Yannick Moy <moy@adacore.com>
3210
3211 * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration
3212 for every index type and component type that is not a subtype_mark.
3213 (Process_Subtype): Set Etype of subtype.
3214
32152011-08-29 Robert Dewar <dewar@adacore.com>
3216
3217 * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code
3218 reorganization. Minor reformatting.
3219
7cc83cd8
AC
32202011-08-29 Steve Baird <baird@adacore.com>
3221
3222 * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion
3223 for CodePeer and ALFA modes.
3224
32252011-08-29 Ed Schonberg <schonberg@adacore.com>
3226
3227 * sem_type.adb (Collect_Interps): Within an instance, collect a homonym
3228 that comes from an enclosing scope if it is not the renaming of an
3229 actual, to handle properly a spurious ambiguity in an instance.
3230
76af4137
AC
32312011-08-29 Eric Botcazou <ebotcazou@adacore.com>
3232
3233 * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to...
3234 (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and
3235 use it instead of the Esize of the first parameter.
3236 (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to
3237 above change.
3238 <Size>: Likewise. Call it for composite types on the RM size.
3239
32402011-08-29 Yannick Moy <moy@adacore.com>
3241
3242 * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array.
3243 * sem_util.adb (Unique_Name): Correct behaviour for names of
3244 compilation units.
3245
9b20e59b
AC
32462011-08-29 Yannick Moy <moy@adacore.com>
3247
3248 * sem_prag.adb (Check_Precondition_Postcondition): In formal
3249 verification mode, analyze pragma expression for correctness, for
3250 pre/post on library-level subprogram, as it is not expanded later.
3251
32522011-08-29 Yannick Moy <moy@adacore.com>
3253
3254 * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates
3255 in formal verification.
3256
32572011-08-29 Thomas Quinot <quinot@adacore.com>
3258
3259 * sem_util.adb: Minor reformatting.
3260 * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute,
3261 there's no pragma.
3262 * par_sco.ads, par_sco.adb: Update comments.
3263
32642011-08-29 Yannick Moy <moy@adacore.com>
3265
3266 * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and
3267 associated getter/setter.
3268 * sem_ch6.adb: Remove reference to Is_Postcondition_Proc.
3269
32702011-08-29 Vincent Celier <celier@adacore.com>
3271
3272 * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind
3273 * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler
3274 with declarations for Language_Kind and Dependency_Kind for Ada.
3275 * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name
3276 (Process_Compiler): Take into account the new attributes Dependency_Kind
3277 and Language_Kind.
3278 (Check_Configuration): Check if language kind is unit based, not if the
3279 language name is Ada.
3280 (Process_Exceptions_Unit_Based): Ditto
3281 (Add_Language): Remove default additions of language and dependency kind
3282 * prj.ads: Minor comment change
3283 * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind
3284
32852011-08-29 Johannes Kanig <kanig@adacore.com>
3286
3287 * debug.adb: Update comments.
3288
c5bc3df6
JM
32892011-08-24 Joseph Myers <joseph@codesourcery.com>
3290
3291 * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
3292 (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
3293 (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
3294 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
3295 (ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
3296
e3aa9eba
RO
32972011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3298
3299 * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
3300 (GNATLIBCFLAGS_FOR_C): Replace
3301 TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
3302 (gnatlib-shared-default, gnatlib-shared-dual-win32)
3303 (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
3304 (gnatlib-sjlj, gnatlib-zcx): Likewise.
3305
f446d60e
EB
33062011-08-07 Eric Botcazou <ebotcazou@adacore.com>
3307
3308 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
3309
588c8f48
EB
3310 * gcc-interface/gigi.h (enumerate_modes): Fix formatting.
3311
3312 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.
3313
28d711bf
NR
33142011-08-05 Nicolas Roche <roche@adacore.com>
3315
3316 * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared
3317 libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with
3318 canadian cross.
3319 * gcc-interface/Make-lang.in: Add support for canadian cross setting.
3320
993f8920
AC
33212011-08-05 Matthew Heaney <heaney@adacore.com>
3322
3323 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth):
3324 subprogram bodies declared out-of-order.
3325
33262011-08-05 Yannick Moy <moy@adacore.com>
3327
3328 * sem_util.adb (Unique_Name): only prefix with "standard" the names of
3329 entities directly in package Standard, otherwise skip the standard
3330 prefix.
3331
9b3956dd
RD
33322011-08-05 Robert Dewar <dewar@adacore.com>
3333
3334 * a-cbmutr.adb: Minor reformatting
3335 (Allocate_Node): refactor node allocation algorithm
3336
33372011-08-05 Robert Dewar <dewar@adacore.com>
3338
3339 * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch.
3340 * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable
3341 mode.
3342 (Analyze_Pragma, case Check_Policy): Ditto.
3343 * sem_prag.ads (Check_Disabled): New function
3344 * snames.ads-tmpl: Add Name_Disable.
3345
33462011-08-05 Robert Dewar <dewar@adacore.com>
3347
3348 * gnat_rm.texi: Document implementation-defined policy DISABLE for
3349 pragmas Assertion_Policy, Check_Policy, Debug_Policy.
3350
79e705d6
AC
33512011-08-05 Ed Schonberg <schonberg@adacore.com>
3352
3353 * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma
3354 that appears in a generic formal part and applies to a formal
3355 subprogram.
3356
33572011-08-05 Robert Dewar <dewar@adacore.com>
3358
3359 * a-cbmutr.ads: Minor reformatting.
3360
23b6deca
AC
33612011-08-05 Matthew Heaney <heaney@adacore.com>
3362
3363 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid
3364 to check count, check sign of value instead.
3365 * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty
3366 (Copy_Subtree): allocate copy of source element
3367 (Equal_Subtree): compare elements, not access objects
3368
33692011-08-05 Vincent Celier <celier@adacore.com>
3370
3371 * gnat_ugn.texi: Fix VMS alternative.
3372
a2773bd3
AC
33732011-08-05 Thomas Quinot <quinot@adacore.com>
3374
3375 * sem_ch11.adb: Add comment.
3376
33772011-08-05 Robert Dewar <dewar@adacore.com>
3378
3379 * exp_util.adb: Minor comment fix.
3380
33812011-08-05 Robert Dewar <dewar@adacore.com>
3382
3383 * scng.adb (Error_Unterminated_String): Improve flag position when
3384 comma present.
3385
33862011-08-05 Matthew Heaney <heaney@adacore.com>
3387
3388 * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway
3389 tree containers).
3390 * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded
3391 multiway tree containers.
3392
33932011-08-05 Robert Dewar <dewar@adacore.com>
3394
3395 * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2
3396 * stylesw.adb: Implement -gnatyC to control comment spacing
3397 * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by
3398 -gnatyc/C).
3399 * usage.adb: Add line for -gnatyC.
3400
34012011-08-05 Robert Dewar <dewar@adacore.com>
3402
f446d60e 3403 * gnat_ugn.texi: Document -gnatyC.
a2773bd3
AC
3404 * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a
3405 synonym for COMMENTS2).
3406
dedac3eb
RD
34072011-08-05 Robert Dewar <dewar@adacore.com>
3408
3409 * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb,
3410 a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb,
3411 sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb,
3412 a-comutr.ads, lib-xref.adb: Minor reformatting.
3413
34142011-08-05 Robert Dewar <dewar@adacore.com>
3415
3416 * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal
3417 warning if there is an exception handler present.
3418
7c62a85a
AC
34192011-08-05 Pascal Obry <obry@adacore.com>
3420
3421 * a-iteint.ads: Fix copyright year.
3422
34232011-08-05 Thomas Quinot <quinot@adacore.com>
3424
3425 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a
3426 statement SCO for a USE clause or a representation clause.
3427
34282011-08-05 Yannick Moy <moy@adacore.com>
3429
3430 * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation
3431 between body and spec for stub.
3432 (Detect_And_Add_ALFA_Scope): take into account subprogram stub
3433 * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a
3434 pragma precondition or postcondition, for which the enclosing
3435 subprogram or package in the AST is not the desired one, return empty.
3436
e49208a9
AC
34372011-08-05 Thomas Quinot <quinot@adacore.com>
3438
3439 * g-expect.adb: Minor reformatting.
3440
34412011-08-05 Bob Duff <duff@adacore.com>
3442
3443 * a-fihema.adb: Comment out OS_Lib.
3444
34452011-08-05 Matthew Heaney <heaney@adacore.com>
3446
3447 * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb]
3448 (unbounded multiway tree containers) and a-iteint.ads.
3449 * a-comutr.ads, a-comutr.adb:
3450 This is the new Ada 2012 unit for unbounded multiway tree containers
3451 * a-cimutr.ads, a-cimutr.adb
3452 This is the new Ada 2012 unit for indefinite multiway tree containers
3453 * a-iteint.ads: New file.
3454
201cdb74
RO
34552011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3456
f446d60e 3457 * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc.
201cdb74 3458
d50f4827
AC
34592011-08-05 Bob Duff <duff@adacore.com>
3460
3461 * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for
3462 subpools.
3463 * par-ch4.adb (P_Allocator): Parse new subpool specification syntax.
3464
34652011-08-05 Ed Schonberg <schonberg@adacore.com>
3466
3467 * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the
3468 general indexing aspects of Ada2012. Called when analyzing indexed
3469 components when other interpretations fail.
3470 * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only
3471 in an expression context where overloading is meaningful. This excludes
3472 the occurrence in an aspect specification (efficiency only).
3473 * sem_attr.adb (Analyze_Attribute): indicate that the attributes
3474 related to iterators can be set by an attribute specification, but
3475 cannot be queried.
3476 * sem_ch13.adb (Analyze_Aspect_Specifications): handle
3477 Constant_Indexing and Variable_Indexing.
3478 (Check_Indexing_Functions): New procedure to perform legality checks.
3479 Additional semantic checks at end of declarations.
3480
efe05dfc
AC
34812011-08-05 Sergey Rybin <rybin@adacore.com>
3482
3483 * tree_io.ads: Update ASIS_Version_Number because of the change of the
3484 order of calling Tree_Write/Tree_Read routines made for aspects.
3485
34862011-08-05 Bob Duff <duff@adacore.com>
3487
3488 * a-fihema.adb (Finalize): Fix race condition.
3489
5f9cdefe
AC
34902011-08-05 Yannick Moy <moy@adacore.com>
3491
3492 * sem_ch12.adb (Analyze_Package_Instantiation,
3493 Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA
3494 mode.
3495
34962011-08-05 Ed Schonberg <schonberg@adacore.com>
3497
3498 * sem_type.adb (Specific_Type): in an instance, the type-specific
3499 operand of an equality check that involves null may have a private
3500 type. Use full view to determine legality of construct.
3501
822868aa
AC
35022011-08-05 Vincent Celier <celier@adacore.com>
3503
3504 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
3505 delete or close the file when the call to gnatmake was successful.
3506
35072011-08-05 Yannick Moy <moy@adacore.com>
3508
3509 * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set
3510 Global_Discard_Names.
3511
35122011-08-05 Ed Schonberg <schonberg@adacore.com>
3513
3514 * sinfo.ads: comments on use of entity field for aspect specifications.
3515
35162011-08-05 Ed Schonberg <schonberg@adacore.com>
3517
3518 * sem_ch12.adb (Reset_Entity): If the entity field of the associated
3519 node is not itself an entity but a selected component, it is a
3520 rewritten parameterless call to an en enclosing synchronized operation,
3521 and this expansion will be performed again in the instance, so there is
3522 no global information to preserve.
3523
44a10091
AC
35242011-08-05 Javier Miranda <miranda@adacore.com>
3525
3526 * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support
3527 for renamings of predefined primitives.
3528 (In_Predef_Prims_DT): New subprogram.
3529
35302011-08-05 Ed Schonberg <schonberg@adacore.com>
3531
3532 * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a
3533 possible interpretation of name is a reference type, add an
3534 interpretation that is the designated type of the reference
3535 discriminant of that type.
3536 * sem_res.adb (resolve): If the interpretation imposed by context is an
3537 implicit dereference, rewrite the node as the deference of the
3538 reference discriminant.
3539 * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type,
3540 Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from
3541 parent type or base type.
3542 * sem_ch4.adb (Process_Indexed_Component,
3543 Process_Overloaded_Indexed_Component, Indicate_Name_And_Type,
3544 Analyze_Overloaded_Selected_Component, Analyze_Selected_Component):
3545 Check for implicit dereference.
3546 (List_Operand_Interps): Indicate when an implicit dereference is
3547 ambiguous.
3548 * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference.
3549
35502011-08-05 Thomas Quinot <quinot@adacore.com>
3551
3552 * scos.ads: Update documentation of SCO table. Pragma statements can now
3553 be marked as disabled (using 'p' instead of 'P' as the statement kind).
3554 * par_sco.ads, par_sco.adb: Implement the above change.
3555 (Process_Decisions_Defer): Generate a P decision for the first parameter
3556 of a dyadic pragma Debug.
3557 * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if
3558 necessary.
3559 * put_scos.adb: Code simplification based on above change.
3560
bb3c784c
AC
35612011-08-05 Robert Dewar <dewar@adacore.com>
3562
3563 * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb,
3564 bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb,
3565 a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads,
3566 prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting
3567
35682011-08-05 Bob Duff <duff@adacore.com>
3569
3570 * a-stunau.ads, g-spipat.adb: Update comments.
3571
36f686f9
BD
35722011-08-05 Bob Duff <duff@adacore.com>
3573
3574 * a-fihema.ads: Minor comment fix.
3575 * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is
3576 correct.
3577 (Attach, Detach): Remove some unnecessary code.
3578 (Finalize): Remove Node_Ptr_To_Address, replace with a constant.
3579
7882673f
BD
35802011-08-05 Bob Duff <duff@adacore.com>
3581
3582 * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
3583 allocation for Objects component. This simplifies the code somewhat. It
3584 is also a little more efficient in the not-so-unusual case where there
3585 are no controlled objects allocated.
3586 Make Finalization_Started flag atomic.
3587 (Finalize): Avoid unnecessary detachment of items from the list.
3588 (pcol): Minor cleanup.
3589
d34cd274
AC
35902011-08-05 Ed Schonberg <schonberg@adacore.com>
3591
3592 * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal
3593 package whose name is the same as that of the generic unit, or its
3594 ultimate prefix.
3595
35962011-08-05 Bob Duff <duff@adacore.com>
3597
3598 * a-fihema.adb, a-fihema.ads: Minor comment improvements.
3599 * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb:
3600 Minor comment fixes.
3601
00332244
AC
36022011-08-05 Arnaud Charlet <charlet@adacore.com>
3603
3604 * make.adb (Linking_Phase): No longer need to set source search path
3605 before calling gnatlink in CodePeer mode.
3606 * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to
3607 gcc in CodePeer mode, since the binder generated file no longer has a
3608 'with Main'.
3609 * switch.ads, switch.adb (Is_Language_Switch): Removed.
3610 * switch-c.adb: Update comment.
3611
36122011-08-05 Thomas Quinot <quinot@adacore.com>
3613
3614 * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting.
3615
36162011-08-05 Nicolas Roche <roche@adacore.com>
3617
3618 * gnat_ugn.texi: Fix minor syntax error issue.
3619
36202011-08-05 Vincent Celier <celier@adacore.com>
3621
3622 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
3623 delete or close the file when the call to gnatmake returns a non
3624 successful return code.
3625
36262011-08-05 Ed Schonberg <schonberg@adacore.com>
3627
3628 * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate
3629 check, indicate that the copy of the original node does not come from
3630 source, to prevent an infinite recursion of the expansion.
3631
36322011-08-05 Johannes Kanig <kanig@adacore.com>
3633
3634 * debug.adb: document switch -gnatd.G for gnat2why, which deactivates
3635 VC generation for subprogram bodies.
3636
36372011-08-05 Yannick Moy <moy@adacore.com>
3638
3639 * einfo.ads: Typo.
3640 * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define
3641 the base type with the smallest allowed base type.
3642
36432011-08-05 Sergey Rybin <rybin@adacore.com>
3644
3645 * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for
3646 aspects.
3647
36482011-08-05 Ed Schonberg <schonberg@adacore.com>
3649
3650 * sem_ch12.ads: minor comment updates.
3651
36522011-08-05 Ed Schonberg <schonberg@adacore.com>
3653
3654 * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an
3655 instantiation and a formal package the compiler generates a package
3656 renaming declaration so that the generic name within the declaration
3657 is interpreted as a renaming of the instance. At the end of a formal
3658 package declaration, this renaming must become invisible.
3659
0da80d7d
AC
36602011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
3661
3662 * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character
3663 comparison and rely on concrete entities instead.
3664
36652011-08-05 Ed Schonberg <schonberg@adacore.com>
3666
3667 * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types
3668 and discriminants, to indicate that the type has an access discriminant
3669 that supports implicit dereference.
3670 * snames.ads-tmpl: Add names of aspects and attributes related to
3671 Ada2012 iterators: constant_indexing, default_iterator,
3672 iterator_element, implicit_dereference, variable_indexing.
3673 * aspects.ads, aspects.adb: entries for iterator-related aspects.
3674 * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for
3675 iterator-related aspects.
3676 * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects.
3677
36782011-08-05 Sergey Rybin <rybin@adacore.com>
3679
3680 * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling
3681 metrics in gnatmetric to cover new kinds of coupling mentrics.
3682
36832011-08-05 Steve Baird <baird@adacore.com>
3684
3685 * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead
2c7f9cc0 3686 of calling the user-defined main subprogram.
0da80d7d
AC
3687 (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode
3688 is set) Call_Main_Subprogram ahead of, as opposed to
3689 inside of, Main.
3690 (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional
3691 generation of a "with" of the user-defined main subprogram.
3692 Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper
3693 (which is now called from Gen_Main instead).
3694
73242473
AC
36952011-08-05 Emmanuel Briot <briot@adacore.com>
3696
3697 * projects.texi: Added reference to the Makefile package.
3698
36992011-08-05 Thomas Quinot <quinot@adacore.com>
3700
3701 * exp_ch7.adb: Minor comment rewording.
3702
37032011-08-05 Ed Falis <falis@adacore.com>
3704
3705 * env.c: Fix comment.
3706
37072011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
3708
3709 * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid
3710 character comparison and rely on concrete entities instead.
3711
97ed5872
AC
37122011-08-05 Ed Schonberg <schonberg@adacore.com>
3713
3714 * sem_ch3.adb: (Check_Private_Overriding): better error message,
3715 suggested by AI95-0068.
3716
37172011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
3718
3719 * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve
3720 the two potential initialization calls. This accounts for any
3721 access-before-elaboration checks which may precede the initialization
3722 calls.
3723 (Next_Suitable_Statement): New routine. Returns the next real statement
3724 after the input node while skipping generated checks.
3725 * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along
3726 with comment on usage.
3727 Do not generate Elaborate_All when the trigger is a finalization call
3728 coming from a type init proc.
3729 (Check_Elab_Call): Propagate the initialization procedure context to
3730 subsequent calls to Check_A_Call.
3731 (Check_Internal_Call_Continue): Propagate the initialization procedure
3732 context to subsequent calls to Check_Elab_Call.
3733 (Is_Finalization_Procedure): New routine. Returns True if the input
3734 entity denotes a [Deep_]Finalize routine.
3735 * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc
3736 along with comment on usage.
3737
37382011-08-05 Vadim Godunko <godunko@adacore.com>
3739
3740 * s-atocou.ads: Add list of supported platforms.
3741
37422011-08-05 Yannick Moy <moy@adacore.com>
3743
3744 * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables
3745
3746 * opt.ads (Disable_ALI_File): new Boolean flag
3747 * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing
3748
37492011-08-05 Ed Falis <falis@adacore.com>
3750
3751 * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that
3752 environ is properly defined.
3753
37542011-08-05 Vincent Celier <celier@adacore.com>
3755
3756 * make.adb (Compilation_Phase): Exit immediately when all objects have
3757 been found up to date, to avoid multiple exit messages.
3758 * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the
3759 same project for languages with no compiler.
3760 * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch
3761 -eI.
9aff36e9
RD
37622011-08-05 Robert Dewar <dewar@adacore.com>
3763
3764 * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb,
3765 sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb,
3766 prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb,
3767 s-atocou-builtin.adb: Minor reformatting.
3768
406935b6
AC
37692011-08-05 Yannick Moy <moy@adacore.com>
3770
3771 * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode,
3772 if the node to wrap is a pragma check, this node and enclosed
3773 expression are not expanded, so do not apply any transformations here.
3774 * exp_prag.adb (Expand_Pragma_Check): document the need to avoid
3775 introducing transient scopes.
3776
37772011-08-05 Jose Ruiz <ruiz@adacore.com>
3778
3779 * adaint.c (__gnat_set_writable, __gnat_set_readable,
3780 __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable,
3781 __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod
3782 routine is available, so we use the default implementation of these
3783 functions.
3784 * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is
3785 support for copying attributes on VxWorks 6.
3786
37872011-08-05 Yannick Moy <moy@adacore.com>
3788
3789 * debug.adb: Remove use of -gnatd.D.
3790 * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode
3791 * opt.ads: Simplify variables for ALFA mode, to keep one only
3792 * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode
3793 to ALFA mode.
3794
37952011-08-05 Vincent Celier <celier@adacore.com>
3796
3797 * prj-conf.adb (Do_Autoconf): Look also for --RTS in
3798 Builder'Default_Switches.
3799
38002011-08-05 Vincent Celier <celier@adacore.com>
3801
3802 * makeusg.adb: Add lines for --create-map-file switches.
3803
38042011-08-05 Ed Schonberg <schonberg@adacore.com>
3805
3806 * freeze.adb (Freeze_Entity): For a subprogram, if a type in the
3807 profile is incomplete and the full view is available, replace it with
3808 the full view.
3809 * sem_ch6.adb (Possible_Freeze): if a type in the profile is
3810 incomplete, freezing the subprogram is delayed until the full view is
3811 frozen.
3812 * sem_type.adb (Disambiguate): an ambiguity between a user-defined
3813 fixed-point multiplication operator and the predefined operator is
3814 resolved in favor of the user-defined one.
3815
96c891b3
RO
38162011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3817
3818 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use
3819 CONST_CAST.
3820
276e7ed0
AC
38212011-08-04 Ed Schonberg <schonberg@adacore.com>
3822
3823 * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
3824 whether a type lacks user-defined Read or Write operations, or has a
3825 component that lacks them.
3826 * sem_attr.adb (Check_Stream_Attribute): if restriction
3827 No_Default_Stream_Attributes is active, verify that all subcomponent
3828 types of the target have user-defined stream operations, and report
3829 error otherwise.
3830 * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
3831 * exp_strm.adb: Build_Elementary_Input_Call,
3832 Build_Elementary_Write_Call): remove checks for restriction
3833 No_Default_Stream_Attributes, now checked in semantics.
3834
38352011-08-04 Vincent Celier <celier@adacore.com>
3836
3837 * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
3838 switches on the command line, look for all valid --RTS switches in the
3839 Builder switches and for each language use the first runtime name found
3840 to invoke gprconfig.
3841 (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
3842 command line and there is no auto-configuration.
3843 (Runtime_Name_Set_For): New function.
3844
38452011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3846
3847 * exp_ch7.adb (Build_Object_Declarations): Do not generate the
3848 elaborate initialization expression for variable Abort when processing
3849 a package body or a declaration.
3850 (Create_Finalizer): Propagate the package context when creating the
3851 exception-related variables.
3852 * exp_ch7.ads (Build_Object_Declarations): New formal parameter
3853 For_Package along with usage comment.
3854
19172ae9
AC
38552011-08-04 Arnaud Charlet <charlet@adacore.com>
3856
3857 * gcc-interface/Makefile.in: Clean up targets.
3858 Enable new package for atomic counters and copy-on-write implementation
3859 of unbounded strings on x86 platforms.
3860 * gcc-interface/Make-lang.in: Update dependencies.
3861
0319cacc
AC
38622011-08-04 Robert Dewar <dewar@adacore.com>
3863
3864 * exp_ch7.adb: Minor reformatting.
3865
38662011-08-04 Robert Dewar <dewar@adacore.com>
3867
3868 * exp_strm.adb: Minor reformatting.
3869
38702011-08-04 Vadim Godunko <godunko@adacore.com>
3871
3872 * s-atocou.adb: Replace by dummy version and use on targets where atomic
3873 operations are not supported.
3874 * s-atocou-builtin.adb: Renamed from s-atocou.adb.
3875 * s-atocou-x86.adb: New file.
3876 * Makefile.rtl: Add s-atocou.o file
3877
38782011-08-04 Arnaud Charlet <charlet@adacore.com>
3879
3880 * make.adb (Compile): Move setting of CodePeer_Mode to ...
3881 (Compilation_Phase): ... here.
3882 (Scan_Make_Arg): Now bind and link by default in CodePeer mode.
3883
38842011-08-04 Thomas Quinot <quinot@adacore.com>
3885
3886 * Make-generated.in: Fix minor typo in comment.
3887
26e7e1a0
AC
38882011-08-04 Thomas Quinot <quinot@adacore.com>
3889
3890 * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve
3891 the project path.
3892
38932011-08-04 Robert Dewar <dewar@adacore.com>
3894
3895 * a-coinho.adb: Minor reformatting.
3896
38972011-08-04 Robert Dewar <dewar@adacore.com>
3898
3899 * a-coinho.ads: Minor reformatting.
3900
39012011-08-04 Vadim Godunko <godunko@adacore.com>
3902
3903 * s-atocou.ads, s-atocou.adb: New files.
3904 * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads,
3905 a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove
3906 direct use of GCC's atomic builtins and replace them by use of new
3907 atomic counter package.
3908
39092011-08-04 Ed Schonberg <schonberg@adacore.com>
3910
3911 * exp_strm.adb: better error message for No_Default_Stream_Attributes.
3912
39132011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3914
3915 * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic
3916 with a call to Get_External_Tag.
3917 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on
3918 subprogram usage. Remove the guard against package declarations and
3919 bodies since Build_Cleanup_Statements is no longer invoked in that
3920 context.
3921 (Build_Components): Initialize Tagged_Type_Stmts when the context
3922 contains at least one library-level tagged type.
3923 (Build_Finalizer): New local variables Has_Tagged_Types and
3924 Tagged_Type_Stmts along with associated comments on usage. Update the
3925 logic to include tagged type processing.
3926 (Create_Finalizer): Insert all library-level tagged type unregistration
3927 code before the jump block circuitry.
3928 (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements.
3929 (Expand_N_Package_Declaration): Remove the call to
3930 Build_Cleanup_Statements.
3931 (Process_Tagged_Type_Declaration): New routine. Generate a call to
3932 unregister the external tag of a tagged type.
3933 (Processing_Actions): Reimplemented to handle tagged types.
3934 (Process_Declarations): Detect the declaration of a library-level
3935 tagged type and carry out the appropriate actions.
3936 (Unregister_Tagged_Types): Removed. The machinery has been directly
3937 merged with Build_Finalizer.
3938
7483c888
AC
39392011-08-04 Robert Dewar <dewar@adacore.com>
3940
3941 * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb,
3942 gnatls.adb, exp_ch3.adb: Minor reformatting.
3943
39442011-08-04 Marc Sango <sango@adacore.com>
3945
3946 * sem_attr.adb (Analyze_Attribute): Replace the message
3947 "invisible attribute of}" of the spark restriction violation in
3948 attribute reference by the simple message "invisible attribute of type".
3949 Indeed, the node value Error_Msg_Node_1 used is in conflit with the
3950 two insertion characters: '&' and '}'.
3951
39522011-08-04 Vadim Godunko <godunko@adacore.com>
3953
3954 * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho".
3955 * a-coinho.ads, a-coinho.adb: New file.
3956 * Makefile.rtl: Add Ada.Containers.Indefinite_Holders.
3957
5207696c
AC
39582011-08-04 Nicolas Roche <roche@adacore.com>
3959
3960 * alfa_test.adb: Not all ali files are containing alfa information even
3961 if compiled with -gnatd.F. So suppress warning about missing ALFA
3962 information.
3963
39642011-08-04 Yannick Moy <moy@adacore.com>
3965
3966 * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for
3967 scope.
3968 * put_alfa.adb: Check that scope name is not empty.
3969
39702011-08-04 Ed Schonberg <schonberg@adacore.com>
3971
3972 * exp_ch3.adb (Stream_Operation_Ok): new predicate
3973 Needs_Elementary_Stream_Operation, to determine whether user-defined
3974 Read and Write attributes are available for the elementary components
3975 of the given type. If only the predefined attributes are available,
3976 then when restriction No_Default_Stream_Attributes is active the
3977 predefined stream attributes for the composite type cannot be created.
3978
39792011-08-04 Robert Dewar <dewar@adacore.com>
3980
3981 * bindgen.adb: Fix obsolete comments and names from Ada/C days.
3982 Put routines in alpha order
3983
2bd2d858
JR
39842011-08-04 Jose Ruiz <ruiz@adacore.com>
3985
3986 * gcc-interface/Makefile.in: Remove xenomai specific versions of system.
3987 * gcc-interface/Make-lang.in: Update dependencies.
3988
8fae6016
AC
39892011-08-04 Arnaud Charlet <charlet@adacore.com>
3990
3991 * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
3992 * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
3993 gnat1why).
3994
a54d0eb4
AC
39952011-08-04 Robert Dewar <dewar@adacore.com>
3996
3997 * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
3998 lib-xref-alfa.adb: Minor reformatting.
3999
40002011-08-04 Marc Sango <sango@adacore.com>
4001
4002 * sem_ch12.adb (Analyze_Generic_Package_Declaration,
4003 Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation,
4004 Analyze_Subprogram_Instantiation): Check absence of generic in SPARK
4005 mode.
4006
40072011-08-04 Tristan Gingold <gingold@adacore.com>
4008
4009 * bindgen.adb (Gen_Adainit_C): Remove.
4010 (Gen_Adafinal_C): Ditto.
4011 (Gen_Elab_Externals_C): Ditto.
4012 (Gen_Elab_Calls_C): Ditto.
4013 (Gen_Elab_Order_C): Ditto.
4014 (Gen_Elab_Defs_C): Ditto.
4015 (Gen_Finalize_Library_C): Ditto.
4016 (Gen_Finalize_Library_Defs_C): Ditto.
4017 (Gen_Main_C): Ditto.
4018 (Gen_Output_File_C): Ditto.
4019 (Gen_Restrictions_C): Ditto.
4020 (Gen_Versions_C): Ditto.
4021 (Write_Info_Ada_C): Ditto.
4022 (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C
4023 (Gen_Output_File): Do not force Ada_Bind_File anymore.
4024 Always call Gen_Output_File_Ada.
4025 * gnatlink.adb (Begin_Info): Now a constant.
4026 (End_Info): Ditto.
4027 (Ada_Bind_File): Remove
4028 (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases.
4029 * switch-b.adb (Scan_Binder_Switches): Do not handle -C.
4030 * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases.
4031 * opt.ads (Ada_Bind_File): Remove.
4032
40332011-08-04 Thomas Quinot <quinot@adacore.com>
4034
4035 * projects.texi: Document target-specific directory in default project
4036 path for gnatmake.
4037
40382011-08-04 Thomas Quinot <quinot@adacore.com>
4039
4040 * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project
4041 path in all cases .
4042
24558db8
AC
40432011-08-04 Yannick Moy <moy@adacore.com>
4044
4045 * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb,
4046 opt.ads, lib-xref.ads: Code clean up.
4047
40482011-08-04 Yannick Moy <moy@adacore.com>
4049
4050 * gnat_rm.texi: Update description of Test_Case
4051 * gnat_ugn.texi: Typo.
4052
40532011-08-04 Ed Falis <falis@adacore.com>
4054
4055 * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin.
4056
40572011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
4058
4059 * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when
4060 it is of type Root_Controlled. This action eliminates fields Prev and
4061 Next from type equality.
4062
40632011-08-04 Yannick Moy <moy@adacore.com>
4064
4065 * lib-xref-alfa.adb: Correct typo.
4066
40672011-08-04 Matthew Heaney <heaney@adacore.com>
4068
4069 * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes
4070 component.
4071
1f9939b5
AC
40722011-08-04 Yannick Moy <moy@adacore.com>
4073
4074 * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure
4075 (Analyze_Pragma): allow static string expression for name of Test_Case,
4076 instead of simply string literals.
4077 * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string
4078 expressions.
4079
40802011-08-04 Vincent Celier <celier@adacore.com>
4081
4082 * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical
4083 case suffixes to find truncated main sources.
4084
40852011-08-04 Tristan Gingold <gingold@adacore.com>
4086
4087 * impunit.adb (Non_Imp_File_Names_95): Add g-tastus.
4088 s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put.
4089 (Compute_Current_Task): Ditto.
4090
40912011-08-04 Tristan Gingold <gingold@adacore.com>
4092
4093 * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage.
4094
40952011-08-04 Yannick Moy <moy@adacore.com>
4096
4097 * lib-xref-alfa.adb (Is_Global_Constant): new function that detects
4098 library-level constant.
4099 (Add_ALFA_Xrefs): ignore global constants in ALFA xref.
4100 * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal
4101 used as selector of parameter association, in ALFA mode.
4102
15d8a51d
AC
41032011-08-04 Robert Dewar <dewar@adacore.com>
4104
4105 * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb,
4106 s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor
4107 reformatting.
4108
41092011-08-04 Arnaud Charlet <charlet@adacore.com>
4110
4111 * make.adb (Linking_Phase): Set source search path before calling
4112 gnatlink in CodePeer mode.
4113
f46faa08
AC
41142011-08-04 Javier Miranda <miranda@adacore.com>
4115
4116 * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration):
4117 Remove code which takes care of building TSDs.
4118 * rtsfind.ads (RE_Check_Interface_Conversion): New entity.
4119 * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating
4120 the accessibility check in VM targets.
4121 * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads
4122 (Building_Static_DT): Now returns false for VM targets.
4123 (Build_VM_TSDs): Removed.
4124 (Expand_Interface_Conversion): Generate missing runtime check for
4125 conversions to interface types whose target type is unknown at compile
4126 time.
4127 (Make_VM_TSD): Add missing code to disable the generation of calls to
4128 Check_TSD if the tagged type is not defined at library level, or not
4129 has a representation clause specifying its external tag, or -gnatdQ is
4130 active.
4131 * exp_disp.ads (Build_VM_TSDs): Removed.
4132 (Make_VM_TSDs): Spec relocated from exp_disp.adb
4133 * sem_disp.adb (Check_Dispatching_Operation): No code required to
4134 register primitives in the dispatch tables in VM targets.
4135 * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of
4136 initialization of class-wide interface objects in VM targets.
4137 (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead
4138 of Make_DT).
4139
41402011-08-04 Jerome Lambourg <lambourg@adacore.com>
4141
4142 * gnatlink.adb (Gnatlink): Correct missleading error message displayed
4143 when dotnet-ld cannot be found.
4144
41452011-08-04 Arnaud Charlet <charlet@adacore.com>
4146
4147 * bindgen.adb: Simplify significantly generation of binder body file in
4148 CodePeer mode.
4149 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure
4150 when compiling binder generated file in CodePeer mode (xxx'Elab_Spec
4151 not expanded).
4152
2ba7e31e
AC
41532011-08-04 Yannick Moy <moy@adacore.com>
4154
4155 * sem_prag.adb, sem.ads: Code cleanup.
4156
41572011-08-04 Tristan Gingold <gingold@adacore.com>
4158
4159 * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part.
4160 * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate
4161 results if possible.
4162 * s-stusta.adb (Print): Adjust after changes in s-stausa.
4163 * gnat_ugn.texi: Update dynamic stack usage section.
4164
41652011-08-04 Steve Baird <baird@adacore.com>
4166
4167 * bindgen.adb (Gen_CodePeer_Wrapper): new procedure.
4168 Generate (if CodePeer_Mode is set) a "wrapper" subprogram which
4169 contains only a call to the user-defined main subprogram.
4170 (Gen_Main_Ada) - If CodePeer_Mode is set, then
4171 call the "wrapper" subprogram instead of directly
4172 calling the user-defined main subprogram.
4173
41742011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
4175
4176 * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all
4177 alternatives of a case statement for controlled objects. Rename local
4178 variable A to Dead_Alt.
4179 (Expand_N_If_Statement): Check the then and else statements of an if
4180 statement for controlled objects. Check the then statements of all
4181 elsif parts of an if statement for controlled objects.
4182 (Expand_N_Loop_Statement): Check the statements of a loop for controlled
4183 objects.
4184 * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which
4185 detects a loop associated with the expansion of an array object.
4186 Augment the processing of the loop statements to account for a possible
4187 wrap done by Process_Statements_For_Controlled_Objects.
4188 * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering
4189 statements and abortable part of an asynchronous select for controlled
4190 objects.
4191 (Expand_N_Conditional_Entry_Call): Check the else statements of a
4192 conditional entry call for controlled objects.
4193 (Expand_N_Selective_Accept): Check the alternatives of a selective
4194 accept for controlled objects.
4195 (Expand_N_Timed_Entry_Call): Check the entry call and delay
4196 alternatives of a timed entry call for controlled objects.
4197 * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an
4198 exception handler for controlled objects.
4199 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
4200 Add formal parameter Nested_Constructs along with its associated
4201 comment.
4202 (Requires_Cleanup_Actions (Node_Id)): Update all calls to
4203 Requires_Cleanup_Actions.
4204 (Process_Statements_For_Controlled_Objects): New routine.
4205 * exp_util.ads (Process_Statements_For_Controlled_Objects): New
4206 routine. Inspect a node which contains a non-handled sequence of
4207 statements for controlled objects. If such an object is found, the
4208 statements are wrapped in a block.
4209
1bf773bb
AC
42102011-08-04 Bob Duff <duff@adacore.com>
4211
4212 * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we
4213 need to compare with Class_Wide_Type (T2), in order to get at the
4214 original class-wide type node.
4215 * sem_type.ads (Covers): Improve the comment.
4216 * einfo.ads (Class_Wide_Type): Improve the comment.
4217 * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of
4218 the type of the Deref.
4219
42202011-08-04 Yannick Moy <moy@adacore.com>
4221
4222 * gnat_rm.texi: Document that Test_Case pragma can only appear on
4223 separate declarations.
4224 * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to
4225 check identifier of pragma argument.
4226 (Chain_TC): check that no other test case associated to the same entity
4227 share the same name.
4228 (Check_Test_Case): disallow test case inside subprogram body
4229 (Analyze_Pragma): correct call to check identifier and not argument
4230 * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new
4231 function gets name from test case pragma.
4232
dac3bede
YM
42332011-08-04 Yannick Moy <moy@adacore.com>
4234
4235 * gnat_rm.texi: Document new pragma and aspect.
4236 * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case
4237 (No_Duplicates_Allowed): new constant array defining whether duplicates
4238 aspects of each kind can appear on the same declaration.
4239 * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract
4240 field, which points to a node holding the previous Spec_PPC_List.
4241 * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List
4242 through the indirection with Contract.
4243 * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node
4244 * par-prag.adb (Prag): do nothing on Test_Case pragma
4245 * sem.adb (Analyze): abort on N_Contract, on which Analyze should not
4246 be called directly.
4247 * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in
4248 component Ensures of Test_Case.
4249 * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb
4250 (Analyze_Generic_Subprogram_Declaration,
4251 Analyze_Subprogram_Instantiation,
4252 Analyze_Abstract_Subprogram_Declaration,
4253 Analyze_Subprogram_Body_Helper,
4254 Analyze_Subprogram_Specification, Analyze_Entry_Declaration):
4255 insert contract in subprogram node at point of definition
4256 * sem_ch13.adb
4257 (Aspect_Loop): do not raise error on duplicate Test_Case aspect
4258 (Analyze_Aspect_Specifications): analyze Test_Case aspect and create
4259 corresponding pragma
4260 (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect
4261 * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases,
4262 similar to the analysis of pre/post
4263 (Derive_Subprogram): insert contract in subprogram node at point of
4264 derivation.
4265 * sem_prag.adb, sem_prag.ads
4266 (Check_Arg_Is_String_Literal, Check_Identifier):
4267 new checking procedures to be called in treatment of pragmas
4268 (Check_Test_Case): new procedure to check that a Test_Case aspect or
4269 pragma is well-formed. This does not check currently that 'Result is
4270 used only in the Ensures component of a Test_Case.
4271 (Analyze_Pragma): add case for Test_Case
4272 (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures
4273 components of a Test_Case.
4274 (Preanalyze_TC_Args): new procedure to preanalyze the boolean
4275 expressions in the 3rd (and 4th if present) arguments of a Test_Case
4276 pragma, treated as spec expressions.
4277 (Sig_Flags): add value -1 for Test_Case.
4278 * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma,
4279 Get_Requires_From_Test_Case_Pragma): getters for both expression
4280 components of a Test_Case.
4281 * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as
4282 indirection between an entry or [generic] subprogram entity and its
4283 pre/post + test-cases.
4284 (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List):
4285 get/set for fields of an N_Contract node.
4286 * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode,
4287 Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new
4288 names and pragma for Test_Case.
4289 * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node
4290
6a2e5d0f
AC
42912011-08-04 Vincent Celier <celier@adacore.com>
4292
4293 * gnat_ugn.texi: Improve documentation of gnatmake switch
4294 --source-info-file=.
4295
42962011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
4297
4298 * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion
4299 type). Initialize Atyp to the appropriate type which is later checked
4300 for completion. Rewrite the assertion associated with private type
4301 completion.
4302
43032011-08-04 Ed Falis <falis@adacore.com>
4304
4305 * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to
4306 initialize the number of CPUs.
4307
43082011-08-04 Ed Schonberg <schonberg@adacore.com>
4309
4310 * sem_type.adb (Disambiguate): New subsidiary routine
4311 In_Same_Declaration_List, to implement AI05-0020: a user-defined
4312 equality on an anonymous access type whose designated type is private
4313 does not lead to an ambiguity with the universal access equality
4314 operator in the body or child units of the defining package. The same
4315 is true for a multiplication operator on a private type completed with
4316 a fixed-point-type.
4317
43182011-08-04 Javier Miranda <miranda@adacore.com>
4319
4320 * opt.ads (Init_Or_Norm_Scalars_Config): Removed.
4321 (Normalize_Scalars_Config): Removed.
4322 * opt.adb
4323 (Register_Opt_Config_Switches): Remove registering config values of
4324 Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config.
4325 (Restore_Opt_Config_Switches): Remove code which restores the values of
4326 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
4327 Init_Or_Norm_Scalars.
4328 (Save_Opt_Config_Switches): Remove code which saves values of
4329 Init_Or_Norm_Scalars and Normalize_Scalars.
4330 (Set_Opt_Config_Switches): Remove code which restores config values of
4331 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
4332 Init_Or_Norm_Scalars.
4333
43342011-08-04 Yannick Moy <moy@adacore.com>
4335
4336 * frontend.adb (Frontend): remove previous patch to avoid full
4337 qualification in ALFA mode.
4338 * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables.
4339 * sem_util.adb, sem_util.ads (Unique_Name): new function to define a
4340 unique name for an entity, which could be used to identify the entity
4341 across compilation units.
4342
43432011-08-04 Thomas Quinot <quinot@adacore.com>
4344
4345 * prj-env.adb
4346 (Initialize_Default_Project_Path): Add target specific directory
4347 ($prefix/$target/lib/gnat) in front of project path in all cases
4348 (making gnatmake's behaviour consistent with gprbuild).
4349 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb:
4350 Pass target name from Sdefault to project subsystem.
4351 * gnatls.adb: Show new target specific default project directory.
4352
43532011-08-04 Johannes Kanig <kanig@adacore.com>
4354
4355 * cstand.adb: Add Information to Identifier in Standard
4356 (Identifer_For): Set Entity to the corresponding entity
4357
483361a6
AC
43582011-08-04 Sergey Rybin <rybin@adacore.com>
4359
4360 * gnat_ugn.texi: Update doc on gnatcheck.
4361
43622011-08-04 Yannick Moy <moy@adacore.com>
4363
4364 * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of
4365 xrefs in a scope.
4366
43672011-08-04 Yannick Moy <moy@adacore.com>
4368
4369 * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without
4370 performing expansion.
4371 * sem_ch6.adb (Analyze_Subprogram_Body_Helper,
4372 Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that
4373 it is not called in ALFA mode.
4374
ef5569c6
AC
43752011-08-04 Emmanuel Briot <briot@adacore.com>
4376
4377 * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used
4378 after all, so removed.
4379
43802011-08-04 Sergey Rybin <rybin@adacore.com>
4381
4382 * vms_data.ads: Add missing VMS qualifiers.
4383
1ab4a286
EB
43842011-08-04 Emmanuel Briot <briot@adacore.com>
4385
4386 * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild
4387 the list of files on the command line after processing it through
4388 Complete_Mains.
4389
7ae0d98c
AC
43902011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
4391
4392 * exp_ch7.adb (Build_Raise_Statement): Remove the specialized
4393 processing for .NET/JVM. These targets can now benefit from
4394 Raise_From_Controlled_Operation and they share the same processing with
4395 standard targets.
4396 (Establish_Transient_Scope): Remove the restriction for .NET/JVM.
4397 These targets need transient scopes in order to properly finalize short
4398 lived controlled objects.
4399 (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for
4400 NET/JVM. These targets can now benefit from
4401 Raise_From_Controlled_Operation and they share the same processing with
4402 standard targets.
4403
44042011-08-04 Geert Bosch <bosch@adacore.com>
4405
4406 * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack
4407
44082011-08-04 Ed Schonberg <schonberg@adacore.com>
4409
4410 * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to
4411 Expand_Record_Aggregate, to determine whether aggregate must be
4412 expanded into assignments. This is the case if the ancestor part is
4413 private, regarless of the setting of the flag Has_Private_Ancestor.
4414
44152011-08-04 Ed Falis <falis@adacore.com>
4416
4417 * vxaddr2line.adb: Add support for e500v2 and for Linux hosts
4418
44192011-08-04 Bob Duff <duff@adacore.com>
4420
4421 * sinfo.ads: Fix comment.
4422
44232011-08-04 Steve Baird <baird@adacore.com>
4424
4425 * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then
4426 choose a package name in much the same way as is
4427 done for JGNAT when VM_Target /= No_VM, except that
4428 a slightly more distinctive prefix string is used.
4429
44302011-08-04 Emmanuel Briot <briot@adacore.com>
4431
4432 * makeutl.adb (Complete_Mains): no longer accept unit names on the
4433 gnatmake command line.
4434 This behavior was never documented (and was supported only because of
4435 an early bug in the code). This case might lead to ambiguous cases
4436 (between unit names and truncated base names without suffixes).
4437
87729e5a
AC
44382011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
4439
4440 * a-tags.ads, a-tags.adb (Unregister_Tag): New routine.
4441 Remove the external tag of a tagged type from the internal hash table.
4442 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the
4443 expanded usage of the routine. Strenghten the check for Is_Master. Add
4444 processing for tagged types.
4445 (Build_Finalizer): Create all the necessary lists used in finalizer
4446 creation when the processed context is a package that may contain
4447 tagged types.
4448 (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to
4449 Requires_Cleanup_Actions.
4450 (Expand_N_Package_Body): Package bodies may need clean up code
4451 depending on whether they contain tagged types.
4452 (Expand_N_Package_Declaration): Package declarations may need clean up
4453 code depending on whether they contain tagged types.
4454 (Unregister_Tagged_Types): New routine. Search through a list of
4455 declarations or statements, looking for non-abstract Ada tagged types.
4456 For each such type, generate code to unregister the external tag.
4457 * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to
4458 Requires_Cleanup_Actions.
4459 (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search
4460 through a list of declarations or statements looking for non-abstract
4461 Ada tagged types or controlled objects.
4462 * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to
4463 Requires_Cleanup_Actions.
4464 (Has_Controlled_Objects (List_Id, Boolean)): Removed.
4465 * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and
4466 RE_Unit_Table.
4467
44682011-08-04 Vincent Celier <celier@adacore.com>
4469
4470 * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj
4471 has Ada sources, not project Project, because if the root project
4472 Project has no sources of its own, all projects will be deemed without
4473 sources.
4474
44752011-08-04 Gary Dismukes <dismukes@adacore.com>
4476
4477 * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration
4478 of the No_Param_Proc acc-to-subp type used for initialization of
4479 __gnat_finalize_library_objects so that it's declared at library level
4480 rather than nested inside of the adainit routine.
4481
44822011-08-04 Javier Miranda <miranda@adacore.com>
4483
4484 * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY
4485 if the tagged type has a representation clause which specifies its
4486 external tag.
4487
44882011-08-04 Ed Schonberg <schonberg@adacore.com>
4489
4490 * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types.
4491 Remove previous procedure with that name.
4492 * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor
4493 when appropriate.
4494 * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a
4495 subtype mark, the ancestor cannot have unknown discriminants.
4496 (Resolve_Record_Aggregate): if the type has invisible components
4497 because of a private ancestor, the aggregate is illegal.
4498
44992011-08-04 Vincent Celier <celier@adacore.com>
4500
4501 * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into
4502 account switches -gnat2005, -gnat12 and -gnat2012.
4503
45042011-08-04 Bob Duff <duff@adacore.com>
4505
4506 * s-tasdeb.ads: Minor comment fix.
4507
45082011-08-04 Arnaud Charlet <charlet@adacore.com>
4509
4510 * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in
4511 CodePeer mode.
4512 * switch.ads, switch.adb (Is_Language_Switch): New function.
4513
45142011-08-04 Vincent Celier <celier@adacore.com>
4515
4516 * switch-c.adb: Minor comment addition.
4517
45182011-08-04 Vincent Celier <celier@adacore.com>
4519
4520 * vms_conv.adb (Process_Argument): Fail graciously when qualifier
4521 ending with '=' is followed by a space (missing file name).
4522
45232011-08-04 Pascal Obry <obry@adacore.com>
4524
4525 * g-regist.ads: Fix size of HKEY on x86_64-windows.
4526
45272011-08-04 Ed Schonberg <schonberg@adacore.com>
4528
4529 * sem_ch12.adb (Analyze_Associations): New routine
4530 Check_Overloaded_Formal_Subprogram to reject a formal package when
4531 there is a named association or a box initialisation for an overloaded
4532 formal subprogram of the corresponding generic.
4533
45342011-08-04 Yannick Moy <moy@adacore.com>
4535
4536 * alfa.ads (ALFA_Xref_Record): add component for type of entity
4537 * get_alfa.adb, put_alfa.adb: Read and write new component of
4538 cross-reference.
4539 * lib-xref-alfa.adb (Collect_ALFA): generate new component.
4540
88f47280
AC
45412011-08-04 Pascal Obry <obry@adacore.com>
4542
4543 * urealp.adb: Minor reformatting.
4544
45452011-08-04 Tristan Gingold <gingold@adacore.com>
4546
4547 * exp_ch7.adb (build_finalizer.process_declarations.processing_actions):
4548 Handle the case when Cleanup_Protected_Object returns Empty.
4549
45502011-08-04 Yannick Moy <moy@adacore.com>
4551
4552 * frontend.adb (Frontend): only qualify names in non-ALFA mode
4553
45542011-08-04 Ed Schonberg <schonberg@adacore.com>
4555
4556 * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure
4557 call, ignore functions.
4558
05c53a69
GB
45592011-08-04 Geert Bosch <bosch@adacore.com>
4560
4561 * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating
4562 point.
4563
23cc1ace
EB
45642011-08-04 Emmanuel Briot <briot@adacore.com>
4565
4566 * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name
4567 as an index for Builder'Switches. This conforms to the documentation.
4568 * make.adb (Insert_Project_Sources): avoid duplicate code
4569
cef14201
AC
45702011-08-04 Emmanuel Briot <briot@adacore.com>
4571
4572 * makeutl.adb (Complete_Mains): if the user has passed a relative file
4573 name on the command line (for instance "../dummy"), never assume it can
4574 be a unit name.
4575
45762011-08-04 Tristan Gingold <gingold@adacore.com>
4577
4578 * bindgen.adb: Remove code the reference or create the
4579 Break_Start/__gnat_break_start procedure.
4580 * s-stalib.adb (Break_Start): Removed.
4581
e2fee30d
EB
45822011-08-04 Emmanuel Briot <briot@adacore.com>
4583
4584 * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now
4585 shared with gprbuild.
4586
2d395256
AC
45872011-08-04 Yannick Moy <moy@adacore.com>
4588
4589 * par-ch4.adb (P_Primary): preferentially issue an error message about
4590 a missing parenthesis arount a conditional or case expression in Ada
4591 2012 mode, if we detect that the alignment is not correct for a
4592 statement.
4593
45942011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
4595
4596 * exp_ch7.adb (Process_Declarations): Do not consider the result of a
4597 tag-to-class-wide conversion as needing finalization actions.
4598 * exp_util.adb (Has_Controlled_Objects): Do not consider the result of
4599 a tag-to-class-wide conversion as needing finalization actions.
4600 (Is_Finalizable_Transient): The result of a tag-to-class-wide
4601 conversion does not need finalization actions.
4602 (Is_Tag_To_CW_Conversion): New routine.
4603 * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines
4604 whether an object is the result of a tag-to-class-wide conversion.
4605
46062011-08-04 Yannick Moy <moy@adacore.com>
4607
4608 * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which
4609 the left-hand-side and right-hand-side of a conjunct are inserted when
4610 translating a pre- or postcondition
4611 * sem_ch6.adb: Correct typo in comment
4612
46132011-08-04 Ed Schonberg <schonberg@adacore.com>
4614
4615 * gnat_rm.texi: Ravenscar does not prohibit dependence on
4616 Unchecked_Conversion and Unchecked_Deallocation.
4617
46182011-08-04 Thomas Quinot <quinot@adacore.com>
4619
4620 * make.adb: Minor reformatting.
4621
767ab2fd
EB
46222011-08-04 Emmanuel Briot <briot@adacore.com>
4623
4624 * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the
4625 sources in the project and its imported projects, but not in the whole
4626 tree.
4627
8fb3f5df
AC
46282011-08-04 Emmanuel Briot <briot@adacore.com>
4629
4630 * make.adb: Remove debug trace.
4631
46322011-08-04 Vincent Celier <celier@adacore.com>
4633
4634 * makeutl.adb (Do_Complete): Get the absolute path name of a relative
4635 path in canonical form, to be able to compare path names on platforms
4636 such as Windows or Darwin.
4637
46382011-08-04 Thomas Quinot <quinot@adacore.com>
4639
4640 * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry):
4641 For a pragma (statement with C1 = 'P'), record the sloc of the pragma.
4642 * scos.ads: Update documentation accordingly.
4643 * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled
4644 pragmas.
4645
9515740f
AC
46462011-08-04 Ed Schonberg <schonberg@adacore.com>
4647
4648 * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of
4649 attribute only if prefix type is scalar.
4650
46512011-08-04 Emmanuel Briot <briot@adacore.com>
4652
4653 * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support
4654 in gnatmake for specifying mains on the command line that do not belong
4655 to the main project. These mains must currently all belong to the same
4656 project, though.
4657 (Ultimate_Extension_Of): removed, since duplicated
4658 Ultimate_Extending_Project.
4659
92966893
AC
46602011-08-04 Arnaud Charlet <charlet@adacore.com>
4661
4662 * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode
4663 instead.
4664 (CodePeer_Mode_String): New.
4665 (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in
4666 CodePeer mode.
4667 (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode.
4668 * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer
4669 mode, since no useful elaboration subprogram is needed by CodePeer.
4670 * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode).
4671 In this mode, compile binder file with -gnatC and do stop after this
4672 step.
4673
46742011-08-04 Vincent Celier <celier@adacore.com>
4675
4676 * exp_ch7.adb: Minor comment fix.
4677
5969611f
RD
46782011-08-04 Robert Dewar <dewar@adacore.com>
4679
4680 * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb,
4681 exp_ch4.adb, makeutl.adb: Minor reformatting.
4682
6367dd30
AC
46832011-08-04 Emmanuel Briot <briot@adacore.com>
4684
4685 * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring.
4686 Create several new subprograms to move code out of Make. This makes the
4687 code more readable, removes code duplication, and is a preparation work
4688 for adding support for aggregate projects.
4689
46902011-08-04 Tristan Gingold <gingold@adacore.com>
4691
4692 * s-po32gl.ads, s-po32gl.adb: New files.
4693 * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function.
4694 * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function.
4695 (Build_Finalization_Collection): Use it.
4696 * exp_ch4.adb (Complete_Controlled_Allocation): Ditto.
4697 * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New
4698 literals.
4699 * gcc-interface/Makefile.in: Use s-po32gl.o on VMS.
4700 * gcc-interface/Make-lang.in: Update dependencies.
4701
cd8bfe35
EB
47022011-08-04 Emmanuel Briot <briot@adacore.com>
4703
4704 * makeutl.adb (Complete_Mains): add support for specs with no suffix on
4705 the command line.
4706
7db29ea7
EB
47072011-08-04 Emmanuel Briot <briot@adacore.com>
4708
4709 * make.adb, makeutl.adb (Complete_Mains): if a main specified on the
4710 command line is not a file name, also check whether it could be a unit
4711 name.
4712
d9b056ea
AC
47132011-08-04 Eric Botcazou <ebotcazou@adacore.com>
4714
4715 * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate
4716 the header of the finalization routine.
4717 If the unit has no finalizer but is a body whose spec has one, then
4718 generate the decrement of the elaboration entity only.
4719 If the unit has a finalizer and is a spec, then do not generate the
4720 decrement of the elaboration entity.
4721 (Gen_Finalize_Library_C): Likewise.
4722
47232011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
4724
4725 * exp_ch7.adb (Alignment_Of): New subsidiary routine.
4726 (Bounds_Size_Expression): Removed.
4727 (Double_Alignment_Of): New subsidiary routine.
4728 (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account
4729 for a hole in the dope vector of unconstrained arrays due to different
4730 index and element alignments.
4731
47322011-08-04 Ed Schonberg <schonberg@adacore.com>
4733
4734 * sem_res.adb (Resolve_Allocator): diagnose task allocator that will
4735 raise program_error because body has not been seen yet.
4736
47372011-08-04 Ed Schonberg <schonberg@adacore.com>
4738
4739 * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with
4740 an unresolved name.
4741
47422011-08-04 Vincent Celier <celier@adacore.com>
4743
4744 * makeutl.adb (Do_Complete): Check absolute paths in canonical forms
4745
47462011-08-04 Yannick Moy <moy@adacore.com>
4747
4748 * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here
4749 * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here
4750
47512011-08-04 Thomas Quinot <quinot@adacore.com>
4752
4753 * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for
4754 instantiation in RCI.
4755
47562011-08-04 Emmanuel Briot <briot@adacore.com>
4757
4758 * make.adb: Share more code with gprbuild
4759
f5fc5b9d
AC
47602011-08-04 Emmanuel Briot <briot@adacore.com>
4761
4762 * projects.texi: Added documentation for the IDE'Gnat project file
4763 attribute.
4764
47652011-08-04 Nicolas Roche <roche@adacore.com>
4766
4767 * gnat_rm.texi: Minor editing.
4768
47692011-08-04 Javier Miranda <miranda@adacore.com>
4770
4771 * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case
4772 and the library case for VM targets.
4773 (Gen_Adainit_Ada): Likewise.
4774
47752011-08-04 Robert Dewar <dewar@adacore.com>
4776
4777 * g-altive.ads: Minor comment updates.
4778 * prj-nmsc.adb: Minor reformatting.
4779
47802011-08-04 Javier Miranda <miranda@adacore.com>
4781
4782 * opt.ads
4783 (Normalize_Scalars_Config): Value of the configuration switch set by
4784 pragma Normalize_Scalars when it appears in the gnat.adc file.
4785 (Normalize_Scalars): New field for record Config_Switches_Type. Used
4786 to save and restore settings of this pragma.
4787 * opt.adb
4788 (Register_Opt_Config_Switches, Save_Opt_Config_Switches,
4789 Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars.
4790
47912011-08-04 Vincent Celier <celier@adacore.com>
4792
4793 * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile
4794
0c4683cf
AC
47952011-08-04 Arnaud Charlet <charlet@adacore.com>
4796
4797 * makeutl.adb: Minor reformatting.
4798
47992011-08-04 Olivier Hainque <hainque@adacore.com>
4800
4801 * g-altive.ads: Update comments to reflect that only the soft
4802 binding is available today.
4803
2598ee6d
RD
48042011-08-04 Robert Dewar <dewar@adacore.com>
4805
4806 * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb,
4807 makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting
4808 * gcc-interface/Make-lang.in: Update dependencies.
4809
c2db4b32
AC
48102011-08-04 Arnaud Charlet <charlet@adacore.com>
4811
4812 * prj-env.adb: Remove local debug traces.
4813
48142011-08-04 Yannick Moy <moy@adacore.com>
4815
4816 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
4817 was used instead of Hi_OK, which could cause a read of an uninitialized
4818 value later on. Detected while working on the new warning.
4819 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
4820 to local variable.
4821 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
4822 in more cases, in order to detect more unreferenced values.
4823 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
4824 object for expression, if any.
4825
48262011-08-04 Eric Botcazou <ebotcazou@adacore.com>
4827
4828 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
4829 the operand types instead of the Esize.
4830
48312011-08-04 Steve Baird <baird@adacore.com>
4832
4833 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
4834 enable CodePeer_Mode.
4835 * bindusg.adb (Display): Add help message describing -P binder switch.
4836 * gnat_ugn.texi: Document -P binder switch.
4837 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
4838 user-defined main program directly.
4839 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
4840 user-defined main program in the context clause of the package body.
4841
ad05f2e9
AC
48422011-08-04 Yannick Moy <moy@adacore.com>
4843
4844 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
4845 duplicate of Defining_Entity
4846 (Get_Unique_Entity_For_Decl): rename function into
4847 Unique_Defining_Entity
4848 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
4849 (Formal_Proof_On): remove synthesized flag
4850 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
4851 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
4852 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
4853 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
4854 Annotate (Formal_Proof)
4855
48562011-08-04 Emmanuel Briot <briot@adacore.com>
4857
4858 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
4859 source files with non-standard naming schemes, in imported projects
4860
756ef2a0
AC
48612011-08-04 Emmanuel Briot <briot@adacore.com>
4862
4863 * makeutl.adb (Complete_Mains): when a multi-unit source file is
4864 specified on the gprbuild command line, we need to compile all units
4865 within that file, not just the first one we find
4866 Fix error message for mains that are not found.
4867
48682011-08-04 Thomas Quinot <quinot@adacore.com>
4869
4870 * sem_ch6.adb: Update comment.
4871 * sem_ch12.adb: Minor reformatting.
4872
48732011-08-04 Bob Duff <duff@adacore.com>
4874
4875 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
4876 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
4877 race condition whose symptom is to fail to lock Parent. That, in turn,
4878 causes Parent.Awake_Count to be accessed without locking Parent, which
4879 causes another race condition whose symptom is that Parent.Awake_Count
4880 can be off by 1 (either too high or too low). The solution is to lock
4881 Parent unconditionally, and then lock Acceptor, before reading
4882 Acceptor.Terminate_Alternative.
4883
4fdebd93
AC
48842011-08-04 Arnaud Charlet <charlet@adacore.com>
4885
4886 * debug.adb: Update comment.
4887
48882011-08-04 Robert Dewar <dewar@adacore.com>
4889
4890 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
4891 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
4892 exp_ch6.adb: Minor reformatting.
4893
48942011-08-04 Gary Dismukes <dismukes@adacore.com>
4895
4896 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
4897 checks for -gnateE.
4898
48992011-08-04 Ed Schonberg <schonberg@adacore.com>
4900
4901 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
4902
49032011-08-04 Thomas Quinot <quinot@adacore.com>
4904
4905 * sinfo.ads: Minor reformatting.
4906
49072011-08-04 Emmanuel Briot <briot@adacore.com>
4908
4909 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
4910 even if there is no location.
4911
6aaa0587
ES
49122011-08-04 Ed Schonberg <schonberg@adacore.com>
4913
4914 * sem_res.adb, sem_ch4.adb: move check for restriction
4915 No_Task_Hierarchy to resolve_allocator.
4916
35a1c212
AC
49172011-08-04 Thomas Quinot <quinot@adacore.com>
4918
4919 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
4920 This flag of N_Pragma nodes is not used, remove it as well as all of
4921 the associated circuitry.
4922
49232011-08-04 Javier Miranda <miranda@adacore.com>
4924
4925 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
4926 runtime check on duplicated externa tags
4927 * debug.adb Document switch -gnatdQ.
4928
49292011-08-04 Gary Dismukes <dismukes@adacore.com>
4930
4931 * a-fihema.ads: Minor typo fix.
4932
49332011-08-04 Yannick Moy <moy@adacore.com>
4934
4935 * sem_ch10.adb: Minor comment update.
4936
49372011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
4938
4939 * einfo.adb: Update the node field usage to reflect the renaming of
4940 Return_Flag to Return_ Flag_Or_Transient_Decl.
4941 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
4942 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
4943 (Write_Field15_Name): Change Return_Flag to
4944 Return_Flag_Or_Transient_Decl.
4945 * einfo.ads: Rename node field Return_Flag to
4946 Return_Flag_Or_Transient_Decl. Update the associated comment and all
4947 occurrences in entities.
4948 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
4949 associated Inline pragma.
4950 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
4951 associated Inline pragma.
4952 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
4953 routine.
4954 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
4955 Return_Flag and Set_Return_Flag.
4956 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
4957 objects generated for controlled transients declared inside an
4958 Exception_With_Actions. Update the calls to Return_Flag.
4959 (Process_Object_Declaration): Add code to add a null guard for hook
4960 objects generated for controlled transients declared inside an
4961 Exception_With_Actions. Update related comment.
4962 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
4963 objects generated for controlled transients declared inside an
4964 Exception_With_Actions. Update the calls to Return_Flag.
4965 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
4966
49672011-08-04 Ed Schonberg <schonberg@adacore.com>
4968
4969 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
4970 positional aggregate.
4971
49722011-08-04 Vincent Celier <celier@adacore.com>
4973
4974 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
4975 SLOC only for pragmas.
4976
49772011-08-04 Emmanuel Briot <briot@adacore.com>
4978
4979 * projects.texi: Minor typo fix.
4980
49812011-08-04 Emmanuel Briot <briot@adacore.com>
4982
4983 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
4984 on case-sensitive file systems.
4985
c2873f74
TQ
49862011-08-04 Thomas Quinot <quinot@adacore.com>
4987
4988 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
4989 nested in a disabled pragma.
4990 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
4991 enclosing pragma, if any, for X decisions.
4992
49932011-08-04 Thomas Quinot <quinot@adacore.com>
4994
4995 * sem_prag.adb: Minor reformatting.
4996
46414266
VC
49972011-08-04 Vincent Celier <celier@adacore.com>
4998
4999 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
5000 allowed in no run time mode.
5001
50022011-08-04 Vincent Celier <celier@adacore.com>
5003
5004 * make.adb (Check): When -gnatc is used, check for the source file
5005 inside the ALI file with a canonical case file name.
5006
afab164f
EB
50072011-08-04 Emmanuel Briot <briot@adacore.com>
5008
5009 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
5010 overriding the separator.
5011
fe0ec02f
AC
50122011-08-04 Robert Dewar <dewar@adacore.com>
5013
5014 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
5015 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
5016
50172011-08-04 Robert Dewar <dewar@adacore.com>
5018
5019 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
5020
50212011-08-04 Yannick Moy <moy@adacore.com>
5022
5023 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
5024 'Result only appears in postcondition of function.
5025
50262011-08-04 Thomas Quinot <quinot@adacore.com>
5027
5028 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
5029 external tag, include the value of the external tag in the exception
5030 message.
5031
0180fd26
AC
50322011-08-04 Yannick Moy <moy@adacore.com>
5033
5034 * sem_attr.adb (Result): modify error message for misplaced 'Result
5035
50362011-08-04 Sergey Rybin <rybin@adacore.com>
5037
5038 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
5039 clear that the second argument must be an identifier.
5040
50412011-08-04 Thomas Quinot <quinot@adacore.com>
5042
5043 * exp_ch9.adb (Build_Barrier_Function): When compiling with
5044 -fpreserve-control-flow, insert an IF statement on the barrier
5045 condition to ensure that a conditional branch instruction is generated.
5046
50472011-08-04 Emmanuel Briot <briot@adacore.com>
5048
5049 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
5050 (Processing_Flags.Ignore_Missing_With): new flag.
5051
50522011-08-04 Emmanuel Briot <briot@adacore.com>
5053
5054 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
5055 Source_List_File on case-insensitive systems where the file is actually
5056 on a case-sensitive file system (NFS,...).
5057
50582011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5059
5060 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
5061 function return contains a controlled [extension] aggregate and the
5062 return statement is not part of a handled sequence of statements, wrap
5063 the return in a block. This ensures that all controlled temporaries
5064 generated during aggregate resolution will be picked up by the
5065 finalization machinery.
5066
50672011-08-04 Ed Schonberg <schonberg@adacore.com>
5068
5069 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
5070 components, freeze type before resolution, to ensure that default
5071 initializations are present for all components.
5072 * sem_res.adb (Resolve_Actuals): the designated object of an
5073 accces-to-constant type is a legal actual in a call to an
5074 initialization procedure.
5075
50762011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5077
5078 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
5079 N_Unchecked_Type_Conversion to the possible containers of a renamed
5080 transient variable.
5081
78efd712
AC
50822011-08-04 Yannick Moy <moy@adacore.com>
5083
5084 * par-ch13.adb (Aspect_Specifications_Present): recognize
5085 "with Identifier'Class =>" as an aspect, so that a meaningful warning
5086 is issued in Strict mode.
5087 * par.adb: Fix typos in comments.
5088
50892011-08-04 Yannick Moy <moy@adacore.com>
5090
5091 * sem_attr.adb (Result): modify error message to take into account Post
5092 aspect when compiling Ada 2012 (or newer) code.
5093
50942011-08-04 Nicolas Roche <roche@adacore.com>
5095
5096 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
2c7f9cc0 5097 remove need for GCC exceptions.
78efd712
AC
5098
50992011-08-04 Vincent Celier <celier@adacore.com>
5100
5101 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
5102 project, not the source file name.
5103 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
5104 excluded, continue looking. This excluded source will only be returned
5105 if there is no other source with the same base name that is not locally
5106 removed.
5107
51082011-08-04 Ed Schonberg <schonberg@adacore.com>
5109
5110 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
5111 private and one of the operands is a real literal, use a qualified
5112 expression rather than a conversion which is not meaningful to the
5113 back-end.
5114
0170a691
AC
51152011-08-04 Yannick Moy <moy@adacore.com>
5116
5117 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
5118 corresponding aspect X'Class are allowed, proceed with analysis of the
5119 aspect instead of skipping it.
5120
51212011-08-04 Tristan Gingold <gingold@adacore.com>
5122
5123 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
5124 This will allow to have an Ada implementation for the subprogram.
5125
deb4f5ba
ES
51262011-08-04 Ed Schonberg <schonberg@adacore.com>
5127
5128 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
5129 completion and aspects are present, apply them to the entity for the
5130 type which is currently the partial view, but which is the one that
5131 will be frozen.
5132 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
5133 applies to a partial view, indicate that the full view has predicates
5134 and delayed aspects.
5135 (Replace_Type_Reference): Handle properly predicates that apply to the
5136 full view of a private completion.
5137
fc893455
AC
51382011-08-04 Eric Botcazou <ebotcazou@adacore.com>
5139
5140 * layout.adb (Layout_Type): For composite types, do not set Esize.
5141 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
5142 set Esize.
5143 (Size_Known): Look at the RM size of components instead of the Esize.
5144 (Freeze_Record_Type): Look at the RM size instead of the Esize to
5145 issue warning and activate Implicit_Packing.
5146 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
5147 if the Esize is not known.
5148 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
5149 for elementary types only.
5150 (Analyze_Record_Representation_Clause): Look at the RM size instead
5151 of the Esize to issue errors.
5152 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
5153 is not known.
5154 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
2c7f9cc0 5155 obsolete block.
fc893455
AC
5156 Look at the RM size instead of the Esize for types if the latter is
5157 not known.
5158 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
5159
51602011-08-04 Ed Schonberg <schonberg@adacore.com>
5161
5162 * sem_type.adb: proper handling of equality not involving anonymous
5163 access types.
5164
b37d5bc6
AC
51652011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5166
5167 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
5168 Vis_Decls. When creating a library-level finalizer for a package spec,
5169 both the declaration and body of the finalizer are inserted either in
5170 the visible or private declarations of the package spec.
5171
51722011-08-04 Javier Miranda <miranda@adacore.com>
5173
5174 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
5175 use of the full-view of a type when invoking Is_Ancestor.
5176 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
5177 the full-view of private parents is requested, then use also the
5178 full-view of the parent of the first derivation.
5179
7ab4d95a
AC
51802011-08-04 Tristan Gingold <gingold@adacore.com>
5181
5182 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
5183 instead of the locally imported procedure.
5184 * s-taprop-mingw.adb (Enter_Task): Ditto.
5185 * s-valrea.adb (Scan_Real): Ditto.
5186 * s-imgrea.adb (Set_Image_Real): Ditto.
5187 * s-flocon.ads: Make the package pure.
5188
51892011-08-04 Thomas Quinot <quinot@adacore.com>
5190
5191 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
5192 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
5193 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
5194 New subprogram, moved here from...
5195 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
5196 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
5197 rewriting of the last argument into a procedure call statement here...
5198 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
5199 instead.
5200
52012011-08-04 Thomas Quinot <quinot@adacore.com>
5202
5203 * par_sco.adb: Minor reformatting.
5204
51c400f5
AC
52052011-08-04 Robert Dewar <dewar@adacore.com>
5206
5207 * erroutc.adb: Minor reformatting.
5208
52092011-08-04 Thomas Quinot <quinot@adacore.com>
5210
5211 * par_sco.adb: Comment update.
5212
52132011-08-04 Tristan Gingold <gingold@adacore.com>
5214
5215 * s-flocon.ads: New file.
5216 * g-flocon.ads: Now a renaming of s-flocon.
5217 * Makefile.rtl: Add s-flocon.o
5218
6a49f110
AC
52192011-08-04 Javier Miranda <miranda@adacore.com>
5220
5221 * exp_strm.adb (Build_Array_Input_Function): if the array type is
5222 constrained, do not attempt to build a subtype of it.
5223
52242011-08-04 Yannick Moy <moy@adacore.com>
5225
5226 * errout.ads Change comments: remove 'R'M as an example where quotes
5227 are needed; add ALFA as another case where quotes are not needed
5228 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
5229 case where quotes are not needed.
5230 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
5231 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
5232 Remove all occurrences of 'A'L'F'A
5233
52342011-08-04 Ed Schonberg <schonberg@adacore.com>
5235
5236 * sem_ch13.adb: check legality of invariant pragma.
5237
a4640a39
AC
52382011-08-04 Eric Botcazou <ebotcazou@adacore.com>
5239
5240 * bindgen.adb: Add comments.
5241
52422011-08-04 Yannick Moy <moy@adacore.com>
5243
5244 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
5245 synthesized flag.
5246 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
5247 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
5248
52492011-08-04 Robert Dewar <dewar@adacore.com>
5250
5251 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
5252 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
5253 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
5254
39ade2f9
AC
52552011-08-04 Thomas Quinot <quinot@adacore.com>
5256
5257 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
5258
52592011-08-04 Thomas Quinot <quinot@adacore.com>
5260
5261 PR ada/47880
5262 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
5263 allocated object.
5264
52652011-08-04 Robert Dewar <dewar@adacore.com>
5266
5267 * einfo.ads, exp_ch4.adb: Minor reformatting.
5268
52692011-08-04 Jerome Lambourg <lambourg@adacore.com>
5270
5271 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
5272
7efc3f2d
AC
52732011-08-04 Ed Schonberg <schonberg@adacore.com>
5274
5275 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
5276 type in all cases to compute list of primitive operations, because full
5277 view may be an itype that is not attached to the list of declarations.
5278
52792011-08-04 Eric Botcazou <ebotcazou@adacore.com>
5280
5281 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
5282 library has already been finalized.
5283 (Gen_Adafinal_C): Likewise.
5284 (Gen_Adainit_Ada): Generate an early return if the library has
5285 already been elaborated.
5286 (Gen_Adainit_C): Likewise.
5287 (Gen_Output_File_Ada): Generate an elaboration flag.
5288 (Gen_Output_File_C): Likewise.
5289
f65df609
HK
52902011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5291
5292 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
5293 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
5294 built in the first place.
5295 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
5296 for CodePeer because Finalize_Address was not built to begin with.
5297 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
5298
a0fb8fe8
AC
52992011-08-04 Pascal Obry <obry@adacore.com>
5300
5301 * adaint.c (__gnat_tmp_name): Use current process id to create temp
5302 filenames, this ensures unicity of filenames across processes.
5303
53042011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5305
5306 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
5307 Raise_Controlled to Raise_From_Controlled_Operation. Update the
5308 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
5309 Add False as the actual to From_Abort in the generated call to
5310 Raise_From_Controlled_Operation.
5311
53122011-08-04 Jerome Lambourg <lambourg@adacore.com>
5313
5314 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
5315 so that the ali file name can be retrieved from outside of this package.
5316 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
5317 doing nothing in the general case, but used to update the object file
5318 timestamp if directly generated by the backend.
5319 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
5320 to a later time than the ali file one.
5321
9534ab17
AC
53222011-08-04 Yannick Moy <moy@adacore.com>
5323
5324 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
5325 entities whose body contains an Annotate pragma which forces formal
5326 proof on this body.
5327 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
5328 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
5329 Mark_Non_ALFA_Subprogram to pass in a message and node.
5330 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
5331 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
5332 surrounding subprogram.
5333 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
5334 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
5335 as not in ALFA is annotated with Formal_Proof being On, then an error
5336 is issued based on the additional parameters for message and node.
5337 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
5338 * gcc-interface/Make-lang.in: Update dependencies.
5339
53402011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5341
5342 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
5343 Finalize_Address when CodePeer is enabled.
5344
53452011-08-04 Pascal Obry <obry@adacore.com>
5346
5347 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
5348 the latter returns a pointer to a static buffer which is deallocated
5349 at the end of the routine.
5350
5c0e97dd
AC
53512011-08-04 Yannick Moy <moy@adacore.com>
5352
5353 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
5354 after index creation; mark unconstrained base array type generated as
5355 being in/not in ALFA as well
5356 (Make_Index): mark subtype created as in/not in ALFA
5357 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
5358 over a loop as in/not in ALFA, depending on its type and form of loop
5359 iteration.
5360
53612011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5362
5363 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
5364 directly to False on .NET and JVM.
5365
7a93c64b
YM
53662011-08-04 Yannick Moy <moy@adacore.com>
5367
5368 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
5369 constraint that subtype must come from source code to be in ALFA, so
5370 that anonymous subtypes can be in ALFA too.
5371
e9a1ed9b
YM
53722011-08-04 Yannick Moy <moy@adacore.com>
5373
5374 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
5375 reference for ALFA mode.
5376 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
5377 procedure public so as to use it from formal verification back-end.
5378
8e293fbd
AC
53792011-08-04 Jerome Lambourg <lambourg@adacore.com>
5380
5381 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
5382 invalid checks of the Parameter, making Remove_Switch not working
5383 correctly.
5384
53852011-08-04 Arnaud Charlet <charlet@adacore.com>
5386
5387 * targparm.ads: Update header: no run-time exception is needed on this
5388 file.
5389
53902011-08-04 Vincent Celier <celier@adacore.com>
5391
5392 * a-fihema.adb: Use System.IO instead of GNAT.IO
5393
53942011-08-04 Thomas Quinot <quinot@adacore.com>
5395
5396 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
5397 are forbidden in Compiler_Unit mode.
5398
cfae2bed
AC
53992011-08-04 Robert Dewar <dewar@adacore.com>
5400
5401 * sem_util.adb: Minor reformatting.
5402
54032011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5404
5405 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
5406 library-level finalizers.
5407 (Gen_Finalize_Library_C): Update the import string for library-level
5408 finalizers.
5409 (Gen_Finalize_Library_Defs_C): Update the definition name of a
5410 library-level finalizer.
5411 * exp_ch7.adb: Remove with and use clauses for Stringt.
5412 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
5413 Spec_Decl. Add local variable Body_Id. The names of library-level
5414 finalizers are now manually fully qualified and are no longer external.
5415 A single name is now capable of servicing .NET, JVM and non-VM targets.
5416 Pragma Export is no longer required to provide visibility for the name.
5417 (Create_Finalizer_String): Removed.
5418 (New_Finalizer_Name): New routine which mimics New_..._Name.
5419
01f0729a
AC
54202011-08-04 Eric Botcazou <ebotcazou@adacore.com>
5421
5422 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
5423 elaboration counter to Standard_Short_Integer.
5424 * sem_util.adb (Build_Elaboration_Entity): Likewise.
5425 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
5426 (Gen_Elab_Externals_C): Likewise.
5427
54282011-08-04 Ed Falis <falis@adacore.com>
5429
5430 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
5431 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
5432 system-vxworks-mips.ads, system-vxworks-x86.ads
5433 (Always_Compatible_Rep): set to False for all VxWorks targets.
5434
2c1b72d7
AC
54352011-08-04 Robert Dewar <dewar@adacore.com>
5436
5437 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
5438 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
5439 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
5440 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
5441 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
5442 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
5443 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
5444 Minor reformatting and code reorganization.
5445
54462011-08-04 Emmanuel Briot <briot@adacore.com>
5447
5448 * projects.texi: Added doc for aggregate projects.
5449
824e9320
AC
54502011-08-04 Emmanuel Briot <briot@adacore.com>
5451
5452 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
5453 Add support for overriding the Project_Path in aggregate projects.
5454
54552011-08-04 Robert Dewar <dewar@adacore.com>
5456
5457 * a-cofove.ads: Minor reformatting.
5458
54592011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5460
5461 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
5462 on the generated code.
5463 (Build_Finalize_Statements): Update the comment on the generated code.
5464 (Build_Initialize_Statements): Update the comment on the generated code.
5465 (Build_Object_Declarations): Add local variable Result. The object
5466 declarations are now built in sequence.
5467 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
5468 RE_Unit_Table.
5469
54702011-08-04 Robert Dewar <dewar@adacore.com>
5471
5472 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
5473
54742011-08-04 Eric Botcazou <ebotcazou@adacore.com>
5475
5476 * einfo.ads (Elaboration_Entity): Document new definition and use.
5477 (Elaboration_Entity_Required): Adjust to above change.
5478 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
5479 * exp_ch12.adb: And with and use for Snames.
5480 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
5481 * exp_util.adb (Set_Elaboration_Flag): Likewise.
5482 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
5483 <Check_Unit_Name>: Deal with N_Expanded_Name.
5484 <Attribute_Elaborated>: Extend to all unit names.
5485 * sem_elab.adb: And with and use for Uintp.
5486 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
5487 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
5488 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
5489 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
5490 from Gen_Adainit_Ada.
5491 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
5492 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
5493 case, do not call System.Standard_Library.Adafinal; instead call
5494 finalize_library if needed.
5495 (Gen_Adafinal_C): Likewise.
5496 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
5497 non-main program case.
5498 (Gen_Adainit_C): Generate a couple of external declarations here.
5499 In the main program case, set SSL.Finalize_Library_Objects.
5500 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
5501 (Gen_Elab_Calls_C): Likewise.
5502 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
5503 (Gen_Finalize_Library_C): Likewise. Generate a full function.
5504 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
5505 objects here.
5506 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
5507 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
5508 Gen_Adafinal_Ada.
5509 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
5510 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
2c7f9cc0 5511 of external declarations. Call Gen_Finalize_Library_C.
824e9320 5512
316d9d4f
EB
55132011-08-04 Emmanuel Briot <briot@adacore.com>
5514
5515 * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains,
5516 Compute_Compilation_Phases): new subprogram.
5517 (Builder_Data, Builder_Project_Tree_Data): new subprogram and type
5518 The number of mains as well as the various compilation phases that
5519 need to be run are now project tree specific, since various
5520 aggregated trees might have different requirements. In particular,
5521 they do not all require bind or link phases.
5522
9434c32e
EB
55232011-08-04 Emmanuel Briot <briot@adacore.com>
5524
5525 * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb
5526 (Project_Tree_Appdata): New type.
5527 It is now possible to associate application-specific data to a project
5528 tree. In particular, this is used in the gprbuild builder to avoid a
5529 number of global tables and htables, especially now that there can be
5530 several project trees loaded at once because of aggregate projects.
5531 (Debug_Name): new procedure.
5532 * projects.texi: Clarify syntax of "**" for Source_Dirs
5533
41ba34db
EB
55342011-08-03 Emmanuel Briot <briot@adacore.com>
5535
5536 * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts
5537 the "roots" for a main.
5538 (Fill_From_Project): add support for aggregate projects. Main units
5539 in aggregated projects are now automatically added in the list of
5540 files to build (although this fails later on in gprbuild, because
5541 these files are not using the root proejct tree, so this needs
5542 further cleanup)
5543 * gcc-interface/Make-lang.in: Update dependencies.
5544
fccd42a9
AC
55452011-08-03 Yannick Moy <moy@adacore.com>
5546
5547 * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean
5548 conditional expression in ALFA.
5549 * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean
5550 expressions as not in ALFA.
5551
55522011-08-03 Robert Dewar <dewar@adacore.com>
5553
5554 * a-cofove.adb: Minor reformatting.
5555
55562011-08-03 Emmanuel Briot <briot@adacore.com>
5557
5558 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads
5559 (Insert_Project_Sources, Insert_withed_Sources_For): moved from the
5560 gprbuild sources.
5561 These packages are more logically placed in the Queue package, since
5562 they manipulate the queue. It is also likely that they can be adapted
5563 for gnatmake, thus sharing more code.
5564 (Finish_Program, Fail_Program): moved from the gprbuild sources, so
5565 that we could move the above.
5566
55672011-08-03 Emmanuel Briot <briot@adacore.com>
5568
5569 * errutil.adb (Finalize): clean up the list of error messages on exit.
5570 Calling this subprogram multiple times will no longer show duplicate
5571 error messages on stderr.
5572
55732011-08-03 Emmanuel Briot <briot@adacore.com>
5574
5575 * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter
5576 Getopt_Switches when we have already define a command line
5577 configuration.
5578
5e8c8e44
YM
55792011-08-03 Yannick Moy <moy@adacore.com>
5580
5581 * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not
5582 in ALFA. Instead, they are considered as assertions to prove.
5583 * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such
5584 nodes as not in ALFA. Instead, include conditional expressions in ALFA
5585 if they have no ELSE part, or if they occur in pre- and postconditions,
5586 where the Condition cannot have side-effects in ALFA
5587 (Analyze_Membership_Op): do not mark such nodes as not in ALFA
5588 (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA.
5589 Instead, include type conversion between scalar types in ALFA.
5590 * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA
5591 if-and-only-if its type is in ALFA.
5592
5ffe0bab
AC
55932011-08-03 Thomas Quinot <quinot@adacore.com>
5594
5595 * scos.adb, get_scos.adb, put_scos.adb
5596 New code letter for decisions: G (entry guard)
5597 * par_sco.adb
5598 (Traverse_Subprogram_Body): Rename to...
5599 (Traverse_Subprogram_Or_Task_Body): New subrpogram.
5600 (Traverse_Protected_Body): New subprogram
5601 (Traverse_Declarations_Or_Statements): Add traversal of task bodies,
5602 protected bodies and entry bodies.
5603
56042011-08-03 Yannick Moy <moy@adacore.com>
5605
5606 * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure
5607 entities with get/set subprograms, which is set on procedure entities
5608 generated by the compiler for a postcondition.
5609 * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures
5610 * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the
5611 entity for a declaration
5612 (Get_Unique_Entity_For_Decl): new function returning an entity which
5613 represents a declaration, so that matching spec and body have the same
5614 entity.
5615
56162011-08-03 Robert Dewar <dewar@adacore.com>
5617
5618 * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads,
5619 a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting
5620
56212011-08-03 Yannick Moy <moy@adacore.com>
5622
5623 * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram
5624 library-level because retriction No_Implicit_Dynamic_Code in the
5625 front-end prevents its definition as a local subprogram
5626 (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File,
5627 for reuse in other contexts
5628 (Traverse_Declarations_Or_Statements,
5629 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
5630 Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these
5631 procedures take a callback parameter to be called on all declarations
5632 * lib-xref.ads
5633 (Traverse_All_Compilation_Units): new generic function to traverse a
5634 compilation unit and call a callback parameter on all declarations
5635
f9ad6b62
AC
56362011-08-03 Javier Miranda <miranda@adacore.com>
5637
5638 * sem_prag.adb (Process_Interface_Name): Allow duplicated export names
5639 in Java since they are always enclosed in a namespace that
5640 differentiates them, and overloaded entities are supported by the VM.
5641
56422011-08-03 Ed Schonberg <schonberg@adacore.com>
5643
5644 * checks.adb (Determine_Range): If a computed bound of an operation is
5645 outside the range of the base type of the expression, and overflow
5646 checks are enabled, the result is unknown and cannot be used for any
5647 subsequent constant folding.
5648 * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are
5649 unknown, so is the result of the comparison.
5650
56512011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
5652
5653 * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal
5654 From_Abort. When finalization was triggered by an abort, propagate
5655 Standard'Abort_Signal rather than Program_Error.
5656 * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal
5657 From_Abort.
5658 * a-except.adb (Raise_From_Controlled_Operation): Add new formal
5659 From_Abort. When finalization was triggered by an abort, propagate
5660 Standard'Abort_Signal rather than Program_Error.
5661 * a-except.ads:(Raise_From_Controlled_Operation): Add new formal
5662 From_Abort.
5663 * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable
5664 Abort_Id. Update the calls to Build_Object_Declarations and
5665 Build_Raise_Statement to include Abort_Id.
5666 (Build_Adjust_Statements): New local variable Abort_Id. Update the
5667 calls to Build_Object_Declarations and Build_Raise_Statement to include
5668 Abort_Id.
5669 (Build_Finalize_Statements): New local variable Abort_Id. Update the
5670 calls to Build_Object_Declarations and Build_Raise_Statement to include
5671 Abort_Id.
5672 (Build_Components): Create an entity for Abort_Id when exceptions are
5673 allowed on the target.
5674 (Build_Finalizer): New local variable Abort_Id.
5675 (Build_Initialize_Statements): New local variable Abort_Id. Update the
5676 calls to Build_Object_Declarations and Build_Raise_Statement to include
5677 Abort_Id.
5678 (Build_Object_Declarations): Add new formal Abort_Id. Create the
5679 declaration of flag Abort_Id to preserve the original abort status
5680 before finalization code is executed.
5681 (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to
5682 runtime routine Raise_From_Controlled_Operation.
5683 (Create_Finalizer): Update the call to Build_Raise_Statement to include
5684 Abort_Id. Update the call to Build_Object_Declarations to include
5685 Abort_Id. Update the layout of the finalizer body.
5686 (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort.
5687 (Process_Transient_Objects): New local variable Abort_Id. Remove the
5688 clunky code to create all flags and objects related to
5689 exception propagation and replace it with a call to
5690 Build_Object_Declarations. Update the call to Build_Raise_Statement to
5691 include Abort_Id.
5692 * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec.
5693 Add new formal Abort_Id and associated comment on its use.
5694 (Build_Raise_Statement): Add new formal Abort_Id and associated comment
5695 on its use.
5696 * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id.
5697 Remove the clunky code to create all flags and objects related to
5698 exception propagation and replace it with a call to
5699 Build_Object_Declarations. Update the call to Build_Raise_Statement.
5700
57012011-08-03 Eric Botcazou <ebotcazou@adacore.com>
5702
5703 * s-tassta.adb: Fix minor typos.
5704
57052011-08-03 Robert Dewar <dewar@adacore.com>
5706
5707 * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb,
5708 lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting.
5709
1cdfa9be
AC
57102011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
5711
5712 * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion
5713 to packages. This ensures that the finalizer body will not end up
5714 inside the freeze node.
5715 (Process_Declarations): Add code to detect whether a freeze node has a
5716 nested finalization collection.
5717
57182011-08-03 Pascal Obry <obry@adacore.com>
5719
5720 * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005.
5721 (Current_Session): Return a not null access to Session_Type.
5722 (Default_Session): Likewise.
5723
243cae0a
AC
57242011-08-03 Robert Dewar <dewar@adacore.com>
5725
5726 * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb,
5727 exp_ch3.adb, exp_ch3.ads: Minor reformatting.
5728
57292011-08-03 Pascal Obry <obry@adacore.com>
5730
5731 * g-awk.ads: Minor comment fix.
5732
57332011-08-03 Sergey Rybin <rybin@adacore.com>
5734
5735 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
5736 the tree structure related to discriminant constraints.
5737 Original_Discriminant cannot be used any more for computing the
5738 defining name for the reference to a discriminant.
5739
57402011-08-03 Ed Schonberg <schonberg@adacore.com>
5741
5742 * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the
5743 function is not visibly tagged, this is not a dispatching call and
5744 therfore is not Tag_Indeterminate, even if the function is marked as
5745 dispatching on result.
5746
f553e7bc
AC
57472011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
5748
5749 * exp_ch13.adb: Add with and use clauses for Restrict and Rident.
5750 (Expand_N_Free_Statement): Add a guard to protect against run-times
5751 which do not support controlled types.
5752 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect
5753 against run-times which do not support controlled types.
5754 * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect
5755 against run-times which do not support controlled types.
5756 * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect
5757 against run-times which do not support controlled types.
5758 * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to
5759 protect against run-times which do not support controlled types.
5760
57612011-08-03 Eric Botcazou <ebotcazou@adacore.com>
5762
5763 * exp_intr.adb: Put back with and use clauses for Exp_Ch11.
5764 (Expand_Unc_Deallocation): Expand the AT_END handler at the very end.
5765
e4982b64
AC
57662011-08-03 Ed Schonberg <schonberg@adacore.com>
5767
5768 * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is
5769 modified in the source, to prevent spurious warnings when compiling
5770 with -gnatg.
5771
57722011-08-03 Thomas Quinot <quinot@adacore.com>
5773
5774 * a-except-2005.adb: Minor reformatting.
5775
57762011-08-03 Ed Schonberg <schonberg@adacore.com>
5777
5778 * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit
5779 is a renaming declaration in the private part of a package, do not emit
5780 a warning that the with_clause could be moved because the renaming may
5781 be used in the body or in a child unit.
5782
57832011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
5784
5785 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
5786 Propagate the Comes_From_Source attribute from the original return
5787 object to the renaming.
5788
57892011-08-03 Jose Ruiz <ruiz@adacore.com>
5790
5791 * exp_ch7.adb (Build_Raise_Statement): Do not call
5792 Raise_From_Controlled_Operation when this routine is not present in
5793 the run-time library.
5794 (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time
5795 libraries (Ravenscar), tasks are non-terminating, and protected objects
5796 and tasks can only appear at library level, so we do not want
5797 finalization of protected objects nor tasks.
5798 * exp_intr.adb: Minor clarification in comment.
5799 bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada,
5800 Gen_Output_File_C): Remove references to finalization of library-level
5801 objects when using restricted run-time libraries.
5802
58032011-08-03 Ed Schonberg <schonberg@adacore.com>
5804
5805 * sem_ch3.adb (Build_Discriminant_Constraints): Set
5806 Original_Discriminant only if the parent type is a generic formal.
5807
deb8dacc
HK
58082011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
5809
5810 * exp_ch13.adb: Add with and use clause for Targparm;
5811 (Expand_N_Free_Statement): Prevent the generation of a custom
5812 Deallocate on .NET/JVM targets since this requires pools and address
5813 arithmetic.
5814 * exp_ch4.adb (Expand_Allocator_Expression): When compiling for
5815 .NET/JVM targets, attach the newly allocated object to the access
5816 type's finalization collection. Do not generate a call to
5817 Set_Finalize_Address_Ptr on .NET/JVM because this routine does not
5818 exist in the runtime.
5819 (Expand_N_Allocator): When compiling for .NET/JVM targets, do not
5820 create a custom Allocate for object that do not require initialization.
5821 Attach a newly allocated object to the access type's finalization
5822 collection on .NET/JVM.
5823 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for
5824 assignment of controlled types on .NET/JVM. The two hidden pointers
5825 Prev and Next and stored and later restored after the assignment takes
5826 place.
5827 * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized
5828 kludge for .NET/JVM to recognize a particular piece of code coming from
5829 Heap_Management and change the call to Finalize into Deep_Finalize.
5830 * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of
5831 finalization collections on .NET/JVM only for types derived from
5832 Controlled. Separate the association of storage pools with a collection
5833 and only allow it on non-.NET/JVM targets.
5834 (Make_Attach_Call): New routine.
5835 (Make_Detach_Call): New routine.
5836 (Process_Object_Declarations): Suppress the generation of
5837 build-in-place return object clean up code on .NET/JVM since it uses
5838 pools.
5839 * exp_ch7.ads (Make_Attach_Call): New routine.
5840 (Make_Detach_Call): New routine.
5841 * exp_intr.adb Add with and use clause for Targparm.
5842 (Expand_Unc_Deallocation): Detach a controlled object from a collection
5843 on .NET/JVM targets.
5844 * rtsfind.ads: Add entries RE_Attach, RE_Detach and
5845 RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table.
5846 * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special
5847 names used in finalization.
5848
58492011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
5850
5851 * a-fihema.adb: Add with and use clauses for System.Soft_Links.
5852 (Attach, Detach): Lock the current task when chaining an object onto a
5853 collection.
5854
df3e68b1
HK
58552011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
5856
5857 * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation):
5858 Rewritten to create the message strings when the exception is not
5859 raised by an abort during finalization.
5860 * a-except.ads, a-except-2005.ads: Add pragma Export for procedure
5861 Raise_From_Controlled_Operation and update its associated comment.
5862 * a-fihema.ads, a-fihema.adb: New GNAT unit.
5863 Ada.Finalization.Heap_Management provides key functionality
5864 associated with controlled objects on the heap, their creation,
5865 finalization and reclamation. Type Finalization_Collection is
5866 effectively a wrapper which sits ontop of a storage pool and performs
5867 all necessary bookkeeping for all the objects it contains. Each
5868 access-to-controlled or access-to-class-wide type receives a collection
5869 as part of its expansion. The compiler generates buffer code and
5870 invokes Allocate / Deallocate to create and destroy allocated
5871 controlled objects.
5872 * a-finali.adb ("="): Removed.
5873 * a-finali.ads ("="): Removed. Controlled types no longer carry hidden
5874 fields Prev and Next.
5875 * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer.
5876 A library unit with at least one controlled object on the library level
5877 has a special finalizer which is invoked by the binder. To signal this,
5878 ali files carry field PF.
5879 * ali.ads: New field in type Unit_Record called Has_Finalizer. Add
5880 associated comment on field usage.
5881 * a-tags.adb (Get_RC_Offset): Removed.
5882 (Needs_Finalization): New routine.
5883 * a-tags.ads: Update the structure of the GNAT dispatch tables.
5884 Dispatch tables now carry field Needs_Finalization which provides
5885 runtime indication whether a type is controlled or has controlled
5886 components or both. Remove field RC_Offset.
5887 (Get_RC_Offset): Removed along with its associated pragma Export.
5888 Since tagged types with controlled components no longer carry hidden
5889 field _controller, the special mechanism to retrieve its location is no
5890 longer needed.
5891 (Needs_Finalization): New routine.
5892 * atree.ads, atree.adb (Elist24): New routine.
5893 (Set_Elist24): New routine.
5894 * atree.h: Add a define clause for Elist24.
5895 * bindgen.adb New library-level variable Lib_Final_Built.
5896 (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the
5897 presence of a VM target, the routine generates calls to the proper
5898 library finalization routine.
5899 (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM
5900 targets. Set the correct library finalization routine depending on
5901 whether the library has controlled objects or this is a VM compilation.
5902 (Gen_Finalize_Library_Ada): New routine. This procedure generates calls
5903 to library-level finalizers of compiled units in reverse order of
5904 elaboration. It also produces exception management code and reraises a
5905 potential exception after all units have been finalized.
5906 (Gen_Finalize_Library_C): New routine. This procedure generates calls to
5907 library-level finalizers of compiled units in reverse order of
5908 elaboration.
5909 (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the
5910 definitions of all library-level finalizers available to the compilation
5911 (Gen_Main_Ada): Directly call Adafinal which now contails all target
5912 dependent code.
5913 (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call
5914 System.Standard_Library.Adafinal directly. If the library needs
5915 finalization actions, create the sequence of finalization calls.
5916 (Gen_Output_File_Ada): Alphabetize local variables and constants.
5917 Generate a with clause for System.Soft_Links when compiling for a VM.
5918 Remove the code which imports System.Standard_Library.Adafinal as
5919 Do_Finalize. Generate the library finalization routine.
5920 (Gen_Output_File_C): Add new local constant Needs_Library_Finalization.
5921 If the library needs finalization actions, create all the definitions
5922 of library- level finalizers.
5923 (Has_Finalizer): New routine. Determines whether at least one compiled
5924 unit has a library-level finalizer.
5925 Add type Qualification_Mode.
5926 (Set_Unit_Name): Add a formal which controls the replacement of a dot.
5927 * einfo.adb: New usage of field 15 as Return_Flag.
5928 Remove Finalization_Chain_Entity from the usages of field 19.
5929 Remove Associated_Final_Chain from the usages of field 23.
5930 New usage of field 23 as Associated_Collection.
5931 New usage of field 24 as Finalizer.
5932 New usage of flag 252 as Is_Processed_Transient.
5933 (Associated_Final_Chain): Removed.
5934 (Associated_Collection): New routine.
5935 (Finalization_Chain_Entity): Removed.
5936 (Finalizer): New routine.
5937 (Is_Finalizer): New routine.
5938 (Is_Processed_Transient): New routine.
5939 (Return_Flag): New routine.
5940 (Set_Associated_Final_Chain): Removed.
5941 (Set_Associated_Collection): New routine.
5942 (Set_Finalization_Chain_Entity): Removed.
5943 (Set_Finalizer): New routine.
5944 (Set_Is_Processed_Transient): New routine.
5945 (Set_Return_Flag): New routine.
5946 (Write_Entity_Flags): Include Is_Processed_Transient to the list of
5947 displayed flags.
5948 (Write_Field8_Name): Alphabetize the output.
5949 (Write_Field11_Name): Alphabetize the output.
5950 (Write_Field12_Name): Alphabetize the output.
5951 (Write_Field13_Name): Alphabetize the output.
5952 (Write_Field14_Name): Alphabetize the output.
5953 (Write_Field15_Name): Alphabetize the output.
5954 (Write_Field16_Name): Alphabetize the output.
5955 (Write_Field17_Name): Alphabetize the output.
5956 (Write_Field18_Name): Alphabetize the output.
5957 (Write_Field19_Name): Alphabetize the output. Remove the output of
5958 Finalization_Chain_Entity.
5959 (Write_Field20_Name): Alphabetize the output.
5960 (Write_Field21_Name): Alphabetize the output.
5961 (Write_Field22_Name): Alphabetize the output.
5962 (Write_Field23_Name): Alphabetize the output. Remove the output of
5963 Associated_Final_Chain. Add output for Associated_Collection.
5964 (Write_Field24_Name): Alphabetize the output.
5965 (Write_Field25_Name): Add output for Finalizer.
5966 (Write_Field26_Name): Alphabetize the output.
5967 (Write_Field27_Name): Alphabetize the output.
5968 (Write_Field28_Name): Alphabetize the output.
5969 * einfo.ads: Add new field description for Associated_Collection and
5970 its uses in nodes.
5971 Remove Associated_Final_Chain and its uses in nodes.
5972 Remove Finalization_Chain_Entity and its uses in nodes.
5973 Add new field description for Finalizer and its uses in nodes.
5974 Add new synthesized attribute Is_Finalizer.
5975 Add new flag description for Is_Processed_Transient and its uses in
5976 nodes.
5977 Add new field description for Return_Flag and its uses in nodes.
5978 (Associated_Final_Chain): Removed along with its pragma Inline.
5979 (Associated_Collection): New routine and pragma Inline.
5980 (Finalization_Chain_Entity): Removed along with its pragma Inline.
5981 (Finalizer): New routine and pragma Inline.
5982 (Is_Finalizer): New routine and pragma Inline.
5983 (Is_Processed_Transient): New routine and pragma Inline.
5984 (Return_Flag): New routine and pragma Inline.
5985 (Set_Associated_Final_Chain): Removed along with its pragma Inline.
5986 (Set_Associated_Collection): New routine and pragma Inline.
5987 (Set_Finalization_Chain_Entity): Removed along with its pragma Inline.
5988 (Set_Finalizer): New routine and pragma Inline.
5989 (Set_Is_Processed_Transient): New routine and pragma Inline.
5990 (Set_Return_Flag): New routine and pragma Inline.
5991 * exp_aggr.adb: Alphabetize subprograms.
5992 (Build_Array_Aggr_Code): Remove formal Flist and its associated comment.
5993 (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their
5994 associated comments. Remove local variables External_Final_List and
5995 Attach.
5996 Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to
5997 Ancestor. Remove the retrieval of finalization lists. Update the call to
5998 Make_Adjust_Call.
5999 (Convert_Aggr_In_Allocator): Remove the retrieval of finalization
6000 lists. Update the call to Late_Expansion.
6001 (Convert_Aggr_In_Assignment): Update the call to Late_Expansion.
6002 (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion.
6003 (Gen_Assign): Remove the retrieval of the finalization list used to
6004 build the assignment. Update the calls to Make_Init_Call and
6005 Make_Adjust_Call.
6006 (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions.
6007 Remove the mechanism to determine attachment levels and finalization
6008 list retrieval. Remove the processing for coextensions.
6009 (Init_Controller): Removed. Controllers no longer exist.
6010 (Late_Expansion): Remove formals Flist and Obj along with their
6011 associated comments. Update the calls to Build_Record_Aggr_Code and
6012 Build_Array_Aggr_Code.
6013 * exp_ch13.adb (Expand_N_Free_Statement): New routine.
6014 (Expand_N_Freeze_Entity): Add special processing for finalizers which
6015 appear in entry bodies, protected subprograms and task bodies.
6016 * exp_ch13.ads (Expand_N_Free_Statement): New routine.
6017 * exp_ch3.adb (Add_Final_Chain): Removed.
6018 (Build_Array_Init_Proc): Alphabetize local variables.
6019 (Build_Assignment): Alphabetize local variables. Update the call to
6020 Maked_Adjust_Call.
6021 (Build_Class_Wide_Master): Rename local variables to better reflect
6022 their role.
6023 (Build_Discriminant_Assignments): Code reformatting.
6024 (Build_Init_Call_Thru): Code reformatting.
6025 (Build_Init_Procedure): Code reformatting. Generate a special version
6026 of Deep_Finalize which is capable of finalizing all initialized
6027 components and ignore the rest.
6028 (Build_Init_Statements): Rename local variables to better reflect their
6029 role.
6030 Reimplement the mechanism to include the creation and update of an index
6031 variable called a "counter". It is used as a bookmark for tracing
6032 initialized and non-initialized components.
6033 (Build_Initialization_Call): Remove local variable Controller_Typ.
6034 Alphabetize all local variables. Remove the initialization of the
6035 record controller and update the call to Make_Init_Call.
6036 (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent.
6037 New local variable Counter.
6038 (Constrain_Array): Alphabetize.
6039 (Expand_Freeze_Array_Type): Create a collection instead of a
6040 finalization list.
6041 (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive
6042 Finalize_Address which is used in conjunction with allocated controlled
6043 objects.
6044 (Expand_N_Object_Declaration): Remove the creation of a finalization
6045 list for anonymous access types. Update the calls to Make_Init_Call and
6046 Make_Adjust_Call.
6047 (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the
6048 retrieval of finalization lists. Remove the expansion of the record
6049 controller. Create TSS primitive Finalize_Address used in conjunction
6050 with controlled objects on the heap. Create finalization collections
6051 for access-to-controlled record components.
6052 (Expand_Record_Controller): Removed.
6053 (Freeze_Type): Remove the freezing of record controllers. Freezing of
6054 class-wide types now requires additional processing. Create
6055 finalization collections for access-to-controlled types.
6056 (Increment_Counter): New routine.
6057 (Make_Counter): New routine.
6058 (Make_Eq_If): Remove the mention of Name_uController.
6059 (Make_Predefined_Primitive_Specs): There is no longer need to skip
6060 types coming from System.Finalization_Root.
6061 (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles.
6062 (Predefined_Primitive_Bodies): There is no longer need to skip types
6063 coming from System.Finalization_Root.
6064 (Stream_Operation_OK): Do not generate stream routines for
6065 type Ada.Finalization.Heap_Management.Finalization_Collection.
6066 * exp_ch3.ads: Alphabetize subprograms.
6067 * exp_ch4.adb: Remove with and use clause for Sem_Ch8.
6068 Add with and use clause for Lib.
6069 (Complete_Coextension_Finalization): Removed.
6070 (Complete_Controlled_Allocation): New routine. Create a finalization
6071 collection for anonymous access-to-controlled types. Create a custom
6072 Allocate which interfaces with the back end and the machinery in
6073 Heap_Management.
6074 (Expand_Allocator_Expression): Add necessary calls to
6075 Complete_Controlled_Allocation. Remove the retrieval of finalization
6076 lists. Update the calls to Make_Adjust_Call. Generate a call to
6077 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
6078 the associated collection.
6079 (Expand_N_Allocator): Remove the processing for dynamic coextensions.
6080 Code clean up. Remove the retrieval of finalization lists and
6081 attachment levels.
6082 Update the call to Make_Init_Call. Generate a call to
6083 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
6084 the associated collection.
6085 (Get_Allocator_Final_List): Removed. Finalization lists are not
6086 available.
6087 (Suitable_Element): Remove the mention of Name_uController.
6088 * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp.
6089 (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of
6090 the left hand side, carry out the assignment and adjust the left hand
6091 side.
6092 * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed.
6093 (Add_Collection_Actual_To_Build_In_Place_Call): New routine.
6094 (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to
6095 BIP_Collection and BIPcollection.
6096 (Build_Heap_Allocator): New routine used to allocate the return object
6097 of a build-in-place function onto a collection.
6098 (Expand_Ctrl_Function_Call): Moved from Exp_Ch7.
6099 (Expand_Call): Do not replace direct calls to Deep routines with their
6100 aliases.
6101 (Expand_N_Extended_Return_Statement): Give all variables shorter names
6102 and update their occurrences. Add a special return flag to monitor the
6103 [ab]normal execution of the function. The flag is set right before the
6104 return statement.
6105 Rewrite the mechanism used to allocate a build-in-place return object
6106 on the heap or on a storage pool.
6107 (Is_Direct_Deep_Call): New routine.
6108 (Make_Build_In_Place_Call_In_Allocator): Add a collection to a
6109 build-in-place function call instead of a final list. Build a call to
6110 Set_Finalize_Address_Ptr to decorate the associated collection.
6111 (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in
6112 order to name the build-in-place function call's result for later
6113 finalization. Add a collection to a build-in-place function call
6114 instead of a final list.
6115 (Make_Build_In_Place_Call_In_Assignment): Add a collection to a
6116 build-in-place function call instead of a final list. Remove the code
6117 which moves one final list and transforms it into the actual in a
6118 nested build-in-place call.
6119 (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a
6120 build-in-place function call instead of a final list.
6121 (Move_Final_List): Removed.
6122 (Needs_BIP_Collection): New routine.
6123 (Needs_BIP_Final_List): Removed.
6124 * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in
6125 enumeration type BIP_Formal_Kind.
6126 Update the related comment.
6127 (Needs_BIP_Collection): New routine.
6128 (Needs_BIP_Final_List): Removed.
6129 * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt
6130 and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the
6131 majority of subprograms in this unit. Add Name_Finalize_Address to
6132 array Name_Of and TSS_Finalize_Address to array Deep_Name_Of.
6133 (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization
6134 statements for an array type.
6135 (Build_Adjust_Statements): Create the adjust statements for a record
6136 type.
6137 (Build_Cleanup_Statements): New routine. A procedure which given any
6138 construct containing asynchronous calls, references to _master, or is a
6139 task body, a task allocation or a protected body produces the necessary
6140 runtime calls to clean up these constructs.
6141 (Build_Exception_Handler): New routine.
6142 (Build_Final_List): Removed.
6143 (Build_Finalization_Collection): New routine. A core procedure which
6144 creates a collection to service heap allocated controlled objects
6145 associated with an access-to-controlled type.
6146 (Build_Finalize_Statements): Create the finalization statements for a
6147 record types.
6148 (Build_Finalizer): New routine. A core procedure which given any
6149 construct with declarations and/or statements detects all objects which
6150 need any type of clean up (controlled objects, protected objects) and
6151 generates all necessary code to clean up the said objects in the proper
6152 order.
6153 (Build_Finalizer_Call): New routine.
6154 (Build_Initialize_Statements): Create the initialization statements for
6155 an array type. The generated routine contains code to finalize partially
6156 initialized arrays.
6157 (Build_Object_Declarations): New routine.
6158 (Build_Raise_Statement): New routine.
6159 (Clean_Simple_Protected_Objects): Removed.
6160 (Controller_Component): Removed.
6161 (Enclosing_Function): New routine.
6162 (Expand_Cleanup_Actions): Create a finalizer for a construct which has
6163 either declarations or statements or both.
6164 (Expand_N_Package_Body): Create a finalizer for a non-generic package.
6165 (Expand_N_Package_Declaration): Create a finalizer for a non-generic
6166 package.
6167 (Find_Final_List): Removed.
6168 (Global_Flist_Ref): Removed.
6169 (In_Finalization_Root): Removed.
6170 (Insert_Actions_In_Scope_Around): Determine the range of the transient
6171 scope in terms of tree nodes. Process all transient variables within
6172 that range.
6173 (Make_Adjust_Call): Rewritten. There is no longer an attach call
6174 generated after the adjust.
6175 (Make_Attach_Call): Removed.
6176 (Make_Call): New routine.
6177 (Make_Clean): Removed.
6178 (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate
6179 build routines.
6180 (Make_Deep_Proc): Rewritten to generate the new profile signature used
6181 in Deep routines.
6182 (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate
6183 build routines.
6184 (Make_Final_Call): Modified to simply create a call to either
6185 Deep_Finalize or Finalize.
6186 (Make_Finalize_Address_Body): New routine.
6187 (Make_Finalize_Address_Stmts): New routine. A function which produces
6188 TSS primitive Finalize_Address used in conjunction with heap allocated
6189 controlled objects.
6190 (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM.
6191 (Make_Init_Call): Rewritten. There is no longer an attach call
6192 generated after initialization.
6193 (Make_Local_Deep_Finalize): New routine.
6194 (Make_Set_Finalize_Address_Ptr_Call): New routine.
6195 (Make_Transient_Block): Remove the finalization list retrieval and
6196 manipulation.
6197 (Needs_Finalization): Moved to Exp_Util.
6198 (Parent_Field_Type): New routine.
6199 (Preprocess_Components): New routine.
6200 (Process_Transient_Objects): New routine.
6201 (Wrap_HSS_In_Block): New routine.
6202 (Wrap_Transient_Declaration): Remove finalization list management and
6203 controller insertion.
6204 (Wrap_Transient_Expression): Code reformatting.
6205 (Wrap_Transient_Statement): Code reformatting.
6206 * exp_ch7.ads (Build_Final_List): Removed.
6207 (Build_Finalization_Collection): New routine.
6208 (Build_Raise_Statement): New routine.
6209 (Controller_Component): Removed.
6210 (Expand_Ctrl_Function_Call): Moved to Exp_Ch6.
6211 (Find_Final_List): Removed.
6212 (In_Finalization_Root): Removed.
6213 (Is_Simple_Protected_Type): Update related comment.
6214 (Make_Adjust_Call): New parameter profile and associated comments.
6215 (Make_Attach_Call): Removed.
6216 (Make_Final_Call): New parameter profile and associated comments.
6217 (Make_Finalize_Address_Body): New routine.
6218 (Make_Init_Call): New parameter profile and associated comments.
6219 (Make_Local_Deep_Finalize): New routine.
6220 (Make_Set_Finalize_Address_Ptr_Call): New routine.
6221 (Needs_Finalization): Moved to Exp_Util.
6222 * exp_ch9.adb (Add_Object_Pointer): Code reformatting.
6223 (Expand_N_Protected_Body): Remove the handling of finalization lists.
6224 (Find_Protection_Type): Moved to Exp_Util.
6225 * exp_disp.adb: Remove with and use clauses for Exp_Ch7.
6226 (Make_DT): Update sequence of dispatch table initialization. Remove the
6227 initialization of field RC_Offset. Add initialization of field Needs_
6228 Finalization.
6229 * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting.
6230 Reimplement how an object is first finalized, then deallocated.
6231 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
6232 Code reformatting.
6233 * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address.
6234 Register TSS_Finalize_Address with type TSS_Names.
6235 * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core
6236 procedure provides the interface between an allocation / deallocation
6237 and the support machinery in Ada.Finalization.Heap_Management.
6238 (Find_Init_Call): Code reformatting.
6239 (Find_Init_Call_In_List): Code reformatting.
6240 (Find_Protection_Type): Moved from Exp_Ch9.
6241 (Find_Prim_Op): Reimplement to add preference of recovered primitive.
6242 (Has_Controlled_Coextensions): Removed.
6243 (Has_Controlled_Objects): New routine.
6244 (In_Library_Level_Package_Body): New routine.
6245 (Insert_Action_After): New routine.
6246 (Is_Finalizable_Transient): New routine. This predicate determines
6247 whether an object declaration is one of the many variants of controlled
6248 transients.
6249 (Is_Null_Access_BIP_Func_Call): New routine.
6250 (Is_Non_BIP_Func_Call): New routine.
6251 (Is_Related_To_Func_Return): New routine.
6252 (Needs_Finalization): Moved from Exp_Ch7.
6253 * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine.
6254 (Find_Protection_Type): Moved from Exp_Ch9.
6255 (Has_Controlled_Coextensions): Removed.
6256 (Has_Controlled_Objects): New routine.
6257 (In_Library_Level_Package_Body): New routine.
6258 (Insert_Action_After): New routine.
6259 (Is_Finalizable_Transient): New routine.
6260 (Is_Null_Access_BIP_Func_Call): New routine.
6261 (Is_Non_BIP_Func_Call): New routine.
6262 (Is_Related_To_Func_Return): New routine.
6263 (Needs_Finalization): Moved from Exp_ch7.
6264 * expander.adb (Expand): Add a case for N_Free_Statement.
6265 * freeze.adb (Freeze_All): Replace the generation of a finalization
6266 list with a collection for access-to-controlled types.
6267 (Freeze_Entity): Code reformatting.
6268 (Freeze_Record_Type): Remove the freezing of a record controller
6269 component.
6270 (Freeze_Subprogram): Code reformatting.
6271 * inline.adb (Cleanup_Scopes): Remove the reset of the scope
6272 finalization list.
6273 * lib-writ.adb (Write_Unit_Information): Output "PF" when a package
6274 has a library-level finalizer.
6275 * lib-writ.ads: Add "PF" to the sequence of unit attributes.
6276 * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed.
6277 * Makefile.rtl: Remove a-filico and s-finimp from the list of object
6278 files. Add a-fihema to the list of object files.
6279 * par-ch4.adb:
6280 Alphabetize the associations in type Is_Parameterless_Attribute.
6281 * rtsfind.ads: Ada.Finalization_List.Controller and
6282 System.Finalization_Implementation are no longer a GNAT unit.
6283 Update the range of type Ada_Finalization_Child. Remove the following
6284 recoverable entities:
2c7f9cc0 6285
df3e68b1
HK
6286 RE_Attach_To_Final_List
6287 RE_Deep_Tag_Attach
6288 RE_Finalize_List
6289 RE_Finalize_One
6290 RE_Finalizable_Ptr_Ptr
6291 RE_Global_Final_List
6292 RE_Limited_Record_Controller
6293 RE_List_Controller
6294 RE_Move_Final_List
6295 RE_Record_Controller
6296 RE_Simple_List_Controller
2c7f9cc0 6297
df3e68b1 6298 Add the following recoverable entities:
2c7f9cc0 6299
df3e68b1
HK
6300 RE_Add_Offset_To_Address
6301 RE_Allocate
6302 RE_Base_Pool
6303 RE_Deallocate
6304 RE_Exception_Identity
6305 RE_Finalization_Collection
6306 RE_Finalization_Collection_Ptr
6307 RE_Needs_Finalization
6308 RE_Save_Library_Occurrence
6309 RE_Set_Finalize_Address_Ptr
6310 RE_Set_Storage_Pool_Ptr
6311 RE_Storage_Count
6312 * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of
6313 Name_uController.
6314 * sem_aux.adb (First_Discriminant): Remove mention of Name_uController.
6315 (First_Stored_Discriminant): Remove the mention of Name_uController.
6316 * sem_aux.ads: Comment reformatting.
6317 * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery
6318 to redecorate an already existing class-wide type.
6319 (Decorate_Tagged_Type): New parameter profile and associated comment.
6320 Create a "shadow class-wide type" for a shadow entity.
6321 * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting
6322 of the final chain along with the associated comment.
6323 * sem_ch3.adb (Access_Type_Declaration): Add new local variable
6324 Full_Desig and set it to the full view of the designated type.
6325 Initialize the finalization collection to empty.
6326 (Build_Derived_Record_Type): Alphabetize local variables. Code
6327 reformatting.
6328 (Collect_Fixed_Components): Remove the mention of Name_uController.
6329 (Create_Constrained_Components): Remove the mention of Name_uController.
6330 (Make_Class_Wide_Type): Add specialized code to redecorate an existing
6331 class-wide type of a shadow entity.
6332 (Process_Full_View): Update the machinery which marks type
6333 Limited_Controlled's entity as limited.
6334 * sem_ch4.adb (Analyze_One_Call): Code reformatting.
6335 * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization
6336 list, instead make a collection build-in-place formal.
6337 * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of
6338 a designated type in order to establish a match between the renaming
6339 and the renamed entity.
6340 (Find_Selected_Component): Add guard to prevent spurious exceptions
6341 from being raised on .NET/JVM.
6342 * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address
6343 to the list of primitive that need special processing. Update arrays
6344 C_Names and D_Names.
6345 (Replace_Types): Handle class-wide types.
6346 * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a
6347 different parameter profile, look at the first formal.
6348 * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and
6349 use clauses for Exp_Util.
6350 * sem_res.adb: Remove with and use clauses for Elists.
6351 (Propagate_Coextensions): Removed.
6352 (Resolve_Allocator): Do not propagate the list of coextensions from one
6353 allocator to another.
6354 * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable
6355 Deaccessed_T to Desig_Typ.
6356 (Enter_Name): Remove the mention of Name_uController.
6357 (Gather_Components): Remove the mention of Name_uController.
6358 (Incomplete_Or_Private_View): New routine.
6359 (Is_Coextension_Root): Removed.
6360 (Is_Fully_Initialized_Type): Remove the mention of Name_uController.
6361 * sem_util.ads (Incomplete_Or_Private_View): New routine.
6362 (Is_Coextension_Root): Removed.
6363 * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion.
6364 Controlled types are now derived from a null tagged record. Remove
6365 types Finalizable_Ptr, Finalizable and Empty_Root_Controlled.
6366 * sinfo.adb (Coextensions): Removed.
6367 (Set_Coextensions): Removed.
6368 * sinfo.ads: Remove Coextensions from the explanation of node fields
6369 and its uses in nodes.
6370 Update the field usage of N_Allocator.
6371 (Coextensions): Removed along with its pragma Inline.
6372 (Set_Coextensions): Removed along with its pragma Inline.
6373 * snames.ads-tmpl: Remove names
2c7f9cc0 6374
df3e68b1
HK
6375 Name_uClean
6376 Name_uController
6377 Name_uFinal_List
6378 Name_uLocal_Final_List
6379 Name_Finalization_Root
6380 Name_Next
6381 Name_Prev
2c7f9cc0 6382
df3e68b1 6383 Add names
2c7f9cc0 6384
df3e68b1
HK
6385 Name_uFinalizer
6386 Name_Finalize_Address
6387 * s-pooglo.adb (Allocate): Add overriding indicator.
6388 (Deallocate): Add overriding indicator.
6389 (Storage_Size): Add overriding indicator.
6390 * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather
6391 than Finalize_Global_List.
6392 (Null_Finalize_Global_List): Removed.
6393 (Save_Library_Occurrence): New routine.
6394 * s-soflin.ads: Remove variable Finalize_Global_List along with its
6395 initialization. Add variable Finalize_Library_Objects along with its
6396 pragma Export. Add variables Library_Exception and
6397 Library_Exception_Set along with their pragma Export.
6398 (Null_Finalize_Global_List): Removed.
6399 (Save_Library_Occurrence): New routine.
6400 * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects
6401 rather than Finalize_Global_List.
6402 * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field
6403 of the constructed node.
6404
2ee06322
RO
64052011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6406
6407 * link.c: Include "auto-host.h" before system headers.
6408
f77b022b
VC
64092011-08-03 Vincent Celier <celier@adacore.com>
6410
6411 * make.adb (Gnatmake): Add to table Library_Projs only library projects
6412 that are not extended. Do not check if a library project that is
6413 extended should be regenerated. Do not add to table Library_Paths the
6414 libraries that are in extended projects. Link only with libraries that
6415 are in libray projects that are not extended.
6416 * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library
6417 for a library project that is extended.
6418
0187b60e
AC
64192011-08-03 Gary Dismukes <dismukes@adacore.com>
6420
6421 * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip
6422 conforming subprogram renamings that appear to be completions if they
6423 are not fully conformant.
6424 Such renamings are homographs but not completions.
6425 * sem_type.adb (Disambiguate): Handle disambiguation of overloaded
6426 names in a subprogram renaming that appears in an instance.
6427
64282011-08-03 Ed Schonberg <schonberg@adacore.com>
6429
6430 * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but
6431 not immutably limited, build actual subtype from expression to provide
6432 proper bounds to caller.
6433
64342011-08-03 Gary Dismukes <dismukes@adacore.com>
6435
6436 * sem_ch8.adb: Minor comment correction.
6437
64382011-08-03 Thomas Quinot <quinot@adacore.com>
6439
6440 * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when
6441 returning a limited array, use an extended return statement.
6442
64432011-08-03 Vincent Celier <celier@adacore.com>
6444
6445 * make.adb (Initialize): If --subdirs= is used, but no project file is
6446 specified, attempt to create the specify subdir if it does not already
6447 exist and use it as the object directory as if -D had been specified.
6448
64492011-08-03 Arnaud Charlet <charlet@adacore.com>
6450
6451 * s-tpopsp-vms.adb: New file.
6452 * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS.
6453 * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS.
6454
e280f981
AC
64552011-08-03 Emmanuel Briot <briot@adacore.com>
6456
6457 * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new
6458 package.
6459
64602011-08-03 Yannick Moy <moy@adacore.com>
6461
6462 * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type
6463 * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA
6464 * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to
6465 detect that an array has static bounds.
6466
98c99a5a
AC
64672011-08-03 Thomas Quinot <quinot@adacore.com>
6468
6469 * exp_dist.adb: Minor reformatting.
6470
64712011-08-03 Arnaud Charlet <charlet@adacore.com>
6472
6473 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb
6474 (ATCB_Key): Removed, not always used.
6475
64762011-08-03 Emmanuel Briot <briot@adacore.com>
6477
6478 * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads,
6479 clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove
6480 most remaining global variables.
6481
686d0984
AC
64822011-08-03 Robert Dewar <dewar@adacore.com>
6483
6484 * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads,
6485 prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor
6486 reformatting.
6487
64882011-08-03 Javier Miranda <miranda@adacore.com>
6489
6490 * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals
6491 that must be passed by copy in VM targets.
6492
64932011-08-03 Emmanuel Briot <briot@adacore.com>
6494
6495 * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which
6496 duplicates a similar htable now in the project tree.
6497
64982011-08-03 Claire Dross <dross@adacore.com>
6499
6500 * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
6501 a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element,
6502 Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend,
6503 Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap,
6504 Splice, First, First_Element, Last, Last_Element, Next, Previous, Find,
6505 Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity,
6506 Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure
6507 update.
6508
65092011-08-03 Arnaud Charlet <charlet@adacore.com>
6510
6511 * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb
6512 (ATCB_Key): Removed, not always used.
6513 * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from
6514 s-taprop-posix.adb.
6515 * s-tpopsp-tls.adb: New file.
6516 * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on
6517 x86/x64/ia64/powerpc/sparc Linux.
6518
65192011-08-03 Arnaud Charlet <charlet@adacore.com>
6520
6521 * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True.
6522 * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports.
6523
65242011-08-03 Thomas Quinot <quinot@adacore.com>
6525
6526 * rtsfind.ads, exp_dist.adb, exp_dist.ads
6527 (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call):
6528 Fix type selection for mapping integer types to PolyORB types.
6529
65302011-08-03 Bob Duff <duff@adacore.com>
6531
6532 * sem_ch7.adb: Minor comment clarification.
6533
65342011-08-03 Bob Duff <duff@adacore.com>
6535
6536 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get
6537 an error analyzing a choice, skip further processing. Further
6538 processing could cause a crash or cascade errors.
6539
40ecf2f5
EB
65402011-08-03 Emmanuel Briot <briot@adacore.com>
6541
6542 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
6543 prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
6544 prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
6545 prj-env.ads (Shared_Project_Tree_Data): new type
6546 An aggregate project and its aggregated trees need to share the common
6547 data structures used for lists of strings, packages,... This makes the
6548 code simpler since otherwise we have to pass the root tree (also used
6549 for the configuration file data) in addition to the current project
6550 tree. This also avoids ambiguities as to which tree should be used.
6551 And finally this saves a bit of memory.
6552 (For_Every_Project_Imported): new parameter Tree.
6553 Since aggregated projects are using a different tree, we need to let
6554 the caller know which tree to use to manipulate the returned project.
6555
9fde638d
RD
65562011-08-03 Robert Dewar <dewar@adacore.com>
6557
6558 * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb,
6559 prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads,
6560 lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb,
6561 prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting.
6562
95eb8b69
AC
65632011-08-03 Javier Miranda <miranda@adacore.com>
6564
6565 * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads:
6566 Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util.
6567
65682011-08-03 Bob Duff <duff@adacore.com>
6569
6570 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on
6571 the Base_Type.
6572
65732011-08-03 Joel Brobecker <brobecker@adacore.com brobecker>
6574
6575 * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads,
6576 g-sehash.ads: Fix typo. Update header.
6577
65782011-08-03 Thomas Quinot <quinot@adacore.com>
6579
6580 * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place
6581 expansion.
6582
65832011-08-03 Gary Dismukes <dismukes@adacore.com>
6584
6585 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider
6586 prefixes of private types along with records, since the selector may be
6587 a discriminant.
6588 * sem_res.adb (Resolve_Selected_Component): Consider prefixes of
6589 private types along with records, since the selector may be a
6590 discriminant.
6591
92e77027
AC
65922011-08-03 Emmanuel Briot <briot@adacore.com>
6593
b2f7ebc1 6594 * prj-pp.adb (Pretty_Print): Remove trailing blank line.
92e77027
AC
6595
65962011-08-03 Javier Miranda <miranda@adacore.com>
6597
6598 * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of
6599 Tagged_Type_Expansion.
6600
66012011-08-03 Yannick Moy <moy@adacore.com>
6602
b2f7ebc1
GP
6603 * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK
6604 violation when the argument of concatenation is the name of a
6605 constant.
92e77027 6606
ab29a348
EB
66072011-08-03 Emmanuel Briot <briot@adacore.com>
6608
6609 * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads,
6610 prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms
6611 (Process_Declarative_Items): new parameter Child_Env.
6612
9466892f
AC
66132011-08-03 Yannick Moy <moy@adacore.com>
6614
589ef536
GP
6615 * alfa.ads: Update format of ALFA section in ALI file in order to
6616 add a mapping from bodies to specs when both are present.
6617 (ALFA_Scope_Record): Add components for spec file/scope.
6618 * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when
6619 present.
6620 * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been
6621 collected, fill in the spec information when relevant.
6622 * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when
9466892f
AC
6623 present.
6624
66252011-08-03 Eric Botcazou <ebotcazou@adacore.com>
6626
6627 * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing
6628 code unit to decide whether to add internally generated subprograms.
2c7f9cc0 6629
9466892f
AC
66302011-08-03 Javier Miranda <miranda@adacore.com>
6631
6632 * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram.
589ef536
GP
6633 * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must
6634 be handled by copy in VM targets.
9466892f
AC
6635
66362011-08-03 Emmanuel Briot <briot@adacore.com>
6637
589ef536 6638 * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share
9466892f
AC
6639 code with Makeutl.Get_Switches.
6640 * prj-tree.adb: Update comment.
6641
b5ea9143
AC
66422011-08-03 Thomas Quinot <quinot@adacore.com>
6643
6644 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote
6645 subprogram with a limited formal that does not support external
6646 streaming.
6647
66482011-08-03 Yannick Moy <moy@adacore.com>
6649
6650 * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of
6651 continuation line
6652 * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are
6653 not from current unit in two phases, because it is not possible to
6654 change the table while iterating over its content.
6655 * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity
6656
66572011-08-03 Sergey Rybin <rybin@adacore.com>
6658
6659 * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option
6660 * gnat_ugn.texi: Update description of complexity metrics (gnatmetric)
6661
668a19bc
ES
66622011-08-03 Ed Schonberg <schonberg@adacore.com>
6663
6664 * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate
6665 and the component type is composite, this is ambiguous for predefined
6666 concatenation, but if the node is not overloaded and the entity is a use
6667 -defined function its profile can be used to resolve that aggregate.
6668
170b2989
AC
66692011-08-03 Robert Dewar <dewar@adacore.com>
6670
6671 * exp_ch4.adb: Minor code cleanup.
6672
66732011-08-03 Thomas Quinot <quinot@adacore.com>
6674
6675 * exp_dist.adb: Do not generate distribution stubs if serious errors
6676 have been diagnosed.
6677
66782011-08-03 Ed Schonberg <schonberg@adacore.com>
6679
6680 * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of
6681 the first formal of a primitive operation, go to the base type to
6682 handle properly an access to a derived type with constrained
6683 discriminants.
6684 * sem_type.adb (Disambiguate): an immediately visible operator hides a
6685 user-defined function that is only use-visible.
170b2989 6686
e917aec2
RD
66872011-08-03 Robert Dewar <dewar@adacore.com>
6688
6689 * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb,
6690 make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb,
6691 fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb,
6692 prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads,
6693 sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb,
6694 prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb,
6695 prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads,
6696 alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting
6697
66982011-08-03 Robert Dewar <dewar@adacore.com>
6699
6700 * repinfo.adb (List_Mechanism): Add handling of
6701 Convention_Ada_Pass_By_XXX.
6702 * sem_mech.adb (Set_Mechanism): Ditto.
6703 * sem_prag.adb (Process_Convention): Add entries for
6704 Convention_Ada_Pass_By_XXX.
6705 * snames.adb-tmpl, snames.ads-tmpl: Ditto.
6706
49bfcf43
AC
67072011-08-03 Pascal Obry <obry@adacore.com>
6708
6709 * makeutl.adb: Minor reformatting.
6710
67112011-08-03 Vincent Celier <celier@adacore.com>
6712
6713 * fname-uf.adb
6714 (Get_File_Name) If the file cannot be found when there are no config
6715 pragmas file and May_Fail is True, return No_File instead of the file
6716 name, to be consistent.
6717
67182011-08-03 Pascal Obry <obry@adacore.com>
6719
6720 * adaint.c (__gnat_is_executable_file_attr): Avoid access
6721 to null pointer.
6722
67232011-08-03 Javier Miranda <miranda@adacore.com>
6724
6725 * sem_ch13.adb
6726 (Same_Representation): In VM targets the representation of arrays with
6727 aliased components differs from arrays with non-aliased components.
6728
34798441
EB
67292011-08-03 Emmanuel Briot <briot@adacore.com>
6730
6731 * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do
6732 not systematically lower case attribute indexes that contain no "."
6733 Fix definition of several Naming attributes, which take
6734 a unit name as index and therefore should be case insensitive.
6735 Minor refactoring (reduce length of variable names).
6736
67372011-08-03 Emmanuel Briot <briot@adacore.com>
6738
6739 * makeutl.adb, makeutl.ads (Get_Switches): new subprogram.
6740
4437a530
EB
67412011-08-03 Emmanuel Briot <briot@adacore.com>
6742
6743 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
6744 prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb,
6745 prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
6746 prj-tree.ads (Prj.Tree.Environment): new type.
6747
804fe3c4
EB
67482011-08-03 Emmanuel Briot <briot@adacore.com>
6749
6750 * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb,
6751 prj-tree.adb, prj-tree.ads (Environment): new type.
6752
c565bc66
AC
67532011-08-03 Emmanuel Briot <briot@adacore.com>
6754
6755 * prj-tree.ads: Remove unused variable.
6756
67572011-08-03 Yannick Moy <moy@adacore.com>
6758
6759 * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for
6760 issuing messages related to SPARK restriction violation.
6761
4ee646da
AC
67622011-08-03 Ed Schonberg <schonberg@adacore.com>
6763
6764 * sem_ch6.adb: guard against error nodes in return statements.
6765
67662011-08-03 Arnaud Charlet <charlet@adacore.com>
6767
6768 * errout.adb (Error_Msg_Internal): the main unit has not been read yet,
6769 a warning can only appear on a configuration file, so emit warning
6770 without further checks.
6771
67722011-08-03 Arnaud Charlet <charlet@adacore.com>
6773
6774 * s-interr.ads: add overriding keyword.
6775
67762011-08-03 Geert Bosch <bosch@adacore.com>
6777
6778 * exp_attr.adb: Fix minor typo.
6779
67802011-08-03 Ed Schonberg <schonberg@adacore.com>
6781
6782 * par-ch4.adb: improve error recovery.
6783
c0e538ad
AC
67842011-08-03 Emmanuel Briot <briot@adacore.com>
6785
6786 * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb,
6787 prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize
6788 to Errout_Handling.
6789
67902011-08-03 Emmanuel Briot <briot@adacore.com>
6791
6792 * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use
6793 "external" as an attribute name in aggregate projects.
6794
67952011-08-03 Jose Ruiz <ruiz@adacore.com>
6796
6797 * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU
6798 uses CPU numbers starting 1, while VxWorks uses CPU numbers starting
6799 from 0, so we need to adjust.
6800
68012011-08-03 Emmanuel Briot <briot@adacore.com>
6802
6803 * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb,
6804 prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type.
6805
c4d67e2d
AC
68062011-08-03 Yannick Moy <moy@adacore.com>
6807
6808 * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK
6809 restriction on overloaded entity if the entity is not an operator.
6810
68112011-08-03 Yannick Moy <moy@adacore.com>
6812
6813 * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb,
6814 restrict.ads: Rename remaining Check_Formal_Restriction* into
6815 Check_SPARK_Restriction*.
6816
68172011-08-03 Emmanuel Briot <briot@adacore.com>
6818
6819 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb,
6820 prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its
6821 qualifier.
6822 (Project_Empty): removed
6823 (Empty_Project): new parameter Qualifier
6824 This is used to have fields specific to aggregate projects, cleaner
6825 New field to store the list of aggregated projects.
6826 (Check_Aggregate_Project): removed
6827 (Process_Aggregated_Projects, Free): new subprograms.
6828
3f5a8fee
AC
68292011-08-03 Olivier Hainque <hainque@adacore.com>
6830
6831 * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well.
6832
68332011-08-03 Ed Schonberg <schonberg@adacore.com>
6834
6835 * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an
6836 explicit dereference of an unconstrained type, create a constrained
6837 subtype for it, as is done for function calls that return an
6838 unconstrained type.
6839
68402011-08-03 Thomas Quinot <quinot@adacore.com>
6841
6842 * g-pehage.adb (Finalize): Avoid possible double-free.
6843
68442011-08-03 Steve Baird <baird@adacore.com>
6845
6846 * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand
6847 Elab_Spec/Body attrs in CodePeer_Mode.
6848
68492011-08-03 Javier Miranda <miranda@adacore.com>
6850
6851 * exp_aggr.adb (Flatten): Convert to positional form aggregates whose
6852 low bound is not known at compile time but they have no others choice.
6853 Done because in this case the bounds can be obtained directly from the
6854 aggregate.
6855
68562011-08-03 Ed Falis <falis@adacore.com>
6857
6858 * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs
6859 on VxWorks SMP. Remove unusable constant ANY_CPU.
6860
a96ca600
EB
68612011-08-03 Emmanuel Briot <briot@adacore.com>
6862
6863 * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb,
6864 clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb,
6865 prj-env.ads (Prj.Env.Initialize_Default_Project_Path,
6866 Prj.Env.Initialize_Empty): new subprograms
6867 (Get_Env, Find_Project): remove parameter Target_Name.
6868
3e582869
AC
68692011-08-03 Gary Dismukes <dismukes@adacore.com>
6870
6871 * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal
6872 as a condition for the delayed call to Derived_Subprograms done for the
6873 case of the rewriting of a derived type that constrains the
6874 discriminants of its parent type.
6875 Avoids redundant subprogram derivations for private subtype derivations.
6876
68772011-08-03 Javier Miranda <miranda@adacore.com>
6878
6879 * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of
6880 Build_Record_Aggr_Code.
6881 (Build_Record_Aggr_Code): Add missing support to initialize hidden
6882 discriminants in extension aggregates.
6883
68842011-08-03 Emmanuel Briot <briot@adacore.com>
6885
6886 * prj-pp.adb (Print): also output project qualifiers, since in
6887 particular "aggregate" is mandatory in an aggregate project.
6888
68892011-08-03 Emmanuel Briot <briot@adacore.com>
6890
6891 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb:
6892 (Debug_Output): new function.
6893
56e94186
AC
68942011-08-03 Eric Botcazou <ebotcazou@adacore.com>
6895
6896 * gnat_ugn.texi: Document -Wstack-usage.
6897 * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes.
6898
68992011-08-03 Thomas Quinot <quinot@adacore.com>
6900
6901 * sem_prag.adb Issue an error (not a warning) when a C++ type does not
6902 have keyword LIMITED.
6903
69042011-08-03 Yannick Moy <moy@adacore.com>
6905
6906 * alfa.adb, alfa.ads, alfa_test.adb: New files.
6907 * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA)
6908 (Scan_ALI): do not issue a fatal error if parsing known lines after Xref
6909 section (does not happen in compiler, only if code directly calls
6910 Scan_ALI).
6911 * get_alfa.adb, get_alfa.ads: New files.
6912 * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if
6913 needed.
6914 * lib-xref-alfa.adb: New file.
6915 * lib-xref.adb, lib-xref.ads
6916 (Xref_Entry): redefine information needed in cross-references for ALFA.
6917 Push ALFA treatments in separated local package.
6918 (Enclosing_Subpragram_Or_Package): treat specially subprogram
6919 identifiers. Return entity of package body instead of spec. Return
6920 Empty for a scope with no location.
6921 (Generate_Reference): adapt to new components for ALFA information.
6922 Remove the need for D references on definitions.
6923 (Is_Local_Reference): moved to ALFA local package
6924 (Output_References): extract subfunction as Extract_Source_Name
6925 (Output_Local_References): remove procedure, replaced by filtering of
6926 cross-references in package ALFA and printing in Put_ALFA.
6927 (Write_Entity_Name): remove procedure
6928 * lib.adb, lib.ads (Extract_Source_Name): extract here function to
6929 print exact name of entity as it appears in source file
6930 (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA
6931 * put_alfa.adb, put_alfa.ads: New files.
6932 * xref_lib.adb (Search_Xref): protect read of cross-references against
6933 reading other sections of the ALI file, in gnatxref
6934 (Search): protect read of cross-references against reading other
6935 sections of the ALI file, in gnatfind.
6936 * gcc-interface/Make-lang.in: Update dependencies.
6937
69382011-08-03 Thomas Quinot <quinot@adacore.com>
6939
6940 * sem_ch3.adb: Minor reformatting.
6941
69422011-08-03 Jose Ruiz <ruiz@adacore.com>
6943
6944 * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of
6945 raising an exception.
6946
69472011-08-03 Ed Schonberg <schonberg@adacore.com>
6948
6949 * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer
6950 type, always use 1 as the lower bound or string, even if lower bound of
6951 context is not static, to handle properly null strings in a non-static
6952 context.
6953
69542011-08-03 Bob Duff <duff@adacore.com>
6955
6956 * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is
6957 always legal on the right-hand side of an assignment statement; there
6958 is always an applicable index constraint in this case. Therefore, the
6959 check for Pkind = N_Assignment_Statement is now unconditional -- it
6960 doesn't depend on whether Is_Constrained (Typ).
6961
4317e442
AC
69622011-08-03 Robert Dewar <dewar@adacore.com>
6963
6964 * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting.
6965
69662011-08-03 Ed Schonberg <schonberg@adacore.com>
6967
6968 * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference
6969 for an itype created within a generic unit.
6970
69712011-08-03 Eric Botcazou <ebotcazou@adacore.com>
6972
6973 * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline
6974 suppresses all inlining.
6975
53f29d4f
AC
69762011-08-03 Robert Dewar <dewar@adacore.com>
6977
6978 * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb,
6979 exp_aggr.adb: Minor reformatting.
6980
69812011-08-03 Thomas Quinot <quinot@adacore.com>
6982
6983 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of
6984 tagged assignment when discriminant checks are suppressed. This is
6985 useless and extremely costly in terms of static stack usage.
6986
69872011-08-03 Bob Duff <duff@adacore.com>
6988
6989 * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances
6990 of generics, because this leads to the wrong entity in the wrong scope,
6991 causing (e.g.) pragma Export_Procedure to get an error if the entity is
6992 an instance.
6993 (Process_Interface_Name): Follow Alias for instances of generics, to
6994 correct for the above change.
6995
69962011-08-03 Ed Schonberg <schonberg@adacore.com>
6997
6998 * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value
6999 is an integer literal it is always safe to replace the reference. In
7000 addition, if the reference appears in the generated code for an object
7001 declaration it is necessary to copy because otherwise the reference
7002 might be to the uninitilized value of the discriminant of the object
7003 itself.
7004
70052011-08-03 Pascal Obry <obry@adacore.com>
7006
7007 * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no
7008 ACL used, in this case we want to check for ending .exe, not .exe
7009 anywhere in the path.
7010
70112011-08-03 Sergey Rybin <rybin@adacore.com>
7012
7013 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
7014 the tree structure (semantic decoration of references to record
7015 discriminants).
7016
c0b11850
AC
70172011-08-03 Gary Dismukes <dismukes@adacore.com>
7018
7019 * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete
7020 choices of a named array aggregate, bail out when any choices are
7021 marked as Errors_Posted.
7022
70232011-08-03 Ed Schonberg <schonberg@adacore.com>
7024
7025 * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope
7026 in which entity is frozen, to handle properly loop variables in
7027 iterators.
7028
70292011-08-03 Ed Schonberg <schonberg@adacore.com>
7030
7031 * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the
7032 subtype is not static, compute the upper bound using attributes, to
7033 handle properly index types that are not integer types.
7034
70352011-08-03 Bob Duff <duff@adacore.com>
7036
7037 * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs.
7038 Update copyright notice.
7039
70402011-08-03 Ed Schonberg <schonberg@adacore.com>
7041
7042 * sem_ch3.adb (Build_Discriminant_Constraints): Only use
7043 Original_Discriminant if within an instance.
7044 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
7045
70462011-08-03 Thomas Quinot <quinot@adacore.com>
7047
7048 * einfo.ads: Minor reformatting.
7049
70502011-08-03 Ed Schonberg <schonberg@adacore.com>
7051
7052 * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a
7053 composite type with an unfrozen subcomponent, in the profile of a
7054 primitive operation.
7055
5c34e9cd
AC
70562011-08-03 Robert Dewar <dewar@adacore.com>
7057
7058 * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
7059
70602011-08-03 Ed Schonberg <schonberg@adacore.com>
7061
7062 * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an
7063 unconstrained type with discriminants is initialized with an aggregate,
7064 use the constrained subtype of the aggregate as the type of the object,
7065 because it is immutable, and this allows the back-end to generate no
7066 code for the object declaration.
7067
abcd9db2
AC
70682011-08-03 Robert Dewar <dewar@adacore.com>
7069
7070 * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where
7071 comparison operand is variable, and turns out to be zero or negative.
7072
70732011-08-03 Javier Miranda <miranda@adacore.com>
7074
7075 * exp_intr.adb
7076 (Expand_Dispatching_Constructor_Call): Disable expansion of
7077 code required for native targets. Done to avoid generating
7078 references to unavailable runtime entities in VM targets.
7079 * exp_ch3.adb
7080 (Expand_N_Object_Declaration): Add missing support to handle
7081 the explicit initialization of class-wide interface objects.
7082 Fix documentation.
7083
70842011-08-03 Matthew Heaney <heaney@adacore.com>
7085
7086 * a-cobove.adb (Merge): Move source onto target, instead of using Assign
7087
70882011-08-03 Matthew Heaney <heaney@adacore.com>
7089
7090 * a-cbdlli.adb (Splice): move source items from first to last
7091
70922011-08-03 Yannick Moy <moy@adacore.com>
7093
7094 * sem_util.ads: comment added.
7095
70962011-08-03 Javier Miranda <miranda@adacore.com>
7097
7098 * exp_aggr.adb
7099 (Expand_Record_Aggregate): In VM targets disable the expansion into
7100 assignments of aggregates whose type is not known at compile time.
7101
b474d6c3
ES
71022011-08-03 Ed Schonberg <schonberg@adacore.com>
7103
7104 * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for
7105 protected entries and task entries, to build the proper renaming
7106 declaration for entry formals, used in debugging.
7107 * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry
7108 parameters in the same way.
7109
0580d807
AC
71102011-08-02 Robert Dewar <dewar@adacore.com>
7111
7112 * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb,
7113 sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or
7114 code reorganization.
7115
71162011-08-02 Robert Dewar <dewar@adacore.com>
7117
7118 * debug.adb: Debug flag d.P to suppress length comparison optimization
7119 * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize
7120 comparison of Length by comparing First/Last instead.
7121
71222011-08-02 Matthew Heaney <heaney@adacore.com>
7123
7124 * a-cobove.ads: Code clean up.
7125
b191a125
AC
71262011-08-02 Vincent Celier <celier@adacore.com>
7127
7128 * adaint.c (file_names_case_sensitive_cache): New static int.
7129 (__gnat_get_file_names_case_sensitive): Cache the return value in
7130 file_names_case_sensitive_cache at the first invocation, to avoid
7131 multiple calls to getenv.
7132
71332011-08-02 Bob Duff <duff@adacore.com>
7134
7135 * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1.
7136
316a0661
AC
71372011-08-02 Yannick Moy <moy@adacore.com>
7138
7139 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads,
7140 sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb,
7141 sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to
7142 indicate that we are in a precondition or postcondition. This is used in
7143 Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to
7144 decide whether to flag the spec or body of the current subprogram as
7145 not in ALFA.
7146
71472011-08-02 Fabien Chouteau <chouteau@adacore.com>
7148
7149 * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package
7150 list.
7151 * a-extiin.ads: New file.
7152
71532011-08-02 Bob Duff <duff@adacore.com>
7154
7155 * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename
7156 now raises Name_Error instead of Use_Error in certain cases. The other
7157 parts of this AI were already implemented properly.
7158
f9adb9d4
AC
71592011-08-02 Vincent Celier <celier@adacore.com>
7160
7161 * link.c: Only import "auto-host.h" when building the gnattools.
7162
71632011-08-02 Yannick Moy <moy@adacore.com>
7164
7165 * sem_util.adb: Inter-unit inlining does not work for a subprogram
7166 which calls a local subprogram, so extract subprogram
7167 from Mark_Non_ALFA_Subprogram_Body.
7168
71692011-08-02 Javier Miranda <miranda@adacore.com>
7170
7171 * exp_ch9.adb
7172 (Extract_Dispatching_Call): If the type of the dispatching object is an
7173 access type then return an explicit dereference in the Object out-mode
7174 parameter.
7175
71762011-08-02 Gary Dismukes <dismukes@adacore.com>
7177
7178 * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range
7179 compatibility checks for all indexes of an array subtype, not just the
7180 first. Reset Has_Dynamic_Range_Check on the subtype before each
7181 potential check to ensure that Insert_Range_Checks will not elide any
7182 of the dynamic checks.
7183
71842011-08-02 Yannick Moy <moy@adacore.com>
7185
7186 * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize
7187 SPARK restriction at parsing time.
7188 * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE
7189 directive only if the SPARK restriction is set for this unit.
7190
83f33150
YM
71912011-08-02 Yannick Moy <moy@adacore.com>
7192
7193 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
7194 sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
7195 sem_ch11.adb: Protect call to Current_Subprogram which might be costly
7196 when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
7197 Mark_Non_ALFA_Subprogram_Body.
7198 Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
7199 inlined.
7200
7b98672f
YM
72012011-08-02 Yannick Moy <moy@adacore.com>
7202
7203 * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which
7204 might be costly.
7205
052e0603
AC
72062011-08-02 Robert Dewar <dewar@adacore.com>
7207
7208 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
7209 exp_ch3.adb: Minor reformatting.
7210
72112011-08-02 Emmanuel Briot <briot@adacore.com>
7212
7213 * adaint.c (__gnat_locate_exec_on_path): only returns executable
7214 files, not any regular file.
7215 (__gnat_locate_file_with_predicate): new subprogram.
7216
72172011-08-02 Yannick Moy <moy@adacore.com>
7218
7219 * sinfo.adb, sinfo.ads: Restrict the use of flags
7220 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
7221 nodes, plus N_Subtype_Declaration for the 2nd one.
7222
4fbad0ba
AC
72232011-08-02 Sergey Rybin <rybin@adacore.com>
7224
7225 * gnat_rm.texi: Ramification of pragma Eliminate documentation
7226 - fix bugs in the description of Source_Trace;
7227 - get rid of UNIT_NAME;
7228
052e0603
AC
72292011-08-02 Javier Miranda <miranda@adacore.com>
7230
7231 * exp_ch9.adb
7232 (Build_Dispatching_Requeue): Adding support for VM targets
7233 since we cannot directly reference the Tag entity.
7234 * exp_sel.adb (Build_K): Adding support for VM targets.
7235 (Build_S_Assignment): Adding support for VM targets.
7236 * exp_disp.adb
7237 (Default_Prim_Op_Position): In VM targets do not restrict availability
7238 of predefined interface primitives to compiling in Ada 2005 mode.
7239 (Is_Predefined_Interface_Primitive): In VM targets this service is not
7240 restricted to compiling in Ada 2005 mode.
7241 (Make_VM_TSD): Generate code that declares and initializes the OSD
7242 record. Needed to support dispatching calls through synchronized
7243 interfaces.
7244 * exp_ch3.adb
7245 (Make_Predefined_Primitive_Specs): Enable generation of predefined
7246 primitives associated with synchronized interfaces.
7247 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
7248 primitives associated with synchronized interfaces.
7249
72502011-08-02 Yannick Moy <moy@adacore.com>
7251
7252 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
7253 statements hidden in SPARK if preceded by the HIDE directive
7254 (Parse_Exception_Handlers): mark each exception handler in a sequence of
7255 exception handlers as hidden in SPARK if preceded by the HIDE directive
7256 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
7257 if starting with the HIDE directive
7258 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
7259 starting with the HIDE directive; mark the declarations in a private
7260 part as hidden in SPARK if the private part starts with the HIDE
7261 directive
7262 * restrict.adb, restrict.ads
7263 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
7264 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
7265 argument node belongs to a part which is hidden in SPARK
7266 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
7267 parts in SPARK; protect the possibly costly call to
7268 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
7269 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
7270 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
7271 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
7272 Tok_SPARK_Hide.
7273 (Scan): recognize special comment starting with '#' and followed by
7274 SPARK keyword "hide" as a HIDE directive.
7275
72762011-08-02 Yannick Moy <moy@adacore.com>
7277
7278 * types.ads, erroutc.ads: Minor reformatting.
7279
72802011-08-02 Vincent Celier <celier@adacore.com>
7281
7282 * link.c: Add response file support for cross platforms.
7283
72842011-08-02 Ed Schonberg <schonberg@adacore.com>
7285
7286 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
7287 in an association, set parent field of copy before partial analysis.
7288 * sem_res.adb (Resolve_Slice): create reference to itype only when
7289 expansion is enabled.
7290
72912011-08-02 Yannick Moy <moy@adacore.com>
7292
7293 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
7294 for new flag denoting which subprogram bodies are in ALFA
7295 * restrict.adb, sem_ch7.adb: Update comment
7296 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
7297 sem_ch9.adb, sem_res.adb: Add calls to
7298 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
7299 * sem_ch6.adb (Analyze_Function_Return): add calls to
7300 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
7301 middle of the body, and extended return.
7302 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
7303 False when missing return.
7304 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
7305 to True for subprograms whose spec is in ALFA. Remove later on the flag
7306 on the entity used for a subprogram body when there exists a separate
7307 declaration.
7308 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
7309 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
7310 False, otherwise do nothing.
7311
73122011-08-02 Robert Dewar <dewar@adacore.com>
7313
7314 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
7315
73162011-08-02 Yannick Moy <moy@adacore.com>
7317
7318 * sem_ch4.ads: minor formatting.
7319
73202011-08-02 Yannick Moy <moy@adacore.com>
7321
7322 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
7323 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
7324 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
7325 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
7326 opt.ads: cleanup of SPARK mode
7327
73282011-08-02 Yannick Moy <moy@adacore.com>
7329
7330 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
7331 types.
7332 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
7333 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
7334 * sem_ch3.adb
7335 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
7336 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
7337 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
7338 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
7339 types.
7340 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
7341 non-static range.
7342 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
7343 functions whose return type is not in ALFA.
7344 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
7345 specifications.
7346 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
7347 parameter's type is not in ALFA.
7348 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
7349 types are in ALFA.
7350
73512011-08-02 Ed Schonberg <schonberg@adacore.com>
7352
7353 * sem_ch6 (Analyze_Expression_Function): treat the function as
7354 Inline_Always, and introduce a subprogram declaration for it when it is
7355 not a completion.
7356 * inline.adb (Add_Inlined_Body): recognize bodies that come from
7357 expression functions, so that the back-end can determine whether they
7358 can in fact be inlined.
7359 * sem_util.adb (Is_Expression_Function): predicate to determine whether
7360 a function body comes from an expression function.
7361
73622011-08-02 Gary Dismukes <dismukes@adacore.com>
7363
7364 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
7365 null exclusions to test Can_Never_Be_Null on the anonymous access types
7366 of the formals rather than testing the formals themselves. Exclude this
7367 check in cases where the Old_Formal is marked as a controlling formal,
7368 to avoid issuing spurious errors for bodies completing dispatching
7369 operations (due to the flag not getting set on controlling access
7370 formals in body specs).
7371 (Find_Corresponding_Spec): When checking full and subtype conformance of
7372 subprogram bodies in instances, pass Designated and E in that order, for
7373 consistency with the expected order of the formals (New_Id followed by
7374 Old_Id).
7375
73762011-08-02 Robert Dewar <dewar@adacore.com>
7377
7378 * sem_ch8.adb: Minor reformatting.
7379
73802011-08-02 Ed Schonberg <schonberg@adacore.com>
7381
7382 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
7383 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
7384 primitive operations of class-wide actuals.
7385
73862011-08-02 Javier Miranda <miranda@adacore.com>
7387
7388 * exp_atag.ads, exp_atag.adb
7389 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
7390 since its value is implicitly passed in argument Typ.
7391 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
7392 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
7393 Build_Common_Dispatching_Select_Statements.
7394
73952011-08-02 Robert Dewar <dewar@adacore.com>
7396
7397 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
7398 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
7399 Minor reformatting.
7400
74012011-08-02 Robert Dewar <dewar@adacore.com>
7402
7403 * sem_res.adb: Minor reformatting.
7404 * sem_prag.adb: Minor reformatting.
7405
74062011-08-02 Javier Miranda <miranda@adacore.com>
7407
7408 * exp_atag.adb, exp_atags.ads
7409 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
7410 by the tagged type Entity. Required to use this routine in the VM
7411 targets since we do not have available the Tag entity in the VM
7412 platforms.
7413 * exp_ch6.adb
7414 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
7415 Ada.Tags has not been previously loaded.
7416 * exp_ch7.adb
7417 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
7418 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
7419 * sem_aux.adb
7420 (Enclosing_Dynamic_Scope): Add missing support to handle the full
7421 view of enclosing scopes. Required to handle enclosing scopes that
7422 are synchronized types whose full view is a task type.
7423 * exp_disp.adb
7424 (Build_VM_TSDs): Minor code improvement to avoid generating and
7425 analyzing lists with empty nodes.
7426 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
7427 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
7428 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
7429 (Make_Disp_Timed_Select_Body): Add support for VM targets.
7430 (Make_Select_Specific_Data_Table): Add support for VM targets.
7431 (Make_VM_TSD): Generate code to initialize the SSD structure of
7432 the TSD.
7433
74342011-08-02 Yannick Moy <moy@adacore.com>
7435
7436 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
7437 cross-references section in ALI.
7438 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
7439 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
7440 Sub).
7441 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
7442 subprogram or package entity of a node
7443 (Is_Local_Reference_Type): new function returns True for references
7444 selected in local cross-references.
7445 (Lt): function extracted from Lt in Output_References
7446 (Write_Entity_Name): function extracted from Output_References
7447 (Generate_Definition): generate reference with type 'D' for definition
7448 of objects (object declaration and parameter specification), with
7449 appropriate locations and units, for use in local cross-references.
7450 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
7451 references of type 'I' for initialization in object definition.
7452 (Output_References): move part of function Lt and procedure
7453 Write_Entity_Name outside of the body. Ignore references of types 'D'
7454 and 'I' introduced for local cross-references.
7455 (Output_Local_References): new procedure to output the local
7456 cross-references sections.
7457 (Lref_Entity_Status): new array defining whether an entity is a local
7458 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
7459 with 'I' type when initialization expression is present.
7460 * get_scos.adb, get_scos.ads: Correct comments and typos
7461
74622011-08-02 Javier Miranda <miranda@adacore.com>
7463
7464 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
7465 the JVM target.
7466 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
7467 the JVM target.
7468 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
7469 TSD support.
7470
74712011-08-02 Vincent Celier <celier@adacore.com>
7472
7473 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
7474 (No_Space_Img): New function
7475 (Find_Excluded_Sources): When reading from a file, record the file name
7476 and the line number for each excluded source.
7477 (Mark_Excluded_Sources): When reporting an error, if the excluded
7478 sources were read from a file, include file name and line number in
7479 the error message.
7480
74812011-08-02 Ed Schonberg <schonberg@adacore.com>
7482
7483 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
7484
74852011-08-02 Robert Dewar <dewar@adacore.com>
7486
7487 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
7488
74892011-08-02 Javier Miranda <miranda@adacore.com>
7490
7491 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
7492 generation of TSDs to the DOTNET compiler.
7493 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
7494 generation of TSDs to the DOTNET compiler.
7495
74962011-08-02 Javier Miranda <miranda@adacore.com>
7497
7498 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
7499 record of all the tagged types declared inside library level package
7500 declarations, library level package bodies or library level subprograms.
7501 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
7502 associated with a given tagged type.
7503 (Build_VM_TSDs): New subprogram.
7504 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
7505 compilation units that are subprograms.
7506 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
7507 compilation units that are package bodies.
7508 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
7509 units that are a package declaration or a package instantiation.
7510 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
7511 reorganization to improve the error generated by the frontend when the
7512 function Ada.Tags.Secondary_Tag is not available.
7513 * rtsfind.ads (RE_Register_TSD): New runtime entity.
7514 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
7515
75162011-08-02 Javier Miranda <miranda@adacore.com>
7517
7518 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
7519
75202011-08-02 Robert Dewar <dewar@adacore.com>
7521
7522 * s-imenne.ads: Minor reformatting.
7523
75242011-08-02 Robert Dewar <dewar@adacore.com>
7525
7526 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
7527 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
7528 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
7529
75302011-08-02 Robert Dewar <dewar@adacore.com>
7531
7532 * einfo.ads (Materialize_Entity): Document this is only for renamings
7533 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
7534 required debug information in the case where we transform the object
7535 declaration into a renaming declaration.
7536 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
7537 object
7538 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
7539 Materialize_Entity.
7540
75412011-08-02 Robert Dewar <dewar@adacore.com>
7542
7543 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
7544 Suppress_Init_Procs.
7545 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
7546 Suppress_Initialization/Initialization_Suppressed.
7547 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
7548 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
7549 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
7550 * sem_prag.adb: New processing for pragma Suppress_Initialization.
7551
75522011-08-02 Robert Dewar <dewar@adacore.com>
7553
7554 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
7555 Minor reformatting.
7556
75572011-08-02 Ed Schonberg <schonberg@adacore.com>
7558
7559 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
7560 only have inheritable classwide pre/postconditions.
7561
75622011-08-02 Javier Miranda <miranda@adacore.com>
7563
7564 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
7565 * rtsfind.ads (RE_Check_TSD): New runtime entity.
7566 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
7567 checks if the external tag of a type is the same as the external tag
7568 of some other declaration.
7569
75702011-08-02 Thomas Quinot <quinot@adacore.com>
7571
7572 * s-taskin.ads: Minor reformatting.
7573
75742011-08-02 Emmanuel Briot <briot@adacore.com>
7575
7576 * g-comlin.adb (Display_Help): swap the order in which it prints the
7577 short help and the general usage.
7578
75792011-08-02 Ed Schonberg <schonberg@adacore.com>
7580
7581 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
7582 the aspect declarations and attach them to the generic copy for
7583 subsequent analysis.
7584 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
7585 declarations of the generic tree to the new subprogram declarations.
7586 * sem_attr.adb (Check_Precondition_Postcondition): recognize
7587 conditions that apply to a subprogram instance.
7588
75892011-08-02 Robert Dewar <dewar@adacore.com>
7590
7591 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
7592
75932011-08-02 Ed Schonberg <schonberg@adacore.com>
7594
7595 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
7596 private type with a tagged full view is not derived in the immediate
7597 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
7598
75992011-08-02 Robert Dewar <dewar@adacore.com>
7600
7601 * exp_ch4.adb: Minor reformatting.
7602
76032011-08-02 Ed Schonberg <schonberg@adacore.com>
7604
7605 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
7606 Ada2012 iterator, the loop will be rewritten during expansion into a
7607 while loop with a cursor and an element declaration. Do not analyze the
7608 body in this case, because if the container is for indefinite types the
7609 actual subtype of the elements will only be determined when the cursor
7610 declaration is analyzed.
7611
76122011-08-02 Arnaud Charlet <charlet@adacore.com>
7613
7614 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
7615 size/alignment related attributes in CodePeer_Mode.
7616
76172011-08-02 Gary Dismukes <dismukes@adacore.com>
7618
7619 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
7620 Prepend_Element, since this can result in the operation getting the
7621 wrong slot in the full type's dispatch table if the full type has
7622 inherited operations. The incomplete type's operation will get added
7623 to the proper position in the full type's primitives
7624 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
7625 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
7626 dispatching operations, since there are cases where nonprimitive
7627 subprograms can get added to the list of incomplete dependents (such
7628 as subprograms in nested packages).
7629 * sem_ch6.adb (Process_Formals): First, remove test for being in a
7630 private part when determining whether to add a primitive with a
7631 parameter of a tagged incomplete type to the Private_Dependents list.
7632 Such primitives can also occur in the visible part, and should not have
7633 been excluded from being private dependents.
7634 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
7635 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
7636 list of a Taft-amendment incomplete type is a primitive before issuing
7637 an error that the full type must appear in the same unit. There are
7638 cases where nonprimitives can be in the list (such as subprograms in
7639 nested packages).
7640 * sem_disp.adb (Derives_From): Use correct condition for checking that
7641 a formal's type is derived from the type of the corresponding formal in
7642 the parent subprogram (the condition was completely wrong). Add
7643 checking that was missing for controlling result types being derived
7644 from the result type of the parent operation.
7645
76462011-08-02 Yannick Moy <moy@adacore.com>
7647
7648 * errout.adb (First_Node): minor renaming
7649 * restrict.adb (Check_Formal_Restriction): put restriction warning on
7650 first node.
7651
76522011-08-02 Yannick Moy <moy@adacore.com>
7653
7654 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
7655 before accessing operands.
7656 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
7657 decide whether an initialization expression respects SPARK rules, as
7658 the plain node is the expanded one. This allows for more valid warnings
7659 to be issued.
7660 * gnat_rm.texi: Minor update.
7661
76622011-08-02 Arnaud Charlet <charlet@adacore.com>
7663
7664 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
7665 previous change.
7666
76672011-08-02 Robert Dewar <dewar@adacore.com>
7668
7669 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
7670
76712011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
7672
7673 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
7674 loop statements and the element renaming declaration with a block when
7675 the element type is controlled.
7676
76772011-08-02 Yannick Moy <moy@adacore.com>
7678
7679 * sinfo.ads: Minor formatting.
7680
76812011-08-02 Ed Schonberg <schonberg@adacore.com>
7682
7683 * sem_aggr.adb (Add_Association): if the association has a box and no
7684 expression, use the Sloc of the aggregate itself for the new
7685 association.
7686 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
7687 the Original_Node.
7688
76892011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
7690
7691 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
7692 When a container is provided via a function call, generate a renaming
7693 of the function result. This avoids the creation of a transient scope
7694 and the premature finalization of the container.
7695 * exp_ch7.adb (Is_Container_Cursor): Removed.
7696 (Wrap_Transient_Declaration): Remove the supression of the finalization
7697 of the list controller when the declaration denotes a container cursor,
7698 it is not needed.
7699
77002011-08-02 Yannick Moy <moy@adacore.com>
7701
7702 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
7703 node is from source, instead of the original node being from source.
7704 * sem_aggr.adb
7705 (Resolve_Array_Aggregate): refine the check for a static expression, to
7706 recognize also static ranges
7707 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
7708 Array_Type_Declaration): postpone the test for the type being a subtype
7709 mark after the type has been resolved, so that component-selection and
7710 expanded-name are discriminated.
7711 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
7712 to distinguish the case of an iteration scheme, so that an error is
7713 issed on a non-static range in SPARK except in an iteration scheme.
7714 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
7715 In_Iter_Schm = True.
7716 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
7717 user-defined operators so that they are allowed in renaming
7718 * sem_ch8.adb
7719 (Find_Selected_Component): refine the check for prefixing of operators
7720 so that they are allowed in renaming. Move the checks for restrictions
7721 on selector name after analysis discriminated between
7722 component-selection and expanded-name.
7723 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
7724 concatenation argument of string type if it is static.
7725 * sem_util.adb, sem_util.ads
7726 (Check_Later_Vs_Basic_Declarations): add a new function
7727 Is_Later_Declarative_Item to decice which declarations are allowed as
7728 later items, in the two different modes Ada 83 and SPARK. In the SPARK
7729 mode, add that renamings are considered as later items.
7730 (Enclosing_Package): new function to return the enclosing package
7731 (Enter_Name): correct the rule for homonyms in SPARK
7732 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
7733 from source (result of expansion) to avoid issuing wrong warnings.
7734
77352011-08-02 Ed Schonberg <schonberg@adacore.com>
7736
7737 * errout.adb: On anything but an expression First_Node returns its
7738 argument.
7739
77402011-08-02 Pascal Obry <obry@adacore.com>
7741
7742 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
7743
77442011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
7745
7746 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
7747 Set the associated loop as the related expression of internally
7748 generated cursors.
7749 * exp_ch7.adb (Is_Container_Cursor): New routine.
7750 (Wrap_Transient_Declaration): Supress the finalization of the list
7751 controller when the declaration denotes a container cursor.
7752
77532011-08-02 Yannick Moy <moy@adacore.com>
7754
7755 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
7756 command line now.
7757 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
7758 expression is a simple expression. This check cannot be performed in
7759 the semantics, so just drop it.
7760 (P_Index_Or_Discriminant_Constraint): move check that the index or
7761 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
7762 semantics. Other cases were previously checked in the semantics.
7763 * par-ch4.adb (P_Name): move checks that a selector name is not
7764 character literal or an operator symbol to Find_Selected_Component in
7765 the semantics
7766 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
7767 declarations are not placed after later declarations in a separate
7768 procedure in Sem_Util (possibly not the best choice?), to be used both
7769 during parsing, for Ada 83 mode, and during semantic analysis, for
7770 SPARK mode.
7771 * par-endh.adb (Check_End): move check that end label is not missing
7772 to Process_End_Label in the semantics
7773 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
7774 the special case for SPARK restriction
7775 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
7776 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
7777 parameter Force to issue the error message even on internal node (used
7778 for generated end label). Call Check_Restriction to check when an error
7779 must be issued. In SPARK mode, issue an error message even if the
7780 restriction is not set.
7781 (Check_Restriction): new procedure with an additional out parameter to
7782 inform the caller that a message has been issued
7783 * sem_aggr.adb: Minor modification of message
7784 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
7785 instead of issuing an error message directly
7786 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
7787 declarations are not placed after later declarations, by calling
7788 Check_Later_Vs_Basic_Declarations
7789 (Analyze_Subtype_Declaration): move here the check that an index or
7790 discriminant constraint must be a subtype mark. Change the check that
7791 a subtype of String must start at one so that it works on subtype marks.
7792 * sem_ch4.adb (Analyze_Call): move here the check that a named
7793 association cannot follow a positional one in a call
7794 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
7795 instead of issuing an error message directly
7796 * sem_ch8.adb (Find_Selected_Component): move here the check that a
7797 selector name is not a character literal or an operator symbol. Move
7798 here the check that the prefix of an expanded name cannot be a
7799 subprogram or a loop statement.
7800 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
7801 procedure called from parsing and semantics to check that basic
7802 declarations are not placed after later declarations
7803 (Process_End_Label): move here the check that end label is not missing
7804
78052011-08-02 Arnaud Charlet <charlet@adacore.com>
7806
7807 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
7808 representation clause in codepeer mode, since it confuses CodePeer and
7809 does not bring useful info.
7810
78112011-08-02 Ed Falis <falis@adacore.com>
7812
7813 * init.c: initialize fp hw on MILS.
7814
78152011-08-02 Ed Schonberg <schonberg@adacore.com>
7816
7817 * errout.adb (First_Node): for bodies, return the node itself (small
7818 optimization). For other nodes, do not check source_unit if the node
7819 comes from Standard.
7820
78212011-08-02 Robert Dewar <dewar@adacore.com>
7822
7823 * exp_ch3.adb: Minor comment additions.
7824 * sem_ch13.adb: Minor reformatting.
7825
78262011-08-02 Pascal Obry <obry@adacore.com>
7827
7828 * make.adb, makeutl.adb: Removes some superfluous directory separator.
7829
78302011-08-02 Robert Dewar <dewar@adacore.com>
7831
7832 * sem_attr.adb: Minor reformatting.
7833
78342011-08-02 Robert Dewar <dewar@adacore.com>
7835
7836 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
7837 (Has_Default_Component_Value): Removed
7838 * einfo.ads Comment updates
7839 (Has_Default_Aspect): Replaces Has_Default_Value
7840 (Has_Default_Component_Value): Removed
7841 * exp_ch13.adb
7842 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
7843 * exp_ch3.adb
7844 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
7845 (Get_Simple_Init_Val): Handle Default_Value aspect
7846 (Needs_Simple_Initialization): Handle Default_Value aspect
7847 * exp_ch3.ads: Needs_Simple_Initialization
7848 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
7849 * par-prag.adb (Pragma_Default[_Component]Value) Removed
7850 * sem_ch13.adb
7851 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
7852 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
7853 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
7854
78552011-08-02 Ed Schonberg <schonberg@adacore.com>
7856
7857 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
7858 package containing iteration primitives.
7859 exp_ch5.adb (Expand_Iterator_Loop): ditto.
7860
78612011-08-02 Ed Schonberg <schonberg@adacore.com>
7862
7863 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
7864 "of", pre-analyze expression in case it is a function call with
7865 finalization actions that must be placed ahead of the loop.
7866 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
7867 on an Ada2012 iterator, insert them ahead of the rewritten loop.
7868
78692011-08-02 Geert Bosch <bosch@adacore.com>
7870
7871 * cstand.adb (Create_Float_Types): Only consider C's long double for
7872 Long_Long_Float, in addition to double.
7873
78742011-08-02 Robert Dewar <dewar@adacore.com>
7875
7876 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
7877 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
7878 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
7879 Minor reformatting.
7880
78812011-08-02 Ed Schonberg <schonberg@adacore.com>
7882
7883 * sem_attr.adb: handle properly 'Result when it is a prefix of an
7884 indexed component.
7885
78862011-08-02 Javier Miranda <miranda@adacore.com>
7887
7888 * einfo.ads, einfo.adb
7889 (Original_Access_Type): Move this attribute to Node26 since there was
7890 an undocumented use of Node21 in E_Access_Subprogram_Type entities
7891 which causes conflicts and breaks the generation of the .NET compiler.
7892 (Interface_Name): Add missing documentation on JGNAT only uses of
7893 this attribute.
7894
78952011-08-02 Geert Bosch <bosch@adacore.com>
7896
7897 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
7898 (Find_Back_End_Float_Type): Likewise
7899 (Create_Back_End_Float_Types): Likewise
7900 (Create_Float_Types): Likewise
7901 (Register_Float_Type): Likewise
7902 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
7903 Nlist and split out type selection in new local Find_Base_Type function.
7904 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
7905 Nlist
7906 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
7907
79082011-08-02 Robert Dewar <dewar@adacore.com>
7909
7910 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
7911 alpha order).
7912 * opt.ads: Minor comment change.
7913 * sem_ch12.adb: Minor code reorganization.
7914
79152011-08-02 Gary Dismukes <dismukes@adacore.com>
7916
7917 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
7918 subtype's list of rep items to the list on the full subtype in the case
7919 where the lists are the same.
7920
79212011-08-02 Geert Bosch <bosch@adacore.com>
7922
7923 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
7924 using the one from System.Strings, which also deallocates all strings.
7925
79262011-08-02 Geert Bosch <bosch@adacore.com>
7927
7928 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
7929 function.
7930 * gcc-interface/Make-lang.in: Update dependencies.
7931
79322011-08-02 Olivier Hainque <hainque@adacore.com>
7933
7934 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
7935 end_locus.
7936
79372011-08-02 Javier Miranda <miranda@adacore.com>
7938
7939 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
7940 associated with anonymous access to subprograms.
7941
79422011-08-02 Geert Bosch <bosch@adacore.com>
7943
7944 * opt.ads
7945 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
7946 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
7947 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
7948 (Add_Symbol_Definition): Move to switch-c.adb
7949 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
7950 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
7951 (Add_Symbol_Definition): Move to switch-c.adb.
7952 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
7953 * sem_warn.adb
7954 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
7955 Move to warnsw.adb.
7956 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
7957 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
7958 Move to warnsw.adb.
7959 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
7960 (Add_Symbol_Definition): Moved from Prepcomp.
7961 * switch-c.ads: Update copyright notice. Use String_List instead of
7962 Argument_List, removing dependency on System.OS_Lib.
7963
79642011-08-02 Yannick Moy <moy@adacore.com>
7965
7966 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
7967 mode on initialization expression which does not respect SPARK
7968 restrictions.
7969 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
7970 if the tree referenced by its argument represents an initialization
7971 expression in SPARK, suitable for initializing an object in an object
7972 declaration.
7973
79742011-08-02 Javier Miranda <miranda@adacore.com>
7975
7976 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
7977 internally generated access to subprogram with its associated protected
7978 subprogram type.
7979 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
7980
79812011-08-02 Geert Bosch <bosch@adacore.com>
7982
7983 * cstand.adb (Register_Float_Type): Print information about type to
7984 register, if the Debug_Flag_Dot_B is set.
7985 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
7986 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
7987 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
7988 with a requested precision of more than Max_Digits digits and no more
7989 than Max_Base_Digits digits, if a range specification is present and the
7990 Predefined_Float_Types list has a suitable type to derive from.
7991 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
7992 case of type completion with pragma Import
7993 * sem_prag.adb
7994 (Process_Import_Predefined_Type): Processing to complete a type
7995 with pragma Import. Currently supports floating point types only.
7996 (Set_Convention_From_Pragma): Do nothing without underlying type.
7997 (Process_Convention): Guard against absence of underlying type,
7998 which may happen when importing incomplete types.
7999 (Process_Import_Or_Interface): Handle case of importing predefined
8000 types. Tweak error message.
8001
80022011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8003
8004 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
8005 functions to previous change. Reorganize code slightly.
8006
80072011-08-02 Geert Bosch <bosch@adacore.com>
8008
8009 * back_end.ads (Register_Type_Proc): New call back procedure type for
8010 allowing the back end to provide information about available types.
8011 (Register_Back_End_Types): New procedure to register back end types.
8012 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
8013 available types.
8014 * cstand.adb (Back_End_Float_Types): New list for floating point types
8015 supported by the back end.
8016 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
8017 (Copy_Float_Type): New procedure to make new copies of predefined types.
8018 (Register_Float_Type): New call back procedure to populate the BEFT list
8019 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
8020 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
8021 (Create_Float_Types): New procedure to create entities for floating
8022 point types predefined in Standard, and put these and any remaining
8023 BEFTs on the Predefined_Float_Types list.
8024 * stand.ads (Predefined_Float_Types): New list for predefined floating
8025 point types that do not have declarations in package Standard.
8026
80272011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8028
8029 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
8030 entity node for the unit containing the parameter.
8031 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
8032 (Add_Inlined_Subprogram): Likewise.
8033 * gcc-interface/Make-lang.in: Update dependencies.
8034
80352011-08-02 Thomas Quinot <quinot@adacore.com>
8036
8037 * s-stusta.adb (Print): Make sure Pos is always initialized to a
8038 suitable value.
8039
80402011-08-02 Geert Bosch <bosch@adacore.com>
8041
8042 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
8043
80442011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8045
8046 * sem_type.adb (Covers): Move trivial case to the top and reuse the
8047 computed value of Base_Type.
8048
80492011-08-02 Yannick Moy <moy@adacore.com>
8050
8051 * restrict.adb (Check_Restriction): issue an error for any use of
8052 class-wide, even if the No_Dispatch restriction is not set.
8053 * sem_aggr.adb: Correct typos in comments and messages in formal mode
8054 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
8055 when completing a private extension, the type named in the private part
8056 is not the same as that named in the visible part.
8057 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
8058 of an inherited primitive operations of a tagged type or type extension
8059 that returns the tagged type.
8060 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
8061 function which returns True for an implicit operation inherited by the
8062 derived type declaration for the argument type.
8063 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
8064 order.
8065
80662011-08-02 Ed Schonberg <schonberg@adacore.com>
8067
8068 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
8069 Process_Bounds, to perform analysis with expansion of a range or an
8070 expression that is the iteration scheme for a loop.
8071 (Analyze_Iterator_Specification): If domain of iteration is given by a
8072 function call with a controlled result, as is the case if call returns
8073 a predefined container, ensure that finalization actions are properly
8074 generated.
8075 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
8076
80772011-08-02 Javier Miranda <miranda@adacore.com>
8078
8079 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
8080 * gcc-interface/Make-lang.in: Update dependencies.
8081
80822011-08-02 Javier Miranda <miranda@adacore.com>
8083
8084 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
8085 determine if the analysis is performed using N or Original_Node (N).
8086 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
8087 functionality of routine Is_Variable avoids code duplication.
8088 * checks.adb (Determine_Range): Handle temporaries generated by
8089 Remove_Side_Effects.
8090
80912011-08-02 Javier Miranda <miranda@adacore.com>
8092
8093 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
8094 expansion of the condition. Required since the previous analysis was
8095 done with expansion disabled (see Resolve_Quantified_Expression) and
8096 hence checks were not inserted and record comparisons have not been
8097 expanded.
8098
80992011-08-02 Ed Falis <falis@adacore.com>
8100
8101 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
8102 Update header.
8103
81042011-08-02 Bob Duff <duff@adacore.com>
8105
8106 * opt.ads: Minor comment fix.
8107
81082011-08-02 Bob Duff <duff@adacore.com>
8109
8110 * sem_ch12.adb (Analyze_Package_Instantiation,
8111 Analyze_Subprogram_Instantiation): Turn off style checking while
8112 analyzing an instance. Whatever style checks that apply to the generic
8113 unit should apply, so it makes no sense to apply them in an instance.
8114 This was causing trouble when compiling an instance of a runtime
8115 unit that violates the -gnatyO switch.
8116 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
8117 one of the two case statements, causing spurious errors.
8118
81192011-08-02 Robert Dewar <dewar@adacore.com>
8120
8121 * uname.adb: Minor reformatting.
8122 * gnatcmd.adb: Minor reformatting.
8123 * exp_attr.adb: Minor reformatting.
8124
81252011-08-02 Ed Schonberg <schonberg@adacore.com>
8126
8127 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
8128 No_Dispatching_Calls, do not look for the Assign primitive, because
8129 predefined primitives are not created in this case.
8130
81312011-08-02 Bob Duff <duff@adacore.com>
8132
8133 * stylesw.ads: Minor comment fixes.
8134
81352011-08-02 Robert Dewar <dewar@adacore.com>
8136
8137 * freeze.adb (Add_To_Result): New procedure.
8138
81392011-08-02 Jose Ruiz <ruiz@adacore.com>
8140
8141 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
8142 time, if the specific run-time routines for handling streams of strings
8143 are not available, use the default mechanism.
8144
81452011-08-02 Arnaud Charlet <charlet@adacore.com>
8146
8147 * s-regpat.ads: Fix typo.
8148
81492011-08-02 Vincent Celier <celier@adacore.com>
8150
8151 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
8152 not null, call it to create the in memory config project file without
8153 parsing an existing default config project file.
8154
81552011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8156
8157 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
8158
81592011-08-02 Ed Schonberg <schonberg@adacore.com>
8160
8161 * sem_elim.adb: an abstract subprogram does not need an eliminate
8162 pragma for its descendant to be eliminable.
8163
81642011-08-02 Ed Falis <falis@adacore.com>
8165
8166 * init.c: revert to handling before previous checkin for VxWorks
8167 * s-intman-vxworks.adb: delete unnecessary declarations related to
8168 using Ada interrupt facilities for handling signals.
8169 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
8170 * s-intman-vxworks.ads: Import __gnat_install_handler as
8171 Initialize_Interrupts.
8172 * s-taprop-vxworks.adb: Delete Signal_Mask.
8173 (Abort_Handler): change construction of mask to unblock exception
8174 signals.
8175
81762011-08-02 Jerome Guitton <guitton@adacore.com>
8177
8178 * a-except-2005.adb (Raise_From_Signal_Handler): Call
8179 Debug_Raise_Exception before propagation starts.
8180
81812011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8182
8183 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
8184 to Restriction_Check_Required.
8185 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
8186 * sem_res.adb (Resolve_Call): Likewise.
8187 * sem_attr.adb (Check_Stream_Attribute): Likewise.
8188
81892011-08-02 Bob Duff <duff@adacore.com>
8190
8191 * stylesw.ads: Update comment.
8192 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
8193 * errout.ads: Remove obsolete comment.
8194
81952011-08-02 Javier Miranda <miranda@adacore.com>
8196
8197 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
8198 (Set_Is_Safe_To_Reevaluate): new procedure.
8199 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
8200 assignment is allowed on safe-to-reevaluate variables.
8201 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
8202 temporary created to remove side effects in expressions that use
8203 the secondary stack as safe-to-reevaluate.
8204 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
8205 variables that are not true constants.
8206
82072011-08-02 Robert Dewar <dewar@adacore.com>
8208
8209 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
8210 sem_res.adb, sem_ch6.adb: Minor reformatting.
8211
82122011-08-02 Jerome Guitton <guitton@adacore.com>
8213
8214 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
8215
82162011-08-02 Ed Schonberg <schonberg@adacore.com>
8217
8218 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
8219 not set Overridden_Operation if subprogram is an initialization
8220 procedure.
8221
82222011-08-02 Yannick Moy <moy@adacore.com>
8223
8224 * par-ch6.adb: Correct obsolete name in comments
8225 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
8226 which takes two message arguments (existing function takes one), with
8227 second message used for continuation.
8228 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
8229 block statements that originate from a source block statement, not
8230 generated block statements
8231 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
8232 symmetry with procedure case
8233 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
8234 function to issue an error in formal mode if a package specification
8235 contains more than one tagged type or type extension.
8236 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
8237 parameters matching formals of tagged types are objects (or ancestor
8238 type conversions of objects), not general expressions. Issue an error
8239 on view conversions that are not involving ancestor conversion of an
8240 extended type.
8241 (Resolve_Type_Conversion): in formal mode, issue an error on the
8242 operand of an ancestor type conversion which is not an object
8243 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
8244 procedure so that it works also for actuals of function calls
8245 (Is_Actual_Tagged_Parameter): new function which determines if its
8246 argument is an actual parameter of a formal of tagged type in a
8247 subprogram call
8248 (Is_SPARK_Object_Reference): new function which determines if the tree
8249 referenced by its argument represents an object in SPARK
8250
82512011-08-02 Robert Dewar <dewar@adacore.com>
8252
8253 * sem_ch3.adb: Minor reformatting
8254 Minor comment addition
8255 Minor error msg text change
8256
82572011-08-02 Javier Miranda <miranda@adacore.com>
8258
8259 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
8260 function. Used to be more precise when we generate a variable plus one
8261 assignment to remove side effects in the evaluation of the Bound
8262 expressions.
8263 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
8264 of the bound expression to force its re-analysis and thus expand the
8265 associated transient scope (if required). Code cleanup replacing the
8266 previous code that declared the constant entity by an invocation to
8267 routine Force_Evaluation which centralizes this work in the frontend.
8268
82692011-08-02 Robert Dewar <dewar@adacore.com>
8270
8271 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
8272 (Base_Type): Now uses improved Is_Base_Type function
8273 * einfo.ads (Base_Type): Inline this function
8274
82752011-08-02 Robert Dewar <dewar@adacore.com>
8276
8277 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
8278 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
8279
82802011-08-02 Arnaud Charlet <charlet@adacore.com>
8281
8282 * gcc-interface/Make-lang.in: Update dependencies.
8283 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
8284 targets.
8285
82862011-08-02 Yannick Moy <moy@adacore.com>
8287
8288 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
8289 non-simple expression used in delta constraint
8290 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
8291 index constraint which is not a subtype mark
8292 * par.adb: With and use Restrict
8293 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
8294 mode on component type which is not a subtype mark and default
8295 expression on component
8296 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
8297 of string which does not have a lower index bound equal to 1
8298 (Array_Type_Declaration): issue an error in formal mode on index or
8299 component type which is not a subtype mark, and on aliased keyword on
8300 component
8301 (Derived_Type_Declaration): issue an error in formal mode on interface,
8302 limited or abstract type
8303 (Record_Type_Declaration): issue an error in formal mode on interface
8304 (Record_Type_Definition): issue an error in formal mode on tagged types
8305 and type extensions not declared in the specification of a library unit
8306 package; on null non-tagged record; on variant part
8307
83082011-08-02 Vincent Celier <celier@adacore.com>
8309
8310 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
8311 not declared for qualified library project when Library_Name is not
8312 declared, but Library_Dir is.
8313
83142011-08-02 Robert Dewar <dewar@adacore.com>
8315
8316 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
8317 pragmas (affects aspects [Component_]Default_Value
8318 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
8319 component type for the resolution
8320
83212011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8322
8323 * einfo.adb (Base_Type): Tune implementation for speed.
8324
83252011-08-02 Robert Dewar <dewar@adacore.com>
8326
8327 * freeze.adb: Minor reformatting.
8328
83292011-08-02 Thomas Quinot <quinot@adacore.com>
8330
8331 * scos.ads: Update comments.
8332
83332011-08-02 Ed Schonberg <schonberg@adacore.com>
8334
8335 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
8336 base type, because the parent may be a subtype of a private type whose
8337 convention is established in a private part.
8338
83392011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8340
8341 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
8342 statement in a block when the expansion of the return expression has
8343 created a finalization chain.
8344 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
8345 with the parent node.
8346 Add N_Extended_Return_Statement to handle the case where a transient
8347 object declaration appears in the Return_Object_Declarations list of
8348 an extended return statement.
8349
83502011-08-02 Matthew Gingell <gingell@adacore.com>
8351
8352 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
8353 unused parameter 'name'.
8354
83552011-08-02 Ed Schonberg <schonberg@adacore.com>
8356
8357 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
8358 inherited operation, check whether its alias, which is the source
8359 operastion that it renames, has been marked eliminated.
8360
83612011-08-02 Javier Miranda <miranda@adacore.com>
8362
8363 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
8364 in-mode parameter whose type is an access type since it can be used to
8365 modify its designated object. Enforce code that handles as safe an
8366 access type that is not access-to-constant but it is the result of a
8367 previous removal of side-effects.
8368 (Remove_Side_Effects): Minor code reorganization of cases which require
8369 no action. Done to incorporate documentation on new cases uncovered
8370 working in this ticket: no action needed if this routine was invoked
8371 too early and the nodes are not yet decorated.
8372 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
8373 to routine Remove_Side_Effects by calls to Force_Evaluation since they
8374 were issued with actuals that are implicitly provided by
8375 Force_Evaluation.
8376
83772011-08-02 Robert Dewar <dewar@adacore.com>
8378
8379 * sem_ch3.adb, sem_res.adb: Minor reformatting.
8380
83812011-08-02 Yannick Moy <moy@adacore.com>
8382
8383 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
8384 to issue an error in formal mode on attribute not supported in this mode
8385 (Analyze_Attribute): issue errors on standard attributes not supported
8386 in formal mode.
8387 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
8388 comment, and issue error in formal mode on modulus which is not a power
8389 of 2.
8390 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
8391 range.
8392 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
8393 subtype mark.
8394 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
8395 operator on modular type (except 'not').
8396
83972011-08-02 Robert Dewar <dewar@adacore.com>
8398
8399 * gnat_rm.texi: Minor reformatting.
8400
84012011-08-02 Arnaud Charlet <charlet@adacore.com>
8402
8403 * s-osinte-linux.ads: Minor comment update and reformatting.
8404 * i-cexten.ads: Make this unit pure, as for its parent.
8405 Will allow its usage in more contexts if needed.
8406
84072011-08-02 Robert Dewar <dewar@adacore.com>
8408
8409 * s-utf_32.ads: Minor comment fix.
8410
84112011-08-02 Ed Schonberg <schonberg@adacore.com>
8412
8413 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
8414 operation of a tagged synchronized type, handle the case where the
8415 controlling argument is overloaded.
8416
84172011-08-02 Yannick Moy <moy@adacore.com>
8418
8419 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
8420 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
8421 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
8422 SPARK mode and formal verification mode on processing SPARK restriction
8423 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
8424 requiring consistency checking.
8425
84262011-08-02 Robert Dewar <dewar@adacore.com>
8427
8428 * sem_res.adb: Minor reformatting.
8429
84302011-08-02 Robert Dewar <dewar@adacore.com>
8431
8432 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
8433 a-cforse.ads: Remove unneeded with of Ada.Containers
8434 Remove commented out pragma Inline's
8435 Move specifications of new subprograms to the actual specs
8436
84372011-08-02 Yannick Moy <moy@adacore.com>
8438
8439 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
8440 a-cforse.ads: Update comments.
8441
84422011-08-02 Ed Schonberg <schonberg@adacore.com>
8443
8444 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
8445
84462011-08-02 Robert Dewar <dewar@adacore.com>
8447
8448 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
8449 a-cforse.ads, a-cofove.ads: Minor reformatting.
8450
84512011-08-02 Claire Dross <dross@adacore.com>
8452
8453 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
8454 a-cofove.ads: Add comments.
8455
84562011-08-02 Yannick Moy <moy@adacore.com>
8457
8458 * gnat_rm.texi: Document formal containers.
8459
84602011-08-02 Emmanuel Briot <briot@adacore.com>
8461
8462 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
8463 are empty sections.
8464
84652011-08-02 Robert Dewar <dewar@adacore.com>
8466
8467 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
8468 reformatting.
8469
84702011-08-02 Robert Dewar <dewar@adacore.com>
8471
8472 * aspects.adb: New aspects Default_Value and Default_Component_Value
8473 New format of Aspect_Names table checks for omitted entries
8474 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
8475 handling of boolean aspects for derived types.
8476 New aspects Default_Value and Default_Component_Value
8477 New format of Aspect_Names table checks for omitted entries
8478 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
8479 (Has_Default_Value): New flag
8480 (Has_Default_Component_Value): New flag
8481 (Has_Default_Value): New flag
8482 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
8483 table.
8484 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
8485 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
8486 Default_Value and Default_Component_Value
8487 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
8488 New aspects Default_Value and Default_Component_Value
8489 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
8490 * sprint.adb: Print N_Aspect_Specification node when called from gdb
8491
84922011-08-02 Vincent Celier <celier@adacore.com>
8493
8494 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
8495 inherit library kind.
8496
84972011-08-02 Ed Schonberg <schonberg@adacore.com>
8498
8499 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
8500 Minor reformatting.
8501
85022011-08-02 Robert Dewar <dewar@adacore.com>
8503
8504 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
8505
85062011-08-02 Yannick Moy <moy@adacore.com>
8507
8508 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
8509
85102011-08-02 Robert Dewar <dewar@adacore.com>
8511
8512 * impunit.adb: Add comment.
8513
85142011-08-02 Yannick Moy <moy@adacore.com>
8515
8516 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
8517 qualification of aggregates in formal mode
8518 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
8519 another aggregate
8520 (Resolve_Aggregate): complete the test that an aggregate is adequately
8521 qualified in formal mode
8522
85232011-08-02 Pascal Obry <obry@adacore.com>
8524
8525 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
8526 * mlib-prj.adb: Supress warning when compiling binder generated file.
8527 (Build_Library): Supress all warnings when compiling the binder
8528 generated file.
8529
85302011-08-02 Yannick Moy <moy@adacore.com>
8531
8532 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
8533 from here...
8534 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
8535 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
8536 Add with/use clauses to make Check_Formal_Restriction visible
8537
85382011-08-02 Ed Schonberg <schonberg@adacore.com>
8539
8540 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
8541 in-parameters when type of the generic formal is private in the generic
8542 spec and non-private in the body.
8543
85442011-08-02 Claire Dross <dross@adacore.com>
8545
8546 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
8547 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
8548 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
8549 * impunit.adb, Makefile.rtl: Take new files into account.
8550
85512011-08-02 Robert Dewar <dewar@adacore.com>
8552
8553 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
8554 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
8555
85562011-08-02 Yannick Moy <moy@adacore.com>
8557
8558 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
8559 formal mode
8560 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
8561 matching static array bounds, taking into account the special case of
8562 string literals
8563 * sem_ch3.adb: Typo in comment.
8564
85652011-08-02 Yannick Moy <moy@adacore.com>
8566
8567 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
8568 which issues an error in formal mode if its argument node is originally
8569 from source
8570 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
8571 has a discriminant specification so that it does not include the case
8572 of derived types
8573 (Derived_Type_Declaration): move here the test that a derived type has a
8574 discriminant specification
8575 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
8576 first element of a component association before accessing its choices
8577 (presence of component association is not enough)
8578 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
8579 declaration is a library item before accessing the next element in a
8580 list, as library items are not member of lists
8581 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
8582 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
8583 Check_Formal_Restriction whenever possible.
8584
85852011-08-02 Ed Schonberg <schonberg@adacore.com>
8586
8587 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
8588 reference when needed.
8589
85902011-08-02 Bob Duff <duff@adacore.com>
8591
8592 * gnat_ugn.texi: Fix typo.
8593
85942011-08-02 Vincent Celier <celier@adacore.com>
8595
8596 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
8597 archive file name. Do not use the full path name of archives for Open
8598 VMS.
8599
86002011-08-02 Robert Dewar <dewar@adacore.com>
8601
8602 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
8603 Analyze_Aspect_Specifications
8604 * sem_ch13.adb
8605 (Analyze_Aspect_Specifications): New handling for boolean aspects
8606 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
8607 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
8608 sequence for Analyze_Aspect_Specifications
8609 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
8610 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
8611
86122011-08-02 Robert Dewar <dewar@adacore.com>
8613
8614 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
8615 aspects, since these no longer exist.
8616
86172011-08-02 Robert Dewar <dewar@adacore.com>
8618
8619 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
8620 semicolon, do not try to see if there are aspects following it.
8621 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
8622 aspect spec.
8623
86242011-08-02 Robert Dewar <dewar@adacore.com>
8625
8626 * sem_ch8.adb, aspects.ads: Minor reformatting.
8627
86282011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8629
8630 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
8631 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
8632 extracted from...
8633 (Analyze_Aspect_Specifications): ...here. Call above procedure.
8634
86352011-08-02 Yannick Moy <moy@adacore.com>
8636
8637 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
8638 mode on subprogram declaration outside of package specification, unless
8639 it is followed by a pragma Import
8640 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
8641 Access_Type_Declaration): issue error in formal mode on access type
8642 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
8643 incomplete type
8644 (Analyze_Object_Declaration): issue error in formal mode on object
8645 declaration which does not respect SPARK restrictions
8646 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
8647 declaration which does not respect SPARK restrictions
8648 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
8649 error in formal mode on digits or delta constraint
8650 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
8651 decimal fixed point type
8652 (Derived_Type_Declaration): issue error in formal mode on derived type
8653 other than type extensions of tagged record types
8654 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
8655 with check on access definition
8656 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
8657 mode on protected definition.
8658 (Analyze_Task_Definition): issue error in formal mode on task definition
8659
86602011-08-02 Robert Dewar <dewar@adacore.com>
8661
8662 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
8663
86642011-08-02 Javier Miranda <miranda@adacore.com>
8665
8666 * sem_ch6.adb (Can_Override_Operator): New function.
8667 (Verify_Overriding_Indicator): Add missing code to check overriding
8668 indicator in operators. Fixes regression.
8669 (Check_Overriding_Indicator): Minor reformating after replacing the
8670 code that evaluates if the subprogram can override an operator by
8671 invocations to the above new function.
8672 * einfo.adb
8673 (Write_Field26_Name): Add missing code to ensure that, following
8674 the documentation in einfo.ads, this field is not shown as attribute
8675 "Static_Initialization" on non-dispatching functions.
8676
86772011-08-02 Jose Ruiz <ruiz@adacore.com>
8678
8679 * sem_res.adb (Resolve_Call): A call to
8680 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
8681 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
8682 i.e., when the second parameter is of type Time_Span.
8683
86842011-08-02 Vincent Celier <celier@adacore.com>
8685
8686 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
8687 with an archive instead of -L<library dir> -l<library name>.
8688
86892011-08-02 Ed Schonberg <schonberg@adacore.com>
8690
8691 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
8692 mark the base types In_Use in addition to making the operations
8693 use_visible.
8694
86952011-08-02 Ed Falis <falis@adacore.com>
8696
8697 * init.c: add and setup __gnat_signal_mask for the exception signals
8698 * s-inmaop-vxworks.adb: new file.
8699 * s-intman-vxworks.adb: remove unnecessary initializations and
8700 simplify remaining
8701 * s-intman-vxworks.ads: remove unnecessary variable
8702 * s-taprop-vxworks.adb: simplify signal initialization
8703
87042011-08-02 Robert Dewar <dewar@adacore.com>
8705
8706 * sem_ch8.adb: Minor code reorganization, comment updates.
8707
87082011-08-02 Robert Dewar <dewar@adacore.com>
8709
8710 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
8711 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
8712 here from Sem_Res.
8713 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
8714 (Matching_Static_Array_Bounds): Moved here from Sem_Res
8715
87162011-08-02 Ed Schonberg <schonberg@adacore.com>
8717
8718 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
8719 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
8720 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
8721 use_type_clauses, to handle more efficiently use_type and use_all_type
8722 constructs.
8723 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
8724 Ada2012 Use_All_Type clause.
8725 (Use_Class_Wide_Operations): new procedure.
8726
87272011-08-02 Robert Dewar <dewar@adacore.com>
8728
8729 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
8730 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
8731 expression to expression function.
8732
87332011-08-02 Ed Schonberg <schonberg@adacore.com>
8734
8735 * sem_ch4.adb: transform simple Ada2012 membership into equality only
8736 if types are compatible.
8737
87382011-08-02 Yannick Moy <moy@adacore.com>
8739
8740 * sem_res.adb (Matching_Static_Array_Bounds): new function which
8741 returns True if its argument array types have same dimension and same
8742 static bounds at each index.
8743 (Resolve_Actuals): issue an error in formal mode on actuals passed as
8744 OUT or IN OUT paramaters which are not view conversions in SPARK.
8745 (Resolve_Arithmetic_Op): issue an error in formal mode on
8746 multiplication or division with operands of fixed point types which are
8747 not qualified or explicitly converted.
8748 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
8749 Boolean or array type (except String) operands.
8750 (Resolve_Equality_Op): issue an error in formal mode on equality
8751 operators for array types other than String with non-matching static
8752 bounds.
8753 (Resolve_Logical_Op): issue an error in formal mode on logical operators
8754 for array types with non-matching static bounds. Factorize the code in
8755 Matching_Static_Array_Bounds.
8756 (Resolve_Qualified_Expression): issue an error in formal mode on
8757 qualified expressions for array types with non-matching static bounds.
8758 (Resolve_Type_Conversion): issue an error in formal mode on type
8759 conversion for array types with non-matching static bounds
8760
87612011-08-02 Robert Dewar <dewar@adacore.com>
8762
8763 * par-ch10.adb: Minor code reorganization (use Nkind_In).
8764
87652011-08-02 Ed Schonberg <schonberg@adacore.com>
8766
8767 * par-ch9.adb: save location of entry for proper error message.
8768
87692011-08-02 Javier Miranda <miranda@adacore.com>
8770
8771 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
8772 (Use_Full_View) which permits this routine to climb through the
8773 ancestors using the full-view of private parents.
8774 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
8775 Use_Full_View to true in calls to Is_Ancestor.
8776 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
8777 true in call to Is_Ancestor.
8778 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
8779 Use_Full_View to true in call to Is_Ancestor.
8780 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
8781 call to Is_Ancestor.
8782 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
8783 Use_Full_View to true in calls to Is_Ancestor.
8784 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
8785 Make_Select_Specific_Data_Table, Register_Primitive,
8786 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
8787 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
8788 to true in call to Is_Ancestor.
8789 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
8790 Use_Full_View to true in calls to Is_Ancestor.
8791 * exp_cg.adb
8792 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
8793 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
8794
87952011-08-02 Robert Dewar <dewar@adacore.com>
8796
8797 * gnat_rm.texi: Minor reformatting.
8798 * sem_prag.adb: Minor reformatting.
8799
88002011-08-02 Tristan Gingold <gingold@adacore.com>
8801
8802 * vms_data.ads: Add VMS qualifier for -gnateP.
8803
88042011-08-02 Robert Dewar <dewar@adacore.com>
8805
8806 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
8807 * par-ch7.adb (P_Package): Proper placement of aspects for package
8808 decl/instantiation.
8809 * par-endh.adb (Check_End): Ad Is_Sloc parameter
8810 (End_Statements): Add Is_Sloc parameterr
8811 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
8812 (Check_End): Ad Is_Sloc parameter
8813 (End_Statements): Add Is_Sloc parameterr
8814
88152011-08-02 Vincent Celier <celier@adacore.com>
8816
8817 * ug_words: Add VMS qualifier equivalent to -gnateP:
8818 /SYMBOL_PREPROCESSING.
8819
88202011-08-02 Jose Ruiz <ruiz@adacore.com>
8821
8822 * gnat-style.texi: For hexadecimal numeric literals the typical
8823 grouping of digits is 4 to represent 2 bytes.
8824 A procedure spec which is split into several lines is indented two
8825 characters.
8826
88272011-08-02 Yannick Moy <moy@adacore.com>
8828
8829 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
8830 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
8831 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
8832 properly qualified
8833 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
8834 choice in array aggregate
8835 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
8836 mark as ancestor
8837 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
8838 positional and named aggregate for record, or others in record
8839 aggregate, or multiple choice in record aggregate
8840 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
8841 array operands to logical operations AND, OR and XOR do not have the
8842 same static lower and higher bounds
8843 * sem_ch5.adb, sinfo.ads: Correct typos in comments
8844
88452011-08-01 Robert Dewar <dewar@adacore.com>
8846
8847 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
8848 Replaces Last_Source_Node_In_Sequence.
8849 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
8850 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
8851 parens and blank in string (this was inconsistently implemented).
8852 * errout.ads
8853 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
8854 blank in string (this was inconsistently implemented).
8855 * gnat1drv.adb
8856 (Set_Global_Switches): Set formal mode switches appropriately
8857 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
8858 * par-prag.adb
8859 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
8860 call Set_Error_Msg_Lang to set "spark" as language name.
8861 * par.adb: Remove unnecessary call to set formal language for errout
8862 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
8863 appropriately and call Set_Error_Msg_Lang to set "spark" as language
8864 name.
8865 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
8866 calls to it, moved after resolution so that types are known
8867 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
8868 result of concatenation is not of type String
8869 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
8870 concatenation is not properly restricted
8871 * gnat_rm.texi: Add doc on pragma Spark_95.
8872 * gcc-interface/Makefile.in: Remove obsolete target pairs for
8873 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
8874 * gcc-interface/Make-lang.in: Update dependencies.
8875
88762011-08-01 Javier Miranda <miranda@adacore.com>
8877
8878 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
8879 condition that detects if the overridden operation must replace an
8880 existing entity.
8881
88822011-08-01 Javier Miranda <miranda@adacore.com>
8883
8884 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
8885 code declarations inserted by Insert_Actions in each alternative of the
8886 N_Case_Expression node.
8887
88882011-08-01 Robert Dewar <dewar@adacore.com>
8889
8890 * sem_ch6.adb: Minor code reorganization.
8891 * sem_util.adb: Minor reformatting.
8892
88932011-08-01 Pascal Obry <obry@adacore.com>
8894
8895 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
8896 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
8897
88982011-08-01 Yannick Moy <moy@adacore.com>
8899
8900 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
8901 literal or operator symbol which is prefixed
8902 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
8903 mode on access attributes.
8904 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
8905 that concatenation operands are properly restricted in formal mode
8906 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
8907 Analyze_Concatenation_Operand. Issue an error in formal mode if the
8908 result of the concatenation has a type different from String.
8909 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
8910 Analyze_Quantified_Expression, Analyze_Slice,
8911 Analyze_Null): issue an error in formal mode on unsupported constructs
8912 * sem_ch5.adb
8913 (Analyze_Block_Statement): only issue error on source block statement
8914 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
8915 function which returns the last node in a list of nodes for which
8916 Comes_From_Source returns True, if any
8917 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
8918 Last_Source_Node_In_Sequence
8919 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
8920 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
8921 mode on unsupported constructs
8922 * sem_ch9.adb Do not return after issuing error in formal mode, as the
8923 rest of the actions may be needed later on since the error is marked as
8924 not serious.
8925 * sinfo.ads: Typos in comments.
8926
89272011-08-01 Pascal Obry <obry@adacore.com>
8928
8929 * projects.texi: Minor editing.
8930
89312011-08-01 Yannick Moy <moy@adacore.com>
8932
8933 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
8934 insertion character ~~
8935 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
8936 (Set_Error_Msg_Lang): new procedure which fixes the language for use
8937 with insertion character ~~
8938 (Set_Msg_Text): treat insertion character ~~
8939 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
8940 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
8941 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
8942 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
8943 errors related to the formal language restriction not serious
8944 (insertion character |).
8945 * par.adb (Par): set formal language for error messages if needed
8946 * sem_ch6.adb (Check_Missing_Return): take into account possible
8947 generated statements at the end of the function
8948 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
8949 enumeration value to define a new pragma SPARK_95
8950 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
8951 SPARK_Version): new type and variables to store the SPARK version
8952 (none by default).
8953 (SPARK_Mode): return True when SPARK_Version is set
8954 * par-prag.adb: Correct indentation
8955 (Prag): take Pragma_SPARK_95 into account
8956 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
8957 into account.
8958
89592011-08-01 Robert Dewar <dewar@adacore.com>
8960
8961 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
8962 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
8963 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
8964
89652011-08-01 Pascal Obry <obry@adacore.com>
8966
8967 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
8968 Target_Name to Get_Path call.
8969 (Parse_Single_Project): Likewise.
8970 (Post_Parse_Context_Clause): Likewise.
8971 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
8972 Call Initialise_Project_Path with the proper Target_Name.
8973 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
8974 search path.
8975 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
8976 with the proper Target_Name.
8977 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
8978 Part.Parse routine.
8979 (Parse_Project_And_Apply_Config): Likewise.
8980 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
8981 This is fine as this part of the code is supporting only native
8982 compilation.
8983 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
8984 is fine as this part of the code is supporting only native compilation.
8985
89862011-08-01 Yannick Moy <moy@adacore.com>
8987
8988 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
8989 of homonym, unless the homonym is one of the cases allowed in SPARK
8990 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
8991 package declaration occurring after a body.
8992
89932011-08-01 Robert Dewar <dewar@adacore.com>
8994
8995 * checks.adb, exp_ch4.adb: Minor reformatting.
8996
89972011-08-01 Javier Miranda <miranda@adacore.com>
8998
8999 * einfo.ads (Access_Disp_Table): Fix documentation.
9000 (Dispatch_Table_Wrappers): Fix documentation.
9001
90022011-08-01 Pascal Obry <obry@adacore.com>
9003
9004 * prj-env.adb, prj-env.ads: Minor reformatting.
9005
90062011-08-01 Yannick Moy <moy@adacore.com>
9007
9008 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
9009 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
9010 procedures out of these packages.
2c7f9cc0 9011 * errout.ads, errout.adb
052e0603
AC
9012 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
9013 procedures in of this package
9014 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
9015 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
9016 on misplaced later vs initial declarations, like in Ada 83
9017 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
9018 formal mode on attribute of private type whose full type declaration
9019 is not visible
9020 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
9021 package declaration inside a package specification
9022 (Analyze_Full_Type_Declaration): issue error in formal mode on
9023 controlled type or discriminant type
9024 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
9025 user-defined operator means that it should come from the source
9026 (New_Overloaded_Entity): issue error in formal mode on overloaded
9027 entity.
9028 * sem_ch6.ads, sem_ch13.ads: typos in comments.
9029
90302011-08-01 Thomas Quinot <quinot@adacore.com>
9031
9032 * atree.adb: Minor reformatting.
9033 * checks.adb: Minor reformatting.
9034
90352011-08-01 Vincent Celier <celier@adacore.com>
9036
9037 * s-parame-vms-ia64.ads: Fix typo in comment
9038 Minor reformatting
9039 * s-parame-vms-restrict.ads: Removed, unused.
9040
90412011-08-01 Javier Miranda <miranda@adacore.com>
9042
9043 * exp_ch3.adb
9044 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
9045 * sem_ch3.adb
9046 (Constrain_Index): Remove side effects in the evaluation of the bounds.
9047 * sem_ch3.ads, sem_ch3.adb
9048 (Is_Constant_Bound): New extended version of the subprogram that was
9049 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
9050 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
9051 * sem_aux.ads (Constant_Value): Fix typo in comment.
9052 * checks.adb (Generate_Index_Checks): New implementation which, for
9053 array objects with constant bounds, generates the runtime check
9054 referencing the bounds of the array type. For other cases this routine
9055 provides its previous behavior obtaining such values from the array
9056 object.
9057 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
9058 parent type.
9059 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
9060 we cannot have semantic interpretations of the new node.
9061
90622011-08-01 Ed Schonberg <schonberg@adacore.com>
9063
9064 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
9065 expressions.
9066
90672011-08-01 Arnaud Charlet <charlet@adacore.com>
9068
9069 * sem_ch8.adb: Minor code editing.
9070 * s-vxwext.adb: Remove trailing space.
9071 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
9072 consistency with other files.
9073
90742011-08-01 Thomas Quinot <quinot@adacore.com>
9075
9076 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
9077
90782011-08-01 Ed Schonberg <schonberg@adacore.com>
9079
9080 * par-ch10.adb: reject parameterized expressions as compilation unit.
9081 * sem_ch4.adb: handle properly conditional expression with overloaded
9082 then_clause and no else_clause.
9083
90842011-08-01 Tristan Gingold <gingold@adacore.com>
9085
9086 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
9087 like done by System.Aux_DEC.
9088 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
9089
90902011-08-01 Yannick Moy <moy@adacore.com>
9091
9092 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
9093 missing label at end of declaration (subprogram or package)
9094 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
9095 of positional and named parameter association
9096 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
9097 Error_Msg_SP which adds a prefix to the error message giving the name
9098 of the formal language analyzed
9099 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
9100 access result type in subprogram, unconstrained array as result type,.
9101 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
9102 procedure
9103 * sem_ch8.adb: Code clean up.
9104
91052011-08-01 Javier Miranda <miranda@adacore.com>
9106
9107 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
9108 * einfo.ads (Access_Disp_Table): Fix documentation.
9109 (Dispatch_Table_Wrappers): Fix documentation.
9110 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
9111 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
9112 to enforce the documentation of this attribute.
9113 (Set_Is_Interface): Cleanup the assertion.
9114 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
9115 the Underlying_Type entity before reading attribute Access_Disp_Table.
9116 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
9117 Locate the Underlying_Type before reading attribute Access_Disp_Table.
9118 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
9119 the Underlying_Type entity before reading attribute Access_Disp_Table.
9120 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
9121 Locate the Underlying_Type entity before reading attribute
9122 Access_Disp_Table.
9123
91242011-08-01 Ed Schonberg <schonberg@adacore.com>
9125
9126 * s-poosiz.ads: Additional overriding indicators.
9127
91282011-08-01 Yannick Moy <moy@adacore.com>
9129
9130 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
9131 formal mode.
9132 (Analyze_Iteration_Scheme): issue error in formal mode when loop
9133 parameter specification does not include a subtype mark.
9134 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
9135 formal mode on abstract subprogram.
9136 (Analyze_Subprogram_Specification): issue error in formal mode on
9137 user-defined operator.
9138 (Process_Formals): issue error in formal mode on access parameter and
9139 default expression.
9140 * sem_ch9.adb (Analyze_Abort_Statement,
9141 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
9142 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
9143 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
9144 Analyze_Requeue, Analyze_Selective_Accept,
9145 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
9146 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
9147 issue error in formal mode on user-defined raise statement.
9148
91492011-08-01 Thomas Quinot <quinot@adacore.com>
9150
9151 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
9152 declaration being hidden when overriding an implicit inherited
9153 subprogram.
9154 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
9155 (-gnats), do not complain about a source file that contains only a
9156 pragma No_Body.
9157
91582011-08-01 Ed Schonberg <schonberg@adacore.com>
9159
9160 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
9161 variable if already set.
9162
91632011-08-01 Arnaud Charlet <charlet@adacore.com>
9164
9165 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
9166 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
9167 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
9168 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
9169 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
9170 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
9171 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
9172 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
9173 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
9174 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
9175 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
9176 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
9177 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
9178 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
9179 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
9180 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
9181 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
9182 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
9183 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
9184 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
9185 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
9186 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
9187 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
9188 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
9189 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
9190 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
9191 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
9192 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
9193 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
9194 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
9195 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
9196 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
9197 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
9198 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
9199 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
9200 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
9201 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
9202 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
9203 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
9204 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
9205 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
9206 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
9207 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
9208 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
9209 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
9210 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
9211 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
9212 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
9213 s-osinte-mingw.ads: Update to GPLv3 run-time license.
9214 Use GNAT instead of GNARL.
9215
92162011-08-01 Bob Duff <duff@adacore.com>
9217
9218 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
9219 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
9220 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
9221 reformatting.
9222
92232011-08-01 Yannick Moy <moy@adacore.com>
9224
9225 * debug.adb (d.D) reverve flag for the SPARK mode
9226 (d.E) reverve flag for SPARK generation mode
9227 (d.F) reverve flag for Why generation mode
2c7f9cc0 9228 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
052e0603
AC
9229 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
9230 functions which return True when the corresponding modes are set
9231 (Formal_Language): return "spark" or "alfa" when in formal verification
9232 mode.
9233 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
9234 Error_Msg to prefix the error message with a tag giving the formal
9235 language
9236 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
9237 message with a tag giving the formal language
9238 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
9239 block statement
9240 (Analyze_Case_Statement): issue error in formal mode on case statement
9241 with a single "others" case alternative
9242 (Analyze_Exit_Statement): issue errors in formal mode on exit
9243 statements which do not respect SPARK restrictions
9244 (Analyze_Goto_Statement): issue error in formal mode on goto statement
9245 (Check_Unreachable_Code): always issue an error (not a warning) in
9246 formal mode on unreachable code (concerns both code after an infinite
9247 loop and after an unconditional jump, both not allowed in SPARK)
9248 * sem_ch6.adb (Analyze_Return_Statement): add call to
9249 Set_Return_Present for a procedure containing a return statement
9250 (already done for functions in Analyze_Function_Return)
9251 (Analyze_Function_Return): issue error in formal mode on extended
9252 return or if return is not last statement in function
9253 (Check_Missing_Return): issue error in formal mode if function does
9254 not end with return or if procedure contains a return
9255 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
9256 function to detect if there is an inner scope of its parameter S which
9257 is a loop.
9258
92592011-08-01 Thomas Quinot <quinot@adacore.com>
9260
9261 * sem_ch6.ads: Minor reformatting.
9262
92632011-08-01 Javier Miranda <miranda@adacore.com>
9264
9265 * sem_util.adb (Abstract_Interface_List): Complete condition when
9266 processing private type declarations to avoid reading unavailable
9267 attribute.
9268 (Is_Synchronized_Tagged_Type): Complete condition when processing
9269 private extension declaration nodes to avoid reading unavailable
9270 attribute.
9271
92722011-08-01 Thomas Quinot <quinot@adacore.com>
9273
9274 * sem_ch3.adb: Minor reformatting.
9275
92762011-08-01 Thomas Quinot <quinot@adacore.com>
9277
9278 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
9279 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
9280 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
9281 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
9282 for VMS, instead parametrize the common implementation with
9283 System.Parameters declarations.
9284
92852011-08-01 Eric Botcazou <ebotcazou@adacore.com>
9286
9287 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
9288
92892011-08-01 Tristan Gingold <gingold@adacore.com>
9290
9291 * seh_init.c: Fix SEH handler installation on win64.
9292
92932011-08-01 Ed Schonberg <schonberg@adacore.com>
9294
9295 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
9296 double analysis of an anonymous access to subprogram, because it can
9297 lead to improper sharing of profiles and a back-end crash.
9298
92992011-08-01 Robert Dewar <dewar@adacore.com>
9300
9301 * make.adb, sem_ch4.adb: Minor reformatting.
9302 * gcc-interface/Make-lang.in: Update dependencies.
9303 * sem_util.adb, exp_ch5.adb: Minor reformatting.
9304
93052011-08-01 Arnaud Charlet <charlet@adacore.com>
9306
9307 * gnat_rm.texi: Fix definition of Long_Integer.
9308
93092011-08-01 Ed Schonberg <schonberg@adacore.com>
9310
9311 * exp_aggr.adb: check limit size of static aggregate unconditionally,
9312 to prevent storage exhaustion.
9313 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
9314 finalized is a function body, insert the cleanup code before the final
9315 return statement, to prevent spurious warnings.
9316 * s-pooglo.ads: add overriding indicator.
9317
93182011-08-01 Ed Schonberg <schonberg@adacore.com>
9319
9320 * sem_ch4.adb (Operator_Check): improve error message when both a
9321 with_clause and a use_clause are needed to make operator usage legal.
9322 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
9323 determine whether a compilation unit is visible within an other,
9324 either through a with_clause in the current unit, or a with_clause in
9325 its library unit or one one of its parents.
9326
93272011-08-01 Ed Schonberg <schonberg@adacore.com>
9328
9329 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
9330 over an arbitrary expression of an array or container type.
9331 * lib-xref.adb: clarify comment.
9332
93332011-08-01 Bob Duff <duff@adacore.com>
9334
9335 * einfo.ads: Minor reformatting.
9336 * debug.adb: Minor comment improvement.
9337
93382011-08-01 Javier Miranda <miranda@adacore.com>
9339
9340 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
9341 consider hidden subprograms as valid candidates.
9342
93432011-08-01 Arnaud Charlet <charlet@adacore.com>
9344
9345 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
9346
93472011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
9348
9349 * gnat_ugn.texi: Fix typo.
9350
93512011-08-01 Robert Dewar <dewar@adacore.com>
9352
9353 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
9354 lib-xref.adb: Minor reformatting
9355
93562011-08-01 Gary Dismukes <dismukes@adacore.com>
9357
9358 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
9359 when to generate a call to Move_Final_List.
9360 (Has_Controlled_Parts): Remove this function.
9361
93622011-08-01 Geert Bosch <bosch@adacore.com>
9363
9364 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
9365 "," in choice list.
9366
93672011-08-01 Thomas Quinot <quinot@adacore.com>
9368
9369 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
9370 explicit raise of a predefined exception as Comes_From_Source if the
9371 original N_Raise_Statement comes from source.
9372
93732011-08-01 Robert Dewar <dewar@adacore.com>
9374
9375 * sinfo.ads: Add comment.
9376 * sem_ch6.adb: Minor reformatting.
9377
93782011-08-01 Robert Dewar <dewar@adacore.com>
9379
9380 * freeze.adb (Freeze_Entity): Refine check for bad component size
9381 clause to avoid rejecting confirming clause when atomic/aliased present.
9382
93832011-08-01 Ed Schonberg <schonberg@adacore.com>
9384
9385 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
9386 better determine whether an entity reference is a write.
9387 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
9388 subcomponent.
9389 * lib-xref.adb (Output_References): Do no suppress a read reference at
9390 the same location as an immediately preceeding modify-reference, to
9391 handle properly in-out actuals.
9392
93932011-08-01 Tristan Gingold <gingold@adacore.com>
9394
9395 * env.c (__gnat_setenv) [VMS]: Refine previous change.
9396
93972011-08-01 Quentin Ochem <ochem@adacore.com>
9398
9399 * i-cstrin.adb (New_String): Changed implementation, now uses only the
9400 heap to compute the result.
9401
94022011-08-01 Robert Dewar <dewar@adacore.com>
9403
9404 * atree.ads: Minor reformatting.
9405
94062011-08-01 Emmanuel Briot <briot@adacore.com>
9407
9408 * g-expect.adb (Get_Command_Output): Fix memory leak.
9409
94102011-08-01 Geert Bosch <bosch@adacore.com>
9411
9412 * cstand.adb (P_Float_Type): New procedure to print the definition of
9413 predefined fpt types.
9414 (P_Mixed_Name): New procedure to print a name using mixed case
9415 (Print_Standard): Use P_Float_Type for printing floating point types
9416 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
9417 precision IEEE float.
9418
94192011-08-01 Thomas Quinot <quinot@adacore.com>
9420
9421 * sem_ch3.adb: Minor reformatting.
9422
94232011-08-01 Ed Schonberg <schonberg@adacore.com>
9424
9425 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
9426 the completion of a generic function, insert the new body rather than
9427 rewriting the original.
9428
94292011-08-01 Yannick Moy <moy@adacore.com>
9430
9431 * sinfo.ads, errout.ads: Typos in comments.
9432
94332011-08-01 Robert Dewar <dewar@adacore.com>
9434
9435 * par-endh.adb: Minor reformatting.
9436
94372011-08-01 Robert Dewar <dewar@adacore.com>
9438
9439 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
9440 (Pre_Post_Aspects): New subtype.
9441 * par-ch12.adb (P_Generic): New syntax for aspects in packages
9442 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
9443 * par-ch7.adb (P_Package): Remove Decl parameter
9444 (P_Package): Handle new syntax for aspects (before IS)
9445 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
9446 new aspect syntax
9447 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
9448 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
9449 (P_Package): Remove Decl parameter
9450 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
9451 aspects
9452 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
9453 specs
9454 * sem_util.ads, sem_util.adb (Static_Boolean): New function
9455 * sinfo.ads: Document new syntax for aspects in packages etc.
9456 * sprint.adb: Handle new syntax of aspects before IS in package
9457
94582011-08-01 Thomas Quinot <quinot@adacore.com>
9459
9460 * atree.ads: Minor reformatting.
9461 * sem_prag.adb: Minor reformatting.
9462
94632011-08-01 Robert Dewar <dewar@adacore.com>
9464
9465 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
9466 case expr alternative.
9467
94682011-08-01 Ed Schonberg <schonberg@adacore.com>
9469
9470 * sem_ch12.adb: Fix typo.
9471
94722011-08-01 Geert Bosch <bosch@adacore.com>
9473
9474 * sem_prag.adb (Check_No_Link_Name): New procedure.
9475 (Process_Import_Or_Interface): Use Check_No_Link_Name.
9476 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
9477 instead of Standard_Long_Long_Float_Size global. Preparation for
9478 eventual removal of per type constants.
9479 * exp_util.ads (Get_Stream_Size): New function returning the stream
9480 size value of subtype E.
9481 * exp_util.adb (Get_Stream_Size): Implement new function.
9482 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
9483 function.
9484 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
9485 * einfo.adb:
9486 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
9487
94882011-08-01 Geert Bosch <bosch@adacore.com>
9489
9490 * cstand.adb: Fix comments.
9491 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
9492 count of arguments.
9493
94942011-08-01 Robert Dewar <dewar@adacore.com>
9495
9496 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
9497
94982011-08-01 Geert Bosch <bosch@adacore.com>
9499
9500 * atree.ads: Fix comment.
9501
95022011-08-01 Robert Dewar <dewar@adacore.com>
9503
9504 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
9505 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
9506 * par.adb: Add with for Namet.Sp.
9507 * par-tchk.adb: Minor reformatting.
9508
95092011-08-01 Vincent Celier <celier@adacore.com>
9510
9511 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
9512 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
9513 of the init procedure of a SAL.
9514 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
9515 New procedure.
9516
95172011-08-01 Thomas Quinot <quinot@adacore.com>
9518
9519 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
9520 reformatting.
9521
95222011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9523
9524 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
9525
95262011-08-01 Thomas Quinot <quinot@adacore.com>
9527
9528 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
9529 conformant with its spec (return True only for types that have
9530 an overriding Initialize primitive operation that prevents them from
9531 having preelaborable initialization).
9532 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
9533 initialization for controlled types in Ada 2005 or later mode.
9534
95352011-08-01 Robert Dewar <dewar@adacore.com>
9536
9537 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
9538 Postcondition.
9539 (Same_Aspect): New function.
9540 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
9541 Type_Invariant, Precondition, Postcondition.
9542 * snames.ads-tmpl: Add Name_Type_Invariant.
9543
95442011-08-01 Robert Dewar <dewar@adacore.com>
9545
9546 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
9547 here.
9548 (Freeze_All_Ent): Fix error in handling inherited aspects.
9549 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
9550 already analyzed, but don't skip entire processing of a declaration,
9551 that's wrong in some cases of declarations being rewritten.
9552 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
9553 Don't delay for integer, string literals
9554 Treat predicates in usual manner for delay, remove special case code,
9555 not needed.
9556 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
9557 (Build_Predicate_Function): Update saved expression in aspect
9558 (Build_Invariant_Procedure): Update saved expression in aspect
9559 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
9560 of replacement of discriminant references if the reference is simple.
9561
95622011-08-01 Robert Dewar <dewar@adacore.com>
9563
9564 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
9565 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
9566 Static_Predicate and Dynamic_Predicate.
9567 (Build_Predicate_Function): Add processing for Static_Predicate
9568 and Dynamic_Predicate.
9569 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
9570 (From_Static_Predicate): New flag
9571 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
9572
95732011-08-01 Robert Dewar <dewar@adacore.com>
9574
9575 * usage.adb: Documentation cleanup for Ada version modes in usage.
9576 * expander.adb: Minor reformatting.
9577
95782011-08-01 Robert Dewar <dewar@adacore.com>
9579
9580 * atree.ads: Minor comment fix.
9581 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
9582 a-witeio.ads, sem_prag.adb: Minor reformatting.
9583
95842011-08-01 Doug Rupp <rupp@adacore.com>
9585
9586 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
9587 pointers. Use descrip.h header file for convenience. Add some
9588 comments.
9589
95902011-08-01 Robert Dewar <dewar@adacore.com>
9591
9592 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
9593 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
9594 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
9595 New procedure.
9596 (Check_Aspect_At_End_Of_Declarations): New procedure
9597 (Analye_Aspect_Specification): Minor changes for above procedures
9598 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
9599 specification node as well.
9600
96012011-08-01 Pascal Obry <obry@adacore.com>
9602
9603 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
9604 Windows files. Use GetFilesAttributes() in this case to check for file
9605 existence instead of returning with an error code.
9606
96072011-08-01 Vincent Celier <celier@adacore.com>
9608
9609 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
9610 High is above Source length.
9611
96122011-08-01 Robert Dewar <dewar@adacore.com>
9613
9614 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
9615
96162011-08-01 Robert Dewar <dewar@adacore.com>
9617
9618 * aspects.ads (Boolean_Aspects): New subtype.
9619 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
9620 for derived types in cases where the parent type and derived type have
9621 aspects.
9622 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
9623 with aspects when parent type also has aspects.
9624 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
9625 boolean expression at this point).
9626 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
9627 accordance with final decision on the Ada 2012 feature.
9628 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
9629
96302011-08-01 Matthew Heaney <heaney@adacore.com>
9631
9632 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
9633
96342011-08-01 Pascal Obry <obry@adacore.com>
9635
9636 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
9637 Fix Replace_Slice when High is above current string size.
9638 (Replace_Slice): Fix DL computation when High is above current
9639 string length.
9640
96412011-08-01 Gary Dismukes <dismukes@adacore.com>
9642
9643 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
9644
96452011-08-01 Matthew Heaney <heaney@adacore.com>
9646
9647 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
9648 of node.
9649
96502011-08-01 Pascal Obry <obry@adacore.com>
9651
9652 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
9653 reformatting.
9654
96552011-08-01 Ed Schonberg <schonberg@adacore.com>
9656
9657 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
9658 access to protected subprograms in generic bodies.
9659 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
9660 protected type, indicate that the convention of the subprogram is
9661 Convention_Protected, because it may be used in subsequent declarations
9662 within the protected declaration.
9663
96642011-08-01 Vincent Celier <celier@adacore.com>
9665
9666 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
9667 and "final" procedures when the name of the library is "ada", to avoid
9668 duplicate symbols "adainit" and "adafinal" in executables.
9669
96702011-08-01 Ed Schonberg <schonberg@adacore.com>
9671
9672 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
9673 quantified expression that appears within a postcondition and uses the
9674 Ada2012 'Result attribute.
9675
96762011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9677
9678 * init.c (__gnat_error_handler): Cast reason to int.
9679 (__gnat_install_handler): Explain sa_sigaction use.
9680
96812011-07-24 Eric Botcazou <ebotcazou@adacore.com>
9682
9683 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
9684 subprogram has copy-in copy-out parameters, try to promote the mode of
9685 the return type if it is passed in registers.
9686
96872011-07-24 Eric Botcazou <ebotcazou@adacore.com>
9688
9689 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
9690 left operand as addressable.
9691
96922011-07-24 Eric Botcazou <ebotcazou@adacore.com>
9693
9694 * gcc-interface/gigi.h (build_function_stub): Remove.
9695 (build_return_expr): Likewise.
9696 (convert_vms_descriptor): Declare.
9697 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
9698 (build_function_stub): Move to...
9699 * gcc-interface/utils2.c (build_return_expr): Move to...
9700 * gcc-interface/trans.c (build_function_stub): ...here.
9701 (build_return_expr): ...here.
9702 (Subprogram_Body_to_gnu): Add local variable for language_function.
9703 Disconnect the parameter attributes cache, if any, once done with it.
9704 Call end_subprog_body only after setting the end_locus.
9705 Build the stub associated with the function, if any, at the very end.
9706 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
9707 variables and streamline control flow.
9708
97092011-07-23 Arnaud Charlet <charlet@adacore.com>
9710
9711 PR ada/49819
9712 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
9713 g-trasym-dwarf.adb.
9714
97152011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9716
9717 PR bootstrap/49794
9718 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
9719 Assign to act.sa_sigaction.
9720 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
9721 current->return_address to char * before arithmetic.
9722
97232011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9724
9725 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
9726 Correct argument types.
9727 Extract code from reason.
9728 (__gnat_install_handler): Assign to act.sa_sigaction.
9729
97302011-07-21 Eric Botcazou <ebotcazou@adacore.com>
9731
9732 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
9733 (GNAT1_OBJS): ...here.
9734
97352011-07-15 Eric Botcazou <ebotcazou@adacore.com>
9736
9737 PR ada/48711
9738 * g-socthi-mingw.adb (Fill): Fix formatting.
9739
9740 * gcc-interface/gigi.h: Move around comment.
9741
97422011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9743
9744 PR ada/46350
9745 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
9746
97472011-07-14 Florian Weimer <fw@deneb.enyo.de>
9748
9749 PR ada/48711
9750 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
9751
97522011-07-13 Eric Botcazou <ebotcazou@adacore.com>
9753
9754 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
9755 range comparison if Pmode is SImode.
9756
97572011-07-12 Laurent GUERBY <laurent@guerby.net>
9758 Eric Botcazou <ebotcazou@adacore.com>
9759
9760 * adadecode.c: Wrap up in extern "C" block.
9761 * adadecode.h: Likewise.
9762 * adaint.c: Likewise. Remove 'const' keyword.
9763 * adaint.h: Likewise.
9764 * argv.c: Likewise.
9765 * atree.h: Likewise.
9766 * cio.c: Likewise.
9767 * cstreams.c: Likewise.
9768 * env.c: Likewise.
9769 * exit.c: Likewise.
9770 * fe.h: Likewise.
9771 * final.c: Likewise.
9772 * init.c: Likewise.
9773 * initialize.c: Likewise.
9774 * link.c: Likewise.
9775 * namet.h: Likewise.
9776 * nlists.h: Likewise.
9777 * raise.c: Likewise.
9778 * raise.h: Likewise.
9779 * repinfo.h: Likewise.
9780 * seh_init.c: Likewise.
9781 * targext.c: Likewise.
9782 * tracebak.c: Likewise.
9783 * uintp.h: Likewise.
9784 * urealp.h: Likewise.
9785 * xeinfo.adb: Wrap up generated C code in extern "C" block.
9786 * xsinfo.adb: Likewise.
9787 * xsnamest.adb: Likewise.
9788 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
9789 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
9790 * gcc-interface/misc.c: Likewise.
9791 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
9792 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
9793 ada/targext.o here...
9794 (GNAT_ADA_OBJS): ...and not here.
9795 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
9796 (GNATBIND_OBJS): Reorder.
9797
97982011-07-07 Richard Henderson <rth@redhat.com>
9799
9800 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
9801 dwarf2out_frame_init.
9802
98032011-07-07 Eric Botcazou <ebotcazou@adacore.com>
9804
9805 * gcc-interface/misc.c (gnat_init): Tweak previous change.
9806
98072011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9808
9809 PR target/39150
9810 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
9811
98122011-07-06 Richard Guenther <rguenther@suse.de>
9813
9814 * gcc-interface/misc.c (gnat_init): Merge calls to
9815 build_common_tree_nodes and build_common_tree_nodes_2.
9816 Re-initialize boolean_false_node.
9817
98182011-07-02 Eric Botcazou <ebotcazou@adacore.com>
9819 Olivier Hainque <hainque@adacore.com>
9820 Nicolas Setton <setton@adacore.com>
9821
9822 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
9823 the type according to the ARTIFICIAL_P parameter.
9824 (create_type_decl): Likewise.
9825 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
9826
98272011-07-01 Eric Botcazou <ebotcazou@adacore.com>
9828
9829 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
9830 (gnatbind): Likewise.
9831
98322011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9833
9834 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
9835
98362011-06-18 Eric Botcazou <ebotcazou@adacore.com>
9837
9838 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
9839 local variable throughout. Remove useless call to Base_Type.
9840 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
9841 Take it also into account for the volatileness of the field. Set the
9842 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
9843
98442011-06-18 Eric Botcazou <ebotcazou@adacore.com>
9845
9846 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
9847 on a dereference built for a by-ref object if it has an address clause.
9848
98492011-06-18 Eric Botcazou <ebotcazou@adacore.com>
9850
9851 * einfo.ads (Address_Taken): Document use for the second argument of
9852 Asm_Input and Asm_Output attributes.
9853 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
9854 argument is an entity name, then set Address_Taken on it.
9855 <Attribute_Asm_Output>: Likewise.
9856 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
9857 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
9858 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
9859 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
9860
98612011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
9862
9863 PR middle-end/46500
9864 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
9865
98662011-06-14 Joseph Myers <joseph@codesourcery.com>
9867
9868 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
9869 (ada/utils.o): Update dependencies.
9870 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
9871 ../../../libcpp/libcpp.a.
9872 * gcc-interface/utils.c: Include common/common-target.h.
9873 (process_attributes): Use targetm_common.have_named_sections.
9874
98752011-06-07 Richard Guenther <rguenther@suse.de>
9876
9877 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
9878 set_sizetype.
9879
98802011-06-06 Eric Botcazou <ebotcazou@adacore.com>
9881
9882 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
9883 TREE_THIS_NOTRAP flag.
9884
98852011-06-06 Eric Botcazou <ebotcazou@adacore.com>
9886
9887 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
9888 Fix thinko.
9889
98902011-06-06 Eric Botcazou <ebotcazou@adacore.com>
9891
9892 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
9893 constants whose full view has discriminants specially.
9894
98952011-06-06 Eric Botcazou <ebotcazou@adacore.com>
9896
9897 * gcc-interface/utils.c: Include diagnostic.h.
9898 (gnat_write_global_declarations): Output debug information for all
9899 global type declarations before finalizing the compilation unit.
9900 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
9901
99022011-05-25 Jakub Jelinek <jakub@redhat.com>
9903
9904 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
9905
99062011-05-25 Kai Tietz <ktietz@redhat.com>
9907
9908 * adaint.c (__gnat_to_canonical_file_list_next): Use array
9909 initialization instead of const/none-const pointer assignment.
9910
99112011-05-24 Joseph Myers <joseph@codesourcery.com>
9912
9913 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
9914 $(EXTRA_GNAT1_OBJS).
9915 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
9916 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
9917 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
9918 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
9919 libcommon-target.a instead of prefix.o.
9920
99212011-05-21 Joseph Myers <joseph@codesourcery.com>
9922
9923 PR ada/49097
9924 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9925
99262011-05-20 Joseph Myers <joseph@codesourcery.com>
9927
9928 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
9929 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
9930 instead of version.o.
9931
99322011-05-18 Kai Tietz <ktietz@redhat.com>
9933
9934 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
9935 boolean_false_node instead of integer_zero_node.
9936 (convert_with_check): Likewise.
9937 * gcc-interface/decl.c (choices_to_gnu): Likewise.
9938
99392011-05-12 Eric Botcazou <ebotcazou@adacore.com>
9940
9941 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
9942 type of the parameter is an unconstrained array, convert the actual to
9943 the type of the formal in the In Out and Out cases as well.
9944
99452011-05-11 Nathan Froyd <froydnj@codesourcery.com>
9946
9947 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
9948 call build_function_type_array or build_varargs_function_type_array
9949 instead.
9950 (create_subprog_type): Don't call build_function_type; call
9951 build_function_type_vec instead.
9952
99532011-05-11 Nathan Froyd <froydnj@codesourcery.com>
9954
9955 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
9956 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
9957 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
9958
99592011-05-07 Eric Botcazou <ebotcazou@adacore.com>
9960
9961 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
9962
9963 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
9964 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
9965
99662011-05-05 Nathan Froyd <froydnj@codesourcery.com>
9967
9968 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
9969
99702011-05-05 Nathan Froyd <froydnj@codesourcery.com>
9971
9972 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
9973 instead of accessing TYPE_ARG_TYPES directly.
9974 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
9975
99762011-05-05 Eric Botcazou <ebotcazou@adacore.com>
9977
9978 PR ada/48844
9979 * gcc-interface/gigi.h (get_variant_part): Declare.
9980 * gcc-interface/decl.c (get_variant_part): Make global.
9981 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
9982 types have the same constant size, are record types and T1 has a
9983 variant part while T2 doesn't.
9984
99852011-05-05 Eric Botcazou <ebotcazou@adacore.com>
9986
9987 * gcc-interface/utils.c (begin_subprog_body): Do not call
9988 get_pending_sizes.
9989 (end_subprog_body): Likewise.
9990
99912011-05-04 Richard Guenther <rguenther@suse.de>
9992
9993 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
9994 int_const_binop.
9995 (pos_to_constructor): Likewise.
9996
99972011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 9998 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
9999
10000 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
10001 of build_function_type. Adjust calls to...
10002 (build_raise_check): ...this. Do not take a void_tree parameter.
10003 Call build_function_type_list instead of build_function_type.
10004 Fix head comment and swap couple of conditional blocks.
10005
100062011-04-30 Eric Botcazou <ebotcazou@adacore.com>
10007
10008 * gnatvsn.ads (Library_Version): Bump to 4.7.
10009 (Current_Year): Bump to 2011.
10010
100112011-04-29 Michael Matz <matz@suse.de>
10012
10013 * gcc-interface/misc.c (gnat_handle_option): Set
10014 warn_maybe_uninitialized.
10015
100162011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
10017
10018 * gnat_ugn.texi (Complexity Metrics Control): Update link to
10019 the Watson/McCabe paper.
10020
100212011-04-23 Jim Meyering <meyering@redhat.com>
10022
10023 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
10024
100252011-04-22 Eric Botcazou <ebotcazou@adacore.com>
10026
10027 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
10028 onto the new type.
10029
100302011-04-22 Eric Botcazou <ebotcazou@adacore.com>
10031
10032 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
10033 parameter.
10034 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
10035 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
10036 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
10037 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
10038 <all>: Do not set flags on the reused DECL node coming from an alias.
10039 Set DECL_IGNORED_P on the DECL node built for subprograms if they
10040 don't need debug info here...
10041 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
10042 (gigi): Adjust calls to create_subprog_decl.
10043 (build_raise_check): Likewise.
10044 (establish_gnat_vms_condition_handler): Likewise.
10045 (Compilation_Unit_to_gnu): Likewise.
10046 (gnat_to_gnu): Likewise.
10047
100482011-04-21 Eric Botcazou <ebotcazou@adacore.com>
10049
10050 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
10051 (NO_REORDER_ADAFLAGS): New variable.
10052 (EXTRA_GNATTOOLS): Always define.
10053 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
10054 Clean up and adjust list of files compiled with special options.
10055 * gcc-interface/Make-lang.in: Likewise.
10056 (ada/decl.o): Cosmetical change.
10057 (ada/misc.o): Remove dependency on $(PLUGIN_H).
10058
100592011-04-20 Jim Meyering <meyering@redhat.com>
10060
10061 * initialize.c (__gnat_initialize): Remove useless if-before-free.
10062
100632011-04-17 Eric Botcazou <ebotcazou@adacore.com>
10064
10065 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
10066 $(CFLAGS) on the link line.
10067
100682011-04-17 Eric Botcazou <ebotcazou@adacore.com>
10069
10070 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
10071 padded type built for the return type if it is unconstrained.
10072
100732011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10074
10075 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
10076
100772011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10078
10079 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
10080 before calling TREE_CHAIN.
10081 * gcc-interface/misc.c (gnat_init_ts): New function.
10082 (LANG_HOOKS_INIT_TS): Define.
10083
100842011-04-12 Martin Jambor <mjambor@suse.cz>
10085
10086 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
10087 instead of cgraph_node.
10088
100892011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10090
10091 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
10092 alignment on fields of the RETURN type built for the Copy-In Copy-Out
10093 mechanism.
10094
100952011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10096
10097 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
10098 of aggregate types that contain a placeholder.
10099
101002011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10101
10102 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
10103 TYPE_ARG_TYPES.
10104 (handle_type_generic_attribute): Likewise.
10105
101062011-04-04 Eric Botcazou <ebotcazou@adacore.com>
10107
10108 PR ada/47163
10109 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
10110
101112011-04-04 Kai Tietz <ktietz@redhat.com>
10112
10113 PR ada/47163
10114 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
10115 to flag value.
10116
101172011-04-02 Eric Botcazou <ebotcazou@adacore.com>
10118
10119 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
10120 type case, do not strip a padding type around the array type.
10121
101222011-04-02 Eric Botcazou <ebotcazou@adacore.com>
10123
10124 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
10125 types.
10126
101272011-04-02 Eric Botcazou <ebotcazou@adacore.com>
10128
10129 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
10130 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
10131 code for -feliminate-unused-debug-types.
10132 (gnat_post_options): Likewise.
10133
101342011-04-02 Eric Botcazou <ebotcazou@adacore.com>
10135
10136 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
10137 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
10138 distinct copy.
10139
101402011-04-02 Eric Botcazou <ebotcazou@adacore.com>
10141
10142 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
10143 DECL_ARTIFICIAL flag on enumeration types.
10144
101452011-04-02 Eric Botcazou <ebotcazou@adacore.com>
10146
10147 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
10148 fat pointer types artificial unconditionally.
10149 <E_Array_Subtype>: Attach the base array type as a parallel type if it
10150 isn't artificial.
10151
101522011-04-02 Eric Botcazou <ebotcazou@adacore.com>
10153
10154 * gcc-interface/gigi.h (get_dummy_type): Declare.
10155 (build_dummy_unc_pointer_types): Likewise.
10156 (finish_fat_pointer_type): Likewise.
10157 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
10158 fat pointer type has been built, complete it in place.
10159 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
10160 and thin pointers. Remove useless variable.
10161 (finish_fat_pointer_type): Make global and move to...
10162 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
10163 (get_dummy_type): New function.
10164 (build_dummy_unc_pointer_types): Likewise.
10165 (gnat_pushdecl): Propage the name to the anonymous variants only.
10166 (update_pointer_to): Only adjust the pointer types in the unconstrained
10167 array case.
10168
101692011-04-02 Eric Botcazou <ebotcazou@adacore.com>
10170
10171 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
10172 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
10173 if this is a Taft amendment type and the full declaration is available.
10174 * gcc-interface/trans.c (process_type): Likewise.
10175 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
10176 (process_freeze_entity): Likewise.
10177 * gcc-interface/utils.c (dummy_global): New static variable.
10178 (gnat_write_global_declarations): If there are types declared as used
10179 at the global level, insert them in the global hash table.
10180
101812011-04-02 Eric Botcazou <ebotcazou@adacore.com>
10182
10183 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
10184 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
10185 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
10186 copy.
10187 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
10188 flag of the type accordingly.
10189 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
10190
101912011-04-02 Eric Botcazou <ebotcazou@adacore.com>
10192
10193 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
10194 finalizing types when updating the pointers to the designated type.
10195 <all>: Finalize the deferred types even if we didn't defer processing
10196 of incomplete types in this invocation.
10197
101982011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
10199 Nicolas Setton <setton@adacore.com>
10200 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
10201
10202 * gcc-interface/misc.c (gnat_descriptive_type): New function.
10203 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
10204
102052011-03-28 Kai Tietz <ktietz@redhat.com>
10206
10207 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
10208 Windows targets.
10209 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
10210 * system-mingw.ads (System): Change ZCX_By_Default default to True.
10211
10212 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
10213
102142011-03-28 Tristan Gingold <gingold@adacore.com>
10215
10216 PR ada/44431
10217 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
10218 Use ada output of gnatbind.
10219 (ada/b_gnatb.adb): Ditto.
10220 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
10221 (ada.mostlyclean, ada.stage1)
10222 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
10223 (ada.stagefeedback): Adjust.
10224 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
10225 Use ada output of gnatbind.
10226 (b_gnatm.adb): Ditto.
10227 (b_gnatl.o, b_gnatm.o): New rules.
10228
102292011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10230
10231 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
10232 for the padded type built to support a specified size or alignment.
10233
102342011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10235
10236 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
10237 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
10238 unconditionally to the end of the unit when the designated type is
10239 limited_with'ed.
10240 <all>: Rename local variable. Attempt to un-defer types only and do it
10241 for limited_with'ed types as well.
10242 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
10243 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
10244 consistently and remove redundant call to finalize_from_with_types.
10245
102462011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10247
10248 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
10249 subprograms without a previous spec declared in the same unit.
10250 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
10251 subprograms at the end of the unit instead of at the beginning.
10252 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
10253 isn't public for the special handling of non-inline functions nested
10254 inside inline external functions.
10255
102562011-03-25 Jeff Law <law@redhat.com>
10257
10258 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
10259
102602011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10261
10262 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
10263 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
10264 to compute Set_Size_Depends_On_Discriminant.
10265 (Layout_Type): Call it on array types in back-end layout mode.
10266 * sem_util.adb (Requires_Transient_Scope): Return true for array
10267 types only if the size depends on the value of discriminants.
10268 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
10269 type if the RHS is a call to a function that returns an unconstrained
10270 type with default discriminant.
10271
102722011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10273
10274 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
10275 non-conversion to the nominal result type at the end.
10276
102772011-03-23 Eric Botcazou <ebotcazou@adacore.com>
10278
10279 * gcc-interface/trans.c (create_temporary): New function taken from...
10280 (create_init_temporary): ...here. Call it.
10281 (call_to_gnu): Create the temporary for the return value early, if any.
10282 Create it for a function with copy-in/copy-out parameters if there is
10283 no target; in other cases of copy-in/copy-out, use another temporary.
10284 Push the new binding level lazily. Add and rename local variables.
10285
102862011-03-23 Eric Botcazou <ebotcazou@adacore.com>
10287
10288 * gcc-interface/decl.c (validate_size): Improve comments and tweak
10289 error message.
10290 (set_rm_size): Likewise.
10291
102922011-03-23 Eric Botcazou <ebotcazou@adacore.com>
10293
10294 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
10295 for the padded type built in order to support a specified alignment.
10296 Fix incorrect formatting.
10297
102982011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10299
10300 PR bootstrap/48216
10301 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
10302
103032011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10304
10305 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
10306 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
10307 to the end of the list. Adjust recursive call. Rename local variable.
10308 If REORDER is true, reorder components of the record type.
10309 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
10310 components_to_record and adjust the parameter list.
10311
103122011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10313
10314 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
10315 disabled, use the variable for bounds of loop iteration scheme.
10316
103172011-03-21 Kai Tietz <ktietz@redhat.com>
10318
10319 PR target/12171
10320 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
10321
103222011-03-17 Eric Botcazou <ebotcazou@adacore.com>
10323
10324 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
10325 out whether the expression is read-only. Short-circuit placeholder
10326 case and rename a couple of local variables.
10327
103282011-03-17 Eric Botcazou <ebotcazou@adacore.com>
10329
10330 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
10331 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
10332 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
10333 (convert): Deal with conversions from a smaller form type specially.
10334
103352011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10336
10337 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
10338 its argument, except for the special -I- switch.
10339
103402011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
10341
10342 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
10343 "Ada Issues".
10344
103452011-02-08 Eric Botcazou <ebotcazou@adacore.com>
10346
10347 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
10348
103492011-02-03 Eric Botcazou <ebotcazou@adacore.com>
10350
10351 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
10352 GNAT_FORMAL.
10353 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
10354 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
10355 instead of GNAT_FORMAL. Protect the expression against multiple uses.
10356 Do not generate the check directly, instead instantiate the template
10357 check present in the descriptor.
10358 (make_descriptor_field): Move around.
10359 (build_vms_descriptor32): Build a template check in the POINTER field.
10360 (build_vms_descriptor): Remove useless suffixes.
10361 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
10362
103632011-01-26 Eric Botcazou <ebotcazou@adacore.com>
10364
10365 PR bootstrap/47467
10366 * targext.c: Include target files if IN_RTS is defined.
10367
103682011-01-26 Richard Guenther <rguenther@suse.de>
10369
10370 PR bootstrap/47467
10371 * targext.c: Include config.h.
10372 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
10373 dependency.
10374
103752011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 10376 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
10377
10378 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
10379
103802011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10381
10382 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
10383 end-of-case on the end label and its associated gotos, if any.
10384
103852011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10386
10387 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
10388 expressions of the parameter cache within the statement group of
10389 the CICO mechanism.
10390
103912011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 10392 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
10393
10394 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
10395 (set_end_locus_from_node): New function.
10396 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
10397 make and the function end_locus.
10398 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
10399 for the elaboration subprogram.
10400 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
10401 set the end_locus of the expression as well.
10402
104032011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10404
10405 PR ada/47131
10406 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
10407 variables that are referenced in exception handlers volatile.
10408
10409
10410\f
10411Copyright (C) 2011 Free Software Foundation, Inc.
10412
10413Copying and distribution of this file, with or without modification,
10414are permitted in any medium without royalty provided the copyright
10415notice and this notice are preserved.
10416
10417 * gnat_rm.texi: Ramification of pragma Eliminate documentation
10418 - fix bugs in the description of Source_Trace;
10419 - get rid of UNIT_NAME;
10420
4fbad0ba
AC
104212011-08-02 Javier Miranda <miranda@adacore.com>
10422
10423 * exp_ch9.adb
10424 (Build_Dispatching_Requeue): Adding support for VM targets
10425 since we cannot directly reference the Tag entity.
10426 * exp_sel.adb (Build_K): Adding support for VM targets.
10427 (Build_S_Assignment): Adding support for VM targets.
10428 * exp_disp.adb
10429 (Default_Prim_Op_Position): In VM targets do not restrict availability
10430 of predefined interface primitives to compiling in Ada 2005 mode.
10431 (Is_Predefined_Interface_Primitive): In VM targets this service is not
10432 restricted to compiling in Ada 2005 mode.
10433 (Make_VM_TSD): Generate code that declares and initializes the OSD
10434 record. Needed to support dispatching calls through synchronized
10435 interfaces.
10436 * exp_ch3.adb
10437 (Make_Predefined_Primitive_Specs): Enable generation of predefined
10438 primitives associated with synchronized interfaces.
10439 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
10440 primitives associated with synchronized interfaces.
10441
104422011-08-02 Yannick Moy <moy@adacore.com>
10443
10444 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
10445 statements hidden in SPARK if preceded by the HIDE directive
10446 (Parse_Exception_Handlers): mark each exception handler in a sequence of
10447 exception handlers as hidden in SPARK if preceded by the HIDE directive
10448 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
10449 if starting with the HIDE directive
10450 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
10451 starting with the HIDE directive; mark the declarations in a private
10452 part as hidden in SPARK if the private part starts with the HIDE
10453 directive
10454 * restrict.adb, restrict.ads
10455 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
10456 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
10457 argument node belongs to a part which is hidden in SPARK
10458 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
10459 parts in SPARK; protect the possibly costly call to
10460 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
10461 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
10462 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
10463 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
10464 Tok_SPARK_Hide.
10465 (Scan): recognize special comment starting with '#' and followed by
10466 SPARK keyword "hide" as a HIDE directive.
10467
104682011-08-02 Yannick Moy <moy@adacore.com>
10469
10470 * types.ads, erroutc.ads: Minor reformatting.
10471
104722011-08-02 Vincent Celier <celier@adacore.com>
10473
10474 * link.c: Add response file support for cross platforms.
10475
6ff6152d
ES
104762011-08-02 Ed Schonberg <schonberg@adacore.com>
10477
10478 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
10479 in an association, set parent field of copy before partial analysis.
10480 * sem_res.adb (Resolve_Slice): create reference to itype only when
10481 expansion is enabled.
10482
975c6896
YM
104832011-08-02 Yannick Moy <moy@adacore.com>
10484
10485 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
10486 for new flag denoting which subprogram bodies are in ALFA
10487 * restrict.adb, sem_ch7.adb: Update comment
10488 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
10489 sem_ch9.adb, sem_res.adb: Add calls to
10490 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
10491 * sem_ch6.adb (Analyze_Function_Return): add calls to
10492 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
10493 middle of the body, and extended return.
10494 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
10495 False when missing return.
10496 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
10497 to True for subprograms whose spec is in ALFA. Remove later on the flag
10498 on the entity used for a subprogram body when there exists a separate
10499 declaration.
10500 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
10501 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
10502 False, otherwise do nothing.
10503
afc8324d
AC
105042011-08-02 Robert Dewar <dewar@adacore.com>
10505
10506 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
10507
105082011-08-02 Yannick Moy <moy@adacore.com>
10509
10510 * sem_ch4.ads: minor formatting.
10511
2ba431e5
YM
105122011-08-02 Yannick Moy <moy@adacore.com>
10513
10514 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
10515 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
10516 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
10517 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
10518 opt.ads: cleanup of SPARK mode
10519
0f853035
YM
105202011-08-02 Yannick Moy <moy@adacore.com>
10521
10522 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
10523 types.
10524 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
10525 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
10526 * sem_ch3.adb
10527 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
10528 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
10529 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
10530 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
10531 types.
10532 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
10533 non-static range.
10534 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
10535 functions whose return type is not in ALFA.
10536 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
10537 specifications.
10538 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
10539 parameter's type is not in ALFA.
10540 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
10541 types are in ALFA.
10542
d2b10647
ES
105432011-08-02 Ed Schonberg <schonberg@adacore.com>
10544
10545 * sem_ch6 (Analyze_Expression_Function): treat the function as
10546 Inline_Always, and introduce a subprogram declaration for it when it is
10547 not a completion.
10548 * inline.adb (Add_Inlined_Body): recognize bodies that come from
10549 expression functions, so that the back-end can determine whether they
10550 can in fact be inlined.
10551 * sem_util.adb (Is_Expression_Function): predicate to determine whether
10552 a function body comes from an expression function.
10553
c7b9d548
AC
105542011-08-02 Gary Dismukes <dismukes@adacore.com>
10555
10556 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
10557 null exclusions to test Can_Never_Be_Null on the anonymous access types
10558 of the formals rather than testing the formals themselves. Exclude this
10559 check in cases where the Old_Formal is marked as a controlling formal,
10560 to avoid issuing spurious errors for bodies completing dispatching
10561 operations (due to the flag not getting set on controlling access
10562 formals in body specs).
10563 (Find_Corresponding_Spec): When checking full and subtype conformance of
10564 subprogram bodies in instances, pass Designated and E in that order, for
10565 consistency with the expected order of the formals (New_Id followed by
10566 Old_Id).
10567
105682011-08-02 Robert Dewar <dewar@adacore.com>
10569
10570 * sem_ch8.adb: Minor reformatting.
10571
1138cf59
AC
105722011-08-02 Ed Schonberg <schonberg@adacore.com>
10573
10574 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
10575 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
10576 primitive operations of class-wide actuals.
10577
105782011-08-02 Javier Miranda <miranda@adacore.com>
10579
10580 * exp_atag.ads, exp_atag.adb
10581 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
10582 since its value is implicitly passed in argument Typ.
10583 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
10584 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
10585 Build_Common_Dispatching_Select_Statements.
10586
7b9db926
RD
105872011-08-02 Robert Dewar <dewar@adacore.com>
10588
10589 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
10590 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
10591 Minor reformatting.
10592
e8374e7a
AC
105932011-08-02 Robert Dewar <dewar@adacore.com>
10594
10595 * sem_res.adb: Minor reformatting.
10596 * sem_prag.adb: Minor reformatting.
10597
105982011-08-02 Javier Miranda <miranda@adacore.com>
10599
10600 * exp_atag.adb, exp_atags.ads
10601 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
10602 by the tagged type Entity. Required to use this routine in the VM
10603 targets since we do not have available the Tag entity in the VM
10604 platforms.
10605 * exp_ch6.adb
10606 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
10607 Ada.Tags has not been previously loaded.
10608 * exp_ch7.adb
10609 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
10610 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
10611 * sem_aux.adb
10612 (Enclosing_Dynamic_Scope): Add missing support to handle the full
10613 view of enclosing scopes. Required to handle enclosing scopes that
10614 are synchronized types whose full view is a task type.
10615 * exp_disp.adb
10616 (Build_VM_TSDs): Minor code improvement to avoid generating and
10617 analyzing lists with empty nodes.
10618 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
10619 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
10620 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
10621 (Make_Disp_Timed_Select_Body): Add support for VM targets.
10622 (Make_Select_Specific_Data_Table): Add support for VM targets.
10623 (Make_VM_TSD): Generate code to initialize the SSD structure of
10624 the TSD.
10625
106262011-08-02 Yannick Moy <moy@adacore.com>
10627
10628 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
10629 cross-references section in ALI.
10630 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
10631 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
10632 Sub).
10633 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
10634 subprogram or package entity of a node
10635 (Is_Local_Reference_Type): new function returns True for references
10636 selected in local cross-references.
10637 (Lt): function extracted from Lt in Output_References
10638 (Write_Entity_Name): function extracted from Output_References
10639 (Generate_Definition): generate reference with type 'D' for definition
10640 of objects (object declaration and parameter specification), with
10641 appropriate locations and units, for use in local cross-references.
10642 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
10643 references of type 'I' for initialization in object definition.
10644 (Output_References): move part of function Lt and procedure
10645 Write_Entity_Name outside of the body. Ignore references of types 'D'
10646 and 'I' introduced for local cross-references.
10647 (Output_Local_References): new procedure to output the local
10648 cross-references sections.
10649 (Lref_Entity_Status): new array defining whether an entity is a local
10650 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
10651 with 'I' type when initialization expression is present.
10652 * get_scos.adb, get_scos.ads: Correct comments and typos
10653
1f6439e3
AC
106542011-08-02 Javier Miranda <miranda@adacore.com>
10655
10656 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
10657 the JVM target.
10658 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
10659 the JVM target.
10660 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
10661 TSD support.
10662
106632011-08-02 Vincent Celier <celier@adacore.com>
10664
10665 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
10666 (No_Space_Img): New function
10667 (Find_Excluded_Sources): When reading from a file, record the file name
10668 and the line number for each excluded source.
10669 (Mark_Excluded_Sources): When reporting an error, if the excluded
10670 sources were read from a file, include file name and line number in
10671 the error message.
10672
106732011-08-02 Ed Schonberg <schonberg@adacore.com>
10674
10675 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
10676
ab027d28
RD
106772011-08-02 Robert Dewar <dewar@adacore.com>
10678
10679 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
10680
b3b28b0c
JM
106812011-08-02 Javier Miranda <miranda@adacore.com>
10682
10683 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
10684 generation of TSDs to the DOTNET compiler.
10685 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
10686 generation of TSDs to the DOTNET compiler.
10687
9732e886
JM
106882011-08-02 Javier Miranda <miranda@adacore.com>
10689
10690 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
10691 record of all the tagged types declared inside library level package
10692 declarations, library level package bodies or library level subprograms.
10693 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
10694 associated with a given tagged type.
10695 (Build_VM_TSDs): New subprogram.
10696 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
10697 compilation units that are subprograms.
10698 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
10699 compilation units that are package bodies.
10700 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
10701 units that are a package declaration or a package instantiation.
10702 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
10703 reorganization to improve the error generated by the frontend when the
10704 function Ada.Tags.Secondary_Tag is not available.
10705 * rtsfind.ads (RE_Register_TSD): New runtime entity.
10706 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
10707
e526d0c7
AC
107082011-08-02 Javier Miranda <miranda@adacore.com>
10709
10710 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
10711
107122011-08-02 Robert Dewar <dewar@adacore.com>
10713
10714 * s-imenne.ads: Minor reformatting.
10715
107162011-08-02 Robert Dewar <dewar@adacore.com>
10717
10718 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
10719 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
10720 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
10721
107222011-08-02 Robert Dewar <dewar@adacore.com>
10723
10724 * einfo.ads (Materialize_Entity): Document this is only for renamings
10725 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
10726 required debug information in the case where we transform the object
10727 declaration into a renaming declaration.
10728 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
10729 object
10730 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
10731 Materialize_Entity.
10732
5b1e6aca
RD
107332011-08-02 Robert Dewar <dewar@adacore.com>
10734
10735 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
10736 Suppress_Init_Procs.
10737 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
10738 Suppress_Initialization/Initialization_Suppressed.
10739 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
10740 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
10741 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
10742 * sem_prag.adb: New processing for pragma Suppress_Initialization.
10743
5ad4969d
RD
107442011-08-02 Robert Dewar <dewar@adacore.com>
10745
10746 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
10747 Minor reformatting.
10748
8c4ee6f5
AC
107492011-08-02 Ed Schonberg <schonberg@adacore.com>
10750
10751 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
10752 only have inheritable classwide pre/postconditions.
10753
107542011-08-02 Javier Miranda <miranda@adacore.com>
10755
10756 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
10757 * rtsfind.ads (RE_Check_TSD): New runtime entity.
10758 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
10759 checks if the external tag of a type is the same as the external tag
10760 of some other declaration.
10761
0b3d16c0
AC
107622011-08-02 Thomas Quinot <quinot@adacore.com>
10763
10764 * s-taskin.ads: Minor reformatting.
10765
107662011-08-02 Emmanuel Briot <briot@adacore.com>
10767
10768 * g-comlin.adb (Display_Help): swap the order in which it prints the
10769 short help and the general usage.
10770
107712011-08-02 Ed Schonberg <schonberg@adacore.com>
10772
10773 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
10774 the aspect declarations and attach them to the generic copy for
10775 subsequent analysis.
10776 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
10777 declarations of the generic tree to the new subprogram declarations.
10778 * sem_attr.adb (Check_Precondition_Postcondition): recognize
10779 conditions that apply to a subprogram instance.
10780
107812011-08-02 Robert Dewar <dewar@adacore.com>
10782
10783 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
10784
107852011-08-02 Ed Schonberg <schonberg@adacore.com>
10786
10787 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
10788 private type with a tagged full view is not derived in the immediate
10789 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
10790
4637729f
AC
107912011-08-02 Robert Dewar <dewar@adacore.com>
10792
10793 * exp_ch4.adb: Minor reformatting.
10794
107952011-08-02 Ed Schonberg <schonberg@adacore.com>
10796
10797 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
10798 Ada2012 iterator, the loop will be rewritten during expansion into a
10799 while loop with a cursor and an element declaration. Do not analyze the
10800 body in this case, because if the container is for indefinite types the
10801 actual subtype of the elements will only be determined when the cursor
10802 declaration is analyzed.
10803
108042011-08-02 Arnaud Charlet <charlet@adacore.com>
10805
10806 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
10807 size/alignment related attributes in CodePeer_Mode.
10808
108092011-08-02 Gary Dismukes <dismukes@adacore.com>
10810
10811 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
10812 Prepend_Element, since this can result in the operation getting the
10813 wrong slot in the full type's dispatch table if the full type has
10814 inherited operations. The incomplete type's operation will get added
10815 to the proper position in the full type's primitives
10816 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
10817 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
10818 dispatching operations, since there are cases where nonprimitive
10819 subprograms can get added to the list of incomplete dependents (such
10820 as subprograms in nested packages).
10821 * sem_ch6.adb (Process_Formals): First, remove test for being in a
10822 private part when determining whether to add a primitive with a
10823 parameter of a tagged incomplete type to the Private_Dependents list.
10824 Such primitives can also occur in the visible part, and should not have
10825 been excluded from being private dependents.
10826 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
10827 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
10828 list of a Taft-amendment incomplete type is a primitive before issuing
10829 an error that the full type must appear in the same unit. There are
10830 cases where nonprimitives can be in the list (such as subprograms in
10831 nested packages).
10832 * sem_disp.adb (Derives_From): Use correct condition for checking that
10833 a formal's type is derived from the type of the corresponding formal in
10834 the parent subprogram (the condition was completely wrong). Add
10835 checking that was missing for controlling result types being derived
10836 from the result type of the parent operation.
10837
4c60de0c
YM
108382011-08-02 Yannick Moy <moy@adacore.com>
10839
10840 * errout.adb (First_Node): minor renaming
10841 * restrict.adb (Check_Formal_Restriction): put restriction warning on
10842 first node.
10843
f5afb270
AC
108442011-08-02 Yannick Moy <moy@adacore.com>
10845
10846 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
10847 before accessing operands.
10848 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
10849 decide whether an initialization expression respects SPARK rules, as
10850 the plain node is the expanded one. This allows for more valid warnings
10851 to be issued.
10852 * gnat_rm.texi: Minor update.
10853
108542011-08-02 Arnaud Charlet <charlet@adacore.com>
10855
10856 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
10857 previous change.
10858
108592011-08-02 Robert Dewar <dewar@adacore.com>
10860
10861 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
10862
108632011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
10864
10865 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
10866 loop statements and the element renaming declaration with a block when
10867 the element type is controlled.
10868
108692011-08-02 Yannick Moy <moy@adacore.com>
10870
10871 * sinfo.ads: Minor formatting.
10872
108732011-08-02 Ed Schonberg <schonberg@adacore.com>
10874
10875 * sem_aggr.adb (Add_Association): if the association has a box and no
10876 expression, use the Sloc of the aggregate itself for the new
10877 association.
10878 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
10879 the Original_Node.
10880
db72f10a
AC
108812011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
10882
10883 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
10884 When a container is provided via a function call, generate a renaming
10885 of the function result. This avoids the creation of a transient scope
10886 and the premature finalization of the container.
10887 * exp_ch7.adb (Is_Container_Cursor): Removed.
10888 (Wrap_Transient_Declaration): Remove the supression of the finalization
10889 of the list controller when the declaration denotes a container cursor,
10890 it is not needed.
10891
108922011-08-02 Yannick Moy <moy@adacore.com>
10893
10894 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
10895 node is from source, instead of the original node being from source.
10896 * sem_aggr.adb
10897 (Resolve_Array_Aggregate): refine the check for a static expression, to
10898 recognize also static ranges
10899 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
10900 Array_Type_Declaration): postpone the test for the type being a subtype
10901 mark after the type has been resolved, so that component-selection and
10902 expanded-name are discriminated.
10903 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
10904 to distinguish the case of an iteration scheme, so that an error is
10905 issed on a non-static range in SPARK except in an iteration scheme.
10906 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
10907 In_Iter_Schm = True.
10908 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
10909 user-defined operators so that they are allowed in renaming
10910 * sem_ch8.adb
10911 (Find_Selected_Component): refine the check for prefixing of operators
10912 so that they are allowed in renaming. Move the checks for restrictions
10913 on selector name after analysis discriminated between
10914 component-selection and expanded-name.
10915 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
10916 concatenation argument of string type if it is static.
10917 * sem_util.adb, sem_util.ads
10918 (Check_Later_Vs_Basic_Declarations): add a new function
10919 Is_Later_Declarative_Item to decice which declarations are allowed as
10920 later items, in the two different modes Ada 83 and SPARK. In the SPARK
10921 mode, add that renamings are considered as later items.
10922 (Enclosing_Package): new function to return the enclosing package
10923 (Enter_Name): correct the rule for homonyms in SPARK
10924 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
10925 from source (result of expansion) to avoid issuing wrong warnings.
10926
109272011-08-02 Ed Schonberg <schonberg@adacore.com>
10928
10929 * errout.adb: On anything but an expression First_Node returns its
10930 argument.
10931
23685ae6
AC
109322011-08-02 Pascal Obry <obry@adacore.com>
10933
10934 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
10935
109362011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
10937
10938 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
10939 Set the associated loop as the related expression of internally
10940 generated cursors.
10941 * exp_ch7.adb (Is_Container_Cursor): New routine.
10942 (Wrap_Transient_Declaration): Supress the finalization of the list
10943 controller when the declaration denotes a container cursor.
10944
109452011-08-02 Yannick Moy <moy@adacore.com>
10946
10947 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
10948 command line now.
10949 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
10950 expression is a simple expression. This check cannot be performed in
10951 the semantics, so just drop it.
10952 (P_Index_Or_Discriminant_Constraint): move check that the index or
10953 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
10954 semantics. Other cases were previously checked in the semantics.
10955 * par-ch4.adb (P_Name): move checks that a selector name is not
10956 character literal or an operator symbol to Find_Selected_Component in
10957 the semantics
10958 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
10959 declarations are not placed after later declarations in a separate
10960 procedure in Sem_Util (possibly not the best choice?), to be used both
10961 during parsing, for Ada 83 mode, and during semantic analysis, for
10962 SPARK mode.
10963 * par-endh.adb (Check_End): move check that end label is not missing
10964 to Process_End_Label in the semantics
10965 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
10966 the special case for SPARK restriction
10967 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
10968 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
10969 parameter Force to issue the error message even on internal node (used
10970 for generated end label). Call Check_Restriction to check when an error
10971 must be issued. In SPARK mode, issue an error message even if the
10972 restriction is not set.
10973 (Check_Restriction): new procedure with an additional out parameter to
10974 inform the caller that a message has been issued
10975 * sem_aggr.adb: Minor modification of message
10976 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
10977 instead of issuing an error message directly
10978 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
10979 declarations are not placed after later declarations, by calling
10980 Check_Later_Vs_Basic_Declarations
10981 (Analyze_Subtype_Declaration): move here the check that an index or
10982 discriminant constraint must be a subtype mark. Change the check that
10983 a subtype of String must start at one so that it works on subtype marks.
10984 * sem_ch4.adb (Analyze_Call): move here the check that a named
10985 association cannot follow a positional one in a call
10986 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
10987 instead of issuing an error message directly
10988 * sem_ch8.adb (Find_Selected_Component): move here the check that a
10989 selector name is not a character literal or an operator symbol. Move
10990 here the check that the prefix of an expanded name cannot be a
10991 subprogram or a loop statement.
10992 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
10993 procedure called from parsing and semantics to check that basic
10994 declarations are not placed after later declarations
10995 (Process_End_Label): move here the check that end label is not missing
10996
109972011-08-02 Arnaud Charlet <charlet@adacore.com>
10998
10999 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
11000 representation clause in codepeer mode, since it confuses CodePeer and
11001 does not bring useful info.
11002
110032011-08-02 Ed Falis <falis@adacore.com>
11004
11005 * init.c: initialize fp hw on MILS.
11006
110072011-08-02 Ed Schonberg <schonberg@adacore.com>
11008
11009 * errout.adb (First_Node): for bodies, return the node itself (small
11010 optimization). For other nodes, do not check source_unit if the node
11011 comes from Standard.
11012
d2d9cc22
AC
110132011-08-02 Robert Dewar <dewar@adacore.com>
11014
11015 * exp_ch3.adb: Minor comment additions.
11016 * sem_ch13.adb: Minor reformatting.
11017
110182011-08-02 Pascal Obry <obry@adacore.com>
11019
11020 * make.adb, makeutl.adb: Removes some superfluous directory separator.
11021
a01b9df6
AC
110222011-08-02 Robert Dewar <dewar@adacore.com>
11023
11024 * sem_attr.adb: Minor reformatting.
11025
110262011-08-02 Robert Dewar <dewar@adacore.com>
11027
11028 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
11029 (Has_Default_Component_Value): Removed
11030 * einfo.ads Comment updates
11031 (Has_Default_Aspect): Replaces Has_Default_Value
11032 (Has_Default_Component_Value): Removed
11033 * exp_ch13.adb
11034 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
11035 * exp_ch3.adb
11036 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
11037 (Get_Simple_Init_Val): Handle Default_Value aspect
11038 (Needs_Simple_Initialization): Handle Default_Value aspect
11039 * exp_ch3.ads: Needs_Simple_Initialization
11040 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
11041 * par-prag.adb (Pragma_Default[_Component]Value) Removed
11042 * sem_ch13.adb
11043 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
11044 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
11045 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
11046
110472011-08-02 Ed Schonberg <schonberg@adacore.com>
11048
11049 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
11050 package containing iteration primitives.
11051 exp_ch5.adb (Expand_Iterator_Loop): ditto.
11052
75c90775
AC
110532011-08-02 Ed Schonberg <schonberg@adacore.com>
11054
11055 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
11056 "of", pre-analyze expression in case it is a function call with
11057 finalization actions that must be placed ahead of the loop.
11058 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
11059 on an Ada2012 iterator, insert them ahead of the rewritten loop.
11060
110612011-08-02 Geert Bosch <bosch@adacore.com>
11062
11063 * cstand.adb (Create_Float_Types): Only consider C's long double for
11064 Long_Long_Float, in addition to double.
11065
ded8909b
AC
110662011-08-02 Robert Dewar <dewar@adacore.com>
11067
11068 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
11069 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
11070 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
11071 Minor reformatting.
11072
110732011-08-02 Ed Schonberg <schonberg@adacore.com>
11074
11075 * sem_attr.adb: handle properly 'Result when it is a prefix of an
11076 indexed component.
11077
110782011-08-02 Javier Miranda <miranda@adacore.com>
11079
11080 * einfo.ads, einfo.adb
11081 (Original_Access_Type): Move this attribute to Node26 since there was
11082 an undocumented use of Node21 in E_Access_Subprogram_Type entities
11083 which causes conflicts and breaks the generation of the .NET compiler.
11084 (Interface_Name): Add missing documentation on JGNAT only uses of
11085 this attribute.
11086
70c34e1c
AC
110872011-08-02 Geert Bosch <bosch@adacore.com>
11088
11089 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
11090 (Find_Back_End_Float_Type): Likewise
11091 (Create_Back_End_Float_Types): Likewise
11092 (Create_Float_Types): Likewise
11093 (Register_Float_Type): Likewise
11094 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
11095 Nlist and split out type selection in new local Find_Base_Type function.
11096 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
11097 Nlist
11098 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
11099
111002011-08-02 Robert Dewar <dewar@adacore.com>
11101
11102 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
11103 alpha order).
11104 * opt.ads: Minor comment change.
11105 * sem_ch12.adb: Minor code reorganization.
11106
b715bc59
AC
111072011-08-02 Gary Dismukes <dismukes@adacore.com>
11108
11109 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
11110 subtype's list of rep items to the list on the full subtype in the case
11111 where the lists are the same.
11112
111132011-08-02 Geert Bosch <bosch@adacore.com>
11114
11115 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
11116 using the one from System.Strings, which also deallocates all strings.
11117
002bdd68
AC
111182011-08-02 Geert Bosch <bosch@adacore.com>
11119
11120 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
11121 function.
11122 * gcc-interface/Make-lang.in: Update dependencies.
11123
111242011-08-02 Olivier Hainque <hainque@adacore.com>
11125
11126 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
11127 end_locus.
11128
499769ec
AC
111292011-08-02 Javier Miranda <miranda@adacore.com>
11130
11131 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
11132 associated with anonymous access to subprograms.
11133
111342011-08-02 Geert Bosch <bosch@adacore.com>
11135
11136 * opt.ads
11137 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
11138 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
11139 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
11140 (Add_Symbol_Definition): Move to switch-c.adb
11141 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
11142 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
11143 (Add_Symbol_Definition): Move to switch-c.adb.
11144 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
11145 * sem_warn.adb
11146 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
11147 Move to warnsw.adb.
11148 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
11149 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
11150 Move to warnsw.adb.
11151 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
11152 (Add_Symbol_Definition): Moved from Prepcomp.
11153 * switch-c.ads: Update copyright notice. Use String_List instead of
11154 Argument_List, removing dependency on System.OS_Lib.
11155
aa1e353a
AC
111562011-08-02 Yannick Moy <moy@adacore.com>
11157
11158 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
11159 mode on initialization expression which does not respect SPARK
11160 restrictions.
11161 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
11162 if the tree referenced by its argument represents an initialization
11163 expression in SPARK, suitable for initializing an object in an object
11164 declaration.
11165
111662011-08-02 Javier Miranda <miranda@adacore.com>
11167
11168 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
11169 internally generated access to subprogram with its associated protected
11170 subprogram type.
11171 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
11172
15b682ca
GB
111732011-08-02 Geert Bosch <bosch@adacore.com>
11174
11175 * cstand.adb (Register_Float_Type): Print information about type to
11176 register, if the Debug_Flag_Dot_B is set.
11177 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
11178 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
11179 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
11180 with a requested precision of more than Max_Digits digits and no more
11181 than Max_Base_Digits digits, if a range specification is present and the
11182 Predefined_Float_Types list has a suitable type to derive from.
11183 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
11184 case of type completion with pragma Import
11185 * sem_prag.adb
11186 (Process_Import_Predefined_Type): Processing to complete a type
11187 with pragma Import. Currently supports floating point types only.
11188 (Set_Convention_From_Pragma): Do nothing without underlying type.
11189 (Process_Convention): Guard against absence of underlying type,
11190 which may happen when importing incomplete types.
11191 (Process_Import_Or_Interface): Handle case of importing predefined
11192 types. Tweak error message.
11193
f8726f2b
AC
111942011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11195
11196 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
11197 functions to previous change. Reorganize code slightly.
11198
111992011-08-02 Geert Bosch <bosch@adacore.com>
11200
11201 * back_end.ads (Register_Type_Proc): New call back procedure type for
11202 allowing the back end to provide information about available types.
11203 (Register_Back_End_Types): New procedure to register back end types.
11204 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
11205 available types.
11206 * cstand.adb (Back_End_Float_Types): New list for floating point types
11207 supported by the back end.
11208 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
11209 (Copy_Float_Type): New procedure to make new copies of predefined types.
11210 (Register_Float_Type): New call back procedure to populate the BEFT list
11211 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
11212 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
11213 (Create_Float_Types): New procedure to create entities for floating
11214 point types predefined in Standard, and put these and any remaining
11215 BEFTs on the Predefined_Float_Types list.
11216 * stand.ads (Predefined_Float_Types): New list for predefined floating
11217 point types that do not have declarations in package Standard.
11218
feecad68
AC
112192011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11220
11221 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
11222 entity node for the unit containing the parameter.
11223 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
11224 (Add_Inlined_Subprogram): Likewise.
11225 * gcc-interface/Make-lang.in: Update dependencies.
11226
112272011-08-02 Thomas Quinot <quinot@adacore.com>
11228
11229 * s-stusta.adb (Print): Make sure Pos is always initialized to a
11230 suitable value.
11231
12f0c50c
AC
112322011-08-02 Geert Bosch <bosch@adacore.com>
11233
11234 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
11235
112362011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11237
11238 * sem_type.adb (Covers): Move trivial case to the top and reuse the
11239 computed value of Base_Type.
11240
112412011-08-02 Yannick Moy <moy@adacore.com>
11242
11243 * restrict.adb (Check_Restriction): issue an error for any use of
11244 class-wide, even if the No_Dispatch restriction is not set.
11245 * sem_aggr.adb: Correct typos in comments and messages in formal mode
11246 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
11247 when completing a private extension, the type named in the private part
11248 is not the same as that named in the visible part.
11249 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
11250 of an inherited primitive operations of a tagged type or type extension
11251 that returns the tagged type.
11252 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
11253 function which returns True for an implicit operation inherited by the
11254 derived type declaration for the argument type.
11255 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
11256 order.
11257
fb86fe11
ES
112582011-08-02 Ed Schonberg <schonberg@adacore.com>
11259
11260 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
11261 Process_Bounds, to perform analysis with expansion of a range or an
11262 expression that is the iteration scheme for a loop.
11263 (Analyze_Iterator_Specification): If domain of iteration is given by a
11264 function call with a controlled result, as is the case if call returns
11265 a predefined container, ensure that finalization actions are properly
11266 generated.
11267 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
11268
62be5d0a
JM
112692011-08-02 Javier Miranda <miranda@adacore.com>
11270
11271 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
11272 * gcc-interface/Make-lang.in: Update dependencies.
11273
112742011-08-02 Javier Miranda <miranda@adacore.com>
11275
11276 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
11277 determine if the analysis is performed using N or Original_Node (N).
11278 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
11279 functionality of routine Is_Variable avoids code duplication.
11280 * checks.adb (Determine_Range): Handle temporaries generated by
11281 Remove_Side_Effects.
11282
112832011-08-02 Javier Miranda <miranda@adacore.com>
11284
11285 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
11286 expansion of the condition. Required since the previous analysis was
11287 done with expansion disabled (see Resolve_Quantified_Expression) and
11288 hence checks were not inserted and record comparisons have not been
11289 expanded.
11290
a20f4389
AC
112912011-08-02 Ed Falis <falis@adacore.com>
11292
11293 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
11294 Update header.
11295
112962011-08-02 Bob Duff <duff@adacore.com>
11297
11298 * opt.ads: Minor comment fix.
11299
113002011-08-02 Bob Duff <duff@adacore.com>
11301
11302 * sem_ch12.adb (Analyze_Package_Instantiation,
11303 Analyze_Subprogram_Instantiation): Turn off style checking while
11304 analyzing an instance. Whatever style checks that apply to the generic
11305 unit should apply, so it makes no sense to apply them in an instance.
11306 This was causing trouble when compiling an instance of a runtime
11307 unit that violates the -gnatyO switch.
11308 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
11309 one of the two case statements, causing spurious errors.
11310
113112011-08-02 Robert Dewar <dewar@adacore.com>
11312
11313 * uname.adb: Minor reformatting.
11314 * gnatcmd.adb: Minor reformatting.
11315 * exp_attr.adb: Minor reformatting.
11316
90878b12
AC
113172011-08-02 Ed Schonberg <schonberg@adacore.com>
11318
11319 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
11320 No_Dispatching_Calls, do not look for the Assign primitive, because
11321 predefined primitives are not created in this case.
11322
113232011-08-02 Bob Duff <duff@adacore.com>
11324
11325 * stylesw.ads: Minor comment fixes.
11326
113272011-08-02 Robert Dewar <dewar@adacore.com>
11328
11329 * freeze.adb (Add_To_Result): New procedure.
11330
113312011-08-02 Jose Ruiz <ruiz@adacore.com>
11332
11333 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
11334 time, if the specific run-time routines for handling streams of strings
11335 are not available, use the default mechanism.
11336
113372011-08-02 Arnaud Charlet <charlet@adacore.com>
11338
11339 * s-regpat.ads: Fix typo.
11340
113412011-08-02 Vincent Celier <celier@adacore.com>
11342
11343 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
11344 not null, call it to create the in memory config project file without
11345 parsing an existing default config project file.
11346
113472011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11348
11349 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
11350
113512011-08-02 Ed Schonberg <schonberg@adacore.com>
11352
11353 * sem_elim.adb: an abstract subprogram does not need an eliminate
11354 pragma for its descendant to be eliminable.
11355
113562011-08-02 Ed Falis <falis@adacore.com>
11357
11358 * init.c: revert to handling before previous checkin for VxWorks
11359 * s-intman-vxworks.adb: delete unnecessary declarations related to
11360 using Ada interrupt facilities for handling signals.
11361 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
11362 * s-intman-vxworks.ads: Import __gnat_install_handler as
11363 Initialize_Interrupts.
11364 * s-taprop-vxworks.adb: Delete Signal_Mask.
11365 (Abort_Handler): change construction of mask to unblock exception
11366 signals.
11367
273adcdf
AC
113682011-08-02 Jerome Guitton <guitton@adacore.com>
11369
11370 * a-except-2005.adb (Raise_From_Signal_Handler): Call
11371 Debug_Raise_Exception before propagation starts.
11372
113732011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11374
11375 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
11376 to Restriction_Check_Required.
11377 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
11378 * sem_res.adb (Resolve_Call): Likewise.
11379 * sem_attr.adb (Check_Stream_Attribute): Likewise.
11380
113812011-08-02 Bob Duff <duff@adacore.com>
11382
11383 * stylesw.ads: Update comment.
11384 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
11385 * errout.ads: Remove obsolete comment.
11386
113872011-08-02 Javier Miranda <miranda@adacore.com>
11388
11389 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
11390 (Set_Is_Safe_To_Reevaluate): new procedure.
11391 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
11392 assignment is allowed on safe-to-reevaluate variables.
11393 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
11394 temporary created to remove side effects in expressions that use
11395 the secondary stack as safe-to-reevaluate.
11396 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
11397 variables that are not true constants.
11398
6320f5e1
AC
113992011-08-02 Robert Dewar <dewar@adacore.com>
11400
11401 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
11402 sem_res.adb, sem_ch6.adb: Minor reformatting.
11403
114042011-08-02 Jerome Guitton <guitton@adacore.com>
11405
11406 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
11407
2fe829ae
ES
114082011-08-02 Ed Schonberg <schonberg@adacore.com>
11409
11410 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
11411 not set Overridden_Operation if subprogram is an initialization
11412 procedure.
11413
e24329cd
YM
114142011-08-02 Yannick Moy <moy@adacore.com>
11415
11416 * par-ch6.adb: Correct obsolete name in comments
11417 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
11418 which takes two message arguments (existing function takes one), with
11419 second message used for continuation.
11420 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
11421 block statements that originate from a source block statement, not
11422 generated block statements
11423 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
11424 symmetry with procedure case
11425 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
11426 function to issue an error in formal mode if a package specification
11427 contains more than one tagged type or type extension.
11428 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
11429 parameters matching formals of tagged types are objects (or ancestor
11430 type conversions of objects), not general expressions. Issue an error
11431 on view conversions that are not involving ancestor conversion of an
11432 extended type.
11433 (Resolve_Type_Conversion): in formal mode, issue an error on the
11434 operand of an ancestor type conversion which is not an object
11435 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
11436 procedure so that it works also for actuals of function calls
11437 (Is_Actual_Tagged_Parameter): new function which determines if its
11438 argument is an actual parameter of a formal of tagged type in a
11439 subprogram call
11440 (Is_SPARK_Object_Reference): new function which determines if the tree
11441 referenced by its argument represents an object in SPARK
11442
176dadf6
AC
114432011-08-02 Robert Dewar <dewar@adacore.com>
11444
11445 * sem_ch3.adb: Minor reformatting
11446 Minor comment addition
11447 Minor error msg text change
11448
114492011-08-02 Javier Miranda <miranda@adacore.com>
11450
11451 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
11452 function. Used to be more precise when we generate a variable plus one
11453 assignment to remove side effects in the evaluation of the Bound
11454 expressions.
11455 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
11456 of the bound expression to force its re-analysis and thus expand the
11457 associated transient scope (if required). Code cleanup replacing the
11458 previous code that declared the constant entity by an invocation to
11459 routine Force_Evaluation which centralizes this work in the frontend.
11460
d8b962d8
AC
114612011-08-02 Robert Dewar <dewar@adacore.com>
11462
11463 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
11464 (Base_Type): Now uses improved Is_Base_Type function
11465 * einfo.ads (Base_Type): Inline this function
11466
114672011-08-02 Robert Dewar <dewar@adacore.com>
11468
11469 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
11470 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
11471
114722011-08-02 Arnaud Charlet <charlet@adacore.com>
11473
11474 * gcc-interface/Make-lang.in: Update dependencies.
11475 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
11476 targets.
11477
114782011-08-02 Yannick Moy <moy@adacore.com>
11479
11480 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
11481 non-simple expression used in delta constraint
11482 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
11483 index constraint which is not a subtype mark
11484 * par.adb: With and use Restrict
11485 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
11486 mode on component type which is not a subtype mark and default
11487 expression on component
11488 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
11489 of string which does not have a lower index bound equal to 1
11490 (Array_Type_Declaration): issue an error in formal mode on index or
11491 component type which is not a subtype mark, and on aliased keyword on
11492 component
11493 (Derived_Type_Declaration): issue an error in formal mode on interface,
11494 limited or abstract type
11495 (Record_Type_Declaration): issue an error in formal mode on interface
11496 (Record_Type_Definition): issue an error in formal mode on tagged types
11497 and type extensions not declared in the specification of a library unit
11498 package; on null non-tagged record; on variant part
11499
115002011-08-02 Vincent Celier <celier@adacore.com>
11501
11502 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
11503 not declared for qualified library project when Library_Name is not
11504 declared, but Library_Dir is.
11505
115062011-08-02 Robert Dewar <dewar@adacore.com>
11507
11508 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
11509 pragmas (affects aspects [Component_]Default_Value
11510 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
11511 component type for the resolution
11512
f96b2d85
AC
115132011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11514
11515 * einfo.adb (Base_Type): Tune implementation for speed.
11516
115172011-08-02 Robert Dewar <dewar@adacore.com>
11518
11519 * freeze.adb: Minor reformatting.
11520
8b3c6430
AC
115212011-08-02 Thomas Quinot <quinot@adacore.com>
11522
11523 * scos.ads: Update comments.
11524
115252011-08-02 Ed Schonberg <schonberg@adacore.com>
11526
11527 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
11528 base type, because the parent may be a subtype of a private type whose
11529 convention is established in a private part.
11530
115312011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11532
11533 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
11534 statement in a block when the expansion of the return expression has
11535 created a finalization chain.
11536 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
11537 with the parent node.
11538 Add N_Extended_Return_Statement to handle the case where a transient
11539 object declaration appears in the Return_Object_Declarations list of
11540 an extended return statement.
11541
115422011-08-02 Matthew Gingell <gingell@adacore.com>
11543
11544 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
11545 unused parameter 'name'.
11546
115472011-08-02 Ed Schonberg <schonberg@adacore.com>
11548
11549 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
11550 inherited operation, check whether its alias, which is the source
11551 operastion that it renames, has been marked eliminated.
11552
cae81f17
JM
115532011-08-02 Javier Miranda <miranda@adacore.com>
11554
11555 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
11556 in-mode parameter whose type is an access type since it can be used to
11557 modify its designated object. Enforce code that handles as safe an
11558 access type that is not access-to-constant but it is the result of a
11559 previous removal of side-effects.
11560 (Remove_Side_Effects): Minor code reorganization of cases which require
11561 no action. Done to incorporate documentation on new cases uncovered
11562 working in this ticket: no action needed if this routine was invoked
11563 too early and the nodes are not yet decorated.
11564 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
11565 to routine Remove_Side_Effects by calls to Force_Evaluation since they
11566 were issued with actuals that are implicitly provided by
11567 Force_Evaluation.
11568
218e6dee
RD
115692011-08-02 Robert Dewar <dewar@adacore.com>
11570
11571 * sem_ch3.adb, sem_res.adb: Minor reformatting.
11572
7a489a2b
AC
115732011-08-02 Yannick Moy <moy@adacore.com>
11574
11575 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
11576 to issue an error in formal mode on attribute not supported in this mode
11577 (Analyze_Attribute): issue errors on standard attributes not supported
11578 in formal mode.
11579 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
11580 comment, and issue error in formal mode on modulus which is not a power
11581 of 2.
11582 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
11583 range.
11584 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
11585 subtype mark.
11586 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
11587 operator on modular type (except 'not').
11588
115892011-08-02 Robert Dewar <dewar@adacore.com>
11590
11591 * gnat_rm.texi: Minor reformatting.
11592
cb7fa356
AC
115932011-08-02 Arnaud Charlet <charlet@adacore.com>
11594
11595 * s-osinte-linux.ads: Minor comment update and reformatting.
11596 * i-cexten.ads: Make this unit pure, as for its parent.
11597 Will allow its usage in more contexts if needed.
11598
115992011-08-02 Robert Dewar <dewar@adacore.com>
11600
11601 * s-utf_32.ads: Minor comment fix.
11602
116032011-08-02 Ed Schonberg <schonberg@adacore.com>
11604
11605 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
11606 operation of a tagged synchronized type, handle the case where the
11607 controlling argument is overloaded.
11608
116092011-08-02 Yannick Moy <moy@adacore.com>
11610
11611 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
11612 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
11613 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
11614 SPARK mode and formal verification mode on processing SPARK restriction
11615 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
11616 requiring consistency checking.
11617
5cc9353d
RD
116182011-08-02 Robert Dewar <dewar@adacore.com>
11619
11620 * sem_res.adb: Minor reformatting.
11621
e51537ff
RD
116222011-08-02 Robert Dewar <dewar@adacore.com>
11623
11624 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
11625 a-cforse.ads: Remove unneeded with of Ada.Containers
11626 Remove commented out pragma Inline's
11627 Move specifications of new subprograms to the actual specs
11628
83fa09c5
AC
116292011-08-02 Yannick Moy <moy@adacore.com>
11630
11631 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
11632 a-cforse.ads: Update comments.
11633
116342011-08-02 Ed Schonberg <schonberg@adacore.com>
11635
11636 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
11637
d11cfaf8
RD
116382011-08-02 Robert Dewar <dewar@adacore.com>
11639
11640 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
11641 a-cforse.ads, a-cofove.ads: Minor reformatting.
11642
300b98bb
AC
116432011-08-02 Claire Dross <dross@adacore.com>
11644
11645 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
11646 a-cofove.ads: Add comments.
11647
116482011-08-02 Yannick Moy <moy@adacore.com>
11649
11650 * gnat_rm.texi: Document formal containers.
11651
116522011-08-02 Emmanuel Briot <briot@adacore.com>
11653
11654 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
11655 are empty sections.
11656
19fb051c
AC
116572011-08-02 Robert Dewar <dewar@adacore.com>
11658
11659 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
11660 reformatting.
11661
116622011-08-02 Robert Dewar <dewar@adacore.com>
11663
11664 * aspects.adb: New aspects Default_Value and Default_Component_Value
11665 New format of Aspect_Names table checks for omitted entries
11666 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
11667 handling of boolean aspects for derived types.
11668 New aspects Default_Value and Default_Component_Value
11669 New format of Aspect_Names table checks for omitted entries
11670 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
11671 (Has_Default_Value): New flag
11672 (Has_Default_Component_Value): New flag
11673 (Has_Default_Value): New flag
11674 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
11675 table.
11676 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
11677 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
11678 Default_Value and Default_Component_Value
11679 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
11680 New aspects Default_Value and Default_Component_Value
11681 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
11682 * sprint.adb: Print N_Aspect_Specification node when called from gdb
11683
116842011-08-02 Vincent Celier <celier@adacore.com>
11685
11686 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
11687 inherit library kind.
11688
116892011-08-02 Ed Schonberg <schonberg@adacore.com>
11690
11691 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
11692 Minor reformatting.
11693
116942011-08-02 Robert Dewar <dewar@adacore.com>
11695
11696 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
11697
5f7747af
AC
116982011-08-02 Yannick Moy <moy@adacore.com>
11699
11700 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
11701
117022011-08-02 Robert Dewar <dewar@adacore.com>
11703
11704 * impunit.adb: Add comment.
11705
a5fe697b
AC
117062011-08-02 Yannick Moy <moy@adacore.com>
11707
11708 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
11709 qualification of aggregates in formal mode
11710 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
11711 another aggregate
11712 (Resolve_Aggregate): complete the test that an aggregate is adequately
11713 qualified in formal mode
11714
117152011-08-02 Pascal Obry <obry@adacore.com>
11716
11717 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
11718 * mlib-prj.adb: Supress warning when compiling binder generated file.
11719 (Build_Library): Supress all warnings when compiling the binder
11720 generated file.
11721
bd65a2d7 117222011-08-02 Yannick Moy <moy@adacore.com>
d4487611 11723
bd65a2d7
AC
11724 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
11725 from here...
11726 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
11727 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
11728 Add with/use clauses to make Check_Formal_Restriction visible
11729
117302011-08-02 Ed Schonberg <schonberg@adacore.com>
11731
11732 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
11733 in-parameters when type of the generic formal is private in the generic
11734 spec and non-private in the body.
11735
117362011-08-02 Claire Dross <dross@adacore.com>
11737
11738 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
11739 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
11740 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
11741 * impunit.adb, Makefile.rtl: Take new files into account.
d4487611
AC
11742
117432011-08-02 Robert Dewar <dewar@adacore.com>
11744
11745 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
11746 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
11747
bd434b3f
YM
117482011-08-02 Yannick Moy <moy@adacore.com>
11749
11750 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
11751 formal mode
11752 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
11753 matching static array bounds, taking into account the special case of
11754 string literals
11755 * sem_ch3.adb: Typo in comment.
11756
fe5d3068
YM
117572011-08-02 Yannick Moy <moy@adacore.com>
11758
11759 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
11760 which issues an error in formal mode if its argument node is originally
11761 from source
11762 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
11763 has a discriminant specification so that it does not include the case
11764 of derived types
11765 (Derived_Type_Declaration): move here the test that a derived type has a
11766 discriminant specification
11767 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
11768 first element of a component association before accessing its choices
11769 (presence of component association is not enough)
11770 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
11771 declaration is a library item before accessing the next element in a
11772 list, as library items are not member of lists
11773 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
11774 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
11775 Check_Formal_Restriction whenever possible.
11776
b60a3f26
AC
117772011-08-02 Ed Schonberg <schonberg@adacore.com>
11778
11779 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
11780 reference when needed.
11781
117822011-08-02 Bob Duff <duff@adacore.com>
11783
11784 * gnat_ugn.texi: Fix typo.
11785
117862011-08-02 Vincent Celier <celier@adacore.com>
11787
11788 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
11789 archive file name. Do not use the full path name of archives for Open
11790 VMS.
11791
eaba57fb
RD
117922011-08-02 Robert Dewar <dewar@adacore.com>
11793
11794 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
11795 Analyze_Aspect_Specifications
11796 * sem_ch13.adb
11797 (Analyze_Aspect_Specifications): New handling for boolean aspects
11798 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
11799 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
11800 sequence for Analyze_Aspect_Specifications
11801 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
11802 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
11803
118042011-08-02 Robert Dewar <dewar@adacore.com>
11805
11806 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
11807 aspects, since these no longer exist.
11808
118092011-08-02 Robert Dewar <dewar@adacore.com>
11810
11811 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
11812 semicolon, do not try to see if there are aspects following it.
11813 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
11814 aspect spec.
11815
8830d1d2
AC
118162011-08-02 Robert Dewar <dewar@adacore.com>
11817
11818 * sem_ch8.adb, aspects.ads: Minor reformatting.
11819
118202011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11821
11822 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
11823 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
11824 extracted from...
11825 (Analyze_Aspect_Specifications): ...here. Call above procedure.
11826
7ff2d234
AC
118272011-08-02 Yannick Moy <moy@adacore.com>
11828
11829 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
11830 mode on subprogram declaration outside of package specification, unless
11831 it is followed by a pragma Import
11832 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
11833 Access_Type_Declaration): issue error in formal mode on access type
11834 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
11835 incomplete type
11836 (Analyze_Object_Declaration): issue error in formal mode on object
11837 declaration which does not respect SPARK restrictions
11838 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
11839 declaration which does not respect SPARK restrictions
11840 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
11841 error in formal mode on digits or delta constraint
11842 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
11843 decimal fixed point type
11844 (Derived_Type_Declaration): issue error in formal mode on derived type
11845 other than type extensions of tagged record types
11846 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
11847 with check on access definition
11848 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
11849 mode on protected definition.
11850 (Analyze_Task_Definition): issue error in formal mode on task definition
11851
118522011-08-02 Robert Dewar <dewar@adacore.com>
11853
11854 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
11855
806f6d37
AC
118562011-08-02 Javier Miranda <miranda@adacore.com>
11857
11858 * sem_ch6.adb (Can_Override_Operator): New function.
11859 (Verify_Overriding_Indicator): Add missing code to check overriding
11860 indicator in operators. Fixes regression.
11861 (Check_Overriding_Indicator): Minor reformating after replacing the
11862 code that evaluates if the subprogram can override an operator by
11863 invocations to the above new function.
11864 * einfo.adb
11865 (Write_Field26_Name): Add missing code to ensure that, following
11866 the documentation in einfo.ads, this field is not shown as attribute
11867 "Static_Initialization" on non-dispatching functions.
11868
118692011-08-02 Jose Ruiz <ruiz@adacore.com>
11870
11871 * sem_res.adb (Resolve_Call): A call to
11872 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
11873 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
11874 i.e., when the second parameter is of type Time_Span.
11875
118762011-08-02 Vincent Celier <celier@adacore.com>
11877
11878 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
11879 with an archive instead of -L<library dir> -l<library name>.
11880
118812011-08-02 Ed Schonberg <schonberg@adacore.com>
11882
11883 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
11884 mark the base types In_Use in addition to making the operations
11885 use_visible.
11886
118872011-08-02 Ed Falis <falis@adacore.com>
11888
11889 * init.c: add and setup __gnat_signal_mask for the exception signals
11890 * s-inmaop-vxworks.adb: new file.
11891 * s-intman-vxworks.adb: remove unnecessary initializations and
11892 simplify remaining
11893 * s-intman-vxworks.ads: remove unnecessary variable
11894 * s-taprop-vxworks.adb: simplify signal initialization
11895
780d052e
RD
118962011-08-02 Robert Dewar <dewar@adacore.com>
11897
11898 * sem_ch8.adb: Minor code reorganization, comment updates.
11899
119002011-08-02 Robert Dewar <dewar@adacore.com>
11901
11902 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
11903 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
11904 here from Sem_Res.
11905 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
11906 (Matching_Static_Array_Bounds): Moved here from Sem_Res
11907
29efbb8c
ES
119082011-08-02 Ed Schonberg <schonberg@adacore.com>
11909
11910 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
11911 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
11912 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
11913 use_type_clauses, to handle more efficiently use_type and use_all_type
11914 constructs.
11915 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
11916 Ada2012 Use_All_Type clause.
11917 (Use_Class_Wide_Operations): new procedure.
11918
b0186f71
AC
119192011-08-02 Robert Dewar <dewar@adacore.com>
11920
11921 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
11922 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
11923 expression to expression function.
11924
119252011-08-02 Ed Schonberg <schonberg@adacore.com>
11926
11927 * sem_ch4.adb: transform simple Ada2012 membership into equality only
11928 if types are compatible.
11929
119302011-08-02 Yannick Moy <moy@adacore.com>
11931
11932 * sem_res.adb (Matching_Static_Array_Bounds): new function which
11933 returns True if its argument array types have same dimension and same
11934 static bounds at each index.
11935 (Resolve_Actuals): issue an error in formal mode on actuals passed as
11936 OUT or IN OUT paramaters which are not view conversions in SPARK.
11937 (Resolve_Arithmetic_Op): issue an error in formal mode on
11938 multiplication or division with operands of fixed point types which are
11939 not qualified or explicitly converted.
11940 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
11941 Boolean or array type (except String) operands.
11942 (Resolve_Equality_Op): issue an error in formal mode on equality
11943 operators for array types other than String with non-matching static
11944 bounds.
11945 (Resolve_Logical_Op): issue an error in formal mode on logical operators
11946 for array types with non-matching static bounds. Factorize the code in
11947 Matching_Static_Array_Bounds.
11948 (Resolve_Qualified_Expression): issue an error in formal mode on
11949 qualified expressions for array types with non-matching static bounds.
11950 (Resolve_Type_Conversion): issue an error in formal mode on type
11951 conversion for array types with non-matching static bounds
11952
767bb4e8
AC
119532011-08-02 Robert Dewar <dewar@adacore.com>
11954
11955 * par-ch10.adb: Minor code reorganization (use Nkind_In).
11956
119572011-08-02 Ed Schonberg <schonberg@adacore.com>
11958
11959 * par-ch9.adb: save location of entry for proper error message.
11960
4ac2477e
JM
119612011-08-02 Javier Miranda <miranda@adacore.com>
11962
11963 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
11964 (Use_Full_View) which permits this routine to climb through the
11965 ancestors using the full-view of private parents.
11966 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
11967 Use_Full_View to true in calls to Is_Ancestor.
11968 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
11969 true in call to Is_Ancestor.
11970 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
11971 Use_Full_View to true in call to Is_Ancestor.
11972 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
11973 call to Is_Ancestor.
11974 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
11975 Use_Full_View to true in calls to Is_Ancestor.
11976 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
11977 Make_Select_Specific_Data_Table, Register_Primitive,
11978 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
11979 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
11980 to true in call to Is_Ancestor.
11981 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
11982 Use_Full_View to true in calls to Is_Ancestor.
11983 * exp_cg.adb
11984 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
11985 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
11986
9f90d123
AC
119872011-08-02 Robert Dewar <dewar@adacore.com>
11988
11989 * gnat_rm.texi: Minor reformatting.
11990 * sem_prag.adb: Minor reformatting.
11991
119922011-08-02 Tristan Gingold <gingold@adacore.com>
11993
11994 * vms_data.ads: Add VMS qualifier for -gnateP.
11995
119962011-08-02 Robert Dewar <dewar@adacore.com>
11997
11998 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
11999 * par-ch7.adb (P_Package): Proper placement of aspects for package
12000 decl/instantiation.
12001 * par-endh.adb (Check_End): Ad Is_Sloc parameter
12002 (End_Statements): Add Is_Sloc parameterr
12003 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
12004 (Check_End): Ad Is_Sloc parameter
12005 (End_Statements): Add Is_Sloc parameterr
12006
120072011-08-02 Vincent Celier <celier@adacore.com>
12008
12009 * ug_words: Add VMS qualifier equivalent to -gnateP:
12010 /SYMBOL_PREPROCESSING.
12011
120122011-08-02 Jose Ruiz <ruiz@adacore.com>
12013
12014 * gnat-style.texi: For hexadecimal numeric literals the typical
12015 grouping of digits is 4 to represent 2 bytes.
12016 A procedure spec which is split into several lines is indented two
12017 characters.
12018
120192011-08-02 Yannick Moy <moy@adacore.com>
12020
12021 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
12022 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
12023 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
12024 properly qualified
12025 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
12026 choice in array aggregate
12027 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
12028 mark as ancestor
12029 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
12030 positional and named aggregate for record, or others in record
12031 aggregate, or multiple choice in record aggregate
12032 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
12033 array operands to logical operations AND, OR and XOR do not have the
12034 same static lower and higher bounds
12035 * sem_ch5.adb, sinfo.ads: Correct typos in comments
12036
2933b16c
RD
120372011-08-01 Robert Dewar <dewar@adacore.com>
12038
12039 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
12040 Replaces Last_Source_Node_In_Sequence.
12041 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
12042 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
12043 parens and blank in string (this was inconsistently implemented).
12044 * errout.ads
12045 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
12046 blank in string (this was inconsistently implemented).
12047 * gnat1drv.adb
12048 (Set_Global_Switches): Set formal mode switches appropriately
12049 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
12050 * par-prag.adb
12051 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
12052 call Set_Error_Msg_Lang to set "spark" as language name.
12053 * par.adb: Remove unnecessary call to set formal language for errout
12054 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
12055 appropriately and call Set_Error_Msg_Lang to set "spark" as language
12056 name.
12057 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
12058 calls to it, moved after resolution so that types are known
12059 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
12060 result of concatenation is not of type String
12061 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
12062 concatenation is not properly restricted
12063 * gnat_rm.texi: Add doc on pragma Spark_95.
12064 * gcc-interface/Makefile.in: Remove obsolete target pairs for
12065 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
12066 * gcc-interface/Make-lang.in: Update dependencies.
12067
05dbd302
AC
120682011-08-01 Javier Miranda <miranda@adacore.com>
12069
12070 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
12071 condition that detects if the overridden operation must replace an
12072 existing entity.
12073
120742011-08-01 Javier Miranda <miranda@adacore.com>
12075
12076 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
12077 code declarations inserted by Insert_Actions in each alternative of the
12078 N_Case_Expression node.
12079
120802011-08-01 Robert Dewar <dewar@adacore.com>
12081
12082 * sem_ch6.adb: Minor code reorganization.
12083 * sem_util.adb: Minor reformatting.
12084
af9e051f
PO
120852011-08-01 Pascal Obry <obry@adacore.com>
12086
12087 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
12088 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
12089
1d801f21
AC
120902011-08-01 Yannick Moy <moy@adacore.com>
12091
12092 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
12093 literal or operator symbol which is prefixed
12094 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
12095 mode on access attributes.
12096 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
12097 that concatenation operands are properly restricted in formal mode
12098 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
12099 Analyze_Concatenation_Operand. Issue an error in formal mode if the
12100 result of the concatenation has a type different from String.
12101 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
12102 Analyze_Quantified_Expression, Analyze_Slice,
12103 Analyze_Null): issue an error in formal mode on unsupported constructs
12104 * sem_ch5.adb
12105 (Analyze_Block_Statement): only issue error on source block statement
12106 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
12107 function which returns the last node in a list of nodes for which
12108 Comes_From_Source returns True, if any
12109 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
12110 Last_Source_Node_In_Sequence
12111 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
12112 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
12113 mode on unsupported constructs
12114 * sem_ch9.adb Do not return after issuing error in formal mode, as the
12115 rest of the actions may be needed later on since the error is marked as
12116 not serious.
12117 * sinfo.ads: Typos in comments.
12118
121192011-08-01 Pascal Obry <obry@adacore.com>
12120
12121 * projects.texi: Minor editing.
12122
53beff22
YM
121232011-08-01 Yannick Moy <moy@adacore.com>
12124
12125 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
12126 insertion character ~~
12127 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
12128 (Set_Error_Msg_Lang): new procedure which fixes the language for use
12129 with insertion character ~~
12130 (Set_Msg_Text): treat insertion character ~~
12131 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
12132 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
12133 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
12134 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
12135 errors related to the formal language restriction not serious
12136 (insertion character |).
12137 * par.adb (Par): set formal language for error messages if needed
12138 * sem_ch6.adb (Check_Missing_Return): take into account possible
12139 generated statements at the end of the function
12140 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
12141 enumeration value to define a new pragma SPARK_95
12142 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
12143 SPARK_Version): new type and variables to store the SPARK version
12144 (none by default).
12145 (SPARK_Mode): return True when SPARK_Version is set
12146 * par-prag.adb: Correct indentation
12147 (Prag): take Pragma_SPARK_95 into account
12148 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
12149 into account.
12150
8d606a78
RD
121512011-08-01 Robert Dewar <dewar@adacore.com>
12152
12153 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
12154 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
12155 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
12156
1982d5a8
PO
121572011-08-01 Pascal Obry <obry@adacore.com>
12158
12159 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
12160 Target_Name to Get_Path call.
12161 (Parse_Single_Project): Likewise.
12162 (Post_Parse_Context_Clause): Likewise.
12163 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
12164 Call Initialise_Project_Path with the proper Target_Name.
12165 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
12166 search path.
12167 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
12168 with the proper Target_Name.
12169 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
12170 Part.Parse routine.
12171 (Parse_Project_And_Apply_Config): Likewise.
12172 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
12173 This is fine as this part of the code is supporting only native
12174 compilation.
12175 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
12176 is fine as this part of the code is supporting only native compilation.
12177
0d53d36b
AC
121782011-08-01 Yannick Moy <moy@adacore.com>
12179
12180 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
12181 of homonym, unless the homonym is one of the cases allowed in SPARK
12182 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
12183 package declaration occurring after a body.
12184
121852011-08-01 Robert Dewar <dewar@adacore.com>
12186
12187 * checks.adb, exp_ch4.adb: Minor reformatting.
12188
121892011-08-01 Javier Miranda <miranda@adacore.com>
12190
12191 * einfo.ads (Access_Disp_Table): Fix documentation.
12192 (Dispatch_Table_Wrappers): Fix documentation.
12193
121942011-08-01 Pascal Obry <obry@adacore.com>
12195
12196 * prj-env.adb, prj-env.ads: Minor reformatting.
12197
8ed68165
AC
121982011-08-01 Yannick Moy <moy@adacore.com>
12199
12200 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
12201 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
12202 procedures out of these packages.
2c7f9cc0 12203 * errout.ads, errout.adb
8ed68165
AC
12204 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
12205 procedures in of this package
12206 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
12207 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
12208 on misplaced later vs initial declarations, like in Ada 83
12209 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
12210 formal mode on attribute of private type whose full type declaration
12211 is not visible
12212 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
12213 package declaration inside a package specification
12214 (Analyze_Full_Type_Declaration): issue error in formal mode on
12215 controlled type or discriminant type
12216 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
12217 user-defined operator means that it should come from the source
12218 (New_Overloaded_Entity): issue error in formal mode on overloaded
12219 entity.
12220 * sem_ch6.ads, sem_ch13.ads: typos in comments.
12221
122222011-08-01 Thomas Quinot <quinot@adacore.com>
12223
12224 * atree.adb: Minor reformatting.
12225 * checks.adb: Minor reformatting.
12226
4230bdb7
AC
122272011-08-01 Vincent Celier <celier@adacore.com>
12228
12229 * s-parame-vms-ia64.ads: Fix typo in comment
12230 Minor reformatting
12231 * s-parame-vms-restrict.ads: Removed, unused.
12232
122332011-08-01 Javier Miranda <miranda@adacore.com>
12234
12235 * exp_ch3.adb
12236 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
12237 * sem_ch3.adb
12238 (Constrain_Index): Remove side effects in the evaluation of the bounds.
12239 * sem_ch3.ads, sem_ch3.adb
12240 (Is_Constant_Bound): New extended version of the subprogram that was
12241 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
12242 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
12243 * sem_aux.ads (Constant_Value): Fix typo in comment.
12244 * checks.adb (Generate_Index_Checks): New implementation which, for
12245 array objects with constant bounds, generates the runtime check
12246 referencing the bounds of the array type. For other cases this routine
12247 provides its previous behavior obtaining such values from the array
12248 object.
12249 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
12250 parent type.
12251 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
12252 we cannot have semantic interpretations of the new node.
12253
2010d078
AC
122542011-08-01 Ed Schonberg <schonberg@adacore.com>
12255
12256 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
12257 expressions.
12258
122592011-08-01 Arnaud Charlet <charlet@adacore.com>
12260
12261 * sem_ch8.adb: Minor code editing.
12262 * s-vxwext.adb: Remove trailing space.
12263 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
12264 consistency with other files.
12265
122662011-08-01 Thomas Quinot <quinot@adacore.com>
12267
12268 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
12269
122702011-08-01 Ed Schonberg <schonberg@adacore.com>
12271
12272 * par-ch10.adb: reject parameterized expressions as compilation unit.
12273 * sem_ch4.adb: handle properly conditional expression with overloaded
12274 then_clause and no else_clause.
12275
122762011-08-01 Tristan Gingold <gingold@adacore.com>
12277
12278 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
12279 like done by System.Aux_DEC.
12280 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
12281
daec8eeb
YM
122822011-08-01 Yannick Moy <moy@adacore.com>
12283
12284 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
12285 missing label at end of declaration (subprogram or package)
12286 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
12287 of positional and named parameter association
12288 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
12289 Error_Msg_SP which adds a prefix to the error message giving the name
12290 of the formal language analyzed
12291 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
12292 access result type in subprogram, unconstrained array as result type,.
12293 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
12294 procedure
12295 * sem_ch8.adb: Code clean up.
12296
38171f43
AC
122972011-08-01 Javier Miranda <miranda@adacore.com>
12298
12299 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
12300 * einfo.ads (Access_Disp_Table): Fix documentation.
12301 (Dispatch_Table_Wrappers): Fix documentation.
12302 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
12303 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
12304 to enforce the documentation of this attribute.
12305 (Set_Is_Interface): Cleanup the assertion.
12306 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
12307 the Underlying_Type entity before reading attribute Access_Disp_Table.
12308 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
12309 Locate the Underlying_Type before reading attribute Access_Disp_Table.
12310 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
12311 the Underlying_Type entity before reading attribute Access_Disp_Table.
12312 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
12313 Locate the Underlying_Type entity before reading attribute
12314 Access_Disp_Table.
12315
123162011-08-01 Ed Schonberg <schonberg@adacore.com>
12317
12318 * s-poosiz.ads: Additional overriding indicators.
12319
123202011-08-01 Yannick Moy <moy@adacore.com>
12321
12322 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
12323 formal mode.
12324 (Analyze_Iteration_Scheme): issue error in formal mode when loop
12325 parameter specification does not include a subtype mark.
12326 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
12327 formal mode on abstract subprogram.
12328 (Analyze_Subprogram_Specification): issue error in formal mode on
12329 user-defined operator.
12330 (Process_Formals): issue error in formal mode on access parameter and
12331 default expression.
12332 * sem_ch9.adb (Analyze_Abort_Statement,
12333 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
12334 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
12335 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
12336 Analyze_Requeue, Analyze_Selective_Accept,
12337 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
12338 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
12339 issue error in formal mode on user-defined raise statement.
12340
1f250383
AC
123412011-08-01 Thomas Quinot <quinot@adacore.com>
12342
12343 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
12344 declaration being hidden when overriding an implicit inherited
12345 subprogram.
12346 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
12347 (-gnats), do not complain about a source file that contains only a
12348 pragma No_Body.
12349
123502011-08-01 Ed Schonberg <schonberg@adacore.com>
12351
12352 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
12353 variable if already set.
12354
607d0635
AC
123552011-08-01 Arnaud Charlet <charlet@adacore.com>
12356
12357 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
12358 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
12359 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
12360 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
12361 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
12362 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
12363 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
12364 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
12365 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
12366 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
12367 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
12368 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
12369 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
12370 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
12371 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
12372 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
12373 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
12374 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
12375 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
12376 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
12377 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
12378 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
12379 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
12380 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
12381 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
12382 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
12383 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
12384 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
12385 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
12386 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
12387 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
12388 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
12389 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
12390 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
12391 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
12392 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
12393 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
12394 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
12395 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
12396 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
12397 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
12398 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
12399 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
12400 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
12401 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
12402 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
12403 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
12404 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
12405 s-osinte-mingw.ads: Update to GPLv3 run-time license.
12406 Use GNAT instead of GNARL.
12407
124082011-08-01 Bob Duff <duff@adacore.com>
12409
12410 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
12411 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
12412 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
12413 reformatting.
12414
124152011-08-01 Yannick Moy <moy@adacore.com>
12416
12417 * debug.adb (d.D) reverve flag for the SPARK mode
12418 (d.E) reverve flag for SPARK generation mode
12419 (d.F) reverve flag for Why generation mode
2c7f9cc0 12420 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
607d0635
AC
12421 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
12422 functions which return True when the corresponding modes are set
12423 (Formal_Language): return "spark" or "alfa" when in formal verification
12424 mode.
12425 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
12426 Error_Msg to prefix the error message with a tag giving the formal
12427 language
12428 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
12429 message with a tag giving the formal language
12430 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
12431 block statement
12432 (Analyze_Case_Statement): issue error in formal mode on case statement
12433 with a single "others" case alternative
12434 (Analyze_Exit_Statement): issue errors in formal mode on exit
12435 statements which do not respect SPARK restrictions
12436 (Analyze_Goto_Statement): issue error in formal mode on goto statement
12437 (Check_Unreachable_Code): always issue an error (not a warning) in
12438 formal mode on unreachable code (concerns both code after an infinite
12439 loop and after an unconditional jump, both not allowed in SPARK)
12440 * sem_ch6.adb (Analyze_Return_Statement): add call to
12441 Set_Return_Present for a procedure containing a return statement
12442 (already done for functions in Analyze_Function_Return)
12443 (Analyze_Function_Return): issue error in formal mode on extended
12444 return or if return is not last statement in function
12445 (Check_Missing_Return): issue error in formal mode if function does
12446 not end with return or if procedure contains a return
12447 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
12448 function to detect if there is an inner scope of its parameter S which
12449 is a loop.
12450
124512011-08-01 Thomas Quinot <quinot@adacore.com>
12452
12453 * sem_ch6.ads: Minor reformatting.
12454
d8b3ccb9
AC
124552011-08-01 Javier Miranda <miranda@adacore.com>
12456
12457 * sem_util.adb (Abstract_Interface_List): Complete condition when
12458 processing private type declarations to avoid reading unavailable
12459 attribute.
12460 (Is_Synchronized_Tagged_Type): Complete condition when processing
12461 private extension declaration nodes to avoid reading unavailable
12462 attribute.
12463
124642011-08-01 Thomas Quinot <quinot@adacore.com>
12465
12466 * sem_ch3.adb: Minor reformatting.
12467
124682011-08-01 Thomas Quinot <quinot@adacore.com>
12469
12470 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
12471 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
12472 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
12473 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
12474 for VMS, instead parametrize the common implementation with
12475 System.Parameters declarations.
12476
0bb9276c
AC
124772011-08-01 Eric Botcazou <ebotcazou@adacore.com>
12478
12479 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
12480
124812011-08-01 Tristan Gingold <gingold@adacore.com>
12482
12483 * seh_init.c: Fix SEH handler installation on win64.
12484
124852011-08-01 Ed Schonberg <schonberg@adacore.com>
12486
12487 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
12488 double analysis of an anonymous access to subprogram, because it can
12489 lead to improper sharing of profiles and a back-end crash.
12490
6a2e4f0b
AC
124912011-08-01 Robert Dewar <dewar@adacore.com>
12492
12493 * make.adb, sem_ch4.adb: Minor reformatting.
12494 * gcc-interface/Make-lang.in: Update dependencies.
12495 * sem_util.adb, exp_ch5.adb: Minor reformatting.
12496
124972011-08-01 Arnaud Charlet <charlet@adacore.com>
12498
12499 * gnat_rm.texi: Fix definition of Long_Integer.
12500
125012011-08-01 Ed Schonberg <schonberg@adacore.com>
12502
12503 * exp_aggr.adb: check limit size of static aggregate unconditionally,
12504 to prevent storage exhaustion.
12505 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
12506 finalized is a function body, insert the cleanup code before the final
12507 return statement, to prevent spurious warnings.
12508 * s-pooglo.ads: add overriding indicator.
12509
4561baf7
ES
125102011-08-01 Ed Schonberg <schonberg@adacore.com>
12511
12512 * sem_ch4.adb (Operator_Check): improve error message when both a
12513 with_clause and a use_clause are needed to make operator usage legal.
12514 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
12515 determine whether a compilation unit is visible within an other,
12516 either through a with_clause in the current unit, or a with_clause in
12517 its library unit or one one of its parents.
12518
383e179e
AC
125192011-08-01 Ed Schonberg <schonberg@adacore.com>
12520
12521 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
12522 over an arbitrary expression of an array or container type.
12523 * lib-xref.adb: clarify comment.
12524
125252011-08-01 Bob Duff <duff@adacore.com>
12526
12527 * einfo.ads: Minor reformatting.
12528 * debug.adb: Minor comment improvement.
12529
125302011-08-01 Javier Miranda <miranda@adacore.com>
12531
12532 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
12533 consider hidden subprograms as valid candidates.
12534
125352011-08-01 Arnaud Charlet <charlet@adacore.com>
12536
12537 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
12538
125392011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
12540
12541 * gnat_ugn.texi: Fix typo.
12542
61c161b2
AC
125432011-08-01 Robert Dewar <dewar@adacore.com>
12544
12545 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
12546 lib-xref.adb: Minor reformatting
12547
125482011-08-01 Gary Dismukes <dismukes@adacore.com>
12549
12550 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
12551 when to generate a call to Move_Final_List.
12552 (Has_Controlled_Parts): Remove this function.
12553
84df40f7
AC
125542011-08-01 Geert Bosch <bosch@adacore.com>
12555
12556 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
12557 "," in choice list.
12558
125592011-08-01 Thomas Quinot <quinot@adacore.com>
12560
12561 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
12562 explicit raise of a predefined exception as Comes_From_Source if the
12563 original N_Raise_Statement comes from source.
12564
125652011-08-01 Robert Dewar <dewar@adacore.com>
12566
12567 * sinfo.ads: Add comment.
12568 * sem_ch6.adb: Minor reformatting.
12569
125702011-08-01 Robert Dewar <dewar@adacore.com>
12571
12572 * freeze.adb (Freeze_Entity): Refine check for bad component size
12573 clause to avoid rejecting confirming clause when atomic/aliased present.
12574
125752011-08-01 Ed Schonberg <schonberg@adacore.com>
12576
12577 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
12578 better determine whether an entity reference is a write.
12579 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
12580 subcomponent.
12581 * lib-xref.adb (Output_References): Do no suppress a read reference at
12582 the same location as an immediately preceeding modify-reference, to
12583 handle properly in-out actuals.
12584
125852011-08-01 Tristan Gingold <gingold@adacore.com>
12586
12587 * env.c (__gnat_setenv) [VMS]: Refine previous change.
12588
125892011-08-01 Quentin Ochem <ochem@adacore.com>
12590
12591 * i-cstrin.adb (New_String): Changed implementation, now uses only the
12592 heap to compute the result.
12593
c7f0d2c0
AC
125942011-08-01 Robert Dewar <dewar@adacore.com>
12595
12596 * atree.ads: Minor reformatting.
12597
125982011-08-01 Emmanuel Briot <briot@adacore.com>
12599
12600 * g-expect.adb (Get_Command_Output): Fix memory leak.
12601
126022011-08-01 Geert Bosch <bosch@adacore.com>
12603
12604 * cstand.adb (P_Float_Type): New procedure to print the definition of
12605 predefined fpt types.
12606 (P_Mixed_Name): New procedure to print a name using mixed case
12607 (Print_Standard): Use P_Float_Type for printing floating point types
12608 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
12609 precision IEEE float.
12610
126112011-08-01 Thomas Quinot <quinot@adacore.com>
12612
12613 * sem_ch3.adb: Minor reformatting.
12614
126152011-08-01 Ed Schonberg <schonberg@adacore.com>
12616
12617 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
12618 the completion of a generic function, insert the new body rather than
12619 rewriting the original.
12620
126212011-08-01 Yannick Moy <moy@adacore.com>
12622
12623 * sinfo.ads, errout.ads: Typos in comments.
12624
1c54829e
AC
126252011-08-01 Robert Dewar <dewar@adacore.com>
12626
12627 * par-endh.adb: Minor reformatting.
12628
126292011-08-01 Robert Dewar <dewar@adacore.com>
12630
12631 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
12632 (Pre_Post_Aspects): New subtype.
12633 * par-ch12.adb (P_Generic): New syntax for aspects in packages
12634 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
12635 * par-ch7.adb (P_Package): Remove Decl parameter
12636 (P_Package): Handle new syntax for aspects (before IS)
12637 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
12638 new aspect syntax
12639 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
12640 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
12641 (P_Package): Remove Decl parameter
12642 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
12643 aspects
12644 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
12645 specs
12646 * sem_util.ads, sem_util.adb (Static_Boolean): New function
12647 * sinfo.ads: Document new syntax for aspects in packages etc.
12648 * sprint.adb: Handle new syntax of aspects before IS in package
12649
126502011-08-01 Thomas Quinot <quinot@adacore.com>
12651
12652 * atree.ads: Minor reformatting.
12653 * sem_prag.adb: Minor reformatting.
12654
126552011-08-01 Robert Dewar <dewar@adacore.com>
12656
12657 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
12658 case expr alternative.
12659
126602011-08-01 Ed Schonberg <schonberg@adacore.com>
12661
12662 * sem_ch12.adb: Fix typo.
12663
9eea4346
GB
126642011-08-01 Geert Bosch <bosch@adacore.com>
12665
12666 * sem_prag.adb (Check_No_Link_Name): New procedure.
12667 (Process_Import_Or_Interface): Use Check_No_Link_Name.
12668 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
12669 instead of Standard_Long_Long_Float_Size global. Preparation for
12670 eventual removal of per type constants.
12671 * exp_util.ads (Get_Stream_Size): New function returning the stream
12672 size value of subtype E.
12673 * exp_util.adb (Get_Stream_Size): Implement new function.
12674 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
12675 function.
12676 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
12677 * einfo.adb:
12678 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
12679
3d6c3bd7
GB
126802011-08-01 Geert Bosch <bosch@adacore.com>
12681
12682 * cstand.adb: Fix comments.
12683 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
12684 count of arguments.
12685
e7d897b8
AC
126862011-08-01 Robert Dewar <dewar@adacore.com>
12687
12688 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
12689
126902011-08-01 Geert Bosch <bosch@adacore.com>
12691
12692 * atree.ads: Fix comment.
12693
c228a069
AC
126942011-08-01 Robert Dewar <dewar@adacore.com>
12695
12696 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
12697 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
12698 * par.adb: Add with for Namet.Sp.
12699 * par-tchk.adb: Minor reformatting.
12700
127012011-08-01 Vincent Celier <celier@adacore.com>
12702
12703 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
12704 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
12705 of the init procedure of a SAL.
12706 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
12707 New procedure.
12708
127092011-08-01 Thomas Quinot <quinot@adacore.com>
12710
12711 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
12712 reformatting.
12713
127142011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12715
12716 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
12717
127182011-08-01 Thomas Quinot <quinot@adacore.com>
12719
12720 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
12721 conformant with its spec (return True only for types that have
12722 an overriding Initialize primitive operation that prevents them from
12723 having preelaborable initialization).
12724 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
12725 initialization for controlled types in Ada 2005 or later mode.
12726
857ade1b
RD
127272011-08-01 Robert Dewar <dewar@adacore.com>
12728
12729 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
12730 Postcondition.
12731 (Same_Aspect): New function.
12732 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
12733 Type_Invariant, Precondition, Postcondition.
12734 * snames.ads-tmpl: Add Name_Type_Invariant.
12735
bd949ee2
RD
127362011-08-01 Robert Dewar <dewar@adacore.com>
12737
12738 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
12739 here.
12740 (Freeze_All_Ent): Fix error in handling inherited aspects.
12741 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
12742 already analyzed, but don't skip entire processing of a declaration,
12743 that's wrong in some cases of declarations being rewritten.
12744 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
12745 Don't delay for integer, string literals
12746 Treat predicates in usual manner for delay, remove special case code,
12747 not needed.
12748 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
12749 (Build_Predicate_Function): Update saved expression in aspect
12750 (Build_Invariant_Procedure): Update saved expression in aspect
12751 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
12752 of replacement of discriminant references if the reference is simple.
12753
f1c952af
RD
127542011-08-01 Robert Dewar <dewar@adacore.com>
12755
12756 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
12757 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
12758 Static_Predicate and Dynamic_Predicate.
12759 (Build_Predicate_Function): Add processing for Static_Predicate
12760 and Dynamic_Predicate.
12761 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
12762 (From_Static_Predicate): New flag
12763 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
12764
127652011-08-01 Robert Dewar <dewar@adacore.com>
12766
12767 * usage.adb: Documentation cleanup for Ada version modes in usage.
12768 * expander.adb: Minor reformatting.
12769
47e11d08
AC
127702011-08-01 Robert Dewar <dewar@adacore.com>
12771
12772 * atree.ads: Minor comment fix.
12773 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
12774 a-witeio.ads, sem_prag.adb: Minor reformatting.
12775
127762011-08-01 Doug Rupp <rupp@adacore.com>
12777
12778 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
12779 pointers. Use descrip.h header file for convenience. Add some
12780 comments.
12781
127822011-08-01 Robert Dewar <dewar@adacore.com>
12783
12784 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
12785 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
12786 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
12787 New procedure.
12788 (Check_Aspect_At_End_Of_Declarations): New procedure
12789 (Analye_Aspect_Specification): Minor changes for above procedures
12790 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
12791 specification node as well.
12792
127932011-08-01 Pascal Obry <obry@adacore.com>
12794
12795 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
12796 Windows files. Use GetFilesAttributes() in this case to check for file
12797 existence instead of returning with an error code.
12798
a3a16b21
VC
127992011-08-01 Vincent Celier <celier@adacore.com>
12800
12801 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
12802 High is above Source length.
12803
ff58cc69
RD
128042011-08-01 Robert Dewar <dewar@adacore.com>
12805
12806 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
12807
6bb88533
AC
128082011-08-01 Robert Dewar <dewar@adacore.com>
12809
12810 * aspects.ads (Boolean_Aspects): New subtype.
12811 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
12812 for derived types in cases where the parent type and derived type have
12813 aspects.
12814 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
12815 with aspects when parent type also has aspects.
12816 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
12817 boolean expression at this point).
12818 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
12819 accordance with final decision on the Ada 2012 feature.
12820 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
12821
128222011-08-01 Matthew Heaney <heaney@adacore.com>
12823
12824 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
12825
060a3f28
AC
128262011-08-01 Pascal Obry <obry@adacore.com>
12827
12828 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
12829 Fix Replace_Slice when High is above current string size.
12830 (Replace_Slice): Fix DL computation when High is above current
12831 string length.
12832
128332011-08-01 Gary Dismukes <dismukes@adacore.com>
12834
12835 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
12836
e7f567a3
AC
128372011-08-01 Matthew Heaney <heaney@adacore.com>
12838
12839 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
12840 of node.
12841
128422011-08-01 Pascal Obry <obry@adacore.com>
12843
12844 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
12845 reformatting.
12846
1a265e78
AC
128472011-08-01 Ed Schonberg <schonberg@adacore.com>
12848
12849 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
12850 access to protected subprograms in generic bodies.
12851 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
12852 protected type, indicate that the convention of the subprogram is
12853 Convention_Protected, because it may be used in subsequent declarations
12854 within the protected declaration.
12855
128562011-08-01 Vincent Celier <celier@adacore.com>
12857
12858 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
12859 and "final" procedures when the name of the library is "ada", to avoid
12860 duplicate symbols "adainit" and "adafinal" in executables.
12861
67e28ef8
ES
128622011-08-01 Ed Schonberg <schonberg@adacore.com>
12863
12864 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
12865 quantified expression that appears within a postcondition and uses the
12866 Ada2012 'Result attribute.
12867
6da2ca7d
RO
128682011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12869
12870 * init.c (__gnat_error_handler): Cast reason to int.
12871 (__gnat_install_handler): Explain sa_sigaction use.
12872
7d5997c6
EB
128732011-07-24 Eric Botcazou <ebotcazou@adacore.com>
12874
12875 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
12876 subprogram has copy-in copy-out parameters, try to promote the mode of
12877 the return type if it is passed in registers.
12878
4b4cfdd5
EB
128792011-07-24 Eric Botcazou <ebotcazou@adacore.com>
12880
12881 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
12882 left operand as addressable.
12883
f3d34576
EB
128842011-07-24 Eric Botcazou <ebotcazou@adacore.com>
12885
12886 * gcc-interface/gigi.h (build_function_stub): Remove.
12887 (build_return_expr): Likewise.
12888 (convert_vms_descriptor): Declare.
12889 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
12890 (build_function_stub): Move to...
12891 * gcc-interface/utils2.c (build_return_expr): Move to...
12892 * gcc-interface/trans.c (build_function_stub): ...here.
12893 (build_return_expr): ...here.
12894 (Subprogram_Body_to_gnu): Add local variable for language_function.
12895 Disconnect the parameter attributes cache, if any, once done with it.
12896 Call end_subprog_body only after setting the end_locus.
12897 Build the stub associated with the function, if any, at the very end.
12898 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
12899 variables and streamline control flow.
12900
0a6ecc08
AC
129012011-07-23 Arnaud Charlet <charlet@adacore.com>
12902
12903 PR ada/49819
12904 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
12905 g-trasym-dwarf.adb.
12906
5b6d595b
RO
129072011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12908
12909 PR bootstrap/49794
12910 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
12911 Assign to act.sa_sigaction.
12912 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
12913 current->return_address to char * before arithmetic.
12914
94017021
RO
129152011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12916
12917 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
12918 Correct argument types.
12919 Extract code from reason.
12920 (__gnat_install_handler): Assign to act.sa_sigaction.
12921
52fd02bb
EB
129222011-07-21 Eric Botcazou <ebotcazou@adacore.com>
12923
12924 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
12925 (GNAT1_OBJS): ...here.
12926
f39a9ca2
EB
129272011-07-15 Eric Botcazou <ebotcazou@adacore.com>
12928
12929 PR ada/48711
12930 * g-socthi-mingw.adb (Fill): Fix formatting.
12931
9e36aa23
EB
12932 * gcc-interface/gigi.h: Move around comment.
12933
e3aca522
JDA
129342011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12935
12936 PR ada/46350
12937 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
12938
696b1960
FW
129392011-07-14 Florian Weimer <fw@deneb.enyo.de>
12940
12941 PR ada/48711
12942 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
12943
f542c405
EB
129442011-07-13 Eric Botcazou <ebotcazou@adacore.com>
12945
12946 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
12947 range comparison if Pmode is SImode.
12948
9e9bd455
LG
129492011-07-12 Laurent GUERBY <laurent@guerby.net>
12950 Eric Botcazou <ebotcazou@adacore.com>
12951
12952 * adadecode.c: Wrap up in extern "C" block.
12953 * adadecode.h: Likewise.
12954 * adaint.c: Likewise. Remove 'const' keyword.
12955 * adaint.h: Likewise.
12956 * argv.c: Likewise.
12957 * atree.h: Likewise.
12958 * cio.c: Likewise.
12959 * cstreams.c: Likewise.
12960 * env.c: Likewise.
12961 * exit.c: Likewise.
12962 * fe.h: Likewise.
12963 * final.c: Likewise.
12964 * init.c: Likewise.
12965 * initialize.c: Likewise.
12966 * link.c: Likewise.
12967 * namet.h: Likewise.
12968 * nlists.h: Likewise.
12969 * raise.c: Likewise.
12970 * raise.h: Likewise.
12971 * repinfo.h: Likewise.
12972 * seh_init.c: Likewise.
12973 * targext.c: Likewise.
12974 * tracebak.c: Likewise.
12975 * uintp.h: Likewise.
12976 * urealp.h: Likewise.
12977 * xeinfo.adb: Wrap up generated C code in extern "C" block.
12978 * xsinfo.adb: Likewise.
12979 * xsnamest.adb: Likewise.
12980 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
12981 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
12982 * gcc-interface/misc.c: Likewise.
12983 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
12984 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
12985 ada/targext.o here...
12986 (GNAT_ADA_OBJS): ...and not here.
12987 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
12988 (GNATBIND_OBJS): Reorder.
12989
7644b3c7
RH
129902011-07-07 Richard Henderson <rth@redhat.com>
12991
12992 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
12993 dwarf2out_frame_init.
12994
8384ac41
EB
129952011-07-07 Eric Botcazou <ebotcazou@adacore.com>
12996
12997 * gcc-interface/misc.c (gnat_init): Tweak previous change.
12998
fbdd5d87
RO
129992011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13000
13001 PR target/39150
13002 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
13003
1a072294
RG
130042011-07-06 Richard Guenther <rguenther@suse.de>
13005
8384ac41
EB
13006 * gcc-interface/misc.c (gnat_init): Merge calls to
13007 build_common_tree_nodes and build_common_tree_nodes_2.
1a072294
RG
13008 Re-initialize boolean_false_node.
13009
bc712852
EB
130102011-07-02 Eric Botcazou <ebotcazou@adacore.com>
13011 Olivier Hainque <hainque@adacore.com>
13012 Nicolas Setton <setton@adacore.com>
13013
13014 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
13015 the type according to the ARTIFICIAL_P parameter.
13016 (create_type_decl): Likewise.
13017 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
13018
2eb22389
EB
130192011-07-01 Eric Botcazou <ebotcazou@adacore.com>
13020
13021 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
13022 (gnatbind): Likewise.
13023
4bdaaf2f
RO
130242011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13025
13026 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
13027
c020c92b
EB
130282011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13029
13030 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
13031 local variable throughout. Remove useless call to Base_Type.
13032 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
13033 Take it also into account for the volatileness of the field. Set the
13034 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
13035
96769d32
EB
130362011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13037
13038 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
13039 on a dereference built for a by-ref object if it has an address clause.
13040
7e4680c1
EB
130412011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13042
13043 * einfo.ads (Address_Taken): Document use for the second argument of
13044 Asm_Input and Asm_Output attributes.
13045 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
13046 argument is an entity name, then set Address_Taken on it.
13047 <Attribute_Asm_Output>: Likewise.
13048 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
13049 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
13050 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
13051 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
13052
130532011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
13054
13055 PR middle-end/46500
13056 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
13057
677f3fa8
JM
130582011-06-14 Joseph Myers <joseph@codesourcery.com>
13059
13060 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
13061 (ada/utils.o): Update dependencies.
13062 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
13063 ../../../libcpp/libcpp.a.
13064 * gcc-interface/utils.c: Include common/common-target.h.
13065 (process_attributes): Use targetm_common.have_named_sections.
13066
009db074
RG
130672011-06-07 Richard Guenther <rguenther@suse.de>
13068
0bad0e23
EB
13069 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
13070 set_sizetype.
009db074 13071
3bfc61cf
EB
130722011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13073
0bad0e23 13074 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
3bfc61cf
EB
13075 TREE_THIS_NOTRAP flag.
13076
5c4a1c7b
EB
130772011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13078
13079 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
13080 Fix thinko.
13081
e9f57686
EB
130822011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13083
13084 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
13085 constants whose full view has discriminants specially.
13086
10e4d056
EB
130872011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13088
13089 * gcc-interface/utils.c: Include diagnostic.h.
13090 (gnat_write_global_declarations): Output debug information for all
13091 global type declarations before finalizing the compilation unit.
13092 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
13093
0957c029
JJ
130942011-05-25 Jakub Jelinek <jakub@redhat.com>
13095
13096 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
13097
52d0a7ac
KT
130982011-05-25 Kai Tietz <ktietz@redhat.com>
13099
13100 * adaint.c (__gnat_to_canonical_file_list_next): Use array
13101 initialization instead of const/none-const pointer assignment.
13102
1ed1641d
JM
131032011-05-24 Joseph Myers <joseph@codesourcery.com>
13104
13105 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
13106 $(EXTRA_GNAT1_OBJS).
13107 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
13108 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
13109 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
13110 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
13111 libcommon-target.a instead of prefix.o.
13112
9fe72ebd
JM
131132011-05-21 Joseph Myers <joseph@codesourcery.com>
13114
13115 PR ada/49097
0bad0e23 13116 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9fe72ebd 13117
2691e6d7
JM
131182011-05-20 Joseph Myers <joseph@codesourcery.com>
13119
0bad0e23
EB
13120 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
13121 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
13122 instead of version.o.
2691e6d7 13123
bf6490b5
KT
131242011-05-18 Kai Tietz <ktietz@redhat.com>
13125
13126 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
13127 boolean_false_node instead of integer_zero_node.
13128 (convert_with_check): Likewise.
13129 * gcc-interface/decl.c (choices_to_gnu): Likewise.
13130
7bf9a5ac
EB
131312011-05-12 Eric Botcazou <ebotcazou@adacore.com>
13132
13133 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
13134 type of the parameter is an unconstrained array, convert the actual to
13135 the type of the formal in the In Out and Out cases as well.
13136
e5b00edf
NF
131372011-05-11 Nathan Froyd <froydnj@codesourcery.com>
13138
13139 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
13140 call build_function_type_array or build_varargs_function_type_array
13141 instead.
13142 (create_subprog_type): Don't call build_function_type; call
13143 build_function_type_vec instead.
13144
51545682
NF
131452011-05-11 Nathan Froyd <froydnj@codesourcery.com>
13146
13147 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
13148 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
13149 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
13150
c99c0026
EB
131512011-05-07 Eric Botcazou <ebotcazou@adacore.com>
13152
f620bd21
EB
13153 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
13154
c99c0026
EB
13155 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
13156 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
13157
3d528853
NF
131582011-05-05 Nathan Froyd <froydnj@codesourcery.com>
13159
c99c0026 13160 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
3d528853 13161
d7d058c5
NF
131622011-05-05 Nathan Froyd <froydnj@codesourcery.com>
13163
13164 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
13165 instead of accessing TYPE_ARG_TYPES directly.
13166 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
13167
805e60a0
EB
131682011-05-05 Eric Botcazou <ebotcazou@adacore.com>
13169
13170 PR ada/48844
13171 * gcc-interface/gigi.h (get_variant_part): Declare.
13172 * gcc-interface/decl.c (get_variant_part): Make global.
13173 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
13174 types have the same constant size, are record types and T1 has a
13175 variant part while T2 doesn't.
13176
907a08d9
EB
131772011-05-05 Eric Botcazou <ebotcazou@adacore.com>
13178
13179 * gcc-interface/utils.c (begin_subprog_body): Do not call
13180 get_pending_sizes.
13181 (end_subprog_body): Likewise.
13182
d35936ab
RG
131832011-05-04 Richard Guenther <rguenther@suse.de>
13184
13185 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
13186 int_const_binop.
13187 (pos_to_constructor): Likewise.
13188
c1fd8753 131892011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 13190 Eric Botcazou <ebotcazou@adacore.com>
c1fd8753
NF
13191
13192 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
13193 of build_function_type. Adjust calls to...
13194 (build_raise_check): ...this. Do not take a void_tree parameter.
13195 Call build_function_type_list instead of build_function_type.
13196 Fix head comment and swap couple of conditional blocks.
13197
4fb87d2b
EB
131982011-04-30 Eric Botcazou <ebotcazou@adacore.com>
13199
13200 * gnatvsn.ads (Library_Version): Bump to 4.7.
13201 (Current_Year): Bump to 2011.
13202
fa5e5a76
MM
132032011-04-29 Michael Matz <matz@suse.de>
13204
13205 * gcc-interface/misc.c (gnat_handle_option): Set
13206 warn_maybe_uninitialized.
13207
8d6a2f69
GP
132082011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
13209
13210 * gnat_ugn.texi (Complexity Metrics Control): Update link to
13211 the Watson/McCabe paper.
13212
770937fd
JM
132132011-04-23 Jim Meyering <meyering@redhat.com>
13214
13215 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
13216
eb601ae1
EB
132172011-04-22 Eric Botcazou <ebotcazou@adacore.com>
13218
13219 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
13220 onto the new type.
13221
7d7fcb08
EB
132222011-04-22 Eric Botcazou <ebotcazou@adacore.com>
13223
13224 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
13225 parameter.
13226 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
13227 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
13228 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
13229 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
13230 <all>: Do not set flags on the reused DECL node coming from an alias.
13231 Set DECL_IGNORED_P on the DECL node built for subprograms if they
13232 don't need debug info here...
13233 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
13234 (gigi): Adjust calls to create_subprog_decl.
13235 (build_raise_check): Likewise.
13236 (establish_gnat_vms_condition_handler): Likewise.
13237 (Compilation_Unit_to_gnu): Likewise.
13238 (gnat_to_gnu): Likewise.
13239
e1876cac
EB
132402011-04-21 Eric Botcazou <ebotcazou@adacore.com>
13241
13242 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
13243 (NO_REORDER_ADAFLAGS): New variable.
13244 (EXTRA_GNATTOOLS): Always define.
13245 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
13246 Clean up and adjust list of files compiled with special options.
13247 * gcc-interface/Make-lang.in: Likewise.
13248 (ada/decl.o): Cosmetical change.
13249 (ada/misc.o): Remove dependency on $(PLUGIN_H).
13250
04695783
JM
132512011-04-20 Jim Meyering <meyering@redhat.com>
13252
13253 * initialize.c (__gnat_initialize): Remove useless if-before-free.
13254
23399579
EB
132552011-04-17 Eric Botcazou <ebotcazou@adacore.com>
13256
13257 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
13258 $(CFLAGS) on the link line.
13259
51c5169c
EB
132602011-04-17 Eric Botcazou <ebotcazou@adacore.com>
13261
13262 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
13263 padded type built for the return type if it is unconstrained.
13264
61e46a7d
NF
132652011-04-14 Nathan Froyd <froydnj@codesourcery.com>
13266
13267 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
13268
81f653d6
NF
132692011-04-12 Nathan Froyd <froydnj@codesourcery.com>
13270
b4867846
EB
13271 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
13272 before calling TREE_CHAIN.
81f653d6
NF
13273 * gcc-interface/misc.c (gnat_init_ts): New function.
13274 (LANG_HOOKS_INIT_TS): Define.
13275
a358e188
MJ
132762011-04-12 Martin Jambor <mjambor@suse.cz>
13277
b4867846
EB
13278 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
13279 instead of cgraph_node.
a358e188 13280
29b1c5a4
EB
132812011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13282
13283 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
13284 alignment on fields of the RETURN type built for the Copy-In Copy-Out
13285 mechanism.
13286
88872b00
EB
132872011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13288
13289 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
13290 of aggregate types that contain a placeholder.
13291
dcf0c47e
NF
132922011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13293
13294 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 13295 TYPE_ARG_TYPES.
dcf0c47e
NF
13296 (handle_type_generic_attribute): Likewise.
13297
53e3000c
EB
132982011-04-04 Eric Botcazou <ebotcazou@adacore.com>
13299
13300 PR ada/47163
13301 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
13302
ab380bb4
KT
133032011-04-04 Kai Tietz <ktietz@redhat.com>
13304
13305 PR ada/47163
0bad0e23
EB
13306 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
13307 to flag value.
ab380bb4 13308
8ffac116
EB
133092011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13310
13311 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
13312 type case, do not strip a padding type around the array type.
13313
de9528f0
EB
133142011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13315
13316 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
13317 types.
13318
d9d7a26c
EB
133192011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13320
13321 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
13322 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 13323 code for -feliminate-unused-debug-types.
d9d7a26c
EB
13324 (gnat_post_options): Likewise.
13325
4cb12a90
EB
133262011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13327
13328 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
13329 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
13330 distinct copy.
13331
acccc61c
EB
133322011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13333
13334 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
13335 DECL_ARTIFICIAL flag on enumeration types.
13336
583eb0c9
EB
133372011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13338
13339 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
13340 fat pointer types artificial unconditionally.
13341 <E_Array_Subtype>: Attach the base array type as a parallel type if it
13342 isn't artificial.
13343
e3edbd56
EB
133442011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13345
13346 * gcc-interface/gigi.h (get_dummy_type): Declare.
13347 (build_dummy_unc_pointer_types): Likewise.
13348 (finish_fat_pointer_type): Likewise.
13349 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
13350 fat pointer type has been built, complete it in place.
13351 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
13352 and thin pointers. Remove useless variable.
13353 (finish_fat_pointer_type): Make global and move to...
13354 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
13355 (get_dummy_type): New function.
13356 (build_dummy_unc_pointer_types): Likewise.
13357 (gnat_pushdecl): Propage the name to the anonymous variants only.
13358 (update_pointer_to): Only adjust the pointer types in the unconstrained
13359 array case.
13360
65444786
EB
133612011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13362
13363 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
13364 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
13365 if this is a Taft amendment type and the full declaration is available.
13366 * gcc-interface/trans.c (process_type): Likewise.
13367 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
13368 (process_freeze_entity): Likewise.
13369 * gcc-interface/utils.c (dummy_global): New static variable.
13370 (gnat_write_global_declarations): If there are types declared as used
13371 at the global level, insert them in the global hash table.
13372
1aeb40dd
EB
133732011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13374
13375 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
13376 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
13377 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
13378 copy.
13379 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
13380 flag of the type accordingly.
13381 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
13382
80ec8b4c
EB
133832011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13384
13385 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
13386 finalizing types when updating the pointers to the designated type.
13387 <all>: Finalize the deferred types even if we didn't defer processing
13388 of incomplete types in this invocation.
13389
2a9d769a 133902011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
13391 Nicolas Setton <setton@adacore.com>
13392 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
13393
13394 * gcc-interface/misc.c (gnat_descriptive_type): New function.
13395 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
13396
2438d7a6
KT
133972011-03-28 Kai Tietz <ktietz@redhat.com>
13398
333d8aff 13399 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
13400 Windows targets.
13401 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
13402 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 13403
80ec8b4c 13404 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 13405
8ad150f6
TG
134062011-03-28 Tristan Gingold <gingold@adacore.com>
13407
13408 PR ada/44431
80ec8b4c
EB
13409 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
13410 Use ada output of gnatbind.
8ad150f6
TG
13411 (ada/b_gnatb.adb): Ditto.
13412 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
13413 (ada.mostlyclean, ada.stage1)
13414 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
13415 (ada.stagefeedback): Adjust.
80ec8b4c 13416 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
13417 Use ada output of gnatbind.
13418 (b_gnatm.adb): Ditto.
13419 (b_gnatl.o, b_gnatm.o): New rules.
13420
51c7954d
EB
134212011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13422
13423 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
13424 for the padded type built to support a specified size or alignment.
13425
6ddf9843
EB
134262011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13427
13428 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
13429 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
13430 unconditionally to the end of the unit when the designated type is
13431 limited_with'ed.
13432 <all>: Rename local variable. Attempt to un-defer types only and do it
13433 for limited_with'ed types as well.
13434 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
13435 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
13436 consistently and remove redundant call to finalize_from_with_types.
13437
5daed84a
EB
134382011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13439
13440 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
13441 subprograms without a previous spec declared in the same unit.
13442 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
13443 subprograms at the end of the unit instead of at the beginning.
13444 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
13445 isn't public for the special handling of non-inline functions nested
13446 inside inline external functions.
13447
0edf1bb2
JL
134482011-03-25 Jeff Law <law@redhat.com>
13449
5daed84a 13450 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 13451
e3c4580e
EB
134522011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13453
13454 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
13455 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
13456 to compute Set_Size_Depends_On_Discriminant.
13457 (Layout_Type): Call it on array types in back-end layout mode.
13458 * sem_util.adb (Requires_Transient_Scope): Return true for array
13459 types only if the size depends on the value of discriminants.
13460 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
13461 type if the RHS is a call to a function that returns an unconstrained
13462 type with default discriminant.
13463
abbc8c7b
EB
134642011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13465
13466 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
13467 non-conversion to the nominal result type at the end.
13468
ddb5a105
EB
134692011-03-23 Eric Botcazou <ebotcazou@adacore.com>
13470
13471 * gcc-interface/trans.c (create_temporary): New function taken from...
13472 (create_init_temporary): ...here. Call it.
13473 (call_to_gnu): Create the temporary for the return value early, if any.
13474 Create it for a function with copy-in/copy-out parameters if there is
13475 no target; in other cases of copy-in/copy-out, use another temporary.
13476 Push the new binding level lazily. Add and rename local variables.
13477
0d853156
EB
134782011-03-23 Eric Botcazou <ebotcazou@adacore.com>
13479
13480 * gcc-interface/decl.c (validate_size): Improve comments and tweak
13481 error message.
13482 (set_rm_size): Likewise.
13483
4184ef1b
EB
134842011-03-23 Eric Botcazou <ebotcazou@adacore.com>
13485
13486 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
13487 for the padded type built in order to support a specified alignment.
13488 Fix incorrect formatting.
13489
bf7eefab
EB
134902011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13491
13492 PR bootstrap/48216
13493 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
13494
ef0feeb2
EB
134952011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13496
13497 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
13498 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
13499 to the end of the list. Adjust recursive call. Rename local variable.
13500 If REORDER is true, reorder components of the record type.
13501 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
13502 components_to_record and adjust the parameter list.
13503
646f9414
EB
135042011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13505
13506 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
13507 disabled, use the variable for bounds of loop iteration scheme.
13508
62d784f7
KT
135092011-03-21 Kai Tietz <ktietz@redhat.com>
13510
13511 PR target/12171
0bad0e23 13512 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
62d784f7 13513
f230d759
EB
135142011-03-17 Eric Botcazou <ebotcazou@adacore.com>
13515
13516 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
13517 out whether the expression is read-only. Short-circuit placeholder
13518 case and rename a couple of local variables.
13519
bb1f7929
EB
135202011-03-17 Eric Botcazou <ebotcazou@adacore.com>
13521
13522 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
13523 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
13524 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
13525 (convert): Deal with conversions from a smaller form type specially.
13526
400a2d24
EB
135272011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13528
13529 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
13530 its argument, except for the special -I- switch.
13531
c26bc3ad
GP
135322011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
13533
0bad0e23
EB
13534 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
13535 "Ada Issues".
c26bc3ad 13536
07b8e910
EB
135372011-02-08 Eric Botcazou <ebotcazou@adacore.com>
13538
13539 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
13540
31a5a547
EB
135412011-02-03 Eric Botcazou <ebotcazou@adacore.com>
13542
13543 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
13544 GNAT_FORMAL.
13545 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
13546 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
13547 instead of GNAT_FORMAL. Protect the expression against multiple uses.
13548 Do not generate the check directly, instead instantiate the template
13549 check present in the descriptor.
13550 (make_descriptor_field): Move around.
13551 (build_vms_descriptor32): Build a template check in the POINTER field.
13552 (build_vms_descriptor): Remove useless suffixes.
13553 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
13554
dcf25f59
EB
135552011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13556
13557 PR bootstrap/47467
13558 * targext.c: Include target files if IN_RTS is defined.
13559
0418e131
RG
135602011-01-26 Richard Guenther <rguenther@suse.de>
13561
13562 PR bootstrap/47467
13563 * targext.c: Include config.h.
13564 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
13565 dependency.
13566
c6eecbd8 135672011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 13568 Eric Botcazou <ebotcazou@adacore.com>
c6eecbd8
PO
13569
13570 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
13571
2d3c7e4f
EB
135722011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13573
13574 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
13575 end-of-case on the end label and its associated gotos, if any.
13576
0394741f
EB
135772011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13578
13579 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
13580 expressions of the parameter cache within the statement group of
13581 the CICO mechanism.
13582
2a02d090 135832011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 13584 Eric Botcazou <ebotcazou@adacore.com>
2a02d090
OH
13585
13586 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
13587 (set_end_locus_from_node): New function.
13588 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
13589 make and the function end_locus.
13590 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
13591 for the elaboration subprogram.
13592 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
13593 set the end_locus of the expression as well.
13594
89f5e978
EB
135952011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13596
13597 PR ada/47131
13598 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
13599 variables that are referenced in exception handlers volatile.
13600
13601
ad41bd84 13602\f
797103eb 13603Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
13604
13605Copying and distribution of this file, with or without modification,
13606are permitted in any medium without royalty provided the copyright
13607notice and this notice are preserved.