a6d7e0afa6efbdf4f1fb1bf7945fd78da29c072e
[gcc.git] / gcc / ada / ChangeLog
1 2011-08-29 Tristan Gingold <gingold@adacore.com>
2
3 * a-exexpr.adb (Setup_Exception): Removed.
4 * a-exexpr-gcc.adb (Setup_Exception): Removed.
5 * a-except.adb (Exception_Propagation): Removed.
6 * a-except-2005.adb (Setup_Exception): Removed.
7 (Reraise): Remove call to Setup_Exception.
8 (Reraise_Occurrence): Ditto.
9 (Reraise_Occurrence_Always): Ditto.
10 (Reraise_Occurrence_No_Defer): Ditto.
11 (Transfer_Occurrence): Ditto.
12 * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception.
13 (Set_Exception_Msg): Ditto.
14
15 2011-08-29 Robert Dewar <dewar@adacore.com>
16
17 * a-convec.adb, exp_disp.adb: Minor reformatting.
18
19 2011-08-29 Tristan Gingold <gingold@adacore.com>
20
21 * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
22
23 2011-08-29 Gary Dismukes <dismukes@adacore.com>
24
25 * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
26 Exception_Handlers to No_List instead of Empty_List in the case where
27 there are no handlers.
28
29 2011-08-29 Tristan Gingold <gingold@adacore.com>
30
31 * gcc-interface/gigi.h (enum standard_datatypes): Add
32 ADT_reraise_zcx_decl
33 (reraise_zcx_decl): New macro.
34 * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable.
35 (gigi): Set reraise_zcx_decl.
36 (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr.
37 (gnat_to_gnu): Handle N_Raise_Statement.
38
39 2011-08-29 Robert Dewar <dewar@adacore.com>
40
41 * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads,
42 a-undesu.adb: Minor reformatting.
43
44 2011-08-29 Ed Schonberg <schonberg@adacore.com>
45
46 * exp_disp.adb (Check_Premature_Freezing): When building a dispatch
47 table, accept an unfrozen untagged component if it is an actual for a
48 formal incomplete type.
49 * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to
50 provide new iterator forms over vectors.
51 Introduce type Iterator in package body to implement operations of
52 Reversible_Iterator interface.
53 * a-iteint.ads: Make package pure so it is usable with new container
54 packages, that are categorized Remote_Types.
55
56 2011-08-29 Robert Dewar <dewar@adacore.com>
57
58 * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting.
59
60 2011-08-29 Bob Duff <duff@adacore.com>
61
62 * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case
63 of <>, because this is the routine that checks for dimensionality
64 errors (for example, for a two-dimensional array, (others => <>) should
65 be (others => (others => <>)).
66
67 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
68
69 * impunit.adb: Add new run-time units.
70 * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb,
71 s-stposu.ads, s-stposu.adb: Code clean up.
72 Handle protected class-wide or task class-wide types
73 Handle C/C++/CIL/Java types.
74 * s-spsufi.adb, s-spsufi.ads: New files.
75
76 2011-08-29 Yannick Moy <moy@adacore.com>
77
78 * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on
79 library-level subprogram.
80 * sem_prag.adb (Check_Test_Case): Stricter rules for test-case
81 placement.
82 (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case
83 component.
84 * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case
85 component.
86 * gnat_rm.texi: Update doc for Test_Case pragma.
87
88 2011-08-29 Tristan Gingold <gingold@adacore.com>
89
90 * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it
91 convention C.
92 (GCC_Exception_Access): New type.
93 (Unwind_DeleteException): New imported procedure
94 (Foreign_Exception): Import it.
95 (GNAT_GCC_Exception): Simply have the occurrence inside.
96 (To_GCC_Exception): New function.
97 (To_GNAT_GCC_Exception): New function.
98 (GNAT_GCC_Exception_Cleanup): New procedure..
99 (Propagate_GCC_Exception): New procedure.
100 (Reraise_GCC_Exception): New procedure.
101 (Setup_Current_Excep): New procedure.
102 (CleanupUnwind_Handler): Change type of UW_Exception parameter.
103 (Unwind_RaiseException): Ditto.
104 (Unwind_ForcedUnwind): Ditto.
105 (Remove): Removed.
106 (Begin_Handler): Change type of parameter.
107 (End_Handler): Ditto. Now delete the exception if still present.
108 (Setup_Key): Removed.
109 (Is_Setup_And_Not_Propagated): Removed.
110 (Set_Setup_And_Not_Propagated): Ditto.
111 (Clear_Setup_And_Not_Propagated): Ditto.
112 (Save_Occurrence_And_Private): Ditto.
113 (EID_For): Add 'not null' constraint on parameter.
114 (Setup_Exception): Does nothing.
115 (Propagate_Exception): Simplified.
116 * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model,
117 re-raise is not expanded anymore.
118 * s-except.ads (Foreign_Exception): New exception - placeholder for
119 non Ada exceptions.
120 * raise-gcc.c (__gnat_setup_current_excep): Declare
121 (CXX_EXCEPTION_CLASS): Define (not yet used)
122 (GNAT_EXCEPTION_CLASS): Define.
123 (is_handled_by): Handle foreign exceptions.
124 (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep.
125
126 2011-08-29 Jose Ruiz <ruiz@adacore.com>
127
128 * a-synbar.adb (Synchronous_Barrier): Some additional clarification.
129
130 2011-08-29 Thomas Quinot <quinot@adacore.com>
131
132 * a-synbar-posix.adb: Minor reformatting.
133
134 2011-08-29 Jose Ruiz <ruiz@adacore.com>
135
136 * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads,
137 a-exetim-default.ads (Interrupt_Clocks_Supported,
138 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
139 definitions to be compliant with AI-0171. The target systems do not
140 support separate account for the execution time of interrupt handlers.
141
142 2011-08-29 Jose Ruiz <ruiz@adacore.com>
143
144 * a-synbar.adb (Wait): Change the order of evaluation of the conditions
145 in the barrier to put first the easiest to evaluate (and the one which
146 will be True more often). More efficient.
147
148 2011-08-29 Eric Botcazou <ebotcazou@adacore.com>
149
150 * s-atocou-x86.adb: Fix constraint in machine code insertion.
151
152 2011-08-29 Bob Duff <duff@adacore.com>
153
154 * aspects.ads, aspects.adb: Add new aspects for various pragmas and
155 attributes that are now aspects, as specified by AI05-0229-1.
156 * sem_ch13.adb (Analyze_Aspect_Specifications,
157 Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into
158 pragmas or attribute references, as appropriate.
159
160 2011-08-29 Robert Dewar <dewar@adacore.com>
161
162 * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb,
163 a-synbar-posix.ads: Minor reformatting.
164
165 2011-08-29 Yannick Moy <moy@adacore.com>
166
167 * snames.ads-tmpl: Add name Force.
168
169 2011-08-29 Pascal Obry <obry@adacore.com>
170
171 * prj-nmsc.adb: Minor reformatting.
172
173 2011-08-29 Jose Ruiz <ruiz@adacore.com>
174
175 * a-exetim.ads (Interrupt_Clocks_Supported,
176 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
177 definitions to be compliant with AI-0171.
178
179 2011-08-29 Robert Dewar <dewar@adacore.com>
180
181 * a-ngelfu.adb: Add comments.
182
183 2011-08-29 Geert Bosch <bosch@adacore.com>
184
185 * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is
186 the closest machine number to Pi / 2.0.
187
188 2011-08-29 Jose Ruiz <ruiz@adacore.com>
189
190 * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012
191 package Ada.Synchronous_Barriers.
192 * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb:
193 Add new specs and bodies for Ada.Synchronous_Barriers. There is a
194 default implementation using protected objects and another one
195 a-synbar-posix using POSIX barriers as the underlying support.
196 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86,
197 x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of
198 Ada.Synchronous_Barriers which uses POSIX barriers (more efficient).
199 Clean up dependencies.
200 * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o
201
202 2011-08-29 Robert Dewar <dewar@adacore.com>
203
204 * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb,
205 exp_dist.adb: Minor code reorganization.
206 Minor reformatting.
207
208 2011-08-29 Thomas Quinot <quinot@adacore.com>
209
210 * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW
211 primitive operation must support external streaming if it is not a
212 controlling access result.
213
214 2011-08-29 Thomas Quinot <quinot@adacore.com>
215
216 * sinfo.ads, sem_ch7.adb: Minor reformatting.
217
218 2011-08-29 Bob Duff <duff@adacore.com>
219
220 * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization
221 restriction on allocators, as required by AI05-0013-1.
222 * restrict.ads: Minor comment fix.
223
224 2011-08-29 Tristan Gingold <gingold@adacore.com>
225
226 * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb
227 (To_Jmpbuf_Address): Ditto
228 (builtin_longjmp): Ditto
229
230 2011-08-29 Thomas Quinot <quinot@adacore.com>
231
232 * sem_res.adb: Minor reformatting.
233
234 2011-08-29 Vincent Celier <celier@adacore.com>
235
236 * make.adb (Gnatmake): Move special processing for VM targets after the
237 call to Get_Target_Parameters.
238
239 2011-08-29 Thomas Quinot <quinot@adacore.com>
240
241 * sem_ch12.adb, par-ch12.adb: Minor reformatting.
242
243 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
244
245 * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases
246 where an anonymous access discriminant of a limited designated type
247 appears in a non-immutably limited discriminated type and issue an
248 error message. Add local variable Desig_T and replace all occurrences
249 of Designated_Type.
250
251 2011-08-29 Jose Ruiz <ruiz@adacore.com>
252
253 * a-rttiev.adb (Set_Handler): Update comment to indicate that our
254 implementation is compliant to RM D.15(15/2) after the modification
255 imposed by AI05-0094-1 (binding interpretation).
256
257 2011-08-29 Robert Dewar <dewar@adacore.com>
258
259 * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb,
260 s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting.
261
262 2011-08-29 Thomas Quinot <quinot@adacore.com>
263
264 * par-endh.adb (Check_End): For an END where it is mandatory to repeat
265 the scope name, do not report a missing label as a style violation (it
266 will be diagnosed as an illegality).
267 * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of
268 variant records: Get_Enum_Lit_From_Pos already returns a usage
269 occurrence of the literal, no need to use New_Occurrence_Of. Set Etype
270 on Expr in Integer_Literal case so that it can be used by
271 Build_To_Any_Call.
272
273 2011-08-29 Tristan Gingold <gingold@adacore.com>
274
275 * exp_sel.ads (Build_Abort_BLock_Handler): New function spec.
276 Adjust comment.
277 * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler.
278 (Build_Abort_Block_Handler): New function to build an Abort_Signal
279 exception handler.
280 * exp_ch9.adb (Expand_N_Asynchronous_Select): Call
281 Build_Abort_Block_Handler to build the exception handler. Do not
282 undefer aborts for the Abort_Signal exception handler if back-end
283 exception mechanism.
284 * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if
285 back_end exceptions for all others and abort_signal.
286 * s-except.ads (ZCX_By_Default): New constant.
287 * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX.
288 (Raise_Exception_Always): Ditto.
289 (Raise_From_Signal_Handler): Ditto.
290 (Raise_With_Location_And_Msg): Ditto.
291 (Raise_With_Msg): Ditto.
292 (Reraise): Ditto.
293 (Reraise_Occurence): Ditto.
294 (Reraise_Occurrence_Always): Ditto.
295 * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX.
296 * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX.
297
298 2011-08-29 Thomas Quinot <quinot@adacore.com>
299
300 * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation.
301
302 2011-08-29 Robert Dewar <dewar@adacore.com>
303
304 * snames.adb-tmpl, sem_ch13.adb: Minor reformatting
305 Minor code reorganization.
306
307 2011-08-29 Bob Duff <duff@adacore.com>
308
309 * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada
310 2012, not just Ada 2005.
311
312 2011-08-29 Vincent Celier <celier@adacore.com>
313
314 * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake
315 with a project file or with gprbuid, if -gnatep= is specified, the
316 builder may need to be invoked with -x.
317
318 2011-08-29 Tristan Gingold <gingold@adacore.com>
319
320 * a-exexpr-gcc.adb: Minor comment fix.
321
322 2011-08-29 Robert Dewar <dewar@adacore.com>
323
324 * sem_ch8.adb: Minor reformatting.
325
326 2011-08-29 Bob Duff <duff@adacore.com>
327
328 * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012.
329 * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for
330 treating "some" as unreserved in earlier Ada versions. This is now
331 handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some,
332 rather than Name_Some, since Tok_Some is now recognized as reserved.
333 * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other
334 reserved word.
335 * scans.ads: Minor comment fixes.
336 * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as
337 for other language versions.
338 * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for
339 treating "some" as unreserved in earlier Ada versions. This is now
340 handled in Snames.Is_Keyword_Name.
341 * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in
342 Ada 2012.
343 (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as
344 unreserved in earlier Ada versions. This is now handled in
345 Snames.Is_Keyword_Name.
346 * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved
347 words as for other language versions.
348 * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to
349 Ada 2012, not just Ada 2005.
350
351 2011-08-29 Ed Schonberg <schonberg@adacore.com>
352
353 * sem_ch13.adb: Additional semantic checks for aspects involved in
354 iterators.
355
356 2011-08-29 Matthew Heaney <heaney@adacore.com>
357
358 * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb,
359 a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous
360 Container parameter.
361 (Ancestor_Find): ditto.
362
363 2011-08-29 Thomas Quinot <quinot@adacore.com>
364
365 * par-endh.adb: Minor reformatting.
366
367 2011-08-29 Tristan Gingold <gingold@adacore.com>
368
369 * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants.
370 (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component.
371 (Adjust_N_CLeanups_For): Remove.
372 (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of
373 stack is reached.
374 (Propgate_Exception): Adjust.
375 * raise-gcc.c: Add a few static/const.
376 (Adjust_N_Cleanups_For): Remove declaration.
377 (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger.
378
379 2011-08-29 Ed Schonberg <schonberg@adacore.com>
380
381 * sem_ch8.adb: Use type of function return when rewriting as object
382 declaration.
383
384 2011-08-29 Gary Dismukes <dismukes@adacore.com>
385
386 * sem_type.adb: Minor reformatting.
387
388 2011-08-29 Robert Dewar <dewar@adacore.com>
389
390 * makeutl.adb: Minor reformatting.
391
392 2011-08-29 Ed Schonberg <schonberg@adacore.com>
393
394 * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a
395 function call of a limited type, the expansion of the renaming is
396 complicated by the presence of various temporaries and subtypes that
397 capture constraints of the renamed object.
398 Rewrite node as an object declaration, whose expansion is simpler.
399 Given that the object is limited there is no copy involved and no
400 performance hit.
401
402 2011-08-29 Robert Dewar <dewar@adacore.com>
403
404 * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb,
405 freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting.
406
407 2011-08-29 Tristan Gingold <gingold@adacore.com>
408
409 * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
410 system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads,
411 system-linux-hppa.ads, system-linux-s390.ads,
412 system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
413 system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads,
414 system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads,
415 system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads,
416 system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads,
417 system-solaris-sparc.ads, system-lynxos-x86.ads,
418 system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads,
419 system-solaris-x86_64.ads, system-mingw-x86_64.ads,
420 system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads,
421 system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads,
422 system-vxworks-x86.ads: Remove GCC_ZCX_Support
423 * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb,
424 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto.
425 * opt.ads: Adjust comment.
426 * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target.
427 * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target.
428 * system.ads: Move GCC_ZCX_Support to obsolete entries.
429
430 2011-08-29 Emmanuel Briot <briot@adacore.com>
431
432 * makeutl.adb (Do_Complete): Resolve symbolic links when a relative
433 file name is specified on the gnatmake or gprbuild command line, and
434 before we search for that file in the project.
435
436 2011-08-29 Ed Schonberg <schonberg@adacore.com>
437
438 * sem_type.adb (Within_Instance): New predicate in Collect_Interps,
439 used to determine whether a possible interpretation for an overloadable
440 entity is declared within the current instantiation and should be
441 included in the candidate set.
442
443 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
444
445 * gnat_rm.texi, gnat_ugn.texi: Clean ups.
446
447 2011-08-29 Ed Schonberg <schonberg@adacore.com>
448
449 * sem_res.adb (Resolve_Actuals): Use base type to determine whether an
450 access subtype is access_to_subprogram, when applying checks for
451 RM 3.10.2 (27).
452
453 2011-08-29 Matthew Heaney <heaney@adacore.com>
454
455 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
456 for sibling when common parent.
457
458 2011-08-29 Thomas Quinot <quinot@adacore.com>
459
460 * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
461 "pragma_".
462
463 2011-08-29 Ed Schonberg <schonberg@adacore.com>
464
465 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
466 for the return type when in ASIS mode.
467
468 2011-08-29 Vincent Celier <celier@adacore.com>
469
470 * make.adb (Gnatmake): Get the default search dirs, then the target
471 parameters after getting the Builder switches, as the Builder switches
472 may include --RTS= and that could change the default search dirs.
473
474 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
475
476 * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
477 Make_Final_Call. Move the processing for class-wide types before the
478 processing for derivations from [Limited_]Controlled.
479 (Make_Final_Call): Move the processing for class-wide types before the
480 processing for derivations from [Limited_]Controlled.
481 * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
482 Add code to account for alignments larger than the list header. Add a
483 comment illustrating the structure of the allocated object + padding +
484 header.
485 (Deallocate_Any_Controlled): Add code to account for alignments larger
486 than the list header.
487
488 2011-08-29 Ed Schonberg <schonberg@adacore.com>
489
490 * sinfo.ads, sinfo.adb: New node kind
491 N_Formal_Incomplete_Type_Definition, related flags.
492 par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
493 Parse formal incomplete types.
494 * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
495 sem_ch12.
496 * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
497 Formal incomplete types do not need completion.
498 * sem_ch12.adb (Analyze_Formal_Incomplete_Type,
499 Validate_Incomplete_Type_Instance): New procedures to handle formal
500 incomplete types.
501 * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
502 that corresponds to a formal incomplete type.
503 * sprint.adb: Handle formal incomplete type declarations.
504 * exp_util.adb (Insert_Actions): An incomplete_type_definition is not
505 an insertion point.
506
507 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
508
509 * a-fihema.ads, a-fihema.adb: Unit removed.
510 * a-undesu.ads, a-undesu.adb: New unit implementing
511 Ada.Unchecked_Deallocate_Subpool.
512 * einfo.adb: Remove Associated_Collection from the node usage.
513 Add Finalization_Master to the node usage.
514 (Associated_Collection): Removed.
515 (Finalization_Master): New routine.
516 (Set_Associated_Collection): Removed.
517 (Set_Finalization_Master): New routine.
518 (Write_Field23_Name): Remove Associated_Collection from the output. Add
519 Finalization_Master to the output.
520 * einfo.ads: Remove attribute Associated_Collection and its uses in
521 entities.
522 Add new attribute Finalization_Master along with its uses in entitites.
523 (Associated_Collection): Removed along with its pragma import.
524 (Finalization_Master): New routine along with a pragma import.
525 (Set_Associated_Collection): Removed along with its pragma import.
526 (Set_Finalization_Master): New routine along with a pragma import.
527 * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to
528 Build_Finalization_Collection with Build_Finalization_Master.
529 (Expand_Freeze_Record_Type): Move the generation of Finalize_Address
530 before the bodies of the predefined routines. Add comment explaining
531 this. Replace call to Build_Finalization_Collection with
532 Build_Finalization_Master.
533 (Freeze_Type): Replace call to Build_Finalization_Collection with
534 Build_Finalization_Master.
535 (Make_Finalize_Address_Body): Comment reformatting.
536 (Make_Predefined_Primitive_Specs): Code reformatting.
537 (Stream_Operation_OK): Update comment mentioning finalization
538 collections. Replace RE_Finalization_Collection with
539 RE_Finalization_Master.
540 * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to
541 Associated_Collection with Finalization_Master. Replace call to
542 Build_Finalization_Collection with Build_Finalization_Master.
543 (Expand_Allocator_Expression): Replace call to Associated_Collection
544 with Finalization_Master. Replace call to Set_Associated_Collection with
545 Set_Finalization_Master. Remove the generation of
546 Set_Finalize_Address_Ptr.
547 (Expand_N_Allocator): Replace call to Associated_Collection with
548 Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr.
549 * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to
550 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the
551 comment on usage. Replace call to Needs_BIP_Collection with
552 Needs_BIP_Finalization_Master Remplace BIP_Collection with
553 BIP_Finalization_Master. Update all comments which mention finalization
554 collections. Replace Associated_Collection with
555 Finalization_Master. Replace Build_Finalization_Collection with
556 Build_Finalization_Master.
557 (BIP_Formal_Suffix): Update BIP_Collection's case.
558 (Build_Heap_Allocator): Update the related comment. Rename local
559 variable Collect to Fin_Mas_Id and update its occurrences. Update
560 comments which mention finalization collections. Replace
561 Set_Associated_Collection with Set_Finalization_Master.
562 (Expand_Call): Update the code which detects a special piece of library
563 code for .NET/JVM.
564 (Make_Build_In_Place_Call_In_Allocator): Replace the call to
565 Add_Collection_Actual_To_Build_In_Place_Call with
566 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code
567 which generates a call to Make_Set_Finalize_Address_Ptr_Call.
568 (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to
569 Add_Collection_Actual_To_Build_In_Place_Call with
570 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
571 (Make_Build_In_Place_Call_In_Assignment): Replace call to
572 Add_Collection_Actual_To_Build_In_Place_Call with
573 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
574 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
575 * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master.
576 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
577 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage.
578 Rename local variable Collect to Fin_Mas_Id and update its occurrences.
579 Replace call to Set_Associated_Collection with Set_Finalization_Master.
580 (Build_Finalization_Collection): Renamed to Build_Finalization_Master.
581 Replace the call to Associated_Collection with Finalization_Master.
582 Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences.
583 Update the way finalization master names are generated. Update the
584 retrieval of the correct access type which will carry the pool and
585 master attributes.
586 (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved.
587 (Make_Finalize_Address_Body): Abstract types do not need
588 Finalize_Address. Code reformatting.
589 (Make_Finalize_Address_Stmts): Update comment on usage.
590 (Make_Set_Finalize_Address_Ptr_Call): Removed.
591 (Process_Declarations): Update comments.
592 * exp_ch7.ads (Build_Finalization_Collection): Renamed to
593 Build_Finalization_Master. Update associated comment.
594 (Make_Set_Finalize_Address_Ptr_Call): Removed.
595 * exp_ch13.adb: Update comments which mention finalization collections.
596 (Expand_N_Free_Statement): Replace the call to Associated_Collection
597 with Finalization_Master.
598 * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to
599 create calls to routines Allocate_Any_Controlled and
600 Deallocate_Any_Controlled.
601 (Find_Finalize_Address): New routine.
602 (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the
603 comparison.
604 (Requires_Cleanup_Actions): Update the comment on freeze node
605 inspection.
606 * exp_util.ads: Remove comment on generated code for
607 Build_Allocate_Deallocate_Proc. The code is now quite complex and it
608 is better to simply look in the body.
609 * freeze.adb (Freeze_All): Update the comment of finalization
610 collections. Replace the call to Associated_Collection with
611 Finalization_Master. Replace the call to Build_Finalization_Collection
612 with Build_Finalization_Master.
613 * impunit.adb: Add a-undesu and s-stposu to the list of units.
614 * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file
615 a-fihema.
616 * rtsfind.adb (Get_Unit_Name): Remove the processing for children of
617 Ada.Finalization. Add processing for children of System.Storage_Pools.
618 * rtsfind.ads: Remove the naming of second level children of
619 Ada.Finalization.
620 Remove Ada_Finalization_Heap_Management from the list of units.
621 Remove subtype Ada_Finalization_Child.
622 Remove the following subprogram entities:
623
624 RE_Allocate
625 RE_Deallocate
626 RE_Finalization_Collection
627 RE_Finalization_Collection_Ptr
628 RE_Set_Finalize_Address_Ptr
629
630 Add the naming of second level children of System.Storage_Pools.
631 Add System_Finalization_Masters and System_Storage_Pools_Subpools to
632 the list of units.
633 Add subtype System_Storage_Pools_Child.
634 Add the following subprogram entities to System.Finalization_Masters:
635
636 RE_Finalization_Master
637 RE_Finalization_Master_Ptr
638
639 Add the following subprogram entities to System.Storage_Pools.Subpools:
640
641 RE_Allocate_Any_Controlled
642 RE_Deallocate_Any_Controlled
643 RE_Root_Storage_Pool_With_Subpools
644 RE_Root_Subpool
645 RE_Subpool_Handle
646
647 Move the following subprogram entities from
648 Ada.Finalization.Heap_Management to System.Finalization_Masters:
649
650 RE_Add_Offset_To_Address
651 RE_Attach
652 RE_Base_Pool
653 RE_Detach
654
655 * sem_ch3.adb (Access_Type_Declaration): Replace the call to
656 Set_Associated_Collection with Set_Finalization_Master.
657 * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal
658 BIP_Finalization_Master is created.
659 * s-finmas.adb: New unit System.Finalization_Masters.
660 * s-finmas.ads: New unit System.Finalization_Masters.
661 * s-stopoo.ads, s-stopoo.adb: Minor code reformatting.
662 * s-stposu.ads, s-stposu.adb: New unit implementing
663 System.Storage_Pools.Subpools.
664
665 2011-08-29 Bob Duff <duff@adacore.com>
666
667 * tbuild.adb: Add assertion.
668
669 2011-08-29 Thomas Quinot <quinot@adacore.com>
670
671 * s-pooglo.adb: Minor reformatting.
672
673 2011-08-29 Ed Schonberg <schonberg@adacore.com>
674
675 * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is
676 an indexed component of a packed array whose element type is a record
677 with a representation clause different from that of the right-hand
678 side, generate a temporary to minimuze the number of bit-field
679 operations generated.
680
681 2011-08-29 Ed Schonberg <schonberg@adacore.com>
682
683 * exp_util.adb (Insert_Actions): Use clauses can be part of lists of
684 declarations, and thus are likely insertion points for actions.
685
686 2011-08-29 Bob Duff <duff@adacore.com>
687
688 * einfo.ads: Minor comment fix.
689
690 2011-08-29 Robert Dewar <dewar@adacore.com>
691
692 * frontend.adb, gnat1drv.adb: Minor reformatting.
693
694 2011-08-29 Tristan Gingold <gingold@adacore.com>
695
696 * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment.
697 * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding
698 space in front of the header.
699
700 2011-08-29 Johannes Kanig <kanig@adacore.com>
701
702 * frontend.adb (Frontend): Exit after creating Standard package when
703 -gnatd.H is present.
704 * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is
705 present.
706
707 2011-08-29 Robert Dewar <dewar@adacore.com>
708
709 * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb,
710 makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl,
711 snames.ads-tmpl: Minor reformatting.
712
713 2011-08-29 Philippe Gil <gil@adacore.com>
714
715 * prj.adb (Reset_Units_In_Table): New procedure.
716 Reset units to avoid access to freed memory.
717
718 2011-08-29 Thomas Quinot <quinot@adacore.com>
719
720 * get_scos.adb: When reading a P statement SCO without a pragma name
721 (from an older ALI file), ensure that the Pragma_Name component is set
722 to Unknown_Pragma (not left uninitialized).
723
724 2011-08-29 Vincent Celier <celier@adacore.com>
725
726 * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and
727 modified to compute correctly the object path of a SAL project that is
728 extending another library project.
729 (Write_Path_File): New procedure.
730 * makeutl.ads (Directories): New table moved from Buildgpr
731 (Get_Directories): New procedure moved from Buildgpr
732 (Write_Path_File): New procedure
733 * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the
734 paths before binding SALs, instead of Set_Ada_Paths.
735 * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package
736 Prj.
737 * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env
738 (Current_Source_Path_File_Of): New function
739 (Set_Current_Object_Path_File_Of): New procedure
740 (Current_Source_Object_File_Of): New function
741 (Set_Current_Object_Path_File_Of): New procedure
742 * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env
743 (Current_Source_Path_File_Of): New function
744 (Set_Current_Object_Path_File_Of): New procedure
745 (Current_Source_Object_File_Of): New function
746 (Set_Current_Object_Path_File_Of): New procedure
747
748 2011-08-29 Ed Schonberg <schonberg@adacore.com>
749
750 * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a
751 packed entity, use a bit-field assignment only if there is no change of
752 representation.
753
754 2011-08-29 Thomas Quinot <quinot@adacore.com>
755
756 * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use
757 Is_RTU instead of using Chars comparisons.
758
759 2011-08-29 Thomas Quinot <quinot@adacore.com>
760
761 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a
762 temporary object if the actual is constrained, and the discriminants
763 read from the stream don't match.
764
765 2011-08-29 Tristan Gingold <gingold@adacore.com>
766
767 * sem_attr.adb, exp_attr.adb: Add handling of
768 Attribute_System_Allocator_Alignment
769 * snames.ads-tmpl: Add Name_System_Allocator_Alignment and
770 Attribute_System_Allocator_Alignment.
771 * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment.
772 * gcc-interface/targtyps.c, gcc-interface/utils2.c,
773 gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to
774 get_target_system_allocator_alignment.
775
776 2011-08-29 Arnaud Charlet <charlet@adacore.com>
777
778 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
779 dependencies.
780
781 2011-08-29 Arnaud Charlet <charlet@adacore.com>
782
783 * exp_ch3.adb (In_Runtime): Fix typo.
784
785 2011-08-29 Bob Duff <duff@adacore.com>
786
787 * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification.
788
789 2011-08-29 Ed Schonberg <schonberg@adacore.com>
790
791 * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged
792 and a separate tag assignment is generated, ensure that the tag
793 assignment is analyzed.
794
795 2011-08-29 Ed Schonberg <schonberg@adacore.com>
796
797 * atree.ads, atree.adb (Copy_Separate_List): New function that applies
798 Copy_Separate_Tree to a list of nodes. Used to create disjoint copies
799 of statement lists that may contain local declarations.
800 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to
801 duplicate the triggering statements needed for the expansion of this
802 construct, when the trigger is a dispatching call to a synchronized
803 primitive.
804
805 2011-08-29 Arnaud Charlet <charlet@adacore.com>
806
807 * gnat_rm.texi: Add doc for 'Elab_Subp_Body.
808 * bindgen.adb: Add comments.
809 * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body
810 in CodePeer mode.
811
812 2011-08-29 Robert Dewar <dewar@adacore.com>
813
814 * exp_attr.adb: Minor reformatting.
815 Minor code reorganization and commenting.
816 * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor
817 reformatting.
818
819 2011-08-29 Thomas Quinot <quinot@adacore.com>
820
821 * get_scos.adb: Ignore chaining indicators not currently supported
822 by Ada.
823
824 2011-08-29 Arnaud Charlet <charlet@adacore.com>
825
826 * system.ads: Minor editing.
827
828 2011-08-29 Arnaud Charlet <charlet@adacore.com>
829
830 * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in
831 CodePeer mode.
832 * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of
833 Attribute_Elab_Subp_Body.
834 * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New.
835 * sem_util.adb: Update comments.
836
837 2011-08-29 Thomas Quinot <quinot@adacore.com>
838
839 * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record
840 pragma name for each SCO statement corresponding to a pragma.
841
842 2011-08-29 Arnaud Charlet <charlet@adacore.com>
843
844 * opt.ads: Minor editing.
845
846 2011-08-29 Yannick Moy <moy@adacore.com>
847
848 * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode
849 that only made sense for CodePeer mode.
850
851 2011-08-29 Jose Ruiz <ruiz@adacore.com>
852
853 * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag
854 which is no longer used.
855 * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the
856 handling of the 64-bit division check.
857 * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit
858 division available.
859 * system*.ads (Support_64_Bit_Divides): Remove this flag which is no
860 longer used.
861
862 2011-08-29 Thomas Quinot <quinot@adacore.com>
863
864 * get_scos.adb: Minor reformatting.
865
866 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
867
868 * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a
869 statement list is wrapped in a block, the block is explicitly analyzed
870 in order to properly redecorate the entities and create a servicing
871 finalizer.
872
873 2011-08-29 Tristan Gingold <gingold@adacore.com>
874
875 * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove.
876 (Set_Zero_Cost_Handling): Remove.
877
878 2011-08-29 Thomas Quinot <quinot@adacore.com>
879
880 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting
881
882 2011-08-29 Geert Bosch <bosch@adacore.com>
883
884 * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation
885 instruction, as the latter may produce -0.0, which is not a valid VAX
886 F float number.
887 (Neg_G): Likewise for VAX F float.
888
889 2011-08-29 Robert Dewar <dewar@adacore.com>
890
891 * exp_util.adb: Minor reformatting.
892
893 2011-08-29 Yannick Moy <moy@adacore.com>
894
895 * sem_ch3.adb: Minor comment update.
896
897 2011-08-29 Thomas Quinot <quinot@adacore.com>
898
899 * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of
900 the operand type.
901
902 2011-08-29 Thomas Quinot <quinot@adacore.com>
903
904 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush
905 current statement sequence on a generic instantiation or a subprogram
906 declaration.
907
908 2011-08-29 Robert Dewar <dewar@adacore.com>
909
910 * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb:
911 Minor reformatting.
912
913 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
914
915 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
916 Correct the check which involves the freeze node of a controlled or
917 access-to-controlled type.
918
919 2011-08-29 Geert Bosch <bosch@adacore.com>
920
921 * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm
922 statements.
923 * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from
924 Asm statements.
925
926 2011-08-29 Yannick Moy <moy@adacore.com>
927
928 * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration
929 for every index type and component type that is not a subtype_mark.
930 (Process_Subtype): Set Etype of subtype.
931
932 2011-08-29 Robert Dewar <dewar@adacore.com>
933
934 * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code
935 reorganization. Minor reformatting.
936
937 2011-08-29 Steve Baird <baird@adacore.com>
938
939 * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion
940 for CodePeer and ALFA modes.
941
942 2011-08-29 Ed Schonberg <schonberg@adacore.com>
943
944 * sem_type.adb (Collect_Interps): Within an instance, collect a homonym
945 that comes from an enclosing scope if it is not the renaming of an
946 actual, to handle properly a spurious ambiguity in an instance.
947
948 2011-08-29 Eric Botcazou <ebotcazou@adacore.com>
949
950 * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to...
951 (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and
952 use it instead of the Esize of the first parameter.
953 (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to
954 above change.
955 <Size>: Likewise. Call it for composite types on the RM size.
956
957 2011-08-29 Yannick Moy <moy@adacore.com>
958
959 * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array.
960 * sem_util.adb (Unique_Name): Correct behaviour for names of
961 compilation units.
962
963 2011-08-29 Yannick Moy <moy@adacore.com>
964
965 * sem_prag.adb (Check_Precondition_Postcondition): In formal
966 verification mode, analyze pragma expression for correctness, for
967 pre/post on library-level subprogram, as it is not expanded later.
968
969 2011-08-29 Yannick Moy <moy@adacore.com>
970
971 * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates
972 in formal verification.
973
974 2011-08-29 Thomas Quinot <quinot@adacore.com>
975
976 * sem_util.adb: Minor reformatting.
977 * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute,
978 there's no pragma.
979 * par_sco.ads, par_sco.adb: Update comments.
980
981 2011-08-29 Yannick Moy <moy@adacore.com>
982
983 * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and
984 associated getter/setter.
985 * sem_ch6.adb: Remove reference to Is_Postcondition_Proc.
986
987 2011-08-29 Vincent Celier <celier@adacore.com>
988
989 * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind
990 * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler
991 with declarations for Language_Kind and Dependency_Kind for Ada.
992 * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name
993 (Process_Compiler): Take into account the new attributes Dependency_Kind
994 and Language_Kind.
995 (Check_Configuration): Check if language kind is unit based, not if the
996 language name is Ada.
997 (Process_Exceptions_Unit_Based): Ditto
998 (Add_Language): Remove default additions of language and dependency kind
999 * prj.ads: Minor comment change
1000 * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind
1001
1002 2011-08-29 Johannes Kanig <kanig@adacore.com>
1003
1004 * debug.adb: Update comments.
1005
1006 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1007
1008 * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
1009 (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
1010 (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
1011 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
1012 (ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
1013
1014 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1015
1016 * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
1017 (GNATLIBCFLAGS_FOR_C): Replace
1018 TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
1019 (gnatlib-shared-default, gnatlib-shared-dual-win32)
1020 (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
1021 (gnatlib-sjlj, gnatlib-zcx): Likewise.
1022
1023 2011-08-07 Eric Botcazou <ebotcazou@adacore.com>
1024
1025 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
1026
1027 * gcc-interface/gigi.h (enumerate_modes): Fix formatting.
1028
1029 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.
1030
1031 2011-08-05 Nicolas Roche <roche@adacore.com>
1032
1033 * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared
1034 libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with
1035 canadian cross.
1036 * gcc-interface/Make-lang.in: Add support for canadian cross setting.
1037
1038 2011-08-05 Matthew Heaney <heaney@adacore.com>
1039
1040 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth):
1041 subprogram bodies declared out-of-order.
1042
1043 2011-08-05 Yannick Moy <moy@adacore.com>
1044
1045 * sem_util.adb (Unique_Name): only prefix with "standard" the names of
1046 entities directly in package Standard, otherwise skip the standard
1047 prefix.
1048
1049 2011-08-05 Robert Dewar <dewar@adacore.com>
1050
1051 * a-cbmutr.adb: Minor reformatting
1052 (Allocate_Node): refactor node allocation algorithm
1053
1054 2011-08-05 Robert Dewar <dewar@adacore.com>
1055
1056 * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch.
1057 * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable
1058 mode.
1059 (Analyze_Pragma, case Check_Policy): Ditto.
1060 * sem_prag.ads (Check_Disabled): New function
1061 * snames.ads-tmpl: Add Name_Disable.
1062
1063 2011-08-05 Robert Dewar <dewar@adacore.com>
1064
1065 * gnat_rm.texi: Document implementation-defined policy DISABLE for
1066 pragmas Assertion_Policy, Check_Policy, Debug_Policy.
1067
1068 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1069
1070 * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma
1071 that appears in a generic formal part and applies to a formal
1072 subprogram.
1073
1074 2011-08-05 Robert Dewar <dewar@adacore.com>
1075
1076 * a-cbmutr.ads: Minor reformatting.
1077
1078 2011-08-05 Matthew Heaney <heaney@adacore.com>
1079
1080 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid
1081 to check count, check sign of value instead.
1082 * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty
1083 (Copy_Subtree): allocate copy of source element
1084 (Equal_Subtree): compare elements, not access objects
1085
1086 2011-08-05 Vincent Celier <celier@adacore.com>
1087
1088 * gnat_ugn.texi: Fix VMS alternative.
1089
1090 2011-08-05 Thomas Quinot <quinot@adacore.com>
1091
1092 * sem_ch11.adb: Add comment.
1093
1094 2011-08-05 Robert Dewar <dewar@adacore.com>
1095
1096 * exp_util.adb: Minor comment fix.
1097
1098 2011-08-05 Robert Dewar <dewar@adacore.com>
1099
1100 * scng.adb (Error_Unterminated_String): Improve flag position when
1101 comma present.
1102
1103 2011-08-05 Matthew Heaney <heaney@adacore.com>
1104
1105 * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway
1106 tree containers).
1107 * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded
1108 multiway tree containers.
1109
1110 2011-08-05 Robert Dewar <dewar@adacore.com>
1111
1112 * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2
1113 * stylesw.adb: Implement -gnatyC to control comment spacing
1114 * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by
1115 -gnatyc/C).
1116 * usage.adb: Add line for -gnatyC.
1117
1118 2011-08-05 Robert Dewar <dewar@adacore.com>
1119
1120 * gnat_ugn.texi: Document -gnatyC.
1121 * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a
1122 synonym for COMMENTS2).
1123
1124 2011-08-05 Robert Dewar <dewar@adacore.com>
1125
1126 * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb,
1127 a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb,
1128 sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb,
1129 a-comutr.ads, lib-xref.adb: Minor reformatting.
1130
1131 2011-08-05 Robert Dewar <dewar@adacore.com>
1132
1133 * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal
1134 warning if there is an exception handler present.
1135
1136 2011-08-05 Pascal Obry <obry@adacore.com>
1137
1138 * a-iteint.ads: Fix copyright year.
1139
1140 2011-08-05 Thomas Quinot <quinot@adacore.com>
1141
1142 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a
1143 statement SCO for a USE clause or a representation clause.
1144
1145 2011-08-05 Yannick Moy <moy@adacore.com>
1146
1147 * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation
1148 between body and spec for stub.
1149 (Detect_And_Add_ALFA_Scope): take into account subprogram stub
1150 * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a
1151 pragma precondition or postcondition, for which the enclosing
1152 subprogram or package in the AST is not the desired one, return empty.
1153
1154 2011-08-05 Thomas Quinot <quinot@adacore.com>
1155
1156 * g-expect.adb: Minor reformatting.
1157
1158 2011-08-05 Bob Duff <duff@adacore.com>
1159
1160 * a-fihema.adb: Comment out OS_Lib.
1161
1162 2011-08-05 Matthew Heaney <heaney@adacore.com>
1163
1164 * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb]
1165 (unbounded multiway tree containers) and a-iteint.ads.
1166 * a-comutr.ads, a-comutr.adb:
1167 This is the new Ada 2012 unit for unbounded multiway tree containers
1168 * a-cimutr.ads, a-cimutr.adb
1169 This is the new Ada 2012 unit for indefinite multiway tree containers
1170 * a-iteint.ads: New file.
1171
1172 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1173
1174 * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc.
1175
1176 2011-08-05 Bob Duff <duff@adacore.com>
1177
1178 * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for
1179 subpools.
1180 * par-ch4.adb (P_Allocator): Parse new subpool specification syntax.
1181
1182 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1183
1184 * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the
1185 general indexing aspects of Ada2012. Called when analyzing indexed
1186 components when other interpretations fail.
1187 * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only
1188 in an expression context where overloading is meaningful. This excludes
1189 the occurrence in an aspect specification (efficiency only).
1190 * sem_attr.adb (Analyze_Attribute): indicate that the attributes
1191 related to iterators can be set by an attribute specification, but
1192 cannot be queried.
1193 * sem_ch13.adb (Analyze_Aspect_Specifications): handle
1194 Constant_Indexing and Variable_Indexing.
1195 (Check_Indexing_Functions): New procedure to perform legality checks.
1196 Additional semantic checks at end of declarations.
1197
1198 2011-08-05 Sergey Rybin <rybin@adacore.com>
1199
1200 * tree_io.ads: Update ASIS_Version_Number because of the change of the
1201 order of calling Tree_Write/Tree_Read routines made for aspects.
1202
1203 2011-08-05 Bob Duff <duff@adacore.com>
1204
1205 * a-fihema.adb (Finalize): Fix race condition.
1206
1207 2011-08-05 Yannick Moy <moy@adacore.com>
1208
1209 * sem_ch12.adb (Analyze_Package_Instantiation,
1210 Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA
1211 mode.
1212
1213 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1214
1215 * sem_type.adb (Specific_Type): in an instance, the type-specific
1216 operand of an equality check that involves null may have a private
1217 type. Use full view to determine legality of construct.
1218
1219 2011-08-05 Vincent Celier <celier@adacore.com>
1220
1221 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
1222 delete or close the file when the call to gnatmake was successful.
1223
1224 2011-08-05 Yannick Moy <moy@adacore.com>
1225
1226 * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set
1227 Global_Discard_Names.
1228
1229 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1230
1231 * sinfo.ads: comments on use of entity field for aspect specifications.
1232
1233 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1234
1235 * sem_ch12.adb (Reset_Entity): If the entity field of the associated
1236 node is not itself an entity but a selected component, it is a
1237 rewritten parameterless call to an en enclosing synchronized operation,
1238 and this expansion will be performed again in the instance, so there is
1239 no global information to preserve.
1240
1241 2011-08-05 Javier Miranda <miranda@adacore.com>
1242
1243 * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support
1244 for renamings of predefined primitives.
1245 (In_Predef_Prims_DT): New subprogram.
1246
1247 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1248
1249 * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a
1250 possible interpretation of name is a reference type, add an
1251 interpretation that is the designated type of the reference
1252 discriminant of that type.
1253 * sem_res.adb (resolve): If the interpretation imposed by context is an
1254 implicit dereference, rewrite the node as the deference of the
1255 reference discriminant.
1256 * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type,
1257 Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from
1258 parent type or base type.
1259 * sem_ch4.adb (Process_Indexed_Component,
1260 Process_Overloaded_Indexed_Component, Indicate_Name_And_Type,
1261 Analyze_Overloaded_Selected_Component, Analyze_Selected_Component):
1262 Check for implicit dereference.
1263 (List_Operand_Interps): Indicate when an implicit dereference is
1264 ambiguous.
1265 * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference.
1266
1267 2011-08-05 Thomas Quinot <quinot@adacore.com>
1268
1269 * scos.ads: Update documentation of SCO table. Pragma statements can now
1270 be marked as disabled (using 'p' instead of 'P' as the statement kind).
1271 * par_sco.ads, par_sco.adb: Implement the above change.
1272 (Process_Decisions_Defer): Generate a P decision for the first parameter
1273 of a dyadic pragma Debug.
1274 * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if
1275 necessary.
1276 * put_scos.adb: Code simplification based on above change.
1277
1278 2011-08-05 Robert Dewar <dewar@adacore.com>
1279
1280 * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb,
1281 bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb,
1282 a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads,
1283 prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting
1284
1285 2011-08-05 Bob Duff <duff@adacore.com>
1286
1287 * a-stunau.ads, g-spipat.adb: Update comments.
1288
1289 2011-08-05 Bob Duff <duff@adacore.com>
1290
1291 * a-fihema.ads: Minor comment fix.
1292 * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is
1293 correct.
1294 (Attach, Detach): Remove some unnecessary code.
1295 (Finalize): Remove Node_Ptr_To_Address, replace with a constant.
1296
1297 2011-08-05 Bob Duff <duff@adacore.com>
1298
1299 * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
1300 allocation for Objects component. This simplifies the code somewhat. It
1301 is also a little more efficient in the not-so-unusual case where there
1302 are no controlled objects allocated.
1303 Make Finalization_Started flag atomic.
1304 (Finalize): Avoid unnecessary detachment of items from the list.
1305 (pcol): Minor cleanup.
1306
1307 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1308
1309 * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal
1310 package whose name is the same as that of the generic unit, or its
1311 ultimate prefix.
1312
1313 2011-08-05 Bob Duff <duff@adacore.com>
1314
1315 * a-fihema.adb, a-fihema.ads: Minor comment improvements.
1316 * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb:
1317 Minor comment fixes.
1318
1319 2011-08-05 Arnaud Charlet <charlet@adacore.com>
1320
1321 * make.adb (Linking_Phase): No longer need to set source search path
1322 before calling gnatlink in CodePeer mode.
1323 * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to
1324 gcc in CodePeer mode, since the binder generated file no longer has a
1325 'with Main'.
1326 * switch.ads, switch.adb (Is_Language_Switch): Removed.
1327 * switch-c.adb: Update comment.
1328
1329 2011-08-05 Thomas Quinot <quinot@adacore.com>
1330
1331 * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting.
1332
1333 2011-08-05 Nicolas Roche <roche@adacore.com>
1334
1335 * gnat_ugn.texi: Fix minor syntax error issue.
1336
1337 2011-08-05 Vincent Celier <celier@adacore.com>
1338
1339 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
1340 delete or close the file when the call to gnatmake returns a non
1341 successful return code.
1342
1343 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1344
1345 * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate
1346 check, indicate that the copy of the original node does not come from
1347 source, to prevent an infinite recursion of the expansion.
1348
1349 2011-08-05 Johannes Kanig <kanig@adacore.com>
1350
1351 * debug.adb: document switch -gnatd.G for gnat2why, which deactivates
1352 VC generation for subprogram bodies.
1353
1354 2011-08-05 Yannick Moy <moy@adacore.com>
1355
1356 * einfo.ads: Typo.
1357 * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define
1358 the base type with the smallest allowed base type.
1359
1360 2011-08-05 Sergey Rybin <rybin@adacore.com>
1361
1362 * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for
1363 aspects.
1364
1365 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1366
1367 * sem_ch12.ads: minor comment updates.
1368
1369 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1370
1371 * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an
1372 instantiation and a formal package the compiler generates a package
1373 renaming declaration so that the generic name within the declaration
1374 is interpreted as a renaming of the instance. At the end of a formal
1375 package declaration, this renaming must become invisible.
1376
1377 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
1378
1379 * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character
1380 comparison and rely on concrete entities instead.
1381
1382 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1383
1384 * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types
1385 and discriminants, to indicate that the type has an access discriminant
1386 that supports implicit dereference.
1387 * snames.ads-tmpl: Add names of aspects and attributes related to
1388 Ada2012 iterators: constant_indexing, default_iterator,
1389 iterator_element, implicit_dereference, variable_indexing.
1390 * aspects.ads, aspects.adb: entries for iterator-related aspects.
1391 * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for
1392 iterator-related aspects.
1393 * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects.
1394
1395 2011-08-05 Sergey Rybin <rybin@adacore.com>
1396
1397 * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling
1398 metrics in gnatmetric to cover new kinds of coupling mentrics.
1399
1400 2011-08-05 Steve Baird <baird@adacore.com>
1401
1402 * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead
1403 of calling the user-defined main subprogram.
1404 (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode
1405 is set) Call_Main_Subprogram ahead of, as opposed to
1406 inside of, Main.
1407 (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional
1408 generation of a "with" of the user-defined main subprogram.
1409 Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper
1410 (which is now called from Gen_Main instead).
1411
1412 2011-08-05 Emmanuel Briot <briot@adacore.com>
1413
1414 * projects.texi: Added reference to the Makefile package.
1415
1416 2011-08-05 Thomas Quinot <quinot@adacore.com>
1417
1418 * exp_ch7.adb: Minor comment rewording.
1419
1420 2011-08-05 Ed Falis <falis@adacore.com>
1421
1422 * env.c: Fix comment.
1423
1424 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
1425
1426 * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid
1427 character comparison and rely on concrete entities instead.
1428
1429 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1430
1431 * sem_ch3.adb: (Check_Private_Overriding): better error message,
1432 suggested by AI95-0068.
1433
1434 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
1435
1436 * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve
1437 the two potential initialization calls. This accounts for any
1438 access-before-elaboration checks which may precede the initialization
1439 calls.
1440 (Next_Suitable_Statement): New routine. Returns the next real statement
1441 after the input node while skipping generated checks.
1442 * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along
1443 with comment on usage.
1444 Do not generate Elaborate_All when the trigger is a finalization call
1445 coming from a type init proc.
1446 (Check_Elab_Call): Propagate the initialization procedure context to
1447 subsequent calls to Check_A_Call.
1448 (Check_Internal_Call_Continue): Propagate the initialization procedure
1449 context to subsequent calls to Check_Elab_Call.
1450 (Is_Finalization_Procedure): New routine. Returns True if the input
1451 entity denotes a [Deep_]Finalize routine.
1452 * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc
1453 along with comment on usage.
1454
1455 2011-08-05 Vadim Godunko <godunko@adacore.com>
1456
1457 * s-atocou.ads: Add list of supported platforms.
1458
1459 2011-08-05 Yannick Moy <moy@adacore.com>
1460
1461 * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables
1462
1463 * opt.ads (Disable_ALI_File): new Boolean flag
1464 * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing
1465
1466 2011-08-05 Ed Falis <falis@adacore.com>
1467
1468 * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that
1469 environ is properly defined.
1470
1471 2011-08-05 Vincent Celier <celier@adacore.com>
1472
1473 * make.adb (Compilation_Phase): Exit immediately when all objects have
1474 been found up to date, to avoid multiple exit messages.
1475 * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the
1476 same project for languages with no compiler.
1477 * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch
1478 -eI.
1479 2011-08-05 Robert Dewar <dewar@adacore.com>
1480
1481 * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb,
1482 sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb,
1483 prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb,
1484 s-atocou-builtin.adb: Minor reformatting.
1485
1486 2011-08-05 Yannick Moy <moy@adacore.com>
1487
1488 * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode,
1489 if the node to wrap is a pragma check, this node and enclosed
1490 expression are not expanded, so do not apply any transformations here.
1491 * exp_prag.adb (Expand_Pragma_Check): document the need to avoid
1492 introducing transient scopes.
1493
1494 2011-08-05 Jose Ruiz <ruiz@adacore.com>
1495
1496 * adaint.c (__gnat_set_writable, __gnat_set_readable,
1497 __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable,
1498 __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod
1499 routine is available, so we use the default implementation of these
1500 functions.
1501 * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is
1502 support for copying attributes on VxWorks 6.
1503
1504 2011-08-05 Yannick Moy <moy@adacore.com>
1505
1506 * debug.adb: Remove use of -gnatd.D.
1507 * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode
1508 * opt.ads: Simplify variables for ALFA mode, to keep one only
1509 * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode
1510 to ALFA mode.
1511
1512 2011-08-05 Vincent Celier <celier@adacore.com>
1513
1514 * prj-conf.adb (Do_Autoconf): Look also for --RTS in
1515 Builder'Default_Switches.
1516
1517 2011-08-05 Vincent Celier <celier@adacore.com>
1518
1519 * makeusg.adb: Add lines for --create-map-file switches.
1520
1521 2011-08-05 Ed Schonberg <schonberg@adacore.com>
1522
1523 * freeze.adb (Freeze_Entity): For a subprogram, if a type in the
1524 profile is incomplete and the full view is available, replace it with
1525 the full view.
1526 * sem_ch6.adb (Possible_Freeze): if a type in the profile is
1527 incomplete, freezing the subprogram is delayed until the full view is
1528 frozen.
1529 * sem_type.adb (Disambiguate): an ambiguity between a user-defined
1530 fixed-point multiplication operator and the predefined operator is
1531 resolved in favor of the user-defined one.
1532
1533 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1534
1535 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use
1536 CONST_CAST.
1537
1538 2011-08-04 Ed Schonberg <schonberg@adacore.com>
1539
1540 * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
1541 whether a type lacks user-defined Read or Write operations, or has a
1542 component that lacks them.
1543 * sem_attr.adb (Check_Stream_Attribute): if restriction
1544 No_Default_Stream_Attributes is active, verify that all subcomponent
1545 types of the target have user-defined stream operations, and report
1546 error otherwise.
1547 * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
1548 * exp_strm.adb: Build_Elementary_Input_Call,
1549 Build_Elementary_Write_Call): remove checks for restriction
1550 No_Default_Stream_Attributes, now checked in semantics.
1551
1552 2011-08-04 Vincent Celier <celier@adacore.com>
1553
1554 * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
1555 switches on the command line, look for all valid --RTS switches in the
1556 Builder switches and for each language use the first runtime name found
1557 to invoke gprconfig.
1558 (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
1559 command line and there is no auto-configuration.
1560 (Runtime_Name_Set_For): New function.
1561
1562 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1563
1564 * exp_ch7.adb (Build_Object_Declarations): Do not generate the
1565 elaborate initialization expression for variable Abort when processing
1566 a package body or a declaration.
1567 (Create_Finalizer): Propagate the package context when creating the
1568 exception-related variables.
1569 * exp_ch7.ads (Build_Object_Declarations): New formal parameter
1570 For_Package along with usage comment.
1571
1572 2011-08-04 Arnaud Charlet <charlet@adacore.com>
1573
1574 * gcc-interface/Makefile.in: Clean up targets.
1575 Enable new package for atomic counters and copy-on-write implementation
1576 of unbounded strings on x86 platforms.
1577 * gcc-interface/Make-lang.in: Update dependencies.
1578
1579 2011-08-04 Robert Dewar <dewar@adacore.com>
1580
1581 * exp_ch7.adb: Minor reformatting.
1582
1583 2011-08-04 Robert Dewar <dewar@adacore.com>
1584
1585 * exp_strm.adb: Minor reformatting.
1586
1587 2011-08-04 Vadim Godunko <godunko@adacore.com>
1588
1589 * s-atocou.adb: Replace by dummy version and use on targets where atomic
1590 operations are not supported.
1591 * s-atocou-builtin.adb: Renamed from s-atocou.adb.
1592 * s-atocou-x86.adb: New file.
1593 * Makefile.rtl: Add s-atocou.o file
1594
1595 2011-08-04 Arnaud Charlet <charlet@adacore.com>
1596
1597 * make.adb (Compile): Move setting of CodePeer_Mode to ...
1598 (Compilation_Phase): ... here.
1599 (Scan_Make_Arg): Now bind and link by default in CodePeer mode.
1600
1601 2011-08-04 Thomas Quinot <quinot@adacore.com>
1602
1603 * Make-generated.in: Fix minor typo in comment.
1604
1605 2011-08-04 Thomas Quinot <quinot@adacore.com>
1606
1607 * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve
1608 the project path.
1609
1610 2011-08-04 Robert Dewar <dewar@adacore.com>
1611
1612 * a-coinho.adb: Minor reformatting.
1613
1614 2011-08-04 Robert Dewar <dewar@adacore.com>
1615
1616 * a-coinho.ads: Minor reformatting.
1617
1618 2011-08-04 Vadim Godunko <godunko@adacore.com>
1619
1620 * s-atocou.ads, s-atocou.adb: New files.
1621 * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads,
1622 a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove
1623 direct use of GCC's atomic builtins and replace them by use of new
1624 atomic counter package.
1625
1626 2011-08-04 Ed Schonberg <schonberg@adacore.com>
1627
1628 * exp_strm.adb: better error message for No_Default_Stream_Attributes.
1629
1630 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1631
1632 * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic
1633 with a call to Get_External_Tag.
1634 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on
1635 subprogram usage. Remove the guard against package declarations and
1636 bodies since Build_Cleanup_Statements is no longer invoked in that
1637 context.
1638 (Build_Components): Initialize Tagged_Type_Stmts when the context
1639 contains at least one library-level tagged type.
1640 (Build_Finalizer): New local variables Has_Tagged_Types and
1641 Tagged_Type_Stmts along with associated comments on usage. Update the
1642 logic to include tagged type processing.
1643 (Create_Finalizer): Insert all library-level tagged type unregistration
1644 code before the jump block circuitry.
1645 (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements.
1646 (Expand_N_Package_Declaration): Remove the call to
1647 Build_Cleanup_Statements.
1648 (Process_Tagged_Type_Declaration): New routine. Generate a call to
1649 unregister the external tag of a tagged type.
1650 (Processing_Actions): Reimplemented to handle tagged types.
1651 (Process_Declarations): Detect the declaration of a library-level
1652 tagged type and carry out the appropriate actions.
1653 (Unregister_Tagged_Types): Removed. The machinery has been directly
1654 merged with Build_Finalizer.
1655
1656 2011-08-04 Robert Dewar <dewar@adacore.com>
1657
1658 * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb,
1659 gnatls.adb, exp_ch3.adb: Minor reformatting.
1660
1661 2011-08-04 Marc Sango <sango@adacore.com>
1662
1663 * sem_attr.adb (Analyze_Attribute): Replace the message
1664 "invisible attribute of}" of the spark restriction violation in
1665 attribute reference by the simple message "invisible attribute of type".
1666 Indeed, the node value Error_Msg_Node_1 used is in conflit with the
1667 two insertion characters: '&' and '}'.
1668
1669 2011-08-04 Vadim Godunko <godunko@adacore.com>
1670
1671 * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho".
1672 * a-coinho.ads, a-coinho.adb: New file.
1673 * Makefile.rtl: Add Ada.Containers.Indefinite_Holders.
1674
1675 2011-08-04 Nicolas Roche <roche@adacore.com>
1676
1677 * alfa_test.adb: Not all ali files are containing alfa information even
1678 if compiled with -gnatd.F. So suppress warning about missing ALFA
1679 information.
1680
1681 2011-08-04 Yannick Moy <moy@adacore.com>
1682
1683 * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for
1684 scope.
1685 * put_alfa.adb: Check that scope name is not empty.
1686
1687 2011-08-04 Ed Schonberg <schonberg@adacore.com>
1688
1689 * exp_ch3.adb (Stream_Operation_Ok): new predicate
1690 Needs_Elementary_Stream_Operation, to determine whether user-defined
1691 Read and Write attributes are available for the elementary components
1692 of the given type. If only the predefined attributes are available,
1693 then when restriction No_Default_Stream_Attributes is active the
1694 predefined stream attributes for the composite type cannot be created.
1695
1696 2011-08-04 Robert Dewar <dewar@adacore.com>
1697
1698 * bindgen.adb: Fix obsolete comments and names from Ada/C days.
1699 Put routines in alpha order
1700
1701 2011-08-04 Jose Ruiz <ruiz@adacore.com>
1702
1703 * gcc-interface/Makefile.in: Remove xenomai specific versions of system.
1704 * gcc-interface/Make-lang.in: Update dependencies.
1705
1706 2011-08-04 Arnaud Charlet <charlet@adacore.com>
1707
1708 * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
1709 * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
1710 gnat1why).
1711
1712 2011-08-04 Robert Dewar <dewar@adacore.com>
1713
1714 * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
1715 lib-xref-alfa.adb: Minor reformatting.
1716
1717 2011-08-04 Marc Sango <sango@adacore.com>
1718
1719 * sem_ch12.adb (Analyze_Generic_Package_Declaration,
1720 Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation,
1721 Analyze_Subprogram_Instantiation): Check absence of generic in SPARK
1722 mode.
1723
1724 2011-08-04 Tristan Gingold <gingold@adacore.com>
1725
1726 * bindgen.adb (Gen_Adainit_C): Remove.
1727 (Gen_Adafinal_C): Ditto.
1728 (Gen_Elab_Externals_C): Ditto.
1729 (Gen_Elab_Calls_C): Ditto.
1730 (Gen_Elab_Order_C): Ditto.
1731 (Gen_Elab_Defs_C): Ditto.
1732 (Gen_Finalize_Library_C): Ditto.
1733 (Gen_Finalize_Library_Defs_C): Ditto.
1734 (Gen_Main_C): Ditto.
1735 (Gen_Output_File_C): Ditto.
1736 (Gen_Restrictions_C): Ditto.
1737 (Gen_Versions_C): Ditto.
1738 (Write_Info_Ada_C): Ditto.
1739 (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C
1740 (Gen_Output_File): Do not force Ada_Bind_File anymore.
1741 Always call Gen_Output_File_Ada.
1742 * gnatlink.adb (Begin_Info): Now a constant.
1743 (End_Info): Ditto.
1744 (Ada_Bind_File): Remove
1745 (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases.
1746 * switch-b.adb (Scan_Binder_Switches): Do not handle -C.
1747 * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases.
1748 * opt.ads (Ada_Bind_File): Remove.
1749
1750 2011-08-04 Thomas Quinot <quinot@adacore.com>
1751
1752 * projects.texi: Document target-specific directory in default project
1753 path for gnatmake.
1754
1755 2011-08-04 Thomas Quinot <quinot@adacore.com>
1756
1757 * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project
1758 path in all cases .
1759
1760 2011-08-04 Yannick Moy <moy@adacore.com>
1761
1762 * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb,
1763 opt.ads, lib-xref.ads: Code clean up.
1764
1765 2011-08-04 Yannick Moy <moy@adacore.com>
1766
1767 * gnat_rm.texi: Update description of Test_Case
1768 * gnat_ugn.texi: Typo.
1769
1770 2011-08-04 Ed Falis <falis@adacore.com>
1771
1772 * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin.
1773
1774 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1775
1776 * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when
1777 it is of type Root_Controlled. This action eliminates fields Prev and
1778 Next from type equality.
1779
1780 2011-08-04 Yannick Moy <moy@adacore.com>
1781
1782 * lib-xref-alfa.adb: Correct typo.
1783
1784 2011-08-04 Matthew Heaney <heaney@adacore.com>
1785
1786 * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes
1787 component.
1788
1789 2011-08-04 Yannick Moy <moy@adacore.com>
1790
1791 * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure
1792 (Analyze_Pragma): allow static string expression for name of Test_Case,
1793 instead of simply string literals.
1794 * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string
1795 expressions.
1796
1797 2011-08-04 Vincent Celier <celier@adacore.com>
1798
1799 * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical
1800 case suffixes to find truncated main sources.
1801
1802 2011-08-04 Tristan Gingold <gingold@adacore.com>
1803
1804 * impunit.adb (Non_Imp_File_Names_95): Add g-tastus.
1805 s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put.
1806 (Compute_Current_Task): Ditto.
1807
1808 2011-08-04 Tristan Gingold <gingold@adacore.com>
1809
1810 * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage.
1811
1812 2011-08-04 Yannick Moy <moy@adacore.com>
1813
1814 * lib-xref-alfa.adb (Is_Global_Constant): new function that detects
1815 library-level constant.
1816 (Add_ALFA_Xrefs): ignore global constants in ALFA xref.
1817 * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal
1818 used as selector of parameter association, in ALFA mode.
1819
1820 2011-08-04 Robert Dewar <dewar@adacore.com>
1821
1822 * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb,
1823 s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor
1824 reformatting.
1825
1826 2011-08-04 Arnaud Charlet <charlet@adacore.com>
1827
1828 * make.adb (Linking_Phase): Set source search path before calling
1829 gnatlink in CodePeer mode.
1830
1831 2011-08-04 Javier Miranda <miranda@adacore.com>
1832
1833 * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration):
1834 Remove code which takes care of building TSDs.
1835 * rtsfind.ads (RE_Check_Interface_Conversion): New entity.
1836 * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating
1837 the accessibility check in VM targets.
1838 * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads
1839 (Building_Static_DT): Now returns false for VM targets.
1840 (Build_VM_TSDs): Removed.
1841 (Expand_Interface_Conversion): Generate missing runtime check for
1842 conversions to interface types whose target type is unknown at compile
1843 time.
1844 (Make_VM_TSD): Add missing code to disable the generation of calls to
1845 Check_TSD if the tagged type is not defined at library level, or not
1846 has a representation clause specifying its external tag, or -gnatdQ is
1847 active.
1848 * exp_disp.ads (Build_VM_TSDs): Removed.
1849 (Make_VM_TSDs): Spec relocated from exp_disp.adb
1850 * sem_disp.adb (Check_Dispatching_Operation): No code required to
1851 register primitives in the dispatch tables in VM targets.
1852 * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of
1853 initialization of class-wide interface objects in VM targets.
1854 (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead
1855 of Make_DT).
1856
1857 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
1858
1859 * gnatlink.adb (Gnatlink): Correct missleading error message displayed
1860 when dotnet-ld cannot be found.
1861
1862 2011-08-04 Arnaud Charlet <charlet@adacore.com>
1863
1864 * bindgen.adb: Simplify significantly generation of binder body file in
1865 CodePeer mode.
1866 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure
1867 when compiling binder generated file in CodePeer mode (xxx'Elab_Spec
1868 not expanded).
1869
1870 2011-08-04 Yannick Moy <moy@adacore.com>
1871
1872 * sem_prag.adb, sem.ads: Code cleanup.
1873
1874 2011-08-04 Tristan Gingold <gingold@adacore.com>
1875
1876 * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part.
1877 * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate
1878 results if possible.
1879 * s-stusta.adb (Print): Adjust after changes in s-stausa.
1880 * gnat_ugn.texi: Update dynamic stack usage section.
1881
1882 2011-08-04 Steve Baird <baird@adacore.com>
1883
1884 * bindgen.adb (Gen_CodePeer_Wrapper): new procedure.
1885 Generate (if CodePeer_Mode is set) a "wrapper" subprogram which
1886 contains only a call to the user-defined main subprogram.
1887 (Gen_Main_Ada) - If CodePeer_Mode is set, then
1888 call the "wrapper" subprogram instead of directly
1889 calling the user-defined main subprogram.
1890
1891 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1892
1893 * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all
1894 alternatives of a case statement for controlled objects. Rename local
1895 variable A to Dead_Alt.
1896 (Expand_N_If_Statement): Check the then and else statements of an if
1897 statement for controlled objects. Check the then statements of all
1898 elsif parts of an if statement for controlled objects.
1899 (Expand_N_Loop_Statement): Check the statements of a loop for controlled
1900 objects.
1901 * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which
1902 detects a loop associated with the expansion of an array object.
1903 Augment the processing of the loop statements to account for a possible
1904 wrap done by Process_Statements_For_Controlled_Objects.
1905 * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering
1906 statements and abortable part of an asynchronous select for controlled
1907 objects.
1908 (Expand_N_Conditional_Entry_Call): Check the else statements of a
1909 conditional entry call for controlled objects.
1910 (Expand_N_Selective_Accept): Check the alternatives of a selective
1911 accept for controlled objects.
1912 (Expand_N_Timed_Entry_Call): Check the entry call and delay
1913 alternatives of a timed entry call for controlled objects.
1914 * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an
1915 exception handler for controlled objects.
1916 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
1917 Add formal parameter Nested_Constructs along with its associated
1918 comment.
1919 (Requires_Cleanup_Actions (Node_Id)): Update all calls to
1920 Requires_Cleanup_Actions.
1921 (Process_Statements_For_Controlled_Objects): New routine.
1922 * exp_util.ads (Process_Statements_For_Controlled_Objects): New
1923 routine. Inspect a node which contains a non-handled sequence of
1924 statements for controlled objects. If such an object is found, the
1925 statements are wrapped in a block.
1926
1927 2011-08-04 Bob Duff <duff@adacore.com>
1928
1929 * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we
1930 need to compare with Class_Wide_Type (T2), in order to get at the
1931 original class-wide type node.
1932 * sem_type.ads (Covers): Improve the comment.
1933 * einfo.ads (Class_Wide_Type): Improve the comment.
1934 * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of
1935 the type of the Deref.
1936
1937 2011-08-04 Yannick Moy <moy@adacore.com>
1938
1939 * gnat_rm.texi: Document that Test_Case pragma can only appear on
1940 separate declarations.
1941 * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to
1942 check identifier of pragma argument.
1943 (Chain_TC): check that no other test case associated to the same entity
1944 share the same name.
1945 (Check_Test_Case): disallow test case inside subprogram body
1946 (Analyze_Pragma): correct call to check identifier and not argument
1947 * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new
1948 function gets name from test case pragma.
1949
1950 2011-08-04 Yannick Moy <moy@adacore.com>
1951
1952 * gnat_rm.texi: Document new pragma and aspect.
1953 * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case
1954 (No_Duplicates_Allowed): new constant array defining whether duplicates
1955 aspects of each kind can appear on the same declaration.
1956 * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract
1957 field, which points to a node holding the previous Spec_PPC_List.
1958 * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List
1959 through the indirection with Contract.
1960 * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node
1961 * par-prag.adb (Prag): do nothing on Test_Case pragma
1962 * sem.adb (Analyze): abort on N_Contract, on which Analyze should not
1963 be called directly.
1964 * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in
1965 component Ensures of Test_Case.
1966 * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb
1967 (Analyze_Generic_Subprogram_Declaration,
1968 Analyze_Subprogram_Instantiation,
1969 Analyze_Abstract_Subprogram_Declaration,
1970 Analyze_Subprogram_Body_Helper,
1971 Analyze_Subprogram_Specification, Analyze_Entry_Declaration):
1972 insert contract in subprogram node at point of definition
1973 * sem_ch13.adb
1974 (Aspect_Loop): do not raise error on duplicate Test_Case aspect
1975 (Analyze_Aspect_Specifications): analyze Test_Case aspect and create
1976 corresponding pragma
1977 (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect
1978 * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases,
1979 similar to the analysis of pre/post
1980 (Derive_Subprogram): insert contract in subprogram node at point of
1981 derivation.
1982 * sem_prag.adb, sem_prag.ads
1983 (Check_Arg_Is_String_Literal, Check_Identifier):
1984 new checking procedures to be called in treatment of pragmas
1985 (Check_Test_Case): new procedure to check that a Test_Case aspect or
1986 pragma is well-formed. This does not check currently that 'Result is
1987 used only in the Ensures component of a Test_Case.
1988 (Analyze_Pragma): add case for Test_Case
1989 (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures
1990 components of a Test_Case.
1991 (Preanalyze_TC_Args): new procedure to preanalyze the boolean
1992 expressions in the 3rd (and 4th if present) arguments of a Test_Case
1993 pragma, treated as spec expressions.
1994 (Sig_Flags): add value -1 for Test_Case.
1995 * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma,
1996 Get_Requires_From_Test_Case_Pragma): getters for both expression
1997 components of a Test_Case.
1998 * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as
1999 indirection between an entry or [generic] subprogram entity and its
2000 pre/post + test-cases.
2001 (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List):
2002 get/set for fields of an N_Contract node.
2003 * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode,
2004 Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new
2005 names and pragma for Test_Case.
2006 * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node
2007
2008 2011-08-04 Vincent Celier <celier@adacore.com>
2009
2010 * gnat_ugn.texi: Improve documentation of gnatmake switch
2011 --source-info-file=.
2012
2013 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2014
2015 * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion
2016 type). Initialize Atyp to the appropriate type which is later checked
2017 for completion. Rewrite the assertion associated with private type
2018 completion.
2019
2020 2011-08-04 Ed Falis <falis@adacore.com>
2021
2022 * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to
2023 initialize the number of CPUs.
2024
2025 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2026
2027 * sem_type.adb (Disambiguate): New subsidiary routine
2028 In_Same_Declaration_List, to implement AI05-0020: a user-defined
2029 equality on an anonymous access type whose designated type is private
2030 does not lead to an ambiguity with the universal access equality
2031 operator in the body or child units of the defining package. The same
2032 is true for a multiplication operator on a private type completed with
2033 a fixed-point-type.
2034
2035 2011-08-04 Javier Miranda <miranda@adacore.com>
2036
2037 * opt.ads (Init_Or_Norm_Scalars_Config): Removed.
2038 (Normalize_Scalars_Config): Removed.
2039 * opt.adb
2040 (Register_Opt_Config_Switches): Remove registering config values of
2041 Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config.
2042 (Restore_Opt_Config_Switches): Remove code which restores the values of
2043 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
2044 Init_Or_Norm_Scalars.
2045 (Save_Opt_Config_Switches): Remove code which saves values of
2046 Init_Or_Norm_Scalars and Normalize_Scalars.
2047 (Set_Opt_Config_Switches): Remove code which restores config values of
2048 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
2049 Init_Or_Norm_Scalars.
2050
2051 2011-08-04 Yannick Moy <moy@adacore.com>
2052
2053 * frontend.adb (Frontend): remove previous patch to avoid full
2054 qualification in ALFA mode.
2055 * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables.
2056 * sem_util.adb, sem_util.ads (Unique_Name): new function to define a
2057 unique name for an entity, which could be used to identify the entity
2058 across compilation units.
2059
2060 2011-08-04 Thomas Quinot <quinot@adacore.com>
2061
2062 * prj-env.adb
2063 (Initialize_Default_Project_Path): Add target specific directory
2064 ($prefix/$target/lib/gnat) in front of project path in all cases
2065 (making gnatmake's behaviour consistent with gprbuild).
2066 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb:
2067 Pass target name from Sdefault to project subsystem.
2068 * gnatls.adb: Show new target specific default project directory.
2069
2070 2011-08-04 Johannes Kanig <kanig@adacore.com>
2071
2072 * cstand.adb: Add Information to Identifier in Standard
2073 (Identifer_For): Set Entity to the corresponding entity
2074
2075 2011-08-04 Sergey Rybin <rybin@adacore.com>
2076
2077 * gnat_ugn.texi: Update doc on gnatcheck.
2078
2079 2011-08-04 Yannick Moy <moy@adacore.com>
2080
2081 * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of
2082 xrefs in a scope.
2083
2084 2011-08-04 Yannick Moy <moy@adacore.com>
2085
2086 * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without
2087 performing expansion.
2088 * sem_ch6.adb (Analyze_Subprogram_Body_Helper,
2089 Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that
2090 it is not called in ALFA mode.
2091
2092 2011-08-04 Emmanuel Briot <briot@adacore.com>
2093
2094 * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used
2095 after all, so removed.
2096
2097 2011-08-04 Sergey Rybin <rybin@adacore.com>
2098
2099 * vms_data.ads: Add missing VMS qualifiers.
2100
2101 2011-08-04 Emmanuel Briot <briot@adacore.com>
2102
2103 * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild
2104 the list of files on the command line after processing it through
2105 Complete_Mains.
2106
2107 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2108
2109 * exp_ch7.adb (Build_Raise_Statement): Remove the specialized
2110 processing for .NET/JVM. These targets can now benefit from
2111 Raise_From_Controlled_Operation and they share the same processing with
2112 standard targets.
2113 (Establish_Transient_Scope): Remove the restriction for .NET/JVM.
2114 These targets need transient scopes in order to properly finalize short
2115 lived controlled objects.
2116 (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for
2117 NET/JVM. These targets can now benefit from
2118 Raise_From_Controlled_Operation and they share the same processing with
2119 standard targets.
2120
2121 2011-08-04 Geert Bosch <bosch@adacore.com>
2122
2123 * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack
2124
2125 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2126
2127 * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to
2128 Expand_Record_Aggregate, to determine whether aggregate must be
2129 expanded into assignments. This is the case if the ancestor part is
2130 private, regarless of the setting of the flag Has_Private_Ancestor.
2131
2132 2011-08-04 Ed Falis <falis@adacore.com>
2133
2134 * vxaddr2line.adb: Add support for e500v2 and for Linux hosts
2135
2136 2011-08-04 Bob Duff <duff@adacore.com>
2137
2138 * sinfo.ads: Fix comment.
2139
2140 2011-08-04 Steve Baird <baird@adacore.com>
2141
2142 * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then
2143 choose a package name in much the same way as is
2144 done for JGNAT when VM_Target /= No_VM, except that
2145 a slightly more distinctive prefix string is used.
2146
2147 2011-08-04 Emmanuel Briot <briot@adacore.com>
2148
2149 * makeutl.adb (Complete_Mains): no longer accept unit names on the
2150 gnatmake command line.
2151 This behavior was never documented (and was supported only because of
2152 an early bug in the code). This case might lead to ambiguous cases
2153 (between unit names and truncated base names without suffixes).
2154
2155 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2156
2157 * a-tags.ads, a-tags.adb (Unregister_Tag): New routine.
2158 Remove the external tag of a tagged type from the internal hash table.
2159 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the
2160 expanded usage of the routine. Strenghten the check for Is_Master. Add
2161 processing for tagged types.
2162 (Build_Finalizer): Create all the necessary lists used in finalizer
2163 creation when the processed context is a package that may contain
2164 tagged types.
2165 (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to
2166 Requires_Cleanup_Actions.
2167 (Expand_N_Package_Body): Package bodies may need clean up code
2168 depending on whether they contain tagged types.
2169 (Expand_N_Package_Declaration): Package declarations may need clean up
2170 code depending on whether they contain tagged types.
2171 (Unregister_Tagged_Types): New routine. Search through a list of
2172 declarations or statements, looking for non-abstract Ada tagged types.
2173 For each such type, generate code to unregister the external tag.
2174 * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to
2175 Requires_Cleanup_Actions.
2176 (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search
2177 through a list of declarations or statements looking for non-abstract
2178 Ada tagged types or controlled objects.
2179 * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to
2180 Requires_Cleanup_Actions.
2181 (Has_Controlled_Objects (List_Id, Boolean)): Removed.
2182 * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and
2183 RE_Unit_Table.
2184
2185 2011-08-04 Vincent Celier <celier@adacore.com>
2186
2187 * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj
2188 has Ada sources, not project Project, because if the root project
2189 Project has no sources of its own, all projects will be deemed without
2190 sources.
2191
2192 2011-08-04 Gary Dismukes <dismukes@adacore.com>
2193
2194 * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration
2195 of the No_Param_Proc acc-to-subp type used for initialization of
2196 __gnat_finalize_library_objects so that it's declared at library level
2197 rather than nested inside of the adainit routine.
2198
2199 2011-08-04 Javier Miranda <miranda@adacore.com>
2200
2201 * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY
2202 if the tagged type has a representation clause which specifies its
2203 external tag.
2204
2205 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2206
2207 * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types.
2208 Remove previous procedure with that name.
2209 * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor
2210 when appropriate.
2211 * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a
2212 subtype mark, the ancestor cannot have unknown discriminants.
2213 (Resolve_Record_Aggregate): if the type has invisible components
2214 because of a private ancestor, the aggregate is illegal.
2215
2216 2011-08-04 Vincent Celier <celier@adacore.com>
2217
2218 * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into
2219 account switches -gnat2005, -gnat12 and -gnat2012.
2220
2221 2011-08-04 Bob Duff <duff@adacore.com>
2222
2223 * s-tasdeb.ads: Minor comment fix.
2224
2225 2011-08-04 Arnaud Charlet <charlet@adacore.com>
2226
2227 * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in
2228 CodePeer mode.
2229 * switch.ads, switch.adb (Is_Language_Switch): New function.
2230
2231 2011-08-04 Vincent Celier <celier@adacore.com>
2232
2233 * switch-c.adb: Minor comment addition.
2234
2235 2011-08-04 Vincent Celier <celier@adacore.com>
2236
2237 * vms_conv.adb (Process_Argument): Fail graciously when qualifier
2238 ending with '=' is followed by a space (missing file name).
2239
2240 2011-08-04 Pascal Obry <obry@adacore.com>
2241
2242 * g-regist.ads: Fix size of HKEY on x86_64-windows.
2243
2244 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2245
2246 * sem_ch12.adb (Analyze_Associations): New routine
2247 Check_Overloaded_Formal_Subprogram to reject a formal package when
2248 there is a named association or a box initialisation for an overloaded
2249 formal subprogram of the corresponding generic.
2250
2251 2011-08-04 Yannick Moy <moy@adacore.com>
2252
2253 * alfa.ads (ALFA_Xref_Record): add component for type of entity
2254 * get_alfa.adb, put_alfa.adb: Read and write new component of
2255 cross-reference.
2256 * lib-xref-alfa.adb (Collect_ALFA): generate new component.
2257
2258 2011-08-04 Pascal Obry <obry@adacore.com>
2259
2260 * urealp.adb: Minor reformatting.
2261
2262 2011-08-04 Tristan Gingold <gingold@adacore.com>
2263
2264 * exp_ch7.adb (build_finalizer.process_declarations.processing_actions):
2265 Handle the case when Cleanup_Protected_Object returns Empty.
2266
2267 2011-08-04 Yannick Moy <moy@adacore.com>
2268
2269 * frontend.adb (Frontend): only qualify names in non-ALFA mode
2270
2271 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2272
2273 * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure
2274 call, ignore functions.
2275
2276 2011-08-04 Geert Bosch <bosch@adacore.com>
2277
2278 * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating
2279 point.
2280
2281 2011-08-04 Emmanuel Briot <briot@adacore.com>
2282
2283 * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name
2284 as an index for Builder'Switches. This conforms to the documentation.
2285 * make.adb (Insert_Project_Sources): avoid duplicate code
2286
2287 2011-08-04 Emmanuel Briot <briot@adacore.com>
2288
2289 * makeutl.adb (Complete_Mains): if the user has passed a relative file
2290 name on the command line (for instance "../dummy"), never assume it can
2291 be a unit name.
2292
2293 2011-08-04 Tristan Gingold <gingold@adacore.com>
2294
2295 * bindgen.adb: Remove code the reference or create the
2296 Break_Start/__gnat_break_start procedure.
2297 * s-stalib.adb (Break_Start): Removed.
2298
2299 2011-08-04 Emmanuel Briot <briot@adacore.com>
2300
2301 * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now
2302 shared with gprbuild.
2303
2304 2011-08-04 Yannick Moy <moy@adacore.com>
2305
2306 * par-ch4.adb (P_Primary): preferentially issue an error message about
2307 a missing parenthesis arount a conditional or case expression in Ada
2308 2012 mode, if we detect that the alignment is not correct for a
2309 statement.
2310
2311 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2312
2313 * exp_ch7.adb (Process_Declarations): Do not consider the result of a
2314 tag-to-class-wide conversion as needing finalization actions.
2315 * exp_util.adb (Has_Controlled_Objects): Do not consider the result of
2316 a tag-to-class-wide conversion as needing finalization actions.
2317 (Is_Finalizable_Transient): The result of a tag-to-class-wide
2318 conversion does not need finalization actions.
2319 (Is_Tag_To_CW_Conversion): New routine.
2320 * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines
2321 whether an object is the result of a tag-to-class-wide conversion.
2322
2323 2011-08-04 Yannick Moy <moy@adacore.com>
2324
2325 * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which
2326 the left-hand-side and right-hand-side of a conjunct are inserted when
2327 translating a pre- or postcondition
2328 * sem_ch6.adb: Correct typo in comment
2329
2330 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2331
2332 * gnat_rm.texi: Ravenscar does not prohibit dependence on
2333 Unchecked_Conversion and Unchecked_Deallocation.
2334
2335 2011-08-04 Thomas Quinot <quinot@adacore.com>
2336
2337 * make.adb: Minor reformatting.
2338
2339 2011-08-04 Emmanuel Briot <briot@adacore.com>
2340
2341 * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the
2342 sources in the project and its imported projects, but not in the whole
2343 tree.
2344
2345 2011-08-04 Emmanuel Briot <briot@adacore.com>
2346
2347 * make.adb: Remove debug trace.
2348
2349 2011-08-04 Vincent Celier <celier@adacore.com>
2350
2351 * makeutl.adb (Do_Complete): Get the absolute path name of a relative
2352 path in canonical form, to be able to compare path names on platforms
2353 such as Windows or Darwin.
2354
2355 2011-08-04 Thomas Quinot <quinot@adacore.com>
2356
2357 * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry):
2358 For a pragma (statement with C1 = 'P'), record the sloc of the pragma.
2359 * scos.ads: Update documentation accordingly.
2360 * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled
2361 pragmas.
2362
2363 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2364
2365 * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of
2366 attribute only if prefix type is scalar.
2367
2368 2011-08-04 Emmanuel Briot <briot@adacore.com>
2369
2370 * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support
2371 in gnatmake for specifying mains on the command line that do not belong
2372 to the main project. These mains must currently all belong to the same
2373 project, though.
2374 (Ultimate_Extension_Of): removed, since duplicated
2375 Ultimate_Extending_Project.
2376
2377 2011-08-04 Arnaud Charlet <charlet@adacore.com>
2378
2379 * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode
2380 instead.
2381 (CodePeer_Mode_String): New.
2382 (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in
2383 CodePeer mode.
2384 (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode.
2385 * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer
2386 mode, since no useful elaboration subprogram is needed by CodePeer.
2387 * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode).
2388 In this mode, compile binder file with -gnatC and do stop after this
2389 step.
2390
2391 2011-08-04 Vincent Celier <celier@adacore.com>
2392
2393 * exp_ch7.adb: Minor comment fix.
2394
2395 2011-08-04 Robert Dewar <dewar@adacore.com>
2396
2397 * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb,
2398 exp_ch4.adb, makeutl.adb: Minor reformatting.
2399
2400 2011-08-04 Emmanuel Briot <briot@adacore.com>
2401
2402 * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring.
2403 Create several new subprograms to move code out of Make. This makes the
2404 code more readable, removes code duplication, and is a preparation work
2405 for adding support for aggregate projects.
2406
2407 2011-08-04 Tristan Gingold <gingold@adacore.com>
2408
2409 * s-po32gl.ads, s-po32gl.adb: New files.
2410 * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function.
2411 * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function.
2412 (Build_Finalization_Collection): Use it.
2413 * exp_ch4.adb (Complete_Controlled_Allocation): Ditto.
2414 * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New
2415 literals.
2416 * gcc-interface/Makefile.in: Use s-po32gl.o on VMS.
2417 * gcc-interface/Make-lang.in: Update dependencies.
2418
2419 2011-08-04 Emmanuel Briot <briot@adacore.com>
2420
2421 * makeutl.adb (Complete_Mains): add support for specs with no suffix on
2422 the command line.
2423
2424 2011-08-04 Emmanuel Briot <briot@adacore.com>
2425
2426 * make.adb, makeutl.adb (Complete_Mains): if a main specified on the
2427 command line is not a file name, also check whether it could be a unit
2428 name.
2429
2430 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
2431
2432 * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate
2433 the header of the finalization routine.
2434 If the unit has no finalizer but is a body whose spec has one, then
2435 generate the decrement of the elaboration entity only.
2436 If the unit has a finalizer and is a spec, then do not generate the
2437 decrement of the elaboration entity.
2438 (Gen_Finalize_Library_C): Likewise.
2439
2440 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2441
2442 * exp_ch7.adb (Alignment_Of): New subsidiary routine.
2443 (Bounds_Size_Expression): Removed.
2444 (Double_Alignment_Of): New subsidiary routine.
2445 (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account
2446 for a hole in the dope vector of unconstrained arrays due to different
2447 index and element alignments.
2448
2449 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2450
2451 * sem_res.adb (Resolve_Allocator): diagnose task allocator that will
2452 raise program_error because body has not been seen yet.
2453
2454 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2455
2456 * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with
2457 an unresolved name.
2458
2459 2011-08-04 Vincent Celier <celier@adacore.com>
2460
2461 * makeutl.adb (Do_Complete): Check absolute paths in canonical forms
2462
2463 2011-08-04 Yannick Moy <moy@adacore.com>
2464
2465 * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here
2466 * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here
2467
2468 2011-08-04 Thomas Quinot <quinot@adacore.com>
2469
2470 * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for
2471 instantiation in RCI.
2472
2473 2011-08-04 Emmanuel Briot <briot@adacore.com>
2474
2475 * make.adb: Share more code with gprbuild
2476
2477 2011-08-04 Emmanuel Briot <briot@adacore.com>
2478
2479 * projects.texi: Added documentation for the IDE'Gnat project file
2480 attribute.
2481
2482 2011-08-04 Nicolas Roche <roche@adacore.com>
2483
2484 * gnat_rm.texi: Minor editing.
2485
2486 2011-08-04 Javier Miranda <miranda@adacore.com>
2487
2488 * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case
2489 and the library case for VM targets.
2490 (Gen_Adainit_Ada): Likewise.
2491
2492 2011-08-04 Robert Dewar <dewar@adacore.com>
2493
2494 * g-altive.ads: Minor comment updates.
2495 * prj-nmsc.adb: Minor reformatting.
2496
2497 2011-08-04 Javier Miranda <miranda@adacore.com>
2498
2499 * opt.ads
2500 (Normalize_Scalars_Config): Value of the configuration switch set by
2501 pragma Normalize_Scalars when it appears in the gnat.adc file.
2502 (Normalize_Scalars): New field for record Config_Switches_Type. Used
2503 to save and restore settings of this pragma.
2504 * opt.adb
2505 (Register_Opt_Config_Switches, Save_Opt_Config_Switches,
2506 Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars.
2507
2508 2011-08-04 Vincent Celier <celier@adacore.com>
2509
2510 * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile
2511
2512 2011-08-04 Arnaud Charlet <charlet@adacore.com>
2513
2514 * makeutl.adb: Minor reformatting.
2515
2516 2011-08-04 Olivier Hainque <hainque@adacore.com>
2517
2518 * g-altive.ads: Update comments to reflect that only the soft
2519 binding is available today.
2520
2521 2011-08-04 Robert Dewar <dewar@adacore.com>
2522
2523 * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb,
2524 makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting
2525 * gcc-interface/Make-lang.in: Update dependencies.
2526
2527 2011-08-04 Arnaud Charlet <charlet@adacore.com>
2528
2529 * prj-env.adb: Remove local debug traces.
2530
2531 2011-08-04 Yannick Moy <moy@adacore.com>
2532
2533 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
2534 was used instead of Hi_OK, which could cause a read of an uninitialized
2535 value later on. Detected while working on the new warning.
2536 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
2537 to local variable.
2538 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
2539 in more cases, in order to detect more unreferenced values.
2540 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
2541 object for expression, if any.
2542
2543 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
2544
2545 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
2546 the operand types instead of the Esize.
2547
2548 2011-08-04 Steve Baird <baird@adacore.com>
2549
2550 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
2551 enable CodePeer_Mode.
2552 * bindusg.adb (Display): Add help message describing -P binder switch.
2553 * gnat_ugn.texi: Document -P binder switch.
2554 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
2555 user-defined main program directly.
2556 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
2557 user-defined main program in the context clause of the package body.
2558
2559 2011-08-04 Yannick Moy <moy@adacore.com>
2560
2561 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
2562 duplicate of Defining_Entity
2563 (Get_Unique_Entity_For_Decl): rename function into
2564 Unique_Defining_Entity
2565 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
2566 (Formal_Proof_On): remove synthesized flag
2567 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
2568 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
2569 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
2570 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
2571 Annotate (Formal_Proof)
2572
2573 2011-08-04 Emmanuel Briot <briot@adacore.com>
2574
2575 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
2576 source files with non-standard naming schemes, in imported projects
2577
2578 2011-08-04 Emmanuel Briot <briot@adacore.com>
2579
2580 * makeutl.adb (Complete_Mains): when a multi-unit source file is
2581 specified on the gprbuild command line, we need to compile all units
2582 within that file, not just the first one we find
2583 Fix error message for mains that are not found.
2584
2585 2011-08-04 Thomas Quinot <quinot@adacore.com>
2586
2587 * sem_ch6.adb: Update comment.
2588 * sem_ch12.adb: Minor reformatting.
2589
2590 2011-08-04 Bob Duff <duff@adacore.com>
2591
2592 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
2593 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
2594 race condition whose symptom is to fail to lock Parent. That, in turn,
2595 causes Parent.Awake_Count to be accessed without locking Parent, which
2596 causes another race condition whose symptom is that Parent.Awake_Count
2597 can be off by 1 (either too high or too low). The solution is to lock
2598 Parent unconditionally, and then lock Acceptor, before reading
2599 Acceptor.Terminate_Alternative.
2600
2601 2011-08-04 Arnaud Charlet <charlet@adacore.com>
2602
2603 * debug.adb: Update comment.
2604
2605 2011-08-04 Robert Dewar <dewar@adacore.com>
2606
2607 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
2608 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
2609 exp_ch6.adb: Minor reformatting.
2610
2611 2011-08-04 Gary Dismukes <dismukes@adacore.com>
2612
2613 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
2614 checks for -gnateE.
2615
2616 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2617
2618 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
2619
2620 2011-08-04 Thomas Quinot <quinot@adacore.com>
2621
2622 * sinfo.ads: Minor reformatting.
2623
2624 2011-08-04 Emmanuel Briot <briot@adacore.com>
2625
2626 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
2627 even if there is no location.
2628
2629 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2630
2631 * sem_res.adb, sem_ch4.adb: move check for restriction
2632 No_Task_Hierarchy to resolve_allocator.
2633
2634 2011-08-04 Thomas Quinot <quinot@adacore.com>
2635
2636 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
2637 This flag of N_Pragma nodes is not used, remove it as well as all of
2638 the associated circuitry.
2639
2640 2011-08-04 Javier Miranda <miranda@adacore.com>
2641
2642 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
2643 runtime check on duplicated externa tags
2644 * debug.adb Document switch -gnatdQ.
2645
2646 2011-08-04 Gary Dismukes <dismukes@adacore.com>
2647
2648 * a-fihema.ads: Minor typo fix.
2649
2650 2011-08-04 Yannick Moy <moy@adacore.com>
2651
2652 * sem_ch10.adb: Minor comment update.
2653
2654 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2655
2656 * einfo.adb: Update the node field usage to reflect the renaming of
2657 Return_Flag to Return_ Flag_Or_Transient_Decl.
2658 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
2659 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
2660 (Write_Field15_Name): Change Return_Flag to
2661 Return_Flag_Or_Transient_Decl.
2662 * einfo.ads: Rename node field Return_Flag to
2663 Return_Flag_Or_Transient_Decl. Update the associated comment and all
2664 occurrences in entities.
2665 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
2666 associated Inline pragma.
2667 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
2668 associated Inline pragma.
2669 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
2670 routine.
2671 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
2672 Return_Flag and Set_Return_Flag.
2673 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
2674 objects generated for controlled transients declared inside an
2675 Exception_With_Actions. Update the calls to Return_Flag.
2676 (Process_Object_Declaration): Add code to add a null guard for hook
2677 objects generated for controlled transients declared inside an
2678 Exception_With_Actions. Update related comment.
2679 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
2680 objects generated for controlled transients declared inside an
2681 Exception_With_Actions. Update the calls to Return_Flag.
2682 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
2683
2684 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2685
2686 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
2687 positional aggregate.
2688
2689 2011-08-04 Vincent Celier <celier@adacore.com>
2690
2691 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
2692 SLOC only for pragmas.
2693
2694 2011-08-04 Emmanuel Briot <briot@adacore.com>
2695
2696 * projects.texi: Minor typo fix.
2697
2698 2011-08-04 Emmanuel Briot <briot@adacore.com>
2699
2700 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
2701 on case-sensitive file systems.
2702
2703 2011-08-04 Thomas Quinot <quinot@adacore.com>
2704
2705 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
2706 nested in a disabled pragma.
2707 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
2708 enclosing pragma, if any, for X decisions.
2709
2710 2011-08-04 Thomas Quinot <quinot@adacore.com>
2711
2712 * sem_prag.adb: Minor reformatting.
2713
2714 2011-08-04 Vincent Celier <celier@adacore.com>
2715
2716 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
2717 allowed in no run time mode.
2718
2719 2011-08-04 Vincent Celier <celier@adacore.com>
2720
2721 * make.adb (Check): When -gnatc is used, check for the source file
2722 inside the ALI file with a canonical case file name.
2723
2724 2011-08-04 Emmanuel Briot <briot@adacore.com>
2725
2726 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
2727 overriding the separator.
2728
2729 2011-08-04 Robert Dewar <dewar@adacore.com>
2730
2731 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
2732 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
2733
2734 2011-08-04 Robert Dewar <dewar@adacore.com>
2735
2736 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
2737
2738 2011-08-04 Yannick Moy <moy@adacore.com>
2739
2740 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
2741 'Result only appears in postcondition of function.
2742
2743 2011-08-04 Thomas Quinot <quinot@adacore.com>
2744
2745 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
2746 external tag, include the value of the external tag in the exception
2747 message.
2748
2749 2011-08-04 Yannick Moy <moy@adacore.com>
2750
2751 * sem_attr.adb (Result): modify error message for misplaced 'Result
2752
2753 2011-08-04 Sergey Rybin <rybin@adacore.com>
2754
2755 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
2756 clear that the second argument must be an identifier.
2757
2758 2011-08-04 Thomas Quinot <quinot@adacore.com>
2759
2760 * exp_ch9.adb (Build_Barrier_Function): When compiling with
2761 -fpreserve-control-flow, insert an IF statement on the barrier
2762 condition to ensure that a conditional branch instruction is generated.
2763
2764 2011-08-04 Emmanuel Briot <briot@adacore.com>
2765
2766 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
2767 (Processing_Flags.Ignore_Missing_With): new flag.
2768
2769 2011-08-04 Emmanuel Briot <briot@adacore.com>
2770
2771 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
2772 Source_List_File on case-insensitive systems where the file is actually
2773 on a case-sensitive file system (NFS,...).
2774
2775 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2776
2777 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
2778 function return contains a controlled [extension] aggregate and the
2779 return statement is not part of a handled sequence of statements, wrap
2780 the return in a block. This ensures that all controlled temporaries
2781 generated during aggregate resolution will be picked up by the
2782 finalization machinery.
2783
2784 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2785
2786 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
2787 components, freeze type before resolution, to ensure that default
2788 initializations are present for all components.
2789 * sem_res.adb (Resolve_Actuals): the designated object of an
2790 accces-to-constant type is a legal actual in a call to an
2791 initialization procedure.
2792
2793 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2794
2795 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
2796 N_Unchecked_Type_Conversion to the possible containers of a renamed
2797 transient variable.
2798
2799 2011-08-04 Yannick Moy <moy@adacore.com>
2800
2801 * par-ch13.adb (Aspect_Specifications_Present): recognize
2802 "with Identifier'Class =>" as an aspect, so that a meaningful warning
2803 is issued in Strict mode.
2804 * par.adb: Fix typos in comments.
2805
2806 2011-08-04 Yannick Moy <moy@adacore.com>
2807
2808 * sem_attr.adb (Result): modify error message to take into account Post
2809 aspect when compiling Ada 2012 (or newer) code.
2810
2811 2011-08-04 Nicolas Roche <roche@adacore.com>
2812
2813 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
2814 remove need for GCC exceptions.
2815
2816 2011-08-04 Vincent Celier <celier@adacore.com>
2817
2818 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
2819 project, not the source file name.
2820 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
2821 excluded, continue looking. This excluded source will only be returned
2822 if there is no other source with the same base name that is not locally
2823 removed.
2824
2825 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2826
2827 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
2828 private and one of the operands is a real literal, use a qualified
2829 expression rather than a conversion which is not meaningful to the
2830 back-end.
2831
2832 2011-08-04 Yannick Moy <moy@adacore.com>
2833
2834 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
2835 corresponding aspect X'Class are allowed, proceed with analysis of the
2836 aspect instead of skipping it.
2837
2838 2011-08-04 Tristan Gingold <gingold@adacore.com>
2839
2840 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
2841 This will allow to have an Ada implementation for the subprogram.
2842
2843 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2844
2845 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
2846 completion and aspects are present, apply them to the entity for the
2847 type which is currently the partial view, but which is the one that
2848 will be frozen.
2849 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
2850 applies to a partial view, indicate that the full view has predicates
2851 and delayed aspects.
2852 (Replace_Type_Reference): Handle properly predicates that apply to the
2853 full view of a private completion.
2854
2855 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
2856
2857 * layout.adb (Layout_Type): For composite types, do not set Esize.
2858 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
2859 set Esize.
2860 (Size_Known): Look at the RM size of components instead of the Esize.
2861 (Freeze_Record_Type): Look at the RM size instead of the Esize to
2862 issue warning and activate Implicit_Packing.
2863 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
2864 if the Esize is not known.
2865 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
2866 for elementary types only.
2867 (Analyze_Record_Representation_Clause): Look at the RM size instead
2868 of the Esize to issue errors.
2869 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
2870 is not known.
2871 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
2872 obsolete block.
2873 Look at the RM size instead of the Esize for types if the latter is
2874 not known.
2875 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
2876
2877 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2878
2879 * sem_type.adb: proper handling of equality not involving anonymous
2880 access types.
2881
2882 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
2883
2884 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
2885 Vis_Decls. When creating a library-level finalizer for a package spec,
2886 both the declaration and body of the finalizer are inserted either in
2887 the visible or private declarations of the package spec.
2888
2889 2011-08-04 Javier Miranda <miranda@adacore.com>
2890
2891 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
2892 use of the full-view of a type when invoking Is_Ancestor.
2893 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
2894 the full-view of private parents is requested, then use also the
2895 full-view of the parent of the first derivation.
2896
2897 2011-08-04 Tristan Gingold <gingold@adacore.com>
2898
2899 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
2900 instead of the locally imported procedure.
2901 * s-taprop-mingw.adb (Enter_Task): Ditto.
2902 * s-valrea.adb (Scan_Real): Ditto.
2903 * s-imgrea.adb (Set_Image_Real): Ditto.
2904 * s-flocon.ads: Make the package pure.
2905
2906 2011-08-04 Thomas Quinot <quinot@adacore.com>
2907
2908 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
2909 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
2910 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
2911 New subprogram, moved here from...
2912 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
2913 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
2914 rewriting of the last argument into a procedure call statement here...
2915 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
2916 instead.
2917
2918 2011-08-04 Thomas Quinot <quinot@adacore.com>
2919
2920 * par_sco.adb: Minor reformatting.
2921
2922 2011-08-04 Robert Dewar <dewar@adacore.com>
2923
2924 * erroutc.adb: Minor reformatting.
2925
2926 2011-08-04 Thomas Quinot <quinot@adacore.com>
2927
2928 * par_sco.adb: Comment update.
2929
2930 2011-08-04 Tristan Gingold <gingold@adacore.com>
2931
2932 * s-flocon.ads: New file.
2933 * g-flocon.ads: Now a renaming of s-flocon.
2934 * Makefile.rtl: Add s-flocon.o
2935
2936 2011-08-04 Javier Miranda <miranda@adacore.com>
2937
2938 * exp_strm.adb (Build_Array_Input_Function): if the array type is
2939 constrained, do not attempt to build a subtype of it.
2940
2941 2011-08-04 Yannick Moy <moy@adacore.com>
2942
2943 * errout.ads Change comments: remove 'R'M as an example where quotes
2944 are needed; add ALFA as another case where quotes are not needed
2945 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
2946 case where quotes are not needed.
2947 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
2948 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
2949 Remove all occurrences of 'A'L'F'A
2950
2951 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2952
2953 * sem_ch13.adb: check legality of invariant pragma.
2954
2955 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
2956
2957 * bindgen.adb: Add comments.
2958
2959 2011-08-04 Yannick Moy <moy@adacore.com>
2960
2961 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
2962 synthesized flag.
2963 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
2964 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
2965
2966 2011-08-04 Robert Dewar <dewar@adacore.com>
2967
2968 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
2969 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
2970 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
2971
2972 2011-08-04 Thomas Quinot <quinot@adacore.com>
2973
2974 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
2975
2976 2011-08-04 Thomas Quinot <quinot@adacore.com>
2977
2978 PR ada/47880
2979 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
2980 allocated object.
2981
2982 2011-08-04 Robert Dewar <dewar@adacore.com>
2983
2984 * einfo.ads, exp_ch4.adb: Minor reformatting.
2985
2986 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
2987
2988 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
2989
2990 2011-08-04 Ed Schonberg <schonberg@adacore.com>
2991
2992 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
2993 type in all cases to compute list of primitive operations, because full
2994 view may be an itype that is not attached to the list of declarations.
2995
2996 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
2997
2998 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
2999 library has already been finalized.
3000 (Gen_Adafinal_C): Likewise.
3001 (Gen_Adainit_Ada): Generate an early return if the library has
3002 already been elaborated.
3003 (Gen_Adainit_C): Likewise.
3004 (Gen_Output_File_Ada): Generate an elaboration flag.
3005 (Gen_Output_File_C): Likewise.
3006
3007 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3008
3009 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
3010 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
3011 built in the first place.
3012 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
3013 for CodePeer because Finalize_Address was not built to begin with.
3014 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
3015
3016 2011-08-04 Pascal Obry <obry@adacore.com>
3017
3018 * adaint.c (__gnat_tmp_name): Use current process id to create temp
3019 filenames, this ensures unicity of filenames across processes.
3020
3021 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3022
3023 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
3024 Raise_Controlled to Raise_From_Controlled_Operation. Update the
3025 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
3026 Add False as the actual to From_Abort in the generated call to
3027 Raise_From_Controlled_Operation.
3028
3029 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
3030
3031 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
3032 so that the ali file name can be retrieved from outside of this package.
3033 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
3034 doing nothing in the general case, but used to update the object file
3035 timestamp if directly generated by the backend.
3036 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
3037 to a later time than the ali file one.
3038
3039 2011-08-04 Yannick Moy <moy@adacore.com>
3040
3041 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
3042 entities whose body contains an Annotate pragma which forces formal
3043 proof on this body.
3044 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
3045 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
3046 Mark_Non_ALFA_Subprogram to pass in a message and node.
3047 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
3048 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
3049 surrounding subprogram.
3050 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
3051 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
3052 as not in ALFA is annotated with Formal_Proof being On, then an error
3053 is issued based on the additional parameters for message and node.
3054 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
3055 * gcc-interface/Make-lang.in: Update dependencies.
3056
3057 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3058
3059 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
3060 Finalize_Address when CodePeer is enabled.
3061
3062 2011-08-04 Pascal Obry <obry@adacore.com>
3063
3064 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
3065 the latter returns a pointer to a static buffer which is deallocated
3066 at the end of the routine.
3067
3068 2011-08-04 Yannick Moy <moy@adacore.com>
3069
3070 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
3071 after index creation; mark unconstrained base array type generated as
3072 being in/not in ALFA as well
3073 (Make_Index): mark subtype created as in/not in ALFA
3074 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
3075 over a loop as in/not in ALFA, depending on its type and form of loop
3076 iteration.
3077
3078 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3079
3080 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
3081 directly to False on .NET and JVM.
3082
3083 2011-08-04 Yannick Moy <moy@adacore.com>
3084
3085 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
3086 constraint that subtype must come from source code to be in ALFA, so
3087 that anonymous subtypes can be in ALFA too.
3088
3089 2011-08-04 Yannick Moy <moy@adacore.com>
3090
3091 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
3092 reference for ALFA mode.
3093 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
3094 procedure public so as to use it from formal verification back-end.
3095
3096 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
3097
3098 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
3099 invalid checks of the Parameter, making Remove_Switch not working
3100 correctly.
3101
3102 2011-08-04 Arnaud Charlet <charlet@adacore.com>
3103
3104 * targparm.ads: Update header: no run-time exception is needed on this
3105 file.
3106
3107 2011-08-04 Vincent Celier <celier@adacore.com>
3108
3109 * a-fihema.adb: Use System.IO instead of GNAT.IO
3110
3111 2011-08-04 Thomas Quinot <quinot@adacore.com>
3112
3113 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
3114 are forbidden in Compiler_Unit mode.
3115
3116 2011-08-04 Robert Dewar <dewar@adacore.com>
3117
3118 * sem_util.adb: Minor reformatting.
3119
3120 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3121
3122 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
3123 library-level finalizers.
3124 (Gen_Finalize_Library_C): Update the import string for library-level
3125 finalizers.
3126 (Gen_Finalize_Library_Defs_C): Update the definition name of a
3127 library-level finalizer.
3128 * exp_ch7.adb: Remove with and use clauses for Stringt.
3129 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
3130 Spec_Decl. Add local variable Body_Id. The names of library-level
3131 finalizers are now manually fully qualified and are no longer external.
3132 A single name is now capable of servicing .NET, JVM and non-VM targets.
3133 Pragma Export is no longer required to provide visibility for the name.
3134 (Create_Finalizer_String): Removed.
3135 (New_Finalizer_Name): New routine which mimics New_..._Name.
3136
3137 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
3138
3139 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
3140 elaboration counter to Standard_Short_Integer.
3141 * sem_util.adb (Build_Elaboration_Entity): Likewise.
3142 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
3143 (Gen_Elab_Externals_C): Likewise.
3144
3145 2011-08-04 Ed Falis <falis@adacore.com>
3146
3147 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
3148 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
3149 system-vxworks-mips.ads, system-vxworks-x86.ads
3150 (Always_Compatible_Rep): set to False for all VxWorks targets.
3151
3152 2011-08-04 Robert Dewar <dewar@adacore.com>
3153
3154 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
3155 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
3156 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
3157 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
3158 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
3159 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
3160 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
3161 Minor reformatting and code reorganization.
3162
3163 2011-08-04 Emmanuel Briot <briot@adacore.com>
3164
3165 * projects.texi: Added doc for aggregate projects.
3166
3167 2011-08-04 Emmanuel Briot <briot@adacore.com>
3168
3169 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
3170 Add support for overriding the Project_Path in aggregate projects.
3171
3172 2011-08-04 Robert Dewar <dewar@adacore.com>
3173
3174 * a-cofove.ads: Minor reformatting.
3175
3176 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
3177
3178 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
3179 on the generated code.
3180 (Build_Finalize_Statements): Update the comment on the generated code.
3181 (Build_Initialize_Statements): Update the comment on the generated code.
3182 (Build_Object_Declarations): Add local variable Result. The object
3183 declarations are now built in sequence.
3184 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
3185 RE_Unit_Table.
3186
3187 2011-08-04 Robert Dewar <dewar@adacore.com>
3188
3189 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
3190
3191 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
3192
3193 * einfo.ads (Elaboration_Entity): Document new definition and use.
3194 (Elaboration_Entity_Required): Adjust to above change.
3195 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
3196 * exp_ch12.adb: And with and use for Snames.
3197 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
3198 * exp_util.adb (Set_Elaboration_Flag): Likewise.
3199 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
3200 <Check_Unit_Name>: Deal with N_Expanded_Name.
3201 <Attribute_Elaborated>: Extend to all unit names.
3202 * sem_elab.adb: And with and use for Uintp.
3203 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
3204 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
3205 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
3206 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
3207 from Gen_Adainit_Ada.
3208 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
3209 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
3210 case, do not call System.Standard_Library.Adafinal; instead call
3211 finalize_library if needed.
3212 (Gen_Adafinal_C): Likewise.
3213 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
3214 non-main program case.
3215 (Gen_Adainit_C): Generate a couple of external declarations here.
3216 In the main program case, set SSL.Finalize_Library_Objects.
3217 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
3218 (Gen_Elab_Calls_C): Likewise.
3219 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
3220 (Gen_Finalize_Library_C): Likewise. Generate a full function.
3221 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
3222 objects here.
3223 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
3224 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
3225 Gen_Adafinal_Ada.
3226 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
3227 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
3228 of external declarations. Call Gen_Finalize_Library_C.
3229
3230 2011-08-04 Emmanuel Briot <briot@adacore.com>
3231
3232 * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains,
3233 Compute_Compilation_Phases): new subprogram.
3234 (Builder_Data, Builder_Project_Tree_Data): new subprogram and type
3235 The number of mains as well as the various compilation phases that
3236 need to be run are now project tree specific, since various
3237 aggregated trees might have different requirements. In particular,
3238 they do not all require bind or link phases.
3239
3240 2011-08-04 Emmanuel Briot <briot@adacore.com>
3241
3242 * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb
3243 (Project_Tree_Appdata): New type.
3244 It is now possible to associate application-specific data to a project
3245 tree. In particular, this is used in the gprbuild builder to avoid a
3246 number of global tables and htables, especially now that there can be
3247 several project trees loaded at once because of aggregate projects.
3248 (Debug_Name): new procedure.
3249 * projects.texi: Clarify syntax of "**" for Source_Dirs
3250
3251 2011-08-03 Emmanuel Briot <briot@adacore.com>
3252
3253 * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts
3254 the "roots" for a main.
3255 (Fill_From_Project): add support for aggregate projects. Main units
3256 in aggregated projects are now automatically added in the list of
3257 files to build (although this fails later on in gprbuild, because
3258 these files are not using the root proejct tree, so this needs
3259 further cleanup)
3260 * gcc-interface/Make-lang.in: Update dependencies.
3261
3262 2011-08-03 Yannick Moy <moy@adacore.com>
3263
3264 * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean
3265 conditional expression in ALFA.
3266 * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean
3267 expressions as not in ALFA.
3268
3269 2011-08-03 Robert Dewar <dewar@adacore.com>
3270
3271 * a-cofove.adb: Minor reformatting.
3272
3273 2011-08-03 Emmanuel Briot <briot@adacore.com>
3274
3275 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads
3276 (Insert_Project_Sources, Insert_withed_Sources_For): moved from the
3277 gprbuild sources.
3278 These packages are more logically placed in the Queue package, since
3279 they manipulate the queue. It is also likely that they can be adapted
3280 for gnatmake, thus sharing more code.
3281 (Finish_Program, Fail_Program): moved from the gprbuild sources, so
3282 that we could move the above.
3283
3284 2011-08-03 Emmanuel Briot <briot@adacore.com>
3285
3286 * errutil.adb (Finalize): clean up the list of error messages on exit.
3287 Calling this subprogram multiple times will no longer show duplicate
3288 error messages on stderr.
3289
3290 2011-08-03 Emmanuel Briot <briot@adacore.com>
3291
3292 * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter
3293 Getopt_Switches when we have already define a command line
3294 configuration.
3295
3296 2011-08-03 Yannick Moy <moy@adacore.com>
3297
3298 * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not
3299 in ALFA. Instead, they are considered as assertions to prove.
3300 * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such
3301 nodes as not in ALFA. Instead, include conditional expressions in ALFA
3302 if they have no ELSE part, or if they occur in pre- and postconditions,
3303 where the Condition cannot have side-effects in ALFA
3304 (Analyze_Membership_Op): do not mark such nodes as not in ALFA
3305 (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA.
3306 Instead, include type conversion between scalar types in ALFA.
3307 * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA
3308 if-and-only-if its type is in ALFA.
3309
3310 2011-08-03 Thomas Quinot <quinot@adacore.com>
3311
3312 * scos.adb, get_scos.adb, put_scos.adb
3313 New code letter for decisions: G (entry guard)
3314 * par_sco.adb
3315 (Traverse_Subprogram_Body): Rename to...
3316 (Traverse_Subprogram_Or_Task_Body): New subrpogram.
3317 (Traverse_Protected_Body): New subprogram
3318 (Traverse_Declarations_Or_Statements): Add traversal of task bodies,
3319 protected bodies and entry bodies.
3320
3321 2011-08-03 Yannick Moy <moy@adacore.com>
3322
3323 * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure
3324 entities with get/set subprograms, which is set on procedure entities
3325 generated by the compiler for a postcondition.
3326 * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures
3327 * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the
3328 entity for a declaration
3329 (Get_Unique_Entity_For_Decl): new function returning an entity which
3330 represents a declaration, so that matching spec and body have the same
3331 entity.
3332
3333 2011-08-03 Robert Dewar <dewar@adacore.com>
3334
3335 * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads,
3336 a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting
3337
3338 2011-08-03 Yannick Moy <moy@adacore.com>
3339
3340 * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram
3341 library-level because retriction No_Implicit_Dynamic_Code in the
3342 front-end prevents its definition as a local subprogram
3343 (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File,
3344 for reuse in other contexts
3345 (Traverse_Declarations_Or_Statements,
3346 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
3347 Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these
3348 procedures take a callback parameter to be called on all declarations
3349 * lib-xref.ads
3350 (Traverse_All_Compilation_Units): new generic function to traverse a
3351 compilation unit and call a callback parameter on all declarations
3352
3353 2011-08-03 Javier Miranda <miranda@adacore.com>
3354
3355 * sem_prag.adb (Process_Interface_Name): Allow duplicated export names
3356 in Java since they are always enclosed in a namespace that
3357 differentiates them, and overloaded entities are supported by the VM.
3358
3359 2011-08-03 Ed Schonberg <schonberg@adacore.com>
3360
3361 * checks.adb (Determine_Range): If a computed bound of an operation is
3362 outside the range of the base type of the expression, and overflow
3363 checks are enabled, the result is unknown and cannot be used for any
3364 subsequent constant folding.
3365 * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are
3366 unknown, so is the result of the comparison.
3367
3368 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3369
3370 * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal
3371 From_Abort. When finalization was triggered by an abort, propagate
3372 Standard'Abort_Signal rather than Program_Error.
3373 * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal
3374 From_Abort.
3375 * a-except.adb (Raise_From_Controlled_Operation): Add new formal
3376 From_Abort. When finalization was triggered by an abort, propagate
3377 Standard'Abort_Signal rather than Program_Error.
3378 * a-except.ads:(Raise_From_Controlled_Operation): Add new formal
3379 From_Abort.
3380 * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable
3381 Abort_Id. Update the calls to Build_Object_Declarations and
3382 Build_Raise_Statement to include Abort_Id.
3383 (Build_Adjust_Statements): New local variable Abort_Id. Update the
3384 calls to Build_Object_Declarations and Build_Raise_Statement to include
3385 Abort_Id.
3386 (Build_Finalize_Statements): New local variable Abort_Id. Update the
3387 calls to Build_Object_Declarations and Build_Raise_Statement to include
3388 Abort_Id.
3389 (Build_Components): Create an entity for Abort_Id when exceptions are
3390 allowed on the target.
3391 (Build_Finalizer): New local variable Abort_Id.
3392 (Build_Initialize_Statements): New local variable Abort_Id. Update the
3393 calls to Build_Object_Declarations and Build_Raise_Statement to include
3394 Abort_Id.
3395 (Build_Object_Declarations): Add new formal Abort_Id. Create the
3396 declaration of flag Abort_Id to preserve the original abort status
3397 before finalization code is executed.
3398 (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to
3399 runtime routine Raise_From_Controlled_Operation.
3400 (Create_Finalizer): Update the call to Build_Raise_Statement to include
3401 Abort_Id. Update the call to Build_Object_Declarations to include
3402 Abort_Id. Update the layout of the finalizer body.
3403 (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort.
3404 (Process_Transient_Objects): New local variable Abort_Id. Remove the
3405 clunky code to create all flags and objects related to
3406 exception propagation and replace it with a call to
3407 Build_Object_Declarations. Update the call to Build_Raise_Statement to
3408 include Abort_Id.
3409 * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec.
3410 Add new formal Abort_Id and associated comment on its use.
3411 (Build_Raise_Statement): Add new formal Abort_Id and associated comment
3412 on its use.
3413 * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id.
3414 Remove the clunky code to create all flags and objects related to
3415 exception propagation and replace it with a call to
3416 Build_Object_Declarations. Update the call to Build_Raise_Statement.
3417
3418 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
3419
3420 * s-tassta.adb: Fix minor typos.
3421
3422 2011-08-03 Robert Dewar <dewar@adacore.com>
3423
3424 * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb,
3425 lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting.
3426
3427 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3428
3429 * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion
3430 to packages. This ensures that the finalizer body will not end up
3431 inside the freeze node.
3432 (Process_Declarations): Add code to detect whether a freeze node has a
3433 nested finalization collection.
3434
3435 2011-08-03 Pascal Obry <obry@adacore.com>
3436
3437 * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005.
3438 (Current_Session): Return a not null access to Session_Type.
3439 (Default_Session): Likewise.
3440
3441 2011-08-03 Robert Dewar <dewar@adacore.com>
3442
3443 * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb,
3444 exp_ch3.adb, exp_ch3.ads: Minor reformatting.
3445
3446 2011-08-03 Pascal Obry <obry@adacore.com>
3447
3448 * g-awk.ads: Minor comment fix.
3449
3450 2011-08-03 Sergey Rybin <rybin@adacore.com>
3451
3452 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
3453 the tree structure related to discriminant constraints.
3454 Original_Discriminant cannot be used any more for computing the
3455 defining name for the reference to a discriminant.
3456
3457 2011-08-03 Ed Schonberg <schonberg@adacore.com>
3458
3459 * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the
3460 function is not visibly tagged, this is not a dispatching call and
3461 therfore is not Tag_Indeterminate, even if the function is marked as
3462 dispatching on result.
3463
3464 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3465
3466 * exp_ch13.adb: Add with and use clauses for Restrict and Rident.
3467 (Expand_N_Free_Statement): Add a guard to protect against run-times
3468 which do not support controlled types.
3469 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect
3470 against run-times which do not support controlled types.
3471 * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect
3472 against run-times which do not support controlled types.
3473 * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect
3474 against run-times which do not support controlled types.
3475 * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to
3476 protect against run-times which do not support controlled types.
3477
3478 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
3479
3480 * exp_intr.adb: Put back with and use clauses for Exp_Ch11.
3481 (Expand_Unc_Deallocation): Expand the AT_END handler at the very end.
3482
3483 2011-08-03 Ed Schonberg <schonberg@adacore.com>
3484
3485 * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is
3486 modified in the source, to prevent spurious warnings when compiling
3487 with -gnatg.
3488
3489 2011-08-03 Thomas Quinot <quinot@adacore.com>
3490
3491 * a-except-2005.adb: Minor reformatting.
3492
3493 2011-08-03 Ed Schonberg <schonberg@adacore.com>
3494
3495 * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit
3496 is a renaming declaration in the private part of a package, do not emit
3497 a warning that the with_clause could be moved because the renaming may
3498 be used in the body or in a child unit.
3499
3500 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3501
3502 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
3503 Propagate the Comes_From_Source attribute from the original return
3504 object to the renaming.
3505
3506 2011-08-03 Jose Ruiz <ruiz@adacore.com>
3507
3508 * exp_ch7.adb (Build_Raise_Statement): Do not call
3509 Raise_From_Controlled_Operation when this routine is not present in
3510 the run-time library.
3511 (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time
3512 libraries (Ravenscar), tasks are non-terminating, and protected objects
3513 and tasks can only appear at library level, so we do not want
3514 finalization of protected objects nor tasks.
3515 * exp_intr.adb: Minor clarification in comment.
3516 bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada,
3517 Gen_Output_File_C): Remove references to finalization of library-level
3518 objects when using restricted run-time libraries.
3519
3520 2011-08-03 Ed Schonberg <schonberg@adacore.com>
3521
3522 * sem_ch3.adb (Build_Discriminant_Constraints): Set
3523 Original_Discriminant only if the parent type is a generic formal.
3524
3525 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3526
3527 * exp_ch13.adb: Add with and use clause for Targparm;
3528 (Expand_N_Free_Statement): Prevent the generation of a custom
3529 Deallocate on .NET/JVM targets since this requires pools and address
3530 arithmetic.
3531 * exp_ch4.adb (Expand_Allocator_Expression): When compiling for
3532 .NET/JVM targets, attach the newly allocated object to the access
3533 type's finalization collection. Do not generate a call to
3534 Set_Finalize_Address_Ptr on .NET/JVM because this routine does not
3535 exist in the runtime.
3536 (Expand_N_Allocator): When compiling for .NET/JVM targets, do not
3537 create a custom Allocate for object that do not require initialization.
3538 Attach a newly allocated object to the access type's finalization
3539 collection on .NET/JVM.
3540 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for
3541 assignment of controlled types on .NET/JVM. The two hidden pointers
3542 Prev and Next and stored and later restored after the assignment takes
3543 place.
3544 * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized
3545 kludge for .NET/JVM to recognize a particular piece of code coming from
3546 Heap_Management and change the call to Finalize into Deep_Finalize.
3547 * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of
3548 finalization collections on .NET/JVM only for types derived from
3549 Controlled. Separate the association of storage pools with a collection
3550 and only allow it on non-.NET/JVM targets.
3551 (Make_Attach_Call): New routine.
3552 (Make_Detach_Call): New routine.
3553 (Process_Object_Declarations): Suppress the generation of
3554 build-in-place return object clean up code on .NET/JVM since it uses
3555 pools.
3556 * exp_ch7.ads (Make_Attach_Call): New routine.
3557 (Make_Detach_Call): New routine.
3558 * exp_intr.adb Add with and use clause for Targparm.
3559 (Expand_Unc_Deallocation): Detach a controlled object from a collection
3560 on .NET/JVM targets.
3561 * rtsfind.ads: Add entries RE_Attach, RE_Detach and
3562 RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table.
3563 * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special
3564 names used in finalization.
3565
3566 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3567
3568 * a-fihema.adb: Add with and use clauses for System.Soft_Links.
3569 (Attach, Detach): Lock the current task when chaining an object onto a
3570 collection.
3571
3572 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
3573
3574 * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation):
3575 Rewritten to create the message strings when the exception is not
3576 raised by an abort during finalization.
3577 * a-except.ads, a-except-2005.ads: Add pragma Export for procedure
3578 Raise_From_Controlled_Operation and update its associated comment.
3579 * a-fihema.ads, a-fihema.adb: New GNAT unit.
3580 Ada.Finalization.Heap_Management provides key functionality
3581 associated with controlled objects on the heap, their creation,
3582 finalization and reclamation. Type Finalization_Collection is
3583 effectively a wrapper which sits ontop of a storage pool and performs
3584 all necessary bookkeeping for all the objects it contains. Each
3585 access-to-controlled or access-to-class-wide type receives a collection
3586 as part of its expansion. The compiler generates buffer code and
3587 invokes Allocate / Deallocate to create and destroy allocated
3588 controlled objects.
3589 * a-finali.adb ("="): Removed.
3590 * a-finali.ads ("="): Removed. Controlled types no longer carry hidden
3591 fields Prev and Next.
3592 * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer.
3593 A library unit with at least one controlled object on the library level
3594 has a special finalizer which is invoked by the binder. To signal this,
3595 ali files carry field PF.
3596 * ali.ads: New field in type Unit_Record called Has_Finalizer. Add
3597 associated comment on field usage.
3598 * a-tags.adb (Get_RC_Offset): Removed.
3599 (Needs_Finalization): New routine.
3600 * a-tags.ads: Update the structure of the GNAT dispatch tables.
3601 Dispatch tables now carry field Needs_Finalization which provides
3602 runtime indication whether a type is controlled or has controlled
3603 components or both. Remove field RC_Offset.
3604 (Get_RC_Offset): Removed along with its associated pragma Export.
3605 Since tagged types with controlled components no longer carry hidden
3606 field _controller, the special mechanism to retrieve its location is no
3607 longer needed.
3608 (Needs_Finalization): New routine.
3609 * atree.ads, atree.adb (Elist24): New routine.
3610 (Set_Elist24): New routine.
3611 * atree.h: Add a define clause for Elist24.
3612 * bindgen.adb New library-level variable Lib_Final_Built.
3613 (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the
3614 presence of a VM target, the routine generates calls to the proper
3615 library finalization routine.
3616 (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM
3617 targets. Set the correct library finalization routine depending on
3618 whether the library has controlled objects or this is a VM compilation.
3619 (Gen_Finalize_Library_Ada): New routine. This procedure generates calls
3620 to library-level finalizers of compiled units in reverse order of
3621 elaboration. It also produces exception management code and reraises a
3622 potential exception after all units have been finalized.
3623 (Gen_Finalize_Library_C): New routine. This procedure generates calls to
3624 library-level finalizers of compiled units in reverse order of
3625 elaboration.
3626 (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the
3627 definitions of all library-level finalizers available to the compilation
3628 (Gen_Main_Ada): Directly call Adafinal which now contails all target
3629 dependent code.
3630 (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call
3631 System.Standard_Library.Adafinal directly. If the library needs
3632 finalization actions, create the sequence of finalization calls.
3633 (Gen_Output_File_Ada): Alphabetize local variables and constants.
3634 Generate a with clause for System.Soft_Links when compiling for a VM.
3635 Remove the code which imports System.Standard_Library.Adafinal as
3636 Do_Finalize. Generate the library finalization routine.
3637 (Gen_Output_File_C): Add new local constant Needs_Library_Finalization.
3638 If the library needs finalization actions, create all the definitions
3639 of library- level finalizers.
3640 (Has_Finalizer): New routine. Determines whether at least one compiled
3641 unit has a library-level finalizer.
3642 Add type Qualification_Mode.
3643 (Set_Unit_Name): Add a formal which controls the replacement of a dot.
3644 * einfo.adb: New usage of field 15 as Return_Flag.
3645 Remove Finalization_Chain_Entity from the usages of field 19.
3646 Remove Associated_Final_Chain from the usages of field 23.
3647 New usage of field 23 as Associated_Collection.
3648 New usage of field 24 as Finalizer.
3649 New usage of flag 252 as Is_Processed_Transient.
3650 (Associated_Final_Chain): Removed.
3651 (Associated_Collection): New routine.
3652 (Finalization_Chain_Entity): Removed.
3653 (Finalizer): New routine.
3654 (Is_Finalizer): New routine.
3655 (Is_Processed_Transient): New routine.
3656 (Return_Flag): New routine.
3657 (Set_Associated_Final_Chain): Removed.
3658 (Set_Associated_Collection): New routine.
3659 (Set_Finalization_Chain_Entity): Removed.
3660 (Set_Finalizer): New routine.
3661 (Set_Is_Processed_Transient): New routine.
3662 (Set_Return_Flag): New routine.
3663 (Write_Entity_Flags): Include Is_Processed_Transient to the list of
3664 displayed flags.
3665 (Write_Field8_Name): Alphabetize the output.
3666 (Write_Field11_Name): Alphabetize the output.
3667 (Write_Field12_Name): Alphabetize the output.
3668 (Write_Field13_Name): Alphabetize the output.
3669 (Write_Field14_Name): Alphabetize the output.
3670 (Write_Field15_Name): Alphabetize the output.
3671 (Write_Field16_Name): Alphabetize the output.
3672 (Write_Field17_Name): Alphabetize the output.
3673 (Write_Field18_Name): Alphabetize the output.
3674 (Write_Field19_Name): Alphabetize the output. Remove the output of
3675 Finalization_Chain_Entity.
3676 (Write_Field20_Name): Alphabetize the output.
3677 (Write_Field21_Name): Alphabetize the output.
3678 (Write_Field22_Name): Alphabetize the output.
3679 (Write_Field23_Name): Alphabetize the output. Remove the output of
3680 Associated_Final_Chain. Add output for Associated_Collection.
3681 (Write_Field24_Name): Alphabetize the output.
3682 (Write_Field25_Name): Add output for Finalizer.
3683 (Write_Field26_Name): Alphabetize the output.
3684 (Write_Field27_Name): Alphabetize the output.
3685 (Write_Field28_Name): Alphabetize the output.
3686 * einfo.ads: Add new field description for Associated_Collection and
3687 its uses in nodes.
3688 Remove Associated_Final_Chain and its uses in nodes.
3689 Remove Finalization_Chain_Entity and its uses in nodes.
3690 Add new field description for Finalizer and its uses in nodes.
3691 Add new synthesized attribute Is_Finalizer.
3692 Add new flag description for Is_Processed_Transient and its uses in
3693 nodes.
3694 Add new field description for Return_Flag and its uses in nodes.
3695 (Associated_Final_Chain): Removed along with its pragma Inline.
3696 (Associated_Collection): New routine and pragma Inline.
3697 (Finalization_Chain_Entity): Removed along with its pragma Inline.
3698 (Finalizer): New routine and pragma Inline.
3699 (Is_Finalizer): New routine and pragma Inline.
3700 (Is_Processed_Transient): New routine and pragma Inline.
3701 (Return_Flag): New routine and pragma Inline.
3702 (Set_Associated_Final_Chain): Removed along with its pragma Inline.
3703 (Set_Associated_Collection): New routine and pragma Inline.
3704 (Set_Finalization_Chain_Entity): Removed along with its pragma Inline.
3705 (Set_Finalizer): New routine and pragma Inline.
3706 (Set_Is_Processed_Transient): New routine and pragma Inline.
3707 (Set_Return_Flag): New routine and pragma Inline.
3708 * exp_aggr.adb: Alphabetize subprograms.
3709 (Build_Array_Aggr_Code): Remove formal Flist and its associated comment.
3710 (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their
3711 associated comments. Remove local variables External_Final_List and
3712 Attach.
3713 Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to
3714 Ancestor. Remove the retrieval of finalization lists. Update the call to
3715 Make_Adjust_Call.
3716 (Convert_Aggr_In_Allocator): Remove the retrieval of finalization
3717 lists. Update the call to Late_Expansion.
3718 (Convert_Aggr_In_Assignment): Update the call to Late_Expansion.
3719 (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion.
3720 (Gen_Assign): Remove the retrieval of the finalization list used to
3721 build the assignment. Update the calls to Make_Init_Call and
3722 Make_Adjust_Call.
3723 (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions.
3724 Remove the mechanism to determine attachment levels and finalization
3725 list retrieval. Remove the processing for coextensions.
3726 (Init_Controller): Removed. Controllers no longer exist.
3727 (Late_Expansion): Remove formals Flist and Obj along with their
3728 associated comments. Update the calls to Build_Record_Aggr_Code and
3729 Build_Array_Aggr_Code.
3730 * exp_ch13.adb (Expand_N_Free_Statement): New routine.
3731 (Expand_N_Freeze_Entity): Add special processing for finalizers which
3732 appear in entry bodies, protected subprograms and task bodies.
3733 * exp_ch13.ads (Expand_N_Free_Statement): New routine.
3734 * exp_ch3.adb (Add_Final_Chain): Removed.
3735 (Build_Array_Init_Proc): Alphabetize local variables.
3736 (Build_Assignment): Alphabetize local variables. Update the call to
3737 Maked_Adjust_Call.
3738 (Build_Class_Wide_Master): Rename local variables to better reflect
3739 their role.
3740 (Build_Discriminant_Assignments): Code reformatting.
3741 (Build_Init_Call_Thru): Code reformatting.
3742 (Build_Init_Procedure): Code reformatting. Generate a special version
3743 of Deep_Finalize which is capable of finalizing all initialized
3744 components and ignore the rest.
3745 (Build_Init_Statements): Rename local variables to better reflect their
3746 role.
3747 Reimplement the mechanism to include the creation and update of an index
3748 variable called a "counter". It is used as a bookmark for tracing
3749 initialized and non-initialized components.
3750 (Build_Initialization_Call): Remove local variable Controller_Typ.
3751 Alphabetize all local variables. Remove the initialization of the
3752 record controller and update the call to Make_Init_Call.
3753 (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent.
3754 New local variable Counter.
3755 (Constrain_Array): Alphabetize.
3756 (Expand_Freeze_Array_Type): Create a collection instead of a
3757 finalization list.
3758 (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive
3759 Finalize_Address which is used in conjunction with allocated controlled
3760 objects.
3761 (Expand_N_Object_Declaration): Remove the creation of a finalization
3762 list for anonymous access types. Update the calls to Make_Init_Call and
3763 Make_Adjust_Call.
3764 (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the
3765 retrieval of finalization lists. Remove the expansion of the record
3766 controller. Create TSS primitive Finalize_Address used in conjunction
3767 with controlled objects on the heap. Create finalization collections
3768 for access-to-controlled record components.
3769 (Expand_Record_Controller): Removed.
3770 (Freeze_Type): Remove the freezing of record controllers. Freezing of
3771 class-wide types now requires additional processing. Create
3772 finalization collections for access-to-controlled types.
3773 (Increment_Counter): New routine.
3774 (Make_Counter): New routine.
3775 (Make_Eq_If): Remove the mention of Name_uController.
3776 (Make_Predefined_Primitive_Specs): There is no longer need to skip
3777 types coming from System.Finalization_Root.
3778 (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles.
3779 (Predefined_Primitive_Bodies): There is no longer need to skip types
3780 coming from System.Finalization_Root.
3781 (Stream_Operation_OK): Do not generate stream routines for
3782 type Ada.Finalization.Heap_Management.Finalization_Collection.
3783 * exp_ch3.ads: Alphabetize subprograms.
3784 * exp_ch4.adb: Remove with and use clause for Sem_Ch8.
3785 Add with and use clause for Lib.
3786 (Complete_Coextension_Finalization): Removed.
3787 (Complete_Controlled_Allocation): New routine. Create a finalization
3788 collection for anonymous access-to-controlled types. Create a custom
3789 Allocate which interfaces with the back end and the machinery in
3790 Heap_Management.
3791 (Expand_Allocator_Expression): Add necessary calls to
3792 Complete_Controlled_Allocation. Remove the retrieval of finalization
3793 lists. Update the calls to Make_Adjust_Call. Generate a call to
3794 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
3795 the associated collection.
3796 (Expand_N_Allocator): Remove the processing for dynamic coextensions.
3797 Code clean up. Remove the retrieval of finalization lists and
3798 attachment levels.
3799 Update the call to Make_Init_Call. Generate a call to
3800 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
3801 the associated collection.
3802 (Get_Allocator_Final_List): Removed. Finalization lists are not
3803 available.
3804 (Suitable_Element): Remove the mention of Name_uController.
3805 * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp.
3806 (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of
3807 the left hand side, carry out the assignment and adjust the left hand
3808 side.
3809 * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed.
3810 (Add_Collection_Actual_To_Build_In_Place_Call): New routine.
3811 (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to
3812 BIP_Collection and BIPcollection.
3813 (Build_Heap_Allocator): New routine used to allocate the return object
3814 of a build-in-place function onto a collection.
3815 (Expand_Ctrl_Function_Call): Moved from Exp_Ch7.
3816 (Expand_Call): Do not replace direct calls to Deep routines with their
3817 aliases.
3818 (Expand_N_Extended_Return_Statement): Give all variables shorter names
3819 and update their occurrences. Add a special return flag to monitor the
3820 [ab]normal execution of the function. The flag is set right before the
3821 return statement.
3822 Rewrite the mechanism used to allocate a build-in-place return object
3823 on the heap or on a storage pool.
3824 (Is_Direct_Deep_Call): New routine.
3825 (Make_Build_In_Place_Call_In_Allocator): Add a collection to a
3826 build-in-place function call instead of a final list. Build a call to
3827 Set_Finalize_Address_Ptr to decorate the associated collection.
3828 (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in
3829 order to name the build-in-place function call's result for later
3830 finalization. Add a collection to a build-in-place function call
3831 instead of a final list.
3832 (Make_Build_In_Place_Call_In_Assignment): Add a collection to a
3833 build-in-place function call instead of a final list. Remove the code
3834 which moves one final list and transforms it into the actual in a
3835 nested build-in-place call.
3836 (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a
3837 build-in-place function call instead of a final list.
3838 (Move_Final_List): Removed.
3839 (Needs_BIP_Collection): New routine.
3840 (Needs_BIP_Final_List): Removed.
3841 * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in
3842 enumeration type BIP_Formal_Kind.
3843 Update the related comment.
3844 (Needs_BIP_Collection): New routine.
3845 (Needs_BIP_Final_List): Removed.
3846 * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt
3847 and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the
3848 majority of subprograms in this unit. Add Name_Finalize_Address to
3849 array Name_Of and TSS_Finalize_Address to array Deep_Name_Of.
3850 (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization
3851 statements for an array type.
3852 (Build_Adjust_Statements): Create the adjust statements for a record
3853 type.
3854 (Build_Cleanup_Statements): New routine. A procedure which given any
3855 construct containing asynchronous calls, references to _master, or is a
3856 task body, a task allocation or a protected body produces the necessary
3857 runtime calls to clean up these constructs.
3858 (Build_Exception_Handler): New routine.
3859 (Build_Final_List): Removed.
3860 (Build_Finalization_Collection): New routine. A core procedure which
3861 creates a collection to service heap allocated controlled objects
3862 associated with an access-to-controlled type.
3863 (Build_Finalize_Statements): Create the finalization statements for a
3864 record types.
3865 (Build_Finalizer): New routine. A core procedure which given any
3866 construct with declarations and/or statements detects all objects which
3867 need any type of clean up (controlled objects, protected objects) and
3868 generates all necessary code to clean up the said objects in the proper
3869 order.
3870 (Build_Finalizer_Call): New routine.
3871 (Build_Initialize_Statements): Create the initialization statements for
3872 an array type. The generated routine contains code to finalize partially
3873 initialized arrays.
3874 (Build_Object_Declarations): New routine.
3875 (Build_Raise_Statement): New routine.
3876 (Clean_Simple_Protected_Objects): Removed.
3877 (Controller_Component): Removed.
3878 (Enclosing_Function): New routine.
3879 (Expand_Cleanup_Actions): Create a finalizer for a construct which has
3880 either declarations or statements or both.
3881 (Expand_N_Package_Body): Create a finalizer for a non-generic package.
3882 (Expand_N_Package_Declaration): Create a finalizer for a non-generic
3883 package.
3884 (Find_Final_List): Removed.
3885 (Global_Flist_Ref): Removed.
3886 (In_Finalization_Root): Removed.
3887 (Insert_Actions_In_Scope_Around): Determine the range of the transient
3888 scope in terms of tree nodes. Process all transient variables within
3889 that range.
3890 (Make_Adjust_Call): Rewritten. There is no longer an attach call
3891 generated after the adjust.
3892 (Make_Attach_Call): Removed.
3893 (Make_Call): New routine.
3894 (Make_Clean): Removed.
3895 (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate
3896 build routines.
3897 (Make_Deep_Proc): Rewritten to generate the new profile signature used
3898 in Deep routines.
3899 (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate
3900 build routines.
3901 (Make_Final_Call): Modified to simply create a call to either
3902 Deep_Finalize or Finalize.
3903 (Make_Finalize_Address_Body): New routine.
3904 (Make_Finalize_Address_Stmts): New routine. A function which produces
3905 TSS primitive Finalize_Address used in conjunction with heap allocated
3906 controlled objects.
3907 (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM.
3908 (Make_Init_Call): Rewritten. There is no longer an attach call
3909 generated after initialization.
3910 (Make_Local_Deep_Finalize): New routine.
3911 (Make_Set_Finalize_Address_Ptr_Call): New routine.
3912 (Make_Transient_Block): Remove the finalization list retrieval and
3913 manipulation.
3914 (Needs_Finalization): Moved to Exp_Util.
3915 (Parent_Field_Type): New routine.
3916 (Preprocess_Components): New routine.
3917 (Process_Transient_Objects): New routine.
3918 (Wrap_HSS_In_Block): New routine.
3919 (Wrap_Transient_Declaration): Remove finalization list management and
3920 controller insertion.
3921 (Wrap_Transient_Expression): Code reformatting.
3922 (Wrap_Transient_Statement): Code reformatting.
3923 * exp_ch7.ads (Build_Final_List): Removed.
3924 (Build_Finalization_Collection): New routine.
3925 (Build_Raise_Statement): New routine.
3926 (Controller_Component): Removed.
3927 (Expand_Ctrl_Function_Call): Moved to Exp_Ch6.
3928 (Find_Final_List): Removed.
3929 (In_Finalization_Root): Removed.
3930 (Is_Simple_Protected_Type): Update related comment.
3931 (Make_Adjust_Call): New parameter profile and associated comments.
3932 (Make_Attach_Call): Removed.
3933 (Make_Final_Call): New parameter profile and associated comments.
3934 (Make_Finalize_Address_Body): New routine.
3935 (Make_Init_Call): New parameter profile and associated comments.
3936 (Make_Local_Deep_Finalize): New routine.
3937 (Make_Set_Finalize_Address_Ptr_Call): New routine.
3938 (Needs_Finalization): Moved to Exp_Util.
3939 * exp_ch9.adb (Add_Object_Pointer): Code reformatting.
3940 (Expand_N_Protected_Body): Remove the handling of finalization lists.
3941 (Find_Protection_Type): Moved to Exp_Util.
3942 * exp_disp.adb: Remove with and use clauses for Exp_Ch7.
3943 (Make_DT): Update sequence of dispatch table initialization. Remove the
3944 initialization of field RC_Offset. Add initialization of field Needs_
3945 Finalization.
3946 * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting.
3947 Reimplement how an object is first finalized, then deallocated.
3948 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
3949 Code reformatting.
3950 * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address.
3951 Register TSS_Finalize_Address with type TSS_Names.
3952 * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core
3953 procedure provides the interface between an allocation / deallocation
3954 and the support machinery in Ada.Finalization.Heap_Management.
3955 (Find_Init_Call): Code reformatting.
3956 (Find_Init_Call_In_List): Code reformatting.
3957 (Find_Protection_Type): Moved from Exp_Ch9.
3958 (Find_Prim_Op): Reimplement to add preference of recovered primitive.
3959 (Has_Controlled_Coextensions): Removed.
3960 (Has_Controlled_Objects): New routine.
3961 (In_Library_Level_Package_Body): New routine.
3962 (Insert_Action_After): New routine.
3963 (Is_Finalizable_Transient): New routine. This predicate determines
3964 whether an object declaration is one of the many variants of controlled
3965 transients.
3966 (Is_Null_Access_BIP_Func_Call): New routine.
3967 (Is_Non_BIP_Func_Call): New routine.
3968 (Is_Related_To_Func_Return): New routine.
3969 (Needs_Finalization): Moved from Exp_Ch7.
3970 * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine.
3971 (Find_Protection_Type): Moved from Exp_Ch9.
3972 (Has_Controlled_Coextensions): Removed.
3973 (Has_Controlled_Objects): New routine.
3974 (In_Library_Level_Package_Body): New routine.
3975 (Insert_Action_After): New routine.
3976 (Is_Finalizable_Transient): New routine.
3977 (Is_Null_Access_BIP_Func_Call): New routine.
3978 (Is_Non_BIP_Func_Call): New routine.
3979 (Is_Related_To_Func_Return): New routine.
3980 (Needs_Finalization): Moved from Exp_ch7.
3981 * expander.adb (Expand): Add a case for N_Free_Statement.
3982 * freeze.adb (Freeze_All): Replace the generation of a finalization
3983 list with a collection for access-to-controlled types.
3984 (Freeze_Entity): Code reformatting.
3985 (Freeze_Record_Type): Remove the freezing of a record controller
3986 component.
3987 (Freeze_Subprogram): Code reformatting.
3988 * inline.adb (Cleanup_Scopes): Remove the reset of the scope
3989 finalization list.
3990 * lib-writ.adb (Write_Unit_Information): Output "PF" when a package
3991 has a library-level finalizer.
3992 * lib-writ.ads: Add "PF" to the sequence of unit attributes.
3993 * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed.
3994 * Makefile.rtl: Remove a-filico and s-finimp from the list of object
3995 files. Add a-fihema to the list of object files.
3996 * par-ch4.adb:
3997 Alphabetize the associations in type Is_Parameterless_Attribute.
3998 * rtsfind.ads: Ada.Finalization_List.Controller and
3999 System.Finalization_Implementation are no longer a GNAT unit.
4000 Update the range of type Ada_Finalization_Child. Remove the following
4001 recoverable entities:
4002
4003 RE_Attach_To_Final_List
4004 RE_Deep_Tag_Attach
4005 RE_Finalize_List
4006 RE_Finalize_One
4007 RE_Finalizable_Ptr_Ptr
4008 RE_Global_Final_List
4009 RE_Limited_Record_Controller
4010 RE_List_Controller
4011 RE_Move_Final_List
4012 RE_Record_Controller
4013 RE_Simple_List_Controller
4014
4015 Add the following recoverable entities:
4016
4017 RE_Add_Offset_To_Address
4018 RE_Allocate
4019 RE_Base_Pool
4020 RE_Deallocate
4021 RE_Exception_Identity
4022 RE_Finalization_Collection
4023 RE_Finalization_Collection_Ptr
4024 RE_Needs_Finalization
4025 RE_Save_Library_Occurrence
4026 RE_Set_Finalize_Address_Ptr
4027 RE_Set_Storage_Pool_Ptr
4028 RE_Storage_Count
4029 * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of
4030 Name_uController.
4031 * sem_aux.adb (First_Discriminant): Remove mention of Name_uController.
4032 (First_Stored_Discriminant): Remove the mention of Name_uController.
4033 * sem_aux.ads: Comment reformatting.
4034 * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery
4035 to redecorate an already existing class-wide type.
4036 (Decorate_Tagged_Type): New parameter profile and associated comment.
4037 Create a "shadow class-wide type" for a shadow entity.
4038 * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting
4039 of the final chain along with the associated comment.
4040 * sem_ch3.adb (Access_Type_Declaration): Add new local variable
4041 Full_Desig and set it to the full view of the designated type.
4042 Initialize the finalization collection to empty.
4043 (Build_Derived_Record_Type): Alphabetize local variables. Code
4044 reformatting.
4045 (Collect_Fixed_Components): Remove the mention of Name_uController.
4046 (Create_Constrained_Components): Remove the mention of Name_uController.
4047 (Make_Class_Wide_Type): Add specialized code to redecorate an existing
4048 class-wide type of a shadow entity.
4049 (Process_Full_View): Update the machinery which marks type
4050 Limited_Controlled's entity as limited.
4051 * sem_ch4.adb (Analyze_One_Call): Code reformatting.
4052 * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization
4053 list, instead make a collection build-in-place formal.
4054 * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of
4055 a designated type in order to establish a match between the renaming
4056 and the renamed entity.
4057 (Find_Selected_Component): Add guard to prevent spurious exceptions
4058 from being raised on .NET/JVM.
4059 * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address
4060 to the list of primitive that need special processing. Update arrays
4061 C_Names and D_Names.
4062 (Replace_Types): Handle class-wide types.
4063 * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a
4064 different parameter profile, look at the first formal.
4065 * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and
4066 use clauses for Exp_Util.
4067 * sem_res.adb: Remove with and use clauses for Elists.
4068 (Propagate_Coextensions): Removed.
4069 (Resolve_Allocator): Do not propagate the list of coextensions from one
4070 allocator to another.
4071 * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable
4072 Deaccessed_T to Desig_Typ.
4073 (Enter_Name): Remove the mention of Name_uController.
4074 (Gather_Components): Remove the mention of Name_uController.
4075 (Incomplete_Or_Private_View): New routine.
4076 (Is_Coextension_Root): Removed.
4077 (Is_Fully_Initialized_Type): Remove the mention of Name_uController.
4078 * sem_util.ads (Incomplete_Or_Private_View): New routine.
4079 (Is_Coextension_Root): Removed.
4080 * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion.
4081 Controlled types are now derived from a null tagged record. Remove
4082 types Finalizable_Ptr, Finalizable and Empty_Root_Controlled.
4083 * sinfo.adb (Coextensions): Removed.
4084 (Set_Coextensions): Removed.
4085 * sinfo.ads: Remove Coextensions from the explanation of node fields
4086 and its uses in nodes.
4087 Update the field usage of N_Allocator.
4088 (Coextensions): Removed along with its pragma Inline.
4089 (Set_Coextensions): Removed along with its pragma Inline.
4090 * snames.ads-tmpl: Remove names
4091
4092 Name_uClean
4093 Name_uController
4094 Name_uFinal_List
4095 Name_uLocal_Final_List
4096 Name_Finalization_Root
4097 Name_Next
4098 Name_Prev
4099
4100 Add names
4101
4102 Name_uFinalizer
4103 Name_Finalize_Address
4104 * s-pooglo.adb (Allocate): Add overriding indicator.
4105 (Deallocate): Add overriding indicator.
4106 (Storage_Size): Add overriding indicator.
4107 * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather
4108 than Finalize_Global_List.
4109 (Null_Finalize_Global_List): Removed.
4110 (Save_Library_Occurrence): New routine.
4111 * s-soflin.ads: Remove variable Finalize_Global_List along with its
4112 initialization. Add variable Finalize_Library_Objects along with its
4113 pragma Export. Add variables Library_Exception and
4114 Library_Exception_Set along with their pragma Export.
4115 (Null_Finalize_Global_List): Removed.
4116 (Save_Library_Occurrence): New routine.
4117 * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects
4118 rather than Finalize_Global_List.
4119 * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field
4120 of the constructed node.
4121
4122 2011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4123
4124 * link.c: Include "auto-host.h" before system headers.
4125
4126 2011-08-03 Vincent Celier <celier@adacore.com>
4127
4128 * make.adb (Gnatmake): Add to table Library_Projs only library projects
4129 that are not extended. Do not check if a library project that is
4130 extended should be regenerated. Do not add to table Library_Paths the
4131 libraries that are in extended projects. Link only with libraries that
4132 are in libray projects that are not extended.
4133 * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library
4134 for a library project that is extended.
4135
4136 2011-08-03 Gary Dismukes <dismukes@adacore.com>
4137
4138 * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip
4139 conforming subprogram renamings that appear to be completions if they
4140 are not fully conformant.
4141 Such renamings are homographs but not completions.
4142 * sem_type.adb (Disambiguate): Handle disambiguation of overloaded
4143 names in a subprogram renaming that appears in an instance.
4144
4145 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4146
4147 * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but
4148 not immutably limited, build actual subtype from expression to provide
4149 proper bounds to caller.
4150
4151 2011-08-03 Gary Dismukes <dismukes@adacore.com>
4152
4153 * sem_ch8.adb: Minor comment correction.
4154
4155 2011-08-03 Thomas Quinot <quinot@adacore.com>
4156
4157 * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when
4158 returning a limited array, use an extended return statement.
4159
4160 2011-08-03 Vincent Celier <celier@adacore.com>
4161
4162 * make.adb (Initialize): If --subdirs= is used, but no project file is
4163 specified, attempt to create the specify subdir if it does not already
4164 exist and use it as the object directory as if -D had been specified.
4165
4166 2011-08-03 Arnaud Charlet <charlet@adacore.com>
4167
4168 * s-tpopsp-vms.adb: New file.
4169 * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS.
4170 * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS.
4171
4172 2011-08-03 Emmanuel Briot <briot@adacore.com>
4173
4174 * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new
4175 package.
4176
4177 2011-08-03 Yannick Moy <moy@adacore.com>
4178
4179 * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type
4180 * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA
4181 * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to
4182 detect that an array has static bounds.
4183
4184 2011-08-03 Thomas Quinot <quinot@adacore.com>
4185
4186 * exp_dist.adb: Minor reformatting.
4187
4188 2011-08-03 Arnaud Charlet <charlet@adacore.com>
4189
4190 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb
4191 (ATCB_Key): Removed, not always used.
4192
4193 2011-08-03 Emmanuel Briot <briot@adacore.com>
4194
4195 * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads,
4196 clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove
4197 most remaining global variables.
4198
4199 2011-08-03 Robert Dewar <dewar@adacore.com>
4200
4201 * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads,
4202 prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor
4203 reformatting.
4204
4205 2011-08-03 Javier Miranda <miranda@adacore.com>
4206
4207 * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals
4208 that must be passed by copy in VM targets.
4209
4210 2011-08-03 Emmanuel Briot <briot@adacore.com>
4211
4212 * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which
4213 duplicates a similar htable now in the project tree.
4214
4215 2011-08-03 Claire Dross <dross@adacore.com>
4216
4217 * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
4218 a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element,
4219 Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend,
4220 Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap,
4221 Splice, First, First_Element, Last, Last_Element, Next, Previous, Find,
4222 Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity,
4223 Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure
4224 update.
4225
4226 2011-08-03 Arnaud Charlet <charlet@adacore.com>
4227
4228 * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb
4229 (ATCB_Key): Removed, not always used.
4230 * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from
4231 s-taprop-posix.adb.
4232 * s-tpopsp-tls.adb: New file.
4233 * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on
4234 x86/x64/ia64/powerpc/sparc Linux.
4235
4236 2011-08-03 Arnaud Charlet <charlet@adacore.com>
4237
4238 * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True.
4239 * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports.
4240
4241 2011-08-03 Thomas Quinot <quinot@adacore.com>
4242
4243 * rtsfind.ads, exp_dist.adb, exp_dist.ads
4244 (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call):
4245 Fix type selection for mapping integer types to PolyORB types.
4246
4247 2011-08-03 Bob Duff <duff@adacore.com>
4248
4249 * sem_ch7.adb: Minor comment clarification.
4250
4251 2011-08-03 Bob Duff <duff@adacore.com>
4252
4253 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get
4254 an error analyzing a choice, skip further processing. Further
4255 processing could cause a crash or cascade errors.
4256
4257 2011-08-03 Emmanuel Briot <briot@adacore.com>
4258
4259 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
4260 prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
4261 prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
4262 prj-env.ads (Shared_Project_Tree_Data): new type
4263 An aggregate project and its aggregated trees need to share the common
4264 data structures used for lists of strings, packages,... This makes the
4265 code simpler since otherwise we have to pass the root tree (also used
4266 for the configuration file data) in addition to the current project
4267 tree. This also avoids ambiguities as to which tree should be used.
4268 And finally this saves a bit of memory.
4269 (For_Every_Project_Imported): new parameter Tree.
4270 Since aggregated projects are using a different tree, we need to let
4271 the caller know which tree to use to manipulate the returned project.
4272
4273 2011-08-03 Robert Dewar <dewar@adacore.com>
4274
4275 * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb,
4276 prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads,
4277 lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb,
4278 prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting.
4279
4280 2011-08-03 Javier Miranda <miranda@adacore.com>
4281
4282 * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads:
4283 Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util.
4284
4285 2011-08-03 Bob Duff <duff@adacore.com>
4286
4287 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on
4288 the Base_Type.
4289
4290 2011-08-03 Joel Brobecker <brobecker@adacore.com brobecker>
4291
4292 * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads,
4293 g-sehash.ads: Fix typo. Update header.
4294
4295 2011-08-03 Thomas Quinot <quinot@adacore.com>
4296
4297 * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place
4298 expansion.
4299
4300 2011-08-03 Gary Dismukes <dismukes@adacore.com>
4301
4302 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider
4303 prefixes of private types along with records, since the selector may be
4304 a discriminant.
4305 * sem_res.adb (Resolve_Selected_Component): Consider prefixes of
4306 private types along with records, since the selector may be a
4307 discriminant.
4308
4309 2011-08-03 Emmanuel Briot <briot@adacore.com>
4310
4311 * prj-pp.adb (Pretty_Print): Remove trailing blank line.
4312
4313 2011-08-03 Javier Miranda <miranda@adacore.com>
4314
4315 * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of
4316 Tagged_Type_Expansion.
4317
4318 2011-08-03 Yannick Moy <moy@adacore.com>
4319
4320 * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK
4321 violation when the argument of concatenation is the name of a
4322 constant.
4323
4324 2011-08-03 Emmanuel Briot <briot@adacore.com>
4325
4326 * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads,
4327 prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms
4328 (Process_Declarative_Items): new parameter Child_Env.
4329
4330 2011-08-03 Yannick Moy <moy@adacore.com>
4331
4332 * alfa.ads: Update format of ALFA section in ALI file in order to
4333 add a mapping from bodies to specs when both are present.
4334 (ALFA_Scope_Record): Add components for spec file/scope.
4335 * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when
4336 present.
4337 * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been
4338 collected, fill in the spec information when relevant.
4339 * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when
4340 present.
4341
4342 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
4343
4344 * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing
4345 code unit to decide whether to add internally generated subprograms.
4346
4347 2011-08-03 Javier Miranda <miranda@adacore.com>
4348
4349 * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram.
4350 * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must
4351 be handled by copy in VM targets.
4352
4353 2011-08-03 Emmanuel Briot <briot@adacore.com>
4354
4355 * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share
4356 code with Makeutl.Get_Switches.
4357 * prj-tree.adb: Update comment.
4358
4359 2011-08-03 Thomas Quinot <quinot@adacore.com>
4360
4361 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote
4362 subprogram with a limited formal that does not support external
4363 streaming.
4364
4365 2011-08-03 Yannick Moy <moy@adacore.com>
4366
4367 * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of
4368 continuation line
4369 * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are
4370 not from current unit in two phases, because it is not possible to
4371 change the table while iterating over its content.
4372 * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity
4373
4374 2011-08-03 Sergey Rybin <rybin@adacore.com>
4375
4376 * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option
4377 * gnat_ugn.texi: Update description of complexity metrics (gnatmetric)
4378
4379 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4380
4381 * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate
4382 and the component type is composite, this is ambiguous for predefined
4383 concatenation, but if the node is not overloaded and the entity is a use
4384 -defined function its profile can be used to resolve that aggregate.
4385
4386 2011-08-03 Robert Dewar <dewar@adacore.com>
4387
4388 * exp_ch4.adb: Minor code cleanup.
4389
4390 2011-08-03 Thomas Quinot <quinot@adacore.com>
4391
4392 * exp_dist.adb: Do not generate distribution stubs if serious errors
4393 have been diagnosed.
4394
4395 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4396
4397 * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of
4398 the first formal of a primitive operation, go to the base type to
4399 handle properly an access to a derived type with constrained
4400 discriminants.
4401 * sem_type.adb (Disambiguate): an immediately visible operator hides a
4402 user-defined function that is only use-visible.
4403
4404 2011-08-03 Robert Dewar <dewar@adacore.com>
4405
4406 * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb,
4407 make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb,
4408 fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb,
4409 prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads,
4410 sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb,
4411 prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb,
4412 prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads,
4413 alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting
4414
4415 2011-08-03 Robert Dewar <dewar@adacore.com>
4416
4417 * repinfo.adb (List_Mechanism): Add handling of
4418 Convention_Ada_Pass_By_XXX.
4419 * sem_mech.adb (Set_Mechanism): Ditto.
4420 * sem_prag.adb (Process_Convention): Add entries for
4421 Convention_Ada_Pass_By_XXX.
4422 * snames.adb-tmpl, snames.ads-tmpl: Ditto.
4423
4424 2011-08-03 Pascal Obry <obry@adacore.com>
4425
4426 * makeutl.adb: Minor reformatting.
4427
4428 2011-08-03 Vincent Celier <celier@adacore.com>
4429
4430 * fname-uf.adb
4431 (Get_File_Name) If the file cannot be found when there are no config
4432 pragmas file and May_Fail is True, return No_File instead of the file
4433 name, to be consistent.
4434
4435 2011-08-03 Pascal Obry <obry@adacore.com>
4436
4437 * adaint.c (__gnat_is_executable_file_attr): Avoid access
4438 to null pointer.
4439
4440 2011-08-03 Javier Miranda <miranda@adacore.com>
4441
4442 * sem_ch13.adb
4443 (Same_Representation): In VM targets the representation of arrays with
4444 aliased components differs from arrays with non-aliased components.
4445
4446 2011-08-03 Emmanuel Briot <briot@adacore.com>
4447
4448 * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do
4449 not systematically lower case attribute indexes that contain no "."
4450 Fix definition of several Naming attributes, which take
4451 a unit name as index and therefore should be case insensitive.
4452 Minor refactoring (reduce length of variable names).
4453
4454 2011-08-03 Emmanuel Briot <briot@adacore.com>
4455
4456 * makeutl.adb, makeutl.ads (Get_Switches): new subprogram.
4457
4458 2011-08-03 Emmanuel Briot <briot@adacore.com>
4459
4460 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
4461 prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb,
4462 prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
4463 prj-tree.ads (Prj.Tree.Environment): new type.
4464
4465 2011-08-03 Emmanuel Briot <briot@adacore.com>
4466
4467 * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb,
4468 prj-tree.adb, prj-tree.ads (Environment): new type.
4469
4470 2011-08-03 Emmanuel Briot <briot@adacore.com>
4471
4472 * prj-tree.ads: Remove unused variable.
4473
4474 2011-08-03 Yannick Moy <moy@adacore.com>
4475
4476 * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for
4477 issuing messages related to SPARK restriction violation.
4478
4479 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4480
4481 * sem_ch6.adb: guard against error nodes in return statements.
4482
4483 2011-08-03 Arnaud Charlet <charlet@adacore.com>
4484
4485 * errout.adb (Error_Msg_Internal): the main unit has not been read yet,
4486 a warning can only appear on a configuration file, so emit warning
4487 without further checks.
4488
4489 2011-08-03 Arnaud Charlet <charlet@adacore.com>
4490
4491 * s-interr.ads: add overriding keyword.
4492
4493 2011-08-03 Geert Bosch <bosch@adacore.com>
4494
4495 * exp_attr.adb: Fix minor typo.
4496
4497 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4498
4499 * par-ch4.adb: improve error recovery.
4500
4501 2011-08-03 Emmanuel Briot <briot@adacore.com>
4502
4503 * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb,
4504 prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize
4505 to Errout_Handling.
4506
4507 2011-08-03 Emmanuel Briot <briot@adacore.com>
4508
4509 * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use
4510 "external" as an attribute name in aggregate projects.
4511
4512 2011-08-03 Jose Ruiz <ruiz@adacore.com>
4513
4514 * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU
4515 uses CPU numbers starting 1, while VxWorks uses CPU numbers starting
4516 from 0, so we need to adjust.
4517
4518 2011-08-03 Emmanuel Briot <briot@adacore.com>
4519
4520 * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb,
4521 prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type.
4522
4523 2011-08-03 Yannick Moy <moy@adacore.com>
4524
4525 * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK
4526 restriction on overloaded entity if the entity is not an operator.
4527
4528 2011-08-03 Yannick Moy <moy@adacore.com>
4529
4530 * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb,
4531 restrict.ads: Rename remaining Check_Formal_Restriction* into
4532 Check_SPARK_Restriction*.
4533
4534 2011-08-03 Emmanuel Briot <briot@adacore.com>
4535
4536 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb,
4537 prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its
4538 qualifier.
4539 (Project_Empty): removed
4540 (Empty_Project): new parameter Qualifier
4541 This is used to have fields specific to aggregate projects, cleaner
4542 New field to store the list of aggregated projects.
4543 (Check_Aggregate_Project): removed
4544 (Process_Aggregated_Projects, Free): new subprograms.
4545
4546 2011-08-03 Olivier Hainque <hainque@adacore.com>
4547
4548 * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well.
4549
4550 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4551
4552 * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an
4553 explicit dereference of an unconstrained type, create a constrained
4554 subtype for it, as is done for function calls that return an
4555 unconstrained type.
4556
4557 2011-08-03 Thomas Quinot <quinot@adacore.com>
4558
4559 * g-pehage.adb (Finalize): Avoid possible double-free.
4560
4561 2011-08-03 Steve Baird <baird@adacore.com>
4562
4563 * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand
4564 Elab_Spec/Body attrs in CodePeer_Mode.
4565
4566 2011-08-03 Javier Miranda <miranda@adacore.com>
4567
4568 * exp_aggr.adb (Flatten): Convert to positional form aggregates whose
4569 low bound is not known at compile time but they have no others choice.
4570 Done because in this case the bounds can be obtained directly from the
4571 aggregate.
4572
4573 2011-08-03 Ed Falis <falis@adacore.com>
4574
4575 * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs
4576 on VxWorks SMP. Remove unusable constant ANY_CPU.
4577
4578 2011-08-03 Emmanuel Briot <briot@adacore.com>
4579
4580 * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb,
4581 clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb,
4582 prj-env.ads (Prj.Env.Initialize_Default_Project_Path,
4583 Prj.Env.Initialize_Empty): new subprograms
4584 (Get_Env, Find_Project): remove parameter Target_Name.
4585
4586 2011-08-03 Gary Dismukes <dismukes@adacore.com>
4587
4588 * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal
4589 as a condition for the delayed call to Derived_Subprograms done for the
4590 case of the rewriting of a derived type that constrains the
4591 discriminants of its parent type.
4592 Avoids redundant subprogram derivations for private subtype derivations.
4593
4594 2011-08-03 Javier Miranda <miranda@adacore.com>
4595
4596 * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of
4597 Build_Record_Aggr_Code.
4598 (Build_Record_Aggr_Code): Add missing support to initialize hidden
4599 discriminants in extension aggregates.
4600
4601 2011-08-03 Emmanuel Briot <briot@adacore.com>
4602
4603 * prj-pp.adb (Print): also output project qualifiers, since in
4604 particular "aggregate" is mandatory in an aggregate project.
4605
4606 2011-08-03 Emmanuel Briot <briot@adacore.com>
4607
4608 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb:
4609 (Debug_Output): new function.
4610
4611 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
4612
4613 * gnat_ugn.texi: Document -Wstack-usage.
4614 * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes.
4615
4616 2011-08-03 Thomas Quinot <quinot@adacore.com>
4617
4618 * sem_prag.adb Issue an error (not a warning) when a C++ type does not
4619 have keyword LIMITED.
4620
4621 2011-08-03 Yannick Moy <moy@adacore.com>
4622
4623 * alfa.adb, alfa.ads, alfa_test.adb: New files.
4624 * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA)
4625 (Scan_ALI): do not issue a fatal error if parsing known lines after Xref
4626 section (does not happen in compiler, only if code directly calls
4627 Scan_ALI).
4628 * get_alfa.adb, get_alfa.ads: New files.
4629 * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if
4630 needed.
4631 * lib-xref-alfa.adb: New file.
4632 * lib-xref.adb, lib-xref.ads
4633 (Xref_Entry): redefine information needed in cross-references for ALFA.
4634 Push ALFA treatments in separated local package.
4635 (Enclosing_Subpragram_Or_Package): treat specially subprogram
4636 identifiers. Return entity of package body instead of spec. Return
4637 Empty for a scope with no location.
4638 (Generate_Reference): adapt to new components for ALFA information.
4639 Remove the need for D references on definitions.
4640 (Is_Local_Reference): moved to ALFA local package
4641 (Output_References): extract subfunction as Extract_Source_Name
4642 (Output_Local_References): remove procedure, replaced by filtering of
4643 cross-references in package ALFA and printing in Put_ALFA.
4644 (Write_Entity_Name): remove procedure
4645 * lib.adb, lib.ads (Extract_Source_Name): extract here function to
4646 print exact name of entity as it appears in source file
4647 (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA
4648 * put_alfa.adb, put_alfa.ads: New files.
4649 * xref_lib.adb (Search_Xref): protect read of cross-references against
4650 reading other sections of the ALI file, in gnatxref
4651 (Search): protect read of cross-references against reading other
4652 sections of the ALI file, in gnatfind.
4653 * gcc-interface/Make-lang.in: Update dependencies.
4654
4655 2011-08-03 Thomas Quinot <quinot@adacore.com>
4656
4657 * sem_ch3.adb: Minor reformatting.
4658
4659 2011-08-03 Jose Ruiz <ruiz@adacore.com>
4660
4661 * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of
4662 raising an exception.
4663
4664 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4665
4666 * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer
4667 type, always use 1 as the lower bound or string, even if lower bound of
4668 context is not static, to handle properly null strings in a non-static
4669 context.
4670
4671 2011-08-03 Bob Duff <duff@adacore.com>
4672
4673 * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is
4674 always legal on the right-hand side of an assignment statement; there
4675 is always an applicable index constraint in this case. Therefore, the
4676 check for Pkind = N_Assignment_Statement is now unconditional -- it
4677 doesn't depend on whether Is_Constrained (Typ).
4678
4679 2011-08-03 Robert Dewar <dewar@adacore.com>
4680
4681 * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting.
4682
4683 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4684
4685 * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference
4686 for an itype created within a generic unit.
4687
4688 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
4689
4690 * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline
4691 suppresses all inlining.
4692
4693 2011-08-03 Robert Dewar <dewar@adacore.com>
4694
4695 * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb,
4696 exp_aggr.adb: Minor reformatting.
4697
4698 2011-08-03 Thomas Quinot <quinot@adacore.com>
4699
4700 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of
4701 tagged assignment when discriminant checks are suppressed. This is
4702 useless and extremely costly in terms of static stack usage.
4703
4704 2011-08-03 Bob Duff <duff@adacore.com>
4705
4706 * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances
4707 of generics, because this leads to the wrong entity in the wrong scope,
4708 causing (e.g.) pragma Export_Procedure to get an error if the entity is
4709 an instance.
4710 (Process_Interface_Name): Follow Alias for instances of generics, to
4711 correct for the above change.
4712
4713 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4714
4715 * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value
4716 is an integer literal it is always safe to replace the reference. In
4717 addition, if the reference appears in the generated code for an object
4718 declaration it is necessary to copy because otherwise the reference
4719 might be to the uninitilized value of the discriminant of the object
4720 itself.
4721
4722 2011-08-03 Pascal Obry <obry@adacore.com>
4723
4724 * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no
4725 ACL used, in this case we want to check for ending .exe, not .exe
4726 anywhere in the path.
4727
4728 2011-08-03 Sergey Rybin <rybin@adacore.com>
4729
4730 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
4731 the tree structure (semantic decoration of references to record
4732 discriminants).
4733
4734 2011-08-03 Gary Dismukes <dismukes@adacore.com>
4735
4736 * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete
4737 choices of a named array aggregate, bail out when any choices are
4738 marked as Errors_Posted.
4739
4740 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4741
4742 * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope
4743 in which entity is frozen, to handle properly loop variables in
4744 iterators.
4745
4746 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4747
4748 * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the
4749 subtype is not static, compute the upper bound using attributes, to
4750 handle properly index types that are not integer types.
4751
4752 2011-08-03 Bob Duff <duff@adacore.com>
4753
4754 * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs.
4755 Update copyright notice.
4756
4757 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4758
4759 * sem_ch3.adb (Build_Discriminant_Constraints): Only use
4760 Original_Discriminant if within an instance.
4761 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
4762
4763 2011-08-03 Thomas Quinot <quinot@adacore.com>
4764
4765 * einfo.ads: Minor reformatting.
4766
4767 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4768
4769 * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a
4770 composite type with an unfrozen subcomponent, in the profile of a
4771 primitive operation.
4772
4773 2011-08-03 Robert Dewar <dewar@adacore.com>
4774
4775 * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
4776
4777 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4778
4779 * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an
4780 unconstrained type with discriminants is initialized with an aggregate,
4781 use the constrained subtype of the aggregate as the type of the object,
4782 because it is immutable, and this allows the back-end to generate no
4783 code for the object declaration.
4784
4785 2011-08-03 Robert Dewar <dewar@adacore.com>
4786
4787 * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where
4788 comparison operand is variable, and turns out to be zero or negative.
4789
4790 2011-08-03 Javier Miranda <miranda@adacore.com>
4791
4792 * exp_intr.adb
4793 (Expand_Dispatching_Constructor_Call): Disable expansion of
4794 code required for native targets. Done to avoid generating
4795 references to unavailable runtime entities in VM targets.
4796 * exp_ch3.adb
4797 (Expand_N_Object_Declaration): Add missing support to handle
4798 the explicit initialization of class-wide interface objects.
4799 Fix documentation.
4800
4801 2011-08-03 Matthew Heaney <heaney@adacore.com>
4802
4803 * a-cobove.adb (Merge): Move source onto target, instead of using Assign
4804
4805 2011-08-03 Matthew Heaney <heaney@adacore.com>
4806
4807 * a-cbdlli.adb (Splice): move source items from first to last
4808
4809 2011-08-03 Yannick Moy <moy@adacore.com>
4810
4811 * sem_util.ads: comment added.
4812
4813 2011-08-03 Javier Miranda <miranda@adacore.com>
4814
4815 * exp_aggr.adb
4816 (Expand_Record_Aggregate): In VM targets disable the expansion into
4817 assignments of aggregates whose type is not known at compile time.
4818
4819 2011-08-03 Ed Schonberg <schonberg@adacore.com>
4820
4821 * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for
4822 protected entries and task entries, to build the proper renaming
4823 declaration for entry formals, used in debugging.
4824 * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry
4825 parameters in the same way.
4826
4827 2011-08-02 Robert Dewar <dewar@adacore.com>
4828
4829 * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb,
4830 sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or
4831 code reorganization.
4832
4833 2011-08-02 Robert Dewar <dewar@adacore.com>
4834
4835 * debug.adb: Debug flag d.P to suppress length comparison optimization
4836 * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize
4837 comparison of Length by comparing First/Last instead.
4838
4839 2011-08-02 Matthew Heaney <heaney@adacore.com>
4840
4841 * a-cobove.ads: Code clean up.
4842
4843 2011-08-02 Vincent Celier <celier@adacore.com>
4844
4845 * adaint.c (file_names_case_sensitive_cache): New static int.
4846 (__gnat_get_file_names_case_sensitive): Cache the return value in
4847 file_names_case_sensitive_cache at the first invocation, to avoid
4848 multiple calls to getenv.
4849
4850 2011-08-02 Bob Duff <duff@adacore.com>
4851
4852 * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1.
4853
4854 2011-08-02 Yannick Moy <moy@adacore.com>
4855
4856 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads,
4857 sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb,
4858 sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to
4859 indicate that we are in a precondition or postcondition. This is used in
4860 Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to
4861 decide whether to flag the spec or body of the current subprogram as
4862 not in ALFA.
4863
4864 2011-08-02 Fabien Chouteau <chouteau@adacore.com>
4865
4866 * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package
4867 list.
4868 * a-extiin.ads: New file.
4869
4870 2011-08-02 Bob Duff <duff@adacore.com>
4871
4872 * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename
4873 now raises Name_Error instead of Use_Error in certain cases. The other
4874 parts of this AI were already implemented properly.
4875
4876 2011-08-02 Vincent Celier <celier@adacore.com>
4877
4878 * link.c: Only import "auto-host.h" when building the gnattools.
4879
4880 2011-08-02 Yannick Moy <moy@adacore.com>
4881
4882 * sem_util.adb: Inter-unit inlining does not work for a subprogram
4883 which calls a local subprogram, so extract subprogram
4884 from Mark_Non_ALFA_Subprogram_Body.
4885
4886 2011-08-02 Javier Miranda <miranda@adacore.com>
4887
4888 * exp_ch9.adb
4889 (Extract_Dispatching_Call): If the type of the dispatching object is an
4890 access type then return an explicit dereference in the Object out-mode
4891 parameter.
4892
4893 2011-08-02 Gary Dismukes <dismukes@adacore.com>
4894
4895 * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range
4896 compatibility checks for all indexes of an array subtype, not just the
4897 first. Reset Has_Dynamic_Range_Check on the subtype before each
4898 potential check to ensure that Insert_Range_Checks will not elide any
4899 of the dynamic checks.
4900
4901 2011-08-02 Yannick Moy <moy@adacore.com>
4902
4903 * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize
4904 SPARK restriction at parsing time.
4905 * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE
4906 directive only if the SPARK restriction is set for this unit.
4907
4908 2011-08-02 Yannick Moy <moy@adacore.com>
4909
4910 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
4911 sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
4912 sem_ch11.adb: Protect call to Current_Subprogram which might be costly
4913 when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
4914 Mark_Non_ALFA_Subprogram_Body.
4915 Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
4916 inlined.
4917
4918 2011-08-02 Yannick Moy <moy@adacore.com>
4919
4920 * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which
4921 might be costly.
4922
4923 2011-08-02 Robert Dewar <dewar@adacore.com>
4924
4925 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
4926 exp_ch3.adb: Minor reformatting.
4927
4928 2011-08-02 Emmanuel Briot <briot@adacore.com>
4929
4930 * adaint.c (__gnat_locate_exec_on_path): only returns executable
4931 files, not any regular file.
4932 (__gnat_locate_file_with_predicate): new subprogram.
4933
4934 2011-08-02 Yannick Moy <moy@adacore.com>
4935
4936 * sinfo.adb, sinfo.ads: Restrict the use of flags
4937 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
4938 nodes, plus N_Subtype_Declaration for the 2nd one.
4939
4940 2011-08-02 Sergey Rybin <rybin@adacore.com>
4941
4942 * gnat_rm.texi: Ramification of pragma Eliminate documentation
4943 - fix bugs in the description of Source_Trace;
4944 - get rid of UNIT_NAME;
4945
4946 2011-08-02 Javier Miranda <miranda@adacore.com>
4947
4948 * exp_ch9.adb
4949 (Build_Dispatching_Requeue): Adding support for VM targets
4950 since we cannot directly reference the Tag entity.
4951 * exp_sel.adb (Build_K): Adding support for VM targets.
4952 (Build_S_Assignment): Adding support for VM targets.
4953 * exp_disp.adb
4954 (Default_Prim_Op_Position): In VM targets do not restrict availability
4955 of predefined interface primitives to compiling in Ada 2005 mode.
4956 (Is_Predefined_Interface_Primitive): In VM targets this service is not
4957 restricted to compiling in Ada 2005 mode.
4958 (Make_VM_TSD): Generate code that declares and initializes the OSD
4959 record. Needed to support dispatching calls through synchronized
4960 interfaces.
4961 * exp_ch3.adb
4962 (Make_Predefined_Primitive_Specs): Enable generation of predefined
4963 primitives associated with synchronized interfaces.
4964 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
4965 primitives associated with synchronized interfaces.
4966
4967 2011-08-02 Yannick Moy <moy@adacore.com>
4968
4969 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
4970 statements hidden in SPARK if preceded by the HIDE directive
4971 (Parse_Exception_Handlers): mark each exception handler in a sequence of
4972 exception handlers as hidden in SPARK if preceded by the HIDE directive
4973 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
4974 if starting with the HIDE directive
4975 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
4976 starting with the HIDE directive; mark the declarations in a private
4977 part as hidden in SPARK if the private part starts with the HIDE
4978 directive
4979 * restrict.adb, restrict.ads
4980 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
4981 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
4982 argument node belongs to a part which is hidden in SPARK
4983 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
4984 parts in SPARK; protect the possibly costly call to
4985 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
4986 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
4987 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
4988 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
4989 Tok_SPARK_Hide.
4990 (Scan): recognize special comment starting with '#' and followed by
4991 SPARK keyword "hide" as a HIDE directive.
4992
4993 2011-08-02 Yannick Moy <moy@adacore.com>
4994
4995 * types.ads, erroutc.ads: Minor reformatting.
4996
4997 2011-08-02 Vincent Celier <celier@adacore.com>
4998
4999 * link.c: Add response file support for cross platforms.
5000
5001 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5002
5003 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
5004 in an association, set parent field of copy before partial analysis.
5005 * sem_res.adb (Resolve_Slice): create reference to itype only when
5006 expansion is enabled.
5007
5008 2011-08-02 Yannick Moy <moy@adacore.com>
5009
5010 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
5011 for new flag denoting which subprogram bodies are in ALFA
5012 * restrict.adb, sem_ch7.adb: Update comment
5013 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
5014 sem_ch9.adb, sem_res.adb: Add calls to
5015 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
5016 * sem_ch6.adb (Analyze_Function_Return): add calls to
5017 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
5018 middle of the body, and extended return.
5019 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
5020 False when missing return.
5021 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
5022 to True for subprograms whose spec is in ALFA. Remove later on the flag
5023 on the entity used for a subprogram body when there exists a separate
5024 declaration.
5025 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
5026 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
5027 False, otherwise do nothing.
5028
5029 2011-08-02 Robert Dewar <dewar@adacore.com>
5030
5031 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
5032
5033 2011-08-02 Yannick Moy <moy@adacore.com>
5034
5035 * sem_ch4.ads: minor formatting.
5036
5037 2011-08-02 Yannick Moy <moy@adacore.com>
5038
5039 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
5040 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
5041 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
5042 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
5043 opt.ads: cleanup of SPARK mode
5044
5045 2011-08-02 Yannick Moy <moy@adacore.com>
5046
5047 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
5048 types.
5049 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
5050 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
5051 * sem_ch3.adb
5052 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
5053 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
5054 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
5055 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
5056 types.
5057 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
5058 non-static range.
5059 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
5060 functions whose return type is not in ALFA.
5061 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
5062 specifications.
5063 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
5064 parameter's type is not in ALFA.
5065 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
5066 types are in ALFA.
5067
5068 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5069
5070 * sem_ch6 (Analyze_Expression_Function): treat the function as
5071 Inline_Always, and introduce a subprogram declaration for it when it is
5072 not a completion.
5073 * inline.adb (Add_Inlined_Body): recognize bodies that come from
5074 expression functions, so that the back-end can determine whether they
5075 can in fact be inlined.
5076 * sem_util.adb (Is_Expression_Function): predicate to determine whether
5077 a function body comes from an expression function.
5078
5079 2011-08-02 Gary Dismukes <dismukes@adacore.com>
5080
5081 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
5082 null exclusions to test Can_Never_Be_Null on the anonymous access types
5083 of the formals rather than testing the formals themselves. Exclude this
5084 check in cases where the Old_Formal is marked as a controlling formal,
5085 to avoid issuing spurious errors for bodies completing dispatching
5086 operations (due to the flag not getting set on controlling access
5087 formals in body specs).
5088 (Find_Corresponding_Spec): When checking full and subtype conformance of
5089 subprogram bodies in instances, pass Designated and E in that order, for
5090 consistency with the expected order of the formals (New_Id followed by
5091 Old_Id).
5092
5093 2011-08-02 Robert Dewar <dewar@adacore.com>
5094
5095 * sem_ch8.adb: Minor reformatting.
5096
5097 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5098
5099 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
5100 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
5101 primitive operations of class-wide actuals.
5102
5103 2011-08-02 Javier Miranda <miranda@adacore.com>
5104
5105 * exp_atag.ads, exp_atag.adb
5106 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
5107 since its value is implicitly passed in argument Typ.
5108 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
5109 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
5110 Build_Common_Dispatching_Select_Statements.
5111
5112 2011-08-02 Robert Dewar <dewar@adacore.com>
5113
5114 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
5115 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
5116 Minor reformatting.
5117
5118 2011-08-02 Robert Dewar <dewar@adacore.com>
5119
5120 * sem_res.adb: Minor reformatting.
5121 * sem_prag.adb: Minor reformatting.
5122
5123 2011-08-02 Javier Miranda <miranda@adacore.com>
5124
5125 * exp_atag.adb, exp_atags.ads
5126 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
5127 by the tagged type Entity. Required to use this routine in the VM
5128 targets since we do not have available the Tag entity in the VM
5129 platforms.
5130 * exp_ch6.adb
5131 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
5132 Ada.Tags has not been previously loaded.
5133 * exp_ch7.adb
5134 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
5135 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
5136 * sem_aux.adb
5137 (Enclosing_Dynamic_Scope): Add missing support to handle the full
5138 view of enclosing scopes. Required to handle enclosing scopes that
5139 are synchronized types whose full view is a task type.
5140 * exp_disp.adb
5141 (Build_VM_TSDs): Minor code improvement to avoid generating and
5142 analyzing lists with empty nodes.
5143 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
5144 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
5145 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
5146 (Make_Disp_Timed_Select_Body): Add support for VM targets.
5147 (Make_Select_Specific_Data_Table): Add support for VM targets.
5148 (Make_VM_TSD): Generate code to initialize the SSD structure of
5149 the TSD.
5150
5151 2011-08-02 Yannick Moy <moy@adacore.com>
5152
5153 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
5154 cross-references section in ALI.
5155 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
5156 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
5157 Sub).
5158 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
5159 subprogram or package entity of a node
5160 (Is_Local_Reference_Type): new function returns True for references
5161 selected in local cross-references.
5162 (Lt): function extracted from Lt in Output_References
5163 (Write_Entity_Name): function extracted from Output_References
5164 (Generate_Definition): generate reference with type 'D' for definition
5165 of objects (object declaration and parameter specification), with
5166 appropriate locations and units, for use in local cross-references.
5167 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
5168 references of type 'I' for initialization in object definition.
5169 (Output_References): move part of function Lt and procedure
5170 Write_Entity_Name outside of the body. Ignore references of types 'D'
5171 and 'I' introduced for local cross-references.
5172 (Output_Local_References): new procedure to output the local
5173 cross-references sections.
5174 (Lref_Entity_Status): new array defining whether an entity is a local
5175 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
5176 with 'I' type when initialization expression is present.
5177 * get_scos.adb, get_scos.ads: Correct comments and typos
5178
5179 2011-08-02 Javier Miranda <miranda@adacore.com>
5180
5181 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
5182 the JVM target.
5183 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
5184 the JVM target.
5185 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
5186 TSD support.
5187
5188 2011-08-02 Vincent Celier <celier@adacore.com>
5189
5190 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
5191 (No_Space_Img): New function
5192 (Find_Excluded_Sources): When reading from a file, record the file name
5193 and the line number for each excluded source.
5194 (Mark_Excluded_Sources): When reporting an error, if the excluded
5195 sources were read from a file, include file name and line number in
5196 the error message.
5197
5198 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5199
5200 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
5201
5202 2011-08-02 Robert Dewar <dewar@adacore.com>
5203
5204 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
5205
5206 2011-08-02 Javier Miranda <miranda@adacore.com>
5207
5208 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
5209 generation of TSDs to the DOTNET compiler.
5210 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
5211 generation of TSDs to the DOTNET compiler.
5212
5213 2011-08-02 Javier Miranda <miranda@adacore.com>
5214
5215 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
5216 record of all the tagged types declared inside library level package
5217 declarations, library level package bodies or library level subprograms.
5218 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
5219 associated with a given tagged type.
5220 (Build_VM_TSDs): New subprogram.
5221 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
5222 compilation units that are subprograms.
5223 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
5224 compilation units that are package bodies.
5225 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
5226 units that are a package declaration or a package instantiation.
5227 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
5228 reorganization to improve the error generated by the frontend when the
5229 function Ada.Tags.Secondary_Tag is not available.
5230 * rtsfind.ads (RE_Register_TSD): New runtime entity.
5231 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
5232
5233 2011-08-02 Javier Miranda <miranda@adacore.com>
5234
5235 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
5236
5237 2011-08-02 Robert Dewar <dewar@adacore.com>
5238
5239 * s-imenne.ads: Minor reformatting.
5240
5241 2011-08-02 Robert Dewar <dewar@adacore.com>
5242
5243 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
5244 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
5245 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
5246
5247 2011-08-02 Robert Dewar <dewar@adacore.com>
5248
5249 * einfo.ads (Materialize_Entity): Document this is only for renamings
5250 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
5251 required debug information in the case where we transform the object
5252 declaration into a renaming declaration.
5253 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
5254 object
5255 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
5256 Materialize_Entity.
5257
5258 2011-08-02 Robert Dewar <dewar@adacore.com>
5259
5260 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
5261 Suppress_Init_Procs.
5262 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
5263 Suppress_Initialization/Initialization_Suppressed.
5264 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
5265 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
5266 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
5267 * sem_prag.adb: New processing for pragma Suppress_Initialization.
5268
5269 2011-08-02 Robert Dewar <dewar@adacore.com>
5270
5271 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
5272 Minor reformatting.
5273
5274 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5275
5276 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
5277 only have inheritable classwide pre/postconditions.
5278
5279 2011-08-02 Javier Miranda <miranda@adacore.com>
5280
5281 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
5282 * rtsfind.ads (RE_Check_TSD): New runtime entity.
5283 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
5284 checks if the external tag of a type is the same as the external tag
5285 of some other declaration.
5286
5287 2011-08-02 Thomas Quinot <quinot@adacore.com>
5288
5289 * s-taskin.ads: Minor reformatting.
5290
5291 2011-08-02 Emmanuel Briot <briot@adacore.com>
5292
5293 * g-comlin.adb (Display_Help): swap the order in which it prints the
5294 short help and the general usage.
5295
5296 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5297
5298 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
5299 the aspect declarations and attach them to the generic copy for
5300 subsequent analysis.
5301 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
5302 declarations of the generic tree to the new subprogram declarations.
5303 * sem_attr.adb (Check_Precondition_Postcondition): recognize
5304 conditions that apply to a subprogram instance.
5305
5306 2011-08-02 Robert Dewar <dewar@adacore.com>
5307
5308 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
5309
5310 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5311
5312 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
5313 private type with a tagged full view is not derived in the immediate
5314 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
5315
5316 2011-08-02 Robert Dewar <dewar@adacore.com>
5317
5318 * exp_ch4.adb: Minor reformatting.
5319
5320 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5321
5322 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
5323 Ada2012 iterator, the loop will be rewritten during expansion into a
5324 while loop with a cursor and an element declaration. Do not analyze the
5325 body in this case, because if the container is for indefinite types the
5326 actual subtype of the elements will only be determined when the cursor
5327 declaration is analyzed.
5328
5329 2011-08-02 Arnaud Charlet <charlet@adacore.com>
5330
5331 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
5332 size/alignment related attributes in CodePeer_Mode.
5333
5334 2011-08-02 Gary Dismukes <dismukes@adacore.com>
5335
5336 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
5337 Prepend_Element, since this can result in the operation getting the
5338 wrong slot in the full type's dispatch table if the full type has
5339 inherited operations. The incomplete type's operation will get added
5340 to the proper position in the full type's primitives
5341 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
5342 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
5343 dispatching operations, since there are cases where nonprimitive
5344 subprograms can get added to the list of incomplete dependents (such
5345 as subprograms in nested packages).
5346 * sem_ch6.adb (Process_Formals): First, remove test for being in a
5347 private part when determining whether to add a primitive with a
5348 parameter of a tagged incomplete type to the Private_Dependents list.
5349 Such primitives can also occur in the visible part, and should not have
5350 been excluded from being private dependents.
5351 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
5352 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
5353 list of a Taft-amendment incomplete type is a primitive before issuing
5354 an error that the full type must appear in the same unit. There are
5355 cases where nonprimitives can be in the list (such as subprograms in
5356 nested packages).
5357 * sem_disp.adb (Derives_From): Use correct condition for checking that
5358 a formal's type is derived from the type of the corresponding formal in
5359 the parent subprogram (the condition was completely wrong). Add
5360 checking that was missing for controlling result types being derived
5361 from the result type of the parent operation.
5362
5363 2011-08-02 Yannick Moy <moy@adacore.com>
5364
5365 * errout.adb (First_Node): minor renaming
5366 * restrict.adb (Check_Formal_Restriction): put restriction warning on
5367 first node.
5368
5369 2011-08-02 Yannick Moy <moy@adacore.com>
5370
5371 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
5372 before accessing operands.
5373 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
5374 decide whether an initialization expression respects SPARK rules, as
5375 the plain node is the expanded one. This allows for more valid warnings
5376 to be issued.
5377 * gnat_rm.texi: Minor update.
5378
5379 2011-08-02 Arnaud Charlet <charlet@adacore.com>
5380
5381 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
5382 previous change.
5383
5384 2011-08-02 Robert Dewar <dewar@adacore.com>
5385
5386 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
5387
5388 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
5389
5390 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
5391 loop statements and the element renaming declaration with a block when
5392 the element type is controlled.
5393
5394 2011-08-02 Yannick Moy <moy@adacore.com>
5395
5396 * sinfo.ads: Minor formatting.
5397
5398 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5399
5400 * sem_aggr.adb (Add_Association): if the association has a box and no
5401 expression, use the Sloc of the aggregate itself for the new
5402 association.
5403 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
5404 the Original_Node.
5405
5406 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
5407
5408 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
5409 When a container is provided via a function call, generate a renaming
5410 of the function result. This avoids the creation of a transient scope
5411 and the premature finalization of the container.
5412 * exp_ch7.adb (Is_Container_Cursor): Removed.
5413 (Wrap_Transient_Declaration): Remove the supression of the finalization
5414 of the list controller when the declaration denotes a container cursor,
5415 it is not needed.
5416
5417 2011-08-02 Yannick Moy <moy@adacore.com>
5418
5419 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
5420 node is from source, instead of the original node being from source.
5421 * sem_aggr.adb
5422 (Resolve_Array_Aggregate): refine the check for a static expression, to
5423 recognize also static ranges
5424 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
5425 Array_Type_Declaration): postpone the test for the type being a subtype
5426 mark after the type has been resolved, so that component-selection and
5427 expanded-name are discriminated.
5428 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
5429 to distinguish the case of an iteration scheme, so that an error is
5430 issed on a non-static range in SPARK except in an iteration scheme.
5431 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
5432 In_Iter_Schm = True.
5433 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
5434 user-defined operators so that they are allowed in renaming
5435 * sem_ch8.adb
5436 (Find_Selected_Component): refine the check for prefixing of operators
5437 so that they are allowed in renaming. Move the checks for restrictions
5438 on selector name after analysis discriminated between
5439 component-selection and expanded-name.
5440 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
5441 concatenation argument of string type if it is static.
5442 * sem_util.adb, sem_util.ads
5443 (Check_Later_Vs_Basic_Declarations): add a new function
5444 Is_Later_Declarative_Item to decice which declarations are allowed as
5445 later items, in the two different modes Ada 83 and SPARK. In the SPARK
5446 mode, add that renamings are considered as later items.
5447 (Enclosing_Package): new function to return the enclosing package
5448 (Enter_Name): correct the rule for homonyms in SPARK
5449 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
5450 from source (result of expansion) to avoid issuing wrong warnings.
5451
5452 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5453
5454 * errout.adb: On anything but an expression First_Node returns its
5455 argument.
5456
5457 2011-08-02 Pascal Obry <obry@adacore.com>
5458
5459 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
5460
5461 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
5462
5463 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
5464 Set the associated loop as the related expression of internally
5465 generated cursors.
5466 * exp_ch7.adb (Is_Container_Cursor): New routine.
5467 (Wrap_Transient_Declaration): Supress the finalization of the list
5468 controller when the declaration denotes a container cursor.
5469
5470 2011-08-02 Yannick Moy <moy@adacore.com>
5471
5472 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
5473 command line now.
5474 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
5475 expression is a simple expression. This check cannot be performed in
5476 the semantics, so just drop it.
5477 (P_Index_Or_Discriminant_Constraint): move check that the index or
5478 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
5479 semantics. Other cases were previously checked in the semantics.
5480 * par-ch4.adb (P_Name): move checks that a selector name is not
5481 character literal or an operator symbol to Find_Selected_Component in
5482 the semantics
5483 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
5484 declarations are not placed after later declarations in a separate
5485 procedure in Sem_Util (possibly not the best choice?), to be used both
5486 during parsing, for Ada 83 mode, and during semantic analysis, for
5487 SPARK mode.
5488 * par-endh.adb (Check_End): move check that end label is not missing
5489 to Process_End_Label in the semantics
5490 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
5491 the special case for SPARK restriction
5492 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
5493 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
5494 parameter Force to issue the error message even on internal node (used
5495 for generated end label). Call Check_Restriction to check when an error
5496 must be issued. In SPARK mode, issue an error message even if the
5497 restriction is not set.
5498 (Check_Restriction): new procedure with an additional out parameter to
5499 inform the caller that a message has been issued
5500 * sem_aggr.adb: Minor modification of message
5501 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
5502 instead of issuing an error message directly
5503 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
5504 declarations are not placed after later declarations, by calling
5505 Check_Later_Vs_Basic_Declarations
5506 (Analyze_Subtype_Declaration): move here the check that an index or
5507 discriminant constraint must be a subtype mark. Change the check that
5508 a subtype of String must start at one so that it works on subtype marks.
5509 * sem_ch4.adb (Analyze_Call): move here the check that a named
5510 association cannot follow a positional one in a call
5511 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
5512 instead of issuing an error message directly
5513 * sem_ch8.adb (Find_Selected_Component): move here the check that a
5514 selector name is not a character literal or an operator symbol. Move
5515 here the check that the prefix of an expanded name cannot be a
5516 subprogram or a loop statement.
5517 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
5518 procedure called from parsing and semantics to check that basic
5519 declarations are not placed after later declarations
5520 (Process_End_Label): move here the check that end label is not missing
5521
5522 2011-08-02 Arnaud Charlet <charlet@adacore.com>
5523
5524 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
5525 representation clause in codepeer mode, since it confuses CodePeer and
5526 does not bring useful info.
5527
5528 2011-08-02 Ed Falis <falis@adacore.com>
5529
5530 * init.c: initialize fp hw on MILS.
5531
5532 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5533
5534 * errout.adb (First_Node): for bodies, return the node itself (small
5535 optimization). For other nodes, do not check source_unit if the node
5536 comes from Standard.
5537
5538 2011-08-02 Robert Dewar <dewar@adacore.com>
5539
5540 * exp_ch3.adb: Minor comment additions.
5541 * sem_ch13.adb: Minor reformatting.
5542
5543 2011-08-02 Pascal Obry <obry@adacore.com>
5544
5545 * make.adb, makeutl.adb: Removes some superfluous directory separator.
5546
5547 2011-08-02 Robert Dewar <dewar@adacore.com>
5548
5549 * sem_attr.adb: Minor reformatting.
5550
5551 2011-08-02 Robert Dewar <dewar@adacore.com>
5552
5553 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
5554 (Has_Default_Component_Value): Removed
5555 * einfo.ads Comment updates
5556 (Has_Default_Aspect): Replaces Has_Default_Value
5557 (Has_Default_Component_Value): Removed
5558 * exp_ch13.adb
5559 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
5560 * exp_ch3.adb
5561 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
5562 (Get_Simple_Init_Val): Handle Default_Value aspect
5563 (Needs_Simple_Initialization): Handle Default_Value aspect
5564 * exp_ch3.ads: Needs_Simple_Initialization
5565 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
5566 * par-prag.adb (Pragma_Default[_Component]Value) Removed
5567 * sem_ch13.adb
5568 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
5569 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
5570 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
5571
5572 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5573
5574 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
5575 package containing iteration primitives.
5576 exp_ch5.adb (Expand_Iterator_Loop): ditto.
5577
5578 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5579
5580 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
5581 "of", pre-analyze expression in case it is a function call with
5582 finalization actions that must be placed ahead of the loop.
5583 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
5584 on an Ada2012 iterator, insert them ahead of the rewritten loop.
5585
5586 2011-08-02 Geert Bosch <bosch@adacore.com>
5587
5588 * cstand.adb (Create_Float_Types): Only consider C's long double for
5589 Long_Long_Float, in addition to double.
5590
5591 2011-08-02 Robert Dewar <dewar@adacore.com>
5592
5593 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
5594 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
5595 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
5596 Minor reformatting.
5597
5598 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5599
5600 * sem_attr.adb: handle properly 'Result when it is a prefix of an
5601 indexed component.
5602
5603 2011-08-02 Javier Miranda <miranda@adacore.com>
5604
5605 * einfo.ads, einfo.adb
5606 (Original_Access_Type): Move this attribute to Node26 since there was
5607 an undocumented use of Node21 in E_Access_Subprogram_Type entities
5608 which causes conflicts and breaks the generation of the .NET compiler.
5609 (Interface_Name): Add missing documentation on JGNAT only uses of
5610 this attribute.
5611
5612 2011-08-02 Geert Bosch <bosch@adacore.com>
5613
5614 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
5615 (Find_Back_End_Float_Type): Likewise
5616 (Create_Back_End_Float_Types): Likewise
5617 (Create_Float_Types): Likewise
5618 (Register_Float_Type): Likewise
5619 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
5620 Nlist and split out type selection in new local Find_Base_Type function.
5621 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
5622 Nlist
5623 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
5624
5625 2011-08-02 Robert Dewar <dewar@adacore.com>
5626
5627 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
5628 alpha order).
5629 * opt.ads: Minor comment change.
5630 * sem_ch12.adb: Minor code reorganization.
5631
5632 2011-08-02 Gary Dismukes <dismukes@adacore.com>
5633
5634 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
5635 subtype's list of rep items to the list on the full subtype in the case
5636 where the lists are the same.
5637
5638 2011-08-02 Geert Bosch <bosch@adacore.com>
5639
5640 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
5641 using the one from System.Strings, which also deallocates all strings.
5642
5643 2011-08-02 Geert Bosch <bosch@adacore.com>
5644
5645 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
5646 function.
5647 * gcc-interface/Make-lang.in: Update dependencies.
5648
5649 2011-08-02 Olivier Hainque <hainque@adacore.com>
5650
5651 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
5652 end_locus.
5653
5654 2011-08-02 Javier Miranda <miranda@adacore.com>
5655
5656 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
5657 associated with anonymous access to subprograms.
5658
5659 2011-08-02 Geert Bosch <bosch@adacore.com>
5660
5661 * opt.ads
5662 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
5663 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
5664 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
5665 (Add_Symbol_Definition): Move to switch-c.adb
5666 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
5667 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
5668 (Add_Symbol_Definition): Move to switch-c.adb.
5669 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
5670 * sem_warn.adb
5671 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
5672 Move to warnsw.adb.
5673 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
5674 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
5675 Move to warnsw.adb.
5676 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
5677 (Add_Symbol_Definition): Moved from Prepcomp.
5678 * switch-c.ads: Update copyright notice. Use String_List instead of
5679 Argument_List, removing dependency on System.OS_Lib.
5680
5681 2011-08-02 Yannick Moy <moy@adacore.com>
5682
5683 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
5684 mode on initialization expression which does not respect SPARK
5685 restrictions.
5686 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
5687 if the tree referenced by its argument represents an initialization
5688 expression in SPARK, suitable for initializing an object in an object
5689 declaration.
5690
5691 2011-08-02 Javier Miranda <miranda@adacore.com>
5692
5693 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
5694 internally generated access to subprogram with its associated protected
5695 subprogram type.
5696 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
5697
5698 2011-08-02 Geert Bosch <bosch@adacore.com>
5699
5700 * cstand.adb (Register_Float_Type): Print information about type to
5701 register, if the Debug_Flag_Dot_B is set.
5702 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
5703 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
5704 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
5705 with a requested precision of more than Max_Digits digits and no more
5706 than Max_Base_Digits digits, if a range specification is present and the
5707 Predefined_Float_Types list has a suitable type to derive from.
5708 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
5709 case of type completion with pragma Import
5710 * sem_prag.adb
5711 (Process_Import_Predefined_Type): Processing to complete a type
5712 with pragma Import. Currently supports floating point types only.
5713 (Set_Convention_From_Pragma): Do nothing without underlying type.
5714 (Process_Convention): Guard against absence of underlying type,
5715 which may happen when importing incomplete types.
5716 (Process_Import_Or_Interface): Handle case of importing predefined
5717 types. Tweak error message.
5718
5719 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
5720
5721 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
5722 functions to previous change. Reorganize code slightly.
5723
5724 2011-08-02 Geert Bosch <bosch@adacore.com>
5725
5726 * back_end.ads (Register_Type_Proc): New call back procedure type for
5727 allowing the back end to provide information about available types.
5728 (Register_Back_End_Types): New procedure to register back end types.
5729 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
5730 available types.
5731 * cstand.adb (Back_End_Float_Types): New list for floating point types
5732 supported by the back end.
5733 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
5734 (Copy_Float_Type): New procedure to make new copies of predefined types.
5735 (Register_Float_Type): New call back procedure to populate the BEFT list
5736 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
5737 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
5738 (Create_Float_Types): New procedure to create entities for floating
5739 point types predefined in Standard, and put these and any remaining
5740 BEFTs on the Predefined_Float_Types list.
5741 * stand.ads (Predefined_Float_Types): New list for predefined floating
5742 point types that do not have declarations in package Standard.
5743
5744 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
5745
5746 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
5747 entity node for the unit containing the parameter.
5748 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
5749 (Add_Inlined_Subprogram): Likewise.
5750 * gcc-interface/Make-lang.in: Update dependencies.
5751
5752 2011-08-02 Thomas Quinot <quinot@adacore.com>
5753
5754 * s-stusta.adb (Print): Make sure Pos is always initialized to a
5755 suitable value.
5756
5757 2011-08-02 Geert Bosch <bosch@adacore.com>
5758
5759 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
5760
5761 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
5762
5763 * sem_type.adb (Covers): Move trivial case to the top and reuse the
5764 computed value of Base_Type.
5765
5766 2011-08-02 Yannick Moy <moy@adacore.com>
5767
5768 * restrict.adb (Check_Restriction): issue an error for any use of
5769 class-wide, even if the No_Dispatch restriction is not set.
5770 * sem_aggr.adb: Correct typos in comments and messages in formal mode
5771 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
5772 when completing a private extension, the type named in the private part
5773 is not the same as that named in the visible part.
5774 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
5775 of an inherited primitive operations of a tagged type or type extension
5776 that returns the tagged type.
5777 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
5778 function which returns True for an implicit operation inherited by the
5779 derived type declaration for the argument type.
5780 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
5781 order.
5782
5783 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5784
5785 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
5786 Process_Bounds, to perform analysis with expansion of a range or an
5787 expression that is the iteration scheme for a loop.
5788 (Analyze_Iterator_Specification): If domain of iteration is given by a
5789 function call with a controlled result, as is the case if call returns
5790 a predefined container, ensure that finalization actions are properly
5791 generated.
5792 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
5793
5794 2011-08-02 Javier Miranda <miranda@adacore.com>
5795
5796 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
5797 * gcc-interface/Make-lang.in: Update dependencies.
5798
5799 2011-08-02 Javier Miranda <miranda@adacore.com>
5800
5801 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
5802 determine if the analysis is performed using N or Original_Node (N).
5803 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
5804 functionality of routine Is_Variable avoids code duplication.
5805 * checks.adb (Determine_Range): Handle temporaries generated by
5806 Remove_Side_Effects.
5807
5808 2011-08-02 Javier Miranda <miranda@adacore.com>
5809
5810 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
5811 expansion of the condition. Required since the previous analysis was
5812 done with expansion disabled (see Resolve_Quantified_Expression) and
5813 hence checks were not inserted and record comparisons have not been
5814 expanded.
5815
5816 2011-08-02 Ed Falis <falis@adacore.com>
5817
5818 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
5819 Update header.
5820
5821 2011-08-02 Bob Duff <duff@adacore.com>
5822
5823 * opt.ads: Minor comment fix.
5824
5825 2011-08-02 Bob Duff <duff@adacore.com>
5826
5827 * sem_ch12.adb (Analyze_Package_Instantiation,
5828 Analyze_Subprogram_Instantiation): Turn off style checking while
5829 analyzing an instance. Whatever style checks that apply to the generic
5830 unit should apply, so it makes no sense to apply them in an instance.
5831 This was causing trouble when compiling an instance of a runtime
5832 unit that violates the -gnatyO switch.
5833 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
5834 one of the two case statements, causing spurious errors.
5835
5836 2011-08-02 Robert Dewar <dewar@adacore.com>
5837
5838 * uname.adb: Minor reformatting.
5839 * gnatcmd.adb: Minor reformatting.
5840 * exp_attr.adb: Minor reformatting.
5841
5842 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5843
5844 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
5845 No_Dispatching_Calls, do not look for the Assign primitive, because
5846 predefined primitives are not created in this case.
5847
5848 2011-08-02 Bob Duff <duff@adacore.com>
5849
5850 * stylesw.ads: Minor comment fixes.
5851
5852 2011-08-02 Robert Dewar <dewar@adacore.com>
5853
5854 * freeze.adb (Add_To_Result): New procedure.
5855
5856 2011-08-02 Jose Ruiz <ruiz@adacore.com>
5857
5858 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
5859 time, if the specific run-time routines for handling streams of strings
5860 are not available, use the default mechanism.
5861
5862 2011-08-02 Arnaud Charlet <charlet@adacore.com>
5863
5864 * s-regpat.ads: Fix typo.
5865
5866 2011-08-02 Vincent Celier <celier@adacore.com>
5867
5868 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
5869 not null, call it to create the in memory config project file without
5870 parsing an existing default config project file.
5871
5872 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
5873
5874 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
5875
5876 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5877
5878 * sem_elim.adb: an abstract subprogram does not need an eliminate
5879 pragma for its descendant to be eliminable.
5880
5881 2011-08-02 Ed Falis <falis@adacore.com>
5882
5883 * init.c: revert to handling before previous checkin for VxWorks
5884 * s-intman-vxworks.adb: delete unnecessary declarations related to
5885 using Ada interrupt facilities for handling signals.
5886 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
5887 * s-intman-vxworks.ads: Import __gnat_install_handler as
5888 Initialize_Interrupts.
5889 * s-taprop-vxworks.adb: Delete Signal_Mask.
5890 (Abort_Handler): change construction of mask to unblock exception
5891 signals.
5892
5893 2011-08-02 Jerome Guitton <guitton@adacore.com>
5894
5895 * a-except-2005.adb (Raise_From_Signal_Handler): Call
5896 Debug_Raise_Exception before propagation starts.
5897
5898 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
5899
5900 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
5901 to Restriction_Check_Required.
5902 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
5903 * sem_res.adb (Resolve_Call): Likewise.
5904 * sem_attr.adb (Check_Stream_Attribute): Likewise.
5905
5906 2011-08-02 Bob Duff <duff@adacore.com>
5907
5908 * stylesw.ads: Update comment.
5909 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
5910 * errout.ads: Remove obsolete comment.
5911
5912 2011-08-02 Javier Miranda <miranda@adacore.com>
5913
5914 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
5915 (Set_Is_Safe_To_Reevaluate): new procedure.
5916 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
5917 assignment is allowed on safe-to-reevaluate variables.
5918 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
5919 temporary created to remove side effects in expressions that use
5920 the secondary stack as safe-to-reevaluate.
5921 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
5922 variables that are not true constants.
5923
5924 2011-08-02 Robert Dewar <dewar@adacore.com>
5925
5926 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
5927 sem_res.adb, sem_ch6.adb: Minor reformatting.
5928
5929 2011-08-02 Jerome Guitton <guitton@adacore.com>
5930
5931 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
5932
5933 2011-08-02 Ed Schonberg <schonberg@adacore.com>
5934
5935 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
5936 not set Overridden_Operation if subprogram is an initialization
5937 procedure.
5938
5939 2011-08-02 Yannick Moy <moy@adacore.com>
5940
5941 * par-ch6.adb: Correct obsolete name in comments
5942 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
5943 which takes two message arguments (existing function takes one), with
5944 second message used for continuation.
5945 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
5946 block statements that originate from a source block statement, not
5947 generated block statements
5948 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
5949 symmetry with procedure case
5950 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
5951 function to issue an error in formal mode if a package specification
5952 contains more than one tagged type or type extension.
5953 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
5954 parameters matching formals of tagged types are objects (or ancestor
5955 type conversions of objects), not general expressions. Issue an error
5956 on view conversions that are not involving ancestor conversion of an
5957 extended type.
5958 (Resolve_Type_Conversion): in formal mode, issue an error on the
5959 operand of an ancestor type conversion which is not an object
5960 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
5961 procedure so that it works also for actuals of function calls
5962 (Is_Actual_Tagged_Parameter): new function which determines if its
5963 argument is an actual parameter of a formal of tagged type in a
5964 subprogram call
5965 (Is_SPARK_Object_Reference): new function which determines if the tree
5966 referenced by its argument represents an object in SPARK
5967
5968 2011-08-02 Robert Dewar <dewar@adacore.com>
5969
5970 * sem_ch3.adb: Minor reformatting
5971 Minor comment addition
5972 Minor error msg text change
5973
5974 2011-08-02 Javier Miranda <miranda@adacore.com>
5975
5976 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
5977 function. Used to be more precise when we generate a variable plus one
5978 assignment to remove side effects in the evaluation of the Bound
5979 expressions.
5980 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
5981 of the bound expression to force its re-analysis and thus expand the
5982 associated transient scope (if required). Code cleanup replacing the
5983 previous code that declared the constant entity by an invocation to
5984 routine Force_Evaluation which centralizes this work in the frontend.
5985
5986 2011-08-02 Robert Dewar <dewar@adacore.com>
5987
5988 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
5989 (Base_Type): Now uses improved Is_Base_Type function
5990 * einfo.ads (Base_Type): Inline this function
5991
5992 2011-08-02 Robert Dewar <dewar@adacore.com>
5993
5994 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
5995 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
5996
5997 2011-08-02 Arnaud Charlet <charlet@adacore.com>
5998
5999 * gcc-interface/Make-lang.in: Update dependencies.
6000 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
6001 targets.
6002
6003 2011-08-02 Yannick Moy <moy@adacore.com>
6004
6005 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
6006 non-simple expression used in delta constraint
6007 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
6008 index constraint which is not a subtype mark
6009 * par.adb: With and use Restrict
6010 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
6011 mode on component type which is not a subtype mark and default
6012 expression on component
6013 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
6014 of string which does not have a lower index bound equal to 1
6015 (Array_Type_Declaration): issue an error in formal mode on index or
6016 component type which is not a subtype mark, and on aliased keyword on
6017 component
6018 (Derived_Type_Declaration): issue an error in formal mode on interface,
6019 limited or abstract type
6020 (Record_Type_Declaration): issue an error in formal mode on interface
6021 (Record_Type_Definition): issue an error in formal mode on tagged types
6022 and type extensions not declared in the specification of a library unit
6023 package; on null non-tagged record; on variant part
6024
6025 2011-08-02 Vincent Celier <celier@adacore.com>
6026
6027 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
6028 not declared for qualified library project when Library_Name is not
6029 declared, but Library_Dir is.
6030
6031 2011-08-02 Robert Dewar <dewar@adacore.com>
6032
6033 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
6034 pragmas (affects aspects [Component_]Default_Value
6035 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
6036 component type for the resolution
6037
6038 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
6039
6040 * einfo.adb (Base_Type): Tune implementation for speed.
6041
6042 2011-08-02 Robert Dewar <dewar@adacore.com>
6043
6044 * freeze.adb: Minor reformatting.
6045
6046 2011-08-02 Thomas Quinot <quinot@adacore.com>
6047
6048 * scos.ads: Update comments.
6049
6050 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6051
6052 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
6053 base type, because the parent may be a subtype of a private type whose
6054 convention is established in a private part.
6055
6056 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
6057
6058 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
6059 statement in a block when the expansion of the return expression has
6060 created a finalization chain.
6061 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
6062 with the parent node.
6063 Add N_Extended_Return_Statement to handle the case where a transient
6064 object declaration appears in the Return_Object_Declarations list of
6065 an extended return statement.
6066
6067 2011-08-02 Matthew Gingell <gingell@adacore.com>
6068
6069 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
6070 unused parameter 'name'.
6071
6072 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6073
6074 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
6075 inherited operation, check whether its alias, which is the source
6076 operastion that it renames, has been marked eliminated.
6077
6078 2011-08-02 Javier Miranda <miranda@adacore.com>
6079
6080 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
6081 in-mode parameter whose type is an access type since it can be used to
6082 modify its designated object. Enforce code that handles as safe an
6083 access type that is not access-to-constant but it is the result of a
6084 previous removal of side-effects.
6085 (Remove_Side_Effects): Minor code reorganization of cases which require
6086 no action. Done to incorporate documentation on new cases uncovered
6087 working in this ticket: no action needed if this routine was invoked
6088 too early and the nodes are not yet decorated.
6089 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
6090 to routine Remove_Side_Effects by calls to Force_Evaluation since they
6091 were issued with actuals that are implicitly provided by
6092 Force_Evaluation.
6093
6094 2011-08-02 Robert Dewar <dewar@adacore.com>
6095
6096 * sem_ch3.adb, sem_res.adb: Minor reformatting.
6097
6098 2011-08-02 Yannick Moy <moy@adacore.com>
6099
6100 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
6101 to issue an error in formal mode on attribute not supported in this mode
6102 (Analyze_Attribute): issue errors on standard attributes not supported
6103 in formal mode.
6104 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
6105 comment, and issue error in formal mode on modulus which is not a power
6106 of 2.
6107 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
6108 range.
6109 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
6110 subtype mark.
6111 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
6112 operator on modular type (except 'not').
6113
6114 2011-08-02 Robert Dewar <dewar@adacore.com>
6115
6116 * gnat_rm.texi: Minor reformatting.
6117
6118 2011-08-02 Arnaud Charlet <charlet@adacore.com>
6119
6120 * s-osinte-linux.ads: Minor comment update and reformatting.
6121 * i-cexten.ads: Make this unit pure, as for its parent.
6122 Will allow its usage in more contexts if needed.
6123
6124 2011-08-02 Robert Dewar <dewar@adacore.com>
6125
6126 * s-utf_32.ads: Minor comment fix.
6127
6128 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6129
6130 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
6131 operation of a tagged synchronized type, handle the case where the
6132 controlling argument is overloaded.
6133
6134 2011-08-02 Yannick Moy <moy@adacore.com>
6135
6136 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
6137 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
6138 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
6139 SPARK mode and formal verification mode on processing SPARK restriction
6140 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
6141 requiring consistency checking.
6142
6143 2011-08-02 Robert Dewar <dewar@adacore.com>
6144
6145 * sem_res.adb: Minor reformatting.
6146
6147 2011-08-02 Robert Dewar <dewar@adacore.com>
6148
6149 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
6150 a-cforse.ads: Remove unneeded with of Ada.Containers
6151 Remove commented out pragma Inline's
6152 Move specifications of new subprograms to the actual specs
6153
6154 2011-08-02 Yannick Moy <moy@adacore.com>
6155
6156 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
6157 a-cforse.ads: Update comments.
6158
6159 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6160
6161 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
6162
6163 2011-08-02 Robert Dewar <dewar@adacore.com>
6164
6165 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
6166 a-cforse.ads, a-cofove.ads: Minor reformatting.
6167
6168 2011-08-02 Claire Dross <dross@adacore.com>
6169
6170 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
6171 a-cofove.ads: Add comments.
6172
6173 2011-08-02 Yannick Moy <moy@adacore.com>
6174
6175 * gnat_rm.texi: Document formal containers.
6176
6177 2011-08-02 Emmanuel Briot <briot@adacore.com>
6178
6179 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
6180 are empty sections.
6181
6182 2011-08-02 Robert Dewar <dewar@adacore.com>
6183
6184 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
6185 reformatting.
6186
6187 2011-08-02 Robert Dewar <dewar@adacore.com>
6188
6189 * aspects.adb: New aspects Default_Value and Default_Component_Value
6190 New format of Aspect_Names table checks for omitted entries
6191 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
6192 handling of boolean aspects for derived types.
6193 New aspects Default_Value and Default_Component_Value
6194 New format of Aspect_Names table checks for omitted entries
6195 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
6196 (Has_Default_Value): New flag
6197 (Has_Default_Component_Value): New flag
6198 (Has_Default_Value): New flag
6199 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
6200 table.
6201 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
6202 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
6203 Default_Value and Default_Component_Value
6204 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
6205 New aspects Default_Value and Default_Component_Value
6206 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
6207 * sprint.adb: Print N_Aspect_Specification node when called from gdb
6208
6209 2011-08-02 Vincent Celier <celier@adacore.com>
6210
6211 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
6212 inherit library kind.
6213
6214 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6215
6216 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
6217 Minor reformatting.
6218
6219 2011-08-02 Robert Dewar <dewar@adacore.com>
6220
6221 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
6222
6223 2011-08-02 Yannick Moy <moy@adacore.com>
6224
6225 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
6226
6227 2011-08-02 Robert Dewar <dewar@adacore.com>
6228
6229 * impunit.adb: Add comment.
6230
6231 2011-08-02 Yannick Moy <moy@adacore.com>
6232
6233 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
6234 qualification of aggregates in formal mode
6235 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
6236 another aggregate
6237 (Resolve_Aggregate): complete the test that an aggregate is adequately
6238 qualified in formal mode
6239
6240 2011-08-02 Pascal Obry <obry@adacore.com>
6241
6242 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
6243 * mlib-prj.adb: Supress warning when compiling binder generated file.
6244 (Build_Library): Supress all warnings when compiling the binder
6245 generated file.
6246
6247 2011-08-02 Yannick Moy <moy@adacore.com>
6248
6249 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
6250 from here...
6251 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
6252 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
6253 Add with/use clauses to make Check_Formal_Restriction visible
6254
6255 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6256
6257 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
6258 in-parameters when type of the generic formal is private in the generic
6259 spec and non-private in the body.
6260
6261 2011-08-02 Claire Dross <dross@adacore.com>
6262
6263 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
6264 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
6265 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
6266 * impunit.adb, Makefile.rtl: Take new files into account.
6267
6268 2011-08-02 Robert Dewar <dewar@adacore.com>
6269
6270 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
6271 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
6272
6273 2011-08-02 Yannick Moy <moy@adacore.com>
6274
6275 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
6276 formal mode
6277 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
6278 matching static array bounds, taking into account the special case of
6279 string literals
6280 * sem_ch3.adb: Typo in comment.
6281
6282 2011-08-02 Yannick Moy <moy@adacore.com>
6283
6284 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
6285 which issues an error in formal mode if its argument node is originally
6286 from source
6287 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
6288 has a discriminant specification so that it does not include the case
6289 of derived types
6290 (Derived_Type_Declaration): move here the test that a derived type has a
6291 discriminant specification
6292 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
6293 first element of a component association before accessing its choices
6294 (presence of component association is not enough)
6295 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
6296 declaration is a library item before accessing the next element in a
6297 list, as library items are not member of lists
6298 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
6299 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
6300 Check_Formal_Restriction whenever possible.
6301
6302 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6303
6304 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
6305 reference when needed.
6306
6307 2011-08-02 Bob Duff <duff@adacore.com>
6308
6309 * gnat_ugn.texi: Fix typo.
6310
6311 2011-08-02 Vincent Celier <celier@adacore.com>
6312
6313 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
6314 archive file name. Do not use the full path name of archives for Open
6315 VMS.
6316
6317 2011-08-02 Robert Dewar <dewar@adacore.com>
6318
6319 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
6320 Analyze_Aspect_Specifications
6321 * sem_ch13.adb
6322 (Analyze_Aspect_Specifications): New handling for boolean aspects
6323 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
6324 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
6325 sequence for Analyze_Aspect_Specifications
6326 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
6327 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
6328
6329 2011-08-02 Robert Dewar <dewar@adacore.com>
6330
6331 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
6332 aspects, since these no longer exist.
6333
6334 2011-08-02 Robert Dewar <dewar@adacore.com>
6335
6336 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
6337 semicolon, do not try to see if there are aspects following it.
6338 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
6339 aspect spec.
6340
6341 2011-08-02 Robert Dewar <dewar@adacore.com>
6342
6343 * sem_ch8.adb, aspects.ads: Minor reformatting.
6344
6345 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
6346
6347 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
6348 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
6349 extracted from...
6350 (Analyze_Aspect_Specifications): ...here. Call above procedure.
6351
6352 2011-08-02 Yannick Moy <moy@adacore.com>
6353
6354 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
6355 mode on subprogram declaration outside of package specification, unless
6356 it is followed by a pragma Import
6357 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
6358 Access_Type_Declaration): issue error in formal mode on access type
6359 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
6360 incomplete type
6361 (Analyze_Object_Declaration): issue error in formal mode on object
6362 declaration which does not respect SPARK restrictions
6363 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
6364 declaration which does not respect SPARK restrictions
6365 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
6366 error in formal mode on digits or delta constraint
6367 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
6368 decimal fixed point type
6369 (Derived_Type_Declaration): issue error in formal mode on derived type
6370 other than type extensions of tagged record types
6371 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
6372 with check on access definition
6373 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
6374 mode on protected definition.
6375 (Analyze_Task_Definition): issue error in formal mode on task definition
6376
6377 2011-08-02 Robert Dewar <dewar@adacore.com>
6378
6379 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
6380
6381 2011-08-02 Javier Miranda <miranda@adacore.com>
6382
6383 * sem_ch6.adb (Can_Override_Operator): New function.
6384 (Verify_Overriding_Indicator): Add missing code to check overriding
6385 indicator in operators. Fixes regression.
6386 (Check_Overriding_Indicator): Minor reformating after replacing the
6387 code that evaluates if the subprogram can override an operator by
6388 invocations to the above new function.
6389 * einfo.adb
6390 (Write_Field26_Name): Add missing code to ensure that, following
6391 the documentation in einfo.ads, this field is not shown as attribute
6392 "Static_Initialization" on non-dispatching functions.
6393
6394 2011-08-02 Jose Ruiz <ruiz@adacore.com>
6395
6396 * sem_res.adb (Resolve_Call): A call to
6397 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
6398 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
6399 i.e., when the second parameter is of type Time_Span.
6400
6401 2011-08-02 Vincent Celier <celier@adacore.com>
6402
6403 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
6404 with an archive instead of -L<library dir> -l<library name>.
6405
6406 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6407
6408 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
6409 mark the base types In_Use in addition to making the operations
6410 use_visible.
6411
6412 2011-08-02 Ed Falis <falis@adacore.com>
6413
6414 * init.c: add and setup __gnat_signal_mask for the exception signals
6415 * s-inmaop-vxworks.adb: new file.
6416 * s-intman-vxworks.adb: remove unnecessary initializations and
6417 simplify remaining
6418 * s-intman-vxworks.ads: remove unnecessary variable
6419 * s-taprop-vxworks.adb: simplify signal initialization
6420
6421 2011-08-02 Robert Dewar <dewar@adacore.com>
6422
6423 * sem_ch8.adb: Minor code reorganization, comment updates.
6424
6425 2011-08-02 Robert Dewar <dewar@adacore.com>
6426
6427 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
6428 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
6429 here from Sem_Res.
6430 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
6431 (Matching_Static_Array_Bounds): Moved here from Sem_Res
6432
6433 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6434
6435 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
6436 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
6437 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
6438 use_type_clauses, to handle more efficiently use_type and use_all_type
6439 constructs.
6440 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
6441 Ada2012 Use_All_Type clause.
6442 (Use_Class_Wide_Operations): new procedure.
6443
6444 2011-08-02 Robert Dewar <dewar@adacore.com>
6445
6446 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
6447 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
6448 expression to expression function.
6449
6450 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6451
6452 * sem_ch4.adb: transform simple Ada2012 membership into equality only
6453 if types are compatible.
6454
6455 2011-08-02 Yannick Moy <moy@adacore.com>
6456
6457 * sem_res.adb (Matching_Static_Array_Bounds): new function which
6458 returns True if its argument array types have same dimension and same
6459 static bounds at each index.
6460 (Resolve_Actuals): issue an error in formal mode on actuals passed as
6461 OUT or IN OUT paramaters which are not view conversions in SPARK.
6462 (Resolve_Arithmetic_Op): issue an error in formal mode on
6463 multiplication or division with operands of fixed point types which are
6464 not qualified or explicitly converted.
6465 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
6466 Boolean or array type (except String) operands.
6467 (Resolve_Equality_Op): issue an error in formal mode on equality
6468 operators for array types other than String with non-matching static
6469 bounds.
6470 (Resolve_Logical_Op): issue an error in formal mode on logical operators
6471 for array types with non-matching static bounds. Factorize the code in
6472 Matching_Static_Array_Bounds.
6473 (Resolve_Qualified_Expression): issue an error in formal mode on
6474 qualified expressions for array types with non-matching static bounds.
6475 (Resolve_Type_Conversion): issue an error in formal mode on type
6476 conversion for array types with non-matching static bounds
6477
6478 2011-08-02 Robert Dewar <dewar@adacore.com>
6479
6480 * par-ch10.adb: Minor code reorganization (use Nkind_In).
6481
6482 2011-08-02 Ed Schonberg <schonberg@adacore.com>
6483
6484 * par-ch9.adb: save location of entry for proper error message.
6485
6486 2011-08-02 Javier Miranda <miranda@adacore.com>
6487
6488 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
6489 (Use_Full_View) which permits this routine to climb through the
6490 ancestors using the full-view of private parents.
6491 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
6492 Use_Full_View to true in calls to Is_Ancestor.
6493 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
6494 true in call to Is_Ancestor.
6495 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
6496 Use_Full_View to true in call to Is_Ancestor.
6497 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
6498 call to Is_Ancestor.
6499 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
6500 Use_Full_View to true in calls to Is_Ancestor.
6501 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
6502 Make_Select_Specific_Data_Table, Register_Primitive,
6503 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
6504 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
6505 to true in call to Is_Ancestor.
6506 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
6507 Use_Full_View to true in calls to Is_Ancestor.
6508 * exp_cg.adb
6509 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
6510 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
6511
6512 2011-08-02 Robert Dewar <dewar@adacore.com>
6513
6514 * gnat_rm.texi: Minor reformatting.
6515 * sem_prag.adb: Minor reformatting.
6516
6517 2011-08-02 Tristan Gingold <gingold@adacore.com>
6518
6519 * vms_data.ads: Add VMS qualifier for -gnateP.
6520
6521 2011-08-02 Robert Dewar <dewar@adacore.com>
6522
6523 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
6524 * par-ch7.adb (P_Package): Proper placement of aspects for package
6525 decl/instantiation.
6526 * par-endh.adb (Check_End): Ad Is_Sloc parameter
6527 (End_Statements): Add Is_Sloc parameterr
6528 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
6529 (Check_End): Ad Is_Sloc parameter
6530 (End_Statements): Add Is_Sloc parameterr
6531
6532 2011-08-02 Vincent Celier <celier@adacore.com>
6533
6534 * ug_words: Add VMS qualifier equivalent to -gnateP:
6535 /SYMBOL_PREPROCESSING.
6536
6537 2011-08-02 Jose Ruiz <ruiz@adacore.com>
6538
6539 * gnat-style.texi: For hexadecimal numeric literals the typical
6540 grouping of digits is 4 to represent 2 bytes.
6541 A procedure spec which is split into several lines is indented two
6542 characters.
6543
6544 2011-08-02 Yannick Moy <moy@adacore.com>
6545
6546 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
6547 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
6548 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
6549 properly qualified
6550 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
6551 choice in array aggregate
6552 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
6553 mark as ancestor
6554 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
6555 positional and named aggregate for record, or others in record
6556 aggregate, or multiple choice in record aggregate
6557 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
6558 array operands to logical operations AND, OR and XOR do not have the
6559 same static lower and higher bounds
6560 * sem_ch5.adb, sinfo.ads: Correct typos in comments
6561
6562 2011-08-01 Robert Dewar <dewar@adacore.com>
6563
6564 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
6565 Replaces Last_Source_Node_In_Sequence.
6566 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
6567 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
6568 parens and blank in string (this was inconsistently implemented).
6569 * errout.ads
6570 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
6571 blank in string (this was inconsistently implemented).
6572 * gnat1drv.adb
6573 (Set_Global_Switches): Set formal mode switches appropriately
6574 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
6575 * par-prag.adb
6576 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
6577 call Set_Error_Msg_Lang to set "spark" as language name.
6578 * par.adb: Remove unnecessary call to set formal language for errout
6579 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
6580 appropriately and call Set_Error_Msg_Lang to set "spark" as language
6581 name.
6582 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
6583 calls to it, moved after resolution so that types are known
6584 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
6585 result of concatenation is not of type String
6586 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
6587 concatenation is not properly restricted
6588 * gnat_rm.texi: Add doc on pragma Spark_95.
6589 * gcc-interface/Makefile.in: Remove obsolete target pairs for
6590 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
6591 * gcc-interface/Make-lang.in: Update dependencies.
6592
6593 2011-08-01 Javier Miranda <miranda@adacore.com>
6594
6595 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
6596 condition that detects if the overridden operation must replace an
6597 existing entity.
6598
6599 2011-08-01 Javier Miranda <miranda@adacore.com>
6600
6601 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
6602 code declarations inserted by Insert_Actions in each alternative of the
6603 N_Case_Expression node.
6604
6605 2011-08-01 Robert Dewar <dewar@adacore.com>
6606
6607 * sem_ch6.adb: Minor code reorganization.
6608 * sem_util.adb: Minor reformatting.
6609
6610 2011-08-01 Pascal Obry <obry@adacore.com>
6611
6612 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
6613 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
6614
6615 2011-08-01 Yannick Moy <moy@adacore.com>
6616
6617 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
6618 literal or operator symbol which is prefixed
6619 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
6620 mode on access attributes.
6621 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
6622 that concatenation operands are properly restricted in formal mode
6623 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
6624 Analyze_Concatenation_Operand. Issue an error in formal mode if the
6625 result of the concatenation has a type different from String.
6626 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
6627 Analyze_Quantified_Expression, Analyze_Slice,
6628 Analyze_Null): issue an error in formal mode on unsupported constructs
6629 * sem_ch5.adb
6630 (Analyze_Block_Statement): only issue error on source block statement
6631 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
6632 function which returns the last node in a list of nodes for which
6633 Comes_From_Source returns True, if any
6634 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
6635 Last_Source_Node_In_Sequence
6636 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
6637 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
6638 mode on unsupported constructs
6639 * sem_ch9.adb Do not return after issuing error in formal mode, as the
6640 rest of the actions may be needed later on since the error is marked as
6641 not serious.
6642 * sinfo.ads: Typos in comments.
6643
6644 2011-08-01 Pascal Obry <obry@adacore.com>
6645
6646 * projects.texi: Minor editing.
6647
6648 2011-08-01 Yannick Moy <moy@adacore.com>
6649
6650 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
6651 insertion character ~~
6652 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
6653 (Set_Error_Msg_Lang): new procedure which fixes the language for use
6654 with insertion character ~~
6655 (Set_Msg_Text): treat insertion character ~~
6656 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
6657 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
6658 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
6659 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
6660 errors related to the formal language restriction not serious
6661 (insertion character |).
6662 * par.adb (Par): set formal language for error messages if needed
6663 * sem_ch6.adb (Check_Missing_Return): take into account possible
6664 generated statements at the end of the function
6665 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
6666 enumeration value to define a new pragma SPARK_95
6667 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
6668 SPARK_Version): new type and variables to store the SPARK version
6669 (none by default).
6670 (SPARK_Mode): return True when SPARK_Version is set
6671 * par-prag.adb: Correct indentation
6672 (Prag): take Pragma_SPARK_95 into account
6673 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
6674 into account.
6675
6676 2011-08-01 Robert Dewar <dewar@adacore.com>
6677
6678 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
6679 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
6680 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
6681
6682 2011-08-01 Pascal Obry <obry@adacore.com>
6683
6684 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
6685 Target_Name to Get_Path call.
6686 (Parse_Single_Project): Likewise.
6687 (Post_Parse_Context_Clause): Likewise.
6688 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
6689 Call Initialise_Project_Path with the proper Target_Name.
6690 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
6691 search path.
6692 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
6693 with the proper Target_Name.
6694 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
6695 Part.Parse routine.
6696 (Parse_Project_And_Apply_Config): Likewise.
6697 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
6698 This is fine as this part of the code is supporting only native
6699 compilation.
6700 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
6701 is fine as this part of the code is supporting only native compilation.
6702
6703 2011-08-01 Yannick Moy <moy@adacore.com>
6704
6705 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
6706 of homonym, unless the homonym is one of the cases allowed in SPARK
6707 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
6708 package declaration occurring after a body.
6709
6710 2011-08-01 Robert Dewar <dewar@adacore.com>
6711
6712 * checks.adb, exp_ch4.adb: Minor reformatting.
6713
6714 2011-08-01 Javier Miranda <miranda@adacore.com>
6715
6716 * einfo.ads (Access_Disp_Table): Fix documentation.
6717 (Dispatch_Table_Wrappers): Fix documentation.
6718
6719 2011-08-01 Pascal Obry <obry@adacore.com>
6720
6721 * prj-env.adb, prj-env.ads: Minor reformatting.
6722
6723 2011-08-01 Yannick Moy <moy@adacore.com>
6724
6725 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
6726 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
6727 procedures out of these packages.
6728 * errout.ads, errout.adb
6729 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
6730 procedures in of this package
6731 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
6732 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
6733 on misplaced later vs initial declarations, like in Ada 83
6734 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
6735 formal mode on attribute of private type whose full type declaration
6736 is not visible
6737 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
6738 package declaration inside a package specification
6739 (Analyze_Full_Type_Declaration): issue error in formal mode on
6740 controlled type or discriminant type
6741 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
6742 user-defined operator means that it should come from the source
6743 (New_Overloaded_Entity): issue error in formal mode on overloaded
6744 entity.
6745 * sem_ch6.ads, sem_ch13.ads: typos in comments.
6746
6747 2011-08-01 Thomas Quinot <quinot@adacore.com>
6748
6749 * atree.adb: Minor reformatting.
6750 * checks.adb: Minor reformatting.
6751
6752 2011-08-01 Vincent Celier <celier@adacore.com>
6753
6754 * s-parame-vms-ia64.ads: Fix typo in comment
6755 Minor reformatting
6756 * s-parame-vms-restrict.ads: Removed, unused.
6757
6758 2011-08-01 Javier Miranda <miranda@adacore.com>
6759
6760 * exp_ch3.adb
6761 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
6762 * sem_ch3.adb
6763 (Constrain_Index): Remove side effects in the evaluation of the bounds.
6764 * sem_ch3.ads, sem_ch3.adb
6765 (Is_Constant_Bound): New extended version of the subprogram that was
6766 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
6767 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
6768 * sem_aux.ads (Constant_Value): Fix typo in comment.
6769 * checks.adb (Generate_Index_Checks): New implementation which, for
6770 array objects with constant bounds, generates the runtime check
6771 referencing the bounds of the array type. For other cases this routine
6772 provides its previous behavior obtaining such values from the array
6773 object.
6774 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
6775 parent type.
6776 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
6777 we cannot have semantic interpretations of the new node.
6778
6779 2011-08-01 Ed Schonberg <schonberg@adacore.com>
6780
6781 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
6782 expressions.
6783
6784 2011-08-01 Arnaud Charlet <charlet@adacore.com>
6785
6786 * sem_ch8.adb: Minor code editing.
6787 * s-vxwext.adb: Remove trailing space.
6788 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
6789 consistency with other files.
6790
6791 2011-08-01 Thomas Quinot <quinot@adacore.com>
6792
6793 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
6794
6795 2011-08-01 Ed Schonberg <schonberg@adacore.com>
6796
6797 * par-ch10.adb: reject parameterized expressions as compilation unit.
6798 * sem_ch4.adb: handle properly conditional expression with overloaded
6799 then_clause and no else_clause.
6800
6801 2011-08-01 Tristan Gingold <gingold@adacore.com>
6802
6803 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
6804 like done by System.Aux_DEC.
6805 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
6806
6807 2011-08-01 Yannick Moy <moy@adacore.com>
6808
6809 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
6810 missing label at end of declaration (subprogram or package)
6811 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
6812 of positional and named parameter association
6813 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
6814 Error_Msg_SP which adds a prefix to the error message giving the name
6815 of the formal language analyzed
6816 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
6817 access result type in subprogram, unconstrained array as result type,.
6818 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
6819 procedure
6820 * sem_ch8.adb: Code clean up.
6821
6822 2011-08-01 Javier Miranda <miranda@adacore.com>
6823
6824 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
6825 * einfo.ads (Access_Disp_Table): Fix documentation.
6826 (Dispatch_Table_Wrappers): Fix documentation.
6827 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
6828 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
6829 to enforce the documentation of this attribute.
6830 (Set_Is_Interface): Cleanup the assertion.
6831 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
6832 the Underlying_Type entity before reading attribute Access_Disp_Table.
6833 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
6834 Locate the Underlying_Type before reading attribute Access_Disp_Table.
6835 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
6836 the Underlying_Type entity before reading attribute Access_Disp_Table.
6837 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
6838 Locate the Underlying_Type entity before reading attribute
6839 Access_Disp_Table.
6840
6841 2011-08-01 Ed Schonberg <schonberg@adacore.com>
6842
6843 * s-poosiz.ads: Additional overriding indicators.
6844
6845 2011-08-01 Yannick Moy <moy@adacore.com>
6846
6847 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
6848 formal mode.
6849 (Analyze_Iteration_Scheme): issue error in formal mode when loop
6850 parameter specification does not include a subtype mark.
6851 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
6852 formal mode on abstract subprogram.
6853 (Analyze_Subprogram_Specification): issue error in formal mode on
6854 user-defined operator.
6855 (Process_Formals): issue error in formal mode on access parameter and
6856 default expression.
6857 * sem_ch9.adb (Analyze_Abort_Statement,
6858 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
6859 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
6860 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
6861 Analyze_Requeue, Analyze_Selective_Accept,
6862 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
6863 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
6864 issue error in formal mode on user-defined raise statement.
6865
6866 2011-08-01 Thomas Quinot <quinot@adacore.com>
6867
6868 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
6869 declaration being hidden when overriding an implicit inherited
6870 subprogram.
6871 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
6872 (-gnats), do not complain about a source file that contains only a
6873 pragma No_Body.
6874
6875 2011-08-01 Ed Schonberg <schonberg@adacore.com>
6876
6877 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
6878 variable if already set.
6879
6880 2011-08-01 Arnaud Charlet <charlet@adacore.com>
6881
6882 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
6883 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
6884 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
6885 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
6886 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
6887 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
6888 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
6889 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
6890 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
6891 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
6892 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
6893 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
6894 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
6895 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
6896 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
6897 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
6898 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
6899 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
6900 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
6901 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
6902 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
6903 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
6904 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
6905 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
6906 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
6907 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
6908 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
6909 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
6910 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
6911 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
6912 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
6913 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
6914 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
6915 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
6916 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
6917 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
6918 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
6919 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
6920 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
6921 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
6922 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
6923 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
6924 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
6925 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
6926 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
6927 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
6928 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
6929 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
6930 s-osinte-mingw.ads: Update to GPLv3 run-time license.
6931 Use GNAT instead of GNARL.
6932
6933 2011-08-01 Bob Duff <duff@adacore.com>
6934
6935 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
6936 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
6937 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
6938 reformatting.
6939
6940 2011-08-01 Yannick Moy <moy@adacore.com>
6941
6942 * debug.adb (d.D) reverve flag for the SPARK mode
6943 (d.E) reverve flag for SPARK generation mode
6944 (d.F) reverve flag for Why generation mode
6945 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
6946 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
6947 functions which return True when the corresponding modes are set
6948 (Formal_Language): return "spark" or "alfa" when in formal verification
6949 mode.
6950 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
6951 Error_Msg to prefix the error message with a tag giving the formal
6952 language
6953 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
6954 message with a tag giving the formal language
6955 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
6956 block statement
6957 (Analyze_Case_Statement): issue error in formal mode on case statement
6958 with a single "others" case alternative
6959 (Analyze_Exit_Statement): issue errors in formal mode on exit
6960 statements which do not respect SPARK restrictions
6961 (Analyze_Goto_Statement): issue error in formal mode on goto statement
6962 (Check_Unreachable_Code): always issue an error (not a warning) in
6963 formal mode on unreachable code (concerns both code after an infinite
6964 loop and after an unconditional jump, both not allowed in SPARK)
6965 * sem_ch6.adb (Analyze_Return_Statement): add call to
6966 Set_Return_Present for a procedure containing a return statement
6967 (already done for functions in Analyze_Function_Return)
6968 (Analyze_Function_Return): issue error in formal mode on extended
6969 return or if return is not last statement in function
6970 (Check_Missing_Return): issue error in formal mode if function does
6971 not end with return or if procedure contains a return
6972 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
6973 function to detect if there is an inner scope of its parameter S which
6974 is a loop.
6975
6976 2011-08-01 Thomas Quinot <quinot@adacore.com>
6977
6978 * sem_ch6.ads: Minor reformatting.
6979
6980 2011-08-01 Javier Miranda <miranda@adacore.com>
6981
6982 * sem_util.adb (Abstract_Interface_List): Complete condition when
6983 processing private type declarations to avoid reading unavailable
6984 attribute.
6985 (Is_Synchronized_Tagged_Type): Complete condition when processing
6986 private extension declaration nodes to avoid reading unavailable
6987 attribute.
6988
6989 2011-08-01 Thomas Quinot <quinot@adacore.com>
6990
6991 * sem_ch3.adb: Minor reformatting.
6992
6993 2011-08-01 Thomas Quinot <quinot@adacore.com>
6994
6995 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
6996 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
6997 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
6998 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
6999 for VMS, instead parametrize the common implementation with
7000 System.Parameters declarations.
7001
7002 2011-08-01 Eric Botcazou <ebotcazou@adacore.com>
7003
7004 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
7005
7006 2011-08-01 Tristan Gingold <gingold@adacore.com>
7007
7008 * seh_init.c: Fix SEH handler installation on win64.
7009
7010 2011-08-01 Ed Schonberg <schonberg@adacore.com>
7011
7012 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
7013 double analysis of an anonymous access to subprogram, because it can
7014 lead to improper sharing of profiles and a back-end crash.
7015
7016 2011-08-01 Robert Dewar <dewar@adacore.com>
7017
7018 * make.adb, sem_ch4.adb: Minor reformatting.
7019 * gcc-interface/Make-lang.in: Update dependencies.
7020 * sem_util.adb, exp_ch5.adb: Minor reformatting.
7021
7022 2011-08-01 Arnaud Charlet <charlet@adacore.com>
7023
7024 * gnat_rm.texi: Fix definition of Long_Integer.
7025
7026 2011-08-01 Ed Schonberg <schonberg@adacore.com>
7027
7028 * exp_aggr.adb: check limit size of static aggregate unconditionally,
7029 to prevent storage exhaustion.
7030 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
7031 finalized is a function body, insert the cleanup code before the final
7032 return statement, to prevent spurious warnings.
7033 * s-pooglo.ads: add overriding indicator.
7034
7035 2011-08-01 Ed Schonberg <schonberg@adacore.com>
7036
7037 * sem_ch4.adb (Operator_Check): improve error message when both a
7038 with_clause and a use_clause are needed to make operator usage legal.
7039 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
7040 determine whether a compilation unit is visible within an other,
7041 either through a with_clause in the current unit, or a with_clause in
7042 its library unit or one one of its parents.
7043
7044 2011-08-01 Ed Schonberg <schonberg@adacore.com>
7045
7046 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
7047 over an arbitrary expression of an array or container type.
7048 * lib-xref.adb: clarify comment.
7049
7050 2011-08-01 Bob Duff <duff@adacore.com>
7051
7052 * einfo.ads: Minor reformatting.
7053 * debug.adb: Minor comment improvement.
7054
7055 2011-08-01 Javier Miranda <miranda@adacore.com>
7056
7057 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
7058 consider hidden subprograms as valid candidates.
7059
7060 2011-08-01 Arnaud Charlet <charlet@adacore.com>
7061
7062 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
7063
7064 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
7065
7066 * gnat_ugn.texi: Fix typo.
7067
7068 2011-08-01 Robert Dewar <dewar@adacore.com>
7069
7070 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
7071 lib-xref.adb: Minor reformatting
7072
7073 2011-08-01 Gary Dismukes <dismukes@adacore.com>
7074
7075 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
7076 when to generate a call to Move_Final_List.
7077 (Has_Controlled_Parts): Remove this function.
7078
7079 2011-08-01 Geert Bosch <bosch@adacore.com>
7080
7081 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
7082 "," in choice list.
7083
7084 2011-08-01 Thomas Quinot <quinot@adacore.com>
7085
7086 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
7087 explicit raise of a predefined exception as Comes_From_Source if the
7088 original N_Raise_Statement comes from source.
7089
7090 2011-08-01 Robert Dewar <dewar@adacore.com>
7091
7092 * sinfo.ads: Add comment.
7093 * sem_ch6.adb: Minor reformatting.
7094
7095 2011-08-01 Robert Dewar <dewar@adacore.com>
7096
7097 * freeze.adb (Freeze_Entity): Refine check for bad component size
7098 clause to avoid rejecting confirming clause when atomic/aliased present.
7099
7100 2011-08-01 Ed Schonberg <schonberg@adacore.com>
7101
7102 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
7103 better determine whether an entity reference is a write.
7104 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
7105 subcomponent.
7106 * lib-xref.adb (Output_References): Do no suppress a read reference at
7107 the same location as an immediately preceeding modify-reference, to
7108 handle properly in-out actuals.
7109
7110 2011-08-01 Tristan Gingold <gingold@adacore.com>
7111
7112 * env.c (__gnat_setenv) [VMS]: Refine previous change.
7113
7114 2011-08-01 Quentin Ochem <ochem@adacore.com>
7115
7116 * i-cstrin.adb (New_String): Changed implementation, now uses only the
7117 heap to compute the result.
7118
7119 2011-08-01 Robert Dewar <dewar@adacore.com>
7120
7121 * atree.ads: Minor reformatting.
7122
7123 2011-08-01 Emmanuel Briot <briot@adacore.com>
7124
7125 * g-expect.adb (Get_Command_Output): Fix memory leak.
7126
7127 2011-08-01 Geert Bosch <bosch@adacore.com>
7128
7129 * cstand.adb (P_Float_Type): New procedure to print the definition of
7130 predefined fpt types.
7131 (P_Mixed_Name): New procedure to print a name using mixed case
7132 (Print_Standard): Use P_Float_Type for printing floating point types
7133 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
7134 precision IEEE float.
7135
7136 2011-08-01 Thomas Quinot <quinot@adacore.com>
7137
7138 * sem_ch3.adb: Minor reformatting.
7139
7140 2011-08-01 Ed Schonberg <schonberg@adacore.com>
7141
7142 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
7143 the completion of a generic function, insert the new body rather than
7144 rewriting the original.
7145
7146 2011-08-01 Yannick Moy <moy@adacore.com>
7147
7148 * sinfo.ads, errout.ads: Typos in comments.
7149
7150 2011-08-01 Robert Dewar <dewar@adacore.com>
7151
7152 * par-endh.adb: Minor reformatting.
7153
7154 2011-08-01 Robert Dewar <dewar@adacore.com>
7155
7156 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
7157 (Pre_Post_Aspects): New subtype.
7158 * par-ch12.adb (P_Generic): New syntax for aspects in packages
7159 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
7160 * par-ch7.adb (P_Package): Remove Decl parameter
7161 (P_Package): Handle new syntax for aspects (before IS)
7162 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
7163 new aspect syntax
7164 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
7165 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
7166 (P_Package): Remove Decl parameter
7167 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
7168 aspects
7169 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
7170 specs
7171 * sem_util.ads, sem_util.adb (Static_Boolean): New function
7172 * sinfo.ads: Document new syntax for aspects in packages etc.
7173 * sprint.adb: Handle new syntax of aspects before IS in package
7174
7175 2011-08-01 Thomas Quinot <quinot@adacore.com>
7176
7177 * atree.ads: Minor reformatting.
7178 * sem_prag.adb: Minor reformatting.
7179
7180 2011-08-01 Robert Dewar <dewar@adacore.com>
7181
7182 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
7183 case expr alternative.
7184
7185 2011-08-01 Ed Schonberg <schonberg@adacore.com>
7186
7187 * sem_ch12.adb: Fix typo.
7188
7189 2011-08-01 Geert Bosch <bosch@adacore.com>
7190
7191 * sem_prag.adb (Check_No_Link_Name): New procedure.
7192 (Process_Import_Or_Interface): Use Check_No_Link_Name.
7193 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
7194 instead of Standard_Long_Long_Float_Size global. Preparation for
7195 eventual removal of per type constants.
7196 * exp_util.ads (Get_Stream_Size): New function returning the stream
7197 size value of subtype E.
7198 * exp_util.adb (Get_Stream_Size): Implement new function.
7199 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
7200 function.
7201 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
7202 * einfo.adb:
7203 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
7204
7205 2011-08-01 Geert Bosch <bosch@adacore.com>
7206
7207 * cstand.adb: Fix comments.
7208 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
7209 count of arguments.
7210
7211 2011-08-01 Robert Dewar <dewar@adacore.com>
7212
7213 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
7214
7215 2011-08-01 Geert Bosch <bosch@adacore.com>
7216
7217 * atree.ads: Fix comment.
7218
7219 2011-08-01 Robert Dewar <dewar@adacore.com>
7220
7221 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
7222 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
7223 * par.adb: Add with for Namet.Sp.
7224 * par-tchk.adb: Minor reformatting.
7225
7226 2011-08-01 Vincent Celier <celier@adacore.com>
7227
7228 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
7229 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
7230 of the init procedure of a SAL.
7231 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
7232 New procedure.
7233
7234 2011-08-01 Thomas Quinot <quinot@adacore.com>
7235
7236 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
7237 reformatting.
7238
7239 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7240
7241 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
7242
7243 2011-08-01 Thomas Quinot <quinot@adacore.com>
7244
7245 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
7246 conformant with its spec (return True only for types that have
7247 an overriding Initialize primitive operation that prevents them from
7248 having preelaborable initialization).
7249 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
7250 initialization for controlled types in Ada 2005 or later mode.
7251
7252 2011-08-01 Robert Dewar <dewar@adacore.com>
7253
7254 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
7255 Postcondition.
7256 (Same_Aspect): New function.
7257 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
7258 Type_Invariant, Precondition, Postcondition.
7259 * snames.ads-tmpl: Add Name_Type_Invariant.
7260
7261 2011-08-01 Robert Dewar <dewar@adacore.com>
7262
7263 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
7264 here.
7265 (Freeze_All_Ent): Fix error in handling inherited aspects.
7266 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
7267 already analyzed, but don't skip entire processing of a declaration,
7268 that's wrong in some cases of declarations being rewritten.
7269 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
7270 Don't delay for integer, string literals
7271 Treat predicates in usual manner for delay, remove special case code,
7272 not needed.
7273 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
7274 (Build_Predicate_Function): Update saved expression in aspect
7275 (Build_Invariant_Procedure): Update saved expression in aspect
7276 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
7277 of replacement of discriminant references if the reference is simple.
7278
7279 2011-08-01 Robert Dewar <dewar@adacore.com>
7280
7281 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
7282 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
7283 Static_Predicate and Dynamic_Predicate.
7284 (Build_Predicate_Function): Add processing for Static_Predicate
7285 and Dynamic_Predicate.
7286 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
7287 (From_Static_Predicate): New flag
7288 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
7289
7290 2011-08-01 Robert Dewar <dewar@adacore.com>
7291
7292 * usage.adb: Documentation cleanup for Ada version modes in usage.
7293 * expander.adb: Minor reformatting.
7294
7295 2011-08-01 Robert Dewar <dewar@adacore.com>
7296
7297 * atree.ads: Minor comment fix.
7298 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
7299 a-witeio.ads, sem_prag.adb: Minor reformatting.
7300
7301 2011-08-01 Doug Rupp <rupp@adacore.com>
7302
7303 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
7304 pointers. Use descrip.h header file for convenience. Add some
7305 comments.
7306
7307 2011-08-01 Robert Dewar <dewar@adacore.com>
7308
7309 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
7310 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
7311 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
7312 New procedure.
7313 (Check_Aspect_At_End_Of_Declarations): New procedure
7314 (Analye_Aspect_Specification): Minor changes for above procedures
7315 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
7316 specification node as well.
7317
7318 2011-08-01 Pascal Obry <obry@adacore.com>
7319
7320 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
7321 Windows files. Use GetFilesAttributes() in this case to check for file
7322 existence instead of returning with an error code.
7323
7324 2011-08-01 Vincent Celier <celier@adacore.com>
7325
7326 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
7327 High is above Source length.
7328
7329 2011-08-01 Robert Dewar <dewar@adacore.com>
7330
7331 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
7332
7333 2011-08-01 Robert Dewar <dewar@adacore.com>
7334
7335 * aspects.ads (Boolean_Aspects): New subtype.
7336 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
7337 for derived types in cases where the parent type and derived type have
7338 aspects.
7339 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
7340 with aspects when parent type also has aspects.
7341 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
7342 boolean expression at this point).
7343 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
7344 accordance with final decision on the Ada 2012 feature.
7345 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
7346
7347 2011-08-01 Matthew Heaney <heaney@adacore.com>
7348
7349 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
7350
7351 2011-08-01 Pascal Obry <obry@adacore.com>
7352
7353 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
7354 Fix Replace_Slice when High is above current string size.
7355 (Replace_Slice): Fix DL computation when High is above current
7356 string length.
7357
7358 2011-08-01 Gary Dismukes <dismukes@adacore.com>
7359
7360 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
7361
7362 2011-08-01 Matthew Heaney <heaney@adacore.com>
7363
7364 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
7365 of node.
7366
7367 2011-08-01 Pascal Obry <obry@adacore.com>
7368
7369 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
7370 reformatting.
7371
7372 2011-08-01 Ed Schonberg <schonberg@adacore.com>
7373
7374 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
7375 access to protected subprograms in generic bodies.
7376 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
7377 protected type, indicate that the convention of the subprogram is
7378 Convention_Protected, because it may be used in subsequent declarations
7379 within the protected declaration.
7380
7381 2011-08-01 Vincent Celier <celier@adacore.com>
7382
7383 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
7384 and "final" procedures when the name of the library is "ada", to avoid
7385 duplicate symbols "adainit" and "adafinal" in executables.
7386
7387 2011-08-01 Ed Schonberg <schonberg@adacore.com>
7388
7389 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
7390 quantified expression that appears within a postcondition and uses the
7391 Ada2012 'Result attribute.
7392
7393 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7394
7395 * init.c (__gnat_error_handler): Cast reason to int.
7396 (__gnat_install_handler): Explain sa_sigaction use.
7397
7398 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
7399
7400 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
7401 subprogram has copy-in copy-out parameters, try to promote the mode of
7402 the return type if it is passed in registers.
7403
7404 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
7405
7406 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
7407 left operand as addressable.
7408
7409 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
7410
7411 * gcc-interface/gigi.h (build_function_stub): Remove.
7412 (build_return_expr): Likewise.
7413 (convert_vms_descriptor): Declare.
7414 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
7415 (build_function_stub): Move to...
7416 * gcc-interface/utils2.c (build_return_expr): Move to...
7417 * gcc-interface/trans.c (build_function_stub): ...here.
7418 (build_return_expr): ...here.
7419 (Subprogram_Body_to_gnu): Add local variable for language_function.
7420 Disconnect the parameter attributes cache, if any, once done with it.
7421 Call end_subprog_body only after setting the end_locus.
7422 Build the stub associated with the function, if any, at the very end.
7423 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
7424 variables and streamline control flow.
7425
7426 2011-07-23 Arnaud Charlet <charlet@adacore.com>
7427
7428 PR ada/49819
7429 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
7430 g-trasym-dwarf.adb.
7431
7432 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7433
7434 PR bootstrap/49794
7435 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
7436 Assign to act.sa_sigaction.
7437 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
7438 current->return_address to char * before arithmetic.
7439
7440 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7441
7442 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
7443 Correct argument types.
7444 Extract code from reason.
7445 (__gnat_install_handler): Assign to act.sa_sigaction.
7446
7447 2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
7448
7449 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
7450 (GNAT1_OBJS): ...here.
7451
7452 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
7453
7454 PR ada/48711
7455 * g-socthi-mingw.adb (Fill): Fix formatting.
7456
7457 * gcc-interface/gigi.h: Move around comment.
7458
7459 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7460
7461 PR ada/46350
7462 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
7463
7464 2011-07-14 Florian Weimer <fw@deneb.enyo.de>
7465
7466 PR ada/48711
7467 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
7468
7469 2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
7470
7471 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
7472 range comparison if Pmode is SImode.
7473
7474 2011-07-12 Laurent GUERBY <laurent@guerby.net>
7475 Eric Botcazou <ebotcazou@adacore.com>
7476
7477 * adadecode.c: Wrap up in extern "C" block.
7478 * adadecode.h: Likewise.
7479 * adaint.c: Likewise. Remove 'const' keyword.
7480 * adaint.h: Likewise.
7481 * argv.c: Likewise.
7482 * atree.h: Likewise.
7483 * cio.c: Likewise.
7484 * cstreams.c: Likewise.
7485 * env.c: Likewise.
7486 * exit.c: Likewise.
7487 * fe.h: Likewise.
7488 * final.c: Likewise.
7489 * init.c: Likewise.
7490 * initialize.c: Likewise.
7491 * link.c: Likewise.
7492 * namet.h: Likewise.
7493 * nlists.h: Likewise.
7494 * raise.c: Likewise.
7495 * raise.h: Likewise.
7496 * repinfo.h: Likewise.
7497 * seh_init.c: Likewise.
7498 * targext.c: Likewise.
7499 * tracebak.c: Likewise.
7500 * uintp.h: Likewise.
7501 * urealp.h: Likewise.
7502 * xeinfo.adb: Wrap up generated C code in extern "C" block.
7503 * xsinfo.adb: Likewise.
7504 * xsnamest.adb: Likewise.
7505 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
7506 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
7507 * gcc-interface/misc.c: Likewise.
7508 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
7509 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
7510 ada/targext.o here...
7511 (GNAT_ADA_OBJS): ...and not here.
7512 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
7513 (GNATBIND_OBJS): Reorder.
7514
7515 2011-07-07 Richard Henderson <rth@redhat.com>
7516
7517 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
7518 dwarf2out_frame_init.
7519
7520 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
7521
7522 * gcc-interface/misc.c (gnat_init): Tweak previous change.
7523
7524 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7525
7526 PR target/39150
7527 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
7528
7529 2011-07-06 Richard Guenther <rguenther@suse.de>
7530
7531 * gcc-interface/misc.c (gnat_init): Merge calls to
7532 build_common_tree_nodes and build_common_tree_nodes_2.
7533 Re-initialize boolean_false_node.
7534
7535 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
7536 Olivier Hainque <hainque@adacore.com>
7537 Nicolas Setton <setton@adacore.com>
7538
7539 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
7540 the type according to the ARTIFICIAL_P parameter.
7541 (create_type_decl): Likewise.
7542 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
7543
7544 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
7545
7546 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
7547 (gnatbind): Likewise.
7548
7549 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7550
7551 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
7552
7553 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7554
7555 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
7556 local variable throughout. Remove useless call to Base_Type.
7557 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
7558 Take it also into account for the volatileness of the field. Set the
7559 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
7560
7561 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7562
7563 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
7564 on a dereference built for a by-ref object if it has an address clause.
7565
7566 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7567
7568 * einfo.ads (Address_Taken): Document use for the second argument of
7569 Asm_Input and Asm_Output attributes.
7570 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
7571 argument is an entity name, then set Address_Taken on it.
7572 <Attribute_Asm_Output>: Likewise.
7573 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
7574 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
7575 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
7576 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
7577
7578 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
7579
7580 PR middle-end/46500
7581 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
7582
7583 2011-06-14 Joseph Myers <joseph@codesourcery.com>
7584
7585 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
7586 (ada/utils.o): Update dependencies.
7587 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
7588 ../../../libcpp/libcpp.a.
7589 * gcc-interface/utils.c: Include common/common-target.h.
7590 (process_attributes): Use targetm_common.have_named_sections.
7591
7592 2011-06-07 Richard Guenther <rguenther@suse.de>
7593
7594 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
7595 set_sizetype.
7596
7597 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
7598
7599 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
7600 TREE_THIS_NOTRAP flag.
7601
7602 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
7603
7604 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
7605 Fix thinko.
7606
7607 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
7608
7609 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
7610 constants whose full view has discriminants specially.
7611
7612 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
7613
7614 * gcc-interface/utils.c: Include diagnostic.h.
7615 (gnat_write_global_declarations): Output debug information for all
7616 global type declarations before finalizing the compilation unit.
7617 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
7618
7619 2011-05-25 Jakub Jelinek <jakub@redhat.com>
7620
7621 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
7622
7623 2011-05-25 Kai Tietz <ktietz@redhat.com>
7624
7625 * adaint.c (__gnat_to_canonical_file_list_next): Use array
7626 initialization instead of const/none-const pointer assignment.
7627
7628 2011-05-24 Joseph Myers <joseph@codesourcery.com>
7629
7630 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
7631 $(EXTRA_GNAT1_OBJS).
7632 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
7633 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
7634 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
7635 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
7636 libcommon-target.a instead of prefix.o.
7637
7638 2011-05-21 Joseph Myers <joseph@codesourcery.com>
7639
7640 PR ada/49097
7641 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
7642
7643 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7644
7645 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
7646 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
7647 instead of version.o.
7648
7649 2011-05-18 Kai Tietz <ktietz@redhat.com>
7650
7651 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
7652 boolean_false_node instead of integer_zero_node.
7653 (convert_with_check): Likewise.
7654 * gcc-interface/decl.c (choices_to_gnu): Likewise.
7655
7656 2011-05-12 Eric Botcazou <ebotcazou@adacore.com>
7657
7658 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
7659 type of the parameter is an unconstrained array, convert the actual to
7660 the type of the formal in the In Out and Out cases as well.
7661
7662 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
7663
7664 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
7665 call build_function_type_array or build_varargs_function_type_array
7666 instead.
7667 (create_subprog_type): Don't call build_function_type; call
7668 build_function_type_vec instead.
7669
7670 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
7671
7672 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
7673 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
7674 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
7675
7676 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
7677
7678 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
7679
7680 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
7681 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
7682
7683 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7684
7685 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
7686
7687 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7688
7689 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
7690 instead of accessing TYPE_ARG_TYPES directly.
7691 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
7692
7693 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7694
7695 PR ada/48844
7696 * gcc-interface/gigi.h (get_variant_part): Declare.
7697 * gcc-interface/decl.c (get_variant_part): Make global.
7698 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
7699 types have the same constant size, are record types and T1 has a
7700 variant part while T2 doesn't.
7701
7702 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7703
7704 * gcc-interface/utils.c (begin_subprog_body): Do not call
7705 get_pending_sizes.
7706 (end_subprog_body): Likewise.
7707
7708 2011-05-04 Richard Guenther <rguenther@suse.de>
7709
7710 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
7711 int_const_binop.
7712 (pos_to_constructor): Likewise.
7713
7714 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7715 Eric Botcazou <ebotcazou@adacore.com>
7716
7717 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
7718 of build_function_type. Adjust calls to...
7719 (build_raise_check): ...this. Do not take a void_tree parameter.
7720 Call build_function_type_list instead of build_function_type.
7721 Fix head comment and swap couple of conditional blocks.
7722
7723 2011-04-30 Eric Botcazou <ebotcazou@adacore.com>
7724
7725 * gnatvsn.ads (Library_Version): Bump to 4.7.
7726 (Current_Year): Bump to 2011.
7727
7728 2011-04-29 Michael Matz <matz@suse.de>
7729
7730 * gcc-interface/misc.c (gnat_handle_option): Set
7731 warn_maybe_uninitialized.
7732
7733 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
7734
7735 * gnat_ugn.texi (Complexity Metrics Control): Update link to
7736 the Watson/McCabe paper.
7737
7738 2011-04-23 Jim Meyering <meyering@redhat.com>
7739
7740 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
7741
7742 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
7743
7744 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
7745 onto the new type.
7746
7747 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
7748
7749 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
7750 parameter.
7751 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
7752 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
7753 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
7754 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
7755 <all>: Do not set flags on the reused DECL node coming from an alias.
7756 Set DECL_IGNORED_P on the DECL node built for subprograms if they
7757 don't need debug info here...
7758 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
7759 (gigi): Adjust calls to create_subprog_decl.
7760 (build_raise_check): Likewise.
7761 (establish_gnat_vms_condition_handler): Likewise.
7762 (Compilation_Unit_to_gnu): Likewise.
7763 (gnat_to_gnu): Likewise.
7764
7765 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7766
7767 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
7768 (NO_REORDER_ADAFLAGS): New variable.
7769 (EXTRA_GNATTOOLS): Always define.
7770 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
7771 Clean up and adjust list of files compiled with special options.
7772 * gcc-interface/Make-lang.in: Likewise.
7773 (ada/decl.o): Cosmetical change.
7774 (ada/misc.o): Remove dependency on $(PLUGIN_H).
7775
7776 2011-04-20 Jim Meyering <meyering@redhat.com>
7777
7778 * initialize.c (__gnat_initialize): Remove useless if-before-free.
7779
7780 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7781
7782 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
7783 $(CFLAGS) on the link line.
7784
7785 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7786
7787 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
7788 padded type built for the return type if it is unconstrained.
7789
7790 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7791
7792 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
7793
7794 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7795
7796 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
7797 before calling TREE_CHAIN.
7798 * gcc-interface/misc.c (gnat_init_ts): New function.
7799 (LANG_HOOKS_INIT_TS): Define.
7800
7801 2011-04-12 Martin Jambor <mjambor@suse.cz>
7802
7803 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
7804 instead of cgraph_node.
7805
7806 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7807
7808 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
7809 alignment on fields of the RETURN type built for the Copy-In Copy-Out
7810 mechanism.
7811
7812 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7813
7814 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
7815 of aggregate types that contain a placeholder.
7816
7817 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7818
7819 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
7820 TYPE_ARG_TYPES.
7821 (handle_type_generic_attribute): Likewise.
7822
7823 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7824
7825 PR ada/47163
7826 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
7827
7828 2011-04-04 Kai Tietz <ktietz@redhat.com>
7829
7830 PR ada/47163
7831 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
7832 to flag value.
7833
7834 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
7835
7836 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
7837 type case, do not strip a padding type around the array type.
7838
7839 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
7840
7841 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
7842 types.
7843
7844 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
7845
7846 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
7847 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
7848 code for -feliminate-unused-debug-types.
7849 (gnat_post_options): Likewise.
7850
7851 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
7852
7853 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
7854 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
7855 distinct copy.
7856
7857 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
7858
7859 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
7860 DECL_ARTIFICIAL flag on enumeration types.
7861
7862 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
7863
7864 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
7865 fat pointer types artificial unconditionally.
7866 <E_Array_Subtype>: Attach the base array type as a parallel type if it
7867 isn't artificial.
7868
7869 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
7870
7871 * gcc-interface/gigi.h (get_dummy_type): Declare.
7872 (build_dummy_unc_pointer_types): Likewise.
7873 (finish_fat_pointer_type): Likewise.
7874 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
7875 fat pointer type has been built, complete it in place.
7876 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
7877 and thin pointers. Remove useless variable.
7878 (finish_fat_pointer_type): Make global and move to...
7879 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
7880 (get_dummy_type): New function.
7881 (build_dummy_unc_pointer_types): Likewise.
7882 (gnat_pushdecl): Propage the name to the anonymous variants only.
7883 (update_pointer_to): Only adjust the pointer types in the unconstrained
7884 array case.
7885
7886 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
7887
7888 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
7889 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
7890 if this is a Taft amendment type and the full declaration is available.
7891 * gcc-interface/trans.c (process_type): Likewise.
7892 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
7893 (process_freeze_entity): Likewise.
7894 * gcc-interface/utils.c (dummy_global): New static variable.
7895 (gnat_write_global_declarations): If there are types declared as used
7896 at the global level, insert them in the global hash table.
7897
7898 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
7899
7900 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
7901 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
7902 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
7903 copy.
7904 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
7905 flag of the type accordingly.
7906 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
7907
7908 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
7909
7910 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
7911 finalizing types when updating the pointers to the designated type.
7912 <all>: Finalize the deferred types even if we didn't defer processing
7913 of incomplete types in this invocation.
7914
7915 2011-04-01 Olivier Hainque <hainque@adacore.com>
7916 Nicolas Setton <setton@adacore.com>
7917 Eric Botcazou <ebotcazou@adacore.com>
7918
7919 * gcc-interface/misc.c (gnat_descriptive_type): New function.
7920 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
7921
7922 2011-03-28 Kai Tietz <ktietz@redhat.com>
7923
7924 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
7925 Windows targets.
7926 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
7927 * system-mingw.ads (System): Change ZCX_By_Default default to True.
7928
7929 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
7930
7931 2011-03-28 Tristan Gingold <gingold@adacore.com>
7932
7933 PR ada/44431
7934 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
7935 Use ada output of gnatbind.
7936 (ada/b_gnatb.adb): Ditto.
7937 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
7938 (ada.mostlyclean, ada.stage1)
7939 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
7940 (ada.stagefeedback): Adjust.
7941 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
7942 Use ada output of gnatbind.
7943 (b_gnatm.adb): Ditto.
7944 (b_gnatl.o, b_gnatm.o): New rules.
7945
7946 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7947
7948 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
7949 for the padded type built to support a specified size or alignment.
7950
7951 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7952
7953 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
7954 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
7955 unconditionally to the end of the unit when the designated type is
7956 limited_with'ed.
7957 <all>: Rename local variable. Attempt to un-defer types only and do it
7958 for limited_with'ed types as well.
7959 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
7960 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
7961 consistently and remove redundant call to finalize_from_with_types.
7962
7963 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7964
7965 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
7966 subprograms without a previous spec declared in the same unit.
7967 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
7968 subprograms at the end of the unit instead of at the beginning.
7969 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
7970 isn't public for the special handling of non-inline functions nested
7971 inside inline external functions.
7972
7973 2011-03-25 Jeff Law <law@redhat.com>
7974
7975 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
7976
7977 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7978
7979 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
7980 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
7981 to compute Set_Size_Depends_On_Discriminant.
7982 (Layout_Type): Call it on array types in back-end layout mode.
7983 * sem_util.adb (Requires_Transient_Scope): Return true for array
7984 types only if the size depends on the value of discriminants.
7985 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
7986 type if the RHS is a call to a function that returns an unconstrained
7987 type with default discriminant.
7988
7989 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7990
7991 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
7992 non-conversion to the nominal result type at the end.
7993
7994 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
7995
7996 * gcc-interface/trans.c (create_temporary): New function taken from...
7997 (create_init_temporary): ...here. Call it.
7998 (call_to_gnu): Create the temporary for the return value early, if any.
7999 Create it for a function with copy-in/copy-out parameters if there is
8000 no target; in other cases of copy-in/copy-out, use another temporary.
8001 Push the new binding level lazily. Add and rename local variables.
8002
8003 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
8004
8005 * gcc-interface/decl.c (validate_size): Improve comments and tweak
8006 error message.
8007 (set_rm_size): Likewise.
8008
8009 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
8010
8011 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
8012 for the padded type built in order to support a specified alignment.
8013 Fix incorrect formatting.
8014
8015 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8016
8017 PR bootstrap/48216
8018 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
8019
8020 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8021
8022 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
8023 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
8024 to the end of the list. Adjust recursive call. Rename local variable.
8025 If REORDER is true, reorder components of the record type.
8026 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
8027 components_to_record and adjust the parameter list.
8028
8029 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8030
8031 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
8032 disabled, use the variable for bounds of loop iteration scheme.
8033
8034 2011-03-21 Kai Tietz <ktietz@redhat.com>
8035
8036 PR target/12171
8037 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
8038
8039 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
8040
8041 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
8042 out whether the expression is read-only. Short-circuit placeholder
8043 case and rename a couple of local variables.
8044
8045 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
8046
8047 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
8048 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
8049 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
8050 (convert): Deal with conversions from a smaller form type specially.
8051
8052 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
8053
8054 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
8055 its argument, except for the special -I- switch.
8056
8057 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
8058
8059 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
8060 "Ada Issues".
8061
8062 2011-02-08 Eric Botcazou <ebotcazou@adacore.com>
8063
8064 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
8065
8066 2011-02-03 Eric Botcazou <ebotcazou@adacore.com>
8067
8068 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
8069 GNAT_FORMAL.
8070 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
8071 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
8072 instead of GNAT_FORMAL. Protect the expression against multiple uses.
8073 Do not generate the check directly, instead instantiate the template
8074 check present in the descriptor.
8075 (make_descriptor_field): Move around.
8076 (build_vms_descriptor32): Build a template check in the POINTER field.
8077 (build_vms_descriptor): Remove useless suffixes.
8078 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
8079
8080 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
8081
8082 PR bootstrap/47467
8083 * targext.c: Include target files if IN_RTS is defined.
8084
8085 2011-01-26 Richard Guenther <rguenther@suse.de>
8086
8087 PR bootstrap/47467
8088 * targext.c: Include config.h.
8089 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
8090 dependency.
8091
8092 2011-01-04 Pascal Obry <obry@adacore.com>
8093 Eric Botcazou <ebotcazou@adacore.com>
8094
8095 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
8096
8097 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8098
8099 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
8100 end-of-case on the end label and its associated gotos, if any.
8101
8102 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8103
8104 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
8105 expressions of the parameter cache within the statement group of
8106 the CICO mechanism.
8107
8108 2011-01-04 Olivier Hainque <hainque@adacore.com>
8109 Eric Botcazou <ebotcazou@adacore.com>
8110
8111 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
8112 (set_end_locus_from_node): New function.
8113 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
8114 make and the function end_locus.
8115 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
8116 for the elaboration subprogram.
8117 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
8118 set the end_locus of the expression as well.
8119
8120 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8121
8122 PR ada/47131
8123 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
8124 variables that are referenced in exception handlers volatile.
8125
8126
8127 \f
8128 Copyright (C) 2011 Free Software Foundation, Inc.
8129
8130 Copying and distribution of this file, with or without modification,
8131 are permitted in any medium without royalty provided the copyright
8132 notice and this notice are preserved.
8133
8134 * gnat_rm.texi: Ramification of pragma Eliminate documentation
8135 - fix bugs in the description of Source_Trace;
8136 - get rid of UNIT_NAME;
8137
8138 2011-08-02 Javier Miranda <miranda@adacore.com>
8139
8140 * exp_ch9.adb
8141 (Build_Dispatching_Requeue): Adding support for VM targets
8142 since we cannot directly reference the Tag entity.
8143 * exp_sel.adb (Build_K): Adding support for VM targets.
8144 (Build_S_Assignment): Adding support for VM targets.
8145 * exp_disp.adb
8146 (Default_Prim_Op_Position): In VM targets do not restrict availability
8147 of predefined interface primitives to compiling in Ada 2005 mode.
8148 (Is_Predefined_Interface_Primitive): In VM targets this service is not
8149 restricted to compiling in Ada 2005 mode.
8150 (Make_VM_TSD): Generate code that declares and initializes the OSD
8151 record. Needed to support dispatching calls through synchronized
8152 interfaces.
8153 * exp_ch3.adb
8154 (Make_Predefined_Primitive_Specs): Enable generation of predefined
8155 primitives associated with synchronized interfaces.
8156 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
8157 primitives associated with synchronized interfaces.
8158
8159 2011-08-02 Yannick Moy <moy@adacore.com>
8160
8161 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
8162 statements hidden in SPARK if preceded by the HIDE directive
8163 (Parse_Exception_Handlers): mark each exception handler in a sequence of
8164 exception handlers as hidden in SPARK if preceded by the HIDE directive
8165 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
8166 if starting with the HIDE directive
8167 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
8168 starting with the HIDE directive; mark the declarations in a private
8169 part as hidden in SPARK if the private part starts with the HIDE
8170 directive
8171 * restrict.adb, restrict.ads
8172 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
8173 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
8174 argument node belongs to a part which is hidden in SPARK
8175 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
8176 parts in SPARK; protect the possibly costly call to
8177 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
8178 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
8179 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
8180 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
8181 Tok_SPARK_Hide.
8182 (Scan): recognize special comment starting with '#' and followed by
8183 SPARK keyword "hide" as a HIDE directive.
8184
8185 2011-08-02 Yannick Moy <moy@adacore.com>
8186
8187 * types.ads, erroutc.ads: Minor reformatting.
8188
8189 2011-08-02 Vincent Celier <celier@adacore.com>
8190
8191 * link.c: Add response file support for cross platforms.
8192
8193 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8194
8195 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
8196 in an association, set parent field of copy before partial analysis.
8197 * sem_res.adb (Resolve_Slice): create reference to itype only when
8198 expansion is enabled.
8199
8200 2011-08-02 Yannick Moy <moy@adacore.com>
8201
8202 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
8203 for new flag denoting which subprogram bodies are in ALFA
8204 * restrict.adb, sem_ch7.adb: Update comment
8205 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
8206 sem_ch9.adb, sem_res.adb: Add calls to
8207 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
8208 * sem_ch6.adb (Analyze_Function_Return): add calls to
8209 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
8210 middle of the body, and extended return.
8211 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
8212 False when missing return.
8213 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
8214 to True for subprograms whose spec is in ALFA. Remove later on the flag
8215 on the entity used for a subprogram body when there exists a separate
8216 declaration.
8217 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
8218 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
8219 False, otherwise do nothing.
8220
8221 2011-08-02 Robert Dewar <dewar@adacore.com>
8222
8223 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
8224
8225 2011-08-02 Yannick Moy <moy@adacore.com>
8226
8227 * sem_ch4.ads: minor formatting.
8228
8229 2011-08-02 Yannick Moy <moy@adacore.com>
8230
8231 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
8232 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
8233 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
8234 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
8235 opt.ads: cleanup of SPARK mode
8236
8237 2011-08-02 Yannick Moy <moy@adacore.com>
8238
8239 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
8240 types.
8241 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
8242 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
8243 * sem_ch3.adb
8244 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
8245 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
8246 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
8247 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
8248 types.
8249 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
8250 non-static range.
8251 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
8252 functions whose return type is not in ALFA.
8253 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
8254 specifications.
8255 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
8256 parameter's type is not in ALFA.
8257 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
8258 types are in ALFA.
8259
8260 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8261
8262 * sem_ch6 (Analyze_Expression_Function): treat the function as
8263 Inline_Always, and introduce a subprogram declaration for it when it is
8264 not a completion.
8265 * inline.adb (Add_Inlined_Body): recognize bodies that come from
8266 expression functions, so that the back-end can determine whether they
8267 can in fact be inlined.
8268 * sem_util.adb (Is_Expression_Function): predicate to determine whether
8269 a function body comes from an expression function.
8270
8271 2011-08-02 Gary Dismukes <dismukes@adacore.com>
8272
8273 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
8274 null exclusions to test Can_Never_Be_Null on the anonymous access types
8275 of the formals rather than testing the formals themselves. Exclude this
8276 check in cases where the Old_Formal is marked as a controlling formal,
8277 to avoid issuing spurious errors for bodies completing dispatching
8278 operations (due to the flag not getting set on controlling access
8279 formals in body specs).
8280 (Find_Corresponding_Spec): When checking full and subtype conformance of
8281 subprogram bodies in instances, pass Designated and E in that order, for
8282 consistency with the expected order of the formals (New_Id followed by
8283 Old_Id).
8284
8285 2011-08-02 Robert Dewar <dewar@adacore.com>
8286
8287 * sem_ch8.adb: Minor reformatting.
8288
8289 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8290
8291 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
8292 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
8293 primitive operations of class-wide actuals.
8294
8295 2011-08-02 Javier Miranda <miranda@adacore.com>
8296
8297 * exp_atag.ads, exp_atag.adb
8298 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
8299 since its value is implicitly passed in argument Typ.
8300 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
8301 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
8302 Build_Common_Dispatching_Select_Statements.
8303
8304 2011-08-02 Robert Dewar <dewar@adacore.com>
8305
8306 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
8307 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
8308 Minor reformatting.
8309
8310 2011-08-02 Robert Dewar <dewar@adacore.com>
8311
8312 * sem_res.adb: Minor reformatting.
8313 * sem_prag.adb: Minor reformatting.
8314
8315 2011-08-02 Javier Miranda <miranda@adacore.com>
8316
8317 * exp_atag.adb, exp_atags.ads
8318 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
8319 by the tagged type Entity. Required to use this routine in the VM
8320 targets since we do not have available the Tag entity in the VM
8321 platforms.
8322 * exp_ch6.adb
8323 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
8324 Ada.Tags has not been previously loaded.
8325 * exp_ch7.adb
8326 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
8327 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
8328 * sem_aux.adb
8329 (Enclosing_Dynamic_Scope): Add missing support to handle the full
8330 view of enclosing scopes. Required to handle enclosing scopes that
8331 are synchronized types whose full view is a task type.
8332 * exp_disp.adb
8333 (Build_VM_TSDs): Minor code improvement to avoid generating and
8334 analyzing lists with empty nodes.
8335 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
8336 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
8337 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
8338 (Make_Disp_Timed_Select_Body): Add support for VM targets.
8339 (Make_Select_Specific_Data_Table): Add support for VM targets.
8340 (Make_VM_TSD): Generate code to initialize the SSD structure of
8341 the TSD.
8342
8343 2011-08-02 Yannick Moy <moy@adacore.com>
8344
8345 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
8346 cross-references section in ALI.
8347 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
8348 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
8349 Sub).
8350 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
8351 subprogram or package entity of a node
8352 (Is_Local_Reference_Type): new function returns True for references
8353 selected in local cross-references.
8354 (Lt): function extracted from Lt in Output_References
8355 (Write_Entity_Name): function extracted from Output_References
8356 (Generate_Definition): generate reference with type 'D' for definition
8357 of objects (object declaration and parameter specification), with
8358 appropriate locations and units, for use in local cross-references.
8359 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
8360 references of type 'I' for initialization in object definition.
8361 (Output_References): move part of function Lt and procedure
8362 Write_Entity_Name outside of the body. Ignore references of types 'D'
8363 and 'I' introduced for local cross-references.
8364 (Output_Local_References): new procedure to output the local
8365 cross-references sections.
8366 (Lref_Entity_Status): new array defining whether an entity is a local
8367 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
8368 with 'I' type when initialization expression is present.
8369 * get_scos.adb, get_scos.ads: Correct comments and typos
8370
8371 2011-08-02 Javier Miranda <miranda@adacore.com>
8372
8373 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
8374 the JVM target.
8375 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
8376 the JVM target.
8377 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
8378 TSD support.
8379
8380 2011-08-02 Vincent Celier <celier@adacore.com>
8381
8382 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
8383 (No_Space_Img): New function
8384 (Find_Excluded_Sources): When reading from a file, record the file name
8385 and the line number for each excluded source.
8386 (Mark_Excluded_Sources): When reporting an error, if the excluded
8387 sources were read from a file, include file name and line number in
8388 the error message.
8389
8390 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8391
8392 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
8393
8394 2011-08-02 Robert Dewar <dewar@adacore.com>
8395
8396 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
8397
8398 2011-08-02 Javier Miranda <miranda@adacore.com>
8399
8400 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
8401 generation of TSDs to the DOTNET compiler.
8402 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
8403 generation of TSDs to the DOTNET compiler.
8404
8405 2011-08-02 Javier Miranda <miranda@adacore.com>
8406
8407 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
8408 record of all the tagged types declared inside library level package
8409 declarations, library level package bodies or library level subprograms.
8410 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
8411 associated with a given tagged type.
8412 (Build_VM_TSDs): New subprogram.
8413 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
8414 compilation units that are subprograms.
8415 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
8416 compilation units that are package bodies.
8417 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
8418 units that are a package declaration or a package instantiation.
8419 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
8420 reorganization to improve the error generated by the frontend when the
8421 function Ada.Tags.Secondary_Tag is not available.
8422 * rtsfind.ads (RE_Register_TSD): New runtime entity.
8423 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
8424
8425 2011-08-02 Javier Miranda <miranda@adacore.com>
8426
8427 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
8428
8429 2011-08-02 Robert Dewar <dewar@adacore.com>
8430
8431 * s-imenne.ads: Minor reformatting.
8432
8433 2011-08-02 Robert Dewar <dewar@adacore.com>
8434
8435 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
8436 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
8437 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
8438
8439 2011-08-02 Robert Dewar <dewar@adacore.com>
8440
8441 * einfo.ads (Materialize_Entity): Document this is only for renamings
8442 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
8443 required debug information in the case where we transform the object
8444 declaration into a renaming declaration.
8445 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
8446 object
8447 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
8448 Materialize_Entity.
8449
8450 2011-08-02 Robert Dewar <dewar@adacore.com>
8451
8452 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
8453 Suppress_Init_Procs.
8454 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
8455 Suppress_Initialization/Initialization_Suppressed.
8456 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
8457 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
8458 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
8459 * sem_prag.adb: New processing for pragma Suppress_Initialization.
8460
8461 2011-08-02 Robert Dewar <dewar@adacore.com>
8462
8463 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
8464 Minor reformatting.
8465
8466 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8467
8468 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
8469 only have inheritable classwide pre/postconditions.
8470
8471 2011-08-02 Javier Miranda <miranda@adacore.com>
8472
8473 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
8474 * rtsfind.ads (RE_Check_TSD): New runtime entity.
8475 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
8476 checks if the external tag of a type is the same as the external tag
8477 of some other declaration.
8478
8479 2011-08-02 Thomas Quinot <quinot@adacore.com>
8480
8481 * s-taskin.ads: Minor reformatting.
8482
8483 2011-08-02 Emmanuel Briot <briot@adacore.com>
8484
8485 * g-comlin.adb (Display_Help): swap the order in which it prints the
8486 short help and the general usage.
8487
8488 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8489
8490 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
8491 the aspect declarations and attach them to the generic copy for
8492 subsequent analysis.
8493 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
8494 declarations of the generic tree to the new subprogram declarations.
8495 * sem_attr.adb (Check_Precondition_Postcondition): recognize
8496 conditions that apply to a subprogram instance.
8497
8498 2011-08-02 Robert Dewar <dewar@adacore.com>
8499
8500 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
8501
8502 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8503
8504 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
8505 private type with a tagged full view is not derived in the immediate
8506 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
8507
8508 2011-08-02 Robert Dewar <dewar@adacore.com>
8509
8510 * exp_ch4.adb: Minor reformatting.
8511
8512 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8513
8514 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
8515 Ada2012 iterator, the loop will be rewritten during expansion into a
8516 while loop with a cursor and an element declaration. Do not analyze the
8517 body in this case, because if the container is for indefinite types the
8518 actual subtype of the elements will only be determined when the cursor
8519 declaration is analyzed.
8520
8521 2011-08-02 Arnaud Charlet <charlet@adacore.com>
8522
8523 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
8524 size/alignment related attributes in CodePeer_Mode.
8525
8526 2011-08-02 Gary Dismukes <dismukes@adacore.com>
8527
8528 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
8529 Prepend_Element, since this can result in the operation getting the
8530 wrong slot in the full type's dispatch table if the full type has
8531 inherited operations. The incomplete type's operation will get added
8532 to the proper position in the full type's primitives
8533 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
8534 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
8535 dispatching operations, since there are cases where nonprimitive
8536 subprograms can get added to the list of incomplete dependents (such
8537 as subprograms in nested packages).
8538 * sem_ch6.adb (Process_Formals): First, remove test for being in a
8539 private part when determining whether to add a primitive with a
8540 parameter of a tagged incomplete type to the Private_Dependents list.
8541 Such primitives can also occur in the visible part, and should not have
8542 been excluded from being private dependents.
8543 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
8544 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
8545 list of a Taft-amendment incomplete type is a primitive before issuing
8546 an error that the full type must appear in the same unit. There are
8547 cases where nonprimitives can be in the list (such as subprograms in
8548 nested packages).
8549 * sem_disp.adb (Derives_From): Use correct condition for checking that
8550 a formal's type is derived from the type of the corresponding formal in
8551 the parent subprogram (the condition was completely wrong). Add
8552 checking that was missing for controlling result types being derived
8553 from the result type of the parent operation.
8554
8555 2011-08-02 Yannick Moy <moy@adacore.com>
8556
8557 * errout.adb (First_Node): minor renaming
8558 * restrict.adb (Check_Formal_Restriction): put restriction warning on
8559 first node.
8560
8561 2011-08-02 Yannick Moy <moy@adacore.com>
8562
8563 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
8564 before accessing operands.
8565 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
8566 decide whether an initialization expression respects SPARK rules, as
8567 the plain node is the expanded one. This allows for more valid warnings
8568 to be issued.
8569 * gnat_rm.texi: Minor update.
8570
8571 2011-08-02 Arnaud Charlet <charlet@adacore.com>
8572
8573 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
8574 previous change.
8575
8576 2011-08-02 Robert Dewar <dewar@adacore.com>
8577
8578 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
8579
8580 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8581
8582 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
8583 loop statements and the element renaming declaration with a block when
8584 the element type is controlled.
8585
8586 2011-08-02 Yannick Moy <moy@adacore.com>
8587
8588 * sinfo.ads: Minor formatting.
8589
8590 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8591
8592 * sem_aggr.adb (Add_Association): if the association has a box and no
8593 expression, use the Sloc of the aggregate itself for the new
8594 association.
8595 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
8596 the Original_Node.
8597
8598 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8599
8600 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
8601 When a container is provided via a function call, generate a renaming
8602 of the function result. This avoids the creation of a transient scope
8603 and the premature finalization of the container.
8604 * exp_ch7.adb (Is_Container_Cursor): Removed.
8605 (Wrap_Transient_Declaration): Remove the supression of the finalization
8606 of the list controller when the declaration denotes a container cursor,
8607 it is not needed.
8608
8609 2011-08-02 Yannick Moy <moy@adacore.com>
8610
8611 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
8612 node is from source, instead of the original node being from source.
8613 * sem_aggr.adb
8614 (Resolve_Array_Aggregate): refine the check for a static expression, to
8615 recognize also static ranges
8616 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
8617 Array_Type_Declaration): postpone the test for the type being a subtype
8618 mark after the type has been resolved, so that component-selection and
8619 expanded-name are discriminated.
8620 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
8621 to distinguish the case of an iteration scheme, so that an error is
8622 issed on a non-static range in SPARK except in an iteration scheme.
8623 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
8624 In_Iter_Schm = True.
8625 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
8626 user-defined operators so that they are allowed in renaming
8627 * sem_ch8.adb
8628 (Find_Selected_Component): refine the check for prefixing of operators
8629 so that they are allowed in renaming. Move the checks for restrictions
8630 on selector name after analysis discriminated between
8631 component-selection and expanded-name.
8632 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
8633 concatenation argument of string type if it is static.
8634 * sem_util.adb, sem_util.ads
8635 (Check_Later_Vs_Basic_Declarations): add a new function
8636 Is_Later_Declarative_Item to decice which declarations are allowed as
8637 later items, in the two different modes Ada 83 and SPARK. In the SPARK
8638 mode, add that renamings are considered as later items.
8639 (Enclosing_Package): new function to return the enclosing package
8640 (Enter_Name): correct the rule for homonyms in SPARK
8641 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
8642 from source (result of expansion) to avoid issuing wrong warnings.
8643
8644 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8645
8646 * errout.adb: On anything but an expression First_Node returns its
8647 argument.
8648
8649 2011-08-02 Pascal Obry <obry@adacore.com>
8650
8651 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
8652
8653 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8654
8655 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
8656 Set the associated loop as the related expression of internally
8657 generated cursors.
8658 * exp_ch7.adb (Is_Container_Cursor): New routine.
8659 (Wrap_Transient_Declaration): Supress the finalization of the list
8660 controller when the declaration denotes a container cursor.
8661
8662 2011-08-02 Yannick Moy <moy@adacore.com>
8663
8664 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
8665 command line now.
8666 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
8667 expression is a simple expression. This check cannot be performed in
8668 the semantics, so just drop it.
8669 (P_Index_Or_Discriminant_Constraint): move check that the index or
8670 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
8671 semantics. Other cases were previously checked in the semantics.
8672 * par-ch4.adb (P_Name): move checks that a selector name is not
8673 character literal or an operator symbol to Find_Selected_Component in
8674 the semantics
8675 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
8676 declarations are not placed after later declarations in a separate
8677 procedure in Sem_Util (possibly not the best choice?), to be used both
8678 during parsing, for Ada 83 mode, and during semantic analysis, for
8679 SPARK mode.
8680 * par-endh.adb (Check_End): move check that end label is not missing
8681 to Process_End_Label in the semantics
8682 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
8683 the special case for SPARK restriction
8684 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
8685 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
8686 parameter Force to issue the error message even on internal node (used
8687 for generated end label). Call Check_Restriction to check when an error
8688 must be issued. In SPARK mode, issue an error message even if the
8689 restriction is not set.
8690 (Check_Restriction): new procedure with an additional out parameter to
8691 inform the caller that a message has been issued
8692 * sem_aggr.adb: Minor modification of message
8693 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
8694 instead of issuing an error message directly
8695 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
8696 declarations are not placed after later declarations, by calling
8697 Check_Later_Vs_Basic_Declarations
8698 (Analyze_Subtype_Declaration): move here the check that an index or
8699 discriminant constraint must be a subtype mark. Change the check that
8700 a subtype of String must start at one so that it works on subtype marks.
8701 * sem_ch4.adb (Analyze_Call): move here the check that a named
8702 association cannot follow a positional one in a call
8703 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
8704 instead of issuing an error message directly
8705 * sem_ch8.adb (Find_Selected_Component): move here the check that a
8706 selector name is not a character literal or an operator symbol. Move
8707 here the check that the prefix of an expanded name cannot be a
8708 subprogram or a loop statement.
8709 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
8710 procedure called from parsing and semantics to check that basic
8711 declarations are not placed after later declarations
8712 (Process_End_Label): move here the check that end label is not missing
8713
8714 2011-08-02 Arnaud Charlet <charlet@adacore.com>
8715
8716 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
8717 representation clause in codepeer mode, since it confuses CodePeer and
8718 does not bring useful info.
8719
8720 2011-08-02 Ed Falis <falis@adacore.com>
8721
8722 * init.c: initialize fp hw on MILS.
8723
8724 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8725
8726 * errout.adb (First_Node): for bodies, return the node itself (small
8727 optimization). For other nodes, do not check source_unit if the node
8728 comes from Standard.
8729
8730 2011-08-02 Robert Dewar <dewar@adacore.com>
8731
8732 * exp_ch3.adb: Minor comment additions.
8733 * sem_ch13.adb: Minor reformatting.
8734
8735 2011-08-02 Pascal Obry <obry@adacore.com>
8736
8737 * make.adb, makeutl.adb: Removes some superfluous directory separator.
8738
8739 2011-08-02 Robert Dewar <dewar@adacore.com>
8740
8741 * sem_attr.adb: Minor reformatting.
8742
8743 2011-08-02 Robert Dewar <dewar@adacore.com>
8744
8745 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
8746 (Has_Default_Component_Value): Removed
8747 * einfo.ads Comment updates
8748 (Has_Default_Aspect): Replaces Has_Default_Value
8749 (Has_Default_Component_Value): Removed
8750 * exp_ch13.adb
8751 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
8752 * exp_ch3.adb
8753 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
8754 (Get_Simple_Init_Val): Handle Default_Value aspect
8755 (Needs_Simple_Initialization): Handle Default_Value aspect
8756 * exp_ch3.ads: Needs_Simple_Initialization
8757 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
8758 * par-prag.adb (Pragma_Default[_Component]Value) Removed
8759 * sem_ch13.adb
8760 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
8761 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
8762 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
8763
8764 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8765
8766 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
8767 package containing iteration primitives.
8768 exp_ch5.adb (Expand_Iterator_Loop): ditto.
8769
8770 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8771
8772 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
8773 "of", pre-analyze expression in case it is a function call with
8774 finalization actions that must be placed ahead of the loop.
8775 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
8776 on an Ada2012 iterator, insert them ahead of the rewritten loop.
8777
8778 2011-08-02 Geert Bosch <bosch@adacore.com>
8779
8780 * cstand.adb (Create_Float_Types): Only consider C's long double for
8781 Long_Long_Float, in addition to double.
8782
8783 2011-08-02 Robert Dewar <dewar@adacore.com>
8784
8785 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
8786 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
8787 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
8788 Minor reformatting.
8789
8790 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8791
8792 * sem_attr.adb: handle properly 'Result when it is a prefix of an
8793 indexed component.
8794
8795 2011-08-02 Javier Miranda <miranda@adacore.com>
8796
8797 * einfo.ads, einfo.adb
8798 (Original_Access_Type): Move this attribute to Node26 since there was
8799 an undocumented use of Node21 in E_Access_Subprogram_Type entities
8800 which causes conflicts and breaks the generation of the .NET compiler.
8801 (Interface_Name): Add missing documentation on JGNAT only uses of
8802 this attribute.
8803
8804 2011-08-02 Geert Bosch <bosch@adacore.com>
8805
8806 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
8807 (Find_Back_End_Float_Type): Likewise
8808 (Create_Back_End_Float_Types): Likewise
8809 (Create_Float_Types): Likewise
8810 (Register_Float_Type): Likewise
8811 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
8812 Nlist and split out type selection in new local Find_Base_Type function.
8813 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
8814 Nlist
8815 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
8816
8817 2011-08-02 Robert Dewar <dewar@adacore.com>
8818
8819 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
8820 alpha order).
8821 * opt.ads: Minor comment change.
8822 * sem_ch12.adb: Minor code reorganization.
8823
8824 2011-08-02 Gary Dismukes <dismukes@adacore.com>
8825
8826 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
8827 subtype's list of rep items to the list on the full subtype in the case
8828 where the lists are the same.
8829
8830 2011-08-02 Geert Bosch <bosch@adacore.com>
8831
8832 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
8833 using the one from System.Strings, which also deallocates all strings.
8834
8835 2011-08-02 Geert Bosch <bosch@adacore.com>
8836
8837 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
8838 function.
8839 * gcc-interface/Make-lang.in: Update dependencies.
8840
8841 2011-08-02 Olivier Hainque <hainque@adacore.com>
8842
8843 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
8844 end_locus.
8845
8846 2011-08-02 Javier Miranda <miranda@adacore.com>
8847
8848 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
8849 associated with anonymous access to subprograms.
8850
8851 2011-08-02 Geert Bosch <bosch@adacore.com>
8852
8853 * opt.ads
8854 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
8855 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
8856 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
8857 (Add_Symbol_Definition): Move to switch-c.adb
8858 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
8859 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
8860 (Add_Symbol_Definition): Move to switch-c.adb.
8861 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
8862 * sem_warn.adb
8863 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
8864 Move to warnsw.adb.
8865 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
8866 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
8867 Move to warnsw.adb.
8868 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
8869 (Add_Symbol_Definition): Moved from Prepcomp.
8870 * switch-c.ads: Update copyright notice. Use String_List instead of
8871 Argument_List, removing dependency on System.OS_Lib.
8872
8873 2011-08-02 Yannick Moy <moy@adacore.com>
8874
8875 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
8876 mode on initialization expression which does not respect SPARK
8877 restrictions.
8878 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
8879 if the tree referenced by its argument represents an initialization
8880 expression in SPARK, suitable for initializing an object in an object
8881 declaration.
8882
8883 2011-08-02 Javier Miranda <miranda@adacore.com>
8884
8885 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
8886 internally generated access to subprogram with its associated protected
8887 subprogram type.
8888 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
8889
8890 2011-08-02 Geert Bosch <bosch@adacore.com>
8891
8892 * cstand.adb (Register_Float_Type): Print information about type to
8893 register, if the Debug_Flag_Dot_B is set.
8894 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
8895 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
8896 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
8897 with a requested precision of more than Max_Digits digits and no more
8898 than Max_Base_Digits digits, if a range specification is present and the
8899 Predefined_Float_Types list has a suitable type to derive from.
8900 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
8901 case of type completion with pragma Import
8902 * sem_prag.adb
8903 (Process_Import_Predefined_Type): Processing to complete a type
8904 with pragma Import. Currently supports floating point types only.
8905 (Set_Convention_From_Pragma): Do nothing without underlying type.
8906 (Process_Convention): Guard against absence of underlying type,
8907 which may happen when importing incomplete types.
8908 (Process_Import_Or_Interface): Handle case of importing predefined
8909 types. Tweak error message.
8910
8911 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8912
8913 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
8914 functions to previous change. Reorganize code slightly.
8915
8916 2011-08-02 Geert Bosch <bosch@adacore.com>
8917
8918 * back_end.ads (Register_Type_Proc): New call back procedure type for
8919 allowing the back end to provide information about available types.
8920 (Register_Back_End_Types): New procedure to register back end types.
8921 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
8922 available types.
8923 * cstand.adb (Back_End_Float_Types): New list for floating point types
8924 supported by the back end.
8925 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
8926 (Copy_Float_Type): New procedure to make new copies of predefined types.
8927 (Register_Float_Type): New call back procedure to populate the BEFT list
8928 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
8929 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
8930 (Create_Float_Types): New procedure to create entities for floating
8931 point types predefined in Standard, and put these and any remaining
8932 BEFTs on the Predefined_Float_Types list.
8933 * stand.ads (Predefined_Float_Types): New list for predefined floating
8934 point types that do not have declarations in package Standard.
8935
8936 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8937
8938 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
8939 entity node for the unit containing the parameter.
8940 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
8941 (Add_Inlined_Subprogram): Likewise.
8942 * gcc-interface/Make-lang.in: Update dependencies.
8943
8944 2011-08-02 Thomas Quinot <quinot@adacore.com>
8945
8946 * s-stusta.adb (Print): Make sure Pos is always initialized to a
8947 suitable value.
8948
8949 2011-08-02 Geert Bosch <bosch@adacore.com>
8950
8951 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
8952
8953 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8954
8955 * sem_type.adb (Covers): Move trivial case to the top and reuse the
8956 computed value of Base_Type.
8957
8958 2011-08-02 Yannick Moy <moy@adacore.com>
8959
8960 * restrict.adb (Check_Restriction): issue an error for any use of
8961 class-wide, even if the No_Dispatch restriction is not set.
8962 * sem_aggr.adb: Correct typos in comments and messages in formal mode
8963 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
8964 when completing a private extension, the type named in the private part
8965 is not the same as that named in the visible part.
8966 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
8967 of an inherited primitive operations of a tagged type or type extension
8968 that returns the tagged type.
8969 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
8970 function which returns True for an implicit operation inherited by the
8971 derived type declaration for the argument type.
8972 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
8973 order.
8974
8975 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8976
8977 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
8978 Process_Bounds, to perform analysis with expansion of a range or an
8979 expression that is the iteration scheme for a loop.
8980 (Analyze_Iterator_Specification): If domain of iteration is given by a
8981 function call with a controlled result, as is the case if call returns
8982 a predefined container, ensure that finalization actions are properly
8983 generated.
8984 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
8985
8986 2011-08-02 Javier Miranda <miranda@adacore.com>
8987
8988 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
8989 * gcc-interface/Make-lang.in: Update dependencies.
8990
8991 2011-08-02 Javier Miranda <miranda@adacore.com>
8992
8993 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
8994 determine if the analysis is performed using N or Original_Node (N).
8995 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
8996 functionality of routine Is_Variable avoids code duplication.
8997 * checks.adb (Determine_Range): Handle temporaries generated by
8998 Remove_Side_Effects.
8999
9000 2011-08-02 Javier Miranda <miranda@adacore.com>
9001
9002 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
9003 expansion of the condition. Required since the previous analysis was
9004 done with expansion disabled (see Resolve_Quantified_Expression) and
9005 hence checks were not inserted and record comparisons have not been
9006 expanded.
9007
9008 2011-08-02 Ed Falis <falis@adacore.com>
9009
9010 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
9011 Update header.
9012
9013 2011-08-02 Bob Duff <duff@adacore.com>
9014
9015 * opt.ads: Minor comment fix.
9016
9017 2011-08-02 Bob Duff <duff@adacore.com>
9018
9019 * sem_ch12.adb (Analyze_Package_Instantiation,
9020 Analyze_Subprogram_Instantiation): Turn off style checking while
9021 analyzing an instance. Whatever style checks that apply to the generic
9022 unit should apply, so it makes no sense to apply them in an instance.
9023 This was causing trouble when compiling an instance of a runtime
9024 unit that violates the -gnatyO switch.
9025 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
9026 one of the two case statements, causing spurious errors.
9027
9028 2011-08-02 Robert Dewar <dewar@adacore.com>
9029
9030 * uname.adb: Minor reformatting.
9031 * gnatcmd.adb: Minor reformatting.
9032 * exp_attr.adb: Minor reformatting.
9033
9034 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9035
9036 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
9037 No_Dispatching_Calls, do not look for the Assign primitive, because
9038 predefined primitives are not created in this case.
9039
9040 2011-08-02 Bob Duff <duff@adacore.com>
9041
9042 * stylesw.ads: Minor comment fixes.
9043
9044 2011-08-02 Robert Dewar <dewar@adacore.com>
9045
9046 * freeze.adb (Add_To_Result): New procedure.
9047
9048 2011-08-02 Jose Ruiz <ruiz@adacore.com>
9049
9050 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
9051 time, if the specific run-time routines for handling streams of strings
9052 are not available, use the default mechanism.
9053
9054 2011-08-02 Arnaud Charlet <charlet@adacore.com>
9055
9056 * s-regpat.ads: Fix typo.
9057
9058 2011-08-02 Vincent Celier <celier@adacore.com>
9059
9060 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
9061 not null, call it to create the in memory config project file without
9062 parsing an existing default config project file.
9063
9064 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9065
9066 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
9067
9068 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9069
9070 * sem_elim.adb: an abstract subprogram does not need an eliminate
9071 pragma for its descendant to be eliminable.
9072
9073 2011-08-02 Ed Falis <falis@adacore.com>
9074
9075 * init.c: revert to handling before previous checkin for VxWorks
9076 * s-intman-vxworks.adb: delete unnecessary declarations related to
9077 using Ada interrupt facilities for handling signals.
9078 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
9079 * s-intman-vxworks.ads: Import __gnat_install_handler as
9080 Initialize_Interrupts.
9081 * s-taprop-vxworks.adb: Delete Signal_Mask.
9082 (Abort_Handler): change construction of mask to unblock exception
9083 signals.
9084
9085 2011-08-02 Jerome Guitton <guitton@adacore.com>
9086
9087 * a-except-2005.adb (Raise_From_Signal_Handler): Call
9088 Debug_Raise_Exception before propagation starts.
9089
9090 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9091
9092 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
9093 to Restriction_Check_Required.
9094 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
9095 * sem_res.adb (Resolve_Call): Likewise.
9096 * sem_attr.adb (Check_Stream_Attribute): Likewise.
9097
9098 2011-08-02 Bob Duff <duff@adacore.com>
9099
9100 * stylesw.ads: Update comment.
9101 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
9102 * errout.ads: Remove obsolete comment.
9103
9104 2011-08-02 Javier Miranda <miranda@adacore.com>
9105
9106 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
9107 (Set_Is_Safe_To_Reevaluate): new procedure.
9108 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
9109 assignment is allowed on safe-to-reevaluate variables.
9110 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
9111 temporary created to remove side effects in expressions that use
9112 the secondary stack as safe-to-reevaluate.
9113 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
9114 variables that are not true constants.
9115
9116 2011-08-02 Robert Dewar <dewar@adacore.com>
9117
9118 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
9119 sem_res.adb, sem_ch6.adb: Minor reformatting.
9120
9121 2011-08-02 Jerome Guitton <guitton@adacore.com>
9122
9123 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
9124
9125 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9126
9127 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
9128 not set Overridden_Operation if subprogram is an initialization
9129 procedure.
9130
9131 2011-08-02 Yannick Moy <moy@adacore.com>
9132
9133 * par-ch6.adb: Correct obsolete name in comments
9134 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
9135 which takes two message arguments (existing function takes one), with
9136 second message used for continuation.
9137 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
9138 block statements that originate from a source block statement, not
9139 generated block statements
9140 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
9141 symmetry with procedure case
9142 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
9143 function to issue an error in formal mode if a package specification
9144 contains more than one tagged type or type extension.
9145 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
9146 parameters matching formals of tagged types are objects (or ancestor
9147 type conversions of objects), not general expressions. Issue an error
9148 on view conversions that are not involving ancestor conversion of an
9149 extended type.
9150 (Resolve_Type_Conversion): in formal mode, issue an error on the
9151 operand of an ancestor type conversion which is not an object
9152 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
9153 procedure so that it works also for actuals of function calls
9154 (Is_Actual_Tagged_Parameter): new function which determines if its
9155 argument is an actual parameter of a formal of tagged type in a
9156 subprogram call
9157 (Is_SPARK_Object_Reference): new function which determines if the tree
9158 referenced by its argument represents an object in SPARK
9159
9160 2011-08-02 Robert Dewar <dewar@adacore.com>
9161
9162 * sem_ch3.adb: Minor reformatting
9163 Minor comment addition
9164 Minor error msg text change
9165
9166 2011-08-02 Javier Miranda <miranda@adacore.com>
9167
9168 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
9169 function. Used to be more precise when we generate a variable plus one
9170 assignment to remove side effects in the evaluation of the Bound
9171 expressions.
9172 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
9173 of the bound expression to force its re-analysis and thus expand the
9174 associated transient scope (if required). Code cleanup replacing the
9175 previous code that declared the constant entity by an invocation to
9176 routine Force_Evaluation which centralizes this work in the frontend.
9177
9178 2011-08-02 Robert Dewar <dewar@adacore.com>
9179
9180 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
9181 (Base_Type): Now uses improved Is_Base_Type function
9182 * einfo.ads (Base_Type): Inline this function
9183
9184 2011-08-02 Robert Dewar <dewar@adacore.com>
9185
9186 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
9187 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
9188
9189 2011-08-02 Arnaud Charlet <charlet@adacore.com>
9190
9191 * gcc-interface/Make-lang.in: Update dependencies.
9192 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
9193 targets.
9194
9195 2011-08-02 Yannick Moy <moy@adacore.com>
9196
9197 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
9198 non-simple expression used in delta constraint
9199 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
9200 index constraint which is not a subtype mark
9201 * par.adb: With and use Restrict
9202 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
9203 mode on component type which is not a subtype mark and default
9204 expression on component
9205 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
9206 of string which does not have a lower index bound equal to 1
9207 (Array_Type_Declaration): issue an error in formal mode on index or
9208 component type which is not a subtype mark, and on aliased keyword on
9209 component
9210 (Derived_Type_Declaration): issue an error in formal mode on interface,
9211 limited or abstract type
9212 (Record_Type_Declaration): issue an error in formal mode on interface
9213 (Record_Type_Definition): issue an error in formal mode on tagged types
9214 and type extensions not declared in the specification of a library unit
9215 package; on null non-tagged record; on variant part
9216
9217 2011-08-02 Vincent Celier <celier@adacore.com>
9218
9219 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
9220 not declared for qualified library project when Library_Name is not
9221 declared, but Library_Dir is.
9222
9223 2011-08-02 Robert Dewar <dewar@adacore.com>
9224
9225 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
9226 pragmas (affects aspects [Component_]Default_Value
9227 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
9228 component type for the resolution
9229
9230 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9231
9232 * einfo.adb (Base_Type): Tune implementation for speed.
9233
9234 2011-08-02 Robert Dewar <dewar@adacore.com>
9235
9236 * freeze.adb: Minor reformatting.
9237
9238 2011-08-02 Thomas Quinot <quinot@adacore.com>
9239
9240 * scos.ads: Update comments.
9241
9242 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9243
9244 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
9245 base type, because the parent may be a subtype of a private type whose
9246 convention is established in a private part.
9247
9248 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
9249
9250 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
9251 statement in a block when the expansion of the return expression has
9252 created a finalization chain.
9253 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
9254 with the parent node.
9255 Add N_Extended_Return_Statement to handle the case where a transient
9256 object declaration appears in the Return_Object_Declarations list of
9257 an extended return statement.
9258
9259 2011-08-02 Matthew Gingell <gingell@adacore.com>
9260
9261 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
9262 unused parameter 'name'.
9263
9264 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9265
9266 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
9267 inherited operation, check whether its alias, which is the source
9268 operastion that it renames, has been marked eliminated.
9269
9270 2011-08-02 Javier Miranda <miranda@adacore.com>
9271
9272 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
9273 in-mode parameter whose type is an access type since it can be used to
9274 modify its designated object. Enforce code that handles as safe an
9275 access type that is not access-to-constant but it is the result of a
9276 previous removal of side-effects.
9277 (Remove_Side_Effects): Minor code reorganization of cases which require
9278 no action. Done to incorporate documentation on new cases uncovered
9279 working in this ticket: no action needed if this routine was invoked
9280 too early and the nodes are not yet decorated.
9281 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
9282 to routine Remove_Side_Effects by calls to Force_Evaluation since they
9283 were issued with actuals that are implicitly provided by
9284 Force_Evaluation.
9285
9286 2011-08-02 Robert Dewar <dewar@adacore.com>
9287
9288 * sem_ch3.adb, sem_res.adb: Minor reformatting.
9289
9290 2011-08-02 Yannick Moy <moy@adacore.com>
9291
9292 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
9293 to issue an error in formal mode on attribute not supported in this mode
9294 (Analyze_Attribute): issue errors on standard attributes not supported
9295 in formal mode.
9296 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
9297 comment, and issue error in formal mode on modulus which is not a power
9298 of 2.
9299 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
9300 range.
9301 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
9302 subtype mark.
9303 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
9304 operator on modular type (except 'not').
9305
9306 2011-08-02 Robert Dewar <dewar@adacore.com>
9307
9308 * gnat_rm.texi: Minor reformatting.
9309
9310 2011-08-02 Arnaud Charlet <charlet@adacore.com>
9311
9312 * s-osinte-linux.ads: Minor comment update and reformatting.
9313 * i-cexten.ads: Make this unit pure, as for its parent.
9314 Will allow its usage in more contexts if needed.
9315
9316 2011-08-02 Robert Dewar <dewar@adacore.com>
9317
9318 * s-utf_32.ads: Minor comment fix.
9319
9320 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9321
9322 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
9323 operation of a tagged synchronized type, handle the case where the
9324 controlling argument is overloaded.
9325
9326 2011-08-02 Yannick Moy <moy@adacore.com>
9327
9328 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
9329 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
9330 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
9331 SPARK mode and formal verification mode on processing SPARK restriction
9332 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
9333 requiring consistency checking.
9334
9335 2011-08-02 Robert Dewar <dewar@adacore.com>
9336
9337 * sem_res.adb: Minor reformatting.
9338
9339 2011-08-02 Robert Dewar <dewar@adacore.com>
9340
9341 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9342 a-cforse.ads: Remove unneeded with of Ada.Containers
9343 Remove commented out pragma Inline's
9344 Move specifications of new subprograms to the actual specs
9345
9346 2011-08-02 Yannick Moy <moy@adacore.com>
9347
9348 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9349 a-cforse.ads: Update comments.
9350
9351 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9352
9353 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
9354
9355 2011-08-02 Robert Dewar <dewar@adacore.com>
9356
9357 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9358 a-cforse.ads, a-cofove.ads: Minor reformatting.
9359
9360 2011-08-02 Claire Dross <dross@adacore.com>
9361
9362 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
9363 a-cofove.ads: Add comments.
9364
9365 2011-08-02 Yannick Moy <moy@adacore.com>
9366
9367 * gnat_rm.texi: Document formal containers.
9368
9369 2011-08-02 Emmanuel Briot <briot@adacore.com>
9370
9371 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
9372 are empty sections.
9373
9374 2011-08-02 Robert Dewar <dewar@adacore.com>
9375
9376 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
9377 reformatting.
9378
9379 2011-08-02 Robert Dewar <dewar@adacore.com>
9380
9381 * aspects.adb: New aspects Default_Value and Default_Component_Value
9382 New format of Aspect_Names table checks for omitted entries
9383 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
9384 handling of boolean aspects for derived types.
9385 New aspects Default_Value and Default_Component_Value
9386 New format of Aspect_Names table checks for omitted entries
9387 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
9388 (Has_Default_Value): New flag
9389 (Has_Default_Component_Value): New flag
9390 (Has_Default_Value): New flag
9391 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
9392 table.
9393 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
9394 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
9395 Default_Value and Default_Component_Value
9396 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
9397 New aspects Default_Value and Default_Component_Value
9398 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
9399 * sprint.adb: Print N_Aspect_Specification node when called from gdb
9400
9401 2011-08-02 Vincent Celier <celier@adacore.com>
9402
9403 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
9404 inherit library kind.
9405
9406 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9407
9408 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
9409 Minor reformatting.
9410
9411 2011-08-02 Robert Dewar <dewar@adacore.com>
9412
9413 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
9414
9415 2011-08-02 Yannick Moy <moy@adacore.com>
9416
9417 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
9418
9419 2011-08-02 Robert Dewar <dewar@adacore.com>
9420
9421 * impunit.adb: Add comment.
9422
9423 2011-08-02 Yannick Moy <moy@adacore.com>
9424
9425 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
9426 qualification of aggregates in formal mode
9427 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
9428 another aggregate
9429 (Resolve_Aggregate): complete the test that an aggregate is adequately
9430 qualified in formal mode
9431
9432 2011-08-02 Pascal Obry <obry@adacore.com>
9433
9434 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
9435 * mlib-prj.adb: Supress warning when compiling binder generated file.
9436 (Build_Library): Supress all warnings when compiling the binder
9437 generated file.
9438
9439 2011-08-02 Yannick Moy <moy@adacore.com>
9440
9441 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
9442 from here...
9443 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
9444 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
9445 Add with/use clauses to make Check_Formal_Restriction visible
9446
9447 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9448
9449 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
9450 in-parameters when type of the generic formal is private in the generic
9451 spec and non-private in the body.
9452
9453 2011-08-02 Claire Dross <dross@adacore.com>
9454
9455 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
9456 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
9457 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
9458 * impunit.adb, Makefile.rtl: Take new files into account.
9459
9460 2011-08-02 Robert Dewar <dewar@adacore.com>
9461
9462 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
9463 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
9464
9465 2011-08-02 Yannick Moy <moy@adacore.com>
9466
9467 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
9468 formal mode
9469 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
9470 matching static array bounds, taking into account the special case of
9471 string literals
9472 * sem_ch3.adb: Typo in comment.
9473
9474 2011-08-02 Yannick Moy <moy@adacore.com>
9475
9476 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
9477 which issues an error in formal mode if its argument node is originally
9478 from source
9479 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
9480 has a discriminant specification so that it does not include the case
9481 of derived types
9482 (Derived_Type_Declaration): move here the test that a derived type has a
9483 discriminant specification
9484 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
9485 first element of a component association before accessing its choices
9486 (presence of component association is not enough)
9487 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
9488 declaration is a library item before accessing the next element in a
9489 list, as library items are not member of lists
9490 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
9491 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
9492 Check_Formal_Restriction whenever possible.
9493
9494 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9495
9496 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
9497 reference when needed.
9498
9499 2011-08-02 Bob Duff <duff@adacore.com>
9500
9501 * gnat_ugn.texi: Fix typo.
9502
9503 2011-08-02 Vincent Celier <celier@adacore.com>
9504
9505 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
9506 archive file name. Do not use the full path name of archives for Open
9507 VMS.
9508
9509 2011-08-02 Robert Dewar <dewar@adacore.com>
9510
9511 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
9512 Analyze_Aspect_Specifications
9513 * sem_ch13.adb
9514 (Analyze_Aspect_Specifications): New handling for boolean aspects
9515 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
9516 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
9517 sequence for Analyze_Aspect_Specifications
9518 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
9519 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
9520
9521 2011-08-02 Robert Dewar <dewar@adacore.com>
9522
9523 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
9524 aspects, since these no longer exist.
9525
9526 2011-08-02 Robert Dewar <dewar@adacore.com>
9527
9528 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
9529 semicolon, do not try to see if there are aspects following it.
9530 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
9531 aspect spec.
9532
9533 2011-08-02 Robert Dewar <dewar@adacore.com>
9534
9535 * sem_ch8.adb, aspects.ads: Minor reformatting.
9536
9537 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9538
9539 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
9540 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
9541 extracted from...
9542 (Analyze_Aspect_Specifications): ...here. Call above procedure.
9543
9544 2011-08-02 Yannick Moy <moy@adacore.com>
9545
9546 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
9547 mode on subprogram declaration outside of package specification, unless
9548 it is followed by a pragma Import
9549 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
9550 Access_Type_Declaration): issue error in formal mode on access type
9551 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
9552 incomplete type
9553 (Analyze_Object_Declaration): issue error in formal mode on object
9554 declaration which does not respect SPARK restrictions
9555 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
9556 declaration which does not respect SPARK restrictions
9557 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
9558 error in formal mode on digits or delta constraint
9559 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
9560 decimal fixed point type
9561 (Derived_Type_Declaration): issue error in formal mode on derived type
9562 other than type extensions of tagged record types
9563 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
9564 with check on access definition
9565 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
9566 mode on protected definition.
9567 (Analyze_Task_Definition): issue error in formal mode on task definition
9568
9569 2011-08-02 Robert Dewar <dewar@adacore.com>
9570
9571 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
9572
9573 2011-08-02 Javier Miranda <miranda@adacore.com>
9574
9575 * sem_ch6.adb (Can_Override_Operator): New function.
9576 (Verify_Overriding_Indicator): Add missing code to check overriding
9577 indicator in operators. Fixes regression.
9578 (Check_Overriding_Indicator): Minor reformating after replacing the
9579 code that evaluates if the subprogram can override an operator by
9580 invocations to the above new function.
9581 * einfo.adb
9582 (Write_Field26_Name): Add missing code to ensure that, following
9583 the documentation in einfo.ads, this field is not shown as attribute
9584 "Static_Initialization" on non-dispatching functions.
9585
9586 2011-08-02 Jose Ruiz <ruiz@adacore.com>
9587
9588 * sem_res.adb (Resolve_Call): A call to
9589 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
9590 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
9591 i.e., when the second parameter is of type Time_Span.
9592
9593 2011-08-02 Vincent Celier <celier@adacore.com>
9594
9595 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
9596 with an archive instead of -L<library dir> -l<library name>.
9597
9598 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9599
9600 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
9601 mark the base types In_Use in addition to making the operations
9602 use_visible.
9603
9604 2011-08-02 Ed Falis <falis@adacore.com>
9605
9606 * init.c: add and setup __gnat_signal_mask for the exception signals
9607 * s-inmaop-vxworks.adb: new file.
9608 * s-intman-vxworks.adb: remove unnecessary initializations and
9609 simplify remaining
9610 * s-intman-vxworks.ads: remove unnecessary variable
9611 * s-taprop-vxworks.adb: simplify signal initialization
9612
9613 2011-08-02 Robert Dewar <dewar@adacore.com>
9614
9615 * sem_ch8.adb: Minor code reorganization, comment updates.
9616
9617 2011-08-02 Robert Dewar <dewar@adacore.com>
9618
9619 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
9620 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
9621 here from Sem_Res.
9622 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
9623 (Matching_Static_Array_Bounds): Moved here from Sem_Res
9624
9625 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9626
9627 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
9628 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
9629 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
9630 use_type_clauses, to handle more efficiently use_type and use_all_type
9631 constructs.
9632 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
9633 Ada2012 Use_All_Type clause.
9634 (Use_Class_Wide_Operations): new procedure.
9635
9636 2011-08-02 Robert Dewar <dewar@adacore.com>
9637
9638 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
9639 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
9640 expression to expression function.
9641
9642 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9643
9644 * sem_ch4.adb: transform simple Ada2012 membership into equality only
9645 if types are compatible.
9646
9647 2011-08-02 Yannick Moy <moy@adacore.com>
9648
9649 * sem_res.adb (Matching_Static_Array_Bounds): new function which
9650 returns True if its argument array types have same dimension and same
9651 static bounds at each index.
9652 (Resolve_Actuals): issue an error in formal mode on actuals passed as
9653 OUT or IN OUT paramaters which are not view conversions in SPARK.
9654 (Resolve_Arithmetic_Op): issue an error in formal mode on
9655 multiplication or division with operands of fixed point types which are
9656 not qualified or explicitly converted.
9657 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
9658 Boolean or array type (except String) operands.
9659 (Resolve_Equality_Op): issue an error in formal mode on equality
9660 operators for array types other than String with non-matching static
9661 bounds.
9662 (Resolve_Logical_Op): issue an error in formal mode on logical operators
9663 for array types with non-matching static bounds. Factorize the code in
9664 Matching_Static_Array_Bounds.
9665 (Resolve_Qualified_Expression): issue an error in formal mode on
9666 qualified expressions for array types with non-matching static bounds.
9667 (Resolve_Type_Conversion): issue an error in formal mode on type
9668 conversion for array types with non-matching static bounds
9669
9670 2011-08-02 Robert Dewar <dewar@adacore.com>
9671
9672 * par-ch10.adb: Minor code reorganization (use Nkind_In).
9673
9674 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9675
9676 * par-ch9.adb: save location of entry for proper error message.
9677
9678 2011-08-02 Javier Miranda <miranda@adacore.com>
9679
9680 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
9681 (Use_Full_View) which permits this routine to climb through the
9682 ancestors using the full-view of private parents.
9683 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
9684 Use_Full_View to true in calls to Is_Ancestor.
9685 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
9686 true in call to Is_Ancestor.
9687 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
9688 Use_Full_View to true in call to Is_Ancestor.
9689 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
9690 call to Is_Ancestor.
9691 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
9692 Use_Full_View to true in calls to Is_Ancestor.
9693 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
9694 Make_Select_Specific_Data_Table, Register_Primitive,
9695 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
9696 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
9697 to true in call to Is_Ancestor.
9698 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
9699 Use_Full_View to true in calls to Is_Ancestor.
9700 * exp_cg.adb
9701 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
9702 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
9703
9704 2011-08-02 Robert Dewar <dewar@adacore.com>
9705
9706 * gnat_rm.texi: Minor reformatting.
9707 * sem_prag.adb: Minor reformatting.
9708
9709 2011-08-02 Tristan Gingold <gingold@adacore.com>
9710
9711 * vms_data.ads: Add VMS qualifier for -gnateP.
9712
9713 2011-08-02 Robert Dewar <dewar@adacore.com>
9714
9715 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
9716 * par-ch7.adb (P_Package): Proper placement of aspects for package
9717 decl/instantiation.
9718 * par-endh.adb (Check_End): Ad Is_Sloc parameter
9719 (End_Statements): Add Is_Sloc parameterr
9720 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
9721 (Check_End): Ad Is_Sloc parameter
9722 (End_Statements): Add Is_Sloc parameterr
9723
9724 2011-08-02 Vincent Celier <celier@adacore.com>
9725
9726 * ug_words: Add VMS qualifier equivalent to -gnateP:
9727 /SYMBOL_PREPROCESSING.
9728
9729 2011-08-02 Jose Ruiz <ruiz@adacore.com>
9730
9731 * gnat-style.texi: For hexadecimal numeric literals the typical
9732 grouping of digits is 4 to represent 2 bytes.
9733 A procedure spec which is split into several lines is indented two
9734 characters.
9735
9736 2011-08-02 Yannick Moy <moy@adacore.com>
9737
9738 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
9739 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
9740 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
9741 properly qualified
9742 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
9743 choice in array aggregate
9744 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
9745 mark as ancestor
9746 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
9747 positional and named aggregate for record, or others in record
9748 aggregate, or multiple choice in record aggregate
9749 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
9750 array operands to logical operations AND, OR and XOR do not have the
9751 same static lower and higher bounds
9752 * sem_ch5.adb, sinfo.ads: Correct typos in comments
9753
9754 2011-08-01 Robert Dewar <dewar@adacore.com>
9755
9756 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
9757 Replaces Last_Source_Node_In_Sequence.
9758 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
9759 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
9760 parens and blank in string (this was inconsistently implemented).
9761 * errout.ads
9762 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
9763 blank in string (this was inconsistently implemented).
9764 * gnat1drv.adb
9765 (Set_Global_Switches): Set formal mode switches appropriately
9766 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
9767 * par-prag.adb
9768 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
9769 call Set_Error_Msg_Lang to set "spark" as language name.
9770 * par.adb: Remove unnecessary call to set formal language for errout
9771 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
9772 appropriately and call Set_Error_Msg_Lang to set "spark" as language
9773 name.
9774 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
9775 calls to it, moved after resolution so that types are known
9776 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
9777 result of concatenation is not of type String
9778 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
9779 concatenation is not properly restricted
9780 * gnat_rm.texi: Add doc on pragma Spark_95.
9781 * gcc-interface/Makefile.in: Remove obsolete target pairs for
9782 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
9783 * gcc-interface/Make-lang.in: Update dependencies.
9784
9785 2011-08-01 Javier Miranda <miranda@adacore.com>
9786
9787 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
9788 condition that detects if the overridden operation must replace an
9789 existing entity.
9790
9791 2011-08-01 Javier Miranda <miranda@adacore.com>
9792
9793 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
9794 code declarations inserted by Insert_Actions in each alternative of the
9795 N_Case_Expression node.
9796
9797 2011-08-01 Robert Dewar <dewar@adacore.com>
9798
9799 * sem_ch6.adb: Minor code reorganization.
9800 * sem_util.adb: Minor reformatting.
9801
9802 2011-08-01 Pascal Obry <obry@adacore.com>
9803
9804 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
9805 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
9806
9807 2011-08-01 Yannick Moy <moy@adacore.com>
9808
9809 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
9810 literal or operator symbol which is prefixed
9811 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
9812 mode on access attributes.
9813 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
9814 that concatenation operands are properly restricted in formal mode
9815 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
9816 Analyze_Concatenation_Operand. Issue an error in formal mode if the
9817 result of the concatenation has a type different from String.
9818 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
9819 Analyze_Quantified_Expression, Analyze_Slice,
9820 Analyze_Null): issue an error in formal mode on unsupported constructs
9821 * sem_ch5.adb
9822 (Analyze_Block_Statement): only issue error on source block statement
9823 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
9824 function which returns the last node in a list of nodes for which
9825 Comes_From_Source returns True, if any
9826 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
9827 Last_Source_Node_In_Sequence
9828 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
9829 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
9830 mode on unsupported constructs
9831 * sem_ch9.adb Do not return after issuing error in formal mode, as the
9832 rest of the actions may be needed later on since the error is marked as
9833 not serious.
9834 * sinfo.ads: Typos in comments.
9835
9836 2011-08-01 Pascal Obry <obry@adacore.com>
9837
9838 * projects.texi: Minor editing.
9839
9840 2011-08-01 Yannick Moy <moy@adacore.com>
9841
9842 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
9843 insertion character ~~
9844 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
9845 (Set_Error_Msg_Lang): new procedure which fixes the language for use
9846 with insertion character ~~
9847 (Set_Msg_Text): treat insertion character ~~
9848 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
9849 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
9850 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
9851 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
9852 errors related to the formal language restriction not serious
9853 (insertion character |).
9854 * par.adb (Par): set formal language for error messages if needed
9855 * sem_ch6.adb (Check_Missing_Return): take into account possible
9856 generated statements at the end of the function
9857 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
9858 enumeration value to define a new pragma SPARK_95
9859 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
9860 SPARK_Version): new type and variables to store the SPARK version
9861 (none by default).
9862 (SPARK_Mode): return True when SPARK_Version is set
9863 * par-prag.adb: Correct indentation
9864 (Prag): take Pragma_SPARK_95 into account
9865 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
9866 into account.
9867
9868 2011-08-01 Robert Dewar <dewar@adacore.com>
9869
9870 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
9871 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
9872 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
9873
9874 2011-08-01 Pascal Obry <obry@adacore.com>
9875
9876 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
9877 Target_Name to Get_Path call.
9878 (Parse_Single_Project): Likewise.
9879 (Post_Parse_Context_Clause): Likewise.
9880 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
9881 Call Initialise_Project_Path with the proper Target_Name.
9882 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
9883 search path.
9884 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
9885 with the proper Target_Name.
9886 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
9887 Part.Parse routine.
9888 (Parse_Project_And_Apply_Config): Likewise.
9889 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
9890 This is fine as this part of the code is supporting only native
9891 compilation.
9892 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
9893 is fine as this part of the code is supporting only native compilation.
9894
9895 2011-08-01 Yannick Moy <moy@adacore.com>
9896
9897 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
9898 of homonym, unless the homonym is one of the cases allowed in SPARK
9899 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
9900 package declaration occurring after a body.
9901
9902 2011-08-01 Robert Dewar <dewar@adacore.com>
9903
9904 * checks.adb, exp_ch4.adb: Minor reformatting.
9905
9906 2011-08-01 Javier Miranda <miranda@adacore.com>
9907
9908 * einfo.ads (Access_Disp_Table): Fix documentation.
9909 (Dispatch_Table_Wrappers): Fix documentation.
9910
9911 2011-08-01 Pascal Obry <obry@adacore.com>
9912
9913 * prj-env.adb, prj-env.ads: Minor reformatting.
9914
9915 2011-08-01 Yannick Moy <moy@adacore.com>
9916
9917 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
9918 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
9919 procedures out of these packages.
9920 * errout.ads, errout.adb
9921 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
9922 procedures in of this package
9923 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
9924 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
9925 on misplaced later vs initial declarations, like in Ada 83
9926 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
9927 formal mode on attribute of private type whose full type declaration
9928 is not visible
9929 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
9930 package declaration inside a package specification
9931 (Analyze_Full_Type_Declaration): issue error in formal mode on
9932 controlled type or discriminant type
9933 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
9934 user-defined operator means that it should come from the source
9935 (New_Overloaded_Entity): issue error in formal mode on overloaded
9936 entity.
9937 * sem_ch6.ads, sem_ch13.ads: typos in comments.
9938
9939 2011-08-01 Thomas Quinot <quinot@adacore.com>
9940
9941 * atree.adb: Minor reformatting.
9942 * checks.adb: Minor reformatting.
9943
9944 2011-08-01 Vincent Celier <celier@adacore.com>
9945
9946 * s-parame-vms-ia64.ads: Fix typo in comment
9947 Minor reformatting
9948 * s-parame-vms-restrict.ads: Removed, unused.
9949
9950 2011-08-01 Javier Miranda <miranda@adacore.com>
9951
9952 * exp_ch3.adb
9953 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
9954 * sem_ch3.adb
9955 (Constrain_Index): Remove side effects in the evaluation of the bounds.
9956 * sem_ch3.ads, sem_ch3.adb
9957 (Is_Constant_Bound): New extended version of the subprogram that was
9958 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
9959 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
9960 * sem_aux.ads (Constant_Value): Fix typo in comment.
9961 * checks.adb (Generate_Index_Checks): New implementation which, for
9962 array objects with constant bounds, generates the runtime check
9963 referencing the bounds of the array type. For other cases this routine
9964 provides its previous behavior obtaining such values from the array
9965 object.
9966 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
9967 parent type.
9968 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
9969 we cannot have semantic interpretations of the new node.
9970
9971 2011-08-01 Ed Schonberg <schonberg@adacore.com>
9972
9973 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
9974 expressions.
9975
9976 2011-08-01 Arnaud Charlet <charlet@adacore.com>
9977
9978 * sem_ch8.adb: Minor code editing.
9979 * s-vxwext.adb: Remove trailing space.
9980 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
9981 consistency with other files.
9982
9983 2011-08-01 Thomas Quinot <quinot@adacore.com>
9984
9985 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
9986
9987 2011-08-01 Ed Schonberg <schonberg@adacore.com>
9988
9989 * par-ch10.adb: reject parameterized expressions as compilation unit.
9990 * sem_ch4.adb: handle properly conditional expression with overloaded
9991 then_clause and no else_clause.
9992
9993 2011-08-01 Tristan Gingold <gingold@adacore.com>
9994
9995 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
9996 like done by System.Aux_DEC.
9997 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
9998
9999 2011-08-01 Yannick Moy <moy@adacore.com>
10000
10001 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
10002 missing label at end of declaration (subprogram or package)
10003 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
10004 of positional and named parameter association
10005 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
10006 Error_Msg_SP which adds a prefix to the error message giving the name
10007 of the formal language analyzed
10008 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
10009 access result type in subprogram, unconstrained array as result type,.
10010 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
10011 procedure
10012 * sem_ch8.adb: Code clean up.
10013
10014 2011-08-01 Javier Miranda <miranda@adacore.com>
10015
10016 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
10017 * einfo.ads (Access_Disp_Table): Fix documentation.
10018 (Dispatch_Table_Wrappers): Fix documentation.
10019 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
10020 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
10021 to enforce the documentation of this attribute.
10022 (Set_Is_Interface): Cleanup the assertion.
10023 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
10024 the Underlying_Type entity before reading attribute Access_Disp_Table.
10025 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
10026 Locate the Underlying_Type before reading attribute Access_Disp_Table.
10027 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
10028 the Underlying_Type entity before reading attribute Access_Disp_Table.
10029 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
10030 Locate the Underlying_Type entity before reading attribute
10031 Access_Disp_Table.
10032
10033 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10034
10035 * s-poosiz.ads: Additional overriding indicators.
10036
10037 2011-08-01 Yannick Moy <moy@adacore.com>
10038
10039 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
10040 formal mode.
10041 (Analyze_Iteration_Scheme): issue error in formal mode when loop
10042 parameter specification does not include a subtype mark.
10043 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
10044 formal mode on abstract subprogram.
10045 (Analyze_Subprogram_Specification): issue error in formal mode on
10046 user-defined operator.
10047 (Process_Formals): issue error in formal mode on access parameter and
10048 default expression.
10049 * sem_ch9.adb (Analyze_Abort_Statement,
10050 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
10051 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
10052 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
10053 Analyze_Requeue, Analyze_Selective_Accept,
10054 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
10055 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
10056 issue error in formal mode on user-defined raise statement.
10057
10058 2011-08-01 Thomas Quinot <quinot@adacore.com>
10059
10060 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
10061 declaration being hidden when overriding an implicit inherited
10062 subprogram.
10063 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
10064 (-gnats), do not complain about a source file that contains only a
10065 pragma No_Body.
10066
10067 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10068
10069 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
10070 variable if already set.
10071
10072 2011-08-01 Arnaud Charlet <charlet@adacore.com>
10073
10074 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
10075 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
10076 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
10077 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
10078 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
10079 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
10080 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
10081 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
10082 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
10083 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
10084 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
10085 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
10086 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
10087 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
10088 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
10089 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
10090 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
10091 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
10092 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
10093 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
10094 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
10095 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
10096 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
10097 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
10098 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
10099 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
10100 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
10101 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
10102 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
10103 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
10104 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
10105 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
10106 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
10107 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
10108 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
10109 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
10110 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
10111 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
10112 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
10113 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
10114 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
10115 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
10116 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
10117 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
10118 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
10119 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
10120 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
10121 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
10122 s-osinte-mingw.ads: Update to GPLv3 run-time license.
10123 Use GNAT instead of GNARL.
10124
10125 2011-08-01 Bob Duff <duff@adacore.com>
10126
10127 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
10128 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
10129 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
10130 reformatting.
10131
10132 2011-08-01 Yannick Moy <moy@adacore.com>
10133
10134 * debug.adb (d.D) reverve flag for the SPARK mode
10135 (d.E) reverve flag for SPARK generation mode
10136 (d.F) reverve flag for Why generation mode
10137 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
10138 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
10139 functions which return True when the corresponding modes are set
10140 (Formal_Language): return "spark" or "alfa" when in formal verification
10141 mode.
10142 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
10143 Error_Msg to prefix the error message with a tag giving the formal
10144 language
10145 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
10146 message with a tag giving the formal language
10147 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
10148 block statement
10149 (Analyze_Case_Statement): issue error in formal mode on case statement
10150 with a single "others" case alternative
10151 (Analyze_Exit_Statement): issue errors in formal mode on exit
10152 statements which do not respect SPARK restrictions
10153 (Analyze_Goto_Statement): issue error in formal mode on goto statement
10154 (Check_Unreachable_Code): always issue an error (not a warning) in
10155 formal mode on unreachable code (concerns both code after an infinite
10156 loop and after an unconditional jump, both not allowed in SPARK)
10157 * sem_ch6.adb (Analyze_Return_Statement): add call to
10158 Set_Return_Present for a procedure containing a return statement
10159 (already done for functions in Analyze_Function_Return)
10160 (Analyze_Function_Return): issue error in formal mode on extended
10161 return or if return is not last statement in function
10162 (Check_Missing_Return): issue error in formal mode if function does
10163 not end with return or if procedure contains a return
10164 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
10165 function to detect if there is an inner scope of its parameter S which
10166 is a loop.
10167
10168 2011-08-01 Thomas Quinot <quinot@adacore.com>
10169
10170 * sem_ch6.ads: Minor reformatting.
10171
10172 2011-08-01 Javier Miranda <miranda@adacore.com>
10173
10174 * sem_util.adb (Abstract_Interface_List): Complete condition when
10175 processing private type declarations to avoid reading unavailable
10176 attribute.
10177 (Is_Synchronized_Tagged_Type): Complete condition when processing
10178 private extension declaration nodes to avoid reading unavailable
10179 attribute.
10180
10181 2011-08-01 Thomas Quinot <quinot@adacore.com>
10182
10183 * sem_ch3.adb: Minor reformatting.
10184
10185 2011-08-01 Thomas Quinot <quinot@adacore.com>
10186
10187 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
10188 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
10189 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
10190 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
10191 for VMS, instead parametrize the common implementation with
10192 System.Parameters declarations.
10193
10194 2011-08-01 Eric Botcazou <ebotcazou@adacore.com>
10195
10196 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
10197
10198 2011-08-01 Tristan Gingold <gingold@adacore.com>
10199
10200 * seh_init.c: Fix SEH handler installation on win64.
10201
10202 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10203
10204 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
10205 double analysis of an anonymous access to subprogram, because it can
10206 lead to improper sharing of profiles and a back-end crash.
10207
10208 2011-08-01 Robert Dewar <dewar@adacore.com>
10209
10210 * make.adb, sem_ch4.adb: Minor reformatting.
10211 * gcc-interface/Make-lang.in: Update dependencies.
10212 * sem_util.adb, exp_ch5.adb: Minor reformatting.
10213
10214 2011-08-01 Arnaud Charlet <charlet@adacore.com>
10215
10216 * gnat_rm.texi: Fix definition of Long_Integer.
10217
10218 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10219
10220 * exp_aggr.adb: check limit size of static aggregate unconditionally,
10221 to prevent storage exhaustion.
10222 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
10223 finalized is a function body, insert the cleanup code before the final
10224 return statement, to prevent spurious warnings.
10225 * s-pooglo.ads: add overriding indicator.
10226
10227 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10228
10229 * sem_ch4.adb (Operator_Check): improve error message when both a
10230 with_clause and a use_clause are needed to make operator usage legal.
10231 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
10232 determine whether a compilation unit is visible within an other,
10233 either through a with_clause in the current unit, or a with_clause in
10234 its library unit or one one of its parents.
10235
10236 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10237
10238 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
10239 over an arbitrary expression of an array or container type.
10240 * lib-xref.adb: clarify comment.
10241
10242 2011-08-01 Bob Duff <duff@adacore.com>
10243
10244 * einfo.ads: Minor reformatting.
10245 * debug.adb: Minor comment improvement.
10246
10247 2011-08-01 Javier Miranda <miranda@adacore.com>
10248
10249 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
10250 consider hidden subprograms as valid candidates.
10251
10252 2011-08-01 Arnaud Charlet <charlet@adacore.com>
10253
10254 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
10255
10256 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
10257
10258 * gnat_ugn.texi: Fix typo.
10259
10260 2011-08-01 Robert Dewar <dewar@adacore.com>
10261
10262 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
10263 lib-xref.adb: Minor reformatting
10264
10265 2011-08-01 Gary Dismukes <dismukes@adacore.com>
10266
10267 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
10268 when to generate a call to Move_Final_List.
10269 (Has_Controlled_Parts): Remove this function.
10270
10271 2011-08-01 Geert Bosch <bosch@adacore.com>
10272
10273 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
10274 "," in choice list.
10275
10276 2011-08-01 Thomas Quinot <quinot@adacore.com>
10277
10278 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
10279 explicit raise of a predefined exception as Comes_From_Source if the
10280 original N_Raise_Statement comes from source.
10281
10282 2011-08-01 Robert Dewar <dewar@adacore.com>
10283
10284 * sinfo.ads: Add comment.
10285 * sem_ch6.adb: Minor reformatting.
10286
10287 2011-08-01 Robert Dewar <dewar@adacore.com>
10288
10289 * freeze.adb (Freeze_Entity): Refine check for bad component size
10290 clause to avoid rejecting confirming clause when atomic/aliased present.
10291
10292 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10293
10294 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
10295 better determine whether an entity reference is a write.
10296 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
10297 subcomponent.
10298 * lib-xref.adb (Output_References): Do no suppress a read reference at
10299 the same location as an immediately preceeding modify-reference, to
10300 handle properly in-out actuals.
10301
10302 2011-08-01 Tristan Gingold <gingold@adacore.com>
10303
10304 * env.c (__gnat_setenv) [VMS]: Refine previous change.
10305
10306 2011-08-01 Quentin Ochem <ochem@adacore.com>
10307
10308 * i-cstrin.adb (New_String): Changed implementation, now uses only the
10309 heap to compute the result.
10310
10311 2011-08-01 Robert Dewar <dewar@adacore.com>
10312
10313 * atree.ads: Minor reformatting.
10314
10315 2011-08-01 Emmanuel Briot <briot@adacore.com>
10316
10317 * g-expect.adb (Get_Command_Output): Fix memory leak.
10318
10319 2011-08-01 Geert Bosch <bosch@adacore.com>
10320
10321 * cstand.adb (P_Float_Type): New procedure to print the definition of
10322 predefined fpt types.
10323 (P_Mixed_Name): New procedure to print a name using mixed case
10324 (Print_Standard): Use P_Float_Type for printing floating point types
10325 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
10326 precision IEEE float.
10327
10328 2011-08-01 Thomas Quinot <quinot@adacore.com>
10329
10330 * sem_ch3.adb: Minor reformatting.
10331
10332 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10333
10334 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
10335 the completion of a generic function, insert the new body rather than
10336 rewriting the original.
10337
10338 2011-08-01 Yannick Moy <moy@adacore.com>
10339
10340 * sinfo.ads, errout.ads: Typos in comments.
10341
10342 2011-08-01 Robert Dewar <dewar@adacore.com>
10343
10344 * par-endh.adb: Minor reformatting.
10345
10346 2011-08-01 Robert Dewar <dewar@adacore.com>
10347
10348 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
10349 (Pre_Post_Aspects): New subtype.
10350 * par-ch12.adb (P_Generic): New syntax for aspects in packages
10351 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
10352 * par-ch7.adb (P_Package): Remove Decl parameter
10353 (P_Package): Handle new syntax for aspects (before IS)
10354 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
10355 new aspect syntax
10356 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
10357 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
10358 (P_Package): Remove Decl parameter
10359 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
10360 aspects
10361 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
10362 specs
10363 * sem_util.ads, sem_util.adb (Static_Boolean): New function
10364 * sinfo.ads: Document new syntax for aspects in packages etc.
10365 * sprint.adb: Handle new syntax of aspects before IS in package
10366
10367 2011-08-01 Thomas Quinot <quinot@adacore.com>
10368
10369 * atree.ads: Minor reformatting.
10370 * sem_prag.adb: Minor reformatting.
10371
10372 2011-08-01 Robert Dewar <dewar@adacore.com>
10373
10374 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
10375 case expr alternative.
10376
10377 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10378
10379 * sem_ch12.adb: Fix typo.
10380
10381 2011-08-01 Geert Bosch <bosch@adacore.com>
10382
10383 * sem_prag.adb (Check_No_Link_Name): New procedure.
10384 (Process_Import_Or_Interface): Use Check_No_Link_Name.
10385 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
10386 instead of Standard_Long_Long_Float_Size global. Preparation for
10387 eventual removal of per type constants.
10388 * exp_util.ads (Get_Stream_Size): New function returning the stream
10389 size value of subtype E.
10390 * exp_util.adb (Get_Stream_Size): Implement new function.
10391 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
10392 function.
10393 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
10394 * einfo.adb:
10395 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
10396
10397 2011-08-01 Geert Bosch <bosch@adacore.com>
10398
10399 * cstand.adb: Fix comments.
10400 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
10401 count of arguments.
10402
10403 2011-08-01 Robert Dewar <dewar@adacore.com>
10404
10405 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
10406
10407 2011-08-01 Geert Bosch <bosch@adacore.com>
10408
10409 * atree.ads: Fix comment.
10410
10411 2011-08-01 Robert Dewar <dewar@adacore.com>
10412
10413 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
10414 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
10415 * par.adb: Add with for Namet.Sp.
10416 * par-tchk.adb: Minor reformatting.
10417
10418 2011-08-01 Vincent Celier <celier@adacore.com>
10419
10420 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
10421 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
10422 of the init procedure of a SAL.
10423 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
10424 New procedure.
10425
10426 2011-08-01 Thomas Quinot <quinot@adacore.com>
10427
10428 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
10429 reformatting.
10430
10431 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10432
10433 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
10434
10435 2011-08-01 Thomas Quinot <quinot@adacore.com>
10436
10437 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
10438 conformant with its spec (return True only for types that have
10439 an overriding Initialize primitive operation that prevents them from
10440 having preelaborable initialization).
10441 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
10442 initialization for controlled types in Ada 2005 or later mode.
10443
10444 2011-08-01 Robert Dewar <dewar@adacore.com>
10445
10446 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
10447 Postcondition.
10448 (Same_Aspect): New function.
10449 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
10450 Type_Invariant, Precondition, Postcondition.
10451 * snames.ads-tmpl: Add Name_Type_Invariant.
10452
10453 2011-08-01 Robert Dewar <dewar@adacore.com>
10454
10455 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
10456 here.
10457 (Freeze_All_Ent): Fix error in handling inherited aspects.
10458 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
10459 already analyzed, but don't skip entire processing of a declaration,
10460 that's wrong in some cases of declarations being rewritten.
10461 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
10462 Don't delay for integer, string literals
10463 Treat predicates in usual manner for delay, remove special case code,
10464 not needed.
10465 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
10466 (Build_Predicate_Function): Update saved expression in aspect
10467 (Build_Invariant_Procedure): Update saved expression in aspect
10468 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
10469 of replacement of discriminant references if the reference is simple.
10470
10471 2011-08-01 Robert Dewar <dewar@adacore.com>
10472
10473 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
10474 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
10475 Static_Predicate and Dynamic_Predicate.
10476 (Build_Predicate_Function): Add processing for Static_Predicate
10477 and Dynamic_Predicate.
10478 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
10479 (From_Static_Predicate): New flag
10480 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
10481
10482 2011-08-01 Robert Dewar <dewar@adacore.com>
10483
10484 * usage.adb: Documentation cleanup for Ada version modes in usage.
10485 * expander.adb: Minor reformatting.
10486
10487 2011-08-01 Robert Dewar <dewar@adacore.com>
10488
10489 * atree.ads: Minor comment fix.
10490 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
10491 a-witeio.ads, sem_prag.adb: Minor reformatting.
10492
10493 2011-08-01 Doug Rupp <rupp@adacore.com>
10494
10495 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
10496 pointers. Use descrip.h header file for convenience. Add some
10497 comments.
10498
10499 2011-08-01 Robert Dewar <dewar@adacore.com>
10500
10501 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
10502 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
10503 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
10504 New procedure.
10505 (Check_Aspect_At_End_Of_Declarations): New procedure
10506 (Analye_Aspect_Specification): Minor changes for above procedures
10507 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
10508 specification node as well.
10509
10510 2011-08-01 Pascal Obry <obry@adacore.com>
10511
10512 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
10513 Windows files. Use GetFilesAttributes() in this case to check for file
10514 existence instead of returning with an error code.
10515
10516 2011-08-01 Vincent Celier <celier@adacore.com>
10517
10518 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
10519 High is above Source length.
10520
10521 2011-08-01 Robert Dewar <dewar@adacore.com>
10522
10523 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
10524
10525 2011-08-01 Robert Dewar <dewar@adacore.com>
10526
10527 * aspects.ads (Boolean_Aspects): New subtype.
10528 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
10529 for derived types in cases where the parent type and derived type have
10530 aspects.
10531 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
10532 with aspects when parent type also has aspects.
10533 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
10534 boolean expression at this point).
10535 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
10536 accordance with final decision on the Ada 2012 feature.
10537 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
10538
10539 2011-08-01 Matthew Heaney <heaney@adacore.com>
10540
10541 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
10542
10543 2011-08-01 Pascal Obry <obry@adacore.com>
10544
10545 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
10546 Fix Replace_Slice when High is above current string size.
10547 (Replace_Slice): Fix DL computation when High is above current
10548 string length.
10549
10550 2011-08-01 Gary Dismukes <dismukes@adacore.com>
10551
10552 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
10553
10554 2011-08-01 Matthew Heaney <heaney@adacore.com>
10555
10556 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
10557 of node.
10558
10559 2011-08-01 Pascal Obry <obry@adacore.com>
10560
10561 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
10562 reformatting.
10563
10564 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10565
10566 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
10567 access to protected subprograms in generic bodies.
10568 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
10569 protected type, indicate that the convention of the subprogram is
10570 Convention_Protected, because it may be used in subsequent declarations
10571 within the protected declaration.
10572
10573 2011-08-01 Vincent Celier <celier@adacore.com>
10574
10575 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
10576 and "final" procedures when the name of the library is "ada", to avoid
10577 duplicate symbols "adainit" and "adafinal" in executables.
10578
10579 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10580
10581 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
10582 quantified expression that appears within a postcondition and uses the
10583 Ada2012 'Result attribute.
10584
10585 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10586
10587 * init.c (__gnat_error_handler): Cast reason to int.
10588 (__gnat_install_handler): Explain sa_sigaction use.
10589
10590 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10591
10592 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
10593 subprogram has copy-in copy-out parameters, try to promote the mode of
10594 the return type if it is passed in registers.
10595
10596 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10597
10598 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
10599 left operand as addressable.
10600
10601 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10602
10603 * gcc-interface/gigi.h (build_function_stub): Remove.
10604 (build_return_expr): Likewise.
10605 (convert_vms_descriptor): Declare.
10606 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
10607 (build_function_stub): Move to...
10608 * gcc-interface/utils2.c (build_return_expr): Move to...
10609 * gcc-interface/trans.c (build_function_stub): ...here.
10610 (build_return_expr): ...here.
10611 (Subprogram_Body_to_gnu): Add local variable for language_function.
10612 Disconnect the parameter attributes cache, if any, once done with it.
10613 Call end_subprog_body only after setting the end_locus.
10614 Build the stub associated with the function, if any, at the very end.
10615 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
10616 variables and streamline control flow.
10617
10618 2011-07-23 Arnaud Charlet <charlet@adacore.com>
10619
10620 PR ada/49819
10621 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
10622 g-trasym-dwarf.adb.
10623
10624 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10625
10626 PR bootstrap/49794
10627 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
10628 Assign to act.sa_sigaction.
10629 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
10630 current->return_address to char * before arithmetic.
10631
10632 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10633
10634 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
10635 Correct argument types.
10636 Extract code from reason.
10637 (__gnat_install_handler): Assign to act.sa_sigaction.
10638
10639 2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
10640
10641 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
10642 (GNAT1_OBJS): ...here.
10643
10644 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
10645
10646 PR ada/48711
10647 * g-socthi-mingw.adb (Fill): Fix formatting.
10648
10649 * gcc-interface/gigi.h: Move around comment.
10650
10651 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10652
10653 PR ada/46350
10654 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
10655
10656 2011-07-14 Florian Weimer <fw@deneb.enyo.de>
10657
10658 PR ada/48711
10659 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
10660
10661 2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
10662
10663 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
10664 range comparison if Pmode is SImode.
10665
10666 2011-07-12 Laurent GUERBY <laurent@guerby.net>
10667 Eric Botcazou <ebotcazou@adacore.com>
10668
10669 * adadecode.c: Wrap up in extern "C" block.
10670 * adadecode.h: Likewise.
10671 * adaint.c: Likewise. Remove 'const' keyword.
10672 * adaint.h: Likewise.
10673 * argv.c: Likewise.
10674 * atree.h: Likewise.
10675 * cio.c: Likewise.
10676 * cstreams.c: Likewise.
10677 * env.c: Likewise.
10678 * exit.c: Likewise.
10679 * fe.h: Likewise.
10680 * final.c: Likewise.
10681 * init.c: Likewise.
10682 * initialize.c: Likewise.
10683 * link.c: Likewise.
10684 * namet.h: Likewise.
10685 * nlists.h: Likewise.
10686 * raise.c: Likewise.
10687 * raise.h: Likewise.
10688 * repinfo.h: Likewise.
10689 * seh_init.c: Likewise.
10690 * targext.c: Likewise.
10691 * tracebak.c: Likewise.
10692 * uintp.h: Likewise.
10693 * urealp.h: Likewise.
10694 * xeinfo.adb: Wrap up generated C code in extern "C" block.
10695 * xsinfo.adb: Likewise.
10696 * xsnamest.adb: Likewise.
10697 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
10698 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
10699 * gcc-interface/misc.c: Likewise.
10700 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
10701 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
10702 ada/targext.o here...
10703 (GNAT_ADA_OBJS): ...and not here.
10704 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
10705 (GNATBIND_OBJS): Reorder.
10706
10707 2011-07-07 Richard Henderson <rth@redhat.com>
10708
10709 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
10710 dwarf2out_frame_init.
10711
10712 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
10713
10714 * gcc-interface/misc.c (gnat_init): Tweak previous change.
10715
10716 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10717
10718 PR target/39150
10719 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
10720
10721 2011-07-06 Richard Guenther <rguenther@suse.de>
10722
10723 * gcc-interface/misc.c (gnat_init): Merge calls to
10724 build_common_tree_nodes and build_common_tree_nodes_2.
10725 Re-initialize boolean_false_node.
10726
10727 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
10728 Olivier Hainque <hainque@adacore.com>
10729 Nicolas Setton <setton@adacore.com>
10730
10731 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
10732 the type according to the ARTIFICIAL_P parameter.
10733 (create_type_decl): Likewise.
10734 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
10735
10736 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
10737
10738 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
10739 (gnatbind): Likewise.
10740
10741 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10742
10743 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
10744
10745 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
10746
10747 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
10748 local variable throughout. Remove useless call to Base_Type.
10749 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
10750 Take it also into account for the volatileness of the field. Set the
10751 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
10752
10753 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
10754
10755 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
10756 on a dereference built for a by-ref object if it has an address clause.
10757
10758 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
10759
10760 * einfo.ads (Address_Taken): Document use for the second argument of
10761 Asm_Input and Asm_Output attributes.
10762 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
10763 argument is an entity name, then set Address_Taken on it.
10764 <Attribute_Asm_Output>: Likewise.
10765 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
10766 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
10767 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
10768 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
10769
10770 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
10771
10772 PR middle-end/46500
10773 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
10774
10775 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10776
10777 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
10778 (ada/utils.o): Update dependencies.
10779 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
10780 ../../../libcpp/libcpp.a.
10781 * gcc-interface/utils.c: Include common/common-target.h.
10782 (process_attributes): Use targetm_common.have_named_sections.
10783
10784 2011-06-07 Richard Guenther <rguenther@suse.de>
10785
10786 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
10787 set_sizetype.
10788
10789 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
10790
10791 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
10792 TREE_THIS_NOTRAP flag.
10793
10794 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
10795
10796 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
10797 Fix thinko.
10798
10799 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
10800
10801 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
10802 constants whose full view has discriminants specially.
10803
10804 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
10805
10806 * gcc-interface/utils.c: Include diagnostic.h.
10807 (gnat_write_global_declarations): Output debug information for all
10808 global type declarations before finalizing the compilation unit.
10809 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
10810
10811 2011-05-25 Jakub Jelinek <jakub@redhat.com>
10812
10813 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
10814
10815 2011-05-25 Kai Tietz <ktietz@redhat.com>
10816
10817 * adaint.c (__gnat_to_canonical_file_list_next): Use array
10818 initialization instead of const/none-const pointer assignment.
10819
10820 2011-05-24 Joseph Myers <joseph@codesourcery.com>
10821
10822 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
10823 $(EXTRA_GNAT1_OBJS).
10824 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
10825 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
10826 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
10827 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
10828 libcommon-target.a instead of prefix.o.
10829
10830 2011-05-21 Joseph Myers <joseph@codesourcery.com>
10831
10832 PR ada/49097
10833 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
10834
10835 2011-05-20 Joseph Myers <joseph@codesourcery.com>
10836
10837 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
10838 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
10839 instead of version.o.
10840
10841 2011-05-18 Kai Tietz <ktietz@redhat.com>
10842
10843 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
10844 boolean_false_node instead of integer_zero_node.
10845 (convert_with_check): Likewise.
10846 * gcc-interface/decl.c (choices_to_gnu): Likewise.
10847
10848 2011-05-12 Eric Botcazou <ebotcazou@adacore.com>
10849
10850 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
10851 type of the parameter is an unconstrained array, convert the actual to
10852 the type of the formal in the In Out and Out cases as well.
10853
10854 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
10855
10856 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
10857 call build_function_type_array or build_varargs_function_type_array
10858 instead.
10859 (create_subprog_type): Don't call build_function_type; call
10860 build_function_type_vec instead.
10861
10862 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
10863
10864 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
10865 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
10866 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
10867
10868 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
10869
10870 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
10871
10872 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
10873 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
10874
10875 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
10876
10877 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
10878
10879 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
10880
10881 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
10882 instead of accessing TYPE_ARG_TYPES directly.
10883 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
10884
10885 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
10886
10887 PR ada/48844
10888 * gcc-interface/gigi.h (get_variant_part): Declare.
10889 * gcc-interface/decl.c (get_variant_part): Make global.
10890 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
10891 types have the same constant size, are record types and T1 has a
10892 variant part while T2 doesn't.
10893
10894 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
10895
10896 * gcc-interface/utils.c (begin_subprog_body): Do not call
10897 get_pending_sizes.
10898 (end_subprog_body): Likewise.
10899
10900 2011-05-04 Richard Guenther <rguenther@suse.de>
10901
10902 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
10903 int_const_binop.
10904 (pos_to_constructor): Likewise.
10905
10906 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10907 Eric Botcazou <ebotcazou@adacore.com>
10908
10909 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
10910 of build_function_type. Adjust calls to...
10911 (build_raise_check): ...this. Do not take a void_tree parameter.
10912 Call build_function_type_list instead of build_function_type.
10913 Fix head comment and swap couple of conditional blocks.
10914
10915 2011-04-30 Eric Botcazou <ebotcazou@adacore.com>
10916
10917 * gnatvsn.ads (Library_Version): Bump to 4.7.
10918 (Current_Year): Bump to 2011.
10919
10920 2011-04-29 Michael Matz <matz@suse.de>
10921
10922 * gcc-interface/misc.c (gnat_handle_option): Set
10923 warn_maybe_uninitialized.
10924
10925 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
10926
10927 * gnat_ugn.texi (Complexity Metrics Control): Update link to
10928 the Watson/McCabe paper.
10929
10930 2011-04-23 Jim Meyering <meyering@redhat.com>
10931
10932 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
10933
10934 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
10935
10936 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
10937 onto the new type.
10938
10939 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
10940
10941 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
10942 parameter.
10943 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
10944 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
10945 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
10946 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
10947 <all>: Do not set flags on the reused DECL node coming from an alias.
10948 Set DECL_IGNORED_P on the DECL node built for subprograms if they
10949 don't need debug info here...
10950 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
10951 (gigi): Adjust calls to create_subprog_decl.
10952 (build_raise_check): Likewise.
10953 (establish_gnat_vms_condition_handler): Likewise.
10954 (Compilation_Unit_to_gnu): Likewise.
10955 (gnat_to_gnu): Likewise.
10956
10957 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
10958
10959 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
10960 (NO_REORDER_ADAFLAGS): New variable.
10961 (EXTRA_GNATTOOLS): Always define.
10962 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
10963 Clean up and adjust list of files compiled with special options.
10964 * gcc-interface/Make-lang.in: Likewise.
10965 (ada/decl.o): Cosmetical change.
10966 (ada/misc.o): Remove dependency on $(PLUGIN_H).
10967
10968 2011-04-20 Jim Meyering <meyering@redhat.com>
10969
10970 * initialize.c (__gnat_initialize): Remove useless if-before-free.
10971
10972 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
10973
10974 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
10975 $(CFLAGS) on the link line.
10976
10977 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
10978
10979 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
10980 padded type built for the return type if it is unconstrained.
10981
10982 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10983
10984 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
10985
10986 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10987
10988 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
10989 before calling TREE_CHAIN.
10990 * gcc-interface/misc.c (gnat_init_ts): New function.
10991 (LANG_HOOKS_INIT_TS): Define.
10992
10993 2011-04-12 Martin Jambor <mjambor@suse.cz>
10994
10995 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
10996 instead of cgraph_node.
10997
10998 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10999
11000 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
11001 alignment on fields of the RETURN type built for the Copy-In Copy-Out
11002 mechanism.
11003
11004 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11005
11006 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
11007 of aggregate types that contain a placeholder.
11008
11009 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11010
11011 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
11012 TYPE_ARG_TYPES.
11013 (handle_type_generic_attribute): Likewise.
11014
11015 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11016
11017 PR ada/47163
11018 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
11019
11020 2011-04-04 Kai Tietz <ktietz@redhat.com>
11021
11022 PR ada/47163
11023 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
11024 to flag value.
11025
11026 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11027
11028 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
11029 type case, do not strip a padding type around the array type.
11030
11031 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11032
11033 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
11034 types.
11035
11036 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11037
11038 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
11039 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
11040 code for -feliminate-unused-debug-types.
11041 (gnat_post_options): Likewise.
11042
11043 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11044
11045 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
11046 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
11047 distinct copy.
11048
11049 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11050
11051 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
11052 DECL_ARTIFICIAL flag on enumeration types.
11053
11054 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11055
11056 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
11057 fat pointer types artificial unconditionally.
11058 <E_Array_Subtype>: Attach the base array type as a parallel type if it
11059 isn't artificial.
11060
11061 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11062
11063 * gcc-interface/gigi.h (get_dummy_type): Declare.
11064 (build_dummy_unc_pointer_types): Likewise.
11065 (finish_fat_pointer_type): Likewise.
11066 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
11067 fat pointer type has been built, complete it in place.
11068 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
11069 and thin pointers. Remove useless variable.
11070 (finish_fat_pointer_type): Make global and move to...
11071 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
11072 (get_dummy_type): New function.
11073 (build_dummy_unc_pointer_types): Likewise.
11074 (gnat_pushdecl): Propage the name to the anonymous variants only.
11075 (update_pointer_to): Only adjust the pointer types in the unconstrained
11076 array case.
11077
11078 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11079
11080 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
11081 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
11082 if this is a Taft amendment type and the full declaration is available.
11083 * gcc-interface/trans.c (process_type): Likewise.
11084 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
11085 (process_freeze_entity): Likewise.
11086 * gcc-interface/utils.c (dummy_global): New static variable.
11087 (gnat_write_global_declarations): If there are types declared as used
11088 at the global level, insert them in the global hash table.
11089
11090 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11091
11092 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
11093 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
11094 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
11095 copy.
11096 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
11097 flag of the type accordingly.
11098 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
11099
11100 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11101
11102 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
11103 finalizing types when updating the pointers to the designated type.
11104 <all>: Finalize the deferred types even if we didn't defer processing
11105 of incomplete types in this invocation.
11106
11107 2011-04-01 Olivier Hainque <hainque@adacore.com>
11108 Nicolas Setton <setton@adacore.com>
11109 Eric Botcazou <ebotcazou@adacore.com>
11110
11111 * gcc-interface/misc.c (gnat_descriptive_type): New function.
11112 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
11113
11114 2011-03-28 Kai Tietz <ktietz@redhat.com>
11115
11116 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
11117 Windows targets.
11118 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
11119 * system-mingw.ads (System): Change ZCX_By_Default default to True.
11120
11121 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
11122
11123 2011-03-28 Tristan Gingold <gingold@adacore.com>
11124
11125 PR ada/44431
11126 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
11127 Use ada output of gnatbind.
11128 (ada/b_gnatb.adb): Ditto.
11129 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
11130 (ada.mostlyclean, ada.stage1)
11131 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
11132 (ada.stagefeedback): Adjust.
11133 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
11134 Use ada output of gnatbind.
11135 (b_gnatm.adb): Ditto.
11136 (b_gnatl.o, b_gnatm.o): New rules.
11137
11138 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11139
11140 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
11141 for the padded type built to support a specified size or alignment.
11142
11143 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11144
11145 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
11146 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
11147 unconditionally to the end of the unit when the designated type is
11148 limited_with'ed.
11149 <all>: Rename local variable. Attempt to un-defer types only and do it
11150 for limited_with'ed types as well.
11151 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
11152 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
11153 consistently and remove redundant call to finalize_from_with_types.
11154
11155 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11156
11157 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
11158 subprograms without a previous spec declared in the same unit.
11159 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
11160 subprograms at the end of the unit instead of at the beginning.
11161 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
11162 isn't public for the special handling of non-inline functions nested
11163 inside inline external functions.
11164
11165 2011-03-25 Jeff Law <law@redhat.com>
11166
11167 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
11168
11169 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11170
11171 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
11172 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
11173 to compute Set_Size_Depends_On_Discriminant.
11174 (Layout_Type): Call it on array types in back-end layout mode.
11175 * sem_util.adb (Requires_Transient_Scope): Return true for array
11176 types only if the size depends on the value of discriminants.
11177 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
11178 type if the RHS is a call to a function that returns an unconstrained
11179 type with default discriminant.
11180
11181 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11182
11183 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
11184 non-conversion to the nominal result type at the end.
11185
11186 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11187
11188 * gcc-interface/trans.c (create_temporary): New function taken from...
11189 (create_init_temporary): ...here. Call it.
11190 (call_to_gnu): Create the temporary for the return value early, if any.
11191 Create it for a function with copy-in/copy-out parameters if there is
11192 no target; in other cases of copy-in/copy-out, use another temporary.
11193 Push the new binding level lazily. Add and rename local variables.
11194
11195 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11196
11197 * gcc-interface/decl.c (validate_size): Improve comments and tweak
11198 error message.
11199 (set_rm_size): Likewise.
11200
11201 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11202
11203 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
11204 for the padded type built in order to support a specified alignment.
11205 Fix incorrect formatting.
11206
11207 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11208
11209 PR bootstrap/48216
11210 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
11211
11212 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11213
11214 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
11215 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
11216 to the end of the list. Adjust recursive call. Rename local variable.
11217 If REORDER is true, reorder components of the record type.
11218 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
11219 components_to_record and adjust the parameter list.
11220
11221 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11222
11223 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
11224 disabled, use the variable for bounds of loop iteration scheme.
11225
11226 2011-03-21 Kai Tietz <ktietz@redhat.com>
11227
11228 PR target/12171
11229 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
11230
11231 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
11232
11233 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
11234 out whether the expression is read-only. Short-circuit placeholder
11235 case and rename a couple of local variables.
11236
11237 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
11238
11239 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
11240 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
11241 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
11242 (convert): Deal with conversions from a smaller form type specially.
11243
11244 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11245
11246 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
11247 its argument, except for the special -I- switch.
11248
11249 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
11250
11251 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
11252 "Ada Issues".
11253
11254 2011-02-08 Eric Botcazou <ebotcazou@adacore.com>
11255
11256 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
11257
11258 2011-02-03 Eric Botcazou <ebotcazou@adacore.com>
11259
11260 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
11261 GNAT_FORMAL.
11262 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
11263 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
11264 instead of GNAT_FORMAL. Protect the expression against multiple uses.
11265 Do not generate the check directly, instead instantiate the template
11266 check present in the descriptor.
11267 (make_descriptor_field): Move around.
11268 (build_vms_descriptor32): Build a template check in the POINTER field.
11269 (build_vms_descriptor): Remove useless suffixes.
11270 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
11271
11272 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11273
11274 PR bootstrap/47467
11275 * targext.c: Include target files if IN_RTS is defined.
11276
11277 2011-01-26 Richard Guenther <rguenther@suse.de>
11278
11279 PR bootstrap/47467
11280 * targext.c: Include config.h.
11281 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
11282 dependency.
11283
11284 2011-01-04 Pascal Obry <obry@adacore.com>
11285 Eric Botcazou <ebotcazou@adacore.com>
11286
11287 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
11288
11289 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11290
11291 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
11292 end-of-case on the end label and its associated gotos, if any.
11293
11294 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11295
11296 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
11297 expressions of the parameter cache within the statement group of
11298 the CICO mechanism.
11299
11300 2011-01-04 Olivier Hainque <hainque@adacore.com>
11301 Eric Botcazou <ebotcazou@adacore.com>
11302
11303 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
11304 (set_end_locus_from_node): New function.
11305 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
11306 make and the function end_locus.
11307 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
11308 for the elaboration subprogram.
11309 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
11310 set the end_locus of the expression as well.
11311
11312 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11313
11314 PR ada/47131
11315 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
11316 variables that are referenced in exception handlers volatile.
11317
11318
11319 \f
11320 Copyright (C) 2011 Free Software Foundation, Inc.
11321
11322 Copying and distribution of this file, with or without modification,
11323 are permitted in any medium without royalty provided the copyright
11324 notice and this notice are preserved.