]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
[multiple changes]
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
444acbdd
AC
12011-08-29 Emmanuel Briot <briot@adacore.com>
2
3 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also
4 initialize aggregated projects.
5
62011-08-29 Ed Schonberg <schonberg@adacore.com>
7
8 * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope
9 depth of candidates to resolve a potentially spurious ambiguity between
10 two visible subprograms.
11
e0296583
AC
122011-08-29 Yannick Moy <moy@adacore.com>
13
14 * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without
15 Requires/Ensures.
16 * sem_util.adb (Get_Ensures_From_Test_Case_Pragma,
17 Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without
18 Requires/Ensures.
19
202011-08-29 Arnaud Charlet <charlet@adacore.com>
21
22 * gnat1drv.adb (Adjust_Global_Switches): Improve previous change.
23 Add comment.
24
252011-08-29 Thomas Quinot <quinot@adacore.com>
26
27 * sem_res.adb: Minor reformatting.
28
69794413
JK
292011-08-29 Johannes Kanig <kanig@adacore.com>
30
31 * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA
32 mode.
33 * gnat1drv.adb (Adjust_Global_Switches): Set
34 Use_Expressions_With_Actions to False in ALFA mode.
35 * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in
36 ALFA mode.
37
59e6b23c
AC
382011-08-29 Yannick Moy <moy@adacore.com>
39
40 * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode.
41 * exp_ch9.adb: Do not expand tasking constructs in Alfa mode.
42 * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of
43 tagged types and dispatching calls in Alfa mode.
44
452011-08-29 Javier Miranda <miranda@adacore.com>
46
47 * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that
48 we do not report an error on an Empty node.
49
502011-08-29 Geert Bosch <bosch@adacore.com>
51
52 * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o,
53 a-nlrear.o and a-nurear.o.
54
552011-08-29 Robert Dewar <dewar@adacore.com>
56
57 * freeze.adb: Minor code reorganization.
58 Minor reformatting.
59 * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb,
60 sem_ch6.adb: Minor reformatting
61
622011-08-29 Tristan Gingold <gingold@adacore.com>
63
64 * s-except.ads, s-except.adb: Provide dummy body.
65
662011-08-29 Yannick Moy <moy@adacore.com>
67
68 * sem_warn.adb (Within_Postcondition): Take into account the case of
69 an Ensures component in a Test_Case.
70
4d792549
AC
712011-08-29 Tristan Gingold <gingold@adacore.com>
72
73 * s-excdeb.ads, s-excdeb.adb: New files, created from s-except.
74 * rtsfind.ads (RTU_Id): Replaces System_Exceptions by
75 System_Exceptions_Debug
76 (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug
77 * a-except.adb: With and use System.Exceptions_Debug instead of
78 System.Exceptions.
79 * a-except-2005.adb: Likewise.
80 * s-assert.adb: Likewise.
81 * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb.
82 * Makefile.rtl: Add s-excdeb. Adjust compilation rule.
83 * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add
84 s-excdeb. Update dependencies.
85 (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o
86 as these no longer need external libraries.
87
882011-08-29 Ed Schonberg <schonberg@adacore.com>
89
90 * sem_res.adb (Resolve_Op_Expon): Additional check to reject an
91 exponentiation operator on universal values in a context that requires
92 a fixed-point type.
93
942011-08-29 Tristan Gingold <gingold@adacore.com>
95
96 * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence
97 before calling notify_handled_exception.
98 * a-exextr.adb: Fix comment.
99
b254da66
AC
1002011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
101
102 * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute
103 Finalize_Address of the access type's finalization master.
104 (Expand_N_Allocator): Add code to set attribute Finalize_Address of the
105 access type's finalization master. Add a guard to prevent
106 Associated_Storage_Pool from being set on .NET/JVM.
107 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set
108 attribute Finalize_Address of the access type's finalization master.
109 * exp_ch7.adb (Make_Finalize_Address_Call): New routine.
110 * exp_ch7.ads (Make_Finalize_Address_Call): New routine.
111 * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and
112 RE_Unit_Table.
113 * s-finmas.adb: Add with clause for System.Address_Image. Add with and
114 use clause for System.IO
115 (Detach): Relax the assertion, to be reinstated later.
116 (Finalize): Rewrite the iteration loop to avoid pointer comparison.
117 Relax the assertion on Finalize_Address, to be reinstated later.
118 (Is_Empty_List): New routine.
119 (pm): New debug routine.
120 (Set_Finalize_Address): New routine.
121 * s-finmas.ads (pm): New debug routine.
122 (Set_Finalize_Address): New routine.
123 * s-stposu.adb (Allocate_Any_Controlled): Code reformatting.
124
1252011-08-29 Tristan Gingold <gingold@adacore.com>
126
127 * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access):
128 Remove convention C.
129
1302011-08-29 Tristan Gingold <gingold@adacore.com>
131
132 * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove.
133 (Initialize_TCB): Remove Exc_Stack_Ptr initialization.
134 (Finalize_TCB): Remove its finalization.
135 (Initialize): Remove assignment of GET_Exc_Stack_Addr
136 * s-soflin.adb (NT_Exc_Stack): Remove
137 (Get_Exc_Stack_Addr_NT): Likewise.
138 (Get_Exc_Stack_Addr_Soft): Likewise.
139 * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove.
140 (Get_Exc_Stack_Addr): Likewise.
141 (Get_Exc_Stack_Addr_Soft): Likewise
142 * s-taspri-vms.ads (Exc_Stack_T): Remove.
143 (Exc_Stack_Ptr_T): Likewise.
144 (Private_Data): Remove Exc_Stack_Ptr component.
145
1462011-08-29 Tristan Gingold <gingold@adacore.com>
147
148 * raise-gcc.c (get_ip_from_context): New function. Factorize code.
149
1502011-08-29 Tristan Gingold <gingold@adacore.com>
151
152 * gnat_ugn.texi: Fix aix and x86-solaris info for run-time.
153
1542011-08-29 Geert Bosch <bosch@adacore.com>
155
156 * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate,
157 L2_Norm, Swap_Column): New generic subprograms
158 * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate,
159 L2_Norm, Swap_Column): Implement new subprograms in order to
160 eliminate dependency on BLAS and LAPACK libraries in
161 Ada.Numerics.Generic_Real_Arrays and eventually also the complex
162 version. Forward_Eliminate/Back_Substitute can be used to put a
163 matrix in row echelon or reduced row echelon form using partial
164 pivoting.
165 * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate,
166 Swap_Column): Instantiate from System.Generic_Array_Operations.
167 ("*", "abs"): Implement by instantiation from Generic_Array_Operations.
168 (Sqrt): Local function for simple computation of square root without
169 adding dependencies on Generic_Elementary_Functions.
170 (Swap): New subprogram to exchange floating point numbers.
171 (Inverse): Reimplement using Jordan-Gauss elimination.
172 (Jacobi): New procedure implementing Jacobi's method for computation
173 of eigensystems, based on Rutishauser's implementation.
174 (L2_Norm): Implement directly using the inner product.
175 (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of
176 decreasing eigenvalue as required by the Ada RM.
177 (Swap_Column): New helper procedure for Sort_Eigensystem.
178 Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK.
179 Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for
180 Sort_Eigensystems.
181
1822011-08-29 Thomas Quinot <quinot@adacore.com>
183
184 * put_scos.adb (Put_SCOs): Do not emit a newline for an empty
185 statements line.
186
60370fb1
AC
1872011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
188
189 * s-finmas.adb (Finalize): Check Finalize_Address of the master rather
190 than the current node.
191 * s-finmas.ads: Move field Finalize_Address from type FM_Node to
192 Finalization_Master. The list headers have two fields instead of three.
193 This should fix alignment issue but subpool allocations are now
194 unusable. Alphabetize subprograms.
195 * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than
196 the size of the header when converting the beginning of the object to
197 a FM_Node. Set the master's Finalize_Address attribute if not already
198 set.
199 (Deallocate_Any_Controlled): Use the offset rather than the size of the
200 header when converting the beginning of the object to a FM_Node.
201
2022011-08-29 Gary Dismukes <dismukes@adacore.com>
203
204 * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of
205 reraise when compiling for CodePeer.
206
2072011-08-29 Arnaud Charlet <charlet@adacore.com>
208
209 * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads,
210 now needed by a-convec.adb. Fix warning.
211
2122011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
213
214 * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the
215 processing of TSS routine Finalize_Address when compiling in
216 CodePeer_Mode.
217
2182011-08-29 Thomas Quinot <quinot@adacore.com>
219
220 * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb,
221 sem_warn.adb: Minor reformatting.
222
2232011-08-29 Emmanuel Briot <briot@adacore.com>
224
225 * prj-conf.adb (Get_Config_Switches): Also collect the list of
226 languages from aggregated projects.
227
2282011-08-29 Yannick Moy <moy@adacore.com>
229
230 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements,
231 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
232 Traverse_Package_Declaration, Traverse_Subprogram_Body,
233 Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies
234 for stubs are traversed too when parameter is set
235 (Traverse_All_Compilation_Units): Traverse without going inside stubs
236 (Traverse_Declarations_Or_Statements): Do the special traversing for
237 stubs when required.
238 * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to
239 return subprogram or package body from stub.
240 (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect
241 stubs without prior subprogram decl.
242
2432011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
244
245 * gnat_ugn.texi: Fix typo.
246
e9c9d122
HK
2472011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
248
249 * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism
250 which accounts for size vs alignment issues and calculates the size of
251 the list header.
252 (Deallocate_Any_Controlled): Ditto.
253 (Nearest_Multiple_Rounded_Up): New routine.
254
25ebc085
AC
2552011-08-29 Tristan Gingold <gingold@adacore.com>
256
257 * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag.
258 * a-exexda.adb (Set_Exception_C_Msg): Ditto.
259 (Set_Exception_Msg): Ditto.
260 * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set
261 Private_Data.
262 * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove.
263 Use Save_Occurrence instead of Save_Occurrence_No_Private.
264 (Raise_With_Msg): Remove Cleanup_Flag.
265 * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove
266 Clean_Flag and Private_Data components.
267
2682011-08-29 Yannick Moy <moy@adacore.com>
269
270 * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like
271 in CodePeer mode.
272 * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation
273 of an explicitly declared type, so that the base types of the original
274 type and this generated type are the same, and a "type" (not a subtype
275 like previously).
276 * errout.adb (Special_Msg_Delete): Do not issue messages "Size too
277 small" in Alfa mode, like in CodePeer mode.
278 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep
279 clauses in Alfa mode.
280
2812011-08-29 Javier Miranda <miranda@adacore.com>
282
283 * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this
284 function to the package spec.
285 * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For
286 internally generated bodies of null procedures locate the internally
287 generated spec enforcing mode conformance.
288 (Is_Interface_Conformant): Ensure that the controlling formal of the
289 primitives match.
290
2912011-08-29 Ed Schonberg <schonberg@adacore.com>
292
293 * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not
294 reject the pragma if it appears to apply to a formal subprogram.
295
2962011-08-29 Ed Schonberg <schonberg@adacore.com>
297
298 * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for
299 inner expression, to prevent double evaluation.
300
590549fb
AC
3012011-08-29 Tristan Gingold <gingold@adacore.com>
302
303 * a-exexpr.adb (Propagate_Exception): Remove all the parameters as
304 they were unused.
305 * a-exexpr-gcc.adb (Propagate_Exception): Ditto.
306 * a-except-2005.adb (Propagate_Exception): Adjust spec.
307 (Raise_Current_Excep): Adjust call.
308 (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep.
309
3102011-08-29 Thomas Quinot <quinot@adacore.com>
311
312 * exp_disp.adb: Minor reformatting.
313
62380e66
TG
3142011-08-29 Tristan Gingold <gingold@adacore.com>
315
316 * a-exexpr.adb (Setup_Exception): Removed.
317 * a-exexpr-gcc.adb (Setup_Exception): Removed.
318 * a-except.adb (Exception_Propagation): Removed.
319 * a-except-2005.adb (Setup_Exception): Removed.
320 (Reraise): Remove call to Setup_Exception.
321 (Reraise_Occurrence): Ditto.
322 (Reraise_Occurrence_Always): Ditto.
323 (Reraise_Occurrence_No_Defer): Ditto.
324 (Transfer_Occurrence): Ditto.
325 * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception.
326 (Set_Exception_Msg): Ditto.
327
c95aa61c
AC
3282011-08-29 Robert Dewar <dewar@adacore.com>
329
330 * a-convec.adb, exp_disp.adb: Minor reformatting.
331
3322011-08-29 Tristan Gingold <gingold@adacore.com>
333
334 * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
335
624e1688
AC
3362011-08-29 Gary Dismukes <dismukes@adacore.com>
337
338 * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
339 Exception_Handlers to No_List instead of Empty_List in the case where
340 there are no handlers.
341
3422011-08-29 Tristan Gingold <gingold@adacore.com>
343
344 * gcc-interface/gigi.h (enum standard_datatypes): Add
345 ADT_reraise_zcx_decl
346 (reraise_zcx_decl): New macro.
347 * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable.
348 (gigi): Set reraise_zcx_decl.
349 (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr.
350 (gnat_to_gnu): Handle N_Raise_Statement.
351
7134062a
AC
3522011-08-29 Robert Dewar <dewar@adacore.com>
353
354 * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads,
355 a-undesu.adb: Minor reformatting.
356
3572011-08-29 Ed Schonberg <schonberg@adacore.com>
358
359 * exp_disp.adb (Check_Premature_Freezing): When building a dispatch
360 table, accept an unfrozen untagged component if it is an actual for a
361 formal incomplete type.
362 * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to
363 provide new iterator forms over vectors.
364 Introduce type Iterator in package body to implement operations of
365 Reversible_Iterator interface.
366 * a-iteint.ads: Make package pure so it is usable with new container
367 packages, that are categorized Remote_Types.
368
ca5af305
AC
3692011-08-29 Robert Dewar <dewar@adacore.com>
370
371 * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting.
372
3732011-08-29 Bob Duff <duff@adacore.com>
374
375 * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case
376 of <>, because this is the routine that checks for dimensionality
377 errors (for example, for a two-dimensional array, (others => <>) should
378 be (others => (others => <>)).
379
3802011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
381
382 * impunit.adb: Add new run-time units.
383 * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb,
384 s-stposu.ads, s-stposu.adb: Code clean up.
385 Handle protected class-wide or task class-wide types
386 Handle C/C++/CIL/Java types.
387 * s-spsufi.adb, s-spsufi.ads: New files.
388
5accd7b6
AC
3892011-08-29 Yannick Moy <moy@adacore.com>
390
391 * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on
392 library-level subprogram.
393 * sem_prag.adb (Check_Test_Case): Stricter rules for test-case
394 placement.
395 (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case
396 component.
397 * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case
398 component.
399 * gnat_rm.texi: Update doc for Test_Case pragma.
400
4012011-08-29 Tristan Gingold <gingold@adacore.com>
402
403 * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it
404 convention C.
405 (GCC_Exception_Access): New type.
406 (Unwind_DeleteException): New imported procedure
407 (Foreign_Exception): Import it.
408 (GNAT_GCC_Exception): Simply have the occurrence inside.
409 (To_GCC_Exception): New function.
410 (To_GNAT_GCC_Exception): New function.
411 (GNAT_GCC_Exception_Cleanup): New procedure..
412 (Propagate_GCC_Exception): New procedure.
413 (Reraise_GCC_Exception): New procedure.
414 (Setup_Current_Excep): New procedure.
415 (CleanupUnwind_Handler): Change type of UW_Exception parameter.
416 (Unwind_RaiseException): Ditto.
417 (Unwind_ForcedUnwind): Ditto.
418 (Remove): Removed.
419 (Begin_Handler): Change type of parameter.
420 (End_Handler): Ditto. Now delete the exception if still present.
421 (Setup_Key): Removed.
422 (Is_Setup_And_Not_Propagated): Removed.
423 (Set_Setup_And_Not_Propagated): Ditto.
424 (Clear_Setup_And_Not_Propagated): Ditto.
425 (Save_Occurrence_And_Private): Ditto.
426 (EID_For): Add 'not null' constraint on parameter.
427 (Setup_Exception): Does nothing.
428 (Propagate_Exception): Simplified.
429 * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model,
430 re-raise is not expanded anymore.
431 * s-except.ads (Foreign_Exception): New exception - placeholder for
432 non Ada exceptions.
433 * raise-gcc.c (__gnat_setup_current_excep): Declare
434 (CXX_EXCEPTION_CLASS): Define (not yet used)
435 (GNAT_EXCEPTION_CLASS): Define.
436 (is_handled_by): Handle foreign exceptions.
437 (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep.
438
4392011-08-29 Jose Ruiz <ruiz@adacore.com>
440
441 * a-synbar.adb (Synchronous_Barrier): Some additional clarification.
442
2ef48385
AC
4432011-08-29 Thomas Quinot <quinot@adacore.com>
444
445 * a-synbar-posix.adb: Minor reformatting.
446
4472011-08-29 Jose Ruiz <ruiz@adacore.com>
448
449 * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads,
450 a-exetim-default.ads (Interrupt_Clocks_Supported,
451 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
452 definitions to be compliant with AI-0171. The target systems do not
453 support separate account for the execution time of interrupt handlers.
454
4552011-08-29 Jose Ruiz <ruiz@adacore.com>
456
457 * a-synbar.adb (Wait): Change the order of evaluation of the conditions
458 in the barrier to put first the easiest to evaluate (and the one which
459 will be True more often). More efficient.
460
4612011-08-29 Eric Botcazou <ebotcazou@adacore.com>
462
463 * s-atocou-x86.adb: Fix constraint in machine code insertion.
464
4652011-08-29 Bob Duff <duff@adacore.com>
466
467 * aspects.ads, aspects.adb: Add new aspects for various pragmas and
468 attributes that are now aspects, as specified by AI05-0229-1.
469 * sem_ch13.adb (Analyze_Aspect_Specifications,
470 Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into
471 pragmas or attribute references, as appropriate.
472
0db16b1e
AC
4732011-08-29 Robert Dewar <dewar@adacore.com>
474
475 * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb,
476 a-synbar-posix.ads: Minor reformatting.
477
4782011-08-29 Yannick Moy <moy@adacore.com>
479
480 * snames.ads-tmpl: Add name Force.
481
978ffe02
AC
4822011-08-29 Pascal Obry <obry@adacore.com>
483
484 * prj-nmsc.adb: Minor reformatting.
485
4862011-08-29 Jose Ruiz <ruiz@adacore.com>
487
488 * a-exetim.ads (Interrupt_Clocks_Supported,
489 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
490 definitions to be compliant with AI-0171.
491
4922011-08-29 Robert Dewar <dewar@adacore.com>
493
494 * a-ngelfu.adb: Add comments.
495
718f39dc
AC
4962011-08-29 Geert Bosch <bosch@adacore.com>
497
498 * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is
499 the closest machine number to Pi / 2.0.
500
5012011-08-29 Jose Ruiz <ruiz@adacore.com>
502
503 * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012
504 package Ada.Synchronous_Barriers.
505 * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb:
506 Add new specs and bodies for Ada.Synchronous_Barriers. There is a
507 default implementation using protected objects and another one
508 a-synbar-posix using POSIX barriers as the underlying support.
509 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86,
510 x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of
511 Ada.Synchronous_Barriers which uses POSIX barriers (more efficient).
512 Clean up dependencies.
513 * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o
514
ee2e3f6b
AC
5152011-08-29 Robert Dewar <dewar@adacore.com>
516
517 * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb,
518 exp_dist.adb: Minor code reorganization.
519 Minor reformatting.
520
5212011-08-29 Thomas Quinot <quinot@adacore.com>
522
523 * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW
524 primitive operation must support external streaming if it is not a
525 controlling access result.
526
646e2823
AC
5272011-08-29 Thomas Quinot <quinot@adacore.com>
528
529 * sinfo.ads, sem_ch7.adb: Minor reformatting.
530
5312011-08-29 Bob Duff <duff@adacore.com>
532
533 * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization
534 restriction on allocators, as required by AI05-0013-1.
535 * restrict.ads: Minor comment fix.
536
5d59eef2
AC
5372011-08-29 Tristan Gingold <gingold@adacore.com>
538
539 * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb
540 (To_Jmpbuf_Address): Ditto
541 (builtin_longjmp): Ditto
542
5432011-08-29 Thomas Quinot <quinot@adacore.com>
544
545 * sem_res.adb: Minor reformatting.
546
5472011-08-29 Vincent Celier <celier@adacore.com>
548
549 * make.adb (Gnatmake): Move special processing for VM targets after the
550 call to Get_Target_Parameters.
551
5522011-08-29 Thomas Quinot <quinot@adacore.com>
553
554 * sem_ch12.adb, par-ch12.adb: Minor reformatting.
555
949a18cc
AC
5562011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
557
558 * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases
559 where an anonymous access discriminant of a limited designated type
560 appears in a non-immutably limited discriminated type and issue an
561 error message. Add local variable Desig_T and replace all occurrences
562 of Designated_Type.
563
5642011-08-29 Jose Ruiz <ruiz@adacore.com>
565
566 * a-rttiev.adb (Set_Handler): Update comment to indicate that our
567 implementation is compliant to RM D.15(15/2) after the modification
568 imposed by AI05-0094-1 (binding interpretation).
569
cb25faf8
AC
5702011-08-29 Robert Dewar <dewar@adacore.com>
571
572 * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb,
573 s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting.
574
5752011-08-29 Thomas Quinot <quinot@adacore.com>
576
577 * par-endh.adb (Check_End): For an END where it is mandatory to repeat
578 the scope name, do not report a missing label as a style violation (it
579 will be diagnosed as an illegality).
580 * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of
581 variant records: Get_Enum_Lit_From_Pos already returns a usage
582 occurrence of the literal, no need to use New_Occurrence_Of. Set Etype
583 on Expr in Integer_Literal case so that it can be used by
584 Build_To_Any_Call.
585
1d10f669
AC
5862011-08-29 Tristan Gingold <gingold@adacore.com>
587
588 * exp_sel.ads (Build_Abort_BLock_Handler): New function spec.
589 Adjust comment.
590 * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler.
591 (Build_Abort_Block_Handler): New function to build an Abort_Signal
592 exception handler.
593 * exp_ch9.adb (Expand_N_Asynchronous_Select): Call
594 Build_Abort_Block_Handler to build the exception handler. Do not
595 undefer aborts for the Abort_Signal exception handler if back-end
596 exception mechanism.
597 * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if
598 back_end exceptions for all others and abort_signal.
599 * s-except.ads (ZCX_By_Default): New constant.
600 * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX.
601 (Raise_Exception_Always): Ditto.
602 (Raise_From_Signal_Handler): Ditto.
603 (Raise_With_Location_And_Msg): Ditto.
604 (Raise_With_Msg): Ditto.
605 (Reraise): Ditto.
606 (Reraise_Occurence): Ditto.
607 (Reraise_Occurrence_Always): Ditto.
608 * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX.
609 * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX.
1d10f669
AC
610
6112011-08-29 Thomas Quinot <quinot@adacore.com>
612
613 * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation.
614
d986066d
AC
6152011-08-29 Robert Dewar <dewar@adacore.com>
616
617 * snames.adb-tmpl, sem_ch13.adb: Minor reformatting
618 Minor code reorganization.
619
6202011-08-29 Bob Duff <duff@adacore.com>
621
622 * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada
623 2012, not just Ada 2005.
624
6252011-08-29 Vincent Celier <celier@adacore.com>
626
627 * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake
628 with a project file or with gprbuid, if -gnatep= is specified, the
629 builder may need to be invoked with -x.
630
6312011-08-29 Tristan Gingold <gingold@adacore.com>
632
633 * a-exexpr-gcc.adb: Minor comment fix.
634
ff4f0ed0
AC
6352011-08-29 Robert Dewar <dewar@adacore.com>
636
637 * sem_ch8.adb: Minor reformatting.
638
6392011-08-29 Bob Duff <duff@adacore.com>
640
641 * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012.
642 * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for
643 treating "some" as unreserved in earlier Ada versions. This is now
644 handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some,
645 rather than Name_Some, since Tok_Some is now recognized as reserved.
646 * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other
647 reserved word.
648 * scans.ads: Minor comment fixes.
649 * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as
650 for other language versions.
651 * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for
652 treating "some" as unreserved in earlier Ada versions. This is now
653 handled in Snames.Is_Keyword_Name.
654 * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in
655 Ada 2012.
656 (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as
657 unreserved in earlier Ada versions. This is now handled in
658 Snames.Is_Keyword_Name.
659 * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved
660 words as for other language versions.
661 * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to
662 Ada 2012, not just Ada 2005.
663
d941cee6
AC
6642011-08-29 Ed Schonberg <schonberg@adacore.com>
665
666 * sem_ch13.adb: Additional semantic checks for aspects involved in
667 iterators.
668
6692011-08-29 Matthew Heaney <heaney@adacore.com>
670
671 * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb,
672 a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous
673 Container parameter.
674 (Ancestor_Find): ditto.
675
b970af39
TQ
6762011-08-29 Thomas Quinot <quinot@adacore.com>
677
678 * par-endh.adb: Minor reformatting.
d941cee6 679
92db5dee
AC
6802011-08-29 Tristan Gingold <gingold@adacore.com>
681
682 * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants.
683 (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component.
684 (Adjust_N_CLeanups_For): Remove.
685 (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of
686 stack is reached.
687 (Propgate_Exception): Adjust.
688 * raise-gcc.c: Add a few static/const.
689 (Adjust_N_Cleanups_For): Remove declaration.
690 (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger.
691
6922011-08-29 Ed Schonberg <schonberg@adacore.com>
693
694 * sem_ch8.adb: Use type of function return when rewriting as object
695 declaration.
696
1378bf10
AC
6972011-08-29 Gary Dismukes <dismukes@adacore.com>
698
699 * sem_type.adb: Minor reformatting.
700
7012011-08-29 Robert Dewar <dewar@adacore.com>
702
703 * makeutl.adb: Minor reformatting.
704
7052011-08-29 Ed Schonberg <schonberg@adacore.com>
706
707 * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a
708 function call of a limited type, the expansion of the renaming is
709 complicated by the presence of various temporaries and subtypes that
710 capture constraints of the renamed object.
711 Rewrite node as an object declaration, whose expansion is simpler.
712 Given that the object is limited there is no copy involved and no
713 performance hit.
714
164e06c6
AC
7152011-08-29 Robert Dewar <dewar@adacore.com>
716
717 * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb,
718 freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting.
719
7202011-08-29 Tristan Gingold <gingold@adacore.com>
721
722 * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
723 system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads,
724 system-linux-hppa.ads, system-linux-s390.ads,
725 system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
726 system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads,
727 system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads,
728 system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads,
729 system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads,
730 system-solaris-sparc.ads, system-lynxos-x86.ads,
731 system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads,
732 system-solaris-x86_64.ads, system-mingw-x86_64.ads,
733 system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads,
734 system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads,
735 system-vxworks-x86.ads: Remove GCC_ZCX_Support
736 * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb,
737 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto.
738 * opt.ads: Adjust comment.
739 * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target.
740 * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target.
741 * system.ads: Move GCC_ZCX_Support to obsolete entries.
742
7432011-08-29 Emmanuel Briot <briot@adacore.com>
744
745 * makeutl.adb (Do_Complete): Resolve symbolic links when a relative
746 file name is specified on the gnatmake or gprbuild command line, and
747 before we search for that file in the project.
748
7492011-08-29 Ed Schonberg <schonberg@adacore.com>
750
751 * sem_type.adb (Within_Instance): New predicate in Collect_Interps,
752 used to determine whether a possible interpretation for an overloadable
753 entity is declared within the current instantiation and should be
754 included in the candidate set.
755
7562011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
757
758 * gnat_rm.texi, gnat_ugn.texi: Clean ups.
759
97216ca8
ES
7602011-08-29 Ed Schonberg <schonberg@adacore.com>
761
762 * sem_res.adb (Resolve_Actuals): Use base type to determine whether an
763 access subtype is access_to_subprogram, when applying checks for
764 RM 3.10.2 (27).
765
d3cb4cc0
AC
7662011-08-29 Matthew Heaney <heaney@adacore.com>
767
768 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
769 for sibling when common parent.
770
7712011-08-29 Thomas Quinot <quinot@adacore.com>
772
773 * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
774 "pragma_".
775
7762011-08-29 Ed Schonberg <schonberg@adacore.com>
777
778 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
779 for the return type when in ASIS mode.
780
7812011-08-29 Vincent Celier <celier@adacore.com>
782
783 * make.adb (Gnatmake): Get the default search dirs, then the target
784 parameters after getting the Builder switches, as the Builder switches
785 may include --RTS= and that could change the default search dirs.
786
7872011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
788
789 * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
790 Make_Final_Call. Move the processing for class-wide types before the
791 processing for derivations from [Limited_]Controlled.
792 (Make_Final_Call): Move the processing for class-wide types before the
793 processing for derivations from [Limited_]Controlled.
794 * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
795 Add code to account for alignments larger than the list header. Add a
796 comment illustrating the structure of the allocated object + padding +
797 header.
798 (Deallocate_Any_Controlled): Add code to account for alignments larger
799 than the list header.
800
8012011-08-29 Ed Schonberg <schonberg@adacore.com>
802
803 * sinfo.ads, sinfo.adb: New node kind
804 N_Formal_Incomplete_Type_Definition, related flags.
805 par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
806 Parse formal incomplete types.
807 * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
808 sem_ch12.
809 * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
810 Formal incomplete types do not need completion.
811 * sem_ch12.adb (Analyze_Formal_Incomplete_Type,
812 Validate_Incomplete_Type_Instance): New procedures to handle formal
813 incomplete types.
814 * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
815 that corresponds to a formal incomplete type.
816 * sprint.adb: Handle formal incomplete type declarations.
817 * exp_util.adb (Insert_Actions): An incomplete_type_definition is not
818 an insertion point.
819
d3f70b35
AC
8202011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
821
822 * a-fihema.ads, a-fihema.adb: Unit removed.
823 * a-undesu.ads, a-undesu.adb: New unit implementing
824 Ada.Unchecked_Deallocate_Subpool.
825 * einfo.adb: Remove Associated_Collection from the node usage.
826 Add Finalization_Master to the node usage.
827 (Associated_Collection): Removed.
828 (Finalization_Master): New routine.
829 (Set_Associated_Collection): Removed.
830 (Set_Finalization_Master): New routine.
831 (Write_Field23_Name): Remove Associated_Collection from the output. Add
832 Finalization_Master to the output.
833 * einfo.ads: Remove attribute Associated_Collection and its uses in
834 entities.
835 Add new attribute Finalization_Master along with its uses in entitites.
836 (Associated_Collection): Removed along with its pragma import.
837 (Finalization_Master): New routine along with a pragma import.
838 (Set_Associated_Collection): Removed along with its pragma import.
839 (Set_Finalization_Master): New routine along with a pragma import.
840 * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to
841 Build_Finalization_Collection with Build_Finalization_Master.
842 (Expand_Freeze_Record_Type): Move the generation of Finalize_Address
843 before the bodies of the predefined routines. Add comment explaining
844 this. Replace call to Build_Finalization_Collection with
845 Build_Finalization_Master.
846 (Freeze_Type): Replace call to Build_Finalization_Collection with
847 Build_Finalization_Master.
848 (Make_Finalize_Address_Body): Comment reformatting.
849 (Make_Predefined_Primitive_Specs): Code reformatting.
850 (Stream_Operation_OK): Update comment mentioning finalization
851 collections. Replace RE_Finalization_Collection with
852 RE_Finalization_Master.
853 * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to
854 Associated_Collection with Finalization_Master. Replace call to
855 Build_Finalization_Collection with Build_Finalization_Master.
856 (Expand_Allocator_Expression): Replace call to Associated_Collection
857 with Finalization_Master. Replace call to Set_Associated_Collection with
858 Set_Finalization_Master. Remove the generation of
859 Set_Finalize_Address_Ptr.
860 (Expand_N_Allocator): Replace call to Associated_Collection with
861 Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr.
862 * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to
863 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the
864 comment on usage. Replace call to Needs_BIP_Collection with
865 Needs_BIP_Finalization_Master Remplace BIP_Collection with
866 BIP_Finalization_Master. Update all comments which mention finalization
867 collections. Replace Associated_Collection with
868 Finalization_Master. Replace Build_Finalization_Collection with
869 Build_Finalization_Master.
870 (BIP_Formal_Suffix): Update BIP_Collection's case.
871 (Build_Heap_Allocator): Update the related comment. Rename local
872 variable Collect to Fin_Mas_Id and update its occurrences. Update
873 comments which mention finalization collections. Replace
874 Set_Associated_Collection with Set_Finalization_Master.
875 (Expand_Call): Update the code which detects a special piece of library
876 code for .NET/JVM.
877 (Make_Build_In_Place_Call_In_Allocator): Replace the call to
878 Add_Collection_Actual_To_Build_In_Place_Call with
879 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code
880 which generates a call to Make_Set_Finalize_Address_Ptr_Call.
881 (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to
882 Add_Collection_Actual_To_Build_In_Place_Call with
883 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
884 (Make_Build_In_Place_Call_In_Assignment): Replace call to
885 Add_Collection_Actual_To_Build_In_Place_Call with
886 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
887 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
888 * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master.
889 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
890 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage.
891 Rename local variable Collect to Fin_Mas_Id and update its occurrences.
892 Replace call to Set_Associated_Collection with Set_Finalization_Master.
893 (Build_Finalization_Collection): Renamed to Build_Finalization_Master.
894 Replace the call to Associated_Collection with Finalization_Master.
895 Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences.
896 Update the way finalization master names are generated. Update the
897 retrieval of the correct access type which will carry the pool and
898 master attributes.
899 (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved.
900 (Make_Finalize_Address_Body): Abstract types do not need
901 Finalize_Address. Code reformatting.
902 (Make_Finalize_Address_Stmts): Update comment on usage.
903 (Make_Set_Finalize_Address_Ptr_Call): Removed.
904 (Process_Declarations): Update comments.
905 * exp_ch7.ads (Build_Finalization_Collection): Renamed to
906 Build_Finalization_Master. Update associated comment.
907 (Make_Set_Finalize_Address_Ptr_Call): Removed.
908 * exp_ch13.adb: Update comments which mention finalization collections.
909 (Expand_N_Free_Statement): Replace the call to Associated_Collection
910 with Finalization_Master.
911 * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to
912 create calls to routines Allocate_Any_Controlled and
913 Deallocate_Any_Controlled.
914 (Find_Finalize_Address): New routine.
915 (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the
916 comparison.
917 (Requires_Cleanup_Actions): Update the comment on freeze node
918 inspection.
919 * exp_util.ads: Remove comment on generated code for
920 Build_Allocate_Deallocate_Proc. The code is now quite complex and it
921 is better to simply look in the body.
922 * freeze.adb (Freeze_All): Update the comment of finalization
923 collections. Replace the call to Associated_Collection with
924 Finalization_Master. Replace the call to Build_Finalization_Collection
925 with Build_Finalization_Master.
926 * impunit.adb: Add a-undesu and s-stposu to the list of units.
927 * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file
928 a-fihema.
929 * rtsfind.adb (Get_Unit_Name): Remove the processing for children of
930 Ada.Finalization. Add processing for children of System.Storage_Pools.
931 * rtsfind.ads: Remove the naming of second level children of
932 Ada.Finalization.
933 Remove Ada_Finalization_Heap_Management from the list of units.
934 Remove subtype Ada_Finalization_Child.
935 Remove the following subprogram entities:
936
937 RE_Allocate
938 RE_Deallocate
939 RE_Finalization_Collection
940 RE_Finalization_Collection_Ptr
941 RE_Set_Finalize_Address_Ptr
942
943 Add the naming of second level children of System.Storage_Pools.
944 Add System_Finalization_Masters and System_Storage_Pools_Subpools to
945 the list of units.
946 Add subtype System_Storage_Pools_Child.
947 Add the following subprogram entities to System.Finalization_Masters:
948
949 RE_Finalization_Master
950 RE_Finalization_Master_Ptr
951
952 Add the following subprogram entities to System.Storage_Pools.Subpools:
953
954 RE_Allocate_Any_Controlled
955 RE_Deallocate_Any_Controlled
956 RE_Root_Storage_Pool_With_Subpools
957 RE_Root_Subpool
958 RE_Subpool_Handle
959
960 Move the following subprogram entities from
961 Ada.Finalization.Heap_Management to System.Finalization_Masters:
962
963 RE_Add_Offset_To_Address
964 RE_Attach
965 RE_Base_Pool
966 RE_Detach
967
968 * sem_ch3.adb (Access_Type_Declaration): Replace the call to
969 Set_Associated_Collection with Set_Finalization_Master.
970 * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal
971 BIP_Finalization_Master is created.
972 * s-finmas.adb: New unit System.Finalization_Masters.
973 * s-finmas.ads: New unit System.Finalization_Masters.
974 * s-stopoo.ads, s-stopoo.adb: Minor code reformatting.
975 * s-stposu.ads, s-stposu.adb: New unit implementing
976 System.Storage_Pools.Subpools.
977
9782011-08-29 Bob Duff <duff@adacore.com>
979
980 * tbuild.adb: Add assertion.
981
8c889ae4
AC
9822011-08-29 Thomas Quinot <quinot@adacore.com>
983
984 * s-pooglo.adb: Minor reformatting.
985
9862011-08-29 Ed Schonberg <schonberg@adacore.com>
987
988 * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is
989 an indexed component of a packed array whose element type is a record
990 with a representation clause different from that of the right-hand
991 side, generate a temporary to minimuze the number of bit-field
992 operations generated.
993
9942011-08-29 Ed Schonberg <schonberg@adacore.com>
995
996 * exp_util.adb (Insert_Actions): Use clauses can be part of lists of
997 declarations, and thus are likely insertion points for actions.
998
9992011-08-29 Bob Duff <duff@adacore.com>
1000
1001 * einfo.ads: Minor comment fix.
1002
1a07a71a
AC
10032011-08-29 Robert Dewar <dewar@adacore.com>
1004
1005 * frontend.adb, gnat1drv.adb: Minor reformatting.
1006
10072011-08-29 Tristan Gingold <gingold@adacore.com>
1008
1009 * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment.
1010 * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding
1011 space in front of the header.
1012
4bcd6411
JK
10132011-08-29 Johannes Kanig <kanig@adacore.com>
1014
1015 * frontend.adb (Frontend): Exit after creating Standard package when
1016 -gnatd.H is present.
1017 * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is
1018 present.
1019
f0f88eb6
RD
10202011-08-29 Robert Dewar <dewar@adacore.com>
1021
1022 * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb,
1023 makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl,
1024 snames.ads-tmpl: Minor reformatting.
1025
3e37be71
PG
10262011-08-29 Philippe Gil <gil@adacore.com>
1027
1028 * prj.adb (Reset_Units_In_Table): New procedure.
1029 Reset units to avoid access to freed memory.
1030
94fb7608
AC
10312011-08-29 Thomas Quinot <quinot@adacore.com>
1032
1033 * get_scos.adb: When reading a P statement SCO without a pragma name
1034 (from an older ALI file), ensure that the Pragma_Name component is set
1035 to Unknown_Pragma (not left uninitialized).
1036
10372011-08-29 Vincent Celier <celier@adacore.com>
1038
1039 * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and
1040 modified to compute correctly the object path of a SAL project that is
1041 extending another library project.
1042 (Write_Path_File): New procedure.
1043 * makeutl.ads (Directories): New table moved from Buildgpr
1044 (Get_Directories): New procedure moved from Buildgpr
1045 (Write_Path_File): New procedure
1046 * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the
1047 paths before binding SALs, instead of Set_Ada_Paths.
1048 * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package
1049 Prj.
1050 * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env
1051 (Current_Source_Path_File_Of): New function
1052 (Set_Current_Object_Path_File_Of): New procedure
1053 (Current_Source_Object_File_Of): New function
1054 (Set_Current_Object_Path_File_Of): New procedure
1055 * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env
1056 (Current_Source_Path_File_Of): New function
1057 (Set_Current_Object_Path_File_Of): New procedure
1058 (Current_Source_Object_File_Of): New function
1059 (Set_Current_Object_Path_File_Of): New procedure
1060
10612011-08-29 Ed Schonberg <schonberg@adacore.com>
1062
1063 * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a
1064 packed entity, use a bit-field assignment only if there is no change of
1065 representation.
1066
c5ecd6b7
AC
10672011-08-29 Thomas Quinot <quinot@adacore.com>
1068
1069 * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use
1070 Is_RTU instead of using Chars comparisons.
1071
10722011-08-29 Thomas Quinot <quinot@adacore.com>
1073
1074 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a
1075 temporary object if the actual is constrained, and the discriminants
1076 read from the stream don't match.
1077
10782011-08-29 Tristan Gingold <gingold@adacore.com>
1079
1080 * sem_attr.adb, exp_attr.adb: Add handling of
1081 Attribute_System_Allocator_Alignment
1082 * snames.ads-tmpl: Add Name_System_Allocator_Alignment and
1083 Attribute_System_Allocator_Alignment.
1084 * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment.
1085 * gcc-interface/targtyps.c, gcc-interface/utils2.c,
1086 gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to
1087 get_target_system_allocator_alignment.
1088
10892011-08-29 Arnaud Charlet <charlet@adacore.com>
1090
1091 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1092 dependencies.
1093
8abdac29
AC
10942011-08-29 Arnaud Charlet <charlet@adacore.com>
1095
1096 * exp_ch3.adb (In_Runtime): Fix typo.
1097
df170605
AC
10982011-08-29 Bob Duff <duff@adacore.com>
1099
1100 * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification.
1101
11022011-08-29 Ed Schonberg <schonberg@adacore.com>
1103
1104 * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged
1105 and a separate tag assignment is generated, ensure that the tag
1106 assignment is analyzed.
1107
864a4236
ES
11082011-08-29 Ed Schonberg <schonberg@adacore.com>
1109
1110 * atree.ads, atree.adb (Copy_Separate_List): New function that applies
1111 Copy_Separate_Tree to a list of nodes. Used to create disjoint copies
1112 of statement lists that may contain local declarations.
df170605
AC
1113 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to
1114 duplicate the triggering statements needed for the expansion of this
1115 construct, when the trigger is a dispatching call to a synchronized
1116 primitive.
864a4236 1117
7f394c1d
AC
11182011-08-29 Arnaud Charlet <charlet@adacore.com>
1119
1120 * gnat_rm.texi: Add doc for 'Elab_Subp_Body.
1121 * bindgen.adb: Add comments.
1122 * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body
1123 in CodePeer mode.
1124
2c1a2cf3
RD
11252011-08-29 Robert Dewar <dewar@adacore.com>
1126
1127 * exp_attr.adb: Minor reformatting.
1128 Minor code reorganization and commenting.
1129 * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor
1130 reformatting.
1131
0bfc9a64
AC
11322011-08-29 Thomas Quinot <quinot@adacore.com>
1133
1134 * get_scos.adb: Ignore chaining indicators not currently supported
1135 by Ada.
1136
11372011-08-29 Arnaud Charlet <charlet@adacore.com>
1138
1139 * system.ads: Minor editing.
1140
11412011-08-29 Arnaud Charlet <charlet@adacore.com>
1142
1143 * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in
1144 CodePeer mode.
1145 * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of
1146 Attribute_Elab_Subp_Body.
1147 * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New.
1148 * sem_util.adb: Update comments.
1149
828d4cf0
TQ
11502011-08-29 Thomas Quinot <quinot@adacore.com>
1151
1152 * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record
1153 pragma name for each SCO statement corresponding to a pragma.
1154
5cd7bb15
AC
11552011-08-29 Arnaud Charlet <charlet@adacore.com>
1156
1157 * opt.ads: Minor editing.
1158
11592011-08-29 Yannick Moy <moy@adacore.com>
1160
1161 * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode
1162 that only made sense for CodePeer mode.
1163
11642011-08-29 Jose Ruiz <ruiz@adacore.com>
1165
1166 * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag
1167 which is no longer used.
1168 * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the
1169 handling of the 64-bit division check.
1170 * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit
1171 division available.
1172 * system*.ads (Support_64_Bit_Divides): Remove this flag which is no
1173 longer used.
1174
11752011-08-29 Thomas Quinot <quinot@adacore.com>
1176
1177 * get_scos.adb: Minor reformatting.
1178
25b589cb
AC
11792011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
1180
1181 * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a
1182 statement list is wrapped in a block, the block is explicitly analyzed
1183 in order to properly redecorate the entities and create a servicing
1184 finalizer.
1185
11862011-08-29 Tristan Gingold <gingold@adacore.com>
1187
1188 * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove.
1189 (Set_Zero_Cost_Handling): Remove.
1190
11912011-08-29 Thomas Quinot <quinot@adacore.com>
1192
1193 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting
1194
1197ddb1
AC
11952011-08-29 Geert Bosch <bosch@adacore.com>
1196
1197 * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation
1198 instruction, as the latter may produce -0.0, which is not a valid VAX
1199 F float number.
1200 (Neg_G): Likewise for VAX F float.
1201
12022011-08-29 Robert Dewar <dewar@adacore.com>
1203
1204 * exp_util.adb: Minor reformatting.
1205
12062011-08-29 Yannick Moy <moy@adacore.com>
1207
1208 * sem_ch3.adb: Minor comment update.
1209
12102011-08-29 Thomas Quinot <quinot@adacore.com>
1211
1212 * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of
1213 the operand type.
1214
12152011-08-29 Thomas Quinot <quinot@adacore.com>
1216
1217 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush
1218 current statement sequence on a generic instantiation or a subprogram
1219 declaration.
1220
8f66cda7
AC
12212011-08-29 Robert Dewar <dewar@adacore.com>
1222
1223 * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb:
1224 Minor reformatting.
1225
12262011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
1227
1228 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
1229 Correct the check which involves the freeze node of a controlled or
1230 access-to-controlled type.
1231
12322011-08-29 Geert Bosch <bosch@adacore.com>
1233
1234 * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm
1235 statements.
1236 * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from
1237 Asm statements.
1238
cf161d66
AC
12392011-08-29 Yannick Moy <moy@adacore.com>
1240
1241 * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration
1242 for every index type and component type that is not a subtype_mark.
1243 (Process_Subtype): Set Etype of subtype.
1244
12452011-08-29 Robert Dewar <dewar@adacore.com>
1246
1247 * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code
1248 reorganization. Minor reformatting.
1249
7cc83cd8
AC
12502011-08-29 Steve Baird <baird@adacore.com>
1251
1252 * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion
1253 for CodePeer and ALFA modes.
1254
12552011-08-29 Ed Schonberg <schonberg@adacore.com>
1256
1257 * sem_type.adb (Collect_Interps): Within an instance, collect a homonym
1258 that comes from an enclosing scope if it is not the renaming of an
1259 actual, to handle properly a spurious ambiguity in an instance.
1260
76af4137
AC
12612011-08-29 Eric Botcazou <ebotcazou@adacore.com>
1262
1263 * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to...
1264 (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and
1265 use it instead of the Esize of the first parameter.
1266 (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to
1267 above change.
1268 <Size>: Likewise. Call it for composite types on the RM size.
1269
12702011-08-29 Yannick Moy <moy@adacore.com>
1271
1272 * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array.
1273 * sem_util.adb (Unique_Name): Correct behaviour for names of
1274 compilation units.
1275
9b20e59b
AC
12762011-08-29 Yannick Moy <moy@adacore.com>
1277
1278 * sem_prag.adb (Check_Precondition_Postcondition): In formal
1279 verification mode, analyze pragma expression for correctness, for
1280 pre/post on library-level subprogram, as it is not expanded later.
1281
12822011-08-29 Yannick Moy <moy@adacore.com>
1283
1284 * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates
1285 in formal verification.
1286
12872011-08-29 Thomas Quinot <quinot@adacore.com>
1288
1289 * sem_util.adb: Minor reformatting.
1290 * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute,
1291 there's no pragma.
1292 * par_sco.ads, par_sco.adb: Update comments.
1293
12942011-08-29 Yannick Moy <moy@adacore.com>
1295
1296 * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and
1297 associated getter/setter.
1298 * sem_ch6.adb: Remove reference to Is_Postcondition_Proc.
1299
13002011-08-29 Vincent Celier <celier@adacore.com>
1301
1302 * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind
1303 * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler
1304 with declarations for Language_Kind and Dependency_Kind for Ada.
1305 * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name
1306 (Process_Compiler): Take into account the new attributes Dependency_Kind
1307 and Language_Kind.
1308 (Check_Configuration): Check if language kind is unit based, not if the
1309 language name is Ada.
1310 (Process_Exceptions_Unit_Based): Ditto
1311 (Add_Language): Remove default additions of language and dependency kind
1312 * prj.ads: Minor comment change
1313 * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind
1314
13152011-08-29 Johannes Kanig <kanig@adacore.com>
1316
1317 * debug.adb: Update comments.
1318
c5bc3df6
JM
13192011-08-24 Joseph Myers <joseph@codesourcery.com>
1320
1321 * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
1322 (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
1323 (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
1324 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
1325 (ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
1326
e3aa9eba
RO
13272011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1328
1329 * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
1330 (GNATLIBCFLAGS_FOR_C): Replace
1331 TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
1332 (gnatlib-shared-default, gnatlib-shared-dual-win32)
1333 (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
1334 (gnatlib-sjlj, gnatlib-zcx): Likewise.
1335
f446d60e
EB
13362011-08-07 Eric Botcazou <ebotcazou@adacore.com>
1337
1338 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
1339
588c8f48
EB
1340 * gcc-interface/gigi.h (enumerate_modes): Fix formatting.
1341
1342 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.
1343
28d711bf
NR
13442011-08-05 Nicolas Roche <roche@adacore.com>
1345
1346 * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared
1347 libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with
1348 canadian cross.
1349 * gcc-interface/Make-lang.in: Add support for canadian cross setting.
1350
993f8920
AC
13512011-08-05 Matthew Heaney <heaney@adacore.com>
1352
1353 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth):
1354 subprogram bodies declared out-of-order.
1355
13562011-08-05 Yannick Moy <moy@adacore.com>
1357
1358 * sem_util.adb (Unique_Name): only prefix with "standard" the names of
1359 entities directly in package Standard, otherwise skip the standard
1360 prefix.
1361
9b3956dd
RD
13622011-08-05 Robert Dewar <dewar@adacore.com>
1363
1364 * a-cbmutr.adb: Minor reformatting
1365 (Allocate_Node): refactor node allocation algorithm
1366
13672011-08-05 Robert Dewar <dewar@adacore.com>
1368
1369 * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch.
1370 * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable
1371 mode.
1372 (Analyze_Pragma, case Check_Policy): Ditto.
1373 * sem_prag.ads (Check_Disabled): New function
1374 * snames.ads-tmpl: Add Name_Disable.
1375
13762011-08-05 Robert Dewar <dewar@adacore.com>
1377
1378 * gnat_rm.texi: Document implementation-defined policy DISABLE for
1379 pragmas Assertion_Policy, Check_Policy, Debug_Policy.
1380
79e705d6
AC
13812011-08-05 Ed Schonberg <schonberg@adacore.com>
1382
1383 * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma
1384 that appears in a generic formal part and applies to a formal
1385 subprogram.
1386
13872011-08-05 Robert Dewar <dewar@adacore.com>
1388
1389 * a-cbmutr.ads: Minor reformatting.
1390
23b6deca
AC
13912011-08-05 Matthew Heaney <heaney@adacore.com>
1392
1393 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid
1394 to check count, check sign of value instead.
1395 * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty
1396 (Copy_Subtree): allocate copy of source element
1397 (Equal_Subtree): compare elements, not access objects
1398
13992011-08-05 Vincent Celier <celier@adacore.com>
1400
1401 * gnat_ugn.texi: Fix VMS alternative.
1402
a2773bd3
AC
14032011-08-05 Thomas Quinot <quinot@adacore.com>
1404
1405 * sem_ch11.adb: Add comment.
1406
14072011-08-05 Robert Dewar <dewar@adacore.com>
1408
1409 * exp_util.adb: Minor comment fix.
1410
14112011-08-05 Robert Dewar <dewar@adacore.com>
1412
1413 * scng.adb (Error_Unterminated_String): Improve flag position when
1414 comma present.
1415
14162011-08-05 Matthew Heaney <heaney@adacore.com>
1417
1418 * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway
1419 tree containers).
1420 * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded
1421 multiway tree containers.
1422
14232011-08-05 Robert Dewar <dewar@adacore.com>
1424
1425 * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2
1426 * stylesw.adb: Implement -gnatyC to control comment spacing
1427 * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by
1428 -gnatyc/C).
1429 * usage.adb: Add line for -gnatyC.
1430
14312011-08-05 Robert Dewar <dewar@adacore.com>
1432
f446d60e 1433 * gnat_ugn.texi: Document -gnatyC.
a2773bd3
AC
1434 * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a
1435 synonym for COMMENTS2).
1436
dedac3eb
RD
14372011-08-05 Robert Dewar <dewar@adacore.com>
1438
1439 * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb,
1440 a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb,
1441 sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb,
1442 a-comutr.ads, lib-xref.adb: Minor reformatting.
1443
14442011-08-05 Robert Dewar <dewar@adacore.com>
1445
1446 * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal
1447 warning if there is an exception handler present.
1448
7c62a85a
AC
14492011-08-05 Pascal Obry <obry@adacore.com>
1450
1451 * a-iteint.ads: Fix copyright year.
1452
14532011-08-05 Thomas Quinot <quinot@adacore.com>
1454
1455 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a
1456 statement SCO for a USE clause or a representation clause.
1457
14582011-08-05 Yannick Moy <moy@adacore.com>
1459
1460 * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation
1461 between body and spec for stub.
1462 (Detect_And_Add_ALFA_Scope): take into account subprogram stub
1463 * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a
1464 pragma precondition or postcondition, for which the enclosing
1465 subprogram or package in the AST is not the desired one, return empty.
1466
e49208a9
AC
14672011-08-05 Thomas Quinot <quinot@adacore.com>
1468
1469 * g-expect.adb: Minor reformatting.
1470
14712011-08-05 Bob Duff <duff@adacore.com>
1472
1473 * a-fihema.adb: Comment out OS_Lib.
1474
14752011-08-05 Matthew Heaney <heaney@adacore.com>
1476
1477 * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb]
1478 (unbounded multiway tree containers) and a-iteint.ads.
1479 * a-comutr.ads, a-comutr.adb:
1480 This is the new Ada 2012 unit for unbounded multiway tree containers
1481 * a-cimutr.ads, a-cimutr.adb
1482 This is the new Ada 2012 unit for indefinite multiway tree containers
1483 * a-iteint.ads: New file.
1484
201cdb74
RO
14852011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1486
f446d60e 1487 * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc.
201cdb74 1488
d50f4827
AC
14892011-08-05 Bob Duff <duff@adacore.com>
1490
1491 * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for
1492 subpools.
1493 * par-ch4.adb (P_Allocator): Parse new subpool specification syntax.
1494
14952011-08-05 Ed Schonberg <schonberg@adacore.com>
1496
1497 * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the
1498 general indexing aspects of Ada2012. Called when analyzing indexed
1499 components when other interpretations fail.
1500 * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only
1501 in an expression context where overloading is meaningful. This excludes
1502 the occurrence in an aspect specification (efficiency only).
1503 * sem_attr.adb (Analyze_Attribute): indicate that the attributes
1504 related to iterators can be set by an attribute specification, but
1505 cannot be queried.
1506 * sem_ch13.adb (Analyze_Aspect_Specifications): handle
1507 Constant_Indexing and Variable_Indexing.
1508 (Check_Indexing_Functions): New procedure to perform legality checks.
1509 Additional semantic checks at end of declarations.
1510
efe05dfc
AC
15112011-08-05 Sergey Rybin <rybin@adacore.com>
1512
1513 * tree_io.ads: Update ASIS_Version_Number because of the change of the
1514 order of calling Tree_Write/Tree_Read routines made for aspects.
1515
15162011-08-05 Bob Duff <duff@adacore.com>
1517
1518 * a-fihema.adb (Finalize): Fix race condition.
1519
5f9cdefe
AC
15202011-08-05 Yannick Moy <moy@adacore.com>
1521
1522 * sem_ch12.adb (Analyze_Package_Instantiation,
1523 Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA
1524 mode.
1525
15262011-08-05 Ed Schonberg <schonberg@adacore.com>
1527
1528 * sem_type.adb (Specific_Type): in an instance, the type-specific
1529 operand of an equality check that involves null may have a private
1530 type. Use full view to determine legality of construct.
1531
822868aa
AC
15322011-08-05 Vincent Celier <celier@adacore.com>
1533
1534 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
1535 delete or close the file when the call to gnatmake was successful.
1536
15372011-08-05 Yannick Moy <moy@adacore.com>
1538
1539 * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set
1540 Global_Discard_Names.
1541
15422011-08-05 Ed Schonberg <schonberg@adacore.com>
1543
1544 * sinfo.ads: comments on use of entity field for aspect specifications.
1545
15462011-08-05 Ed Schonberg <schonberg@adacore.com>
1547
1548 * sem_ch12.adb (Reset_Entity): If the entity field of the associated
1549 node is not itself an entity but a selected component, it is a
1550 rewritten parameterless call to an en enclosing synchronized operation,
1551 and this expansion will be performed again in the instance, so there is
1552 no global information to preserve.
1553
44a10091
AC
15542011-08-05 Javier Miranda <miranda@adacore.com>
1555
1556 * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support
1557 for renamings of predefined primitives.
1558 (In_Predef_Prims_DT): New subprogram.
1559
15602011-08-05 Ed Schonberg <schonberg@adacore.com>
1561
1562 * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a
1563 possible interpretation of name is a reference type, add an
1564 interpretation that is the designated type of the reference
1565 discriminant of that type.
1566 * sem_res.adb (resolve): If the interpretation imposed by context is an
1567 implicit dereference, rewrite the node as the deference of the
1568 reference discriminant.
1569 * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type,
1570 Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from
1571 parent type or base type.
1572 * sem_ch4.adb (Process_Indexed_Component,
1573 Process_Overloaded_Indexed_Component, Indicate_Name_And_Type,
1574 Analyze_Overloaded_Selected_Component, Analyze_Selected_Component):
1575 Check for implicit dereference.
1576 (List_Operand_Interps): Indicate when an implicit dereference is
1577 ambiguous.
1578 * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference.
1579
15802011-08-05 Thomas Quinot <quinot@adacore.com>
1581
1582 * scos.ads: Update documentation of SCO table. Pragma statements can now
1583 be marked as disabled (using 'p' instead of 'P' as the statement kind).
1584 * par_sco.ads, par_sco.adb: Implement the above change.
1585 (Process_Decisions_Defer): Generate a P decision for the first parameter
1586 of a dyadic pragma Debug.
1587 * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if
1588 necessary.
1589 * put_scos.adb: Code simplification based on above change.
1590
bb3c784c
AC
15912011-08-05 Robert Dewar <dewar@adacore.com>
1592
1593 * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb,
1594 bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb,
1595 a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads,
1596 prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting
1597
15982011-08-05 Bob Duff <duff@adacore.com>
1599
1600 * a-stunau.ads, g-spipat.adb: Update comments.
1601
36f686f9
BD
16022011-08-05 Bob Duff <duff@adacore.com>
1603
1604 * a-fihema.ads: Minor comment fix.
1605 * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is
1606 correct.
1607 (Attach, Detach): Remove some unnecessary code.
1608 (Finalize): Remove Node_Ptr_To_Address, replace with a constant.
1609
7882673f
BD
16102011-08-05 Bob Duff <duff@adacore.com>
1611
1612 * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
1613 allocation for Objects component. This simplifies the code somewhat. It
1614 is also a little more efficient in the not-so-unusual case where there
1615 are no controlled objects allocated.
1616 Make Finalization_Started flag atomic.
1617 (Finalize): Avoid unnecessary detachment of items from the list.
1618 (pcol): Minor cleanup.
1619
d34cd274
AC
16202011-08-05 Ed Schonberg <schonberg@adacore.com>
1621
1622 * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal
1623 package whose name is the same as that of the generic unit, or its
1624 ultimate prefix.
1625
16262011-08-05 Bob Duff <duff@adacore.com>
1627
1628 * a-fihema.adb, a-fihema.ads: Minor comment improvements.
1629 * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb:
1630 Minor comment fixes.
1631
00332244
AC
16322011-08-05 Arnaud Charlet <charlet@adacore.com>
1633
1634 * make.adb (Linking_Phase): No longer need to set source search path
1635 before calling gnatlink in CodePeer mode.
1636 * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to
1637 gcc in CodePeer mode, since the binder generated file no longer has a
1638 'with Main'.
1639 * switch.ads, switch.adb (Is_Language_Switch): Removed.
1640 * switch-c.adb: Update comment.
1641
16422011-08-05 Thomas Quinot <quinot@adacore.com>
1643
1644 * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting.
1645
16462011-08-05 Nicolas Roche <roche@adacore.com>
1647
1648 * gnat_ugn.texi: Fix minor syntax error issue.
1649
16502011-08-05 Vincent Celier <celier@adacore.com>
1651
1652 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
1653 delete or close the file when the call to gnatmake returns a non
1654 successful return code.
1655
16562011-08-05 Ed Schonberg <schonberg@adacore.com>
1657
1658 * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate
1659 check, indicate that the copy of the original node does not come from
1660 source, to prevent an infinite recursion of the expansion.
1661
16622011-08-05 Johannes Kanig <kanig@adacore.com>
1663
1664 * debug.adb: document switch -gnatd.G for gnat2why, which deactivates
1665 VC generation for subprogram bodies.
1666
16672011-08-05 Yannick Moy <moy@adacore.com>
1668
1669 * einfo.ads: Typo.
1670 * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define
1671 the base type with the smallest allowed base type.
1672
16732011-08-05 Sergey Rybin <rybin@adacore.com>
1674
1675 * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for
1676 aspects.
1677
16782011-08-05 Ed Schonberg <schonberg@adacore.com>
1679
1680 * sem_ch12.ads: minor comment updates.
1681
16822011-08-05 Ed Schonberg <schonberg@adacore.com>
1683
1684 * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an
1685 instantiation and a formal package the compiler generates a package
1686 renaming declaration so that the generic name within the declaration
1687 is interpreted as a renaming of the instance. At the end of a formal
1688 package declaration, this renaming must become invisible.
1689
0da80d7d
AC
16902011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
1691
1692 * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character
1693 comparison and rely on concrete entities instead.
1694
16952011-08-05 Ed Schonberg <schonberg@adacore.com>
1696
1697 * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types
1698 and discriminants, to indicate that the type has an access discriminant
1699 that supports implicit dereference.
1700 * snames.ads-tmpl: Add names of aspects and attributes related to
1701 Ada2012 iterators: constant_indexing, default_iterator,
1702 iterator_element, implicit_dereference, variable_indexing.
1703 * aspects.ads, aspects.adb: entries for iterator-related aspects.
1704 * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for
1705 iterator-related aspects.
1706 * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects.
1707
17082011-08-05 Sergey Rybin <rybin@adacore.com>
1709
1710 * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling
1711 metrics in gnatmetric to cover new kinds of coupling mentrics.
1712
17132011-08-05 Steve Baird <baird@adacore.com>
1714
1715 * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead
2c7f9cc0 1716 of calling the user-defined main subprogram.
0da80d7d
AC
1717 (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode
1718 is set) Call_Main_Subprogram ahead of, as opposed to
1719 inside of, Main.
1720 (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional
1721 generation of a "with" of the user-defined main subprogram.
1722 Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper
1723 (which is now called from Gen_Main instead).
1724
73242473
AC
17252011-08-05 Emmanuel Briot <briot@adacore.com>
1726
1727 * projects.texi: Added reference to the Makefile package.
1728
17292011-08-05 Thomas Quinot <quinot@adacore.com>
1730
1731 * exp_ch7.adb: Minor comment rewording.
1732
17332011-08-05 Ed Falis <falis@adacore.com>
1734
1735 * env.c: Fix comment.
1736
17372011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
1738
1739 * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid
1740 character comparison and rely on concrete entities instead.
1741
97ed5872
AC
17422011-08-05 Ed Schonberg <schonberg@adacore.com>
1743
1744 * sem_ch3.adb: (Check_Private_Overriding): better error message,
1745 suggested by AI95-0068.
1746
17472011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
1748
1749 * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve
1750 the two potential initialization calls. This accounts for any
1751 access-before-elaboration checks which may precede the initialization
1752 calls.
1753 (Next_Suitable_Statement): New routine. Returns the next real statement
1754 after the input node while skipping generated checks.
1755 * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along
1756 with comment on usage.
1757 Do not generate Elaborate_All when the trigger is a finalization call
1758 coming from a type init proc.
1759 (Check_Elab_Call): Propagate the initialization procedure context to
1760 subsequent calls to Check_A_Call.
1761 (Check_Internal_Call_Continue): Propagate the initialization procedure
1762 context to subsequent calls to Check_Elab_Call.
1763 (Is_Finalization_Procedure): New routine. Returns True if the input
1764 entity denotes a [Deep_]Finalize routine.
1765 * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc
1766 along with comment on usage.
1767
17682011-08-05 Vadim Godunko <godunko@adacore.com>
1769
1770 * s-atocou.ads: Add list of supported platforms.
1771
17722011-08-05 Yannick Moy <moy@adacore.com>
1773
1774 * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables
1775
1776 * opt.ads (Disable_ALI_File): new Boolean flag
1777 * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing
1778
17792011-08-05 Ed Falis <falis@adacore.com>
1780
1781 * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that
1782 environ is properly defined.
1783
17842011-08-05 Vincent Celier <celier@adacore.com>
1785
1786 * make.adb (Compilation_Phase): Exit immediately when all objects have
1787 been found up to date, to avoid multiple exit messages.
1788 * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the
1789 same project for languages with no compiler.
1790 * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch
1791 -eI.
9aff36e9
RD
17922011-08-05 Robert Dewar <dewar@adacore.com>
1793
1794 * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb,
1795 sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb,
1796 prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb,
1797 s-atocou-builtin.adb: Minor reformatting.
1798
406935b6
AC
17992011-08-05 Yannick Moy <moy@adacore.com>
1800
1801 * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode,
1802 if the node to wrap is a pragma check, this node and enclosed
1803 expression are not expanded, so do not apply any transformations here.
1804 * exp_prag.adb (Expand_Pragma_Check): document the need to avoid
1805 introducing transient scopes.
1806
18072011-08-05 Jose Ruiz <ruiz@adacore.com>
1808
1809 * adaint.c (__gnat_set_writable, __gnat_set_readable,
1810 __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable,
1811 __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod
1812 routine is available, so we use the default implementation of these
1813 functions.
1814 * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is
1815 support for copying attributes on VxWorks 6.
1816
18172011-08-05 Yannick Moy <moy@adacore.com>
1818
1819 * debug.adb: Remove use of -gnatd.D.
1820 * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode
1821 * opt.ads: Simplify variables for ALFA mode, to keep one only
1822 * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode
1823 to ALFA mode.
1824
18252011-08-05 Vincent Celier <celier@adacore.com>
1826
1827 * prj-conf.adb (Do_Autoconf): Look also for --RTS in
1828 Builder'Default_Switches.
1829
18302011-08-05 Vincent Celier <celier@adacore.com>
1831
1832 * makeusg.adb: Add lines for --create-map-file switches.
1833
18342011-08-05 Ed Schonberg <schonberg@adacore.com>
1835
1836 * freeze.adb (Freeze_Entity): For a subprogram, if a type in the
1837 profile is incomplete and the full view is available, replace it with
1838 the full view.
1839 * sem_ch6.adb (Possible_Freeze): if a type in the profile is
1840 incomplete, freezing the subprogram is delayed until the full view is
1841 frozen.
1842 * sem_type.adb (Disambiguate): an ambiguity between a user-defined
1843 fixed-point multiplication operator and the predefined operator is
1844 resolved in favor of the user-defined one.
1845
96c891b3
RO
18462011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1847
1848 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use
1849 CONST_CAST.
1850
276e7ed0
AC
18512011-08-04 Ed Schonberg <schonberg@adacore.com>
1852
1853 * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
1854 whether a type lacks user-defined Read or Write operations, or has a
1855 component that lacks them.
1856 * sem_attr.adb (Check_Stream_Attribute): if restriction
1857 No_Default_Stream_Attributes is active, verify that all subcomponent
1858 types of the target have user-defined stream operations, and report
1859 error otherwise.
1860 * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
1861 * exp_strm.adb: Build_Elementary_Input_Call,
1862 Build_Elementary_Write_Call): remove checks for restriction
1863 No_Default_Stream_Attributes, now checked in semantics.
1864
18652011-08-04 Vincent Celier <celier@adacore.com>
1866
1867 * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
1868 switches on the command line, look for all valid --RTS switches in the
1869 Builder switches and for each language use the first runtime name found
1870 to invoke gprconfig.
1871 (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
1872 command line and there is no auto-configuration.
1873 (Runtime_Name_Set_For): New function.
1874
18752011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1876
1877 * exp_ch7.adb (Build_Object_Declarations): Do not generate the
1878 elaborate initialization expression for variable Abort when processing
1879 a package body or a declaration.
1880 (Create_Finalizer): Propagate the package context when creating the
1881 exception-related variables.
1882 * exp_ch7.ads (Build_Object_Declarations): New formal parameter
1883 For_Package along with usage comment.
1884
19172ae9
AC
18852011-08-04 Arnaud Charlet <charlet@adacore.com>
1886
1887 * gcc-interface/Makefile.in: Clean up targets.
1888 Enable new package for atomic counters and copy-on-write implementation
1889 of unbounded strings on x86 platforms.
1890 * gcc-interface/Make-lang.in: Update dependencies.
1891
0319cacc
AC
18922011-08-04 Robert Dewar <dewar@adacore.com>
1893
1894 * exp_ch7.adb: Minor reformatting.
1895
18962011-08-04 Robert Dewar <dewar@adacore.com>
1897
1898 * exp_strm.adb: Minor reformatting.
1899
19002011-08-04 Vadim Godunko <godunko@adacore.com>
1901
1902 * s-atocou.adb: Replace by dummy version and use on targets where atomic
1903 operations are not supported.
1904 * s-atocou-builtin.adb: Renamed from s-atocou.adb.
1905 * s-atocou-x86.adb: New file.
1906 * Makefile.rtl: Add s-atocou.o file
1907
19082011-08-04 Arnaud Charlet <charlet@adacore.com>
1909
1910 * make.adb (Compile): Move setting of CodePeer_Mode to ...
1911 (Compilation_Phase): ... here.
1912 (Scan_Make_Arg): Now bind and link by default in CodePeer mode.
1913
19142011-08-04 Thomas Quinot <quinot@adacore.com>
1915
1916 * Make-generated.in: Fix minor typo in comment.
1917
26e7e1a0
AC
19182011-08-04 Thomas Quinot <quinot@adacore.com>
1919
1920 * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve
1921 the project path.
1922
19232011-08-04 Robert Dewar <dewar@adacore.com>
1924
1925 * a-coinho.adb: Minor reformatting.
1926
19272011-08-04 Robert Dewar <dewar@adacore.com>
1928
1929 * a-coinho.ads: Minor reformatting.
1930
19312011-08-04 Vadim Godunko <godunko@adacore.com>
1932
1933 * s-atocou.ads, s-atocou.adb: New files.
1934 * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads,
1935 a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove
1936 direct use of GCC's atomic builtins and replace them by use of new
1937 atomic counter package.
1938
19392011-08-04 Ed Schonberg <schonberg@adacore.com>
1940
1941 * exp_strm.adb: better error message for No_Default_Stream_Attributes.
1942
19432011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1944
1945 * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic
1946 with a call to Get_External_Tag.
1947 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on
1948 subprogram usage. Remove the guard against package declarations and
1949 bodies since Build_Cleanup_Statements is no longer invoked in that
1950 context.
1951 (Build_Components): Initialize Tagged_Type_Stmts when the context
1952 contains at least one library-level tagged type.
1953 (Build_Finalizer): New local variables Has_Tagged_Types and
1954 Tagged_Type_Stmts along with associated comments on usage. Update the
1955 logic to include tagged type processing.
1956 (Create_Finalizer): Insert all library-level tagged type unregistration
1957 code before the jump block circuitry.
1958 (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements.
1959 (Expand_N_Package_Declaration): Remove the call to
1960 Build_Cleanup_Statements.
1961 (Process_Tagged_Type_Declaration): New routine. Generate a call to
1962 unregister the external tag of a tagged type.
1963 (Processing_Actions): Reimplemented to handle tagged types.
1964 (Process_Declarations): Detect the declaration of a library-level
1965 tagged type and carry out the appropriate actions.
1966 (Unregister_Tagged_Types): Removed. The machinery has been directly
1967 merged with Build_Finalizer.
1968
7483c888
AC
19692011-08-04 Robert Dewar <dewar@adacore.com>
1970
1971 * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb,
1972 gnatls.adb, exp_ch3.adb: Minor reformatting.
1973
19742011-08-04 Marc Sango <sango@adacore.com>
1975
1976 * sem_attr.adb (Analyze_Attribute): Replace the message
1977 "invisible attribute of}" of the spark restriction violation in
1978 attribute reference by the simple message "invisible attribute of type".
1979 Indeed, the node value Error_Msg_Node_1 used is in conflit with the
1980 two insertion characters: '&' and '}'.
1981
19822011-08-04 Vadim Godunko <godunko@adacore.com>
1983
1984 * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho".
1985 * a-coinho.ads, a-coinho.adb: New file.
1986 * Makefile.rtl: Add Ada.Containers.Indefinite_Holders.
1987
5207696c
AC
19882011-08-04 Nicolas Roche <roche@adacore.com>
1989
1990 * alfa_test.adb: Not all ali files are containing alfa information even
1991 if compiled with -gnatd.F. So suppress warning about missing ALFA
1992 information.
1993
19942011-08-04 Yannick Moy <moy@adacore.com>
1995
1996 * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for
1997 scope.
1998 * put_alfa.adb: Check that scope name is not empty.
1999
20002011-08-04 Ed Schonberg <schonberg@adacore.com>
2001
2002 * exp_ch3.adb (Stream_Operation_Ok): new predicate
2003 Needs_Elementary_Stream_Operation, to determine whether user-defined
2004 Read and Write attributes are available for the elementary components
2005 of the given type. If only the predefined attributes are available,
2006 then when restriction No_Default_Stream_Attributes is active the
2007 predefined stream attributes for the composite type cannot be created.
2008
20092011-08-04 Robert Dewar <dewar@adacore.com>
2010
2011 * bindgen.adb: Fix obsolete comments and names from Ada/C days.
2012 Put routines in alpha order
2013
2bd2d858
JR
20142011-08-04 Jose Ruiz <ruiz@adacore.com>
2015
2016 * gcc-interface/Makefile.in: Remove xenomai specific versions of system.
2017 * gcc-interface/Make-lang.in: Update dependencies.
2018
8fae6016
AC
20192011-08-04 Arnaud Charlet <charlet@adacore.com>
2020
2021 * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
2022 * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
2023 gnat1why).
2024
a54d0eb4
AC
20252011-08-04 Robert Dewar <dewar@adacore.com>
2026
2027 * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
2028 lib-xref-alfa.adb: Minor reformatting.
2029
20302011-08-04 Marc Sango <sango@adacore.com>
2031
2032 * sem_ch12.adb (Analyze_Generic_Package_Declaration,
2033 Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation,
2034 Analyze_Subprogram_Instantiation): Check absence of generic in SPARK
2035 mode.
2036
20372011-08-04 Tristan Gingold <gingold@adacore.com>
2038
2039 * bindgen.adb (Gen_Adainit_C): Remove.
2040 (Gen_Adafinal_C): Ditto.
2041 (Gen_Elab_Externals_C): Ditto.
2042 (Gen_Elab_Calls_C): Ditto.
2043 (Gen_Elab_Order_C): Ditto.
2044 (Gen_Elab_Defs_C): Ditto.
2045 (Gen_Finalize_Library_C): Ditto.
2046 (Gen_Finalize_Library_Defs_C): Ditto.
2047 (Gen_Main_C): Ditto.
2048 (Gen_Output_File_C): Ditto.
2049 (Gen_Restrictions_C): Ditto.
2050 (Gen_Versions_C): Ditto.
2051 (Write_Info_Ada_C): Ditto.
2052 (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C
2053 (Gen_Output_File): Do not force Ada_Bind_File anymore.
2054 Always call Gen_Output_File_Ada.
2055 * gnatlink.adb (Begin_Info): Now a constant.
2056 (End_Info): Ditto.
2057 (Ada_Bind_File): Remove
2058 (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases.
2059 * switch-b.adb (Scan_Binder_Switches): Do not handle -C.
2060 * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases.
2061 * opt.ads (Ada_Bind_File): Remove.
2062
20632011-08-04 Thomas Quinot <quinot@adacore.com>
2064
2065 * projects.texi: Document target-specific directory in default project
2066 path for gnatmake.
2067
20682011-08-04 Thomas Quinot <quinot@adacore.com>
2069
2070 * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project
2071 path in all cases .
2072
24558db8
AC
20732011-08-04 Yannick Moy <moy@adacore.com>
2074
2075 * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb,
2076 opt.ads, lib-xref.ads: Code clean up.
2077
20782011-08-04 Yannick Moy <moy@adacore.com>
2079
2080 * gnat_rm.texi: Update description of Test_Case
2081 * gnat_ugn.texi: Typo.
2082
20832011-08-04 Ed Falis <falis@adacore.com>
2084
2085 * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin.
2086
20872011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2088
2089 * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when
2090 it is of type Root_Controlled. This action eliminates fields Prev and
2091 Next from type equality.
2092
20932011-08-04 Yannick Moy <moy@adacore.com>
2094
2095 * lib-xref-alfa.adb: Correct typo.
2096
20972011-08-04 Matthew Heaney <heaney@adacore.com>
2098
2099 * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes
2100 component.
2101
1f9939b5
AC
21022011-08-04 Yannick Moy <moy@adacore.com>
2103
2104 * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure
2105 (Analyze_Pragma): allow static string expression for name of Test_Case,
2106 instead of simply string literals.
2107 * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string
2108 expressions.
2109
21102011-08-04 Vincent Celier <celier@adacore.com>
2111
2112 * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical
2113 case suffixes to find truncated main sources.
2114
21152011-08-04 Tristan Gingold <gingold@adacore.com>
2116
2117 * impunit.adb (Non_Imp_File_Names_95): Add g-tastus.
2118 s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put.
2119 (Compute_Current_Task): Ditto.
2120
21212011-08-04 Tristan Gingold <gingold@adacore.com>
2122
2123 * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage.
2124
21252011-08-04 Yannick Moy <moy@adacore.com>
2126
2127 * lib-xref-alfa.adb (Is_Global_Constant): new function that detects
2128 library-level constant.
2129 (Add_ALFA_Xrefs): ignore global constants in ALFA xref.
2130 * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal
2131 used as selector of parameter association, in ALFA mode.
2132
15d8a51d
AC
21332011-08-04 Robert Dewar <dewar@adacore.com>
2134
2135 * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb,
2136 s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor
2137 reformatting.
2138
21392011-08-04 Arnaud Charlet <charlet@adacore.com>
2140
2141 * make.adb (Linking_Phase): Set source search path before calling
2142 gnatlink in CodePeer mode.
2143
f46faa08
AC
21442011-08-04 Javier Miranda <miranda@adacore.com>
2145
2146 * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration):
2147 Remove code which takes care of building TSDs.
2148 * rtsfind.ads (RE_Check_Interface_Conversion): New entity.
2149 * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating
2150 the accessibility check in VM targets.
2151 * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads
2152 (Building_Static_DT): Now returns false for VM targets.
2153 (Build_VM_TSDs): Removed.
2154 (Expand_Interface_Conversion): Generate missing runtime check for
2155 conversions to interface types whose target type is unknown at compile
2156 time.
2157 (Make_VM_TSD): Add missing code to disable the generation of calls to
2158 Check_TSD if the tagged type is not defined at library level, or not
2159 has a representation clause specifying its external tag, or -gnatdQ is
2160 active.
2161 * exp_disp.ads (Build_VM_TSDs): Removed.
2162 (Make_VM_TSDs): Spec relocated from exp_disp.adb
2163 * sem_disp.adb (Check_Dispatching_Operation): No code required to
2164 register primitives in the dispatch tables in VM targets.
2165 * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of
2166 initialization of class-wide interface objects in VM targets.
2167 (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead
2168 of Make_DT).
2169
21702011-08-04 Jerome Lambourg <lambourg@adacore.com>
2171
2172 * gnatlink.adb (Gnatlink): Correct missleading error message displayed
2173 when dotnet-ld cannot be found.
2174
21752011-08-04 Arnaud Charlet <charlet@adacore.com>
2176
2177 * bindgen.adb: Simplify significantly generation of binder body file in
2178 CodePeer mode.
2179 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure
2180 when compiling binder generated file in CodePeer mode (xxx'Elab_Spec
2181 not expanded).
2182
2ba7e31e
AC
21832011-08-04 Yannick Moy <moy@adacore.com>
2184
2185 * sem_prag.adb, sem.ads: Code cleanup.
2186
21872011-08-04 Tristan Gingold <gingold@adacore.com>
2188
2189 * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part.
2190 * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate
2191 results if possible.
2192 * s-stusta.adb (Print): Adjust after changes in s-stausa.
2193 * gnat_ugn.texi: Update dynamic stack usage section.
2194
21952011-08-04 Steve Baird <baird@adacore.com>
2196
2197 * bindgen.adb (Gen_CodePeer_Wrapper): new procedure.
2198 Generate (if CodePeer_Mode is set) a "wrapper" subprogram which
2199 contains only a call to the user-defined main subprogram.
2200 (Gen_Main_Ada) - If CodePeer_Mode is set, then
2201 call the "wrapper" subprogram instead of directly
2202 calling the user-defined main subprogram.
2203
22042011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2205
2206 * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all
2207 alternatives of a case statement for controlled objects. Rename local
2208 variable A to Dead_Alt.
2209 (Expand_N_If_Statement): Check the then and else statements of an if
2210 statement for controlled objects. Check the then statements of all
2211 elsif parts of an if statement for controlled objects.
2212 (Expand_N_Loop_Statement): Check the statements of a loop for controlled
2213 objects.
2214 * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which
2215 detects a loop associated with the expansion of an array object.
2216 Augment the processing of the loop statements to account for a possible
2217 wrap done by Process_Statements_For_Controlled_Objects.
2218 * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering
2219 statements and abortable part of an asynchronous select for controlled
2220 objects.
2221 (Expand_N_Conditional_Entry_Call): Check the else statements of a
2222 conditional entry call for controlled objects.
2223 (Expand_N_Selective_Accept): Check the alternatives of a selective
2224 accept for controlled objects.
2225 (Expand_N_Timed_Entry_Call): Check the entry call and delay
2226 alternatives of a timed entry call for controlled objects.
2227 * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an
2228 exception handler for controlled objects.
2229 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
2230 Add formal parameter Nested_Constructs along with its associated
2231 comment.
2232 (Requires_Cleanup_Actions (Node_Id)): Update all calls to
2233 Requires_Cleanup_Actions.
2234 (Process_Statements_For_Controlled_Objects): New routine.
2235 * exp_util.ads (Process_Statements_For_Controlled_Objects): New
2236 routine. Inspect a node which contains a non-handled sequence of
2237 statements for controlled objects. If such an object is found, the
2238 statements are wrapped in a block.
2239
1bf773bb
AC
22402011-08-04 Bob Duff <duff@adacore.com>
2241
2242 * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we
2243 need to compare with Class_Wide_Type (T2), in order to get at the
2244 original class-wide type node.
2245 * sem_type.ads (Covers): Improve the comment.
2246 * einfo.ads (Class_Wide_Type): Improve the comment.
2247 * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of
2248 the type of the Deref.
2249
22502011-08-04 Yannick Moy <moy@adacore.com>
2251
2252 * gnat_rm.texi: Document that Test_Case pragma can only appear on
2253 separate declarations.
2254 * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to
2255 check identifier of pragma argument.
2256 (Chain_TC): check that no other test case associated to the same entity
2257 share the same name.
2258 (Check_Test_Case): disallow test case inside subprogram body
2259 (Analyze_Pragma): correct call to check identifier and not argument
2260 * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new
2261 function gets name from test case pragma.
2262
dac3bede
YM
22632011-08-04 Yannick Moy <moy@adacore.com>
2264
2265 * gnat_rm.texi: Document new pragma and aspect.
2266 * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case
2267 (No_Duplicates_Allowed): new constant array defining whether duplicates
2268 aspects of each kind can appear on the same declaration.
2269 * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract
2270 field, which points to a node holding the previous Spec_PPC_List.
2271 * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List
2272 through the indirection with Contract.
2273 * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node
2274 * par-prag.adb (Prag): do nothing on Test_Case pragma
2275 * sem.adb (Analyze): abort on N_Contract, on which Analyze should not
2276 be called directly.
2277 * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in
2278 component Ensures of Test_Case.
2279 * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb
2280 (Analyze_Generic_Subprogram_Declaration,
2281 Analyze_Subprogram_Instantiation,
2282 Analyze_Abstract_Subprogram_Declaration,
2283 Analyze_Subprogram_Body_Helper,
2284 Analyze_Subprogram_Specification, Analyze_Entry_Declaration):
2285 insert contract in subprogram node at point of definition
2286 * sem_ch13.adb
2287 (Aspect_Loop): do not raise error on duplicate Test_Case aspect
2288 (Analyze_Aspect_Specifications): analyze Test_Case aspect and create
2289 corresponding pragma
2290 (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect
2291 * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases,
2292 similar to the analysis of pre/post
2293 (Derive_Subprogram): insert contract in subprogram node at point of
2294 derivation.
2295 * sem_prag.adb, sem_prag.ads
2296 (Check_Arg_Is_String_Literal, Check_Identifier):
2297 new checking procedures to be called in treatment of pragmas
2298 (Check_Test_Case): new procedure to check that a Test_Case aspect or
2299 pragma is well-formed. This does not check currently that 'Result is
2300 used only in the Ensures component of a Test_Case.
2301 (Analyze_Pragma): add case for Test_Case
2302 (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures
2303 components of a Test_Case.
2304 (Preanalyze_TC_Args): new procedure to preanalyze the boolean
2305 expressions in the 3rd (and 4th if present) arguments of a Test_Case
2306 pragma, treated as spec expressions.
2307 (Sig_Flags): add value -1 for Test_Case.
2308 * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma,
2309 Get_Requires_From_Test_Case_Pragma): getters for both expression
2310 components of a Test_Case.
2311 * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as
2312 indirection between an entry or [generic] subprogram entity and its
2313 pre/post + test-cases.
2314 (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List):
2315 get/set for fields of an N_Contract node.
2316 * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode,
2317 Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new
2318 names and pragma for Test_Case.
2319 * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node
2320
6a2e5d0f
AC
23212011-08-04 Vincent Celier <celier@adacore.com>
2322
2323 * gnat_ugn.texi: Improve documentation of gnatmake switch
2324 --source-info-file=.
2325
23262011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2327
2328 * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion
2329 type). Initialize Atyp to the appropriate type which is later checked
2330 for completion. Rewrite the assertion associated with private type
2331 completion.
2332
23332011-08-04 Ed Falis <falis@adacore.com>
2334
2335 * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to
2336 initialize the number of CPUs.
2337
23382011-08-04 Ed Schonberg <schonberg@adacore.com>
2339
2340 * sem_type.adb (Disambiguate): New subsidiary routine
2341 In_Same_Declaration_List, to implement AI05-0020: a user-defined
2342 equality on an anonymous access type whose designated type is private
2343 does not lead to an ambiguity with the universal access equality
2344 operator in the body or child units of the defining package. The same
2345 is true for a multiplication operator on a private type completed with
2346 a fixed-point-type.
2347
23482011-08-04 Javier Miranda <miranda@adacore.com>
2349
2350 * opt.ads (Init_Or_Norm_Scalars_Config): Removed.
2351 (Normalize_Scalars_Config): Removed.
2352 * opt.adb
2353 (Register_Opt_Config_Switches): Remove registering config values of
2354 Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config.
2355 (Restore_Opt_Config_Switches): Remove code which restores the values of
2356 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
2357 Init_Or_Norm_Scalars.
2358 (Save_Opt_Config_Switches): Remove code which saves values of
2359 Init_Or_Norm_Scalars and Normalize_Scalars.
2360 (Set_Opt_Config_Switches): Remove code which restores config values of
2361 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
2362 Init_Or_Norm_Scalars.
2363
23642011-08-04 Yannick Moy <moy@adacore.com>
2365
2366 * frontend.adb (Frontend): remove previous patch to avoid full
2367 qualification in ALFA mode.
2368 * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables.
2369 * sem_util.adb, sem_util.ads (Unique_Name): new function to define a
2370 unique name for an entity, which could be used to identify the entity
2371 across compilation units.
2372
23732011-08-04 Thomas Quinot <quinot@adacore.com>
2374
2375 * prj-env.adb
2376 (Initialize_Default_Project_Path): Add target specific directory
2377 ($prefix/$target/lib/gnat) in front of project path in all cases
2378 (making gnatmake's behaviour consistent with gprbuild).
2379 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb:
2380 Pass target name from Sdefault to project subsystem.
2381 * gnatls.adb: Show new target specific default project directory.
2382
23832011-08-04 Johannes Kanig <kanig@adacore.com>
2384
2385 * cstand.adb: Add Information to Identifier in Standard
2386 (Identifer_For): Set Entity to the corresponding entity
2387
483361a6
AC
23882011-08-04 Sergey Rybin <rybin@adacore.com>
2389
2390 * gnat_ugn.texi: Update doc on gnatcheck.
2391
23922011-08-04 Yannick Moy <moy@adacore.com>
2393
2394 * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of
2395 xrefs in a scope.
2396
23972011-08-04 Yannick Moy <moy@adacore.com>
2398
2399 * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without
2400 performing expansion.
2401 * sem_ch6.adb (Analyze_Subprogram_Body_Helper,
2402 Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that
2403 it is not called in ALFA mode.
2404
ef5569c6
AC
24052011-08-04 Emmanuel Briot <briot@adacore.com>
2406
2407 * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used
2408 after all, so removed.
2409
24102011-08-04 Sergey Rybin <rybin@adacore.com>
2411
2412 * vms_data.ads: Add missing VMS qualifiers.
2413
1ab4a286
EB
24142011-08-04 Emmanuel Briot <briot@adacore.com>
2415
2416 * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild
2417 the list of files on the command line after processing it through
2418 Complete_Mains.
2419
7ae0d98c
AC
24202011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2421
2422 * exp_ch7.adb (Build_Raise_Statement): Remove the specialized
2423 processing for .NET/JVM. These targets can now benefit from
2424 Raise_From_Controlled_Operation and they share the same processing with
2425 standard targets.
2426 (Establish_Transient_Scope): Remove the restriction for .NET/JVM.
2427 These targets need transient scopes in order to properly finalize short
2428 lived controlled objects.
2429 (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for
2430 NET/JVM. These targets can now benefit from
2431 Raise_From_Controlled_Operation and they share the same processing with
2432 standard targets.
2433
24342011-08-04 Geert Bosch <bosch@adacore.com>
2435
2436 * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack
2437
24382011-08-04 Ed Schonberg <schonberg@adacore.com>
2439
2440 * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to
2441 Expand_Record_Aggregate, to determine whether aggregate must be
2442 expanded into assignments. This is the case if the ancestor part is
2443 private, regarless of the setting of the flag Has_Private_Ancestor.
2444
24452011-08-04 Ed Falis <falis@adacore.com>
2446
2447 * vxaddr2line.adb: Add support for e500v2 and for Linux hosts
2448
24492011-08-04 Bob Duff <duff@adacore.com>
2450
2451 * sinfo.ads: Fix comment.
2452
24532011-08-04 Steve Baird <baird@adacore.com>
2454
2455 * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then
2456 choose a package name in much the same way as is
2457 done for JGNAT when VM_Target /= No_VM, except that
2458 a slightly more distinctive prefix string is used.
2459
24602011-08-04 Emmanuel Briot <briot@adacore.com>
2461
2462 * makeutl.adb (Complete_Mains): no longer accept unit names on the
2463 gnatmake command line.
2464 This behavior was never documented (and was supported only because of
2465 an early bug in the code). This case might lead to ambiguous cases
2466 (between unit names and truncated base names without suffixes).
2467
87729e5a
AC
24682011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2469
2470 * a-tags.ads, a-tags.adb (Unregister_Tag): New routine.
2471 Remove the external tag of a tagged type from the internal hash table.
2472 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the
2473 expanded usage of the routine. Strenghten the check for Is_Master. Add
2474 processing for tagged types.
2475 (Build_Finalizer): Create all the necessary lists used in finalizer
2476 creation when the processed context is a package that may contain
2477 tagged types.
2478 (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to
2479 Requires_Cleanup_Actions.
2480 (Expand_N_Package_Body): Package bodies may need clean up code
2481 depending on whether they contain tagged types.
2482 (Expand_N_Package_Declaration): Package declarations may need clean up
2483 code depending on whether they contain tagged types.
2484 (Unregister_Tagged_Types): New routine. Search through a list of
2485 declarations or statements, looking for non-abstract Ada tagged types.
2486 For each such type, generate code to unregister the external tag.
2487 * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to
2488 Requires_Cleanup_Actions.
2489 (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search
2490 through a list of declarations or statements looking for non-abstract
2491 Ada tagged types or controlled objects.
2492 * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to
2493 Requires_Cleanup_Actions.
2494 (Has_Controlled_Objects (List_Id, Boolean)): Removed.
2495 * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and
2496 RE_Unit_Table.
2497
24982011-08-04 Vincent Celier <celier@adacore.com>
2499
2500 * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj
2501 has Ada sources, not project Project, because if the root project
2502 Project has no sources of its own, all projects will be deemed without
2503 sources.
2504
25052011-08-04 Gary Dismukes <dismukes@adacore.com>
2506
2507 * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration
2508 of the No_Param_Proc acc-to-subp type used for initialization of
2509 __gnat_finalize_library_objects so that it's declared at library level
2510 rather than nested inside of the adainit routine.
2511
25122011-08-04 Javier Miranda <miranda@adacore.com>
2513
2514 * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY
2515 if the tagged type has a representation clause which specifies its
2516 external tag.
2517
25182011-08-04 Ed Schonberg <schonberg@adacore.com>
2519
2520 * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types.
2521 Remove previous procedure with that name.
2522 * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor
2523 when appropriate.
2524 * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a
2525 subtype mark, the ancestor cannot have unknown discriminants.
2526 (Resolve_Record_Aggregate): if the type has invisible components
2527 because of a private ancestor, the aggregate is illegal.
2528
25292011-08-04 Vincent Celier <celier@adacore.com>
2530
2531 * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into
2532 account switches -gnat2005, -gnat12 and -gnat2012.
2533
25342011-08-04 Bob Duff <duff@adacore.com>
2535
2536 * s-tasdeb.ads: Minor comment fix.
2537
25382011-08-04 Arnaud Charlet <charlet@adacore.com>
2539
2540 * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in
2541 CodePeer mode.
2542 * switch.ads, switch.adb (Is_Language_Switch): New function.
2543
25442011-08-04 Vincent Celier <celier@adacore.com>
2545
2546 * switch-c.adb: Minor comment addition.
2547
25482011-08-04 Vincent Celier <celier@adacore.com>
2549
2550 * vms_conv.adb (Process_Argument): Fail graciously when qualifier
2551 ending with '=' is followed by a space (missing file name).
2552
25532011-08-04 Pascal Obry <obry@adacore.com>
2554
2555 * g-regist.ads: Fix size of HKEY on x86_64-windows.
2556
25572011-08-04 Ed Schonberg <schonberg@adacore.com>
2558
2559 * sem_ch12.adb (Analyze_Associations): New routine
2560 Check_Overloaded_Formal_Subprogram to reject a formal package when
2561 there is a named association or a box initialisation for an overloaded
2562 formal subprogram of the corresponding generic.
2563
25642011-08-04 Yannick Moy <moy@adacore.com>
2565
2566 * alfa.ads (ALFA_Xref_Record): add component for type of entity
2567 * get_alfa.adb, put_alfa.adb: Read and write new component of
2568 cross-reference.
2569 * lib-xref-alfa.adb (Collect_ALFA): generate new component.
2570
88f47280
AC
25712011-08-04 Pascal Obry <obry@adacore.com>
2572
2573 * urealp.adb: Minor reformatting.
2574
25752011-08-04 Tristan Gingold <gingold@adacore.com>
2576
2577 * exp_ch7.adb (build_finalizer.process_declarations.processing_actions):
2578 Handle the case when Cleanup_Protected_Object returns Empty.
2579
25802011-08-04 Yannick Moy <moy@adacore.com>
2581
2582 * frontend.adb (Frontend): only qualify names in non-ALFA mode
2583
25842011-08-04 Ed Schonberg <schonberg@adacore.com>
2585
2586 * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure
2587 call, ignore functions.
2588
05c53a69
GB
25892011-08-04 Geert Bosch <bosch@adacore.com>
2590
2591 * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating
2592 point.
2593
23cc1ace
EB
25942011-08-04 Emmanuel Briot <briot@adacore.com>
2595
2596 * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name
2597 as an index for Builder'Switches. This conforms to the documentation.
2598 * make.adb (Insert_Project_Sources): avoid duplicate code
2599
cef14201
AC
26002011-08-04 Emmanuel Briot <briot@adacore.com>
2601
2602 * makeutl.adb (Complete_Mains): if the user has passed a relative file
2603 name on the command line (for instance "../dummy"), never assume it can
2604 be a unit name.
2605
26062011-08-04 Tristan Gingold <gingold@adacore.com>
2607
2608 * bindgen.adb: Remove code the reference or create the
2609 Break_Start/__gnat_break_start procedure.
2610 * s-stalib.adb (Break_Start): Removed.
2611
e2fee30d
EB
26122011-08-04 Emmanuel Briot <briot@adacore.com>
2613
2614 * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now
2615 shared with gprbuild.
2616
2d395256
AC
26172011-08-04 Yannick Moy <moy@adacore.com>
2618
2619 * par-ch4.adb (P_Primary): preferentially issue an error message about
2620 a missing parenthesis arount a conditional or case expression in Ada
2621 2012 mode, if we detect that the alignment is not correct for a
2622 statement.
2623
26242011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2625
2626 * exp_ch7.adb (Process_Declarations): Do not consider the result of a
2627 tag-to-class-wide conversion as needing finalization actions.
2628 * exp_util.adb (Has_Controlled_Objects): Do not consider the result of
2629 a tag-to-class-wide conversion as needing finalization actions.
2630 (Is_Finalizable_Transient): The result of a tag-to-class-wide
2631 conversion does not need finalization actions.
2632 (Is_Tag_To_CW_Conversion): New routine.
2633 * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines
2634 whether an object is the result of a tag-to-class-wide conversion.
2635
26362011-08-04 Yannick Moy <moy@adacore.com>
2637
2638 * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which
2639 the left-hand-side and right-hand-side of a conjunct are inserted when
2640 translating a pre- or postcondition
2641 * sem_ch6.adb: Correct typo in comment
2642
26432011-08-04 Ed Schonberg <schonberg@adacore.com>
2644
2645 * gnat_rm.texi: Ravenscar does not prohibit dependence on
2646 Unchecked_Conversion and Unchecked_Deallocation.
2647
26482011-08-04 Thomas Quinot <quinot@adacore.com>
2649
2650 * make.adb: Minor reformatting.
2651
767ab2fd
EB
26522011-08-04 Emmanuel Briot <briot@adacore.com>
2653
2654 * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the
2655 sources in the project and its imported projects, but not in the whole
2656 tree.
2657
8fb3f5df
AC
26582011-08-04 Emmanuel Briot <briot@adacore.com>
2659
2660 * make.adb: Remove debug trace.
2661
26622011-08-04 Vincent Celier <celier@adacore.com>
2663
2664 * makeutl.adb (Do_Complete): Get the absolute path name of a relative
2665 path in canonical form, to be able to compare path names on platforms
2666 such as Windows or Darwin.
2667
26682011-08-04 Thomas Quinot <quinot@adacore.com>
2669
2670 * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry):
2671 For a pragma (statement with C1 = 'P'), record the sloc of the pragma.
2672 * scos.ads: Update documentation accordingly.
2673 * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled
2674 pragmas.
2675
9515740f
AC
26762011-08-04 Ed Schonberg <schonberg@adacore.com>
2677
2678 * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of
2679 attribute only if prefix type is scalar.
2680
26812011-08-04 Emmanuel Briot <briot@adacore.com>
2682
2683 * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support
2684 in gnatmake for specifying mains on the command line that do not belong
2685 to the main project. These mains must currently all belong to the same
2686 project, though.
2687 (Ultimate_Extension_Of): removed, since duplicated
2688 Ultimate_Extending_Project.
2689
92966893
AC
26902011-08-04 Arnaud Charlet <charlet@adacore.com>
2691
2692 * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode
2693 instead.
2694 (CodePeer_Mode_String): New.
2695 (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in
2696 CodePeer mode.
2697 (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode.
2698 * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer
2699 mode, since no useful elaboration subprogram is needed by CodePeer.
2700 * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode).
2701 In this mode, compile binder file with -gnatC and do stop after this
2702 step.
2703
27042011-08-04 Vincent Celier <celier@adacore.com>
2705
2706 * exp_ch7.adb: Minor comment fix.
2707
5969611f
RD
27082011-08-04 Robert Dewar <dewar@adacore.com>
2709
2710 * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb,
2711 exp_ch4.adb, makeutl.adb: Minor reformatting.
2712
6367dd30
AC
27132011-08-04 Emmanuel Briot <briot@adacore.com>
2714
2715 * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring.
2716 Create several new subprograms to move code out of Make. This makes the
2717 code more readable, removes code duplication, and is a preparation work
2718 for adding support for aggregate projects.
2719
27202011-08-04 Tristan Gingold <gingold@adacore.com>
2721
2722 * s-po32gl.ads, s-po32gl.adb: New files.
2723 * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function.
2724 * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function.
2725 (Build_Finalization_Collection): Use it.
2726 * exp_ch4.adb (Complete_Controlled_Allocation): Ditto.
2727 * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New
2728 literals.
2729 * gcc-interface/Makefile.in: Use s-po32gl.o on VMS.
2730 * gcc-interface/Make-lang.in: Update dependencies.
2731
cd8bfe35
EB
27322011-08-04 Emmanuel Briot <briot@adacore.com>
2733
2734 * makeutl.adb (Complete_Mains): add support for specs with no suffix on
2735 the command line.
2736
7db29ea7
EB
27372011-08-04 Emmanuel Briot <briot@adacore.com>
2738
2739 * make.adb, makeutl.adb (Complete_Mains): if a main specified on the
2740 command line is not a file name, also check whether it could be a unit
2741 name.
2742
d9b056ea
AC
27432011-08-04 Eric Botcazou <ebotcazou@adacore.com>
2744
2745 * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate
2746 the header of the finalization routine.
2747 If the unit has no finalizer but is a body whose spec has one, then
2748 generate the decrement of the elaboration entity only.
2749 If the unit has a finalizer and is a spec, then do not generate the
2750 decrement of the elaboration entity.
2751 (Gen_Finalize_Library_C): Likewise.
2752
27532011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2754
2755 * exp_ch7.adb (Alignment_Of): New subsidiary routine.
2756 (Bounds_Size_Expression): Removed.
2757 (Double_Alignment_Of): New subsidiary routine.
2758 (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account
2759 for a hole in the dope vector of unconstrained arrays due to different
2760 index and element alignments.
2761
27622011-08-04 Ed Schonberg <schonberg@adacore.com>
2763
2764 * sem_res.adb (Resolve_Allocator): diagnose task allocator that will
2765 raise program_error because body has not been seen yet.
2766
27672011-08-04 Ed Schonberg <schonberg@adacore.com>
2768
2769 * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with
2770 an unresolved name.
2771
27722011-08-04 Vincent Celier <celier@adacore.com>
2773
2774 * makeutl.adb (Do_Complete): Check absolute paths in canonical forms
2775
27762011-08-04 Yannick Moy <moy@adacore.com>
2777
2778 * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here
2779 * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here
2780
27812011-08-04 Thomas Quinot <quinot@adacore.com>
2782
2783 * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for
2784 instantiation in RCI.
2785
27862011-08-04 Emmanuel Briot <briot@adacore.com>
2787
2788 * make.adb: Share more code with gprbuild
2789
f5fc5b9d
AC
27902011-08-04 Emmanuel Briot <briot@adacore.com>
2791
2792 * projects.texi: Added documentation for the IDE'Gnat project file
2793 attribute.
2794
27952011-08-04 Nicolas Roche <roche@adacore.com>
2796
2797 * gnat_rm.texi: Minor editing.
2798
27992011-08-04 Javier Miranda <miranda@adacore.com>
2800
2801 * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case
2802 and the library case for VM targets.
2803 (Gen_Adainit_Ada): Likewise.
2804
28052011-08-04 Robert Dewar <dewar@adacore.com>
2806
2807 * g-altive.ads: Minor comment updates.
2808 * prj-nmsc.adb: Minor reformatting.
2809
28102011-08-04 Javier Miranda <miranda@adacore.com>
2811
2812 * opt.ads
2813 (Normalize_Scalars_Config): Value of the configuration switch set by
2814 pragma Normalize_Scalars when it appears in the gnat.adc file.
2815 (Normalize_Scalars): New field for record Config_Switches_Type. Used
2816 to save and restore settings of this pragma.
2817 * opt.adb
2818 (Register_Opt_Config_Switches, Save_Opt_Config_Switches,
2819 Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars.
2820
28212011-08-04 Vincent Celier <celier@adacore.com>
2822
2823 * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile
2824
0c4683cf
AC
28252011-08-04 Arnaud Charlet <charlet@adacore.com>
2826
2827 * makeutl.adb: Minor reformatting.
2828
28292011-08-04 Olivier Hainque <hainque@adacore.com>
2830
2831 * g-altive.ads: Update comments to reflect that only the soft
2832 binding is available today.
2833
2598ee6d
RD
28342011-08-04 Robert Dewar <dewar@adacore.com>
2835
2836 * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb,
2837 makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting
2838 * gcc-interface/Make-lang.in: Update dependencies.
2839
c2db4b32
AC
28402011-08-04 Arnaud Charlet <charlet@adacore.com>
2841
2842 * prj-env.adb: Remove local debug traces.
2843
28442011-08-04 Yannick Moy <moy@adacore.com>
2845
2846 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
2847 was used instead of Hi_OK, which could cause a read of an uninitialized
2848 value later on. Detected while working on the new warning.
2849 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
2850 to local variable.
2851 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
2852 in more cases, in order to detect more unreferenced values.
2853 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
2854 object for expression, if any.
2855
28562011-08-04 Eric Botcazou <ebotcazou@adacore.com>
2857
2858 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
2859 the operand types instead of the Esize.
2860
28612011-08-04 Steve Baird <baird@adacore.com>
2862
2863 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
2864 enable CodePeer_Mode.
2865 * bindusg.adb (Display): Add help message describing -P binder switch.
2866 * gnat_ugn.texi: Document -P binder switch.
2867 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
2868 user-defined main program directly.
2869 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
2870 user-defined main program in the context clause of the package body.
2871
ad05f2e9
AC
28722011-08-04 Yannick Moy <moy@adacore.com>
2873
2874 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
2875 duplicate of Defining_Entity
2876 (Get_Unique_Entity_For_Decl): rename function into
2877 Unique_Defining_Entity
2878 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
2879 (Formal_Proof_On): remove synthesized flag
2880 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
2881 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
2882 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
2883 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
2884 Annotate (Formal_Proof)
2885
28862011-08-04 Emmanuel Briot <briot@adacore.com>
2887
2888 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
2889 source files with non-standard naming schemes, in imported projects
2890
756ef2a0
AC
28912011-08-04 Emmanuel Briot <briot@adacore.com>
2892
2893 * makeutl.adb (Complete_Mains): when a multi-unit source file is
2894 specified on the gprbuild command line, we need to compile all units
2895 within that file, not just the first one we find
2896 Fix error message for mains that are not found.
2897
28982011-08-04 Thomas Quinot <quinot@adacore.com>
2899
2900 * sem_ch6.adb: Update comment.
2901 * sem_ch12.adb: Minor reformatting.
2902
29032011-08-04 Bob Duff <duff@adacore.com>
2904
2905 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
2906 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
2907 race condition whose symptom is to fail to lock Parent. That, in turn,
2908 causes Parent.Awake_Count to be accessed without locking Parent, which
2909 causes another race condition whose symptom is that Parent.Awake_Count
2910 can be off by 1 (either too high or too low). The solution is to lock
2911 Parent unconditionally, and then lock Acceptor, before reading
2912 Acceptor.Terminate_Alternative.
2913
4fdebd93
AC
29142011-08-04 Arnaud Charlet <charlet@adacore.com>
2915
2916 * debug.adb: Update comment.
2917
29182011-08-04 Robert Dewar <dewar@adacore.com>
2919
2920 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
2921 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
2922 exp_ch6.adb: Minor reformatting.
2923
29242011-08-04 Gary Dismukes <dismukes@adacore.com>
2925
2926 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
2927 checks for -gnateE.
2928
29292011-08-04 Ed Schonberg <schonberg@adacore.com>
2930
2931 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
2932
29332011-08-04 Thomas Quinot <quinot@adacore.com>
2934
2935 * sinfo.ads: Minor reformatting.
2936
29372011-08-04 Emmanuel Briot <briot@adacore.com>
2938
2939 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
2940 even if there is no location.
2941
6aaa0587
ES
29422011-08-04 Ed Schonberg <schonberg@adacore.com>
2943
2944 * sem_res.adb, sem_ch4.adb: move check for restriction
2945 No_Task_Hierarchy to resolve_allocator.
2946
35a1c212
AC
29472011-08-04 Thomas Quinot <quinot@adacore.com>
2948
2949 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
2950 This flag of N_Pragma nodes is not used, remove it as well as all of
2951 the associated circuitry.
2952
29532011-08-04 Javier Miranda <miranda@adacore.com>
2954
2955 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
2956 runtime check on duplicated externa tags
2957 * debug.adb Document switch -gnatdQ.
2958
29592011-08-04 Gary Dismukes <dismukes@adacore.com>
2960
2961 * a-fihema.ads: Minor typo fix.
2962
29632011-08-04 Yannick Moy <moy@adacore.com>
2964
2965 * sem_ch10.adb: Minor comment update.
2966
29672011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2968
2969 * einfo.adb: Update the node field usage to reflect the renaming of
2970 Return_Flag to Return_ Flag_Or_Transient_Decl.
2971 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
2972 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
2973 (Write_Field15_Name): Change Return_Flag to
2974 Return_Flag_Or_Transient_Decl.
2975 * einfo.ads: Rename node field Return_Flag to
2976 Return_Flag_Or_Transient_Decl. Update the associated comment and all
2977 occurrences in entities.
2978 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
2979 associated Inline pragma.
2980 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
2981 associated Inline pragma.
2982 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
2983 routine.
2984 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
2985 Return_Flag and Set_Return_Flag.
2986 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
2987 objects generated for controlled transients declared inside an
2988 Exception_With_Actions. Update the calls to Return_Flag.
2989 (Process_Object_Declaration): Add code to add a null guard for hook
2990 objects generated for controlled transients declared inside an
2991 Exception_With_Actions. Update related comment.
2992 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
2993 objects generated for controlled transients declared inside an
2994 Exception_With_Actions. Update the calls to Return_Flag.
2995 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
2996
29972011-08-04 Ed Schonberg <schonberg@adacore.com>
2998
2999 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
3000 positional aggregate.
3001
30022011-08-04 Vincent Celier <celier@adacore.com>
3003
3004 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
3005 SLOC only for pragmas.
3006
30072011-08-04 Emmanuel Briot <briot@adacore.com>
3008
3009 * projects.texi: Minor typo fix.
3010
30112011-08-04 Emmanuel Briot <briot@adacore.com>
3012
3013 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
3014 on case-sensitive file systems.
3015
c2873f74
TQ
30162011-08-04 Thomas Quinot <quinot@adacore.com>
3017
3018 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
3019 nested in a disabled pragma.
3020 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
3021 enclosing pragma, if any, for X decisions.
3022
30232011-08-04 Thomas Quinot <quinot@adacore.com>
3024
3025 * sem_prag.adb: Minor reformatting.
3026
46414266
VC
30272011-08-04 Vincent Celier <celier@adacore.com>
3028
3029 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
3030 allowed in no run time mode.
3031
30322011-08-04 Vincent Celier <celier@adacore.com>
3033
3034 * make.adb (Check): When -gnatc is used, check for the source file
3035 inside the ALI file with a canonical case file name.
3036
afab164f
EB
30372011-08-04 Emmanuel Briot <briot@adacore.com>
3038
3039 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
3040 overriding the separator.
3041
fe0ec02f
AC
30422011-08-04 Robert Dewar <dewar@adacore.com>
3043
3044 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
3045 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
3046
30472011-08-04 Robert Dewar <dewar@adacore.com>
3048
3049 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
3050
30512011-08-04 Yannick Moy <moy@adacore.com>
3052
3053 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
3054 'Result only appears in postcondition of function.
3055
30562011-08-04 Thomas Quinot <quinot@adacore.com>
3057
3058 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
3059 external tag, include the value of the external tag in the exception
3060 message.
3061
0180fd26
AC
30622011-08-04 Yannick Moy <moy@adacore.com>
3063
3064 * sem_attr.adb (Result): modify error message for misplaced 'Result
3065
30662011-08-04 Sergey Rybin <rybin@adacore.com>
3067
3068 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
3069 clear that the second argument must be an identifier.
3070
30712011-08-04 Thomas Quinot <quinot@adacore.com>
3072
3073 * exp_ch9.adb (Build_Barrier_Function): When compiling with
3074 -fpreserve-control-flow, insert an IF statement on the barrier
3075 condition to ensure that a conditional branch instruction is generated.
3076
30772011-08-04 Emmanuel Briot <briot@adacore.com>
3078
3079 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
3080 (Processing_Flags.Ignore_Missing_With): new flag.
3081
30822011-08-04 Emmanuel Briot <briot@adacore.com>
3083
3084 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
3085 Source_List_File on case-insensitive systems where the file is actually
3086 on a case-sensitive file system (NFS,...).
3087
30882011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3089
3090 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
3091 function return contains a controlled [extension] aggregate and the
3092 return statement is not part of a handled sequence of statements, wrap
3093 the return in a block. This ensures that all controlled temporaries
3094 generated during aggregate resolution will be picked up by the
3095 finalization machinery.
3096
30972011-08-04 Ed Schonberg <schonberg@adacore.com>
3098
3099 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
3100 components, freeze type before resolution, to ensure that default
3101 initializations are present for all components.
3102 * sem_res.adb (Resolve_Actuals): the designated object of an
3103 accces-to-constant type is a legal actual in a call to an
3104 initialization procedure.
3105
31062011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3107
3108 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
3109 N_Unchecked_Type_Conversion to the possible containers of a renamed
3110 transient variable.
3111
78efd712
AC
31122011-08-04 Yannick Moy <moy@adacore.com>
3113
3114 * par-ch13.adb (Aspect_Specifications_Present): recognize
3115 "with Identifier'Class =>" as an aspect, so that a meaningful warning
3116 is issued in Strict mode.
3117 * par.adb: Fix typos in comments.
3118
31192011-08-04 Yannick Moy <moy@adacore.com>
3120
3121 * sem_attr.adb (Result): modify error message to take into account Post
3122 aspect when compiling Ada 2012 (or newer) code.
3123
31242011-08-04 Nicolas Roche <roche@adacore.com>
3125
3126 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
2c7f9cc0 3127 remove need for GCC exceptions.
78efd712
AC
3128
31292011-08-04 Vincent Celier <celier@adacore.com>
3130
3131 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
3132 project, not the source file name.
3133 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
3134 excluded, continue looking. This excluded source will only be returned
3135 if there is no other source with the same base name that is not locally
3136 removed.
3137
31382011-08-04 Ed Schonberg <schonberg@adacore.com>
3139
3140 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
3141 private and one of the operands is a real literal, use a qualified
3142 expression rather than a conversion which is not meaningful to the
3143 back-end.
3144
0170a691
AC
31452011-08-04 Yannick Moy <moy@adacore.com>
3146
3147 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
3148 corresponding aspect X'Class are allowed, proceed with analysis of the
3149 aspect instead of skipping it.
3150
31512011-08-04 Tristan Gingold <gingold@adacore.com>
3152
3153 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
3154 This will allow to have an Ada implementation for the subprogram.
3155
deb4f5ba
ES
31562011-08-04 Ed Schonberg <schonberg@adacore.com>
3157
3158 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
3159 completion and aspects are present, apply them to the entity for the
3160 type which is currently the partial view, but which is the one that
3161 will be frozen.
3162 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
3163 applies to a partial view, indicate that the full view has predicates
3164 and delayed aspects.
3165 (Replace_Type_Reference): Handle properly predicates that apply to the
3166 full view of a private completion.
3167
fc893455
AC
31682011-08-04 Eric Botcazou <ebotcazou@adacore.com>
3169
3170 * layout.adb (Layout_Type): For composite types, do not set Esize.
3171 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
3172 set Esize.
3173 (Size_Known): Look at the RM size of components instead of the Esize.
3174 (Freeze_Record_Type): Look at the RM size instead of the Esize to
3175 issue warning and activate Implicit_Packing.
3176 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
3177 if the Esize is not known.
3178 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
3179 for elementary types only.
3180 (Analyze_Record_Representation_Clause): Look at the RM size instead
3181 of the Esize to issue errors.
3182 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
3183 is not known.
3184 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
2c7f9cc0 3185 obsolete block.
fc893455
AC
3186 Look at the RM size instead of the Esize for types if the latter is
3187 not known.
3188 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
3189
31902011-08-04 Ed Schonberg <schonberg@adacore.com>
3191
3192 * sem_type.adb: proper handling of equality not involving anonymous
3193 access types.
3194
b37d5bc6
AC
31952011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3196
3197 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
3198 Vis_Decls. When creating a library-level finalizer for a package spec,
3199 both the declaration and body of the finalizer are inserted either in
3200 the visible or private declarations of the package spec.
3201
32022011-08-04 Javier Miranda <miranda@adacore.com>
3203
3204 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
3205 use of the full-view of a type when invoking Is_Ancestor.
3206 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
3207 the full-view of private parents is requested, then use also the
3208 full-view of the parent of the first derivation.
3209
7ab4d95a
AC
32102011-08-04 Tristan Gingold <gingold@adacore.com>
3211
3212 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
3213 instead of the locally imported procedure.
3214 * s-taprop-mingw.adb (Enter_Task): Ditto.
3215 * s-valrea.adb (Scan_Real): Ditto.
3216 * s-imgrea.adb (Set_Image_Real): Ditto.
3217 * s-flocon.ads: Make the package pure.
3218
32192011-08-04 Thomas Quinot <quinot@adacore.com>
3220
3221 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
3222 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
3223 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
3224 New subprogram, moved here from...
3225 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
3226 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
3227 rewriting of the last argument into a procedure call statement here...
3228 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
3229 instead.
3230
32312011-08-04 Thomas Quinot <quinot@adacore.com>
3232
3233 * par_sco.adb: Minor reformatting.
3234
51c400f5
AC
32352011-08-04 Robert Dewar <dewar@adacore.com>
3236
3237 * erroutc.adb: Minor reformatting.
3238
32392011-08-04 Thomas Quinot <quinot@adacore.com>
3240
3241 * par_sco.adb: Comment update.
3242
32432011-08-04 Tristan Gingold <gingold@adacore.com>
3244
3245 * s-flocon.ads: New file.
3246 * g-flocon.ads: Now a renaming of s-flocon.
3247 * Makefile.rtl: Add s-flocon.o
3248
6a49f110
AC
32492011-08-04 Javier Miranda <miranda@adacore.com>
3250
3251 * exp_strm.adb (Build_Array_Input_Function): if the array type is
3252 constrained, do not attempt to build a subtype of it.
3253
32542011-08-04 Yannick Moy <moy@adacore.com>
3255
3256 * errout.ads Change comments: remove 'R'M as an example where quotes
3257 are needed; add ALFA as another case where quotes are not needed
3258 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
3259 case where quotes are not needed.
3260 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
3261 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
3262 Remove all occurrences of 'A'L'F'A
3263
32642011-08-04 Ed Schonberg <schonberg@adacore.com>
3265
3266 * sem_ch13.adb: check legality of invariant pragma.
3267
a4640a39
AC
32682011-08-04 Eric Botcazou <ebotcazou@adacore.com>
3269
3270 * bindgen.adb: Add comments.
3271
32722011-08-04 Yannick Moy <moy@adacore.com>
3273
3274 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
3275 synthesized flag.
3276 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
3277 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
3278
32792011-08-04 Robert Dewar <dewar@adacore.com>
3280
3281 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
3282 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
3283 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
3284
39ade2f9
AC
32852011-08-04 Thomas Quinot <quinot@adacore.com>
3286
3287 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
3288
32892011-08-04 Thomas Quinot <quinot@adacore.com>
3290
3291 PR ada/47880
3292 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
3293 allocated object.
3294
32952011-08-04 Robert Dewar <dewar@adacore.com>
3296
3297 * einfo.ads, exp_ch4.adb: Minor reformatting.
3298
32992011-08-04 Jerome Lambourg <lambourg@adacore.com>
3300
3301 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
3302
7efc3f2d
AC
33032011-08-04 Ed Schonberg <schonberg@adacore.com>
3304
3305 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
3306 type in all cases to compute list of primitive operations, because full
3307 view may be an itype that is not attached to the list of declarations.
3308
33092011-08-04 Eric Botcazou <ebotcazou@adacore.com>
3310
3311 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
3312 library has already been finalized.
3313 (Gen_Adafinal_C): Likewise.
3314 (Gen_Adainit_Ada): Generate an early return if the library has
3315 already been elaborated.
3316 (Gen_Adainit_C): Likewise.
3317 (Gen_Output_File_Ada): Generate an elaboration flag.
3318 (Gen_Output_File_C): Likewise.
3319
f65df609
HK
33202011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3321
3322 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
3323 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
3324 built in the first place.
3325 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
3326 for CodePeer because Finalize_Address was not built to begin with.
3327 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
3328
a0fb8fe8
AC
33292011-08-04 Pascal Obry <obry@adacore.com>
3330
3331 * adaint.c (__gnat_tmp_name): Use current process id to create temp
3332 filenames, this ensures unicity of filenames across processes.
3333
33342011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3335
3336 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
3337 Raise_Controlled to Raise_From_Controlled_Operation. Update the
3338 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
3339 Add False as the actual to From_Abort in the generated call to
3340 Raise_From_Controlled_Operation.
3341
33422011-08-04 Jerome Lambourg <lambourg@adacore.com>
3343
3344 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
3345 so that the ali file name can be retrieved from outside of this package.
3346 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
3347 doing nothing in the general case, but used to update the object file
3348 timestamp if directly generated by the backend.
3349 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
3350 to a later time than the ali file one.
3351
9534ab17
AC
33522011-08-04 Yannick Moy <moy@adacore.com>
3353
3354 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
3355 entities whose body contains an Annotate pragma which forces formal
3356 proof on this body.
3357 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
3358 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
3359 Mark_Non_ALFA_Subprogram to pass in a message and node.
3360 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
3361 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
3362 surrounding subprogram.
3363 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
3364 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
3365 as not in ALFA is annotated with Formal_Proof being On, then an error
3366 is issued based on the additional parameters for message and node.
3367 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
3368 * gcc-interface/Make-lang.in: Update dependencies.
3369
33702011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3371
3372 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
3373 Finalize_Address when CodePeer is enabled.
3374
33752011-08-04 Pascal Obry <obry@adacore.com>
3376
3377 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
3378 the latter returns a pointer to a static buffer which is deallocated
3379 at the end of the routine.
3380
5c0e97dd
AC
33812011-08-04 Yannick Moy <moy@adacore.com>
3382
3383 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
3384 after index creation; mark unconstrained base array type generated as
3385 being in/not in ALFA as well
3386 (Make_Index): mark subtype created as in/not in ALFA
3387 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
3388 over a loop as in/not in ALFA, depending on its type and form of loop
3389 iteration.
3390
33912011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3392
3393 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
3394 directly to False on .NET and JVM.
3395
7a93c64b
YM
33962011-08-04 Yannick Moy <moy@adacore.com>
3397
3398 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
3399 constraint that subtype must come from source code to be in ALFA, so
3400 that anonymous subtypes can be in ALFA too.
3401
e9a1ed9b
YM
34022011-08-04 Yannick Moy <moy@adacore.com>
3403
3404 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
3405 reference for ALFA mode.
3406 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
3407 procedure public so as to use it from formal verification back-end.
3408
8e293fbd
AC
34092011-08-04 Jerome Lambourg <lambourg@adacore.com>
3410
3411 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
3412 invalid checks of the Parameter, making Remove_Switch not working
3413 correctly.
3414
34152011-08-04 Arnaud Charlet <charlet@adacore.com>
3416
3417 * targparm.ads: Update header: no run-time exception is needed on this
3418 file.
3419
34202011-08-04 Vincent Celier <celier@adacore.com>
3421
3422 * a-fihema.adb: Use System.IO instead of GNAT.IO
3423
34242011-08-04 Thomas Quinot <quinot@adacore.com>
3425
3426 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
3427 are forbidden in Compiler_Unit mode.
3428
cfae2bed
AC
34292011-08-04 Robert Dewar <dewar@adacore.com>
3430
3431 * sem_util.adb: Minor reformatting.
3432
34332011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3434
3435 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
3436 library-level finalizers.
3437 (Gen_Finalize_Library_C): Update the import string for library-level
3438 finalizers.
3439 (Gen_Finalize_Library_Defs_C): Update the definition name of a
3440 library-level finalizer.
3441 * exp_ch7.adb: Remove with and use clauses for Stringt.
3442 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
3443 Spec_Decl. Add local variable Body_Id. The names of library-level
3444 finalizers are now manually fully qualified and are no longer external.
3445 A single name is now capable of servicing .NET, JVM and non-VM targets.
3446 Pragma Export is no longer required to provide visibility for the name.
3447 (Create_Finalizer_String): Removed.
3448 (New_Finalizer_Name): New routine which mimics New_..._Name.
3449
01f0729a
AC
34502011-08-04 Eric Botcazou <ebotcazou@adacore.com>
3451
3452 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
3453 elaboration counter to Standard_Short_Integer.
3454 * sem_util.adb (Build_Elaboration_Entity): Likewise.
3455 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
3456 (Gen_Elab_Externals_C): Likewise.
3457
34582011-08-04 Ed Falis <falis@adacore.com>
3459
3460 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
3461 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
3462 system-vxworks-mips.ads, system-vxworks-x86.ads
3463 (Always_Compatible_Rep): set to False for all VxWorks targets.
3464
2c1b72d7
AC
34652011-08-04 Robert Dewar <dewar@adacore.com>
3466
3467 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
3468 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
3469 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
3470 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
3471 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
3472 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
3473 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
3474 Minor reformatting and code reorganization.
3475
34762011-08-04 Emmanuel Briot <briot@adacore.com>
3477
3478 * projects.texi: Added doc for aggregate projects.
3479
824e9320
AC
34802011-08-04 Emmanuel Briot <briot@adacore.com>
3481
3482 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
3483 Add support for overriding the Project_Path in aggregate projects.
3484
34852011-08-04 Robert Dewar <dewar@adacore.com>
3486
3487 * a-cofove.ads: Minor reformatting.
3488
34892011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3490
3491 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
3492 on the generated code.
3493 (Build_Finalize_Statements): Update the comment on the generated code.
3494 (Build_Initialize_Statements): Update the comment on the generated code.
3495 (Build_Object_Declarations): Add local variable Result. The object
3496 declarations are now built in sequence.
3497 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
3498 RE_Unit_Table.
3499
35002011-08-04 Robert Dewar <dewar@adacore.com>
3501
3502 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
3503
35042011-08-04 Eric Botcazou <ebotcazou@adacore.com>
3505
3506 * einfo.ads (Elaboration_Entity): Document new definition and use.
3507 (Elaboration_Entity_Required): Adjust to above change.
3508 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
3509 * exp_ch12.adb: And with and use for Snames.
3510 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
3511 * exp_util.adb (Set_Elaboration_Flag): Likewise.
3512 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
3513 <Check_Unit_Name>: Deal with N_Expanded_Name.
3514 <Attribute_Elaborated>: Extend to all unit names.
3515 * sem_elab.adb: And with and use for Uintp.
3516 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
3517 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
3518 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
3519 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
3520 from Gen_Adainit_Ada.
3521 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
3522 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
3523 case, do not call System.Standard_Library.Adafinal; instead call
3524 finalize_library if needed.
3525 (Gen_Adafinal_C): Likewise.
3526 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
3527 non-main program case.
3528 (Gen_Adainit_C): Generate a couple of external declarations here.
3529 In the main program case, set SSL.Finalize_Library_Objects.
3530 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
3531 (Gen_Elab_Calls_C): Likewise.
3532 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
3533 (Gen_Finalize_Library_C): Likewise. Generate a full function.
3534 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
3535 objects here.
3536 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
3537 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
3538 Gen_Adafinal_Ada.
3539 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
3540 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
2c7f9cc0 3541 of external declarations. Call Gen_Finalize_Library_C.
824e9320 3542
316d9d4f
EB
35432011-08-04 Emmanuel Briot <briot@adacore.com>
3544
3545 * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains,
3546 Compute_Compilation_Phases): new subprogram.
3547 (Builder_Data, Builder_Project_Tree_Data): new subprogram and type
3548 The number of mains as well as the various compilation phases that
3549 need to be run are now project tree specific, since various
3550 aggregated trees might have different requirements. In particular,
3551 they do not all require bind or link phases.
3552
9434c32e
EB
35532011-08-04 Emmanuel Briot <briot@adacore.com>
3554
3555 * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb
3556 (Project_Tree_Appdata): New type.
3557 It is now possible to associate application-specific data to a project
3558 tree. In particular, this is used in the gprbuild builder to avoid a
3559 number of global tables and htables, especially now that there can be
3560 several project trees loaded at once because of aggregate projects.
3561 (Debug_Name): new procedure.
3562 * projects.texi: Clarify syntax of "**" for Source_Dirs
3563
41ba34db
EB
35642011-08-03 Emmanuel Briot <briot@adacore.com>
3565
3566 * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts
3567 the "roots" for a main.
3568 (Fill_From_Project): add support for aggregate projects. Main units
3569 in aggregated projects are now automatically added in the list of
3570 files to build (although this fails later on in gprbuild, because
3571 these files are not using the root proejct tree, so this needs
3572 further cleanup)
3573 * gcc-interface/Make-lang.in: Update dependencies.
3574
fccd42a9
AC
35752011-08-03 Yannick Moy <moy@adacore.com>
3576
3577 * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean
3578 conditional expression in ALFA.
3579 * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean
3580 expressions as not in ALFA.
3581
35822011-08-03 Robert Dewar <dewar@adacore.com>
3583
3584 * a-cofove.adb: Minor reformatting.
3585
35862011-08-03 Emmanuel Briot <briot@adacore.com>
3587
3588 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads
3589 (Insert_Project_Sources, Insert_withed_Sources_For): moved from the
3590 gprbuild sources.
3591 These packages are more logically placed in the Queue package, since
3592 they manipulate the queue. It is also likely that they can be adapted
3593 for gnatmake, thus sharing more code.
3594 (Finish_Program, Fail_Program): moved from the gprbuild sources, so
3595 that we could move the above.
3596
35972011-08-03 Emmanuel Briot <briot@adacore.com>
3598
3599 * errutil.adb (Finalize): clean up the list of error messages on exit.
3600 Calling this subprogram multiple times will no longer show duplicate
3601 error messages on stderr.
3602
36032011-08-03 Emmanuel Briot <briot@adacore.com>
3604
3605 * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter
3606 Getopt_Switches when we have already define a command line
3607 configuration.
3608
5e8c8e44
YM
36092011-08-03 Yannick Moy <moy@adacore.com>
3610
3611 * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not
3612 in ALFA. Instead, they are considered as assertions to prove.
3613 * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such
3614 nodes as not in ALFA. Instead, include conditional expressions in ALFA
3615 if they have no ELSE part, or if they occur in pre- and postconditions,
3616 where the Condition cannot have side-effects in ALFA
3617 (Analyze_Membership_Op): do not mark such nodes as not in ALFA
3618 (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA.
3619 Instead, include type conversion between scalar types in ALFA.
3620 * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA
3621 if-and-only-if its type is in ALFA.
3622
5ffe0bab
AC
36232011-08-03 Thomas Quinot <quinot@adacore.com>
3624
3625 * scos.adb, get_scos.adb, put_scos.adb
3626 New code letter for decisions: G (entry guard)
3627 * par_sco.adb
3628 (Traverse_Subprogram_Body): Rename to...
3629 (Traverse_Subprogram_Or_Task_Body): New subrpogram.
3630 (Traverse_Protected_Body): New subprogram
3631 (Traverse_Declarations_Or_Statements): Add traversal of task bodies,
3632 protected bodies and entry bodies.
3633
36342011-08-03 Yannick Moy <moy@adacore.com>
3635
3636 * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure
3637 entities with get/set subprograms, which is set on procedure entities
3638 generated by the compiler for a postcondition.
3639 * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures
3640 * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the
3641 entity for a declaration
3642 (Get_Unique_Entity_For_Decl): new function returning an entity which
3643 represents a declaration, so that matching spec and body have the same
3644 entity.
3645
36462011-08-03 Robert Dewar <dewar@adacore.com>
3647
3648 * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads,
3649 a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting
3650
36512011-08-03 Yannick Moy <moy@adacore.com>
3652
3653 * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram
3654 library-level because retriction No_Implicit_Dynamic_Code in the
3655 front-end prevents its definition as a local subprogram
3656 (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File,
3657 for reuse in other contexts
3658 (Traverse_Declarations_Or_Statements,
3659 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
3660 Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these
3661 procedures take a callback parameter to be called on all declarations
3662 * lib-xref.ads
3663 (Traverse_All_Compilation_Units): new generic function to traverse a
3664 compilation unit and call a callback parameter on all declarations
3665
f9ad6b62
AC
36662011-08-03 Javier Miranda <miranda@adacore.com>
3667
3668 * sem_prag.adb (Process_Interface_Name): Allow duplicated export names
3669 in Java since they are always enclosed in a namespace that
3670 differentiates them, and overloaded entities are supported by the VM.
3671
36722011-08-03 Ed Schonberg <schonberg@adacore.com>
3673
3674 * checks.adb (Determine_Range): If a computed bound of an operation is
3675 outside the range of the base type of the expression, and overflow
3676 checks are enabled, the result is unknown and cannot be used for any
3677 subsequent constant folding.
3678 * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are
3679 unknown, so is the result of the comparison.
3680
36812011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3682
3683 * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal
3684 From_Abort. When finalization was triggered by an abort, propagate
3685 Standard'Abort_Signal rather than Program_Error.
3686 * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal
3687 From_Abort.
3688 * a-except.adb (Raise_From_Controlled_Operation): Add new formal
3689 From_Abort. When finalization was triggered by an abort, propagate
3690 Standard'Abort_Signal rather than Program_Error.
3691 * a-except.ads:(Raise_From_Controlled_Operation): Add new formal
3692 From_Abort.
3693 * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable
3694 Abort_Id. Update the calls to Build_Object_Declarations and
3695 Build_Raise_Statement to include Abort_Id.
3696 (Build_Adjust_Statements): New local variable Abort_Id. Update the
3697 calls to Build_Object_Declarations and Build_Raise_Statement to include
3698 Abort_Id.
3699 (Build_Finalize_Statements): New local variable Abort_Id. Update the
3700 calls to Build_Object_Declarations and Build_Raise_Statement to include
3701 Abort_Id.
3702 (Build_Components): Create an entity for Abort_Id when exceptions are
3703 allowed on the target.
3704 (Build_Finalizer): New local variable Abort_Id.
3705 (Build_Initialize_Statements): New local variable Abort_Id. Update the
3706 calls to Build_Object_Declarations and Build_Raise_Statement to include
3707 Abort_Id.
3708 (Build_Object_Declarations): Add new formal Abort_Id. Create the
3709 declaration of flag Abort_Id to preserve the original abort status
3710 before finalization code is executed.
3711 (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to
3712 runtime routine Raise_From_Controlled_Operation.
3713 (Create_Finalizer): Update the call to Build_Raise_Statement to include
3714 Abort_Id. Update the call to Build_Object_Declarations to include
3715 Abort_Id. Update the layout of the finalizer body.
3716 (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort.
3717 (Process_Transient_Objects): New local variable Abort_Id. Remove the
3718 clunky code to create all flags and objects related to
3719 exception propagation and replace it with a call to
3720 Build_Object_Declarations. Update the call to Build_Raise_Statement to
3721 include Abort_Id.
3722 * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec.
3723 Add new formal Abort_Id and associated comment on its use.
3724 (Build_Raise_Statement): Add new formal Abort_Id and associated comment
3725 on its use.
3726 * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id.
3727 Remove the clunky code to create all flags and objects related to
3728 exception propagation and replace it with a call to
3729 Build_Object_Declarations. Update the call to Build_Raise_Statement.
3730
37312011-08-03 Eric Botcazou <ebotcazou@adacore.com>
3732
3733 * s-tassta.adb: Fix minor typos.
3734
37352011-08-03 Robert Dewar <dewar@adacore.com>
3736
3737 * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb,
3738 lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting.
3739
1cdfa9be
AC
37402011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3741
3742 * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion
3743 to packages. This ensures that the finalizer body will not end up
3744 inside the freeze node.
3745 (Process_Declarations): Add code to detect whether a freeze node has a
3746 nested finalization collection.
3747
37482011-08-03 Pascal Obry <obry@adacore.com>
3749
3750 * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005.
3751 (Current_Session): Return a not null access to Session_Type.
3752 (Default_Session): Likewise.
3753
243cae0a
AC
37542011-08-03 Robert Dewar <dewar@adacore.com>
3755
3756 * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb,
3757 exp_ch3.adb, exp_ch3.ads: Minor reformatting.
3758
37592011-08-03 Pascal Obry <obry@adacore.com>
3760
3761 * g-awk.ads: Minor comment fix.
3762
37632011-08-03 Sergey Rybin <rybin@adacore.com>
3764
3765 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
3766 the tree structure related to discriminant constraints.
3767 Original_Discriminant cannot be used any more for computing the
3768 defining name for the reference to a discriminant.
3769
37702011-08-03 Ed Schonberg <schonberg@adacore.com>
3771
3772 * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the
3773 function is not visibly tagged, this is not a dispatching call and
3774 therfore is not Tag_Indeterminate, even if the function is marked as
3775 dispatching on result.
3776
f553e7bc
AC
37772011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3778
3779 * exp_ch13.adb: Add with and use clauses for Restrict and Rident.
3780 (Expand_N_Free_Statement): Add a guard to protect against run-times
3781 which do not support controlled types.
3782 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect
3783 against run-times which do not support controlled types.
3784 * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect
3785 against run-times which do not support controlled types.
3786 * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect
3787 against run-times which do not support controlled types.
3788 * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to
3789 protect against run-times which do not support controlled types.
3790
37912011-08-03 Eric Botcazou <ebotcazou@adacore.com>
3792
3793 * exp_intr.adb: Put back with and use clauses for Exp_Ch11.
3794 (Expand_Unc_Deallocation): Expand the AT_END handler at the very end.
3795
e4982b64
AC
37962011-08-03 Ed Schonberg <schonberg@adacore.com>
3797
3798 * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is
3799 modified in the source, to prevent spurious warnings when compiling
3800 with -gnatg.
3801
38022011-08-03 Thomas Quinot <quinot@adacore.com>
3803
3804 * a-except-2005.adb: Minor reformatting.
3805
38062011-08-03 Ed Schonberg <schonberg@adacore.com>
3807
3808 * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit
3809 is a renaming declaration in the private part of a package, do not emit
3810 a warning that the with_clause could be moved because the renaming may
3811 be used in the body or in a child unit.
3812
38132011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3814
3815 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
3816 Propagate the Comes_From_Source attribute from the original return
3817 object to the renaming.
3818
38192011-08-03 Jose Ruiz <ruiz@adacore.com>
3820
3821 * exp_ch7.adb (Build_Raise_Statement): Do not call
3822 Raise_From_Controlled_Operation when this routine is not present in
3823 the run-time library.
3824 (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time
3825 libraries (Ravenscar), tasks are non-terminating, and protected objects
3826 and tasks can only appear at library level, so we do not want
3827 finalization of protected objects nor tasks.
3828 * exp_intr.adb: Minor clarification in comment.
3829 bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada,
3830 Gen_Output_File_C): Remove references to finalization of library-level
3831 objects when using restricted run-time libraries.
3832
38332011-08-03 Ed Schonberg <schonberg@adacore.com>
3834
3835 * sem_ch3.adb (Build_Discriminant_Constraints): Set
3836 Original_Discriminant only if the parent type is a generic formal.
3837
deb8dacc
HK
38382011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3839
3840 * exp_ch13.adb: Add with and use clause for Targparm;
3841 (Expand_N_Free_Statement): Prevent the generation of a custom
3842 Deallocate on .NET/JVM targets since this requires pools and address
3843 arithmetic.
3844 * exp_ch4.adb (Expand_Allocator_Expression): When compiling for
3845 .NET/JVM targets, attach the newly allocated object to the access
3846 type's finalization collection. Do not generate a call to
3847 Set_Finalize_Address_Ptr on .NET/JVM because this routine does not
3848 exist in the runtime.
3849 (Expand_N_Allocator): When compiling for .NET/JVM targets, do not
3850 create a custom Allocate for object that do not require initialization.
3851 Attach a newly allocated object to the access type's finalization
3852 collection on .NET/JVM.
3853 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for
3854 assignment of controlled types on .NET/JVM. The two hidden pointers
3855 Prev and Next and stored and later restored after the assignment takes
3856 place.
3857 * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized
3858 kludge for .NET/JVM to recognize a particular piece of code coming from
3859 Heap_Management and change the call to Finalize into Deep_Finalize.
3860 * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of
3861 finalization collections on .NET/JVM only for types derived from
3862 Controlled. Separate the association of storage pools with a collection
3863 and only allow it on non-.NET/JVM targets.
3864 (Make_Attach_Call): New routine.
3865 (Make_Detach_Call): New routine.
3866 (Process_Object_Declarations): Suppress the generation of
3867 build-in-place return object clean up code on .NET/JVM since it uses
3868 pools.
3869 * exp_ch7.ads (Make_Attach_Call): New routine.
3870 (Make_Detach_Call): New routine.
3871 * exp_intr.adb Add with and use clause for Targparm.
3872 (Expand_Unc_Deallocation): Detach a controlled object from a collection
3873 on .NET/JVM targets.
3874 * rtsfind.ads: Add entries RE_Attach, RE_Detach and
3875 RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table.
3876 * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special
3877 names used in finalization.
3878
38792011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3880
3881 * a-fihema.adb: Add with and use clauses for System.Soft_Links.
3882 (Attach, Detach): Lock the current task when chaining an object onto a
3883 collection.
3884
df3e68b1
HK
38852011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3886
3887 * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation):
3888 Rewritten to create the message strings when the exception is not
3889 raised by an abort during finalization.
3890 * a-except.ads, a-except-2005.ads: Add pragma Export for procedure
3891 Raise_From_Controlled_Operation and update its associated comment.
3892 * a-fihema.ads, a-fihema.adb: New GNAT unit.
3893 Ada.Finalization.Heap_Management provides key functionality
3894 associated with controlled objects on the heap, their creation,
3895 finalization and reclamation. Type Finalization_Collection is
3896 effectively a wrapper which sits ontop of a storage pool and performs
3897 all necessary bookkeeping for all the objects it contains. Each
3898 access-to-controlled or access-to-class-wide type receives a collection
3899 as part of its expansion. The compiler generates buffer code and
3900 invokes Allocate / Deallocate to create and destroy allocated
3901 controlled objects.
3902 * a-finali.adb ("="): Removed.
3903 * a-finali.ads ("="): Removed. Controlled types no longer carry hidden
3904 fields Prev and Next.
3905 * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer.
3906 A library unit with at least one controlled object on the library level
3907 has a special finalizer which is invoked by the binder. To signal this,
3908 ali files carry field PF.
3909 * ali.ads: New field in type Unit_Record called Has_Finalizer. Add
3910 associated comment on field usage.
3911 * a-tags.adb (Get_RC_Offset): Removed.
3912 (Needs_Finalization): New routine.
3913 * a-tags.ads: Update the structure of the GNAT dispatch tables.
3914 Dispatch tables now carry field Needs_Finalization which provides
3915 runtime indication whether a type is controlled or has controlled
3916 components or both. Remove field RC_Offset.
3917 (Get_RC_Offset): Removed along with its associated pragma Export.
3918 Since tagged types with controlled components no longer carry hidden
3919 field _controller, the special mechanism to retrieve its location is no
3920 longer needed.
3921 (Needs_Finalization): New routine.
3922 * atree.ads, atree.adb (Elist24): New routine.
3923 (Set_Elist24): New routine.
3924 * atree.h: Add a define clause for Elist24.
3925 * bindgen.adb New library-level variable Lib_Final_Built.
3926 (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the
3927 presence of a VM target, the routine generates calls to the proper
3928 library finalization routine.
3929 (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM
3930 targets. Set the correct library finalization routine depending on
3931 whether the library has controlled objects or this is a VM compilation.
3932 (Gen_Finalize_Library_Ada): New routine. This procedure generates calls
3933 to library-level finalizers of compiled units in reverse order of
3934 elaboration. It also produces exception management code and reraises a
3935 potential exception after all units have been finalized.
3936 (Gen_Finalize_Library_C): New routine. This procedure generates calls to
3937 library-level finalizers of compiled units in reverse order of
3938 elaboration.
3939 (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the
3940 definitions of all library-level finalizers available to the compilation
3941 (Gen_Main_Ada): Directly call Adafinal which now contails all target
3942 dependent code.
3943 (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call
3944 System.Standard_Library.Adafinal directly. If the library needs
3945 finalization actions, create the sequence of finalization calls.
3946 (Gen_Output_File_Ada): Alphabetize local variables and constants.
3947 Generate a with clause for System.Soft_Links when compiling for a VM.
3948 Remove the code which imports System.Standard_Library.Adafinal as
3949 Do_Finalize. Generate the library finalization routine.
3950 (Gen_Output_File_C): Add new local constant Needs_Library_Finalization.
3951 If the library needs finalization actions, create all the definitions
3952 of library- level finalizers.
3953 (Has_Finalizer): New routine. Determines whether at least one compiled
3954 unit has a library-level finalizer.
3955 Add type Qualification_Mode.
3956 (Set_Unit_Name): Add a formal which controls the replacement of a dot.
3957 * einfo.adb: New usage of field 15 as Return_Flag.
3958 Remove Finalization_Chain_Entity from the usages of field 19.
3959 Remove Associated_Final_Chain from the usages of field 23.
3960 New usage of field 23 as Associated_Collection.
3961 New usage of field 24 as Finalizer.
3962 New usage of flag 252 as Is_Processed_Transient.
3963 (Associated_Final_Chain): Removed.
3964 (Associated_Collection): New routine.
3965 (Finalization_Chain_Entity): Removed.
3966 (Finalizer): New routine.
3967 (Is_Finalizer): New routine.
3968 (Is_Processed_Transient): New routine.
3969 (Return_Flag): New routine.
3970 (Set_Associated_Final_Chain): Removed.
3971 (Set_Associated_Collection): New routine.
3972 (Set_Finalization_Chain_Entity): Removed.
3973 (Set_Finalizer): New routine.
3974 (Set_Is_Processed_Transient): New routine.
3975 (Set_Return_Flag): New routine.
3976 (Write_Entity_Flags): Include Is_Processed_Transient to the list of
3977 displayed flags.
3978 (Write_Field8_Name): Alphabetize the output.
3979 (Write_Field11_Name): Alphabetize the output.
3980 (Write_Field12_Name): Alphabetize the output.
3981 (Write_Field13_Name): Alphabetize the output.
3982 (Write_Field14_Name): Alphabetize the output.
3983 (Write_Field15_Name): Alphabetize the output.
3984 (Write_Field16_Name): Alphabetize the output.
3985 (Write_Field17_Name): Alphabetize the output.
3986 (Write_Field18_Name): Alphabetize the output.
3987 (Write_Field19_Name): Alphabetize the output. Remove the output of
3988 Finalization_Chain_Entity.
3989 (Write_Field20_Name): Alphabetize the output.
3990 (Write_Field21_Name): Alphabetize the output.
3991 (Write_Field22_Name): Alphabetize the output.
3992 (Write_Field23_Name): Alphabetize the output. Remove the output of
3993 Associated_Final_Chain. Add output for Associated_Collection.
3994 (Write_Field24_Name): Alphabetize the output.
3995 (Write_Field25_Name): Add output for Finalizer.
3996 (Write_Field26_Name): Alphabetize the output.
3997 (Write_Field27_Name): Alphabetize the output.
3998 (Write_Field28_Name): Alphabetize the output.
3999 * einfo.ads: Add new field description for Associated_Collection and
4000 its uses in nodes.
4001 Remove Associated_Final_Chain and its uses in nodes.
4002 Remove Finalization_Chain_Entity and its uses in nodes.
4003 Add new field description for Finalizer and its uses in nodes.
4004 Add new synthesized attribute Is_Finalizer.
4005 Add new flag description for Is_Processed_Transient and its uses in
4006 nodes.
4007 Add new field description for Return_Flag and its uses in nodes.
4008 (Associated_Final_Chain): Removed along with its pragma Inline.
4009 (Associated_Collection): New routine and pragma Inline.
4010 (Finalization_Chain_Entity): Removed along with its pragma Inline.
4011 (Finalizer): New routine and pragma Inline.
4012 (Is_Finalizer): New routine and pragma Inline.
4013 (Is_Processed_Transient): New routine and pragma Inline.
4014 (Return_Flag): New routine and pragma Inline.
4015 (Set_Associated_Final_Chain): Removed along with its pragma Inline.
4016 (Set_Associated_Collection): New routine and pragma Inline.
4017 (Set_Finalization_Chain_Entity): Removed along with its pragma Inline.
4018 (Set_Finalizer): New routine and pragma Inline.
4019 (Set_Is_Processed_Transient): New routine and pragma Inline.
4020 (Set_Return_Flag): New routine and pragma Inline.
4021 * exp_aggr.adb: Alphabetize subprograms.
4022 (Build_Array_Aggr_Code): Remove formal Flist and its associated comment.
4023 (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their
4024 associated comments. Remove local variables External_Final_List and
4025 Attach.
4026 Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to
4027 Ancestor. Remove the retrieval of finalization lists. Update the call to
4028 Make_Adjust_Call.
4029 (Convert_Aggr_In_Allocator): Remove the retrieval of finalization
4030 lists. Update the call to Late_Expansion.
4031 (Convert_Aggr_In_Assignment): Update the call to Late_Expansion.
4032 (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion.
4033 (Gen_Assign): Remove the retrieval of the finalization list used to
4034 build the assignment. Update the calls to Make_Init_Call and
4035 Make_Adjust_Call.
4036 (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions.
4037 Remove the mechanism to determine attachment levels and finalization
4038 list retrieval. Remove the processing for coextensions.
4039 (Init_Controller): Removed. Controllers no longer exist.
4040 (Late_Expansion): Remove formals Flist and Obj along with their
4041 associated comments. Update the calls to Build_Record_Aggr_Code and
4042 Build_Array_Aggr_Code.
4043 * exp_ch13.adb (Expand_N_Free_Statement): New routine.
4044 (Expand_N_Freeze_Entity): Add special processing for finalizers which
4045 appear in entry bodies, protected subprograms and task bodies.
4046 * exp_ch13.ads (Expand_N_Free_Statement): New routine.
4047 * exp_ch3.adb (Add_Final_Chain): Removed.
4048 (Build_Array_Init_Proc): Alphabetize local variables.
4049 (Build_Assignment): Alphabetize local variables. Update the call to
4050 Maked_Adjust_Call.
4051 (Build_Class_Wide_Master): Rename local variables to better reflect
4052 their role.
4053 (Build_Discriminant_Assignments): Code reformatting.
4054 (Build_Init_Call_Thru): Code reformatting.
4055 (Build_Init_Procedure): Code reformatting. Generate a special version
4056 of Deep_Finalize which is capable of finalizing all initialized
4057 components and ignore the rest.
4058 (Build_Init_Statements): Rename local variables to better reflect their
4059 role.
4060 Reimplement the mechanism to include the creation and update of an index
4061 variable called a "counter". It is used as a bookmark for tracing
4062 initialized and non-initialized components.
4063 (Build_Initialization_Call): Remove local variable Controller_Typ.
4064 Alphabetize all local variables. Remove the initialization of the
4065 record controller and update the call to Make_Init_Call.
4066 (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent.
4067 New local variable Counter.
4068 (Constrain_Array): Alphabetize.
4069 (Expand_Freeze_Array_Type): Create a collection instead of a
4070 finalization list.
4071 (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive
4072 Finalize_Address which is used in conjunction with allocated controlled
4073 objects.
4074 (Expand_N_Object_Declaration): Remove the creation of a finalization
4075 list for anonymous access types. Update the calls to Make_Init_Call and
4076 Make_Adjust_Call.
4077 (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the
4078 retrieval of finalization lists. Remove the expansion of the record
4079 controller. Create TSS primitive Finalize_Address used in conjunction
4080 with controlled objects on the heap. Create finalization collections
4081 for access-to-controlled record components.
4082 (Expand_Record_Controller): Removed.
4083 (Freeze_Type): Remove the freezing of record controllers. Freezing of
4084 class-wide types now requires additional processing. Create
4085 finalization collections for access-to-controlled types.
4086 (Increment_Counter): New routine.
4087 (Make_Counter): New routine.
4088 (Make_Eq_If): Remove the mention of Name_uController.
4089 (Make_Predefined_Primitive_Specs): There is no longer need to skip
4090 types coming from System.Finalization_Root.
4091 (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles.
4092 (Predefined_Primitive_Bodies): There is no longer need to skip types
4093 coming from System.Finalization_Root.
4094 (Stream_Operation_OK): Do not generate stream routines for
4095 type Ada.Finalization.Heap_Management.Finalization_Collection.
4096 * exp_ch3.ads: Alphabetize subprograms.
4097 * exp_ch4.adb: Remove with and use clause for Sem_Ch8.
4098 Add with and use clause for Lib.
4099 (Complete_Coextension_Finalization): Removed.
4100 (Complete_Controlled_Allocation): New routine. Create a finalization
4101 collection for anonymous access-to-controlled types. Create a custom
4102 Allocate which interfaces with the back end and the machinery in
4103 Heap_Management.
4104 (Expand_Allocator_Expression): Add necessary calls to
4105 Complete_Controlled_Allocation. Remove the retrieval of finalization
4106 lists. Update the calls to Make_Adjust_Call. Generate a call to
4107 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
4108 the associated collection.
4109 (Expand_N_Allocator): Remove the processing for dynamic coextensions.
4110 Code clean up. Remove the retrieval of finalization lists and
4111 attachment levels.
4112 Update the call to Make_Init_Call. Generate a call to
4113 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
4114 the associated collection.
4115 (Get_Allocator_Final_List): Removed. Finalization lists are not
4116 available.
4117 (Suitable_Element): Remove the mention of Name_uController.
4118 * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp.
4119 (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of
4120 the left hand side, carry out the assignment and adjust the left hand
4121 side.
4122 * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed.
4123 (Add_Collection_Actual_To_Build_In_Place_Call): New routine.
4124 (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to
4125 BIP_Collection and BIPcollection.
4126 (Build_Heap_Allocator): New routine used to allocate the return object
4127 of a build-in-place function onto a collection.
4128 (Expand_Ctrl_Function_Call): Moved from Exp_Ch7.
4129 (Expand_Call): Do not replace direct calls to Deep routines with their
4130 aliases.
4131 (Expand_N_Extended_Return_Statement): Give all variables shorter names
4132 and update their occurrences. Add a special return flag to monitor the
4133 [ab]normal execution of the function. The flag is set right before the
4134 return statement.
4135 Rewrite the mechanism used to allocate a build-in-place return object
4136 on the heap or on a storage pool.
4137 (Is_Direct_Deep_Call): New routine.
4138 (Make_Build_In_Place_Call_In_Allocator): Add a collection to a
4139 build-in-place function call instead of a final list. Build a call to
4140 Set_Finalize_Address_Ptr to decorate the associated collection.
4141 (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in
4142 order to name the build-in-place function call's result for later
4143 finalization. Add a collection to a build-in-place function call
4144 instead of a final list.
4145 (Make_Build_In_Place_Call_In_Assignment): Add a collection to a
4146 build-in-place function call instead of a final list. Remove the code
4147 which moves one final list and transforms it into the actual in a
4148 nested build-in-place call.
4149 (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a
4150 build-in-place function call instead of a final list.
4151 (Move_Final_List): Removed.
4152 (Needs_BIP_Collection): New routine.
4153 (Needs_BIP_Final_List): Removed.
4154 * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in
4155 enumeration type BIP_Formal_Kind.
4156 Update the related comment.
4157 (Needs_BIP_Collection): New routine.
4158 (Needs_BIP_Final_List): Removed.
4159 * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt
4160 and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the
4161 majority of subprograms in this unit. Add Name_Finalize_Address to
4162 array Name_Of and TSS_Finalize_Address to array Deep_Name_Of.
4163 (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization
4164 statements for an array type.
4165 (Build_Adjust_Statements): Create the adjust statements for a record
4166 type.
4167 (Build_Cleanup_Statements): New routine. A procedure which given any
4168 construct containing asynchronous calls, references to _master, or is a
4169 task body, a task allocation or a protected body produces the necessary
4170 runtime calls to clean up these constructs.
4171 (Build_Exception_Handler): New routine.
4172 (Build_Final_List): Removed.
4173 (Build_Finalization_Collection): New routine. A core procedure which
4174 creates a collection to service heap allocated controlled objects
4175 associated with an access-to-controlled type.
4176 (Build_Finalize_Statements): Create the finalization statements for a
4177 record types.
4178 (Build_Finalizer): New routine. A core procedure which given any
4179 construct with declarations and/or statements detects all objects which
4180 need any type of clean up (controlled objects, protected objects) and
4181 generates all necessary code to clean up the said objects in the proper
4182 order.
4183 (Build_Finalizer_Call): New routine.
4184 (Build_Initialize_Statements): Create the initialization statements for
4185 an array type. The generated routine contains code to finalize partially
4186 initialized arrays.
4187 (Build_Object_Declarations): New routine.
4188 (Build_Raise_Statement): New routine.
4189 (Clean_Simple_Protected_Objects): Removed.
4190 (Controller_Component): Removed.
4191 (Enclosing_Function): New routine.
4192 (Expand_Cleanup_Actions): Create a finalizer for a construct which has
4193 either declarations or statements or both.
4194 (Expand_N_Package_Body): Create a finalizer for a non-generic package.
4195 (Expand_N_Package_Declaration): Create a finalizer for a non-generic
4196 package.
4197 (Find_Final_List): Removed.
4198 (Global_Flist_Ref): Removed.
4199 (In_Finalization_Root): Removed.
4200 (Insert_Actions_In_Scope_Around): Determine the range of the transient
4201 scope in terms of tree nodes. Process all transient variables within
4202 that range.
4203 (Make_Adjust_Call): Rewritten. There is no longer an attach call
4204 generated after the adjust.
4205 (Make_Attach_Call): Removed.
4206 (Make_Call): New routine.
4207 (Make_Clean): Removed.
4208 (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate
4209 build routines.
4210 (Make_Deep_Proc): Rewritten to generate the new profile signature used
4211 in Deep routines.
4212 (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate
4213 build routines.
4214 (Make_Final_Call): Modified to simply create a call to either
4215 Deep_Finalize or Finalize.
4216 (Make_Finalize_Address_Body): New routine.
4217 (Make_Finalize_Address_Stmts): New routine. A function which produces
4218 TSS primitive Finalize_Address used in conjunction with heap allocated
4219 controlled objects.
4220 (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM.
4221 (Make_Init_Call): Rewritten. There is no longer an attach call
4222 generated after initialization.
4223 (Make_Local_Deep_Finalize): New routine.
4224 (Make_Set_Finalize_Address_Ptr_Call): New routine.
4225 (Make_Transient_Block): Remove the finalization list retrieval and
4226 manipulation.
4227 (Needs_Finalization): Moved to Exp_Util.
4228 (Parent_Field_Type): New routine.
4229 (Preprocess_Components): New routine.
4230 (Process_Transient_Objects): New routine.
4231 (Wrap_HSS_In_Block): New routine.
4232 (Wrap_Transient_Declaration): Remove finalization list management and
4233 controller insertion.
4234 (Wrap_Transient_Expression): Code reformatting.
4235 (Wrap_Transient_Statement): Code reformatting.
4236 * exp_ch7.ads (Build_Final_List): Removed.
4237 (Build_Finalization_Collection): New routine.
4238 (Build_Raise_Statement): New routine.
4239 (Controller_Component): Removed.
4240 (Expand_Ctrl_Function_Call): Moved to Exp_Ch6.
4241 (Find_Final_List): Removed.
4242 (In_Finalization_Root): Removed.
4243 (Is_Simple_Protected_Type): Update related comment.
4244 (Make_Adjust_Call): New parameter profile and associated comments.
4245 (Make_Attach_Call): Removed.
4246 (Make_Final_Call): New parameter profile and associated comments.
4247 (Make_Finalize_Address_Body): New routine.
4248 (Make_Init_Call): New parameter profile and associated comments.
4249 (Make_Local_Deep_Finalize): New routine.
4250 (Make_Set_Finalize_Address_Ptr_Call): New routine.
4251 (Needs_Finalization): Moved to Exp_Util.
4252 * exp_ch9.adb (Add_Object_Pointer): Code reformatting.
4253 (Expand_N_Protected_Body): Remove the handling of finalization lists.
4254 (Find_Protection_Type): Moved to Exp_Util.
4255 * exp_disp.adb: Remove with and use clauses for Exp_Ch7.
4256 (Make_DT): Update sequence of dispatch table initialization. Remove the
4257 initialization of field RC_Offset. Add initialization of field Needs_
4258 Finalization.
4259 * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting.
4260 Reimplement how an object is first finalized, then deallocated.
4261 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
4262 Code reformatting.
4263 * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address.
4264 Register TSS_Finalize_Address with type TSS_Names.
4265 * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core
4266 procedure provides the interface between an allocation / deallocation
4267 and the support machinery in Ada.Finalization.Heap_Management.
4268 (Find_Init_Call): Code reformatting.
4269 (Find_Init_Call_In_List): Code reformatting.
4270 (Find_Protection_Type): Moved from Exp_Ch9.
4271 (Find_Prim_Op): Reimplement to add preference of recovered primitive.
4272 (Has_Controlled_Coextensions): Removed.
4273 (Has_Controlled_Objects): New routine.
4274 (In_Library_Level_Package_Body): New routine.
4275 (Insert_Action_After): New routine.
4276 (Is_Finalizable_Transient): New routine. This predicate determines
4277 whether an object declaration is one of the many variants of controlled
4278 transients.
4279 (Is_Null_Access_BIP_Func_Call): New routine.
4280 (Is_Non_BIP_Func_Call): New routine.
4281 (Is_Related_To_Func_Return): New routine.
4282 (Needs_Finalization): Moved from Exp_Ch7.
4283 * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine.
4284 (Find_Protection_Type): Moved from Exp_Ch9.
4285 (Has_Controlled_Coextensions): Removed.
4286 (Has_Controlled_Objects): New routine.
4287 (In_Library_Level_Package_Body): New routine.
4288 (Insert_Action_After): New routine.
4289 (Is_Finalizable_Transient): New routine.
4290 (Is_Null_Access_BIP_Func_Call): New routine.
4291 (Is_Non_BIP_Func_Call): New routine.
4292 (Is_Related_To_Func_Return): New routine.
4293 (Needs_Finalization): Moved from Exp_ch7.
4294 * expander.adb (Expand): Add a case for N_Free_Statement.
4295 * freeze.adb (Freeze_All): Replace the generation of a finalization
4296 list with a collection for access-to-controlled types.
4297 (Freeze_Entity): Code reformatting.
4298 (Freeze_Record_Type): Remove the freezing of a record controller
4299 component.
4300 (Freeze_Subprogram): Code reformatting.
4301 * inline.adb (Cleanup_Scopes): Remove the reset of the scope
4302 finalization list.
4303 * lib-writ.adb (Write_Unit_Information): Output "PF" when a package
4304 has a library-level finalizer.
4305 * lib-writ.ads: Add "PF" to the sequence of unit attributes.
4306 * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed.
4307 * Makefile.rtl: Remove a-filico and s-finimp from the list of object
4308 files. Add a-fihema to the list of object files.
4309 * par-ch4.adb:
4310 Alphabetize the associations in type Is_Parameterless_Attribute.
4311 * rtsfind.ads: Ada.Finalization_List.Controller and
4312 System.Finalization_Implementation are no longer a GNAT unit.
4313 Update the range of type Ada_Finalization_Child. Remove the following
4314 recoverable entities:
2c7f9cc0 4315
df3e68b1
HK
4316 RE_Attach_To_Final_List
4317 RE_Deep_Tag_Attach
4318 RE_Finalize_List
4319 RE_Finalize_One
4320 RE_Finalizable_Ptr_Ptr
4321 RE_Global_Final_List
4322 RE_Limited_Record_Controller
4323 RE_List_Controller
4324 RE_Move_Final_List
4325 RE_Record_Controller
4326 RE_Simple_List_Controller
2c7f9cc0 4327
df3e68b1 4328 Add the following recoverable entities:
2c7f9cc0 4329
df3e68b1
HK
4330 RE_Add_Offset_To_Address
4331 RE_Allocate
4332 RE_Base_Pool
4333 RE_Deallocate
4334 RE_Exception_Identity
4335 RE_Finalization_Collection
4336 RE_Finalization_Collection_Ptr
4337 RE_Needs_Finalization
4338 RE_Save_Library_Occurrence
4339 RE_Set_Finalize_Address_Ptr
4340 RE_Set_Storage_Pool_Ptr
4341 RE_Storage_Count
4342 * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of
4343 Name_uController.
4344 * sem_aux.adb (First_Discriminant): Remove mention of Name_uController.
4345 (First_Stored_Discriminant): Remove the mention of Name_uController.
4346 * sem_aux.ads: Comment reformatting.
4347 * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery
4348 to redecorate an already existing class-wide type.
4349 (Decorate_Tagged_Type): New parameter profile and associated comment.
4350 Create a "shadow class-wide type" for a shadow entity.
4351 * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting
4352 of the final chain along with the associated comment.
4353 * sem_ch3.adb (Access_Type_Declaration): Add new local variable
4354 Full_Desig and set it to the full view of the designated type.
4355 Initialize the finalization collection to empty.
4356 (Build_Derived_Record_Type): Alphabetize local variables. Code
4357 reformatting.
4358 (Collect_Fixed_Components): Remove the mention of Name_uController.
4359 (Create_Constrained_Components): Remove the mention of Name_uController.
4360 (Make_Class_Wide_Type): Add specialized code to redecorate an existing
4361 class-wide type of a shadow entity.
4362 (Process_Full_View): Update the machinery which marks type
4363 Limited_Controlled's entity as limited.
4364 * sem_ch4.adb (Analyze_One_Call): Code reformatting.
4365 * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization
4366 list, instead make a collection build-in-place formal.
4367 * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of
4368 a designated type in order to establish a match between the renaming
4369 and the renamed entity.
4370 (Find_Selected_Component): Add guard to prevent spurious exceptions
4371 from being raised on .NET/JVM.
4372 * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address
4373 to the list of primitive that need special processing. Update arrays
4374 C_Names and D_Names.
4375 (Replace_Types): Handle class-wide types.
4376 * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a
4377 different parameter profile, look at the first formal.
4378 * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and
4379 use clauses for Exp_Util.
4380 * sem_res.adb: Remove with and use clauses for Elists.
4381 (Propagate_Coextensions): Removed.
4382 (Resolve_Allocator): Do not propagate the list of coextensions from one
4383 allocator to another.
4384 * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable
4385 Deaccessed_T to Desig_Typ.
4386 (Enter_Name): Remove the mention of Name_uController.
4387 (Gather_Components): Remove the mention of Name_uController.
4388 (Incomplete_Or_Private_View): New routine.
4389 (Is_Coextension_Root): Removed.
4390 (Is_Fully_Initialized_Type): Remove the mention of Name_uController.
4391 * sem_util.ads (Incomplete_Or_Private_View): New routine.
4392 (Is_Coextension_Root): Removed.
4393 * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion.
4394 Controlled types are now derived from a null tagged record. Remove
4395 types Finalizable_Ptr, Finalizable and Empty_Root_Controlled.
4396 * sinfo.adb (Coextensions): Removed.
4397 (Set_Coextensions): Removed.
4398 * sinfo.ads: Remove Coextensions from the explanation of node fields
4399 and its uses in nodes.
4400 Update the field usage of N_Allocator.
4401 (Coextensions): Removed along with its pragma Inline.
4402 (Set_Coextensions): Removed along with its pragma Inline.
4403 * snames.ads-tmpl: Remove names
2c7f9cc0 4404
df3e68b1
HK
4405 Name_uClean
4406 Name_uController
4407 Name_uFinal_List
4408 Name_uLocal_Final_List
4409 Name_Finalization_Root
4410 Name_Next
4411 Name_Prev
2c7f9cc0 4412
df3e68b1 4413 Add names
2c7f9cc0 4414
df3e68b1
HK
4415 Name_uFinalizer
4416 Name_Finalize_Address
4417 * s-pooglo.adb (Allocate): Add overriding indicator.
4418 (Deallocate): Add overriding indicator.
4419 (Storage_Size): Add overriding indicator.
4420 * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather
4421 than Finalize_Global_List.
4422 (Null_Finalize_Global_List): Removed.
4423 (Save_Library_Occurrence): New routine.
4424 * s-soflin.ads: Remove variable Finalize_Global_List along with its
4425 initialization. Add variable Finalize_Library_Objects along with its
4426 pragma Export. Add variables Library_Exception and
4427 Library_Exception_Set along with their pragma Export.
4428 (Null_Finalize_Global_List): Removed.
4429 (Save_Library_Occurrence): New routine.
4430 * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects
4431 rather than Finalize_Global_List.
4432 * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field
4433 of the constructed node.
4434
2ee06322
RO
44352011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4436
4437 * link.c: Include "auto-host.h" before system headers.
4438
f77b022b
VC
44392011-08-03 Vincent Celier <celier@adacore.com>
4440
4441 * make.adb (Gnatmake): Add to table Library_Projs only library projects
4442 that are not extended. Do not check if a library project that is
4443 extended should be regenerated. Do not add to table Library_Paths the
4444 libraries that are in extended projects. Link only with libraries that
4445 are in libray projects that are not extended.
4446 * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library
4447 for a library project that is extended.
4448
0187b60e
AC
44492011-08-03 Gary Dismukes <dismukes@adacore.com>
4450
4451 * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip
4452 conforming subprogram renamings that appear to be completions if they
4453 are not fully conformant.
4454 Such renamings are homographs but not completions.
4455 * sem_type.adb (Disambiguate): Handle disambiguation of overloaded
4456 names in a subprogram renaming that appears in an instance.
4457
44582011-08-03 Ed Schonberg <schonberg@adacore.com>
4459
4460 * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but
4461 not immutably limited, build actual subtype from expression to provide
4462 proper bounds to caller.
4463
44642011-08-03 Gary Dismukes <dismukes@adacore.com>
4465
4466 * sem_ch8.adb: Minor comment correction.
4467
44682011-08-03 Thomas Quinot <quinot@adacore.com>
4469
4470 * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when
4471 returning a limited array, use an extended return statement.
4472
44732011-08-03 Vincent Celier <celier@adacore.com>
4474
4475 * make.adb (Initialize): If --subdirs= is used, but no project file is
4476 specified, attempt to create the specify subdir if it does not already
4477 exist and use it as the object directory as if -D had been specified.
4478
44792011-08-03 Arnaud Charlet <charlet@adacore.com>
4480
4481 * s-tpopsp-vms.adb: New file.
4482 * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS.
4483 * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS.
4484
e280f981
AC
44852011-08-03 Emmanuel Briot <briot@adacore.com>
4486
4487 * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new
4488 package.
4489
44902011-08-03 Yannick Moy <moy@adacore.com>
4491
4492 * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type
4493 * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA
4494 * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to
4495 detect that an array has static bounds.
4496
98c99a5a
AC
44972011-08-03 Thomas Quinot <quinot@adacore.com>
4498
4499 * exp_dist.adb: Minor reformatting.
4500
45012011-08-03 Arnaud Charlet <charlet@adacore.com>
4502
4503 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb
4504 (ATCB_Key): Removed, not always used.
4505
45062011-08-03 Emmanuel Briot <briot@adacore.com>
4507
4508 * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads,
4509 clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove
4510 most remaining global variables.
4511
686d0984
AC
45122011-08-03 Robert Dewar <dewar@adacore.com>
4513
4514 * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads,
4515 prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor
4516 reformatting.
4517
45182011-08-03 Javier Miranda <miranda@adacore.com>
4519
4520 * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals
4521 that must be passed by copy in VM targets.
4522
45232011-08-03 Emmanuel Briot <briot@adacore.com>
4524
4525 * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which
4526 duplicates a similar htable now in the project tree.
4527
45282011-08-03 Claire Dross <dross@adacore.com>
4529
4530 * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
4531 a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element,
4532 Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend,
4533 Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap,
4534 Splice, First, First_Element, Last, Last_Element, Next, Previous, Find,
4535 Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity,
4536 Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure
4537 update.
4538
45392011-08-03 Arnaud Charlet <charlet@adacore.com>
4540
4541 * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb
4542 (ATCB_Key): Removed, not always used.
4543 * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from
4544 s-taprop-posix.adb.
4545 * s-tpopsp-tls.adb: New file.
4546 * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on
4547 x86/x64/ia64/powerpc/sparc Linux.
4548
45492011-08-03 Arnaud Charlet <charlet@adacore.com>
4550
4551 * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True.
4552 * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports.
4553
45542011-08-03 Thomas Quinot <quinot@adacore.com>
4555
4556 * rtsfind.ads, exp_dist.adb, exp_dist.ads
4557 (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call):
4558 Fix type selection for mapping integer types to PolyORB types.
4559
45602011-08-03 Bob Duff <duff@adacore.com>
4561
4562 * sem_ch7.adb: Minor comment clarification.
4563
45642011-08-03 Bob Duff <duff@adacore.com>
4565
4566 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get
4567 an error analyzing a choice, skip further processing. Further
4568 processing could cause a crash or cascade errors.
4569
40ecf2f5
EB
45702011-08-03 Emmanuel Briot <briot@adacore.com>
4571
4572 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
4573 prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
4574 prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
4575 prj-env.ads (Shared_Project_Tree_Data): new type
4576 An aggregate project and its aggregated trees need to share the common
4577 data structures used for lists of strings, packages,... This makes the
4578 code simpler since otherwise we have to pass the root tree (also used
4579 for the configuration file data) in addition to the current project
4580 tree. This also avoids ambiguities as to which tree should be used.
4581 And finally this saves a bit of memory.
4582 (For_Every_Project_Imported): new parameter Tree.
4583 Since aggregated projects are using a different tree, we need to let
4584 the caller know which tree to use to manipulate the returned project.
4585
9fde638d
RD
45862011-08-03 Robert Dewar <dewar@adacore.com>
4587
4588 * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb,
4589 prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads,
4590 lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb,
4591 prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting.
4592
95eb8b69
AC
45932011-08-03 Javier Miranda <miranda@adacore.com>
4594
4595 * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads:
4596 Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util.
4597
45982011-08-03 Bob Duff <duff@adacore.com>
4599
4600 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on
4601 the Base_Type.
4602
46032011-08-03 Joel Brobecker <brobecker@adacore.com brobecker>
4604
4605 * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads,
4606 g-sehash.ads: Fix typo. Update header.
4607
46082011-08-03 Thomas Quinot <quinot@adacore.com>
4609
4610 * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place
4611 expansion.
4612
46132011-08-03 Gary Dismukes <dismukes@adacore.com>
4614
4615 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider
4616 prefixes of private types along with records, since the selector may be
4617 a discriminant.
4618 * sem_res.adb (Resolve_Selected_Component): Consider prefixes of
4619 private types along with records, since the selector may be a
4620 discriminant.
4621
92e77027
AC
46222011-08-03 Emmanuel Briot <briot@adacore.com>
4623
b2f7ebc1 4624 * prj-pp.adb (Pretty_Print): Remove trailing blank line.
92e77027
AC
4625
46262011-08-03 Javier Miranda <miranda@adacore.com>
4627
4628 * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of
4629 Tagged_Type_Expansion.
4630
46312011-08-03 Yannick Moy <moy@adacore.com>
4632
b2f7ebc1
GP
4633 * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK
4634 violation when the argument of concatenation is the name of a
4635 constant.
92e77027 4636
ab29a348
EB
46372011-08-03 Emmanuel Briot <briot@adacore.com>
4638
4639 * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads,
4640 prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms
4641 (Process_Declarative_Items): new parameter Child_Env.
4642
9466892f
AC
46432011-08-03 Yannick Moy <moy@adacore.com>
4644
589ef536
GP
4645 * alfa.ads: Update format of ALFA section in ALI file in order to
4646 add a mapping from bodies to specs when both are present.
4647 (ALFA_Scope_Record): Add components for spec file/scope.
4648 * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when
4649 present.
4650 * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been
4651 collected, fill in the spec information when relevant.
4652 * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when
9466892f
AC
4653 present.
4654
46552011-08-03 Eric Botcazou <ebotcazou@adacore.com>
4656
4657 * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing
4658 code unit to decide whether to add internally generated subprograms.
2c7f9cc0 4659
9466892f
AC
46602011-08-03 Javier Miranda <miranda@adacore.com>
4661
4662 * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram.
589ef536
GP
4663 * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must
4664 be handled by copy in VM targets.
9466892f
AC
4665
46662011-08-03 Emmanuel Briot <briot@adacore.com>
4667
589ef536 4668 * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share
9466892f
AC
4669 code with Makeutl.Get_Switches.
4670 * prj-tree.adb: Update comment.
4671
b5ea9143
AC
46722011-08-03 Thomas Quinot <quinot@adacore.com>
4673
4674 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote
4675 subprogram with a limited formal that does not support external
4676 streaming.
4677
46782011-08-03 Yannick Moy <moy@adacore.com>
4679
4680 * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of
4681 continuation line
4682 * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are
4683 not from current unit in two phases, because it is not possible to
4684 change the table while iterating over its content.
4685 * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity
4686
46872011-08-03 Sergey Rybin <rybin@adacore.com>
4688
4689 * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option
4690 * gnat_ugn.texi: Update description of complexity metrics (gnatmetric)
4691
668a19bc
ES
46922011-08-03 Ed Schonberg <schonberg@adacore.com>
4693
4694 * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate
4695 and the component type is composite, this is ambiguous for predefined
4696 concatenation, but if the node is not overloaded and the entity is a use
4697 -defined function its profile can be used to resolve that aggregate.
4698
170b2989
AC
46992011-08-03 Robert Dewar <dewar@adacore.com>
4700
4701 * exp_ch4.adb: Minor code cleanup.
4702
47032011-08-03 Thomas Quinot <quinot@adacore.com>
4704
4705 * exp_dist.adb: Do not generate distribution stubs if serious errors
4706 have been diagnosed.
4707
47082011-08-03 Ed Schonberg <schonberg@adacore.com>
4709
4710 * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of
4711 the first formal of a primitive operation, go to the base type to
4712 handle properly an access to a derived type with constrained
4713 discriminants.
4714 * sem_type.adb (Disambiguate): an immediately visible operator hides a
4715 user-defined function that is only use-visible.
170b2989 4716
e917aec2
RD
47172011-08-03 Robert Dewar <dewar@adacore.com>
4718
4719 * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb,
4720 make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb,
4721 fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb,
4722 prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads,
4723 sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb,
4724 prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb,
4725 prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads,
4726 alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting
4727
47282011-08-03 Robert Dewar <dewar@adacore.com>
4729
4730 * repinfo.adb (List_Mechanism): Add handling of
4731 Convention_Ada_Pass_By_XXX.
4732 * sem_mech.adb (Set_Mechanism): Ditto.
4733 * sem_prag.adb (Process_Convention): Add entries for
4734 Convention_Ada_Pass_By_XXX.
4735 * snames.adb-tmpl, snames.ads-tmpl: Ditto.
4736
49bfcf43
AC
47372011-08-03 Pascal Obry <obry@adacore.com>
4738
4739 * makeutl.adb: Minor reformatting.
4740
47412011-08-03 Vincent Celier <celier@adacore.com>
4742
4743 * fname-uf.adb
4744 (Get_File_Name) If the file cannot be found when there are no config
4745 pragmas file and May_Fail is True, return No_File instead of the file
4746 name, to be consistent.
4747
47482011-08-03 Pascal Obry <obry@adacore.com>
4749
4750 * adaint.c (__gnat_is_executable_file_attr): Avoid access
4751 to null pointer.
4752
47532011-08-03 Javier Miranda <miranda@adacore.com>
4754
4755 * sem_ch13.adb
4756 (Same_Representation): In VM targets the representation of arrays with
4757 aliased components differs from arrays with non-aliased components.
4758
34798441
EB
47592011-08-03 Emmanuel Briot <briot@adacore.com>
4760
4761 * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do
4762 not systematically lower case attribute indexes that contain no "."
4763 Fix definition of several Naming attributes, which take
4764 a unit name as index and therefore should be case insensitive.
4765 Minor refactoring (reduce length of variable names).
4766
47672011-08-03 Emmanuel Briot <briot@adacore.com>
4768
4769 * makeutl.adb, makeutl.ads (Get_Switches): new subprogram.
4770
4437a530
EB
47712011-08-03 Emmanuel Briot <briot@adacore.com>
4772
4773 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
4774 prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb,
4775 prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
4776 prj-tree.ads (Prj.Tree.Environment): new type.
4777
804fe3c4
EB
47782011-08-03 Emmanuel Briot <briot@adacore.com>
4779
4780 * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb,
4781 prj-tree.adb, prj-tree.ads (Environment): new type.
4782
c565bc66
AC
47832011-08-03 Emmanuel Briot <briot@adacore.com>
4784
4785 * prj-tree.ads: Remove unused variable.
4786
47872011-08-03 Yannick Moy <moy@adacore.com>
4788
4789 * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for
4790 issuing messages related to SPARK restriction violation.
4791
4ee646da
AC
47922011-08-03 Ed Schonberg <schonberg@adacore.com>
4793
4794 * sem_ch6.adb: guard against error nodes in return statements.
4795
47962011-08-03 Arnaud Charlet <charlet@adacore.com>
4797
4798 * errout.adb (Error_Msg_Internal): the main unit has not been read yet,
4799 a warning can only appear on a configuration file, so emit warning
4800 without further checks.
4801
48022011-08-03 Arnaud Charlet <charlet@adacore.com>
4803
4804 * s-interr.ads: add overriding keyword.
4805
48062011-08-03 Geert Bosch <bosch@adacore.com>
4807
4808 * exp_attr.adb: Fix minor typo.
4809
48102011-08-03 Ed Schonberg <schonberg@adacore.com>
4811
4812 * par-ch4.adb: improve error recovery.
4813
c0e538ad
AC
48142011-08-03 Emmanuel Briot <briot@adacore.com>
4815
4816 * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb,
4817 prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize
4818 to Errout_Handling.
4819
48202011-08-03 Emmanuel Briot <briot@adacore.com>
4821
4822 * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use
4823 "external" as an attribute name in aggregate projects.
4824
48252011-08-03 Jose Ruiz <ruiz@adacore.com>
4826
4827 * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU
4828 uses CPU numbers starting 1, while VxWorks uses CPU numbers starting
4829 from 0, so we need to adjust.
4830
48312011-08-03 Emmanuel Briot <briot@adacore.com>
4832
4833 * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb,
4834 prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type.
4835
c4d67e2d
AC
48362011-08-03 Yannick Moy <moy@adacore.com>
4837
4838 * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK
4839 restriction on overloaded entity if the entity is not an operator.
4840
48412011-08-03 Yannick Moy <moy@adacore.com>
4842
4843 * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb,
4844 restrict.ads: Rename remaining Check_Formal_Restriction* into
4845 Check_SPARK_Restriction*.
4846
48472011-08-03 Emmanuel Briot <briot@adacore.com>
4848
4849 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb,
4850 prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its
4851 qualifier.
4852 (Project_Empty): removed
4853 (Empty_Project): new parameter Qualifier
4854 This is used to have fields specific to aggregate projects, cleaner
4855 New field to store the list of aggregated projects.
4856 (Check_Aggregate_Project): removed
4857 (Process_Aggregated_Projects, Free): new subprograms.
4858
3f5a8fee
AC
48592011-08-03 Olivier Hainque <hainque@adacore.com>
4860
4861 * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well.
4862
48632011-08-03 Ed Schonberg <schonberg@adacore.com>
4864
4865 * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an
4866 explicit dereference of an unconstrained type, create a constrained
4867 subtype for it, as is done for function calls that return an
4868 unconstrained type.
4869
48702011-08-03 Thomas Quinot <quinot@adacore.com>
4871
4872 * g-pehage.adb (Finalize): Avoid possible double-free.
4873
48742011-08-03 Steve Baird <baird@adacore.com>
4875
4876 * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand
4877 Elab_Spec/Body attrs in CodePeer_Mode.
4878
48792011-08-03 Javier Miranda <miranda@adacore.com>
4880
4881 * exp_aggr.adb (Flatten): Convert to positional form aggregates whose
4882 low bound is not known at compile time but they have no others choice.
4883 Done because in this case the bounds can be obtained directly from the
4884 aggregate.
4885
48862011-08-03 Ed Falis <falis@adacore.com>
4887
4888 * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs
4889 on VxWorks SMP. Remove unusable constant ANY_CPU.
4890
a96ca600
EB
48912011-08-03 Emmanuel Briot <briot@adacore.com>
4892
4893 * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb,
4894 clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb,
4895 prj-env.ads (Prj.Env.Initialize_Default_Project_Path,
4896 Prj.Env.Initialize_Empty): new subprograms
4897 (Get_Env, Find_Project): remove parameter Target_Name.
4898
3e582869
AC
48992011-08-03 Gary Dismukes <dismukes@adacore.com>
4900
4901 * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal
4902 as a condition for the delayed call to Derived_Subprograms done for the
4903 case of the rewriting of a derived type that constrains the
4904 discriminants of its parent type.
4905 Avoids redundant subprogram derivations for private subtype derivations.
4906
49072011-08-03 Javier Miranda <miranda@adacore.com>
4908
4909 * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of
4910 Build_Record_Aggr_Code.
4911 (Build_Record_Aggr_Code): Add missing support to initialize hidden
4912 discriminants in extension aggregates.
4913
49142011-08-03 Emmanuel Briot <briot@adacore.com>
4915
4916 * prj-pp.adb (Print): also output project qualifiers, since in
4917 particular "aggregate" is mandatory in an aggregate project.
4918
49192011-08-03 Emmanuel Briot <briot@adacore.com>
4920
4921 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb:
4922 (Debug_Output): new function.
4923
56e94186
AC
49242011-08-03 Eric Botcazou <ebotcazou@adacore.com>
4925
4926 * gnat_ugn.texi: Document -Wstack-usage.
4927 * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes.
4928
49292011-08-03 Thomas Quinot <quinot@adacore.com>
4930
4931 * sem_prag.adb Issue an error (not a warning) when a C++ type does not
4932 have keyword LIMITED.
4933
49342011-08-03 Yannick Moy <moy@adacore.com>
4935
4936 * alfa.adb, alfa.ads, alfa_test.adb: New files.
4937 * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA)
4938 (Scan_ALI): do not issue a fatal error if parsing known lines after Xref
4939 section (does not happen in compiler, only if code directly calls
4940 Scan_ALI).
4941 * get_alfa.adb, get_alfa.ads: New files.
4942 * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if
4943 needed.
4944 * lib-xref-alfa.adb: New file.
4945 * lib-xref.adb, lib-xref.ads
4946 (Xref_Entry): redefine information needed in cross-references for ALFA.
4947 Push ALFA treatments in separated local package.
4948 (Enclosing_Subpragram_Or_Package): treat specially subprogram
4949 identifiers. Return entity of package body instead of spec. Return
4950 Empty for a scope with no location.
4951 (Generate_Reference): adapt to new components for ALFA information.
4952 Remove the need for D references on definitions.
4953 (Is_Local_Reference): moved to ALFA local package
4954 (Output_References): extract subfunction as Extract_Source_Name
4955 (Output_Local_References): remove procedure, replaced by filtering of
4956 cross-references in package ALFA and printing in Put_ALFA.
4957 (Write_Entity_Name): remove procedure
4958 * lib.adb, lib.ads (Extract_Source_Name): extract here function to
4959 print exact name of entity as it appears in source file
4960 (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA
4961 * put_alfa.adb, put_alfa.ads: New files.
4962 * xref_lib.adb (Search_Xref): protect read of cross-references against
4963 reading other sections of the ALI file, in gnatxref
4964 (Search): protect read of cross-references against reading other
4965 sections of the ALI file, in gnatfind.
4966 * gcc-interface/Make-lang.in: Update dependencies.
4967
49682011-08-03 Thomas Quinot <quinot@adacore.com>
4969
4970 * sem_ch3.adb: Minor reformatting.
4971
49722011-08-03 Jose Ruiz <ruiz@adacore.com>
4973
4974 * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of
4975 raising an exception.
4976
49772011-08-03 Ed Schonberg <schonberg@adacore.com>
4978
4979 * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer
4980 type, always use 1 as the lower bound or string, even if lower bound of
4981 context is not static, to handle properly null strings in a non-static
4982 context.
4983
49842011-08-03 Bob Duff <duff@adacore.com>
4985
4986 * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is
4987 always legal on the right-hand side of an assignment statement; there
4988 is always an applicable index constraint in this case. Therefore, the
4989 check for Pkind = N_Assignment_Statement is now unconditional -- it
4990 doesn't depend on whether Is_Constrained (Typ).
4991
4317e442
AC
49922011-08-03 Robert Dewar <dewar@adacore.com>
4993
4994 * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting.
4995
49962011-08-03 Ed Schonberg <schonberg@adacore.com>
4997
4998 * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference
4999 for an itype created within a generic unit.
5000
50012011-08-03 Eric Botcazou <ebotcazou@adacore.com>
5002
5003 * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline
5004 suppresses all inlining.
5005
53f29d4f
AC
50062011-08-03 Robert Dewar <dewar@adacore.com>
5007
5008 * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb,
5009 exp_aggr.adb: Minor reformatting.
5010
50112011-08-03 Thomas Quinot <quinot@adacore.com>
5012
5013 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of
5014 tagged assignment when discriminant checks are suppressed. This is
5015 useless and extremely costly in terms of static stack usage.
5016
50172011-08-03 Bob Duff <duff@adacore.com>
5018
5019 * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances
5020 of generics, because this leads to the wrong entity in the wrong scope,
5021 causing (e.g.) pragma Export_Procedure to get an error if the entity is
5022 an instance.
5023 (Process_Interface_Name): Follow Alias for instances of generics, to
5024 correct for the above change.
5025
50262011-08-03 Ed Schonberg <schonberg@adacore.com>
5027
5028 * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value
5029 is an integer literal it is always safe to replace the reference. In
5030 addition, if the reference appears in the generated code for an object
5031 declaration it is necessary to copy because otherwise the reference
5032 might be to the uninitilized value of the discriminant of the object
5033 itself.
5034
50352011-08-03 Pascal Obry <obry@adacore.com>
5036
5037 * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no
5038 ACL used, in this case we want to check for ending .exe, not .exe
5039 anywhere in the path.
5040
50412011-08-03 Sergey Rybin <rybin@adacore.com>
5042
5043 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
5044 the tree structure (semantic decoration of references to record
5045 discriminants).
5046
c0b11850
AC
50472011-08-03 Gary Dismukes <dismukes@adacore.com>
5048
5049 * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete
5050 choices of a named array aggregate, bail out when any choices are
5051 marked as Errors_Posted.
5052
50532011-08-03 Ed Schonberg <schonberg@adacore.com>
5054
5055 * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope
5056 in which entity is frozen, to handle properly loop variables in
5057 iterators.
5058
50592011-08-03 Ed Schonberg <schonberg@adacore.com>
5060
5061 * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the
5062 subtype is not static, compute the upper bound using attributes, to
5063 handle properly index types that are not integer types.
5064
50652011-08-03 Bob Duff <duff@adacore.com>
5066
5067 * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs.
5068 Update copyright notice.
5069
50702011-08-03 Ed Schonberg <schonberg@adacore.com>
5071
5072 * sem_ch3.adb (Build_Discriminant_Constraints): Only use
5073 Original_Discriminant if within an instance.
5074 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
5075
50762011-08-03 Thomas Quinot <quinot@adacore.com>
5077
5078 * einfo.ads: Minor reformatting.
5079
50802011-08-03 Ed Schonberg <schonberg@adacore.com>
5081
5082 * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a
5083 composite type with an unfrozen subcomponent, in the profile of a
5084 primitive operation.
5085
5c34e9cd
AC
50862011-08-03 Robert Dewar <dewar@adacore.com>
5087
5088 * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
5089
50902011-08-03 Ed Schonberg <schonberg@adacore.com>
5091
5092 * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an
5093 unconstrained type with discriminants is initialized with an aggregate,
5094 use the constrained subtype of the aggregate as the type of the object,
5095 because it is immutable, and this allows the back-end to generate no
5096 code for the object declaration.
5097
abcd9db2
AC
50982011-08-03 Robert Dewar <dewar@adacore.com>
5099
5100 * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where
5101 comparison operand is variable, and turns out to be zero or negative.
5102
51032011-08-03 Javier Miranda <miranda@adacore.com>
5104
5105 * exp_intr.adb
5106 (Expand_Dispatching_Constructor_Call): Disable expansion of
5107 code required for native targets. Done to avoid generating
5108 references to unavailable runtime entities in VM targets.
5109 * exp_ch3.adb
5110 (Expand_N_Object_Declaration): Add missing support to handle
5111 the explicit initialization of class-wide interface objects.
5112 Fix documentation.
5113
51142011-08-03 Matthew Heaney <heaney@adacore.com>
5115
5116 * a-cobove.adb (Merge): Move source onto target, instead of using Assign
5117
51182011-08-03 Matthew Heaney <heaney@adacore.com>
5119
5120 * a-cbdlli.adb (Splice): move source items from first to last
5121
51222011-08-03 Yannick Moy <moy@adacore.com>
5123
5124 * sem_util.ads: comment added.
5125
51262011-08-03 Javier Miranda <miranda@adacore.com>
5127
5128 * exp_aggr.adb
5129 (Expand_Record_Aggregate): In VM targets disable the expansion into
5130 assignments of aggregates whose type is not known at compile time.
5131
b474d6c3
ES
51322011-08-03 Ed Schonberg <schonberg@adacore.com>
5133
5134 * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for
5135 protected entries and task entries, to build the proper renaming
5136 declaration for entry formals, used in debugging.
5137 * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry
5138 parameters in the same way.
5139
0580d807
AC
51402011-08-02 Robert Dewar <dewar@adacore.com>
5141
5142 * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb,
5143 sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or
5144 code reorganization.
5145
51462011-08-02 Robert Dewar <dewar@adacore.com>
5147
5148 * debug.adb: Debug flag d.P to suppress length comparison optimization
5149 * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize
5150 comparison of Length by comparing First/Last instead.
5151
51522011-08-02 Matthew Heaney <heaney@adacore.com>
5153
5154 * a-cobove.ads: Code clean up.
5155
b191a125
AC
51562011-08-02 Vincent Celier <celier@adacore.com>
5157
5158 * adaint.c (file_names_case_sensitive_cache): New static int.
5159 (__gnat_get_file_names_case_sensitive): Cache the return value in
5160 file_names_case_sensitive_cache at the first invocation, to avoid
5161 multiple calls to getenv.
5162
51632011-08-02 Bob Duff <duff@adacore.com>
5164
5165 * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1.
5166
316a0661
AC
51672011-08-02 Yannick Moy <moy@adacore.com>
5168
5169 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads,
5170 sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb,
5171 sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to
5172 indicate that we are in a precondition or postcondition. This is used in
5173 Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to
5174 decide whether to flag the spec or body of the current subprogram as
5175 not in ALFA.
5176
51772011-08-02 Fabien Chouteau <chouteau@adacore.com>
5178
5179 * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package
5180 list.
5181 * a-extiin.ads: New file.
5182
51832011-08-02 Bob Duff <duff@adacore.com>
5184
5185 * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename
5186 now raises Name_Error instead of Use_Error in certain cases. The other
5187 parts of this AI were already implemented properly.
5188
f9adb9d4
AC
51892011-08-02 Vincent Celier <celier@adacore.com>
5190
5191 * link.c: Only import "auto-host.h" when building the gnattools.
5192
51932011-08-02 Yannick Moy <moy@adacore.com>
5194
5195 * sem_util.adb: Inter-unit inlining does not work for a subprogram
5196 which calls a local subprogram, so extract subprogram
5197 from Mark_Non_ALFA_Subprogram_Body.
5198
51992011-08-02 Javier Miranda <miranda@adacore.com>
5200
5201 * exp_ch9.adb
5202 (Extract_Dispatching_Call): If the type of the dispatching object is an
5203 access type then return an explicit dereference in the Object out-mode
5204 parameter.
5205
52062011-08-02 Gary Dismukes <dismukes@adacore.com>
5207
5208 * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range
5209 compatibility checks for all indexes of an array subtype, not just the
5210 first. Reset Has_Dynamic_Range_Check on the subtype before each
5211 potential check to ensure that Insert_Range_Checks will not elide any
5212 of the dynamic checks.
5213
52142011-08-02 Yannick Moy <moy@adacore.com>
5215
5216 * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize
5217 SPARK restriction at parsing time.
5218 * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE
5219 directive only if the SPARK restriction is set for this unit.
5220
83f33150
YM
52212011-08-02 Yannick Moy <moy@adacore.com>
5222
5223 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
5224 sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
5225 sem_ch11.adb: Protect call to Current_Subprogram which might be costly
5226 when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
5227 Mark_Non_ALFA_Subprogram_Body.
5228 Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
5229 inlined.
5230
7b98672f
YM
52312011-08-02 Yannick Moy <moy@adacore.com>
5232
5233 * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which
5234 might be costly.
5235
052e0603
AC
52362011-08-02 Robert Dewar <dewar@adacore.com>
5237
5238 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
5239 exp_ch3.adb: Minor reformatting.
5240
52412011-08-02 Emmanuel Briot <briot@adacore.com>
5242
5243 * adaint.c (__gnat_locate_exec_on_path): only returns executable
5244 files, not any regular file.
5245 (__gnat_locate_file_with_predicate): new subprogram.
5246
52472011-08-02 Yannick Moy <moy@adacore.com>
5248
5249 * sinfo.adb, sinfo.ads: Restrict the use of flags
5250 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
5251 nodes, plus N_Subtype_Declaration for the 2nd one.
5252
4fbad0ba
AC
52532011-08-02 Sergey Rybin <rybin@adacore.com>
5254
5255 * gnat_rm.texi: Ramification of pragma Eliminate documentation
5256 - fix bugs in the description of Source_Trace;
5257 - get rid of UNIT_NAME;
5258
052e0603
AC
52592011-08-02 Javier Miranda <miranda@adacore.com>
5260
5261 * exp_ch9.adb
5262 (Build_Dispatching_Requeue): Adding support for VM targets
5263 since we cannot directly reference the Tag entity.
5264 * exp_sel.adb (Build_K): Adding support for VM targets.
5265 (Build_S_Assignment): Adding support for VM targets.
5266 * exp_disp.adb
5267 (Default_Prim_Op_Position): In VM targets do not restrict availability
5268 of predefined interface primitives to compiling in Ada 2005 mode.
5269 (Is_Predefined_Interface_Primitive): In VM targets this service is not
5270 restricted to compiling in Ada 2005 mode.
5271 (Make_VM_TSD): Generate code that declares and initializes the OSD
5272 record. Needed to support dispatching calls through synchronized
5273 interfaces.
5274 * exp_ch3.adb
5275 (Make_Predefined_Primitive_Specs): Enable generation of predefined
5276 primitives associated with synchronized interfaces.
5277 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
5278 primitives associated with synchronized interfaces.
5279
52802011-08-02 Yannick Moy <moy@adacore.com>
5281
5282 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
5283 statements hidden in SPARK if preceded by the HIDE directive
5284 (Parse_Exception_Handlers): mark each exception handler in a sequence of
5285 exception handlers as hidden in SPARK if preceded by the HIDE directive
5286 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
5287 if starting with the HIDE directive
5288 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
5289 starting with the HIDE directive; mark the declarations in a private
5290 part as hidden in SPARK if the private part starts with the HIDE
5291 directive
5292 * restrict.adb, restrict.ads
5293 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
5294 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
5295 argument node belongs to a part which is hidden in SPARK
5296 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
5297 parts in SPARK; protect the possibly costly call to
5298 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
5299 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
5300 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
5301 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
5302 Tok_SPARK_Hide.
5303 (Scan): recognize special comment starting with '#' and followed by
5304 SPARK keyword "hide" as a HIDE directive.
5305
53062011-08-02 Yannick Moy <moy@adacore.com>
5307
5308 * types.ads, erroutc.ads: Minor reformatting.
5309
53102011-08-02 Vincent Celier <celier@adacore.com>
5311
5312 * link.c: Add response file support for cross platforms.
5313
53142011-08-02 Ed Schonberg <schonberg@adacore.com>
5315
5316 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
5317 in an association, set parent field of copy before partial analysis.
5318 * sem_res.adb (Resolve_Slice): create reference to itype only when
5319 expansion is enabled.
5320
53212011-08-02 Yannick Moy <moy@adacore.com>
5322
5323 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
5324 for new flag denoting which subprogram bodies are in ALFA
5325 * restrict.adb, sem_ch7.adb: Update comment
5326 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
5327 sem_ch9.adb, sem_res.adb: Add calls to
5328 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
5329 * sem_ch6.adb (Analyze_Function_Return): add calls to
5330 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
5331 middle of the body, and extended return.
5332 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
5333 False when missing return.
5334 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
5335 to True for subprograms whose spec is in ALFA. Remove later on the flag
5336 on the entity used for a subprogram body when there exists a separate
5337 declaration.
5338 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
5339 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
5340 False, otherwise do nothing.
5341
53422011-08-02 Robert Dewar <dewar@adacore.com>
5343
5344 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
5345
53462011-08-02 Yannick Moy <moy@adacore.com>
5347
5348 * sem_ch4.ads: minor formatting.
5349
53502011-08-02 Yannick Moy <moy@adacore.com>
5351
5352 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
5353 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
5354 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
5355 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
5356 opt.ads: cleanup of SPARK mode
5357
53582011-08-02 Yannick Moy <moy@adacore.com>
5359
5360 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
5361 types.
5362 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
5363 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
5364 * sem_ch3.adb
5365 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
5366 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
5367 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
5368 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
5369 types.
5370 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
5371 non-static range.
5372 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
5373 functions whose return type is not in ALFA.
5374 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
5375 specifications.
5376 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
5377 parameter's type is not in ALFA.
5378 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
5379 types are in ALFA.
5380
53812011-08-02 Ed Schonberg <schonberg@adacore.com>
5382
5383 * sem_ch6 (Analyze_Expression_Function): treat the function as
5384 Inline_Always, and introduce a subprogram declaration for it when it is
5385 not a completion.
5386 * inline.adb (Add_Inlined_Body): recognize bodies that come from
5387 expression functions, so that the back-end can determine whether they
5388 can in fact be inlined.
5389 * sem_util.adb (Is_Expression_Function): predicate to determine whether
5390 a function body comes from an expression function.
5391
53922011-08-02 Gary Dismukes <dismukes@adacore.com>
5393
5394 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
5395 null exclusions to test Can_Never_Be_Null on the anonymous access types
5396 of the formals rather than testing the formals themselves. Exclude this
5397 check in cases where the Old_Formal is marked as a controlling formal,
5398 to avoid issuing spurious errors for bodies completing dispatching
5399 operations (due to the flag not getting set on controlling access
5400 formals in body specs).
5401 (Find_Corresponding_Spec): When checking full and subtype conformance of
5402 subprogram bodies in instances, pass Designated and E in that order, for
5403 consistency with the expected order of the formals (New_Id followed by
5404 Old_Id).
5405
54062011-08-02 Robert Dewar <dewar@adacore.com>
5407
5408 * sem_ch8.adb: Minor reformatting.
5409
54102011-08-02 Ed Schonberg <schonberg@adacore.com>
5411
5412 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
5413 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
5414 primitive operations of class-wide actuals.
5415
54162011-08-02 Javier Miranda <miranda@adacore.com>
5417
5418 * exp_atag.ads, exp_atag.adb
5419 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
5420 since its value is implicitly passed in argument Typ.
5421 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
5422 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
5423 Build_Common_Dispatching_Select_Statements.
5424
54252011-08-02 Robert Dewar <dewar@adacore.com>
5426
5427 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
5428 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
5429 Minor reformatting.
5430
54312011-08-02 Robert Dewar <dewar@adacore.com>
5432
5433 * sem_res.adb: Minor reformatting.
5434 * sem_prag.adb: Minor reformatting.
5435
54362011-08-02 Javier Miranda <miranda@adacore.com>
5437
5438 * exp_atag.adb, exp_atags.ads
5439 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
5440 by the tagged type Entity. Required to use this routine in the VM
5441 targets since we do not have available the Tag entity in the VM
5442 platforms.
5443 * exp_ch6.adb
5444 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
5445 Ada.Tags has not been previously loaded.
5446 * exp_ch7.adb
5447 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
5448 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
5449 * sem_aux.adb
5450 (Enclosing_Dynamic_Scope): Add missing support to handle the full
5451 view of enclosing scopes. Required to handle enclosing scopes that
5452 are synchronized types whose full view is a task type.
5453 * exp_disp.adb
5454 (Build_VM_TSDs): Minor code improvement to avoid generating and
5455 analyzing lists with empty nodes.
5456 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
5457 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
5458 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
5459 (Make_Disp_Timed_Select_Body): Add support for VM targets.
5460 (Make_Select_Specific_Data_Table): Add support for VM targets.
5461 (Make_VM_TSD): Generate code to initialize the SSD structure of
5462 the TSD.
5463
54642011-08-02 Yannick Moy <moy@adacore.com>
5465
5466 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
5467 cross-references section in ALI.
5468 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
5469 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
5470 Sub).
5471 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
5472 subprogram or package entity of a node
5473 (Is_Local_Reference_Type): new function returns True for references
5474 selected in local cross-references.
5475 (Lt): function extracted from Lt in Output_References
5476 (Write_Entity_Name): function extracted from Output_References
5477 (Generate_Definition): generate reference with type 'D' for definition
5478 of objects (object declaration and parameter specification), with
5479 appropriate locations and units, for use in local cross-references.
5480 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
5481 references of type 'I' for initialization in object definition.
5482 (Output_References): move part of function Lt and procedure
5483 Write_Entity_Name outside of the body. Ignore references of types 'D'
5484 and 'I' introduced for local cross-references.
5485 (Output_Local_References): new procedure to output the local
5486 cross-references sections.
5487 (Lref_Entity_Status): new array defining whether an entity is a local
5488 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
5489 with 'I' type when initialization expression is present.
5490 * get_scos.adb, get_scos.ads: Correct comments and typos
5491
54922011-08-02 Javier Miranda <miranda@adacore.com>
5493
5494 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
5495 the JVM target.
5496 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
5497 the JVM target.
5498 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
5499 TSD support.
5500
55012011-08-02 Vincent Celier <celier@adacore.com>
5502
5503 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
5504 (No_Space_Img): New function
5505 (Find_Excluded_Sources): When reading from a file, record the file name
5506 and the line number for each excluded source.
5507 (Mark_Excluded_Sources): When reporting an error, if the excluded
5508 sources were read from a file, include file name and line number in
5509 the error message.
5510
55112011-08-02 Ed Schonberg <schonberg@adacore.com>
5512
5513 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
5514
55152011-08-02 Robert Dewar <dewar@adacore.com>
5516
5517 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
5518
55192011-08-02 Javier Miranda <miranda@adacore.com>
5520
5521 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
5522 generation of TSDs to the DOTNET compiler.
5523 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
5524 generation of TSDs to the DOTNET compiler.
5525
55262011-08-02 Javier Miranda <miranda@adacore.com>
5527
5528 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
5529 record of all the tagged types declared inside library level package
5530 declarations, library level package bodies or library level subprograms.
5531 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
5532 associated with a given tagged type.
5533 (Build_VM_TSDs): New subprogram.
5534 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
5535 compilation units that are subprograms.
5536 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
5537 compilation units that are package bodies.
5538 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
5539 units that are a package declaration or a package instantiation.
5540 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
5541 reorganization to improve the error generated by the frontend when the
5542 function Ada.Tags.Secondary_Tag is not available.
5543 * rtsfind.ads (RE_Register_TSD): New runtime entity.
5544 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
5545
55462011-08-02 Javier Miranda <miranda@adacore.com>
5547
5548 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
5549
55502011-08-02 Robert Dewar <dewar@adacore.com>
5551
5552 * s-imenne.ads: Minor reformatting.
5553
55542011-08-02 Robert Dewar <dewar@adacore.com>
5555
5556 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
5557 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
5558 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
5559
55602011-08-02 Robert Dewar <dewar@adacore.com>
5561
5562 * einfo.ads (Materialize_Entity): Document this is only for renamings
5563 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
5564 required debug information in the case where we transform the object
5565 declaration into a renaming declaration.
5566 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
5567 object
5568 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
5569 Materialize_Entity.
5570
55712011-08-02 Robert Dewar <dewar@adacore.com>
5572
5573 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
5574 Suppress_Init_Procs.
5575 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
5576 Suppress_Initialization/Initialization_Suppressed.
5577 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
5578 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
5579 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
5580 * sem_prag.adb: New processing for pragma Suppress_Initialization.
5581
55822011-08-02 Robert Dewar <dewar@adacore.com>
5583
5584 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
5585 Minor reformatting.
5586
55872011-08-02 Ed Schonberg <schonberg@adacore.com>
5588
5589 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
5590 only have inheritable classwide pre/postconditions.
5591
55922011-08-02 Javier Miranda <miranda@adacore.com>
5593
5594 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
5595 * rtsfind.ads (RE_Check_TSD): New runtime entity.
5596 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
5597 checks if the external tag of a type is the same as the external tag
5598 of some other declaration.
5599
56002011-08-02 Thomas Quinot <quinot@adacore.com>
5601
5602 * s-taskin.ads: Minor reformatting.
5603
56042011-08-02 Emmanuel Briot <briot@adacore.com>
5605
5606 * g-comlin.adb (Display_Help): swap the order in which it prints the
5607 short help and the general usage.
5608
56092011-08-02 Ed Schonberg <schonberg@adacore.com>
5610
5611 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
5612 the aspect declarations and attach them to the generic copy for
5613 subsequent analysis.
5614 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
5615 declarations of the generic tree to the new subprogram declarations.
5616 * sem_attr.adb (Check_Precondition_Postcondition): recognize
5617 conditions that apply to a subprogram instance.
5618
56192011-08-02 Robert Dewar <dewar@adacore.com>
5620
5621 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
5622
56232011-08-02 Ed Schonberg <schonberg@adacore.com>
5624
5625 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
5626 private type with a tagged full view is not derived in the immediate
5627 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
5628
56292011-08-02 Robert Dewar <dewar@adacore.com>
5630
5631 * exp_ch4.adb: Minor reformatting.
5632
56332011-08-02 Ed Schonberg <schonberg@adacore.com>
5634
5635 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
5636 Ada2012 iterator, the loop will be rewritten during expansion into a
5637 while loop with a cursor and an element declaration. Do not analyze the
5638 body in this case, because if the container is for indefinite types the
5639 actual subtype of the elements will only be determined when the cursor
5640 declaration is analyzed.
5641
56422011-08-02 Arnaud Charlet <charlet@adacore.com>
5643
5644 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
5645 size/alignment related attributes in CodePeer_Mode.
5646
56472011-08-02 Gary Dismukes <dismukes@adacore.com>
5648
5649 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
5650 Prepend_Element, since this can result in the operation getting the
5651 wrong slot in the full type's dispatch table if the full type has
5652 inherited operations. The incomplete type's operation will get added
5653 to the proper position in the full type's primitives
5654 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
5655 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
5656 dispatching operations, since there are cases where nonprimitive
5657 subprograms can get added to the list of incomplete dependents (such
5658 as subprograms in nested packages).
5659 * sem_ch6.adb (Process_Formals): First, remove test for being in a
5660 private part when determining whether to add a primitive with a
5661 parameter of a tagged incomplete type to the Private_Dependents list.
5662 Such primitives can also occur in the visible part, and should not have
5663 been excluded from being private dependents.
5664 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
5665 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
5666 list of a Taft-amendment incomplete type is a primitive before issuing
5667 an error that the full type must appear in the same unit. There are
5668 cases where nonprimitives can be in the list (such as subprograms in
5669 nested packages).
5670 * sem_disp.adb (Derives_From): Use correct condition for checking that
5671 a formal's type is derived from the type of the corresponding formal in
5672 the parent subprogram (the condition was completely wrong). Add
5673 checking that was missing for controlling result types being derived
5674 from the result type of the parent operation.
5675
56762011-08-02 Yannick Moy <moy@adacore.com>
5677
5678 * errout.adb (First_Node): minor renaming
5679 * restrict.adb (Check_Formal_Restriction): put restriction warning on
5680 first node.
5681
56822011-08-02 Yannick Moy <moy@adacore.com>
5683
5684 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
5685 before accessing operands.
5686 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
5687 decide whether an initialization expression respects SPARK rules, as
5688 the plain node is the expanded one. This allows for more valid warnings
5689 to be issued.
5690 * gnat_rm.texi: Minor update.
5691
56922011-08-02 Arnaud Charlet <charlet@adacore.com>
5693
5694 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
5695 previous change.
5696
56972011-08-02 Robert Dewar <dewar@adacore.com>
5698
5699 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
5700
57012011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
5702
5703 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
5704 loop statements and the element renaming declaration with a block when
5705 the element type is controlled.
5706
57072011-08-02 Yannick Moy <moy@adacore.com>
5708
5709 * sinfo.ads: Minor formatting.
5710
57112011-08-02 Ed Schonberg <schonberg@adacore.com>
5712
5713 * sem_aggr.adb (Add_Association): if the association has a box and no
5714 expression, use the Sloc of the aggregate itself for the new
5715 association.
5716 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
5717 the Original_Node.
5718
57192011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
5720
5721 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
5722 When a container is provided via a function call, generate a renaming
5723 of the function result. This avoids the creation of a transient scope
5724 and the premature finalization of the container.
5725 * exp_ch7.adb (Is_Container_Cursor): Removed.
5726 (Wrap_Transient_Declaration): Remove the supression of the finalization
5727 of the list controller when the declaration denotes a container cursor,
5728 it is not needed.
5729
57302011-08-02 Yannick Moy <moy@adacore.com>
5731
5732 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
5733 node is from source, instead of the original node being from source.
5734 * sem_aggr.adb
5735 (Resolve_Array_Aggregate): refine the check for a static expression, to
5736 recognize also static ranges
5737 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
5738 Array_Type_Declaration): postpone the test for the type being a subtype
5739 mark after the type has been resolved, so that component-selection and
5740 expanded-name are discriminated.
5741 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
5742 to distinguish the case of an iteration scheme, so that an error is
5743 issed on a non-static range in SPARK except in an iteration scheme.
5744 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
5745 In_Iter_Schm = True.
5746 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
5747 user-defined operators so that they are allowed in renaming
5748 * sem_ch8.adb
5749 (Find_Selected_Component): refine the check for prefixing of operators
5750 so that they are allowed in renaming. Move the checks for restrictions
5751 on selector name after analysis discriminated between
5752 component-selection and expanded-name.
5753 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
5754 concatenation argument of string type if it is static.
5755 * sem_util.adb, sem_util.ads
5756 (Check_Later_Vs_Basic_Declarations): add a new function
5757 Is_Later_Declarative_Item to decice which declarations are allowed as
5758 later items, in the two different modes Ada 83 and SPARK. In the SPARK
5759 mode, add that renamings are considered as later items.
5760 (Enclosing_Package): new function to return the enclosing package
5761 (Enter_Name): correct the rule for homonyms in SPARK
5762 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
5763 from source (result of expansion) to avoid issuing wrong warnings.
5764
57652011-08-02 Ed Schonberg <schonberg@adacore.com>
5766
5767 * errout.adb: On anything but an expression First_Node returns its
5768 argument.
5769
57702011-08-02 Pascal Obry <obry@adacore.com>
5771
5772 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
5773
57742011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
5775
5776 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
5777 Set the associated loop as the related expression of internally
5778 generated cursors.
5779 * exp_ch7.adb (Is_Container_Cursor): New routine.
5780 (Wrap_Transient_Declaration): Supress the finalization of the list
5781 controller when the declaration denotes a container cursor.
5782
57832011-08-02 Yannick Moy <moy@adacore.com>
5784
5785 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
5786 command line now.
5787 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
5788 expression is a simple expression. This check cannot be performed in
5789 the semantics, so just drop it.
5790 (P_Index_Or_Discriminant_Constraint): move check that the index or
5791 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
5792 semantics. Other cases were previously checked in the semantics.
5793 * par-ch4.adb (P_Name): move checks that a selector name is not
5794 character literal or an operator symbol to Find_Selected_Component in
5795 the semantics
5796 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
5797 declarations are not placed after later declarations in a separate
5798 procedure in Sem_Util (possibly not the best choice?), to be used both
5799 during parsing, for Ada 83 mode, and during semantic analysis, for
5800 SPARK mode.
5801 * par-endh.adb (Check_End): move check that end label is not missing
5802 to Process_End_Label in the semantics
5803 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
5804 the special case for SPARK restriction
5805 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
5806 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
5807 parameter Force to issue the error message even on internal node (used
5808 for generated end label). Call Check_Restriction to check when an error
5809 must be issued. In SPARK mode, issue an error message even if the
5810 restriction is not set.
5811 (Check_Restriction): new procedure with an additional out parameter to
5812 inform the caller that a message has been issued
5813 * sem_aggr.adb: Minor modification of message
5814 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
5815 instead of issuing an error message directly
5816 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
5817 declarations are not placed after later declarations, by calling
5818 Check_Later_Vs_Basic_Declarations
5819 (Analyze_Subtype_Declaration): move here the check that an index or
5820 discriminant constraint must be a subtype mark. Change the check that
5821 a subtype of String must start at one so that it works on subtype marks.
5822 * sem_ch4.adb (Analyze_Call): move here the check that a named
5823 association cannot follow a positional one in a call
5824 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
5825 instead of issuing an error message directly
5826 * sem_ch8.adb (Find_Selected_Component): move here the check that a
5827 selector name is not a character literal or an operator symbol. Move
5828 here the check that the prefix of an expanded name cannot be a
5829 subprogram or a loop statement.
5830 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
5831 procedure called from parsing and semantics to check that basic
5832 declarations are not placed after later declarations
5833 (Process_End_Label): move here the check that end label is not missing
5834
58352011-08-02 Arnaud Charlet <charlet@adacore.com>
5836
5837 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
5838 representation clause in codepeer mode, since it confuses CodePeer and
5839 does not bring useful info.
5840
58412011-08-02 Ed Falis <falis@adacore.com>
5842
5843 * init.c: initialize fp hw on MILS.
5844
58452011-08-02 Ed Schonberg <schonberg@adacore.com>
5846
5847 * errout.adb (First_Node): for bodies, return the node itself (small
5848 optimization). For other nodes, do not check source_unit if the node
5849 comes from Standard.
5850
58512011-08-02 Robert Dewar <dewar@adacore.com>
5852
5853 * exp_ch3.adb: Minor comment additions.
5854 * sem_ch13.adb: Minor reformatting.
5855
58562011-08-02 Pascal Obry <obry@adacore.com>
5857
5858 * make.adb, makeutl.adb: Removes some superfluous directory separator.
5859
58602011-08-02 Robert Dewar <dewar@adacore.com>
5861
5862 * sem_attr.adb: Minor reformatting.
5863
58642011-08-02 Robert Dewar <dewar@adacore.com>
5865
5866 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
5867 (Has_Default_Component_Value): Removed
5868 * einfo.ads Comment updates
5869 (Has_Default_Aspect): Replaces Has_Default_Value
5870 (Has_Default_Component_Value): Removed
5871 * exp_ch13.adb
5872 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
5873 * exp_ch3.adb
5874 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
5875 (Get_Simple_Init_Val): Handle Default_Value aspect
5876 (Needs_Simple_Initialization): Handle Default_Value aspect
5877 * exp_ch3.ads: Needs_Simple_Initialization
5878 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
5879 * par-prag.adb (Pragma_Default[_Component]Value) Removed
5880 * sem_ch13.adb
5881 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
5882 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
5883 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
5884
58852011-08-02 Ed Schonberg <schonberg@adacore.com>
5886
5887 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
5888 package containing iteration primitives.
5889 exp_ch5.adb (Expand_Iterator_Loop): ditto.
5890
58912011-08-02 Ed Schonberg <schonberg@adacore.com>
5892
5893 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
5894 "of", pre-analyze expression in case it is a function call with
5895 finalization actions that must be placed ahead of the loop.
5896 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
5897 on an Ada2012 iterator, insert them ahead of the rewritten loop.
5898
58992011-08-02 Geert Bosch <bosch@adacore.com>
5900
5901 * cstand.adb (Create_Float_Types): Only consider C's long double for
5902 Long_Long_Float, in addition to double.
5903
59042011-08-02 Robert Dewar <dewar@adacore.com>
5905
5906 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
5907 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
5908 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
5909 Minor reformatting.
5910
59112011-08-02 Ed Schonberg <schonberg@adacore.com>
5912
5913 * sem_attr.adb: handle properly 'Result when it is a prefix of an
5914 indexed component.
5915
59162011-08-02 Javier Miranda <miranda@adacore.com>
5917
5918 * einfo.ads, einfo.adb
5919 (Original_Access_Type): Move this attribute to Node26 since there was
5920 an undocumented use of Node21 in E_Access_Subprogram_Type entities
5921 which causes conflicts and breaks the generation of the .NET compiler.
5922 (Interface_Name): Add missing documentation on JGNAT only uses of
5923 this attribute.
5924
59252011-08-02 Geert Bosch <bosch@adacore.com>
5926
5927 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
5928 (Find_Back_End_Float_Type): Likewise
5929 (Create_Back_End_Float_Types): Likewise
5930 (Create_Float_Types): Likewise
5931 (Register_Float_Type): Likewise
5932 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
5933 Nlist and split out type selection in new local Find_Base_Type function.
5934 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
5935 Nlist
5936 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
5937
59382011-08-02 Robert Dewar <dewar@adacore.com>
5939
5940 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
5941 alpha order).
5942 * opt.ads: Minor comment change.
5943 * sem_ch12.adb: Minor code reorganization.
5944
59452011-08-02 Gary Dismukes <dismukes@adacore.com>
5946
5947 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
5948 subtype's list of rep items to the list on the full subtype in the case
5949 where the lists are the same.
5950
59512011-08-02 Geert Bosch <bosch@adacore.com>
5952
5953 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
5954 using the one from System.Strings, which also deallocates all strings.
5955
59562011-08-02 Geert Bosch <bosch@adacore.com>
5957
5958 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
5959 function.
5960 * gcc-interface/Make-lang.in: Update dependencies.
5961
59622011-08-02 Olivier Hainque <hainque@adacore.com>
5963
5964 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
5965 end_locus.
5966
59672011-08-02 Javier Miranda <miranda@adacore.com>
5968
5969 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
5970 associated with anonymous access to subprograms.
5971
59722011-08-02 Geert Bosch <bosch@adacore.com>
5973
5974 * opt.ads
5975 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
5976 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
5977 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
5978 (Add_Symbol_Definition): Move to switch-c.adb
5979 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
5980 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
5981 (Add_Symbol_Definition): Move to switch-c.adb.
5982 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
5983 * sem_warn.adb
5984 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
5985 Move to warnsw.adb.
5986 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
5987 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
5988 Move to warnsw.adb.
5989 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
5990 (Add_Symbol_Definition): Moved from Prepcomp.
5991 * switch-c.ads: Update copyright notice. Use String_List instead of
5992 Argument_List, removing dependency on System.OS_Lib.
5993
59942011-08-02 Yannick Moy <moy@adacore.com>
5995
5996 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
5997 mode on initialization expression which does not respect SPARK
5998 restrictions.
5999 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
6000 if the tree referenced by its argument represents an initialization
6001 expression in SPARK, suitable for initializing an object in an object
6002 declaration.
6003
60042011-08-02 Javier Miranda <miranda@adacore.com>
6005
6006 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
6007 internally generated access to subprogram with its associated protected
6008 subprogram type.
6009 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
6010
60112011-08-02 Geert Bosch <bosch@adacore.com>
6012
6013 * cstand.adb (Register_Float_Type): Print information about type to
6014 register, if the Debug_Flag_Dot_B is set.
6015 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
6016 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
6017 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
6018 with a requested precision of more than Max_Digits digits and no more
6019 than Max_Base_Digits digits, if a range specification is present and the
6020 Predefined_Float_Types list has a suitable type to derive from.
6021 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
6022 case of type completion with pragma Import
6023 * sem_prag.adb
6024 (Process_Import_Predefined_Type): Processing to complete a type
6025 with pragma Import. Currently supports floating point types only.
6026 (Set_Convention_From_Pragma): Do nothing without underlying type.
6027 (Process_Convention): Guard against absence of underlying type,
6028 which may happen when importing incomplete types.
6029 (Process_Import_Or_Interface): Handle case of importing predefined
6030 types. Tweak error message.
6031
60322011-08-02 Eric Botcazou <ebotcazou@adacore.com>
6033
6034 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
6035 functions to previous change. Reorganize code slightly.
6036
60372011-08-02 Geert Bosch <bosch@adacore.com>
6038
6039 * back_end.ads (Register_Type_Proc): New call back procedure type for
6040 allowing the back end to provide information about available types.
6041 (Register_Back_End_Types): New procedure to register back end types.
6042 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
6043 available types.
6044 * cstand.adb (Back_End_Float_Types): New list for floating point types
6045 supported by the back end.
6046 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
6047 (Copy_Float_Type): New procedure to make new copies of predefined types.
6048 (Register_Float_Type): New call back procedure to populate the BEFT list
6049 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
6050 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
6051 (Create_Float_Types): New procedure to create entities for floating
6052 point types predefined in Standard, and put these and any remaining
6053 BEFTs on the Predefined_Float_Types list.
6054 * stand.ads (Predefined_Float_Types): New list for predefined floating
6055 point types that do not have declarations in package Standard.
6056
60572011-08-02 Eric Botcazou <ebotcazou@adacore.com>
6058
6059 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
6060 entity node for the unit containing the parameter.
6061 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
6062 (Add_Inlined_Subprogram): Likewise.
6063 * gcc-interface/Make-lang.in: Update dependencies.
6064
60652011-08-02 Thomas Quinot <quinot@adacore.com>
6066
6067 * s-stusta.adb (Print): Make sure Pos is always initialized to a
6068 suitable value.
6069
60702011-08-02 Geert Bosch <bosch@adacore.com>
6071
6072 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
6073
60742011-08-02 Eric Botcazou <ebotcazou@adacore.com>
6075
6076 * sem_type.adb (Covers): Move trivial case to the top and reuse the
6077 computed value of Base_Type.
6078
60792011-08-02 Yannick Moy <moy@adacore.com>
6080
6081 * restrict.adb (Check_Restriction): issue an error for any use of
6082 class-wide, even if the No_Dispatch restriction is not set.
6083 * sem_aggr.adb: Correct typos in comments and messages in formal mode
6084 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
6085 when completing a private extension, the type named in the private part
6086 is not the same as that named in the visible part.
6087 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
6088 of an inherited primitive operations of a tagged type or type extension
6089 that returns the tagged type.
6090 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
6091 function which returns True for an implicit operation inherited by the
6092 derived type declaration for the argument type.
6093 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
6094 order.
6095
60962011-08-02 Ed Schonberg <schonberg@adacore.com>
6097
6098 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
6099 Process_Bounds, to perform analysis with expansion of a range or an
6100 expression that is the iteration scheme for a loop.
6101 (Analyze_Iterator_Specification): If domain of iteration is given by a
6102 function call with a controlled result, as is the case if call returns
6103 a predefined container, ensure that finalization actions are properly
6104 generated.
6105 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
6106
61072011-08-02 Javier Miranda <miranda@adacore.com>
6108
6109 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
6110 * gcc-interface/Make-lang.in: Update dependencies.
6111
61122011-08-02 Javier Miranda <miranda@adacore.com>
6113
6114 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
6115 determine if the analysis is performed using N or Original_Node (N).
6116 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
6117 functionality of routine Is_Variable avoids code duplication.
6118 * checks.adb (Determine_Range): Handle temporaries generated by
6119 Remove_Side_Effects.
6120
61212011-08-02 Javier Miranda <miranda@adacore.com>
6122
6123 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
6124 expansion of the condition. Required since the previous analysis was
6125 done with expansion disabled (see Resolve_Quantified_Expression) and
6126 hence checks were not inserted and record comparisons have not been
6127 expanded.
6128
61292011-08-02 Ed Falis <falis@adacore.com>
6130
6131 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
6132 Update header.
6133
61342011-08-02 Bob Duff <duff@adacore.com>
6135
6136 * opt.ads: Minor comment fix.
6137
61382011-08-02 Bob Duff <duff@adacore.com>
6139
6140 * sem_ch12.adb (Analyze_Package_Instantiation,
6141 Analyze_Subprogram_Instantiation): Turn off style checking while
6142 analyzing an instance. Whatever style checks that apply to the generic
6143 unit should apply, so it makes no sense to apply them in an instance.
6144 This was causing trouble when compiling an instance of a runtime
6145 unit that violates the -gnatyO switch.
6146 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
6147 one of the two case statements, causing spurious errors.
6148
61492011-08-02 Robert Dewar <dewar@adacore.com>
6150
6151 * uname.adb: Minor reformatting.
6152 * gnatcmd.adb: Minor reformatting.
6153 * exp_attr.adb: Minor reformatting.
6154
61552011-08-02 Ed Schonberg <schonberg@adacore.com>
6156
6157 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
6158 No_Dispatching_Calls, do not look for the Assign primitive, because
6159 predefined primitives are not created in this case.
6160
61612011-08-02 Bob Duff <duff@adacore.com>
6162
6163 * stylesw.ads: Minor comment fixes.
6164
61652011-08-02 Robert Dewar <dewar@adacore.com>
6166
6167 * freeze.adb (Add_To_Result): New procedure.
6168
61692011-08-02 Jose Ruiz <ruiz@adacore.com>
6170
6171 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
6172 time, if the specific run-time routines for handling streams of strings
6173 are not available, use the default mechanism.
6174
61752011-08-02 Arnaud Charlet <charlet@adacore.com>
6176
6177 * s-regpat.ads: Fix typo.
6178
61792011-08-02 Vincent Celier <celier@adacore.com>
6180
6181 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
6182 not null, call it to create the in memory config project file without
6183 parsing an existing default config project file.
6184
61852011-08-02 Eric Botcazou <ebotcazou@adacore.com>
6186
6187 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
6188
61892011-08-02 Ed Schonberg <schonberg@adacore.com>
6190
6191 * sem_elim.adb: an abstract subprogram does not need an eliminate
6192 pragma for its descendant to be eliminable.
6193
61942011-08-02 Ed Falis <falis@adacore.com>
6195
6196 * init.c: revert to handling before previous checkin for VxWorks
6197 * s-intman-vxworks.adb: delete unnecessary declarations related to
6198 using Ada interrupt facilities for handling signals.
6199 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
6200 * s-intman-vxworks.ads: Import __gnat_install_handler as
6201 Initialize_Interrupts.
6202 * s-taprop-vxworks.adb: Delete Signal_Mask.
6203 (Abort_Handler): change construction of mask to unblock exception
6204 signals.
6205
62062011-08-02 Jerome Guitton <guitton@adacore.com>
6207
6208 * a-except-2005.adb (Raise_From_Signal_Handler): Call
6209 Debug_Raise_Exception before propagation starts.
6210
62112011-08-02 Eric Botcazou <ebotcazou@adacore.com>
6212
6213 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
6214 to Restriction_Check_Required.
6215 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
6216 * sem_res.adb (Resolve_Call): Likewise.
6217 * sem_attr.adb (Check_Stream_Attribute): Likewise.
6218
62192011-08-02 Bob Duff <duff@adacore.com>
6220
6221 * stylesw.ads: Update comment.
6222 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
6223 * errout.ads: Remove obsolete comment.
6224
62252011-08-02 Javier Miranda <miranda@adacore.com>
6226
6227 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
6228 (Set_Is_Safe_To_Reevaluate): new procedure.
6229 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
6230 assignment is allowed on safe-to-reevaluate variables.
6231 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
6232 temporary created to remove side effects in expressions that use
6233 the secondary stack as safe-to-reevaluate.
6234 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
6235 variables that are not true constants.
6236
62372011-08-02 Robert Dewar <dewar@adacore.com>
6238
6239 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
6240 sem_res.adb, sem_ch6.adb: Minor reformatting.
6241
62422011-08-02 Jerome Guitton <guitton@adacore.com>
6243
6244 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
6245
62462011-08-02 Ed Schonberg <schonberg@adacore.com>
6247
6248 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
6249 not set Overridden_Operation if subprogram is an initialization
6250 procedure.
6251
62522011-08-02 Yannick Moy <moy@adacore.com>
6253
6254 * par-ch6.adb: Correct obsolete name in comments
6255 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
6256 which takes two message arguments (existing function takes one), with
6257 second message used for continuation.
6258 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
6259 block statements that originate from a source block statement, not
6260 generated block statements
6261 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
6262 symmetry with procedure case
6263 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
6264 function to issue an error in formal mode if a package specification
6265 contains more than one tagged type or type extension.
6266 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
6267 parameters matching formals of tagged types are objects (or ancestor
6268 type conversions of objects), not general expressions. Issue an error
6269 on view conversions that are not involving ancestor conversion of an
6270 extended type.
6271 (Resolve_Type_Conversion): in formal mode, issue an error on the
6272 operand of an ancestor type conversion which is not an object
6273 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
6274 procedure so that it works also for actuals of function calls
6275 (Is_Actual_Tagged_Parameter): new function which determines if its
6276 argument is an actual parameter of a formal of tagged type in a
6277 subprogram call
6278 (Is_SPARK_Object_Reference): new function which determines if the tree
6279 referenced by its argument represents an object in SPARK
6280
62812011-08-02 Robert Dewar <dewar@adacore.com>
6282
6283 * sem_ch3.adb: Minor reformatting
6284 Minor comment addition
6285 Minor error msg text change
6286
62872011-08-02 Javier Miranda <miranda@adacore.com>
6288
6289 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
6290 function. Used to be more precise when we generate a variable plus one
6291 assignment to remove side effects in the evaluation of the Bound
6292 expressions.
6293 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
6294 of the bound expression to force its re-analysis and thus expand the
6295 associated transient scope (if required). Code cleanup replacing the
6296 previous code that declared the constant entity by an invocation to
6297 routine Force_Evaluation which centralizes this work in the frontend.
6298
62992011-08-02 Robert Dewar <dewar@adacore.com>
6300
6301 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
6302 (Base_Type): Now uses improved Is_Base_Type function
6303 * einfo.ads (Base_Type): Inline this function
6304
63052011-08-02 Robert Dewar <dewar@adacore.com>
6306
6307 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
6308 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
6309
63102011-08-02 Arnaud Charlet <charlet@adacore.com>
6311
6312 * gcc-interface/Make-lang.in: Update dependencies.
6313 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
6314 targets.
6315
63162011-08-02 Yannick Moy <moy@adacore.com>
6317
6318 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
6319 non-simple expression used in delta constraint
6320 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
6321 index constraint which is not a subtype mark
6322 * par.adb: With and use Restrict
6323 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
6324 mode on component type which is not a subtype mark and default
6325 expression on component
6326 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
6327 of string which does not have a lower index bound equal to 1
6328 (Array_Type_Declaration): issue an error in formal mode on index or
6329 component type which is not a subtype mark, and on aliased keyword on
6330 component
6331 (Derived_Type_Declaration): issue an error in formal mode on interface,
6332 limited or abstract type
6333 (Record_Type_Declaration): issue an error in formal mode on interface
6334 (Record_Type_Definition): issue an error in formal mode on tagged types
6335 and type extensions not declared in the specification of a library unit
6336 package; on null non-tagged record; on variant part
6337
63382011-08-02 Vincent Celier <celier@adacore.com>
6339
6340 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
6341 not declared for qualified library project when Library_Name is not
6342 declared, but Library_Dir is.
6343
63442011-08-02 Robert Dewar <dewar@adacore.com>
6345
6346 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
6347 pragmas (affects aspects [Component_]Default_Value
6348 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
6349 component type for the resolution
6350
63512011-08-02 Eric Botcazou <ebotcazou@adacore.com>
6352
6353 * einfo.adb (Base_Type): Tune implementation for speed.
6354
63552011-08-02 Robert Dewar <dewar@adacore.com>
6356
6357 * freeze.adb: Minor reformatting.
6358
63592011-08-02 Thomas Quinot <quinot@adacore.com>
6360
6361 * scos.ads: Update comments.
6362
63632011-08-02 Ed Schonberg <schonberg@adacore.com>
6364
6365 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
6366 base type, because the parent may be a subtype of a private type whose
6367 convention is established in a private part.
6368
63692011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
6370
6371 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
6372 statement in a block when the expansion of the return expression has
6373 created a finalization chain.
6374 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
6375 with the parent node.
6376 Add N_Extended_Return_Statement to handle the case where a transient
6377 object declaration appears in the Return_Object_Declarations list of
6378 an extended return statement.
6379
63802011-08-02 Matthew Gingell <gingell@adacore.com>
6381
6382 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
6383 unused parameter 'name'.
6384
63852011-08-02 Ed Schonberg <schonberg@adacore.com>
6386
6387 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
6388 inherited operation, check whether its alias, which is the source
6389 operastion that it renames, has been marked eliminated.
6390
63912011-08-02 Javier Miranda <miranda@adacore.com>
6392
6393 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
6394 in-mode parameter whose type is an access type since it can be used to
6395 modify its designated object. Enforce code that handles as safe an
6396 access type that is not access-to-constant but it is the result of a
6397 previous removal of side-effects.
6398 (Remove_Side_Effects): Minor code reorganization of cases which require
6399 no action. Done to incorporate documentation on new cases uncovered
6400 working in this ticket: no action needed if this routine was invoked
6401 too early and the nodes are not yet decorated.
6402 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
6403 to routine Remove_Side_Effects by calls to Force_Evaluation since they
6404 were issued with actuals that are implicitly provided by
6405 Force_Evaluation.
6406
64072011-08-02 Robert Dewar <dewar@adacore.com>
6408
6409 * sem_ch3.adb, sem_res.adb: Minor reformatting.
6410
64112011-08-02 Yannick Moy <moy@adacore.com>
6412
6413 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
6414 to issue an error in formal mode on attribute not supported in this mode
6415 (Analyze_Attribute): issue errors on standard attributes not supported
6416 in formal mode.
6417 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
6418 comment, and issue error in formal mode on modulus which is not a power
6419 of 2.
6420 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
6421 range.
6422 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
6423 subtype mark.
6424 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
6425 operator on modular type (except 'not').
6426
64272011-08-02 Robert Dewar <dewar@adacore.com>
6428
6429 * gnat_rm.texi: Minor reformatting.
6430
64312011-08-02 Arnaud Charlet <charlet@adacore.com>
6432
6433 * s-osinte-linux.ads: Minor comment update and reformatting.
6434 * i-cexten.ads: Make this unit pure, as for its parent.
6435 Will allow its usage in more contexts if needed.
6436
64372011-08-02 Robert Dewar <dewar@adacore.com>
6438
6439 * s-utf_32.ads: Minor comment fix.
6440
64412011-08-02 Ed Schonberg <schonberg@adacore.com>
6442
6443 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
6444 operation of a tagged synchronized type, handle the case where the
6445 controlling argument is overloaded.
6446
64472011-08-02 Yannick Moy <moy@adacore.com>
6448
6449 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
6450 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
6451 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
6452 SPARK mode and formal verification mode on processing SPARK restriction
6453 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
6454 requiring consistency checking.
6455
64562011-08-02 Robert Dewar <dewar@adacore.com>
6457
6458 * sem_res.adb: Minor reformatting.
6459
64602011-08-02 Robert Dewar <dewar@adacore.com>
6461
6462 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
6463 a-cforse.ads: Remove unneeded with of Ada.Containers
6464 Remove commented out pragma Inline's
6465 Move specifications of new subprograms to the actual specs
6466
64672011-08-02 Yannick Moy <moy@adacore.com>
6468
6469 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
6470 a-cforse.ads: Update comments.
6471
64722011-08-02 Ed Schonberg <schonberg@adacore.com>
6473
6474 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
6475
64762011-08-02 Robert Dewar <dewar@adacore.com>
6477
6478 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
6479 a-cforse.ads, a-cofove.ads: Minor reformatting.
6480
64812011-08-02 Claire Dross <dross@adacore.com>
6482
6483 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
6484 a-cofove.ads: Add comments.
6485
64862011-08-02 Yannick Moy <moy@adacore.com>
6487
6488 * gnat_rm.texi: Document formal containers.
6489
64902011-08-02 Emmanuel Briot <briot@adacore.com>
6491
6492 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
6493 are empty sections.
6494
64952011-08-02 Robert Dewar <dewar@adacore.com>
6496
6497 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
6498 reformatting.
6499
65002011-08-02 Robert Dewar <dewar@adacore.com>
6501
6502 * aspects.adb: New aspects Default_Value and Default_Component_Value
6503 New format of Aspect_Names table checks for omitted entries
6504 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
6505 handling of boolean aspects for derived types.
6506 New aspects Default_Value and Default_Component_Value
6507 New format of Aspect_Names table checks for omitted entries
6508 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
6509 (Has_Default_Value): New flag
6510 (Has_Default_Component_Value): New flag
6511 (Has_Default_Value): New flag
6512 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
6513 table.
6514 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
6515 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
6516 Default_Value and Default_Component_Value
6517 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
6518 New aspects Default_Value and Default_Component_Value
6519 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
6520 * sprint.adb: Print N_Aspect_Specification node when called from gdb
6521
65222011-08-02 Vincent Celier <celier@adacore.com>
6523
6524 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
6525 inherit library kind.
6526
65272011-08-02 Ed Schonberg <schonberg@adacore.com>
6528
6529 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
6530 Minor reformatting.
6531
65322011-08-02 Robert Dewar <dewar@adacore.com>
6533
6534 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
6535
65362011-08-02 Yannick Moy <moy@adacore.com>
6537
6538 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
6539
65402011-08-02 Robert Dewar <dewar@adacore.com>
6541
6542 * impunit.adb: Add comment.
6543
65442011-08-02 Yannick Moy <moy@adacore.com>
6545
6546 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
6547 qualification of aggregates in formal mode
6548 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
6549 another aggregate
6550 (Resolve_Aggregate): complete the test that an aggregate is adequately
6551 qualified in formal mode
6552
65532011-08-02 Pascal Obry <obry@adacore.com>
6554
6555 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
6556 * mlib-prj.adb: Supress warning when compiling binder generated file.
6557 (Build_Library): Supress all warnings when compiling the binder
6558 generated file.
6559
65602011-08-02 Yannick Moy <moy@adacore.com>
6561
6562 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
6563 from here...
6564 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
6565 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
6566 Add with/use clauses to make Check_Formal_Restriction visible
6567
65682011-08-02 Ed Schonberg <schonberg@adacore.com>
6569
6570 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
6571 in-parameters when type of the generic formal is private in the generic
6572 spec and non-private in the body.
6573
65742011-08-02 Claire Dross <dross@adacore.com>
6575
6576 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
6577 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
6578 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
6579 * impunit.adb, Makefile.rtl: Take new files into account.
6580
65812011-08-02 Robert Dewar <dewar@adacore.com>
6582
6583 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
6584 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
6585
65862011-08-02 Yannick Moy <moy@adacore.com>
6587
6588 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
6589 formal mode
6590 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
6591 matching static array bounds, taking into account the special case of
6592 string literals
6593 * sem_ch3.adb: Typo in comment.
6594
65952011-08-02 Yannick Moy <moy@adacore.com>
6596
6597 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
6598 which issues an error in formal mode if its argument node is originally
6599 from source
6600 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
6601 has a discriminant specification so that it does not include the case
6602 of derived types
6603 (Derived_Type_Declaration): move here the test that a derived type has a
6604 discriminant specification
6605 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
6606 first element of a component association before accessing its choices
6607 (presence of component association is not enough)
6608 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
6609 declaration is a library item before accessing the next element in a
6610 list, as library items are not member of lists
6611 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
6612 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
6613 Check_Formal_Restriction whenever possible.
6614
66152011-08-02 Ed Schonberg <schonberg@adacore.com>
6616
6617 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
6618 reference when needed.
6619
66202011-08-02 Bob Duff <duff@adacore.com>
6621
6622 * gnat_ugn.texi: Fix typo.
6623
66242011-08-02 Vincent Celier <celier@adacore.com>
6625
6626 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
6627 archive file name. Do not use the full path name of archives for Open
6628 VMS.
6629
66302011-08-02 Robert Dewar <dewar@adacore.com>
6631
6632 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
6633 Analyze_Aspect_Specifications
6634 * sem_ch13.adb
6635 (Analyze_Aspect_Specifications): New handling for boolean aspects
6636 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
6637 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
6638 sequence for Analyze_Aspect_Specifications
6639 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
6640 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
6641
66422011-08-02 Robert Dewar <dewar@adacore.com>
6643
6644 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
6645 aspects, since these no longer exist.
6646
66472011-08-02 Robert Dewar <dewar@adacore.com>
6648
6649 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
6650 semicolon, do not try to see if there are aspects following it.
6651 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
6652 aspect spec.
6653
66542011-08-02 Robert Dewar <dewar@adacore.com>
6655
6656 * sem_ch8.adb, aspects.ads: Minor reformatting.
6657
66582011-08-02 Eric Botcazou <ebotcazou@adacore.com>
6659
6660 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
6661 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
6662 extracted from...
6663 (Analyze_Aspect_Specifications): ...here. Call above procedure.
6664
66652011-08-02 Yannick Moy <moy@adacore.com>
6666
6667 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
6668 mode on subprogram declaration outside of package specification, unless
6669 it is followed by a pragma Import
6670 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
6671 Access_Type_Declaration): issue error in formal mode on access type
6672 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
6673 incomplete type
6674 (Analyze_Object_Declaration): issue error in formal mode on object
6675 declaration which does not respect SPARK restrictions
6676 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
6677 declaration which does not respect SPARK restrictions
6678 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
6679 error in formal mode on digits or delta constraint
6680 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
6681 decimal fixed point type
6682 (Derived_Type_Declaration): issue error in formal mode on derived type
6683 other than type extensions of tagged record types
6684 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
6685 with check on access definition
6686 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
6687 mode on protected definition.
6688 (Analyze_Task_Definition): issue error in formal mode on task definition
6689
66902011-08-02 Robert Dewar <dewar@adacore.com>
6691
6692 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
6693
66942011-08-02 Javier Miranda <miranda@adacore.com>
6695
6696 * sem_ch6.adb (Can_Override_Operator): New function.
6697 (Verify_Overriding_Indicator): Add missing code to check overriding
6698 indicator in operators. Fixes regression.
6699 (Check_Overriding_Indicator): Minor reformating after replacing the
6700 code that evaluates if the subprogram can override an operator by
6701 invocations to the above new function.
6702 * einfo.adb
6703 (Write_Field26_Name): Add missing code to ensure that, following
6704 the documentation in einfo.ads, this field is not shown as attribute
6705 "Static_Initialization" on non-dispatching functions.
6706
67072011-08-02 Jose Ruiz <ruiz@adacore.com>
6708
6709 * sem_res.adb (Resolve_Call): A call to
6710 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
6711 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
6712 i.e., when the second parameter is of type Time_Span.
6713
67142011-08-02 Vincent Celier <celier@adacore.com>
6715
6716 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
6717 with an archive instead of -L<library dir> -l<library name>.
6718
67192011-08-02 Ed Schonberg <schonberg@adacore.com>
6720
6721 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
6722 mark the base types In_Use in addition to making the operations
6723 use_visible.
6724
67252011-08-02 Ed Falis <falis@adacore.com>
6726
6727 * init.c: add and setup __gnat_signal_mask for the exception signals
6728 * s-inmaop-vxworks.adb: new file.
6729 * s-intman-vxworks.adb: remove unnecessary initializations and
6730 simplify remaining
6731 * s-intman-vxworks.ads: remove unnecessary variable
6732 * s-taprop-vxworks.adb: simplify signal initialization
6733
67342011-08-02 Robert Dewar <dewar@adacore.com>
6735
6736 * sem_ch8.adb: Minor code reorganization, comment updates.
6737
67382011-08-02 Robert Dewar <dewar@adacore.com>
6739
6740 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
6741 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
6742 here from Sem_Res.
6743 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
6744 (Matching_Static_Array_Bounds): Moved here from Sem_Res
6745
67462011-08-02 Ed Schonberg <schonberg@adacore.com>
6747
6748 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
6749 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
6750 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
6751 use_type_clauses, to handle more efficiently use_type and use_all_type
6752 constructs.
6753 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
6754 Ada2012 Use_All_Type clause.
6755 (Use_Class_Wide_Operations): new procedure.
6756
67572011-08-02 Robert Dewar <dewar@adacore.com>
6758
6759 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
6760 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
6761 expression to expression function.
6762
67632011-08-02 Ed Schonberg <schonberg@adacore.com>
6764
6765 * sem_ch4.adb: transform simple Ada2012 membership into equality only
6766 if types are compatible.
6767
67682011-08-02 Yannick Moy <moy@adacore.com>
6769
6770 * sem_res.adb (Matching_Static_Array_Bounds): new function which
6771 returns True if its argument array types have same dimension and same
6772 static bounds at each index.
6773 (Resolve_Actuals): issue an error in formal mode on actuals passed as
6774 OUT or IN OUT paramaters which are not view conversions in SPARK.
6775 (Resolve_Arithmetic_Op): issue an error in formal mode on
6776 multiplication or division with operands of fixed point types which are
6777 not qualified or explicitly converted.
6778 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
6779 Boolean or array type (except String) operands.
6780 (Resolve_Equality_Op): issue an error in formal mode on equality
6781 operators for array types other than String with non-matching static
6782 bounds.
6783 (Resolve_Logical_Op): issue an error in formal mode on logical operators
6784 for array types with non-matching static bounds. Factorize the code in
6785 Matching_Static_Array_Bounds.
6786 (Resolve_Qualified_Expression): issue an error in formal mode on
6787 qualified expressions for array types with non-matching static bounds.
6788 (Resolve_Type_Conversion): issue an error in formal mode on type
6789 conversion for array types with non-matching static bounds
6790
67912011-08-02 Robert Dewar <dewar@adacore.com>
6792
6793 * par-ch10.adb: Minor code reorganization (use Nkind_In).
6794
67952011-08-02 Ed Schonberg <schonberg@adacore.com>
6796
6797 * par-ch9.adb: save location of entry for proper error message.
6798
67992011-08-02 Javier Miranda <miranda@adacore.com>
6800
6801 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
6802 (Use_Full_View) which permits this routine to climb through the
6803 ancestors using the full-view of private parents.
6804 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
6805 Use_Full_View to true in calls to Is_Ancestor.
6806 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
6807 true in call to Is_Ancestor.
6808 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
6809 Use_Full_View to true in call to Is_Ancestor.
6810 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
6811 call to Is_Ancestor.
6812 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
6813 Use_Full_View to true in calls to Is_Ancestor.
6814 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
6815 Make_Select_Specific_Data_Table, Register_Primitive,
6816 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
6817 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
6818 to true in call to Is_Ancestor.
6819 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
6820 Use_Full_View to true in calls to Is_Ancestor.
6821 * exp_cg.adb
6822 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
6823 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
6824
68252011-08-02 Robert Dewar <dewar@adacore.com>
6826
6827 * gnat_rm.texi: Minor reformatting.
6828 * sem_prag.adb: Minor reformatting.
6829
68302011-08-02 Tristan Gingold <gingold@adacore.com>
6831
6832 * vms_data.ads: Add VMS qualifier for -gnateP.
6833
68342011-08-02 Robert Dewar <dewar@adacore.com>
6835
6836 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
6837 * par-ch7.adb (P_Package): Proper placement of aspects for package
6838 decl/instantiation.
6839 * par-endh.adb (Check_End): Ad Is_Sloc parameter
6840 (End_Statements): Add Is_Sloc parameterr
6841 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
6842 (Check_End): Ad Is_Sloc parameter
6843 (End_Statements): Add Is_Sloc parameterr
6844
68452011-08-02 Vincent Celier <celier@adacore.com>
6846
6847 * ug_words: Add VMS qualifier equivalent to -gnateP:
6848 /SYMBOL_PREPROCESSING.
6849
68502011-08-02 Jose Ruiz <ruiz@adacore.com>
6851
6852 * gnat-style.texi: For hexadecimal numeric literals the typical
6853 grouping of digits is 4 to represent 2 bytes.
6854 A procedure spec which is split into several lines is indented two
6855 characters.
6856
68572011-08-02 Yannick Moy <moy@adacore.com>
6858
6859 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
6860 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
6861 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
6862 properly qualified
6863 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
6864 choice in array aggregate
6865 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
6866 mark as ancestor
6867 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
6868 positional and named aggregate for record, or others in record
6869 aggregate, or multiple choice in record aggregate
6870 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
6871 array operands to logical operations AND, OR and XOR do not have the
6872 same static lower and higher bounds
6873 * sem_ch5.adb, sinfo.ads: Correct typos in comments
6874
68752011-08-01 Robert Dewar <dewar@adacore.com>
6876
6877 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
6878 Replaces Last_Source_Node_In_Sequence.
6879 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
6880 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
6881 parens and blank in string (this was inconsistently implemented).
6882 * errout.ads
6883 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
6884 blank in string (this was inconsistently implemented).
6885 * gnat1drv.adb
6886 (Set_Global_Switches): Set formal mode switches appropriately
6887 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
6888 * par-prag.adb
6889 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
6890 call Set_Error_Msg_Lang to set "spark" as language name.
6891 * par.adb: Remove unnecessary call to set formal language for errout
6892 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
6893 appropriately and call Set_Error_Msg_Lang to set "spark" as language
6894 name.
6895 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
6896 calls to it, moved after resolution so that types are known
6897 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
6898 result of concatenation is not of type String
6899 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
6900 concatenation is not properly restricted
6901 * gnat_rm.texi: Add doc on pragma Spark_95.
6902 * gcc-interface/Makefile.in: Remove obsolete target pairs for
6903 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
6904 * gcc-interface/Make-lang.in: Update dependencies.
6905
69062011-08-01 Javier Miranda <miranda@adacore.com>
6907
6908 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
6909 condition that detects if the overridden operation must replace an
6910 existing entity.
6911
69122011-08-01 Javier Miranda <miranda@adacore.com>
6913
6914 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
6915 code declarations inserted by Insert_Actions in each alternative of the
6916 N_Case_Expression node.
6917
69182011-08-01 Robert Dewar <dewar@adacore.com>
6919
6920 * sem_ch6.adb: Minor code reorganization.
6921 * sem_util.adb: Minor reformatting.
6922
69232011-08-01 Pascal Obry <obry@adacore.com>
6924
6925 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
6926 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
6927
69282011-08-01 Yannick Moy <moy@adacore.com>
6929
6930 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
6931 literal or operator symbol which is prefixed
6932 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
6933 mode on access attributes.
6934 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
6935 that concatenation operands are properly restricted in formal mode
6936 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
6937 Analyze_Concatenation_Operand. Issue an error in formal mode if the
6938 result of the concatenation has a type different from String.
6939 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
6940 Analyze_Quantified_Expression, Analyze_Slice,
6941 Analyze_Null): issue an error in formal mode on unsupported constructs
6942 * sem_ch5.adb
6943 (Analyze_Block_Statement): only issue error on source block statement
6944 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
6945 function which returns the last node in a list of nodes for which
6946 Comes_From_Source returns True, if any
6947 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
6948 Last_Source_Node_In_Sequence
6949 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
6950 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
6951 mode on unsupported constructs
6952 * sem_ch9.adb Do not return after issuing error in formal mode, as the
6953 rest of the actions may be needed later on since the error is marked as
6954 not serious.
6955 * sinfo.ads: Typos in comments.
6956
69572011-08-01 Pascal Obry <obry@adacore.com>
6958
6959 * projects.texi: Minor editing.
6960
69612011-08-01 Yannick Moy <moy@adacore.com>
6962
6963 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
6964 insertion character ~~
6965 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
6966 (Set_Error_Msg_Lang): new procedure which fixes the language for use
6967 with insertion character ~~
6968 (Set_Msg_Text): treat insertion character ~~
6969 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
6970 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
6971 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
6972 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
6973 errors related to the formal language restriction not serious
6974 (insertion character |).
6975 * par.adb (Par): set formal language for error messages if needed
6976 * sem_ch6.adb (Check_Missing_Return): take into account possible
6977 generated statements at the end of the function
6978 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
6979 enumeration value to define a new pragma SPARK_95
6980 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
6981 SPARK_Version): new type and variables to store the SPARK version
6982 (none by default).
6983 (SPARK_Mode): return True when SPARK_Version is set
6984 * par-prag.adb: Correct indentation
6985 (Prag): take Pragma_SPARK_95 into account
6986 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
6987 into account.
6988
69892011-08-01 Robert Dewar <dewar@adacore.com>
6990
6991 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
6992 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
6993 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
6994
69952011-08-01 Pascal Obry <obry@adacore.com>
6996
6997 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
6998 Target_Name to Get_Path call.
6999 (Parse_Single_Project): Likewise.
7000 (Post_Parse_Context_Clause): Likewise.
7001 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
7002 Call Initialise_Project_Path with the proper Target_Name.
7003 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
7004 search path.
7005 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
7006 with the proper Target_Name.
7007 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
7008 Part.Parse routine.
7009 (Parse_Project_And_Apply_Config): Likewise.
7010 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
7011 This is fine as this part of the code is supporting only native
7012 compilation.
7013 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
7014 is fine as this part of the code is supporting only native compilation.
7015
70162011-08-01 Yannick Moy <moy@adacore.com>
7017
7018 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
7019 of homonym, unless the homonym is one of the cases allowed in SPARK
7020 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
7021 package declaration occurring after a body.
7022
70232011-08-01 Robert Dewar <dewar@adacore.com>
7024
7025 * checks.adb, exp_ch4.adb: Minor reformatting.
7026
70272011-08-01 Javier Miranda <miranda@adacore.com>
7028
7029 * einfo.ads (Access_Disp_Table): Fix documentation.
7030 (Dispatch_Table_Wrappers): Fix documentation.
7031
70322011-08-01 Pascal Obry <obry@adacore.com>
7033
7034 * prj-env.adb, prj-env.ads: Minor reformatting.
7035
70362011-08-01 Yannick Moy <moy@adacore.com>
7037
7038 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
7039 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
7040 procedures out of these packages.
2c7f9cc0 7041 * errout.ads, errout.adb
052e0603
AC
7042 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
7043 procedures in of this package
7044 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
7045 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
7046 on misplaced later vs initial declarations, like in Ada 83
7047 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
7048 formal mode on attribute of private type whose full type declaration
7049 is not visible
7050 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
7051 package declaration inside a package specification
7052 (Analyze_Full_Type_Declaration): issue error in formal mode on
7053 controlled type or discriminant type
7054 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
7055 user-defined operator means that it should come from the source
7056 (New_Overloaded_Entity): issue error in formal mode on overloaded
7057 entity.
7058 * sem_ch6.ads, sem_ch13.ads: typos in comments.
7059
70602011-08-01 Thomas Quinot <quinot@adacore.com>
7061
7062 * atree.adb: Minor reformatting.
7063 * checks.adb: Minor reformatting.
7064
70652011-08-01 Vincent Celier <celier@adacore.com>
7066
7067 * s-parame-vms-ia64.ads: Fix typo in comment
7068 Minor reformatting
7069 * s-parame-vms-restrict.ads: Removed, unused.
7070
70712011-08-01 Javier Miranda <miranda@adacore.com>
7072
7073 * exp_ch3.adb
7074 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
7075 * sem_ch3.adb
7076 (Constrain_Index): Remove side effects in the evaluation of the bounds.
7077 * sem_ch3.ads, sem_ch3.adb
7078 (Is_Constant_Bound): New extended version of the subprogram that was
7079 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
7080 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
7081 * sem_aux.ads (Constant_Value): Fix typo in comment.
7082 * checks.adb (Generate_Index_Checks): New implementation which, for
7083 array objects with constant bounds, generates the runtime check
7084 referencing the bounds of the array type. For other cases this routine
7085 provides its previous behavior obtaining such values from the array
7086 object.
7087 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
7088 parent type.
7089 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
7090 we cannot have semantic interpretations of the new node.
7091
70922011-08-01 Ed Schonberg <schonberg@adacore.com>
7093
7094 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
7095 expressions.
7096
70972011-08-01 Arnaud Charlet <charlet@adacore.com>
7098
7099 * sem_ch8.adb: Minor code editing.
7100 * s-vxwext.adb: Remove trailing space.
7101 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
7102 consistency with other files.
7103
71042011-08-01 Thomas Quinot <quinot@adacore.com>
7105
7106 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
7107
71082011-08-01 Ed Schonberg <schonberg@adacore.com>
7109
7110 * par-ch10.adb: reject parameterized expressions as compilation unit.
7111 * sem_ch4.adb: handle properly conditional expression with overloaded
7112 then_clause and no else_clause.
7113
71142011-08-01 Tristan Gingold <gingold@adacore.com>
7115
7116 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
7117 like done by System.Aux_DEC.
7118 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
7119
71202011-08-01 Yannick Moy <moy@adacore.com>
7121
7122 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
7123 missing label at end of declaration (subprogram or package)
7124 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
7125 of positional and named parameter association
7126 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
7127 Error_Msg_SP which adds a prefix to the error message giving the name
7128 of the formal language analyzed
7129 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
7130 access result type in subprogram, unconstrained array as result type,.
7131 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
7132 procedure
7133 * sem_ch8.adb: Code clean up.
7134
71352011-08-01 Javier Miranda <miranda@adacore.com>
7136
7137 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
7138 * einfo.ads (Access_Disp_Table): Fix documentation.
7139 (Dispatch_Table_Wrappers): Fix documentation.
7140 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
7141 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
7142 to enforce the documentation of this attribute.
7143 (Set_Is_Interface): Cleanup the assertion.
7144 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
7145 the Underlying_Type entity before reading attribute Access_Disp_Table.
7146 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
7147 Locate the Underlying_Type before reading attribute Access_Disp_Table.
7148 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
7149 the Underlying_Type entity before reading attribute Access_Disp_Table.
7150 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
7151 Locate the Underlying_Type entity before reading attribute
7152 Access_Disp_Table.
7153
71542011-08-01 Ed Schonberg <schonberg@adacore.com>
7155
7156 * s-poosiz.ads: Additional overriding indicators.
7157
71582011-08-01 Yannick Moy <moy@adacore.com>
7159
7160 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
7161 formal mode.
7162 (Analyze_Iteration_Scheme): issue error in formal mode when loop
7163 parameter specification does not include a subtype mark.
7164 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
7165 formal mode on abstract subprogram.
7166 (Analyze_Subprogram_Specification): issue error in formal mode on
7167 user-defined operator.
7168 (Process_Formals): issue error in formal mode on access parameter and
7169 default expression.
7170 * sem_ch9.adb (Analyze_Abort_Statement,
7171 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
7172 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
7173 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
7174 Analyze_Requeue, Analyze_Selective_Accept,
7175 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
7176 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
7177 issue error in formal mode on user-defined raise statement.
7178
71792011-08-01 Thomas Quinot <quinot@adacore.com>
7180
7181 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
7182 declaration being hidden when overriding an implicit inherited
7183 subprogram.
7184 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
7185 (-gnats), do not complain about a source file that contains only a
7186 pragma No_Body.
7187
71882011-08-01 Ed Schonberg <schonberg@adacore.com>
7189
7190 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
7191 variable if already set.
7192
71932011-08-01 Arnaud Charlet <charlet@adacore.com>
7194
7195 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
7196 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
7197 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
7198 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
7199 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
7200 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
7201 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
7202 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
7203 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
7204 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
7205 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
7206 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
7207 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
7208 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
7209 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
7210 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
7211 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
7212 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
7213 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
7214 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
7215 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
7216 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
7217 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
7218 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
7219 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
7220 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
7221 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
7222 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
7223 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
7224 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
7225 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
7226 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
7227 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
7228 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
7229 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
7230 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
7231 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
7232 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
7233 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
7234 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
7235 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
7236 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
7237 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
7238 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
7239 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
7240 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
7241 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
7242 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
7243 s-osinte-mingw.ads: Update to GPLv3 run-time license.
7244 Use GNAT instead of GNARL.
7245
72462011-08-01 Bob Duff <duff@adacore.com>
7247
7248 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
7249 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
7250 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
7251 reformatting.
7252
72532011-08-01 Yannick Moy <moy@adacore.com>
7254
7255 * debug.adb (d.D) reverve flag for the SPARK mode
7256 (d.E) reverve flag for SPARK generation mode
7257 (d.F) reverve flag for Why generation mode
2c7f9cc0 7258 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
052e0603
AC
7259 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
7260 functions which return True when the corresponding modes are set
7261 (Formal_Language): return "spark" or "alfa" when in formal verification
7262 mode.
7263 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
7264 Error_Msg to prefix the error message with a tag giving the formal
7265 language
7266 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
7267 message with a tag giving the formal language
7268 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
7269 block statement
7270 (Analyze_Case_Statement): issue error in formal mode on case statement
7271 with a single "others" case alternative
7272 (Analyze_Exit_Statement): issue errors in formal mode on exit
7273 statements which do not respect SPARK restrictions
7274 (Analyze_Goto_Statement): issue error in formal mode on goto statement
7275 (Check_Unreachable_Code): always issue an error (not a warning) in
7276 formal mode on unreachable code (concerns both code after an infinite
7277 loop and after an unconditional jump, both not allowed in SPARK)
7278 * sem_ch6.adb (Analyze_Return_Statement): add call to
7279 Set_Return_Present for a procedure containing a return statement
7280 (already done for functions in Analyze_Function_Return)
7281 (Analyze_Function_Return): issue error in formal mode on extended
7282 return or if return is not last statement in function
7283 (Check_Missing_Return): issue error in formal mode if function does
7284 not end with return or if procedure contains a return
7285 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
7286 function to detect if there is an inner scope of its parameter S which
7287 is a loop.
7288
72892011-08-01 Thomas Quinot <quinot@adacore.com>
7290
7291 * sem_ch6.ads: Minor reformatting.
7292
72932011-08-01 Javier Miranda <miranda@adacore.com>
7294
7295 * sem_util.adb (Abstract_Interface_List): Complete condition when
7296 processing private type declarations to avoid reading unavailable
7297 attribute.
7298 (Is_Synchronized_Tagged_Type): Complete condition when processing
7299 private extension declaration nodes to avoid reading unavailable
7300 attribute.
7301
73022011-08-01 Thomas Quinot <quinot@adacore.com>
7303
7304 * sem_ch3.adb: Minor reformatting.
7305
73062011-08-01 Thomas Quinot <quinot@adacore.com>
7307
7308 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
7309 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
7310 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
7311 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
7312 for VMS, instead parametrize the common implementation with
7313 System.Parameters declarations.
7314
73152011-08-01 Eric Botcazou <ebotcazou@adacore.com>
7316
7317 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
7318
73192011-08-01 Tristan Gingold <gingold@adacore.com>
7320
7321 * seh_init.c: Fix SEH handler installation on win64.
7322
73232011-08-01 Ed Schonberg <schonberg@adacore.com>
7324
7325 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
7326 double analysis of an anonymous access to subprogram, because it can
7327 lead to improper sharing of profiles and a back-end crash.
7328
73292011-08-01 Robert Dewar <dewar@adacore.com>
7330
7331 * make.adb, sem_ch4.adb: Minor reformatting.
7332 * gcc-interface/Make-lang.in: Update dependencies.
7333 * sem_util.adb, exp_ch5.adb: Minor reformatting.
7334
73352011-08-01 Arnaud Charlet <charlet@adacore.com>
7336
7337 * gnat_rm.texi: Fix definition of Long_Integer.
7338
73392011-08-01 Ed Schonberg <schonberg@adacore.com>
7340
7341 * exp_aggr.adb: check limit size of static aggregate unconditionally,
7342 to prevent storage exhaustion.
7343 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
7344 finalized is a function body, insert the cleanup code before the final
7345 return statement, to prevent spurious warnings.
7346 * s-pooglo.ads: add overriding indicator.
7347
73482011-08-01 Ed Schonberg <schonberg@adacore.com>
7349
7350 * sem_ch4.adb (Operator_Check): improve error message when both a
7351 with_clause and a use_clause are needed to make operator usage legal.
7352 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
7353 determine whether a compilation unit is visible within an other,
7354 either through a with_clause in the current unit, or a with_clause in
7355 its library unit or one one of its parents.
7356
73572011-08-01 Ed Schonberg <schonberg@adacore.com>
7358
7359 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
7360 over an arbitrary expression of an array or container type.
7361 * lib-xref.adb: clarify comment.
7362
73632011-08-01 Bob Duff <duff@adacore.com>
7364
7365 * einfo.ads: Minor reformatting.
7366 * debug.adb: Minor comment improvement.
7367
73682011-08-01 Javier Miranda <miranda@adacore.com>
7369
7370 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
7371 consider hidden subprograms as valid candidates.
7372
73732011-08-01 Arnaud Charlet <charlet@adacore.com>
7374
7375 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
7376
73772011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
7378
7379 * gnat_ugn.texi: Fix typo.
7380
73812011-08-01 Robert Dewar <dewar@adacore.com>
7382
7383 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
7384 lib-xref.adb: Minor reformatting
7385
73862011-08-01 Gary Dismukes <dismukes@adacore.com>
7387
7388 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
7389 when to generate a call to Move_Final_List.
7390 (Has_Controlled_Parts): Remove this function.
7391
73922011-08-01 Geert Bosch <bosch@adacore.com>
7393
7394 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
7395 "," in choice list.
7396
73972011-08-01 Thomas Quinot <quinot@adacore.com>
7398
7399 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
7400 explicit raise of a predefined exception as Comes_From_Source if the
7401 original N_Raise_Statement comes from source.
7402
74032011-08-01 Robert Dewar <dewar@adacore.com>
7404
7405 * sinfo.ads: Add comment.
7406 * sem_ch6.adb: Minor reformatting.
7407
74082011-08-01 Robert Dewar <dewar@adacore.com>
7409
7410 * freeze.adb (Freeze_Entity): Refine check for bad component size
7411 clause to avoid rejecting confirming clause when atomic/aliased present.
7412
74132011-08-01 Ed Schonberg <schonberg@adacore.com>
7414
7415 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
7416 better determine whether an entity reference is a write.
7417 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
7418 subcomponent.
7419 * lib-xref.adb (Output_References): Do no suppress a read reference at
7420 the same location as an immediately preceeding modify-reference, to
7421 handle properly in-out actuals.
7422
74232011-08-01 Tristan Gingold <gingold@adacore.com>
7424
7425 * env.c (__gnat_setenv) [VMS]: Refine previous change.
7426
74272011-08-01 Quentin Ochem <ochem@adacore.com>
7428
7429 * i-cstrin.adb (New_String): Changed implementation, now uses only the
7430 heap to compute the result.
7431
74322011-08-01 Robert Dewar <dewar@adacore.com>
7433
7434 * atree.ads: Minor reformatting.
7435
74362011-08-01 Emmanuel Briot <briot@adacore.com>
7437
7438 * g-expect.adb (Get_Command_Output): Fix memory leak.
7439
74402011-08-01 Geert Bosch <bosch@adacore.com>
7441
7442 * cstand.adb (P_Float_Type): New procedure to print the definition of
7443 predefined fpt types.
7444 (P_Mixed_Name): New procedure to print a name using mixed case
7445 (Print_Standard): Use P_Float_Type for printing floating point types
7446 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
7447 precision IEEE float.
7448
74492011-08-01 Thomas Quinot <quinot@adacore.com>
7450
7451 * sem_ch3.adb: Minor reformatting.
7452
74532011-08-01 Ed Schonberg <schonberg@adacore.com>
7454
7455 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
7456 the completion of a generic function, insert the new body rather than
7457 rewriting the original.
7458
74592011-08-01 Yannick Moy <moy@adacore.com>
7460
7461 * sinfo.ads, errout.ads: Typos in comments.
7462
74632011-08-01 Robert Dewar <dewar@adacore.com>
7464
7465 * par-endh.adb: Minor reformatting.
7466
74672011-08-01 Robert Dewar <dewar@adacore.com>
7468
7469 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
7470 (Pre_Post_Aspects): New subtype.
7471 * par-ch12.adb (P_Generic): New syntax for aspects in packages
7472 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
7473 * par-ch7.adb (P_Package): Remove Decl parameter
7474 (P_Package): Handle new syntax for aspects (before IS)
7475 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
7476 new aspect syntax
7477 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
7478 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
7479 (P_Package): Remove Decl parameter
7480 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
7481 aspects
7482 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
7483 specs
7484 * sem_util.ads, sem_util.adb (Static_Boolean): New function
7485 * sinfo.ads: Document new syntax for aspects in packages etc.
7486 * sprint.adb: Handle new syntax of aspects before IS in package
7487
74882011-08-01 Thomas Quinot <quinot@adacore.com>
7489
7490 * atree.ads: Minor reformatting.
7491 * sem_prag.adb: Minor reformatting.
7492
74932011-08-01 Robert Dewar <dewar@adacore.com>
7494
7495 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
7496 case expr alternative.
7497
74982011-08-01 Ed Schonberg <schonberg@adacore.com>
7499
7500 * sem_ch12.adb: Fix typo.
7501
75022011-08-01 Geert Bosch <bosch@adacore.com>
7503
7504 * sem_prag.adb (Check_No_Link_Name): New procedure.
7505 (Process_Import_Or_Interface): Use Check_No_Link_Name.
7506 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
7507 instead of Standard_Long_Long_Float_Size global. Preparation for
7508 eventual removal of per type constants.
7509 * exp_util.ads (Get_Stream_Size): New function returning the stream
7510 size value of subtype E.
7511 * exp_util.adb (Get_Stream_Size): Implement new function.
7512 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
7513 function.
7514 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
7515 * einfo.adb:
7516 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
7517
75182011-08-01 Geert Bosch <bosch@adacore.com>
7519
7520 * cstand.adb: Fix comments.
7521 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
7522 count of arguments.
7523
75242011-08-01 Robert Dewar <dewar@adacore.com>
7525
7526 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
7527
75282011-08-01 Geert Bosch <bosch@adacore.com>
7529
7530 * atree.ads: Fix comment.
7531
75322011-08-01 Robert Dewar <dewar@adacore.com>
7533
7534 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
7535 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
7536 * par.adb: Add with for Namet.Sp.
7537 * par-tchk.adb: Minor reformatting.
7538
75392011-08-01 Vincent Celier <celier@adacore.com>
7540
7541 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
7542 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
7543 of the init procedure of a SAL.
7544 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
7545 New procedure.
7546
75472011-08-01 Thomas Quinot <quinot@adacore.com>
7548
7549 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
7550 reformatting.
7551
75522011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7553
7554 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
7555
75562011-08-01 Thomas Quinot <quinot@adacore.com>
7557
7558 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
7559 conformant with its spec (return True only for types that have
7560 an overriding Initialize primitive operation that prevents them from
7561 having preelaborable initialization).
7562 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
7563 initialization for controlled types in Ada 2005 or later mode.
7564
75652011-08-01 Robert Dewar <dewar@adacore.com>
7566
7567 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
7568 Postcondition.
7569 (Same_Aspect): New function.
7570 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
7571 Type_Invariant, Precondition, Postcondition.
7572 * snames.ads-tmpl: Add Name_Type_Invariant.
7573
75742011-08-01 Robert Dewar <dewar@adacore.com>
7575
7576 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
7577 here.
7578 (Freeze_All_Ent): Fix error in handling inherited aspects.
7579 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
7580 already analyzed, but don't skip entire processing of a declaration,
7581 that's wrong in some cases of declarations being rewritten.
7582 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
7583 Don't delay for integer, string literals
7584 Treat predicates in usual manner for delay, remove special case code,
7585 not needed.
7586 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
7587 (Build_Predicate_Function): Update saved expression in aspect
7588 (Build_Invariant_Procedure): Update saved expression in aspect
7589 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
7590 of replacement of discriminant references if the reference is simple.
7591
75922011-08-01 Robert Dewar <dewar@adacore.com>
7593
7594 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
7595 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
7596 Static_Predicate and Dynamic_Predicate.
7597 (Build_Predicate_Function): Add processing for Static_Predicate
7598 and Dynamic_Predicate.
7599 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
7600 (From_Static_Predicate): New flag
7601 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
7602
76032011-08-01 Robert Dewar <dewar@adacore.com>
7604
7605 * usage.adb: Documentation cleanup for Ada version modes in usage.
7606 * expander.adb: Minor reformatting.
7607
76082011-08-01 Robert Dewar <dewar@adacore.com>
7609
7610 * atree.ads: Minor comment fix.
7611 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
7612 a-witeio.ads, sem_prag.adb: Minor reformatting.
7613
76142011-08-01 Doug Rupp <rupp@adacore.com>
7615
7616 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
7617 pointers. Use descrip.h header file for convenience. Add some
7618 comments.
7619
76202011-08-01 Robert Dewar <dewar@adacore.com>
7621
7622 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
7623 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
7624 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
7625 New procedure.
7626 (Check_Aspect_At_End_Of_Declarations): New procedure
7627 (Analye_Aspect_Specification): Minor changes for above procedures
7628 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
7629 specification node as well.
7630
76312011-08-01 Pascal Obry <obry@adacore.com>
7632
7633 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
7634 Windows files. Use GetFilesAttributes() in this case to check for file
7635 existence instead of returning with an error code.
7636
76372011-08-01 Vincent Celier <celier@adacore.com>
7638
7639 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
7640 High is above Source length.
7641
76422011-08-01 Robert Dewar <dewar@adacore.com>
7643
7644 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
7645
76462011-08-01 Robert Dewar <dewar@adacore.com>
7647
7648 * aspects.ads (Boolean_Aspects): New subtype.
7649 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
7650 for derived types in cases where the parent type and derived type have
7651 aspects.
7652 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
7653 with aspects when parent type also has aspects.
7654 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
7655 boolean expression at this point).
7656 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
7657 accordance with final decision on the Ada 2012 feature.
7658 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
7659
76602011-08-01 Matthew Heaney <heaney@adacore.com>
7661
7662 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
7663
76642011-08-01 Pascal Obry <obry@adacore.com>
7665
7666 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
7667 Fix Replace_Slice when High is above current string size.
7668 (Replace_Slice): Fix DL computation when High is above current
7669 string length.
7670
76712011-08-01 Gary Dismukes <dismukes@adacore.com>
7672
7673 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
7674
76752011-08-01 Matthew Heaney <heaney@adacore.com>
7676
7677 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
7678 of node.
7679
76802011-08-01 Pascal Obry <obry@adacore.com>
7681
7682 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
7683 reformatting.
7684
76852011-08-01 Ed Schonberg <schonberg@adacore.com>
7686
7687 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
7688 access to protected subprograms in generic bodies.
7689 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
7690 protected type, indicate that the convention of the subprogram is
7691 Convention_Protected, because it may be used in subsequent declarations
7692 within the protected declaration.
7693
76942011-08-01 Vincent Celier <celier@adacore.com>
7695
7696 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
7697 and "final" procedures when the name of the library is "ada", to avoid
7698 duplicate symbols "adainit" and "adafinal" in executables.
7699
77002011-08-01 Ed Schonberg <schonberg@adacore.com>
7701
7702 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
7703 quantified expression that appears within a postcondition and uses the
7704 Ada2012 'Result attribute.
7705
77062011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7707
7708 * init.c (__gnat_error_handler): Cast reason to int.
7709 (__gnat_install_handler): Explain sa_sigaction use.
7710
77112011-07-24 Eric Botcazou <ebotcazou@adacore.com>
7712
7713 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
7714 subprogram has copy-in copy-out parameters, try to promote the mode of
7715 the return type if it is passed in registers.
7716
77172011-07-24 Eric Botcazou <ebotcazou@adacore.com>
7718
7719 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
7720 left operand as addressable.
7721
77222011-07-24 Eric Botcazou <ebotcazou@adacore.com>
7723
7724 * gcc-interface/gigi.h (build_function_stub): Remove.
7725 (build_return_expr): Likewise.
7726 (convert_vms_descriptor): Declare.
7727 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
7728 (build_function_stub): Move to...
7729 * gcc-interface/utils2.c (build_return_expr): Move to...
7730 * gcc-interface/trans.c (build_function_stub): ...here.
7731 (build_return_expr): ...here.
7732 (Subprogram_Body_to_gnu): Add local variable for language_function.
7733 Disconnect the parameter attributes cache, if any, once done with it.
7734 Call end_subprog_body only after setting the end_locus.
7735 Build the stub associated with the function, if any, at the very end.
7736 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
7737 variables and streamline control flow.
7738
77392011-07-23 Arnaud Charlet <charlet@adacore.com>
7740
7741 PR ada/49819
7742 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
7743 g-trasym-dwarf.adb.
7744
77452011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7746
7747 PR bootstrap/49794
7748 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
7749 Assign to act.sa_sigaction.
7750 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
7751 current->return_address to char * before arithmetic.
7752
77532011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7754
7755 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
7756 Correct argument types.
7757 Extract code from reason.
7758 (__gnat_install_handler): Assign to act.sa_sigaction.
7759
77602011-07-21 Eric Botcazou <ebotcazou@adacore.com>
7761
7762 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
7763 (GNAT1_OBJS): ...here.
7764
77652011-07-15 Eric Botcazou <ebotcazou@adacore.com>
7766
7767 PR ada/48711
7768 * g-socthi-mingw.adb (Fill): Fix formatting.
7769
7770 * gcc-interface/gigi.h: Move around comment.
7771
77722011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7773
7774 PR ada/46350
7775 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
7776
77772011-07-14 Florian Weimer <fw@deneb.enyo.de>
7778
7779 PR ada/48711
7780 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
7781
77822011-07-13 Eric Botcazou <ebotcazou@adacore.com>
7783
7784 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
7785 range comparison if Pmode is SImode.
7786
77872011-07-12 Laurent GUERBY <laurent@guerby.net>
7788 Eric Botcazou <ebotcazou@adacore.com>
7789
7790 * adadecode.c: Wrap up in extern "C" block.
7791 * adadecode.h: Likewise.
7792 * adaint.c: Likewise. Remove 'const' keyword.
7793 * adaint.h: Likewise.
7794 * argv.c: Likewise.
7795 * atree.h: Likewise.
7796 * cio.c: Likewise.
7797 * cstreams.c: Likewise.
7798 * env.c: Likewise.
7799 * exit.c: Likewise.
7800 * fe.h: Likewise.
7801 * final.c: Likewise.
7802 * init.c: Likewise.
7803 * initialize.c: Likewise.
7804 * link.c: Likewise.
7805 * namet.h: Likewise.
7806 * nlists.h: Likewise.
7807 * raise.c: Likewise.
7808 * raise.h: Likewise.
7809 * repinfo.h: Likewise.
7810 * seh_init.c: Likewise.
7811 * targext.c: Likewise.
7812 * tracebak.c: Likewise.
7813 * uintp.h: Likewise.
7814 * urealp.h: Likewise.
7815 * xeinfo.adb: Wrap up generated C code in extern "C" block.
7816 * xsinfo.adb: Likewise.
7817 * xsnamest.adb: Likewise.
7818 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
7819 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
7820 * gcc-interface/misc.c: Likewise.
7821 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
7822 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
7823 ada/targext.o here...
7824 (GNAT_ADA_OBJS): ...and not here.
7825 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
7826 (GNATBIND_OBJS): Reorder.
7827
78282011-07-07 Richard Henderson <rth@redhat.com>
7829
7830 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
7831 dwarf2out_frame_init.
7832
78332011-07-07 Eric Botcazou <ebotcazou@adacore.com>
7834
7835 * gcc-interface/misc.c (gnat_init): Tweak previous change.
7836
78372011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7838
7839 PR target/39150
7840 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
7841
78422011-07-06 Richard Guenther <rguenther@suse.de>
7843
7844 * gcc-interface/misc.c (gnat_init): Merge calls to
7845 build_common_tree_nodes and build_common_tree_nodes_2.
7846 Re-initialize boolean_false_node.
7847
78482011-07-02 Eric Botcazou <ebotcazou@adacore.com>
7849 Olivier Hainque <hainque@adacore.com>
7850 Nicolas Setton <setton@adacore.com>
7851
7852 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
7853 the type according to the ARTIFICIAL_P parameter.
7854 (create_type_decl): Likewise.
7855 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
7856
78572011-07-01 Eric Botcazou <ebotcazou@adacore.com>
7858
7859 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
7860 (gnatbind): Likewise.
7861
78622011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7863
7864 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
7865
78662011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7867
7868 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
7869 local variable throughout. Remove useless call to Base_Type.
7870 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
7871 Take it also into account for the volatileness of the field. Set the
7872 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
7873
78742011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7875
7876 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
7877 on a dereference built for a by-ref object if it has an address clause.
7878
78792011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7880
7881 * einfo.ads (Address_Taken): Document use for the second argument of
7882 Asm_Input and Asm_Output attributes.
7883 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
7884 argument is an entity name, then set Address_Taken on it.
7885 <Attribute_Asm_Output>: Likewise.
7886 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
7887 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
7888 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
7889 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
7890
78912011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
7892
7893 PR middle-end/46500
7894 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
7895
78962011-06-14 Joseph Myers <joseph@codesourcery.com>
7897
7898 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
7899 (ada/utils.o): Update dependencies.
7900 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
7901 ../../../libcpp/libcpp.a.
7902 * gcc-interface/utils.c: Include common/common-target.h.
7903 (process_attributes): Use targetm_common.have_named_sections.
7904
79052011-06-07 Richard Guenther <rguenther@suse.de>
7906
7907 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
7908 set_sizetype.
7909
79102011-06-06 Eric Botcazou <ebotcazou@adacore.com>
7911
7912 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
7913 TREE_THIS_NOTRAP flag.
7914
79152011-06-06 Eric Botcazou <ebotcazou@adacore.com>
7916
7917 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
7918 Fix thinko.
7919
79202011-06-06 Eric Botcazou <ebotcazou@adacore.com>
7921
7922 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
7923 constants whose full view has discriminants specially.
7924
79252011-06-06 Eric Botcazou <ebotcazou@adacore.com>
7926
7927 * gcc-interface/utils.c: Include diagnostic.h.
7928 (gnat_write_global_declarations): Output debug information for all
7929 global type declarations before finalizing the compilation unit.
7930 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
7931
79322011-05-25 Jakub Jelinek <jakub@redhat.com>
7933
7934 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
7935
79362011-05-25 Kai Tietz <ktietz@redhat.com>
7937
7938 * adaint.c (__gnat_to_canonical_file_list_next): Use array
7939 initialization instead of const/none-const pointer assignment.
7940
79412011-05-24 Joseph Myers <joseph@codesourcery.com>
7942
7943 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
7944 $(EXTRA_GNAT1_OBJS).
7945 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
7946 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
7947 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
7948 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
7949 libcommon-target.a instead of prefix.o.
7950
79512011-05-21 Joseph Myers <joseph@codesourcery.com>
7952
7953 PR ada/49097
7954 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
7955
79562011-05-20 Joseph Myers <joseph@codesourcery.com>
7957
7958 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
7959 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
7960 instead of version.o.
7961
79622011-05-18 Kai Tietz <ktietz@redhat.com>
7963
7964 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
7965 boolean_false_node instead of integer_zero_node.
7966 (convert_with_check): Likewise.
7967 * gcc-interface/decl.c (choices_to_gnu): Likewise.
7968
79692011-05-12 Eric Botcazou <ebotcazou@adacore.com>
7970
7971 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
7972 type of the parameter is an unconstrained array, convert the actual to
7973 the type of the formal in the In Out and Out cases as well.
7974
79752011-05-11 Nathan Froyd <froydnj@codesourcery.com>
7976
7977 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
7978 call build_function_type_array or build_varargs_function_type_array
7979 instead.
7980 (create_subprog_type): Don't call build_function_type; call
7981 build_function_type_vec instead.
7982
79832011-05-11 Nathan Froyd <froydnj@codesourcery.com>
7984
7985 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
7986 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
7987 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
7988
79892011-05-07 Eric Botcazou <ebotcazou@adacore.com>
7990
7991 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
7992
7993 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
7994 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
7995
79962011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7997
7998 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
7999
80002011-05-05 Nathan Froyd <froydnj@codesourcery.com>
8001
8002 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
8003 instead of accessing TYPE_ARG_TYPES directly.
8004 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
8005
80062011-05-05 Eric Botcazou <ebotcazou@adacore.com>
8007
8008 PR ada/48844
8009 * gcc-interface/gigi.h (get_variant_part): Declare.
8010 * gcc-interface/decl.c (get_variant_part): Make global.
8011 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
8012 types have the same constant size, are record types and T1 has a
8013 variant part while T2 doesn't.
8014
80152011-05-05 Eric Botcazou <ebotcazou@adacore.com>
8016
8017 * gcc-interface/utils.c (begin_subprog_body): Do not call
8018 get_pending_sizes.
8019 (end_subprog_body): Likewise.
8020
80212011-05-04 Richard Guenther <rguenther@suse.de>
8022
8023 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
8024 int_const_binop.
8025 (pos_to_constructor): Likewise.
8026
80272011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 8028 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
8029
8030 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
8031 of build_function_type. Adjust calls to...
8032 (build_raise_check): ...this. Do not take a void_tree parameter.
8033 Call build_function_type_list instead of build_function_type.
8034 Fix head comment and swap couple of conditional blocks.
8035
80362011-04-30 Eric Botcazou <ebotcazou@adacore.com>
8037
8038 * gnatvsn.ads (Library_Version): Bump to 4.7.
8039 (Current_Year): Bump to 2011.
8040
80412011-04-29 Michael Matz <matz@suse.de>
8042
8043 * gcc-interface/misc.c (gnat_handle_option): Set
8044 warn_maybe_uninitialized.
8045
80462011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
8047
8048 * gnat_ugn.texi (Complexity Metrics Control): Update link to
8049 the Watson/McCabe paper.
8050
80512011-04-23 Jim Meyering <meyering@redhat.com>
8052
8053 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
8054
80552011-04-22 Eric Botcazou <ebotcazou@adacore.com>
8056
8057 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
8058 onto the new type.
8059
80602011-04-22 Eric Botcazou <ebotcazou@adacore.com>
8061
8062 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
8063 parameter.
8064 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
8065 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
8066 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
8067 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
8068 <all>: Do not set flags on the reused DECL node coming from an alias.
8069 Set DECL_IGNORED_P on the DECL node built for subprograms if they
8070 don't need debug info here...
8071 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
8072 (gigi): Adjust calls to create_subprog_decl.
8073 (build_raise_check): Likewise.
8074 (establish_gnat_vms_condition_handler): Likewise.
8075 (Compilation_Unit_to_gnu): Likewise.
8076 (gnat_to_gnu): Likewise.
8077
80782011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8079
8080 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
8081 (NO_REORDER_ADAFLAGS): New variable.
8082 (EXTRA_GNATTOOLS): Always define.
8083 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
8084 Clean up and adjust list of files compiled with special options.
8085 * gcc-interface/Make-lang.in: Likewise.
8086 (ada/decl.o): Cosmetical change.
8087 (ada/misc.o): Remove dependency on $(PLUGIN_H).
8088
80892011-04-20 Jim Meyering <meyering@redhat.com>
8090
8091 * initialize.c (__gnat_initialize): Remove useless if-before-free.
8092
80932011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8094
8095 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
8096 $(CFLAGS) on the link line.
8097
80982011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8099
8100 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
8101 padded type built for the return type if it is unconstrained.
8102
81032011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8104
8105 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
8106
81072011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8108
8109 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
8110 before calling TREE_CHAIN.
8111 * gcc-interface/misc.c (gnat_init_ts): New function.
8112 (LANG_HOOKS_INIT_TS): Define.
8113
81142011-04-12 Martin Jambor <mjambor@suse.cz>
8115
8116 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
8117 instead of cgraph_node.
8118
81192011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8120
8121 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
8122 alignment on fields of the RETURN type built for the Copy-In Copy-Out
8123 mechanism.
8124
81252011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8126
8127 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
8128 of aggregate types that contain a placeholder.
8129
81302011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8131
8132 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
8133 TYPE_ARG_TYPES.
8134 (handle_type_generic_attribute): Likewise.
8135
81362011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8137
8138 PR ada/47163
8139 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
8140
81412011-04-04 Kai Tietz <ktietz@redhat.com>
8142
8143 PR ada/47163
8144 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
8145 to flag value.
8146
81472011-04-02 Eric Botcazou <ebotcazou@adacore.com>
8148
8149 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
8150 type case, do not strip a padding type around the array type.
8151
81522011-04-02 Eric Botcazou <ebotcazou@adacore.com>
8153
8154 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
8155 types.
8156
81572011-04-02 Eric Botcazou <ebotcazou@adacore.com>
8158
8159 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
8160 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
8161 code for -feliminate-unused-debug-types.
8162 (gnat_post_options): Likewise.
8163
81642011-04-02 Eric Botcazou <ebotcazou@adacore.com>
8165
8166 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
8167 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
8168 distinct copy.
8169
81702011-04-02 Eric Botcazou <ebotcazou@adacore.com>
8171
8172 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
8173 DECL_ARTIFICIAL flag on enumeration types.
8174
81752011-04-02 Eric Botcazou <ebotcazou@adacore.com>
8176
8177 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
8178 fat pointer types artificial unconditionally.
8179 <E_Array_Subtype>: Attach the base array type as a parallel type if it
8180 isn't artificial.
8181
81822011-04-02 Eric Botcazou <ebotcazou@adacore.com>
8183
8184 * gcc-interface/gigi.h (get_dummy_type): Declare.
8185 (build_dummy_unc_pointer_types): Likewise.
8186 (finish_fat_pointer_type): Likewise.
8187 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
8188 fat pointer type has been built, complete it in place.
8189 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
8190 and thin pointers. Remove useless variable.
8191 (finish_fat_pointer_type): Make global and move to...
8192 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
8193 (get_dummy_type): New function.
8194 (build_dummy_unc_pointer_types): Likewise.
8195 (gnat_pushdecl): Propage the name to the anonymous variants only.
8196 (update_pointer_to): Only adjust the pointer types in the unconstrained
8197 array case.
8198
81992011-04-02 Eric Botcazou <ebotcazou@adacore.com>
8200
8201 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
8202 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
8203 if this is a Taft amendment type and the full declaration is available.
8204 * gcc-interface/trans.c (process_type): Likewise.
8205 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
8206 (process_freeze_entity): Likewise.
8207 * gcc-interface/utils.c (dummy_global): New static variable.
8208 (gnat_write_global_declarations): If there are types declared as used
8209 at the global level, insert them in the global hash table.
8210
82112011-04-02 Eric Botcazou <ebotcazou@adacore.com>
8212
8213 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
8214 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
8215 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
8216 copy.
8217 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
8218 flag of the type accordingly.
8219 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
8220
82212011-04-02 Eric Botcazou <ebotcazou@adacore.com>
8222
8223 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
8224 finalizing types when updating the pointers to the designated type.
8225 <all>: Finalize the deferred types even if we didn't defer processing
8226 of incomplete types in this invocation.
8227
82282011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
8229 Nicolas Setton <setton@adacore.com>
8230 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
8231
8232 * gcc-interface/misc.c (gnat_descriptive_type): New function.
8233 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
8234
82352011-03-28 Kai Tietz <ktietz@redhat.com>
8236
8237 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
8238 Windows targets.
8239 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
8240 * system-mingw.ads (System): Change ZCX_By_Default default to True.
8241
8242 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
8243
82442011-03-28 Tristan Gingold <gingold@adacore.com>
8245
8246 PR ada/44431
8247 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
8248 Use ada output of gnatbind.
8249 (ada/b_gnatb.adb): Ditto.
8250 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
8251 (ada.mostlyclean, ada.stage1)
8252 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
8253 (ada.stagefeedback): Adjust.
8254 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8255 Use ada output of gnatbind.
8256 (b_gnatm.adb): Ditto.
8257 (b_gnatl.o, b_gnatm.o): New rules.
8258
82592011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8260
8261 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
8262 for the padded type built to support a specified size or alignment.
8263
82642011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8265
8266 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
8267 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
8268 unconditionally to the end of the unit when the designated type is
8269 limited_with'ed.
8270 <all>: Rename local variable. Attempt to un-defer types only and do it
8271 for limited_with'ed types as well.
8272 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
8273 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
8274 consistently and remove redundant call to finalize_from_with_types.
8275
82762011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8277
8278 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
8279 subprograms without a previous spec declared in the same unit.
8280 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
8281 subprograms at the end of the unit instead of at the beginning.
8282 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
8283 isn't public for the special handling of non-inline functions nested
8284 inside inline external functions.
8285
82862011-03-25 Jeff Law <law@redhat.com>
8287
8288 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
8289
82902011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8291
8292 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
8293 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
8294 to compute Set_Size_Depends_On_Discriminant.
8295 (Layout_Type): Call it on array types in back-end layout mode.
8296 * sem_util.adb (Requires_Transient_Scope): Return true for array
8297 types only if the size depends on the value of discriminants.
8298 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
8299 type if the RHS is a call to a function that returns an unconstrained
8300 type with default discriminant.
8301
83022011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8303
8304 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
8305 non-conversion to the nominal result type at the end.
8306
83072011-03-23 Eric Botcazou <ebotcazou@adacore.com>
8308
8309 * gcc-interface/trans.c (create_temporary): New function taken from...
8310 (create_init_temporary): ...here. Call it.
8311 (call_to_gnu): Create the temporary for the return value early, if any.
8312 Create it for a function with copy-in/copy-out parameters if there is
8313 no target; in other cases of copy-in/copy-out, use another temporary.
8314 Push the new binding level lazily. Add and rename local variables.
8315
83162011-03-23 Eric Botcazou <ebotcazou@adacore.com>
8317
8318 * gcc-interface/decl.c (validate_size): Improve comments and tweak
8319 error message.
8320 (set_rm_size): Likewise.
8321
83222011-03-23 Eric Botcazou <ebotcazou@adacore.com>
8323
8324 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
8325 for the padded type built in order to support a specified alignment.
8326 Fix incorrect formatting.
8327
83282011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8329
8330 PR bootstrap/48216
8331 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
8332
83332011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8334
8335 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
8336 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
8337 to the end of the list. Adjust recursive call. Rename local variable.
8338 If REORDER is true, reorder components of the record type.
8339 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
8340 components_to_record and adjust the parameter list.
8341
83422011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8343
8344 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
8345 disabled, use the variable for bounds of loop iteration scheme.
8346
83472011-03-21 Kai Tietz <ktietz@redhat.com>
8348
8349 PR target/12171
8350 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
8351
83522011-03-17 Eric Botcazou <ebotcazou@adacore.com>
8353
8354 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
8355 out whether the expression is read-only. Short-circuit placeholder
8356 case and rename a couple of local variables.
8357
83582011-03-17 Eric Botcazou <ebotcazou@adacore.com>
8359
8360 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
8361 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
8362 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
8363 (convert): Deal with conversions from a smaller form type specially.
8364
83652011-02-14 Eric Botcazou <ebotcazou@adacore.com>
8366
8367 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
8368 its argument, except for the special -I- switch.
8369
83702011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
8371
8372 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
8373 "Ada Issues".
8374
83752011-02-08 Eric Botcazou <ebotcazou@adacore.com>
8376
8377 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
8378
83792011-02-03 Eric Botcazou <ebotcazou@adacore.com>
8380
8381 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
8382 GNAT_FORMAL.
8383 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
8384 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
8385 instead of GNAT_FORMAL. Protect the expression against multiple uses.
8386 Do not generate the check directly, instead instantiate the template
8387 check present in the descriptor.
8388 (make_descriptor_field): Move around.
8389 (build_vms_descriptor32): Build a template check in the POINTER field.
8390 (build_vms_descriptor): Remove useless suffixes.
8391 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
8392
83932011-01-26 Eric Botcazou <ebotcazou@adacore.com>
8394
8395 PR bootstrap/47467
8396 * targext.c: Include target files if IN_RTS is defined.
8397
83982011-01-26 Richard Guenther <rguenther@suse.de>
8399
8400 PR bootstrap/47467
8401 * targext.c: Include config.h.
8402 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
8403 dependency.
8404
84052011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 8406 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
8407
8408 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
8409
84102011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8411
8412 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
8413 end-of-case on the end label and its associated gotos, if any.
8414
84152011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8416
8417 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
8418 expressions of the parameter cache within the statement group of
8419 the CICO mechanism.
8420
84212011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 8422 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
8423
8424 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
8425 (set_end_locus_from_node): New function.
8426 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
8427 make and the function end_locus.
8428 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
8429 for the elaboration subprogram.
8430 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
8431 set the end_locus of the expression as well.
8432
84332011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8434
8435 PR ada/47131
8436 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
8437 variables that are referenced in exception handlers volatile.
8438
8439
8440\f
8441Copyright (C) 2011 Free Software Foundation, Inc.
8442
8443Copying and distribution of this file, with or without modification,
8444are permitted in any medium without royalty provided the copyright
8445notice and this notice are preserved.
8446
8447 * gnat_rm.texi: Ramification of pragma Eliminate documentation
8448 - fix bugs in the description of Source_Trace;
8449 - get rid of UNIT_NAME;
8450
4fbad0ba
AC
84512011-08-02 Javier Miranda <miranda@adacore.com>
8452
8453 * exp_ch9.adb
8454 (Build_Dispatching_Requeue): Adding support for VM targets
8455 since we cannot directly reference the Tag entity.
8456 * exp_sel.adb (Build_K): Adding support for VM targets.
8457 (Build_S_Assignment): Adding support for VM targets.
8458 * exp_disp.adb
8459 (Default_Prim_Op_Position): In VM targets do not restrict availability
8460 of predefined interface primitives to compiling in Ada 2005 mode.
8461 (Is_Predefined_Interface_Primitive): In VM targets this service is not
8462 restricted to compiling in Ada 2005 mode.
8463 (Make_VM_TSD): Generate code that declares and initializes the OSD
8464 record. Needed to support dispatching calls through synchronized
8465 interfaces.
8466 * exp_ch3.adb
8467 (Make_Predefined_Primitive_Specs): Enable generation of predefined
8468 primitives associated with synchronized interfaces.
8469 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
8470 primitives associated with synchronized interfaces.
8471
84722011-08-02 Yannick Moy <moy@adacore.com>
8473
8474 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
8475 statements hidden in SPARK if preceded by the HIDE directive
8476 (Parse_Exception_Handlers): mark each exception handler in a sequence of
8477 exception handlers as hidden in SPARK if preceded by the HIDE directive
8478 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
8479 if starting with the HIDE directive
8480 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
8481 starting with the HIDE directive; mark the declarations in a private
8482 part as hidden in SPARK if the private part starts with the HIDE
8483 directive
8484 * restrict.adb, restrict.ads
8485 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
8486 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
8487 argument node belongs to a part which is hidden in SPARK
8488 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
8489 parts in SPARK; protect the possibly costly call to
8490 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
8491 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
8492 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
8493 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
8494 Tok_SPARK_Hide.
8495 (Scan): recognize special comment starting with '#' and followed by
8496 SPARK keyword "hide" as a HIDE directive.
8497
84982011-08-02 Yannick Moy <moy@adacore.com>
8499
8500 * types.ads, erroutc.ads: Minor reformatting.
8501
85022011-08-02 Vincent Celier <celier@adacore.com>
8503
8504 * link.c: Add response file support for cross platforms.
8505
6ff6152d
ES
85062011-08-02 Ed Schonberg <schonberg@adacore.com>
8507
8508 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
8509 in an association, set parent field of copy before partial analysis.
8510 * sem_res.adb (Resolve_Slice): create reference to itype only when
8511 expansion is enabled.
8512
975c6896
YM
85132011-08-02 Yannick Moy <moy@adacore.com>
8514
8515 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
8516 for new flag denoting which subprogram bodies are in ALFA
8517 * restrict.adb, sem_ch7.adb: Update comment
8518 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
8519 sem_ch9.adb, sem_res.adb: Add calls to
8520 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
8521 * sem_ch6.adb (Analyze_Function_Return): add calls to
8522 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
8523 middle of the body, and extended return.
8524 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
8525 False when missing return.
8526 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
8527 to True for subprograms whose spec is in ALFA. Remove later on the flag
8528 on the entity used for a subprogram body when there exists a separate
8529 declaration.
8530 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
8531 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
8532 False, otherwise do nothing.
8533
afc8324d
AC
85342011-08-02 Robert Dewar <dewar@adacore.com>
8535
8536 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
8537
85382011-08-02 Yannick Moy <moy@adacore.com>
8539
8540 * sem_ch4.ads: minor formatting.
8541
2ba431e5
YM
85422011-08-02 Yannick Moy <moy@adacore.com>
8543
8544 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
8545 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
8546 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
8547 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
8548 opt.ads: cleanup of SPARK mode
8549
0f853035
YM
85502011-08-02 Yannick Moy <moy@adacore.com>
8551
8552 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
8553 types.
8554 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
8555 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
8556 * sem_ch3.adb
8557 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
8558 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
8559 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
8560 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
8561 types.
8562 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
8563 non-static range.
8564 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
8565 functions whose return type is not in ALFA.
8566 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
8567 specifications.
8568 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
8569 parameter's type is not in ALFA.
8570 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
8571 types are in ALFA.
8572
d2b10647
ES
85732011-08-02 Ed Schonberg <schonberg@adacore.com>
8574
8575 * sem_ch6 (Analyze_Expression_Function): treat the function as
8576 Inline_Always, and introduce a subprogram declaration for it when it is
8577 not a completion.
8578 * inline.adb (Add_Inlined_Body): recognize bodies that come from
8579 expression functions, so that the back-end can determine whether they
8580 can in fact be inlined.
8581 * sem_util.adb (Is_Expression_Function): predicate to determine whether
8582 a function body comes from an expression function.
8583
c7b9d548
AC
85842011-08-02 Gary Dismukes <dismukes@adacore.com>
8585
8586 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
8587 null exclusions to test Can_Never_Be_Null on the anonymous access types
8588 of the formals rather than testing the formals themselves. Exclude this
8589 check in cases where the Old_Formal is marked as a controlling formal,
8590 to avoid issuing spurious errors for bodies completing dispatching
8591 operations (due to the flag not getting set on controlling access
8592 formals in body specs).
8593 (Find_Corresponding_Spec): When checking full and subtype conformance of
8594 subprogram bodies in instances, pass Designated and E in that order, for
8595 consistency with the expected order of the formals (New_Id followed by
8596 Old_Id).
8597
85982011-08-02 Robert Dewar <dewar@adacore.com>
8599
8600 * sem_ch8.adb: Minor reformatting.
8601
1138cf59
AC
86022011-08-02 Ed Schonberg <schonberg@adacore.com>
8603
8604 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
8605 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
8606 primitive operations of class-wide actuals.
8607
86082011-08-02 Javier Miranda <miranda@adacore.com>
8609
8610 * exp_atag.ads, exp_atag.adb
8611 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
8612 since its value is implicitly passed in argument Typ.
8613 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
8614 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
8615 Build_Common_Dispatching_Select_Statements.
8616
7b9db926
RD
86172011-08-02 Robert Dewar <dewar@adacore.com>
8618
8619 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
8620 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
8621 Minor reformatting.
8622
e8374e7a
AC
86232011-08-02 Robert Dewar <dewar@adacore.com>
8624
8625 * sem_res.adb: Minor reformatting.
8626 * sem_prag.adb: Minor reformatting.
8627
86282011-08-02 Javier Miranda <miranda@adacore.com>
8629
8630 * exp_atag.adb, exp_atags.ads
8631 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
8632 by the tagged type Entity. Required to use this routine in the VM
8633 targets since we do not have available the Tag entity in the VM
8634 platforms.
8635 * exp_ch6.adb
8636 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
8637 Ada.Tags has not been previously loaded.
8638 * exp_ch7.adb
8639 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
8640 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
8641 * sem_aux.adb
8642 (Enclosing_Dynamic_Scope): Add missing support to handle the full
8643 view of enclosing scopes. Required to handle enclosing scopes that
8644 are synchronized types whose full view is a task type.
8645 * exp_disp.adb
8646 (Build_VM_TSDs): Minor code improvement to avoid generating and
8647 analyzing lists with empty nodes.
8648 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
8649 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
8650 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
8651 (Make_Disp_Timed_Select_Body): Add support for VM targets.
8652 (Make_Select_Specific_Data_Table): Add support for VM targets.
8653 (Make_VM_TSD): Generate code to initialize the SSD structure of
8654 the TSD.
8655
86562011-08-02 Yannick Moy <moy@adacore.com>
8657
8658 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
8659 cross-references section in ALI.
8660 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
8661 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
8662 Sub).
8663 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
8664 subprogram or package entity of a node
8665 (Is_Local_Reference_Type): new function returns True for references
8666 selected in local cross-references.
8667 (Lt): function extracted from Lt in Output_References
8668 (Write_Entity_Name): function extracted from Output_References
8669 (Generate_Definition): generate reference with type 'D' for definition
8670 of objects (object declaration and parameter specification), with
8671 appropriate locations and units, for use in local cross-references.
8672 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
8673 references of type 'I' for initialization in object definition.
8674 (Output_References): move part of function Lt and procedure
8675 Write_Entity_Name outside of the body. Ignore references of types 'D'
8676 and 'I' introduced for local cross-references.
8677 (Output_Local_References): new procedure to output the local
8678 cross-references sections.
8679 (Lref_Entity_Status): new array defining whether an entity is a local
8680 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
8681 with 'I' type when initialization expression is present.
8682 * get_scos.adb, get_scos.ads: Correct comments and typos
8683
1f6439e3
AC
86842011-08-02 Javier Miranda <miranda@adacore.com>
8685
8686 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
8687 the JVM target.
8688 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
8689 the JVM target.
8690 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
8691 TSD support.
8692
86932011-08-02 Vincent Celier <celier@adacore.com>
8694
8695 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
8696 (No_Space_Img): New function
8697 (Find_Excluded_Sources): When reading from a file, record the file name
8698 and the line number for each excluded source.
8699 (Mark_Excluded_Sources): When reporting an error, if the excluded
8700 sources were read from a file, include file name and line number in
8701 the error message.
8702
87032011-08-02 Ed Schonberg <schonberg@adacore.com>
8704
8705 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
8706
ab027d28
RD
87072011-08-02 Robert Dewar <dewar@adacore.com>
8708
8709 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
8710
b3b28b0c
JM
87112011-08-02 Javier Miranda <miranda@adacore.com>
8712
8713 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
8714 generation of TSDs to the DOTNET compiler.
8715 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
8716 generation of TSDs to the DOTNET compiler.
8717
9732e886
JM
87182011-08-02 Javier Miranda <miranda@adacore.com>
8719
8720 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
8721 record of all the tagged types declared inside library level package
8722 declarations, library level package bodies or library level subprograms.
8723 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
8724 associated with a given tagged type.
8725 (Build_VM_TSDs): New subprogram.
8726 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
8727 compilation units that are subprograms.
8728 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
8729 compilation units that are package bodies.
8730 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
8731 units that are a package declaration or a package instantiation.
8732 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
8733 reorganization to improve the error generated by the frontend when the
8734 function Ada.Tags.Secondary_Tag is not available.
8735 * rtsfind.ads (RE_Register_TSD): New runtime entity.
8736 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
8737
e526d0c7
AC
87382011-08-02 Javier Miranda <miranda@adacore.com>
8739
8740 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
8741
87422011-08-02 Robert Dewar <dewar@adacore.com>
8743
8744 * s-imenne.ads: Minor reformatting.
8745
87462011-08-02 Robert Dewar <dewar@adacore.com>
8747
8748 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
8749 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
8750 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
8751
87522011-08-02 Robert Dewar <dewar@adacore.com>
8753
8754 * einfo.ads (Materialize_Entity): Document this is only for renamings
8755 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
8756 required debug information in the case where we transform the object
8757 declaration into a renaming declaration.
8758 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
8759 object
8760 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
8761 Materialize_Entity.
8762
5b1e6aca
RD
87632011-08-02 Robert Dewar <dewar@adacore.com>
8764
8765 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
8766 Suppress_Init_Procs.
8767 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
8768 Suppress_Initialization/Initialization_Suppressed.
8769 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
8770 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
8771 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
8772 * sem_prag.adb: New processing for pragma Suppress_Initialization.
8773
5ad4969d
RD
87742011-08-02 Robert Dewar <dewar@adacore.com>
8775
8776 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
8777 Minor reformatting.
8778
8c4ee6f5
AC
87792011-08-02 Ed Schonberg <schonberg@adacore.com>
8780
8781 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
8782 only have inheritable classwide pre/postconditions.
8783
87842011-08-02 Javier Miranda <miranda@adacore.com>
8785
8786 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
8787 * rtsfind.ads (RE_Check_TSD): New runtime entity.
8788 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
8789 checks if the external tag of a type is the same as the external tag
8790 of some other declaration.
8791
0b3d16c0
AC
87922011-08-02 Thomas Quinot <quinot@adacore.com>
8793
8794 * s-taskin.ads: Minor reformatting.
8795
87962011-08-02 Emmanuel Briot <briot@adacore.com>
8797
8798 * g-comlin.adb (Display_Help): swap the order in which it prints the
8799 short help and the general usage.
8800
88012011-08-02 Ed Schonberg <schonberg@adacore.com>
8802
8803 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
8804 the aspect declarations and attach them to the generic copy for
8805 subsequent analysis.
8806 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
8807 declarations of the generic tree to the new subprogram declarations.
8808 * sem_attr.adb (Check_Precondition_Postcondition): recognize
8809 conditions that apply to a subprogram instance.
8810
88112011-08-02 Robert Dewar <dewar@adacore.com>
8812
8813 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
8814
88152011-08-02 Ed Schonberg <schonberg@adacore.com>
8816
8817 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
8818 private type with a tagged full view is not derived in the immediate
8819 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
8820
4637729f
AC
88212011-08-02 Robert Dewar <dewar@adacore.com>
8822
8823 * exp_ch4.adb: Minor reformatting.
8824
88252011-08-02 Ed Schonberg <schonberg@adacore.com>
8826
8827 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
8828 Ada2012 iterator, the loop will be rewritten during expansion into a
8829 while loop with a cursor and an element declaration. Do not analyze the
8830 body in this case, because if the container is for indefinite types the
8831 actual subtype of the elements will only be determined when the cursor
8832 declaration is analyzed.
8833
88342011-08-02 Arnaud Charlet <charlet@adacore.com>
8835
8836 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
8837 size/alignment related attributes in CodePeer_Mode.
8838
88392011-08-02 Gary Dismukes <dismukes@adacore.com>
8840
8841 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
8842 Prepend_Element, since this can result in the operation getting the
8843 wrong slot in the full type's dispatch table if the full type has
8844 inherited operations. The incomplete type's operation will get added
8845 to the proper position in the full type's primitives
8846 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
8847 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
8848 dispatching operations, since there are cases where nonprimitive
8849 subprograms can get added to the list of incomplete dependents (such
8850 as subprograms in nested packages).
8851 * sem_ch6.adb (Process_Formals): First, remove test for being in a
8852 private part when determining whether to add a primitive with a
8853 parameter of a tagged incomplete type to the Private_Dependents list.
8854 Such primitives can also occur in the visible part, and should not have
8855 been excluded from being private dependents.
8856 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
8857 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
8858 list of a Taft-amendment incomplete type is a primitive before issuing
8859 an error that the full type must appear in the same unit. There are
8860 cases where nonprimitives can be in the list (such as subprograms in
8861 nested packages).
8862 * sem_disp.adb (Derives_From): Use correct condition for checking that
8863 a formal's type is derived from the type of the corresponding formal in
8864 the parent subprogram (the condition was completely wrong). Add
8865 checking that was missing for controlling result types being derived
8866 from the result type of the parent operation.
8867
4c60de0c
YM
88682011-08-02 Yannick Moy <moy@adacore.com>
8869
8870 * errout.adb (First_Node): minor renaming
8871 * restrict.adb (Check_Formal_Restriction): put restriction warning on
8872 first node.
8873
f5afb270
AC
88742011-08-02 Yannick Moy <moy@adacore.com>
8875
8876 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
8877 before accessing operands.
8878 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
8879 decide whether an initialization expression respects SPARK rules, as
8880 the plain node is the expanded one. This allows for more valid warnings
8881 to be issued.
8882 * gnat_rm.texi: Minor update.
8883
88842011-08-02 Arnaud Charlet <charlet@adacore.com>
8885
8886 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
8887 previous change.
8888
88892011-08-02 Robert Dewar <dewar@adacore.com>
8890
8891 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
8892
88932011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8894
8895 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
8896 loop statements and the element renaming declaration with a block when
8897 the element type is controlled.
8898
88992011-08-02 Yannick Moy <moy@adacore.com>
8900
8901 * sinfo.ads: Minor formatting.
8902
89032011-08-02 Ed Schonberg <schonberg@adacore.com>
8904
8905 * sem_aggr.adb (Add_Association): if the association has a box and no
8906 expression, use the Sloc of the aggregate itself for the new
8907 association.
8908 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
8909 the Original_Node.
8910
db72f10a
AC
89112011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8912
8913 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
8914 When a container is provided via a function call, generate a renaming
8915 of the function result. This avoids the creation of a transient scope
8916 and the premature finalization of the container.
8917 * exp_ch7.adb (Is_Container_Cursor): Removed.
8918 (Wrap_Transient_Declaration): Remove the supression of the finalization
8919 of the list controller when the declaration denotes a container cursor,
8920 it is not needed.
8921
89222011-08-02 Yannick Moy <moy@adacore.com>
8923
8924 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
8925 node is from source, instead of the original node being from source.
8926 * sem_aggr.adb
8927 (Resolve_Array_Aggregate): refine the check for a static expression, to
8928 recognize also static ranges
8929 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
8930 Array_Type_Declaration): postpone the test for the type being a subtype
8931 mark after the type has been resolved, so that component-selection and
8932 expanded-name are discriminated.
8933 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
8934 to distinguish the case of an iteration scheme, so that an error is
8935 issed on a non-static range in SPARK except in an iteration scheme.
8936 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
8937 In_Iter_Schm = True.
8938 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
8939 user-defined operators so that they are allowed in renaming
8940 * sem_ch8.adb
8941 (Find_Selected_Component): refine the check for prefixing of operators
8942 so that they are allowed in renaming. Move the checks for restrictions
8943 on selector name after analysis discriminated between
8944 component-selection and expanded-name.
8945 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
8946 concatenation argument of string type if it is static.
8947 * sem_util.adb, sem_util.ads
8948 (Check_Later_Vs_Basic_Declarations): add a new function
8949 Is_Later_Declarative_Item to decice which declarations are allowed as
8950 later items, in the two different modes Ada 83 and SPARK. In the SPARK
8951 mode, add that renamings are considered as later items.
8952 (Enclosing_Package): new function to return the enclosing package
8953 (Enter_Name): correct the rule for homonyms in SPARK
8954 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
8955 from source (result of expansion) to avoid issuing wrong warnings.
8956
89572011-08-02 Ed Schonberg <schonberg@adacore.com>
8958
8959 * errout.adb: On anything but an expression First_Node returns its
8960 argument.
8961
23685ae6
AC
89622011-08-02 Pascal Obry <obry@adacore.com>
8963
8964 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
8965
89662011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8967
8968 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
8969 Set the associated loop as the related expression of internally
8970 generated cursors.
8971 * exp_ch7.adb (Is_Container_Cursor): New routine.
8972 (Wrap_Transient_Declaration): Supress the finalization of the list
8973 controller when the declaration denotes a container cursor.
8974
89752011-08-02 Yannick Moy <moy@adacore.com>
8976
8977 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
8978 command line now.
8979 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
8980 expression is a simple expression. This check cannot be performed in
8981 the semantics, so just drop it.
8982 (P_Index_Or_Discriminant_Constraint): move check that the index or
8983 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
8984 semantics. Other cases were previously checked in the semantics.
8985 * par-ch4.adb (P_Name): move checks that a selector name is not
8986 character literal or an operator symbol to Find_Selected_Component in
8987 the semantics
8988 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
8989 declarations are not placed after later declarations in a separate
8990 procedure in Sem_Util (possibly not the best choice?), to be used both
8991 during parsing, for Ada 83 mode, and during semantic analysis, for
8992 SPARK mode.
8993 * par-endh.adb (Check_End): move check that end label is not missing
8994 to Process_End_Label in the semantics
8995 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
8996 the special case for SPARK restriction
8997 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
8998 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
8999 parameter Force to issue the error message even on internal node (used
9000 for generated end label). Call Check_Restriction to check when an error
9001 must be issued. In SPARK mode, issue an error message even if the
9002 restriction is not set.
9003 (Check_Restriction): new procedure with an additional out parameter to
9004 inform the caller that a message has been issued
9005 * sem_aggr.adb: Minor modification of message
9006 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
9007 instead of issuing an error message directly
9008 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
9009 declarations are not placed after later declarations, by calling
9010 Check_Later_Vs_Basic_Declarations
9011 (Analyze_Subtype_Declaration): move here the check that an index or
9012 discriminant constraint must be a subtype mark. Change the check that
9013 a subtype of String must start at one so that it works on subtype marks.
9014 * sem_ch4.adb (Analyze_Call): move here the check that a named
9015 association cannot follow a positional one in a call
9016 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
9017 instead of issuing an error message directly
9018 * sem_ch8.adb (Find_Selected_Component): move here the check that a
9019 selector name is not a character literal or an operator symbol. Move
9020 here the check that the prefix of an expanded name cannot be a
9021 subprogram or a loop statement.
9022 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
9023 procedure called from parsing and semantics to check that basic
9024 declarations are not placed after later declarations
9025 (Process_End_Label): move here the check that end label is not missing
9026
90272011-08-02 Arnaud Charlet <charlet@adacore.com>
9028
9029 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
9030 representation clause in codepeer mode, since it confuses CodePeer and
9031 does not bring useful info.
9032
90332011-08-02 Ed Falis <falis@adacore.com>
9034
9035 * init.c: initialize fp hw on MILS.
9036
90372011-08-02 Ed Schonberg <schonberg@adacore.com>
9038
9039 * errout.adb (First_Node): for bodies, return the node itself (small
9040 optimization). For other nodes, do not check source_unit if the node
9041 comes from Standard.
9042
d2d9cc22
AC
90432011-08-02 Robert Dewar <dewar@adacore.com>
9044
9045 * exp_ch3.adb: Minor comment additions.
9046 * sem_ch13.adb: Minor reformatting.
9047
90482011-08-02 Pascal Obry <obry@adacore.com>
9049
9050 * make.adb, makeutl.adb: Removes some superfluous directory separator.
9051
a01b9df6
AC
90522011-08-02 Robert Dewar <dewar@adacore.com>
9053
9054 * sem_attr.adb: Minor reformatting.
9055
90562011-08-02 Robert Dewar <dewar@adacore.com>
9057
9058 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
9059 (Has_Default_Component_Value): Removed
9060 * einfo.ads Comment updates
9061 (Has_Default_Aspect): Replaces Has_Default_Value
9062 (Has_Default_Component_Value): Removed
9063 * exp_ch13.adb
9064 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
9065 * exp_ch3.adb
9066 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
9067 (Get_Simple_Init_Val): Handle Default_Value aspect
9068 (Needs_Simple_Initialization): Handle Default_Value aspect
9069 * exp_ch3.ads: Needs_Simple_Initialization
9070 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
9071 * par-prag.adb (Pragma_Default[_Component]Value) Removed
9072 * sem_ch13.adb
9073 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
9074 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
9075 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
9076
90772011-08-02 Ed Schonberg <schonberg@adacore.com>
9078
9079 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
9080 package containing iteration primitives.
9081 exp_ch5.adb (Expand_Iterator_Loop): ditto.
9082
75c90775
AC
90832011-08-02 Ed Schonberg <schonberg@adacore.com>
9084
9085 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
9086 "of", pre-analyze expression in case it is a function call with
9087 finalization actions that must be placed ahead of the loop.
9088 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
9089 on an Ada2012 iterator, insert them ahead of the rewritten loop.
9090
90912011-08-02 Geert Bosch <bosch@adacore.com>
9092
9093 * cstand.adb (Create_Float_Types): Only consider C's long double for
9094 Long_Long_Float, in addition to double.
9095
ded8909b
AC
90962011-08-02 Robert Dewar <dewar@adacore.com>
9097
9098 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
9099 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
9100 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
9101 Minor reformatting.
9102
91032011-08-02 Ed Schonberg <schonberg@adacore.com>
9104
9105 * sem_attr.adb: handle properly 'Result when it is a prefix of an
9106 indexed component.
9107
91082011-08-02 Javier Miranda <miranda@adacore.com>
9109
9110 * einfo.ads, einfo.adb
9111 (Original_Access_Type): Move this attribute to Node26 since there was
9112 an undocumented use of Node21 in E_Access_Subprogram_Type entities
9113 which causes conflicts and breaks the generation of the .NET compiler.
9114 (Interface_Name): Add missing documentation on JGNAT only uses of
9115 this attribute.
9116
70c34e1c
AC
91172011-08-02 Geert Bosch <bosch@adacore.com>
9118
9119 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
9120 (Find_Back_End_Float_Type): Likewise
9121 (Create_Back_End_Float_Types): Likewise
9122 (Create_Float_Types): Likewise
9123 (Register_Float_Type): Likewise
9124 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
9125 Nlist and split out type selection in new local Find_Base_Type function.
9126 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
9127 Nlist
9128 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
9129
91302011-08-02 Robert Dewar <dewar@adacore.com>
9131
9132 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
9133 alpha order).
9134 * opt.ads: Minor comment change.
9135 * sem_ch12.adb: Minor code reorganization.
9136
b715bc59
AC
91372011-08-02 Gary Dismukes <dismukes@adacore.com>
9138
9139 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
9140 subtype's list of rep items to the list on the full subtype in the case
9141 where the lists are the same.
9142
91432011-08-02 Geert Bosch <bosch@adacore.com>
9144
9145 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
9146 using the one from System.Strings, which also deallocates all strings.
9147
002bdd68
AC
91482011-08-02 Geert Bosch <bosch@adacore.com>
9149
9150 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
9151 function.
9152 * gcc-interface/Make-lang.in: Update dependencies.
9153
91542011-08-02 Olivier Hainque <hainque@adacore.com>
9155
9156 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
9157 end_locus.
9158
499769ec
AC
91592011-08-02 Javier Miranda <miranda@adacore.com>
9160
9161 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
9162 associated with anonymous access to subprograms.
9163
91642011-08-02 Geert Bosch <bosch@adacore.com>
9165
9166 * opt.ads
9167 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
9168 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
9169 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
9170 (Add_Symbol_Definition): Move to switch-c.adb
9171 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
9172 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
9173 (Add_Symbol_Definition): Move to switch-c.adb.
9174 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
9175 * sem_warn.adb
9176 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
9177 Move to warnsw.adb.
9178 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
9179 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
9180 Move to warnsw.adb.
9181 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
9182 (Add_Symbol_Definition): Moved from Prepcomp.
9183 * switch-c.ads: Update copyright notice. Use String_List instead of
9184 Argument_List, removing dependency on System.OS_Lib.
9185
aa1e353a
AC
91862011-08-02 Yannick Moy <moy@adacore.com>
9187
9188 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
9189 mode on initialization expression which does not respect SPARK
9190 restrictions.
9191 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
9192 if the tree referenced by its argument represents an initialization
9193 expression in SPARK, suitable for initializing an object in an object
9194 declaration.
9195
91962011-08-02 Javier Miranda <miranda@adacore.com>
9197
9198 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
9199 internally generated access to subprogram with its associated protected
9200 subprogram type.
9201 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
9202
15b682ca
GB
92032011-08-02 Geert Bosch <bosch@adacore.com>
9204
9205 * cstand.adb (Register_Float_Type): Print information about type to
9206 register, if the Debug_Flag_Dot_B is set.
9207 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
9208 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
9209 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
9210 with a requested precision of more than Max_Digits digits and no more
9211 than Max_Base_Digits digits, if a range specification is present and the
9212 Predefined_Float_Types list has a suitable type to derive from.
9213 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
9214 case of type completion with pragma Import
9215 * sem_prag.adb
9216 (Process_Import_Predefined_Type): Processing to complete a type
9217 with pragma Import. Currently supports floating point types only.
9218 (Set_Convention_From_Pragma): Do nothing without underlying type.
9219 (Process_Convention): Guard against absence of underlying type,
9220 which may happen when importing incomplete types.
9221 (Process_Import_Or_Interface): Handle case of importing predefined
9222 types. Tweak error message.
9223
f8726f2b
AC
92242011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9225
9226 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
9227 functions to previous change. Reorganize code slightly.
9228
92292011-08-02 Geert Bosch <bosch@adacore.com>
9230
9231 * back_end.ads (Register_Type_Proc): New call back procedure type for
9232 allowing the back end to provide information about available types.
9233 (Register_Back_End_Types): New procedure to register back end types.
9234 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
9235 available types.
9236 * cstand.adb (Back_End_Float_Types): New list for floating point types
9237 supported by the back end.
9238 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
9239 (Copy_Float_Type): New procedure to make new copies of predefined types.
9240 (Register_Float_Type): New call back procedure to populate the BEFT list
9241 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
9242 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
9243 (Create_Float_Types): New procedure to create entities for floating
9244 point types predefined in Standard, and put these and any remaining
9245 BEFTs on the Predefined_Float_Types list.
9246 * stand.ads (Predefined_Float_Types): New list for predefined floating
9247 point types that do not have declarations in package Standard.
9248
feecad68
AC
92492011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9250
9251 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
9252 entity node for the unit containing the parameter.
9253 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
9254 (Add_Inlined_Subprogram): Likewise.
9255 * gcc-interface/Make-lang.in: Update dependencies.
9256
92572011-08-02 Thomas Quinot <quinot@adacore.com>
9258
9259 * s-stusta.adb (Print): Make sure Pos is always initialized to a
9260 suitable value.
9261
12f0c50c
AC
92622011-08-02 Geert Bosch <bosch@adacore.com>
9263
9264 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
9265
92662011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9267
9268 * sem_type.adb (Covers): Move trivial case to the top and reuse the
9269 computed value of Base_Type.
9270
92712011-08-02 Yannick Moy <moy@adacore.com>
9272
9273 * restrict.adb (Check_Restriction): issue an error for any use of
9274 class-wide, even if the No_Dispatch restriction is not set.
9275 * sem_aggr.adb: Correct typos in comments and messages in formal mode
9276 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
9277 when completing a private extension, the type named in the private part
9278 is not the same as that named in the visible part.
9279 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
9280 of an inherited primitive operations of a tagged type or type extension
9281 that returns the tagged type.
9282 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
9283 function which returns True for an implicit operation inherited by the
9284 derived type declaration for the argument type.
9285 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
9286 order.
9287
fb86fe11
ES
92882011-08-02 Ed Schonberg <schonberg@adacore.com>
9289
9290 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
9291 Process_Bounds, to perform analysis with expansion of a range or an
9292 expression that is the iteration scheme for a loop.
9293 (Analyze_Iterator_Specification): If domain of iteration is given by a
9294 function call with a controlled result, as is the case if call returns
9295 a predefined container, ensure that finalization actions are properly
9296 generated.
9297 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
9298
62be5d0a
JM
92992011-08-02 Javier Miranda <miranda@adacore.com>
9300
9301 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
9302 * gcc-interface/Make-lang.in: Update dependencies.
9303
93042011-08-02 Javier Miranda <miranda@adacore.com>
9305
9306 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
9307 determine if the analysis is performed using N or Original_Node (N).
9308 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
9309 functionality of routine Is_Variable avoids code duplication.
9310 * checks.adb (Determine_Range): Handle temporaries generated by
9311 Remove_Side_Effects.
9312
93132011-08-02 Javier Miranda <miranda@adacore.com>
9314
9315 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
9316 expansion of the condition. Required since the previous analysis was
9317 done with expansion disabled (see Resolve_Quantified_Expression) and
9318 hence checks were not inserted and record comparisons have not been
9319 expanded.
9320
a20f4389
AC
93212011-08-02 Ed Falis <falis@adacore.com>
9322
9323 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
9324 Update header.
9325
93262011-08-02 Bob Duff <duff@adacore.com>
9327
9328 * opt.ads: Minor comment fix.
9329
93302011-08-02 Bob Duff <duff@adacore.com>
9331
9332 * sem_ch12.adb (Analyze_Package_Instantiation,
9333 Analyze_Subprogram_Instantiation): Turn off style checking while
9334 analyzing an instance. Whatever style checks that apply to the generic
9335 unit should apply, so it makes no sense to apply them in an instance.
9336 This was causing trouble when compiling an instance of a runtime
9337 unit that violates the -gnatyO switch.
9338 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
9339 one of the two case statements, causing spurious errors.
9340
93412011-08-02 Robert Dewar <dewar@adacore.com>
9342
9343 * uname.adb: Minor reformatting.
9344 * gnatcmd.adb: Minor reformatting.
9345 * exp_attr.adb: Minor reformatting.
9346
90878b12
AC
93472011-08-02 Ed Schonberg <schonberg@adacore.com>
9348
9349 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
9350 No_Dispatching_Calls, do not look for the Assign primitive, because
9351 predefined primitives are not created in this case.
9352
93532011-08-02 Bob Duff <duff@adacore.com>
9354
9355 * stylesw.ads: Minor comment fixes.
9356
93572011-08-02 Robert Dewar <dewar@adacore.com>
9358
9359 * freeze.adb (Add_To_Result): New procedure.
9360
93612011-08-02 Jose Ruiz <ruiz@adacore.com>
9362
9363 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
9364 time, if the specific run-time routines for handling streams of strings
9365 are not available, use the default mechanism.
9366
93672011-08-02 Arnaud Charlet <charlet@adacore.com>
9368
9369 * s-regpat.ads: Fix typo.
9370
93712011-08-02 Vincent Celier <celier@adacore.com>
9372
9373 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
9374 not null, call it to create the in memory config project file without
9375 parsing an existing default config project file.
9376
93772011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9378
9379 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
9380
93812011-08-02 Ed Schonberg <schonberg@adacore.com>
9382
9383 * sem_elim.adb: an abstract subprogram does not need an eliminate
9384 pragma for its descendant to be eliminable.
9385
93862011-08-02 Ed Falis <falis@adacore.com>
9387
9388 * init.c: revert to handling before previous checkin for VxWorks
9389 * s-intman-vxworks.adb: delete unnecessary declarations related to
9390 using Ada interrupt facilities for handling signals.
9391 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
9392 * s-intman-vxworks.ads: Import __gnat_install_handler as
9393 Initialize_Interrupts.
9394 * s-taprop-vxworks.adb: Delete Signal_Mask.
9395 (Abort_Handler): change construction of mask to unblock exception
9396 signals.
9397
273adcdf
AC
93982011-08-02 Jerome Guitton <guitton@adacore.com>
9399
9400 * a-except-2005.adb (Raise_From_Signal_Handler): Call
9401 Debug_Raise_Exception before propagation starts.
9402
94032011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9404
9405 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
9406 to Restriction_Check_Required.
9407 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
9408 * sem_res.adb (Resolve_Call): Likewise.
9409 * sem_attr.adb (Check_Stream_Attribute): Likewise.
9410
94112011-08-02 Bob Duff <duff@adacore.com>
9412
9413 * stylesw.ads: Update comment.
9414 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
9415 * errout.ads: Remove obsolete comment.
9416
94172011-08-02 Javier Miranda <miranda@adacore.com>
9418
9419 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
9420 (Set_Is_Safe_To_Reevaluate): new procedure.
9421 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
9422 assignment is allowed on safe-to-reevaluate variables.
9423 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
9424 temporary created to remove side effects in expressions that use
9425 the secondary stack as safe-to-reevaluate.
9426 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
9427 variables that are not true constants.
9428
6320f5e1
AC
94292011-08-02 Robert Dewar <dewar@adacore.com>
9430
9431 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
9432 sem_res.adb, sem_ch6.adb: Minor reformatting.
9433
94342011-08-02 Jerome Guitton <guitton@adacore.com>
9435
9436 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
9437
2fe829ae
ES
94382011-08-02 Ed Schonberg <schonberg@adacore.com>
9439
9440 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
9441 not set Overridden_Operation if subprogram is an initialization
9442 procedure.
9443
e24329cd
YM
94442011-08-02 Yannick Moy <moy@adacore.com>
9445
9446 * par-ch6.adb: Correct obsolete name in comments
9447 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
9448 which takes two message arguments (existing function takes one), with
9449 second message used for continuation.
9450 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
9451 block statements that originate from a source block statement, not
9452 generated block statements
9453 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
9454 symmetry with procedure case
9455 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
9456 function to issue an error in formal mode if a package specification
9457 contains more than one tagged type or type extension.
9458 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
9459 parameters matching formals of tagged types are objects (or ancestor
9460 type conversions of objects), not general expressions. Issue an error
9461 on view conversions that are not involving ancestor conversion of an
9462 extended type.
9463 (Resolve_Type_Conversion): in formal mode, issue an error on the
9464 operand of an ancestor type conversion which is not an object
9465 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
9466 procedure so that it works also for actuals of function calls
9467 (Is_Actual_Tagged_Parameter): new function which determines if its
9468 argument is an actual parameter of a formal of tagged type in a
9469 subprogram call
9470 (Is_SPARK_Object_Reference): new function which determines if the tree
9471 referenced by its argument represents an object in SPARK
9472
176dadf6
AC
94732011-08-02 Robert Dewar <dewar@adacore.com>
9474
9475 * sem_ch3.adb: Minor reformatting
9476 Minor comment addition
9477 Minor error msg text change
9478
94792011-08-02 Javier Miranda <miranda@adacore.com>
9480
9481 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
9482 function. Used to be more precise when we generate a variable plus one
9483 assignment to remove side effects in the evaluation of the Bound
9484 expressions.
9485 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
9486 of the bound expression to force its re-analysis and thus expand the
9487 associated transient scope (if required). Code cleanup replacing the
9488 previous code that declared the constant entity by an invocation to
9489 routine Force_Evaluation which centralizes this work in the frontend.
9490
d8b962d8
AC
94912011-08-02 Robert Dewar <dewar@adacore.com>
9492
9493 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
9494 (Base_Type): Now uses improved Is_Base_Type function
9495 * einfo.ads (Base_Type): Inline this function
9496
94972011-08-02 Robert Dewar <dewar@adacore.com>
9498
9499 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
9500 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
9501
95022011-08-02 Arnaud Charlet <charlet@adacore.com>
9503
9504 * gcc-interface/Make-lang.in: Update dependencies.
9505 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
9506 targets.
9507
95082011-08-02 Yannick Moy <moy@adacore.com>
9509
9510 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
9511 non-simple expression used in delta constraint
9512 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
9513 index constraint which is not a subtype mark
9514 * par.adb: With and use Restrict
9515 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
9516 mode on component type which is not a subtype mark and default
9517 expression on component
9518 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
9519 of string which does not have a lower index bound equal to 1
9520 (Array_Type_Declaration): issue an error in formal mode on index or
9521 component type which is not a subtype mark, and on aliased keyword on
9522 component
9523 (Derived_Type_Declaration): issue an error in formal mode on interface,
9524 limited or abstract type
9525 (Record_Type_Declaration): issue an error in formal mode on interface
9526 (Record_Type_Definition): issue an error in formal mode on tagged types
9527 and type extensions not declared in the specification of a library unit
9528 package; on null non-tagged record; on variant part
9529
95302011-08-02 Vincent Celier <celier@adacore.com>
9531
9532 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
9533 not declared for qualified library project when Library_Name is not
9534 declared, but Library_Dir is.
9535
95362011-08-02 Robert Dewar <dewar@adacore.com>
9537
9538 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
9539 pragmas (affects aspects [Component_]Default_Value
9540 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
9541 component type for the resolution
9542
f96b2d85
AC
95432011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9544
9545 * einfo.adb (Base_Type): Tune implementation for speed.
9546
95472011-08-02 Robert Dewar <dewar@adacore.com>
9548
9549 * freeze.adb: Minor reformatting.
9550
8b3c6430
AC
95512011-08-02 Thomas Quinot <quinot@adacore.com>
9552
9553 * scos.ads: Update comments.
9554
95552011-08-02 Ed Schonberg <schonberg@adacore.com>
9556
9557 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
9558 base type, because the parent may be a subtype of a private type whose
9559 convention is established in a private part.
9560
95612011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
9562
9563 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
9564 statement in a block when the expansion of the return expression has
9565 created a finalization chain.
9566 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
9567 with the parent node.
9568 Add N_Extended_Return_Statement to handle the case where a transient
9569 object declaration appears in the Return_Object_Declarations list of
9570 an extended return statement.
9571
95722011-08-02 Matthew Gingell <gingell@adacore.com>
9573
9574 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
9575 unused parameter 'name'.
9576
95772011-08-02 Ed Schonberg <schonberg@adacore.com>
9578
9579 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
9580 inherited operation, check whether its alias, which is the source
9581 operastion that it renames, has been marked eliminated.
9582
cae81f17
JM
95832011-08-02 Javier Miranda <miranda@adacore.com>
9584
9585 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
9586 in-mode parameter whose type is an access type since it can be used to
9587 modify its designated object. Enforce code that handles as safe an
9588 access type that is not access-to-constant but it is the result of a
9589 previous removal of side-effects.
9590 (Remove_Side_Effects): Minor code reorganization of cases which require
9591 no action. Done to incorporate documentation on new cases uncovered
9592 working in this ticket: no action needed if this routine was invoked
9593 too early and the nodes are not yet decorated.
9594 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
9595 to routine Remove_Side_Effects by calls to Force_Evaluation since they
9596 were issued with actuals that are implicitly provided by
9597 Force_Evaluation.
9598
218e6dee
RD
95992011-08-02 Robert Dewar <dewar@adacore.com>
9600
9601 * sem_ch3.adb, sem_res.adb: Minor reformatting.
9602
7a489a2b
AC
96032011-08-02 Yannick Moy <moy@adacore.com>
9604
9605 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
9606 to issue an error in formal mode on attribute not supported in this mode
9607 (Analyze_Attribute): issue errors on standard attributes not supported
9608 in formal mode.
9609 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
9610 comment, and issue error in formal mode on modulus which is not a power
9611 of 2.
9612 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
9613 range.
9614 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
9615 subtype mark.
9616 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
9617 operator on modular type (except 'not').
9618
96192011-08-02 Robert Dewar <dewar@adacore.com>
9620
9621 * gnat_rm.texi: Minor reformatting.
9622
cb7fa356
AC
96232011-08-02 Arnaud Charlet <charlet@adacore.com>
9624
9625 * s-osinte-linux.ads: Minor comment update and reformatting.
9626 * i-cexten.ads: Make this unit pure, as for its parent.
9627 Will allow its usage in more contexts if needed.
9628
96292011-08-02 Robert Dewar <dewar@adacore.com>
9630
9631 * s-utf_32.ads: Minor comment fix.
9632
96332011-08-02 Ed Schonberg <schonberg@adacore.com>
9634
9635 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
9636 operation of a tagged synchronized type, handle the case where the
9637 controlling argument is overloaded.
9638
96392011-08-02 Yannick Moy <moy@adacore.com>
9640
9641 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
9642 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
9643 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
9644 SPARK mode and formal verification mode on processing SPARK restriction
9645 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
9646 requiring consistency checking.
9647
5cc9353d
RD
96482011-08-02 Robert Dewar <dewar@adacore.com>
9649
9650 * sem_res.adb: Minor reformatting.
9651
e51537ff
RD
96522011-08-02 Robert Dewar <dewar@adacore.com>
9653
9654 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9655 a-cforse.ads: Remove unneeded with of Ada.Containers
9656 Remove commented out pragma Inline's
9657 Move specifications of new subprograms to the actual specs
9658
83fa09c5
AC
96592011-08-02 Yannick Moy <moy@adacore.com>
9660
9661 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9662 a-cforse.ads: Update comments.
9663
96642011-08-02 Ed Schonberg <schonberg@adacore.com>
9665
9666 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
9667
d11cfaf8
RD
96682011-08-02 Robert Dewar <dewar@adacore.com>
9669
9670 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9671 a-cforse.ads, a-cofove.ads: Minor reformatting.
9672
300b98bb
AC
96732011-08-02 Claire Dross <dross@adacore.com>
9674
9675 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
9676 a-cofove.ads: Add comments.
9677
96782011-08-02 Yannick Moy <moy@adacore.com>
9679
9680 * gnat_rm.texi: Document formal containers.
9681
96822011-08-02 Emmanuel Briot <briot@adacore.com>
9683
9684 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
9685 are empty sections.
9686
19fb051c
AC
96872011-08-02 Robert Dewar <dewar@adacore.com>
9688
9689 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
9690 reformatting.
9691
96922011-08-02 Robert Dewar <dewar@adacore.com>
9693
9694 * aspects.adb: New aspects Default_Value and Default_Component_Value
9695 New format of Aspect_Names table checks for omitted entries
9696 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
9697 handling of boolean aspects for derived types.
9698 New aspects Default_Value and Default_Component_Value
9699 New format of Aspect_Names table checks for omitted entries
9700 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
9701 (Has_Default_Value): New flag
9702 (Has_Default_Component_Value): New flag
9703 (Has_Default_Value): New flag
9704 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
9705 table.
9706 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
9707 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
9708 Default_Value and Default_Component_Value
9709 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
9710 New aspects Default_Value and Default_Component_Value
9711 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
9712 * sprint.adb: Print N_Aspect_Specification node when called from gdb
9713
97142011-08-02 Vincent Celier <celier@adacore.com>
9715
9716 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
9717 inherit library kind.
9718
97192011-08-02 Ed Schonberg <schonberg@adacore.com>
9720
9721 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
9722 Minor reformatting.
9723
97242011-08-02 Robert Dewar <dewar@adacore.com>
9725
9726 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
9727
5f7747af
AC
97282011-08-02 Yannick Moy <moy@adacore.com>
9729
9730 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
9731
97322011-08-02 Robert Dewar <dewar@adacore.com>
9733
9734 * impunit.adb: Add comment.
9735
a5fe697b
AC
97362011-08-02 Yannick Moy <moy@adacore.com>
9737
9738 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
9739 qualification of aggregates in formal mode
9740 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
9741 another aggregate
9742 (Resolve_Aggregate): complete the test that an aggregate is adequately
9743 qualified in formal mode
9744
97452011-08-02 Pascal Obry <obry@adacore.com>
9746
9747 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
9748 * mlib-prj.adb: Supress warning when compiling binder generated file.
9749 (Build_Library): Supress all warnings when compiling the binder
9750 generated file.
9751
bd65a2d7 97522011-08-02 Yannick Moy <moy@adacore.com>
d4487611 9753
bd65a2d7
AC
9754 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
9755 from here...
9756 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
9757 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
9758 Add with/use clauses to make Check_Formal_Restriction visible
9759
97602011-08-02 Ed Schonberg <schonberg@adacore.com>
9761
9762 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
9763 in-parameters when type of the generic formal is private in the generic
9764 spec and non-private in the body.
9765
97662011-08-02 Claire Dross <dross@adacore.com>
9767
9768 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
9769 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
9770 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
9771 * impunit.adb, Makefile.rtl: Take new files into account.
d4487611
AC
9772
97732011-08-02 Robert Dewar <dewar@adacore.com>
9774
9775 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
9776 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
9777
bd434b3f
YM
97782011-08-02 Yannick Moy <moy@adacore.com>
9779
9780 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
9781 formal mode
9782 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
9783 matching static array bounds, taking into account the special case of
9784 string literals
9785 * sem_ch3.adb: Typo in comment.
9786
fe5d3068
YM
97872011-08-02 Yannick Moy <moy@adacore.com>
9788
9789 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
9790 which issues an error in formal mode if its argument node is originally
9791 from source
9792 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
9793 has a discriminant specification so that it does not include the case
9794 of derived types
9795 (Derived_Type_Declaration): move here the test that a derived type has a
9796 discriminant specification
9797 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
9798 first element of a component association before accessing its choices
9799 (presence of component association is not enough)
9800 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
9801 declaration is a library item before accessing the next element in a
9802 list, as library items are not member of lists
9803 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
9804 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
9805 Check_Formal_Restriction whenever possible.
9806
b60a3f26
AC
98072011-08-02 Ed Schonberg <schonberg@adacore.com>
9808
9809 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
9810 reference when needed.
9811
98122011-08-02 Bob Duff <duff@adacore.com>
9813
9814 * gnat_ugn.texi: Fix typo.
9815
98162011-08-02 Vincent Celier <celier@adacore.com>
9817
9818 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
9819 archive file name. Do not use the full path name of archives for Open
9820 VMS.
9821
eaba57fb
RD
98222011-08-02 Robert Dewar <dewar@adacore.com>
9823
9824 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
9825 Analyze_Aspect_Specifications
9826 * sem_ch13.adb
9827 (Analyze_Aspect_Specifications): New handling for boolean aspects
9828 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
9829 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
9830 sequence for Analyze_Aspect_Specifications
9831 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
9832 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
9833
98342011-08-02 Robert Dewar <dewar@adacore.com>
9835
9836 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
9837 aspects, since these no longer exist.
9838
98392011-08-02 Robert Dewar <dewar@adacore.com>
9840
9841 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
9842 semicolon, do not try to see if there are aspects following it.
9843 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
9844 aspect spec.
9845
8830d1d2
AC
98462011-08-02 Robert Dewar <dewar@adacore.com>
9847
9848 * sem_ch8.adb, aspects.ads: Minor reformatting.
9849
98502011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9851
9852 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
9853 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
9854 extracted from...
9855 (Analyze_Aspect_Specifications): ...here. Call above procedure.
9856
7ff2d234
AC
98572011-08-02 Yannick Moy <moy@adacore.com>
9858
9859 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
9860 mode on subprogram declaration outside of package specification, unless
9861 it is followed by a pragma Import
9862 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
9863 Access_Type_Declaration): issue error in formal mode on access type
9864 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
9865 incomplete type
9866 (Analyze_Object_Declaration): issue error in formal mode on object
9867 declaration which does not respect SPARK restrictions
9868 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
9869 declaration which does not respect SPARK restrictions
9870 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
9871 error in formal mode on digits or delta constraint
9872 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
9873 decimal fixed point type
9874 (Derived_Type_Declaration): issue error in formal mode on derived type
9875 other than type extensions of tagged record types
9876 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
9877 with check on access definition
9878 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
9879 mode on protected definition.
9880 (Analyze_Task_Definition): issue error in formal mode on task definition
9881
98822011-08-02 Robert Dewar <dewar@adacore.com>
9883
9884 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
9885
806f6d37
AC
98862011-08-02 Javier Miranda <miranda@adacore.com>
9887
9888 * sem_ch6.adb (Can_Override_Operator): New function.
9889 (Verify_Overriding_Indicator): Add missing code to check overriding
9890 indicator in operators. Fixes regression.
9891 (Check_Overriding_Indicator): Minor reformating after replacing the
9892 code that evaluates if the subprogram can override an operator by
9893 invocations to the above new function.
9894 * einfo.adb
9895 (Write_Field26_Name): Add missing code to ensure that, following
9896 the documentation in einfo.ads, this field is not shown as attribute
9897 "Static_Initialization" on non-dispatching functions.
9898
98992011-08-02 Jose Ruiz <ruiz@adacore.com>
9900
9901 * sem_res.adb (Resolve_Call): A call to
9902 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
9903 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
9904 i.e., when the second parameter is of type Time_Span.
9905
99062011-08-02 Vincent Celier <celier@adacore.com>
9907
9908 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
9909 with an archive instead of -L<library dir> -l<library name>.
9910
99112011-08-02 Ed Schonberg <schonberg@adacore.com>
9912
9913 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
9914 mark the base types In_Use in addition to making the operations
9915 use_visible.
9916
99172011-08-02 Ed Falis <falis@adacore.com>
9918
9919 * init.c: add and setup __gnat_signal_mask for the exception signals
9920 * s-inmaop-vxworks.adb: new file.
9921 * s-intman-vxworks.adb: remove unnecessary initializations and
9922 simplify remaining
9923 * s-intman-vxworks.ads: remove unnecessary variable
9924 * s-taprop-vxworks.adb: simplify signal initialization
9925
780d052e
RD
99262011-08-02 Robert Dewar <dewar@adacore.com>
9927
9928 * sem_ch8.adb: Minor code reorganization, comment updates.
9929
99302011-08-02 Robert Dewar <dewar@adacore.com>
9931
9932 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
9933 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
9934 here from Sem_Res.
9935 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
9936 (Matching_Static_Array_Bounds): Moved here from Sem_Res
9937
29efbb8c
ES
99382011-08-02 Ed Schonberg <schonberg@adacore.com>
9939
9940 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
9941 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
9942 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
9943 use_type_clauses, to handle more efficiently use_type and use_all_type
9944 constructs.
9945 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
9946 Ada2012 Use_All_Type clause.
9947 (Use_Class_Wide_Operations): new procedure.
9948
b0186f71
AC
99492011-08-02 Robert Dewar <dewar@adacore.com>
9950
9951 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
9952 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
9953 expression to expression function.
9954
99552011-08-02 Ed Schonberg <schonberg@adacore.com>
9956
9957 * sem_ch4.adb: transform simple Ada2012 membership into equality only
9958 if types are compatible.
9959
99602011-08-02 Yannick Moy <moy@adacore.com>
9961
9962 * sem_res.adb (Matching_Static_Array_Bounds): new function which
9963 returns True if its argument array types have same dimension and same
9964 static bounds at each index.
9965 (Resolve_Actuals): issue an error in formal mode on actuals passed as
9966 OUT or IN OUT paramaters which are not view conversions in SPARK.
9967 (Resolve_Arithmetic_Op): issue an error in formal mode on
9968 multiplication or division with operands of fixed point types which are
9969 not qualified or explicitly converted.
9970 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
9971 Boolean or array type (except String) operands.
9972 (Resolve_Equality_Op): issue an error in formal mode on equality
9973 operators for array types other than String with non-matching static
9974 bounds.
9975 (Resolve_Logical_Op): issue an error in formal mode on logical operators
9976 for array types with non-matching static bounds. Factorize the code in
9977 Matching_Static_Array_Bounds.
9978 (Resolve_Qualified_Expression): issue an error in formal mode on
9979 qualified expressions for array types with non-matching static bounds.
9980 (Resolve_Type_Conversion): issue an error in formal mode on type
9981 conversion for array types with non-matching static bounds
9982
767bb4e8
AC
99832011-08-02 Robert Dewar <dewar@adacore.com>
9984
9985 * par-ch10.adb: Minor code reorganization (use Nkind_In).
9986
99872011-08-02 Ed Schonberg <schonberg@adacore.com>
9988
9989 * par-ch9.adb: save location of entry for proper error message.
9990
4ac2477e
JM
99912011-08-02 Javier Miranda <miranda@adacore.com>
9992
9993 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
9994 (Use_Full_View) which permits this routine to climb through the
9995 ancestors using the full-view of private parents.
9996 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
9997 Use_Full_View to true in calls to Is_Ancestor.
9998 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
9999 true in call to Is_Ancestor.
10000 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
10001 Use_Full_View to true in call to Is_Ancestor.
10002 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
10003 call to Is_Ancestor.
10004 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
10005 Use_Full_View to true in calls to Is_Ancestor.
10006 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
10007 Make_Select_Specific_Data_Table, Register_Primitive,
10008 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
10009 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
10010 to true in call to Is_Ancestor.
10011 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
10012 Use_Full_View to true in calls to Is_Ancestor.
10013 * exp_cg.adb
10014 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
10015 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
10016
9f90d123
AC
100172011-08-02 Robert Dewar <dewar@adacore.com>
10018
10019 * gnat_rm.texi: Minor reformatting.
10020 * sem_prag.adb: Minor reformatting.
10021
100222011-08-02 Tristan Gingold <gingold@adacore.com>
10023
10024 * vms_data.ads: Add VMS qualifier for -gnateP.
10025
100262011-08-02 Robert Dewar <dewar@adacore.com>
10027
10028 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
10029 * par-ch7.adb (P_Package): Proper placement of aspects for package
10030 decl/instantiation.
10031 * par-endh.adb (Check_End): Ad Is_Sloc parameter
10032 (End_Statements): Add Is_Sloc parameterr
10033 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
10034 (Check_End): Ad Is_Sloc parameter
10035 (End_Statements): Add Is_Sloc parameterr
10036
100372011-08-02 Vincent Celier <celier@adacore.com>
10038
10039 * ug_words: Add VMS qualifier equivalent to -gnateP:
10040 /SYMBOL_PREPROCESSING.
10041
100422011-08-02 Jose Ruiz <ruiz@adacore.com>
10043
10044 * gnat-style.texi: For hexadecimal numeric literals the typical
10045 grouping of digits is 4 to represent 2 bytes.
10046 A procedure spec which is split into several lines is indented two
10047 characters.
10048
100492011-08-02 Yannick Moy <moy@adacore.com>
10050
10051 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
10052 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
10053 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
10054 properly qualified
10055 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
10056 choice in array aggregate
10057 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
10058 mark as ancestor
10059 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
10060 positional and named aggregate for record, or others in record
10061 aggregate, or multiple choice in record aggregate
10062 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
10063 array operands to logical operations AND, OR and XOR do not have the
10064 same static lower and higher bounds
10065 * sem_ch5.adb, sinfo.ads: Correct typos in comments
10066
2933b16c
RD
100672011-08-01 Robert Dewar <dewar@adacore.com>
10068
10069 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
10070 Replaces Last_Source_Node_In_Sequence.
10071 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
10072 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
10073 parens and blank in string (this was inconsistently implemented).
10074 * errout.ads
10075 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
10076 blank in string (this was inconsistently implemented).
10077 * gnat1drv.adb
10078 (Set_Global_Switches): Set formal mode switches appropriately
10079 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
10080 * par-prag.adb
10081 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
10082 call Set_Error_Msg_Lang to set "spark" as language name.
10083 * par.adb: Remove unnecessary call to set formal language for errout
10084 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
10085 appropriately and call Set_Error_Msg_Lang to set "spark" as language
10086 name.
10087 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
10088 calls to it, moved after resolution so that types are known
10089 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
10090 result of concatenation is not of type String
10091 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
10092 concatenation is not properly restricted
10093 * gnat_rm.texi: Add doc on pragma Spark_95.
10094 * gcc-interface/Makefile.in: Remove obsolete target pairs for
10095 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
10096 * gcc-interface/Make-lang.in: Update dependencies.
10097
05dbd302
AC
100982011-08-01 Javier Miranda <miranda@adacore.com>
10099
10100 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
10101 condition that detects if the overridden operation must replace an
10102 existing entity.
10103
101042011-08-01 Javier Miranda <miranda@adacore.com>
10105
10106 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
10107 code declarations inserted by Insert_Actions in each alternative of the
10108 N_Case_Expression node.
10109
101102011-08-01 Robert Dewar <dewar@adacore.com>
10111
10112 * sem_ch6.adb: Minor code reorganization.
10113 * sem_util.adb: Minor reformatting.
10114
af9e051f
PO
101152011-08-01 Pascal Obry <obry@adacore.com>
10116
10117 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
10118 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
10119
1d801f21
AC
101202011-08-01 Yannick Moy <moy@adacore.com>
10121
10122 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
10123 literal or operator symbol which is prefixed
10124 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
10125 mode on access attributes.
10126 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
10127 that concatenation operands are properly restricted in formal mode
10128 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
10129 Analyze_Concatenation_Operand. Issue an error in formal mode if the
10130 result of the concatenation has a type different from String.
10131 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
10132 Analyze_Quantified_Expression, Analyze_Slice,
10133 Analyze_Null): issue an error in formal mode on unsupported constructs
10134 * sem_ch5.adb
10135 (Analyze_Block_Statement): only issue error on source block statement
10136 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
10137 function which returns the last node in a list of nodes for which
10138 Comes_From_Source returns True, if any
10139 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
10140 Last_Source_Node_In_Sequence
10141 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
10142 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
10143 mode on unsupported constructs
10144 * sem_ch9.adb Do not return after issuing error in formal mode, as the
10145 rest of the actions may be needed later on since the error is marked as
10146 not serious.
10147 * sinfo.ads: Typos in comments.
10148
101492011-08-01 Pascal Obry <obry@adacore.com>
10150
10151 * projects.texi: Minor editing.
10152
53beff22
YM
101532011-08-01 Yannick Moy <moy@adacore.com>
10154
10155 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
10156 insertion character ~~
10157 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
10158 (Set_Error_Msg_Lang): new procedure which fixes the language for use
10159 with insertion character ~~
10160 (Set_Msg_Text): treat insertion character ~~
10161 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
10162 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
10163 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
10164 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
10165 errors related to the formal language restriction not serious
10166 (insertion character |).
10167 * par.adb (Par): set formal language for error messages if needed
10168 * sem_ch6.adb (Check_Missing_Return): take into account possible
10169 generated statements at the end of the function
10170 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
10171 enumeration value to define a new pragma SPARK_95
10172 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
10173 SPARK_Version): new type and variables to store the SPARK version
10174 (none by default).
10175 (SPARK_Mode): return True when SPARK_Version is set
10176 * par-prag.adb: Correct indentation
10177 (Prag): take Pragma_SPARK_95 into account
10178 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
10179 into account.
10180
8d606a78
RD
101812011-08-01 Robert Dewar <dewar@adacore.com>
10182
10183 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
10184 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
10185 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
10186
1982d5a8
PO
101872011-08-01 Pascal Obry <obry@adacore.com>
10188
10189 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
10190 Target_Name to Get_Path call.
10191 (Parse_Single_Project): Likewise.
10192 (Post_Parse_Context_Clause): Likewise.
10193 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
10194 Call Initialise_Project_Path with the proper Target_Name.
10195 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
10196 search path.
10197 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
10198 with the proper Target_Name.
10199 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
10200 Part.Parse routine.
10201 (Parse_Project_And_Apply_Config): Likewise.
10202 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
10203 This is fine as this part of the code is supporting only native
10204 compilation.
10205 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
10206 is fine as this part of the code is supporting only native compilation.
10207
0d53d36b
AC
102082011-08-01 Yannick Moy <moy@adacore.com>
10209
10210 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
10211 of homonym, unless the homonym is one of the cases allowed in SPARK
10212 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
10213 package declaration occurring after a body.
10214
102152011-08-01 Robert Dewar <dewar@adacore.com>
10216
10217 * checks.adb, exp_ch4.adb: Minor reformatting.
10218
102192011-08-01 Javier Miranda <miranda@adacore.com>
10220
10221 * einfo.ads (Access_Disp_Table): Fix documentation.
10222 (Dispatch_Table_Wrappers): Fix documentation.
10223
102242011-08-01 Pascal Obry <obry@adacore.com>
10225
10226 * prj-env.adb, prj-env.ads: Minor reformatting.
10227
8ed68165
AC
102282011-08-01 Yannick Moy <moy@adacore.com>
10229
10230 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
10231 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
10232 procedures out of these packages.
2c7f9cc0 10233 * errout.ads, errout.adb
8ed68165
AC
10234 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
10235 procedures in of this package
10236 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
10237 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
10238 on misplaced later vs initial declarations, like in Ada 83
10239 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
10240 formal mode on attribute of private type whose full type declaration
10241 is not visible
10242 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
10243 package declaration inside a package specification
10244 (Analyze_Full_Type_Declaration): issue error in formal mode on
10245 controlled type or discriminant type
10246 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
10247 user-defined operator means that it should come from the source
10248 (New_Overloaded_Entity): issue error in formal mode on overloaded
10249 entity.
10250 * sem_ch6.ads, sem_ch13.ads: typos in comments.
10251
102522011-08-01 Thomas Quinot <quinot@adacore.com>
10253
10254 * atree.adb: Minor reformatting.
10255 * checks.adb: Minor reformatting.
10256
4230bdb7
AC
102572011-08-01 Vincent Celier <celier@adacore.com>
10258
10259 * s-parame-vms-ia64.ads: Fix typo in comment
10260 Minor reformatting
10261 * s-parame-vms-restrict.ads: Removed, unused.
10262
102632011-08-01 Javier Miranda <miranda@adacore.com>
10264
10265 * exp_ch3.adb
10266 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
10267 * sem_ch3.adb
10268 (Constrain_Index): Remove side effects in the evaluation of the bounds.
10269 * sem_ch3.ads, sem_ch3.adb
10270 (Is_Constant_Bound): New extended version of the subprogram that was
10271 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
10272 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
10273 * sem_aux.ads (Constant_Value): Fix typo in comment.
10274 * checks.adb (Generate_Index_Checks): New implementation which, for
10275 array objects with constant bounds, generates the runtime check
10276 referencing the bounds of the array type. For other cases this routine
10277 provides its previous behavior obtaining such values from the array
10278 object.
10279 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
10280 parent type.
10281 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
10282 we cannot have semantic interpretations of the new node.
10283
2010d078
AC
102842011-08-01 Ed Schonberg <schonberg@adacore.com>
10285
10286 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
10287 expressions.
10288
102892011-08-01 Arnaud Charlet <charlet@adacore.com>
10290
10291 * sem_ch8.adb: Minor code editing.
10292 * s-vxwext.adb: Remove trailing space.
10293 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
10294 consistency with other files.
10295
102962011-08-01 Thomas Quinot <quinot@adacore.com>
10297
10298 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
10299
103002011-08-01 Ed Schonberg <schonberg@adacore.com>
10301
10302 * par-ch10.adb: reject parameterized expressions as compilation unit.
10303 * sem_ch4.adb: handle properly conditional expression with overloaded
10304 then_clause and no else_clause.
10305
103062011-08-01 Tristan Gingold <gingold@adacore.com>
10307
10308 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
10309 like done by System.Aux_DEC.
10310 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
10311
daec8eeb
YM
103122011-08-01 Yannick Moy <moy@adacore.com>
10313
10314 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
10315 missing label at end of declaration (subprogram or package)
10316 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
10317 of positional and named parameter association
10318 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
10319 Error_Msg_SP which adds a prefix to the error message giving the name
10320 of the formal language analyzed
10321 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
10322 access result type in subprogram, unconstrained array as result type,.
10323 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
10324 procedure
10325 * sem_ch8.adb: Code clean up.
10326
38171f43
AC
103272011-08-01 Javier Miranda <miranda@adacore.com>
10328
10329 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
10330 * einfo.ads (Access_Disp_Table): Fix documentation.
10331 (Dispatch_Table_Wrappers): Fix documentation.
10332 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
10333 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
10334 to enforce the documentation of this attribute.
10335 (Set_Is_Interface): Cleanup the assertion.
10336 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
10337 the Underlying_Type entity before reading attribute Access_Disp_Table.
10338 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
10339 Locate the Underlying_Type before reading attribute Access_Disp_Table.
10340 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
10341 the Underlying_Type entity before reading attribute Access_Disp_Table.
10342 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
10343 Locate the Underlying_Type entity before reading attribute
10344 Access_Disp_Table.
10345
103462011-08-01 Ed Schonberg <schonberg@adacore.com>
10347
10348 * s-poosiz.ads: Additional overriding indicators.
10349
103502011-08-01 Yannick Moy <moy@adacore.com>
10351
10352 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
10353 formal mode.
10354 (Analyze_Iteration_Scheme): issue error in formal mode when loop
10355 parameter specification does not include a subtype mark.
10356 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
10357 formal mode on abstract subprogram.
10358 (Analyze_Subprogram_Specification): issue error in formal mode on
10359 user-defined operator.
10360 (Process_Formals): issue error in formal mode on access parameter and
10361 default expression.
10362 * sem_ch9.adb (Analyze_Abort_Statement,
10363 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
10364 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
10365 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
10366 Analyze_Requeue, Analyze_Selective_Accept,
10367 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
10368 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
10369 issue error in formal mode on user-defined raise statement.
10370
1f250383
AC
103712011-08-01 Thomas Quinot <quinot@adacore.com>
10372
10373 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
10374 declaration being hidden when overriding an implicit inherited
10375 subprogram.
10376 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
10377 (-gnats), do not complain about a source file that contains only a
10378 pragma No_Body.
10379
103802011-08-01 Ed Schonberg <schonberg@adacore.com>
10381
10382 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
10383 variable if already set.
10384
607d0635
AC
103852011-08-01 Arnaud Charlet <charlet@adacore.com>
10386
10387 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
10388 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
10389 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
10390 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
10391 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
10392 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
10393 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
10394 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
10395 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
10396 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
10397 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
10398 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
10399 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
10400 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
10401 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
10402 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
10403 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
10404 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
10405 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
10406 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
10407 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
10408 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
10409 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
10410 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
10411 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
10412 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
10413 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
10414 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
10415 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
10416 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
10417 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
10418 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
10419 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
10420 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
10421 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
10422 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
10423 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
10424 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
10425 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
10426 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
10427 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
10428 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
10429 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
10430 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
10431 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
10432 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
10433 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
10434 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
10435 s-osinte-mingw.ads: Update to GPLv3 run-time license.
10436 Use GNAT instead of GNARL.
10437
104382011-08-01 Bob Duff <duff@adacore.com>
10439
10440 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
10441 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
10442 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
10443 reformatting.
10444
104452011-08-01 Yannick Moy <moy@adacore.com>
10446
10447 * debug.adb (d.D) reverve flag for the SPARK mode
10448 (d.E) reverve flag for SPARK generation mode
10449 (d.F) reverve flag for Why generation mode
2c7f9cc0 10450 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
607d0635
AC
10451 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
10452 functions which return True when the corresponding modes are set
10453 (Formal_Language): return "spark" or "alfa" when in formal verification
10454 mode.
10455 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
10456 Error_Msg to prefix the error message with a tag giving the formal
10457 language
10458 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
10459 message with a tag giving the formal language
10460 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
10461 block statement
10462 (Analyze_Case_Statement): issue error in formal mode on case statement
10463 with a single "others" case alternative
10464 (Analyze_Exit_Statement): issue errors in formal mode on exit
10465 statements which do not respect SPARK restrictions
10466 (Analyze_Goto_Statement): issue error in formal mode on goto statement
10467 (Check_Unreachable_Code): always issue an error (not a warning) in
10468 formal mode on unreachable code (concerns both code after an infinite
10469 loop and after an unconditional jump, both not allowed in SPARK)
10470 * sem_ch6.adb (Analyze_Return_Statement): add call to
10471 Set_Return_Present for a procedure containing a return statement
10472 (already done for functions in Analyze_Function_Return)
10473 (Analyze_Function_Return): issue error in formal mode on extended
10474 return or if return is not last statement in function
10475 (Check_Missing_Return): issue error in formal mode if function does
10476 not end with return or if procedure contains a return
10477 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
10478 function to detect if there is an inner scope of its parameter S which
10479 is a loop.
10480
104812011-08-01 Thomas Quinot <quinot@adacore.com>
10482
10483 * sem_ch6.ads: Minor reformatting.
10484
d8b3ccb9
AC
104852011-08-01 Javier Miranda <miranda@adacore.com>
10486
10487 * sem_util.adb (Abstract_Interface_List): Complete condition when
10488 processing private type declarations to avoid reading unavailable
10489 attribute.
10490 (Is_Synchronized_Tagged_Type): Complete condition when processing
10491 private extension declaration nodes to avoid reading unavailable
10492 attribute.
10493
104942011-08-01 Thomas Quinot <quinot@adacore.com>
10495
10496 * sem_ch3.adb: Minor reformatting.
10497
104982011-08-01 Thomas Quinot <quinot@adacore.com>
10499
10500 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
10501 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
10502 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
10503 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
10504 for VMS, instead parametrize the common implementation with
10505 System.Parameters declarations.
10506
0bb9276c
AC
105072011-08-01 Eric Botcazou <ebotcazou@adacore.com>
10508
10509 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
10510
105112011-08-01 Tristan Gingold <gingold@adacore.com>
10512
10513 * seh_init.c: Fix SEH handler installation on win64.
10514
105152011-08-01 Ed Schonberg <schonberg@adacore.com>
10516
10517 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
10518 double analysis of an anonymous access to subprogram, because it can
10519 lead to improper sharing of profiles and a back-end crash.
10520
6a2e4f0b
AC
105212011-08-01 Robert Dewar <dewar@adacore.com>
10522
10523 * make.adb, sem_ch4.adb: Minor reformatting.
10524 * gcc-interface/Make-lang.in: Update dependencies.
10525 * sem_util.adb, exp_ch5.adb: Minor reformatting.
10526
105272011-08-01 Arnaud Charlet <charlet@adacore.com>
10528
10529 * gnat_rm.texi: Fix definition of Long_Integer.
10530
105312011-08-01 Ed Schonberg <schonberg@adacore.com>
10532
10533 * exp_aggr.adb: check limit size of static aggregate unconditionally,
10534 to prevent storage exhaustion.
10535 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
10536 finalized is a function body, insert the cleanup code before the final
10537 return statement, to prevent spurious warnings.
10538 * s-pooglo.ads: add overriding indicator.
10539
4561baf7
ES
105402011-08-01 Ed Schonberg <schonberg@adacore.com>
10541
10542 * sem_ch4.adb (Operator_Check): improve error message when both a
10543 with_clause and a use_clause are needed to make operator usage legal.
10544 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
10545 determine whether a compilation unit is visible within an other,
10546 either through a with_clause in the current unit, or a with_clause in
10547 its library unit or one one of its parents.
10548
383e179e
AC
105492011-08-01 Ed Schonberg <schonberg@adacore.com>
10550
10551 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
10552 over an arbitrary expression of an array or container type.
10553 * lib-xref.adb: clarify comment.
10554
105552011-08-01 Bob Duff <duff@adacore.com>
10556
10557 * einfo.ads: Minor reformatting.
10558 * debug.adb: Minor comment improvement.
10559
105602011-08-01 Javier Miranda <miranda@adacore.com>
10561
10562 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
10563 consider hidden subprograms as valid candidates.
10564
105652011-08-01 Arnaud Charlet <charlet@adacore.com>
10566
10567 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
10568
105692011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
10570
10571 * gnat_ugn.texi: Fix typo.
10572
61c161b2
AC
105732011-08-01 Robert Dewar <dewar@adacore.com>
10574
10575 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
10576 lib-xref.adb: Minor reformatting
10577
105782011-08-01 Gary Dismukes <dismukes@adacore.com>
10579
10580 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
10581 when to generate a call to Move_Final_List.
10582 (Has_Controlled_Parts): Remove this function.
10583
84df40f7
AC
105842011-08-01 Geert Bosch <bosch@adacore.com>
10585
10586 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
10587 "," in choice list.
10588
105892011-08-01 Thomas Quinot <quinot@adacore.com>
10590
10591 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
10592 explicit raise of a predefined exception as Comes_From_Source if the
10593 original N_Raise_Statement comes from source.
10594
105952011-08-01 Robert Dewar <dewar@adacore.com>
10596
10597 * sinfo.ads: Add comment.
10598 * sem_ch6.adb: Minor reformatting.
10599
106002011-08-01 Robert Dewar <dewar@adacore.com>
10601
10602 * freeze.adb (Freeze_Entity): Refine check for bad component size
10603 clause to avoid rejecting confirming clause when atomic/aliased present.
10604
106052011-08-01 Ed Schonberg <schonberg@adacore.com>
10606
10607 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
10608 better determine whether an entity reference is a write.
10609 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
10610 subcomponent.
10611 * lib-xref.adb (Output_References): Do no suppress a read reference at
10612 the same location as an immediately preceeding modify-reference, to
10613 handle properly in-out actuals.
10614
106152011-08-01 Tristan Gingold <gingold@adacore.com>
10616
10617 * env.c (__gnat_setenv) [VMS]: Refine previous change.
10618
106192011-08-01 Quentin Ochem <ochem@adacore.com>
10620
10621 * i-cstrin.adb (New_String): Changed implementation, now uses only the
10622 heap to compute the result.
10623
c7f0d2c0
AC
106242011-08-01 Robert Dewar <dewar@adacore.com>
10625
10626 * atree.ads: Minor reformatting.
10627
106282011-08-01 Emmanuel Briot <briot@adacore.com>
10629
10630 * g-expect.adb (Get_Command_Output): Fix memory leak.
10631
106322011-08-01 Geert Bosch <bosch@adacore.com>
10633
10634 * cstand.adb (P_Float_Type): New procedure to print the definition of
10635 predefined fpt types.
10636 (P_Mixed_Name): New procedure to print a name using mixed case
10637 (Print_Standard): Use P_Float_Type for printing floating point types
10638 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
10639 precision IEEE float.
10640
106412011-08-01 Thomas Quinot <quinot@adacore.com>
10642
10643 * sem_ch3.adb: Minor reformatting.
10644
106452011-08-01 Ed Schonberg <schonberg@adacore.com>
10646
10647 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
10648 the completion of a generic function, insert the new body rather than
10649 rewriting the original.
10650
106512011-08-01 Yannick Moy <moy@adacore.com>
10652
10653 * sinfo.ads, errout.ads: Typos in comments.
10654
1c54829e
AC
106552011-08-01 Robert Dewar <dewar@adacore.com>
10656
10657 * par-endh.adb: Minor reformatting.
10658
106592011-08-01 Robert Dewar <dewar@adacore.com>
10660
10661 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
10662 (Pre_Post_Aspects): New subtype.
10663 * par-ch12.adb (P_Generic): New syntax for aspects in packages
10664 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
10665 * par-ch7.adb (P_Package): Remove Decl parameter
10666 (P_Package): Handle new syntax for aspects (before IS)
10667 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
10668 new aspect syntax
10669 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
10670 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
10671 (P_Package): Remove Decl parameter
10672 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
10673 aspects
10674 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
10675 specs
10676 * sem_util.ads, sem_util.adb (Static_Boolean): New function
10677 * sinfo.ads: Document new syntax for aspects in packages etc.
10678 * sprint.adb: Handle new syntax of aspects before IS in package
10679
106802011-08-01 Thomas Quinot <quinot@adacore.com>
10681
10682 * atree.ads: Minor reformatting.
10683 * sem_prag.adb: Minor reformatting.
10684
106852011-08-01 Robert Dewar <dewar@adacore.com>
10686
10687 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
10688 case expr alternative.
10689
106902011-08-01 Ed Schonberg <schonberg@adacore.com>
10691
10692 * sem_ch12.adb: Fix typo.
10693
9eea4346
GB
106942011-08-01 Geert Bosch <bosch@adacore.com>
10695
10696 * sem_prag.adb (Check_No_Link_Name): New procedure.
10697 (Process_Import_Or_Interface): Use Check_No_Link_Name.
10698 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
10699 instead of Standard_Long_Long_Float_Size global. Preparation for
10700 eventual removal of per type constants.
10701 * exp_util.ads (Get_Stream_Size): New function returning the stream
10702 size value of subtype E.
10703 * exp_util.adb (Get_Stream_Size): Implement new function.
10704 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
10705 function.
10706 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
10707 * einfo.adb:
10708 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
10709
3d6c3bd7
GB
107102011-08-01 Geert Bosch <bosch@adacore.com>
10711
10712 * cstand.adb: Fix comments.
10713 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
10714 count of arguments.
10715
e7d897b8
AC
107162011-08-01 Robert Dewar <dewar@adacore.com>
10717
10718 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
10719
107202011-08-01 Geert Bosch <bosch@adacore.com>
10721
10722 * atree.ads: Fix comment.
10723
c228a069
AC
107242011-08-01 Robert Dewar <dewar@adacore.com>
10725
10726 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
10727 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
10728 * par.adb: Add with for Namet.Sp.
10729 * par-tchk.adb: Minor reformatting.
10730
107312011-08-01 Vincent Celier <celier@adacore.com>
10732
10733 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
10734 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
10735 of the init procedure of a SAL.
10736 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
10737 New procedure.
10738
107392011-08-01 Thomas Quinot <quinot@adacore.com>
10740
10741 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
10742 reformatting.
10743
107442011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10745
10746 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
10747
107482011-08-01 Thomas Quinot <quinot@adacore.com>
10749
10750 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
10751 conformant with its spec (return True only for types that have
10752 an overriding Initialize primitive operation that prevents them from
10753 having preelaborable initialization).
10754 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
10755 initialization for controlled types in Ada 2005 or later mode.
10756
857ade1b
RD
107572011-08-01 Robert Dewar <dewar@adacore.com>
10758
10759 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
10760 Postcondition.
10761 (Same_Aspect): New function.
10762 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
10763 Type_Invariant, Precondition, Postcondition.
10764 * snames.ads-tmpl: Add Name_Type_Invariant.
10765
bd949ee2
RD
107662011-08-01 Robert Dewar <dewar@adacore.com>
10767
10768 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
10769 here.
10770 (Freeze_All_Ent): Fix error in handling inherited aspects.
10771 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
10772 already analyzed, but don't skip entire processing of a declaration,
10773 that's wrong in some cases of declarations being rewritten.
10774 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
10775 Don't delay for integer, string literals
10776 Treat predicates in usual manner for delay, remove special case code,
10777 not needed.
10778 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
10779 (Build_Predicate_Function): Update saved expression in aspect
10780 (Build_Invariant_Procedure): Update saved expression in aspect
10781 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
10782 of replacement of discriminant references if the reference is simple.
10783
f1c952af
RD
107842011-08-01 Robert Dewar <dewar@adacore.com>
10785
10786 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
10787 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
10788 Static_Predicate and Dynamic_Predicate.
10789 (Build_Predicate_Function): Add processing for Static_Predicate
10790 and Dynamic_Predicate.
10791 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
10792 (From_Static_Predicate): New flag
10793 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
10794
107952011-08-01 Robert Dewar <dewar@adacore.com>
10796
10797 * usage.adb: Documentation cleanup for Ada version modes in usage.
10798 * expander.adb: Minor reformatting.
10799
47e11d08
AC
108002011-08-01 Robert Dewar <dewar@adacore.com>
10801
10802 * atree.ads: Minor comment fix.
10803 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
10804 a-witeio.ads, sem_prag.adb: Minor reformatting.
10805
108062011-08-01 Doug Rupp <rupp@adacore.com>
10807
10808 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
10809 pointers. Use descrip.h header file for convenience. Add some
10810 comments.
10811
108122011-08-01 Robert Dewar <dewar@adacore.com>
10813
10814 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
10815 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
10816 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
10817 New procedure.
10818 (Check_Aspect_At_End_Of_Declarations): New procedure
10819 (Analye_Aspect_Specification): Minor changes for above procedures
10820 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
10821 specification node as well.
10822
108232011-08-01 Pascal Obry <obry@adacore.com>
10824
10825 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
10826 Windows files. Use GetFilesAttributes() in this case to check for file
10827 existence instead of returning with an error code.
10828
a3a16b21
VC
108292011-08-01 Vincent Celier <celier@adacore.com>
10830
10831 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
10832 High is above Source length.
10833
ff58cc69
RD
108342011-08-01 Robert Dewar <dewar@adacore.com>
10835
10836 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
10837
6bb88533
AC
108382011-08-01 Robert Dewar <dewar@adacore.com>
10839
10840 * aspects.ads (Boolean_Aspects): New subtype.
10841 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
10842 for derived types in cases where the parent type and derived type have
10843 aspects.
10844 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
10845 with aspects when parent type also has aspects.
10846 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
10847 boolean expression at this point).
10848 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
10849 accordance with final decision on the Ada 2012 feature.
10850 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
10851
108522011-08-01 Matthew Heaney <heaney@adacore.com>
10853
10854 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
10855
060a3f28
AC
108562011-08-01 Pascal Obry <obry@adacore.com>
10857
10858 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
10859 Fix Replace_Slice when High is above current string size.
10860 (Replace_Slice): Fix DL computation when High is above current
10861 string length.
10862
108632011-08-01 Gary Dismukes <dismukes@adacore.com>
10864
10865 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
10866
e7f567a3
AC
108672011-08-01 Matthew Heaney <heaney@adacore.com>
10868
10869 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
10870 of node.
10871
108722011-08-01 Pascal Obry <obry@adacore.com>
10873
10874 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
10875 reformatting.
10876
1a265e78
AC
108772011-08-01 Ed Schonberg <schonberg@adacore.com>
10878
10879 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
10880 access to protected subprograms in generic bodies.
10881 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
10882 protected type, indicate that the convention of the subprogram is
10883 Convention_Protected, because it may be used in subsequent declarations
10884 within the protected declaration.
10885
108862011-08-01 Vincent Celier <celier@adacore.com>
10887
10888 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
10889 and "final" procedures when the name of the library is "ada", to avoid
10890 duplicate symbols "adainit" and "adafinal" in executables.
10891
67e28ef8
ES
108922011-08-01 Ed Schonberg <schonberg@adacore.com>
10893
10894 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
10895 quantified expression that appears within a postcondition and uses the
10896 Ada2012 'Result attribute.
10897
6da2ca7d
RO
108982011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10899
10900 * init.c (__gnat_error_handler): Cast reason to int.
10901 (__gnat_install_handler): Explain sa_sigaction use.
10902
7d5997c6
EB
109032011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10904
10905 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
10906 subprogram has copy-in copy-out parameters, try to promote the mode of
10907 the return type if it is passed in registers.
10908
4b4cfdd5
EB
109092011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10910
10911 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
10912 left operand as addressable.
10913
f3d34576
EB
109142011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10915
10916 * gcc-interface/gigi.h (build_function_stub): Remove.
10917 (build_return_expr): Likewise.
10918 (convert_vms_descriptor): Declare.
10919 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
10920 (build_function_stub): Move to...
10921 * gcc-interface/utils2.c (build_return_expr): Move to...
10922 * gcc-interface/trans.c (build_function_stub): ...here.
10923 (build_return_expr): ...here.
10924 (Subprogram_Body_to_gnu): Add local variable for language_function.
10925 Disconnect the parameter attributes cache, if any, once done with it.
10926 Call end_subprog_body only after setting the end_locus.
10927 Build the stub associated with the function, if any, at the very end.
10928 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
10929 variables and streamline control flow.
10930
0a6ecc08
AC
109312011-07-23 Arnaud Charlet <charlet@adacore.com>
10932
10933 PR ada/49819
10934 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
10935 g-trasym-dwarf.adb.
10936
5b6d595b
RO
109372011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10938
10939 PR bootstrap/49794
10940 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
10941 Assign to act.sa_sigaction.
10942 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
10943 current->return_address to char * before arithmetic.
10944
94017021
RO
109452011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10946
10947 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
10948 Correct argument types.
10949 Extract code from reason.
10950 (__gnat_install_handler): Assign to act.sa_sigaction.
10951
52fd02bb
EB
109522011-07-21 Eric Botcazou <ebotcazou@adacore.com>
10953
10954 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
10955 (GNAT1_OBJS): ...here.
10956
f39a9ca2
EB
109572011-07-15 Eric Botcazou <ebotcazou@adacore.com>
10958
10959 PR ada/48711
10960 * g-socthi-mingw.adb (Fill): Fix formatting.
10961
9e36aa23
EB
10962 * gcc-interface/gigi.h: Move around comment.
10963
e3aca522
JDA
109642011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10965
10966 PR ada/46350
10967 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
10968
696b1960
FW
109692011-07-14 Florian Weimer <fw@deneb.enyo.de>
10970
10971 PR ada/48711
10972 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
10973
f542c405
EB
109742011-07-13 Eric Botcazou <ebotcazou@adacore.com>
10975
10976 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
10977 range comparison if Pmode is SImode.
10978
9e9bd455
LG
109792011-07-12 Laurent GUERBY <laurent@guerby.net>
10980 Eric Botcazou <ebotcazou@adacore.com>
10981
10982 * adadecode.c: Wrap up in extern "C" block.
10983 * adadecode.h: Likewise.
10984 * adaint.c: Likewise. Remove 'const' keyword.
10985 * adaint.h: Likewise.
10986 * argv.c: Likewise.
10987 * atree.h: Likewise.
10988 * cio.c: Likewise.
10989 * cstreams.c: Likewise.
10990 * env.c: Likewise.
10991 * exit.c: Likewise.
10992 * fe.h: Likewise.
10993 * final.c: Likewise.
10994 * init.c: Likewise.
10995 * initialize.c: Likewise.
10996 * link.c: Likewise.
10997 * namet.h: Likewise.
10998 * nlists.h: Likewise.
10999 * raise.c: Likewise.
11000 * raise.h: Likewise.
11001 * repinfo.h: Likewise.
11002 * seh_init.c: Likewise.
11003 * targext.c: Likewise.
11004 * tracebak.c: Likewise.
11005 * uintp.h: Likewise.
11006 * urealp.h: Likewise.
11007 * xeinfo.adb: Wrap up generated C code in extern "C" block.
11008 * xsinfo.adb: Likewise.
11009 * xsnamest.adb: Likewise.
11010 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
11011 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
11012 * gcc-interface/misc.c: Likewise.
11013 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
11014 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
11015 ada/targext.o here...
11016 (GNAT_ADA_OBJS): ...and not here.
11017 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
11018 (GNATBIND_OBJS): Reorder.
11019
7644b3c7
RH
110202011-07-07 Richard Henderson <rth@redhat.com>
11021
11022 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
11023 dwarf2out_frame_init.
11024
8384ac41
EB
110252011-07-07 Eric Botcazou <ebotcazou@adacore.com>
11026
11027 * gcc-interface/misc.c (gnat_init): Tweak previous change.
11028
fbdd5d87
RO
110292011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11030
11031 PR target/39150
11032 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
11033
1a072294
RG
110342011-07-06 Richard Guenther <rguenther@suse.de>
11035
8384ac41
EB
11036 * gcc-interface/misc.c (gnat_init): Merge calls to
11037 build_common_tree_nodes and build_common_tree_nodes_2.
1a072294
RG
11038 Re-initialize boolean_false_node.
11039
bc712852
EB
110402011-07-02 Eric Botcazou <ebotcazou@adacore.com>
11041 Olivier Hainque <hainque@adacore.com>
11042 Nicolas Setton <setton@adacore.com>
11043
11044 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
11045 the type according to the ARTIFICIAL_P parameter.
11046 (create_type_decl): Likewise.
11047 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
11048
2eb22389
EB
110492011-07-01 Eric Botcazou <ebotcazou@adacore.com>
11050
11051 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
11052 (gnatbind): Likewise.
11053
4bdaaf2f
RO
110542011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11055
11056 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
11057
c020c92b
EB
110582011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11059
11060 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
11061 local variable throughout. Remove useless call to Base_Type.
11062 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
11063 Take it also into account for the volatileness of the field. Set the
11064 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
11065
96769d32
EB
110662011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11067
11068 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
11069 on a dereference built for a by-ref object if it has an address clause.
11070
7e4680c1
EB
110712011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11072
11073 * einfo.ads (Address_Taken): Document use for the second argument of
11074 Asm_Input and Asm_Output attributes.
11075 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
11076 argument is an entity name, then set Address_Taken on it.
11077 <Attribute_Asm_Output>: Likewise.
11078 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
11079 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
11080 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
11081 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
11082
110832011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
11084
11085 PR middle-end/46500
11086 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
11087
677f3fa8
JM
110882011-06-14 Joseph Myers <joseph@codesourcery.com>
11089
11090 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
11091 (ada/utils.o): Update dependencies.
11092 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
11093 ../../../libcpp/libcpp.a.
11094 * gcc-interface/utils.c: Include common/common-target.h.
11095 (process_attributes): Use targetm_common.have_named_sections.
11096
009db074
RG
110972011-06-07 Richard Guenther <rguenther@suse.de>
11098
0bad0e23
EB
11099 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
11100 set_sizetype.
009db074 11101
3bfc61cf
EB
111022011-06-06 Eric Botcazou <ebotcazou@adacore.com>
11103
0bad0e23 11104 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
3bfc61cf
EB
11105 TREE_THIS_NOTRAP flag.
11106
5c4a1c7b
EB
111072011-06-06 Eric Botcazou <ebotcazou@adacore.com>
11108
11109 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
11110 Fix thinko.
11111
e9f57686
EB
111122011-06-06 Eric Botcazou <ebotcazou@adacore.com>
11113
11114 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
11115 constants whose full view has discriminants specially.
11116
10e4d056
EB
111172011-06-06 Eric Botcazou <ebotcazou@adacore.com>
11118
11119 * gcc-interface/utils.c: Include diagnostic.h.
11120 (gnat_write_global_declarations): Output debug information for all
11121 global type declarations before finalizing the compilation unit.
11122 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
11123
0957c029
JJ
111242011-05-25 Jakub Jelinek <jakub@redhat.com>
11125
11126 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
11127
52d0a7ac
KT
111282011-05-25 Kai Tietz <ktietz@redhat.com>
11129
11130 * adaint.c (__gnat_to_canonical_file_list_next): Use array
11131 initialization instead of const/none-const pointer assignment.
11132
1ed1641d
JM
111332011-05-24 Joseph Myers <joseph@codesourcery.com>
11134
11135 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
11136 $(EXTRA_GNAT1_OBJS).
11137 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
11138 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
11139 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
11140 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
11141 libcommon-target.a instead of prefix.o.
11142
9fe72ebd
JM
111432011-05-21 Joseph Myers <joseph@codesourcery.com>
11144
11145 PR ada/49097
0bad0e23 11146 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9fe72ebd 11147
2691e6d7
JM
111482011-05-20 Joseph Myers <joseph@codesourcery.com>
11149
0bad0e23
EB
11150 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
11151 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
11152 instead of version.o.
2691e6d7 11153
bf6490b5
KT
111542011-05-18 Kai Tietz <ktietz@redhat.com>
11155
11156 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
11157 boolean_false_node instead of integer_zero_node.
11158 (convert_with_check): Likewise.
11159 * gcc-interface/decl.c (choices_to_gnu): Likewise.
11160
7bf9a5ac
EB
111612011-05-12 Eric Botcazou <ebotcazou@adacore.com>
11162
11163 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
11164 type of the parameter is an unconstrained array, convert the actual to
11165 the type of the formal in the In Out and Out cases as well.
11166
e5b00edf
NF
111672011-05-11 Nathan Froyd <froydnj@codesourcery.com>
11168
11169 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
11170 call build_function_type_array or build_varargs_function_type_array
11171 instead.
11172 (create_subprog_type): Don't call build_function_type; call
11173 build_function_type_vec instead.
11174
51545682
NF
111752011-05-11 Nathan Froyd <froydnj@codesourcery.com>
11176
11177 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
11178 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
11179 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
11180
c99c0026
EB
111812011-05-07 Eric Botcazou <ebotcazou@adacore.com>
11182
f620bd21
EB
11183 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
11184
c99c0026
EB
11185 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
11186 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
11187
3d528853
NF
111882011-05-05 Nathan Froyd <froydnj@codesourcery.com>
11189
c99c0026 11190 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
3d528853 11191
d7d058c5
NF
111922011-05-05 Nathan Froyd <froydnj@codesourcery.com>
11193
11194 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
11195 instead of accessing TYPE_ARG_TYPES directly.
11196 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
11197
805e60a0
EB
111982011-05-05 Eric Botcazou <ebotcazou@adacore.com>
11199
11200 PR ada/48844
11201 * gcc-interface/gigi.h (get_variant_part): Declare.
11202 * gcc-interface/decl.c (get_variant_part): Make global.
11203 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
11204 types have the same constant size, are record types and T1 has a
11205 variant part while T2 doesn't.
11206
907a08d9
EB
112072011-05-05 Eric Botcazou <ebotcazou@adacore.com>
11208
11209 * gcc-interface/utils.c (begin_subprog_body): Do not call
11210 get_pending_sizes.
11211 (end_subprog_body): Likewise.
11212
d35936ab
RG
112132011-05-04 Richard Guenther <rguenther@suse.de>
11214
11215 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
11216 int_const_binop.
11217 (pos_to_constructor): Likewise.
11218
c1fd8753 112192011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 11220 Eric Botcazou <ebotcazou@adacore.com>
c1fd8753
NF
11221
11222 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
11223 of build_function_type. Adjust calls to...
11224 (build_raise_check): ...this. Do not take a void_tree parameter.
11225 Call build_function_type_list instead of build_function_type.
11226 Fix head comment and swap couple of conditional blocks.
11227
4fb87d2b
EB
112282011-04-30 Eric Botcazou <ebotcazou@adacore.com>
11229
11230 * gnatvsn.ads (Library_Version): Bump to 4.7.
11231 (Current_Year): Bump to 2011.
11232
fa5e5a76
MM
112332011-04-29 Michael Matz <matz@suse.de>
11234
11235 * gcc-interface/misc.c (gnat_handle_option): Set
11236 warn_maybe_uninitialized.
11237
8d6a2f69
GP
112382011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
11239
11240 * gnat_ugn.texi (Complexity Metrics Control): Update link to
11241 the Watson/McCabe paper.
11242
770937fd
JM
112432011-04-23 Jim Meyering <meyering@redhat.com>
11244
11245 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
11246
eb601ae1
EB
112472011-04-22 Eric Botcazou <ebotcazou@adacore.com>
11248
11249 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
11250 onto the new type.
11251
7d7fcb08
EB
112522011-04-22 Eric Botcazou <ebotcazou@adacore.com>
11253
11254 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
11255 parameter.
11256 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
11257 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
11258 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
11259 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
11260 <all>: Do not set flags on the reused DECL node coming from an alias.
11261 Set DECL_IGNORED_P on the DECL node built for subprograms if they
11262 don't need debug info here...
11263 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
11264 (gigi): Adjust calls to create_subprog_decl.
11265 (build_raise_check): Likewise.
11266 (establish_gnat_vms_condition_handler): Likewise.
11267 (Compilation_Unit_to_gnu): Likewise.
11268 (gnat_to_gnu): Likewise.
11269
e1876cac
EB
112702011-04-21 Eric Botcazou <ebotcazou@adacore.com>
11271
11272 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
11273 (NO_REORDER_ADAFLAGS): New variable.
11274 (EXTRA_GNATTOOLS): Always define.
11275 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
11276 Clean up and adjust list of files compiled with special options.
11277 * gcc-interface/Make-lang.in: Likewise.
11278 (ada/decl.o): Cosmetical change.
11279 (ada/misc.o): Remove dependency on $(PLUGIN_H).
11280
04695783
JM
112812011-04-20 Jim Meyering <meyering@redhat.com>
11282
11283 * initialize.c (__gnat_initialize): Remove useless if-before-free.
11284
23399579
EB
112852011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11286
11287 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
11288 $(CFLAGS) on the link line.
11289
51c5169c
EB
112902011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11291
11292 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
11293 padded type built for the return type if it is unconstrained.
11294
61e46a7d
NF
112952011-04-14 Nathan Froyd <froydnj@codesourcery.com>
11296
11297 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
11298
81f653d6
NF
112992011-04-12 Nathan Froyd <froydnj@codesourcery.com>
11300
b4867846
EB
11301 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
11302 before calling TREE_CHAIN.
81f653d6
NF
11303 * gcc-interface/misc.c (gnat_init_ts): New function.
11304 (LANG_HOOKS_INIT_TS): Define.
11305
a358e188
MJ
113062011-04-12 Martin Jambor <mjambor@suse.cz>
11307
b4867846
EB
11308 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
11309 instead of cgraph_node.
a358e188 11310
29b1c5a4
EB
113112011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11312
11313 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
11314 alignment on fields of the RETURN type built for the Copy-In Copy-Out
11315 mechanism.
11316
88872b00
EB
113172011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11318
11319 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
11320 of aggregate types that contain a placeholder.
11321
dcf0c47e
NF
113222011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11323
11324 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 11325 TYPE_ARG_TYPES.
dcf0c47e
NF
11326 (handle_type_generic_attribute): Likewise.
11327
53e3000c
EB
113282011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11329
11330 PR ada/47163
11331 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
11332
ab380bb4
KT
113332011-04-04 Kai Tietz <ktietz@redhat.com>
11334
11335 PR ada/47163
0bad0e23
EB
11336 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
11337 to flag value.
ab380bb4 11338
8ffac116
EB
113392011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11340
11341 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
11342 type case, do not strip a padding type around the array type.
11343
de9528f0
EB
113442011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11345
11346 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
11347 types.
11348
d9d7a26c
EB
113492011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11350
11351 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
11352 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 11353 code for -feliminate-unused-debug-types.
d9d7a26c
EB
11354 (gnat_post_options): Likewise.
11355
4cb12a90
EB
113562011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11357
11358 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
11359 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
11360 distinct copy.
11361
acccc61c
EB
113622011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11363
11364 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
11365 DECL_ARTIFICIAL flag on enumeration types.
11366
583eb0c9
EB
113672011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11368
11369 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
11370 fat pointer types artificial unconditionally.
11371 <E_Array_Subtype>: Attach the base array type as a parallel type if it
11372 isn't artificial.
11373
e3edbd56
EB
113742011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11375
11376 * gcc-interface/gigi.h (get_dummy_type): Declare.
11377 (build_dummy_unc_pointer_types): Likewise.
11378 (finish_fat_pointer_type): Likewise.
11379 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
11380 fat pointer type has been built, complete it in place.
11381 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
11382 and thin pointers. Remove useless variable.
11383 (finish_fat_pointer_type): Make global and move to...
11384 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
11385 (get_dummy_type): New function.
11386 (build_dummy_unc_pointer_types): Likewise.
11387 (gnat_pushdecl): Propage the name to the anonymous variants only.
11388 (update_pointer_to): Only adjust the pointer types in the unconstrained
11389 array case.
11390
65444786
EB
113912011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11392
11393 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
11394 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
11395 if this is a Taft amendment type and the full declaration is available.
11396 * gcc-interface/trans.c (process_type): Likewise.
11397 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
11398 (process_freeze_entity): Likewise.
11399 * gcc-interface/utils.c (dummy_global): New static variable.
11400 (gnat_write_global_declarations): If there are types declared as used
11401 at the global level, insert them in the global hash table.
11402
1aeb40dd
EB
114032011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11404
11405 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
11406 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
11407 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
11408 copy.
11409 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
11410 flag of the type accordingly.
11411 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
11412
80ec8b4c
EB
114132011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11414
11415 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
11416 finalizing types when updating the pointers to the designated type.
11417 <all>: Finalize the deferred types even if we didn't defer processing
11418 of incomplete types in this invocation.
11419
2a9d769a 114202011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
11421 Nicolas Setton <setton@adacore.com>
11422 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
11423
11424 * gcc-interface/misc.c (gnat_descriptive_type): New function.
11425 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
11426
2438d7a6
KT
114272011-03-28 Kai Tietz <ktietz@redhat.com>
11428
333d8aff 11429 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
11430 Windows targets.
11431 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
11432 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 11433
80ec8b4c 11434 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 11435
8ad150f6
TG
114362011-03-28 Tristan Gingold <gingold@adacore.com>
11437
11438 PR ada/44431
80ec8b4c
EB
11439 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
11440 Use ada output of gnatbind.
8ad150f6
TG
11441 (ada/b_gnatb.adb): Ditto.
11442 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
11443 (ada.mostlyclean, ada.stage1)
11444 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
11445 (ada.stagefeedback): Adjust.
80ec8b4c 11446 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
11447 Use ada output of gnatbind.
11448 (b_gnatm.adb): Ditto.
11449 (b_gnatl.o, b_gnatm.o): New rules.
11450
51c7954d
EB
114512011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11452
11453 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
11454 for the padded type built to support a specified size or alignment.
11455
6ddf9843
EB
114562011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11457
11458 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
11459 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
11460 unconditionally to the end of the unit when the designated type is
11461 limited_with'ed.
11462 <all>: Rename local variable. Attempt to un-defer types only and do it
11463 for limited_with'ed types as well.
11464 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
11465 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
11466 consistently and remove redundant call to finalize_from_with_types.
11467
5daed84a
EB
114682011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11469
11470 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
11471 subprograms without a previous spec declared in the same unit.
11472 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
11473 subprograms at the end of the unit instead of at the beginning.
11474 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
11475 isn't public for the special handling of non-inline functions nested
11476 inside inline external functions.
11477
0edf1bb2
JL
114782011-03-25 Jeff Law <law@redhat.com>
11479
5daed84a 11480 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 11481
e3c4580e
EB
114822011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11483
11484 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
11485 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
11486 to compute Set_Size_Depends_On_Discriminant.
11487 (Layout_Type): Call it on array types in back-end layout mode.
11488 * sem_util.adb (Requires_Transient_Scope): Return true for array
11489 types only if the size depends on the value of discriminants.
11490 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
11491 type if the RHS is a call to a function that returns an unconstrained
11492 type with default discriminant.
11493
abbc8c7b
EB
114942011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11495
11496 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
11497 non-conversion to the nominal result type at the end.
11498
ddb5a105
EB
114992011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11500
11501 * gcc-interface/trans.c (create_temporary): New function taken from...
11502 (create_init_temporary): ...here. Call it.
11503 (call_to_gnu): Create the temporary for the return value early, if any.
11504 Create it for a function with copy-in/copy-out parameters if there is
11505 no target; in other cases of copy-in/copy-out, use another temporary.
11506 Push the new binding level lazily. Add and rename local variables.
11507
0d853156
EB
115082011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11509
11510 * gcc-interface/decl.c (validate_size): Improve comments and tweak
11511 error message.
11512 (set_rm_size): Likewise.
11513
4184ef1b
EB
115142011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11515
11516 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
11517 for the padded type built in order to support a specified alignment.
11518 Fix incorrect formatting.
11519
bf7eefab
EB
115202011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11521
11522 PR bootstrap/48216
11523 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
11524
ef0feeb2
EB
115252011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11526
11527 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
11528 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
11529 to the end of the list. Adjust recursive call. Rename local variable.
11530 If REORDER is true, reorder components of the record type.
11531 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
11532 components_to_record and adjust the parameter list.
11533
646f9414
EB
115342011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11535
11536 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
11537 disabled, use the variable for bounds of loop iteration scheme.
11538
62d784f7
KT
115392011-03-21 Kai Tietz <ktietz@redhat.com>
11540
11541 PR target/12171
0bad0e23 11542 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
62d784f7 11543
f230d759
EB
115442011-03-17 Eric Botcazou <ebotcazou@adacore.com>
11545
11546 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
11547 out whether the expression is read-only. Short-circuit placeholder
11548 case and rename a couple of local variables.
11549
bb1f7929
EB
115502011-03-17 Eric Botcazou <ebotcazou@adacore.com>
11551
11552 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
11553 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
11554 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
11555 (convert): Deal with conversions from a smaller form type specially.
11556
400a2d24
EB
115572011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11558
11559 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
11560 its argument, except for the special -I- switch.
11561
c26bc3ad
GP
115622011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
11563
0bad0e23
EB
11564 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
11565 "Ada Issues".
c26bc3ad 11566
07b8e910
EB
115672011-02-08 Eric Botcazou <ebotcazou@adacore.com>
11568
11569 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
11570
31a5a547
EB
115712011-02-03 Eric Botcazou <ebotcazou@adacore.com>
11572
11573 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
11574 GNAT_FORMAL.
11575 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
11576 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
11577 instead of GNAT_FORMAL. Protect the expression against multiple uses.
11578 Do not generate the check directly, instead instantiate the template
11579 check present in the descriptor.
11580 (make_descriptor_field): Move around.
11581 (build_vms_descriptor32): Build a template check in the POINTER field.
11582 (build_vms_descriptor): Remove useless suffixes.
11583 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
11584
dcf25f59
EB
115852011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11586
11587 PR bootstrap/47467
11588 * targext.c: Include target files if IN_RTS is defined.
11589
0418e131
RG
115902011-01-26 Richard Guenther <rguenther@suse.de>
11591
11592 PR bootstrap/47467
11593 * targext.c: Include config.h.
11594 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
11595 dependency.
11596
c6eecbd8 115972011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 11598 Eric Botcazou <ebotcazou@adacore.com>
c6eecbd8
PO
11599
11600 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
11601
2d3c7e4f
EB
116022011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11603
11604 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
11605 end-of-case on the end label and its associated gotos, if any.
11606
0394741f
EB
116072011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11608
11609 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
11610 expressions of the parameter cache within the statement group of
11611 the CICO mechanism.
11612
2a02d090 116132011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 11614 Eric Botcazou <ebotcazou@adacore.com>
2a02d090
OH
11615
11616 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
11617 (set_end_locus_from_node): New function.
11618 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
11619 make and the function end_locus.
11620 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
11621 for the elaboration subprogram.
11622 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
11623 set the end_locus of the expression as well.
11624
89f5e978
EB
116252011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11626
11627 PR ada/47131
11628 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
11629 variables that are referenced in exception handlers volatile.
11630
11631
ad41bd84 11632\f
797103eb 11633Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
11634
11635Copying and distribution of this file, with or without modification,
11636are permitted in any medium without royalty provided the copyright
11637notice and this notice are preserved.