]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/ChangeLog
2508317b11d8070aeeb1cf06a5e730a22481024a
[thirdparty/gcc.git] / gcc / ada / ChangeLog
1 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2
3 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
4 done at the same time, guard against listing a body more than once.
5
6 2009-07-23 Robert Dewar <dewar@adacore.com>
7
8 * exp_ch6.adb: Minor reformatting
9
10 2009-07-23 Ed Schonberg <schonberg@adacore.com>
11
12 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
13 static expression is known valid.
14 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
15 operands of a subtype with a single value.
16
17 2009-07-23 Ed Schonberg <schonberg@adacore.com>
18
19 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
20 are in the context of the main unit body.
21
22 2009-07-23 Sergey Rybin <rybin@adacore.com>
23
24 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
25 misprint in rule description.
26
27 2009-07-23 Gary Dismukes <dismukes@adacore.com>
28
29 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
30 test that the object declaration is within an extended return statement
31 with direct test of whether the declared object associated with the
32 build-in-place call is a return object, since the enclosing function
33 might not even be a build-in-place function.
34
35 2009-07-23 Robert Dewar <dewar@adacore.com>
36
37 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
38 Minor code reorganization
39
40 2009-07-23 Arnaud Charlet <charlet@adacore.com>
41
42 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
43 for static analysis, only packed arrays are causing troubles.
44
45 2009-07-23 Gary Dismukes <dismukes@adacore.com>
46
47 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
48 ancestor part is a call to a limited function with an unconstrained
49 result subtype unless the aggregate has a null extension type.
50 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
51 the parent type declaration to avoid blowups on subtype cases.
52
53 2009-07-23 Robert Dewar <dewar@adacore.com>
54
55 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
56 comma.
57
58 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
59
60 * s-regexp.adb: Minor reformatting
61 * scos.ads: Minor reformatting.
62
63 2009-07-23 Arnaud Charlet <charlet@adacore.com>
64
65 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
66 other similar messages.
67 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
68 messages/implicit packing in CodePeer mode.
69 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
70 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
71 CodePeer mode.
72
73 2009-07-23 Pascal Obry <obry@adacore.com>
74
75 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
76 systems.
77
78 2009-07-23 Robert Dewar <dewar@adacore.com>
79
80 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
81 Minor reformatting.
82
83 2009-07-23 Yannick Moy <moy@adacore.com>
84
85 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
86 pattern.
87 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
88 string.
89 (Raise_Exception): Ditto.
90
91 2009-07-23 Olivier Hainque <hainque@adacore.com>
92
93 * g-sse.ads: Simplify comment.
94
95 2009-07-23 Olivier Hainque <hainque@adacore.com>
96
97 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
98 low level internal type definitions for distinct higher level
99 binding development activities (user type definitions and
100 operations).
101 * gnat_rm.texi: Document it.
102 * g-ssvety.ads: Use it.
103 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
104 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
105 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
106 for the "may_alias" attribute.
107
108 2009-07-23 Thomas Quinot <quinot@adacore.com>
109
110 * scos.ads: Minor typo fix
111 * gcc-interface/decl.c (validate_alignment): For the case of an
112 implicit array base type, look for alignment clause on first subtype.
113 Code clean up.
114
115 2009-07-23 Ed Schonberg <schonberg@adacore.com>
116
117 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
118 in the context depends on the spec of the main unit, by delaying
119 processing of the main unit body until all other units have been
120 processed.
121
122 2009-07-23 Arnaud Charlet <charlet@adacore.com>
123
124 * a-convec.adb: Add comments about suspicious/subtle code.
125
126 2009-07-23 Ed Schonberg <schonberg@adacore.com>
127
128 * einfo.ads: Document use of Alias in private overriding
129
130 2009-07-23 Thomas Quinot <quinot@adacore.com>
131
132 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
133 an array type, propagate alignment from first subtype to implicit base
134 type so that other subtypes (such as the itypes for aggregates of the
135 type) also receive the expected alignment.
136
137 * g-comlin.ads: Minor documentation clarification/rewording.
138 * scos.ads: Minor comments update.
139 * lib-writ.ads: Minor reformatting
140
141 2009-07-23 Gary Dismukes <dismukes@adacore.com>
142
143 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
144 of a class-wide interface type that is a return object of a
145 build-in-place function, bypass the interface-related expansions into
146 renamings with displacement conversions, etc.
147 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
148 for the case where a renaming occurs in a build-in-place context, to
149 assert that the bypassing of the build-in-place treatment only occurs
150 in the case of a renaming that is an expansion of a return expression
151 that is itself a build-in-place function call.
152
153 2009-07-23 Ed Schonberg <schonberg@adacore.com>
154
155 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
156 valid candidate interpretation in a prefixed view if it is hidden, but
157 overrides an inherited operation declared in the visible part.
158
159 2009-07-23 Robert Dewar <dewar@adacore.com>
160
161 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
162 division operands to 64-bit at all in any circumstances.
163
164 2009-07-23 Robert Dewar <dewar@adacore.com>
165
166 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
167 checking ranges for mod/rem to see if conditional jump will be
168 generated.
169 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
170 generating special -1 test for rem, generate it whenever both
171 operands can be negative (match circuit in Sem_Res).
172 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
173 destroys memory of positive range.
174 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
175 checking ranges for mod/rem to see if conditional jump will be generated
176
177 2009-07-23 Ed Schonberg <schonberg@adacore.com>
178
179 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
180 scalar components has non-static bounds, the equivalent aggregate
181 cannot be built, even if the expression is static, because range checks
182 will be generated.
183
184 2009-07-23 Robert Dewar <dewar@adacore.com>
185
186 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
187 division operands to 64-bit inside a conversion if 64-bit division not
188 available.
189
190 2009-07-23 Sergey Rybin <rybin@adacore.com>
191
192 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
193
194 2009-07-23 Javier Miranda <miranda@adacore.com>
195
196 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
197 (Entity/Set_Entity): not available in N_Null_Statement nodes
198 (Is_Scil_Node): renamed as Is_SCIL_Node
199 (Scil_Nkind): renamed as SCIL_Nkind
200 (Scil_Related_Node): renamed as SCIL_Related_Node
201 (Scil_Target_Prim): renamed as SCIL_Target_Prim
202 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
203 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
204 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
205 Update documentation
206 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
207 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
208 (New_Scil_Node): Renamed as New_SCIL_Node
209 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
210 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
211 (New_Scil_Node): Renamed as New_SCIL_Node
212 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
213
214 2009-07-23 Robert Dewar <dewar@adacore.com>
215
216 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
217 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
218 * einfo.adb: Minor reformatting
219
220 2009-07-23 Robert Dewar <dewar@adacore.com>
221
222 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
223 cross-referencing the new related code in
224 Exp_Ch4.Expand_N_Type_Conversion.
225 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
226
227 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
228 Add comment.
229
230 2009-07-23 Javier Miranda <miranda@adacore.com>
231
232 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
233 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
234 * exp_disp.ads (Scil_Node_Kind): Ditto.
235 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
236 * exp_ch3.adb (Build_Init_Procedure): Ditto.
237
238 2009-07-23 Javier Miranda <miranda@adacore.com>
239
240 * einfo.adb (Component_Type): Add missing assertion.
241 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
242 reading attribute Component_Size.
243 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
244 before reading attributes Component_Size and Component_Type.
245 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
246 before reading attribute Component_Type.
247
248 2009-07-23 Olivier Hainque <hainque@adacore.com>
249
250 * gnat_rm.texi: Document the GNAT.SSE units.
251
252 2009-07-23 Ed Schonberg <schonberg@adacore.com>
253
254 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
255 not null return if it appears on a subunit.
256
257 2009-07-23 Robert Dewar <dewar@adacore.com>
258
259 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
260 check right away so it does not get skipped for early returns, e.g.
261 array assignments.
262 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
263 left-side unless we really know the value is valid.
264
265 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
266 reformatting. Minor code reorganization. Add comments.
267
268 2009-07-23 Robert Dewar <dewar@adacore.com>
269
270 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
271 complex condition.
272
273 2009-07-23 Gary Dismukes <dismukes@adacore.com>
274
275 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
276 with test of coverage, to allow specific type objects in extended
277 returns of class-wide functions. Remove now-unnecessary special-case
278 tests that allowed this in certain cases of expanded extended returns.
279
280 2009-07-23 Javier Miranda <miranda@adacore.com>
281
282 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
283 N_Null_Statements (for SCIL nodes).
284 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
285 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
286 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
287 nodes).
288 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
289 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
290 associated with dispatching call.
291 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
292 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
293 initialization of dispatch tables and initialization of tags.
294 (New_Scil_Node): New function that creates a new SCIL node.
295 (Build_Init_Procedure): Add generation of SCIL node associated with the
296 initialization of tags done in the IP subprogram.
297
298 2009-07-23 Ed Schonberg <schonberg@adacore.com>
299
300 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
301 Warnings_Off, do not emit continuation messages.
302
303 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
304 spec.
305
306 2009-07-23 Emmanuel Briot <briot@adacore.com>
307
308 * ali.adb: Minor comment update
309
310 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
311
312 * s-win32.ads (HANDLE): Define to be the same size as address type.
313 Fix copyright.
314
315 2009-07-23 Olivier Hainque <hainque@adacore.com>
316
317 * g-sse.ads: New file. Root of the SSE facilities trees, with
318 general description and common declarations.
319 * g-ssvety.ads: New file. Expose user level SSE vector types.
320 * impunit.adb (Non_Imp_File_Names_95): Register new units.
321 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
322 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
323
324 2009-07-23 Ben Brosgol <brosgol@adacore.com>
325
326 * gnat_ugn.texi: Wordsmithing.
327
328 2009-07-23 Arnaud Charlet <charlet@adacore.com>
329
330 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
331
332 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
333
334 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
335 they are already of the base type of the index.
336
337 2009-07-22 Brett Porter <porter@adacore.com>
338
339 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
340
341 2009-07-22 Robert Dewar <dewar@adacore.com>
342
343 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
344 * gnat_ugn.texi: Add documentation for -gnateS switch
345 * ug_words: Add entry for -gnateS /SCO_OUTPUT
346 * gcc-interface/Make-lang.in: Update dependenciest.3
347
348 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
349 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
350 complete information for SCO input/output.
351
352 2009-07-22 Sergey Rybin <rybin@adacore.com>
353
354 * gnat_ugn.texi: Update doc for some gnatcheck rules.
355
356 2009-07-22 Robert Dewar <dewar@adacore.com>
357
358 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
359 contents of SCO tables.
360 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
361 scos.adb, scos.ads: New files.
362 * gcc-interface/Make-lang.in: Update dependencies.
363
364 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
365 fixes and reformatting.
366
367 2009-07-22 Robert Dewar <dewar@adacore.com>
368
369 * g-socket.ads: Minor reformatting
370
371 2009-07-22 Gary Dismukes <dismukes@adacore.com>
372
373 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
374 include the entity kind for following cases of unreferenced entities:
375 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
376
377 2009-07-22 Ed Falis <falis@adacore.com>
378
379 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
380 with taskSuspend.
381
382 2009-07-22 Arnaud Charlet <charlet@adacore.com>
383
384 * adadecode.c: Make this file compilable outside of GCC.
385
386 2009-07-22 Thomas Quinot <quinot@adacore.com>
387
388 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
389 (partially) default-initialized socket sets are handled properly by
390 clearing their Set component.
391
392 2009-07-22 Bob Duff <duff@adacore.com>
393
394 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
395
396 2009-07-22 Robert Dewar <dewar@adacore.com>
397
398 * gnat_ugn.texi: Minor reformatting
399
400 2009-07-22 Ed Schonberg <schonberg@adacore.com>
401
402 * errout.adb (Error_Msg): A style message within an instantiation
403 should not be labelled as an error.
404
405 2009-07-22 Ed Schonberg <schonberg@adacore.com>
406
407 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
408 in initialization expression if function does not have convention Ada.
409
410 2009-07-22 Sergey Rybin <rybin@adacore.com>
411
412 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
413 '--separate-label' to control label layout.
414
415 2009-07-22 Robert Dewar <dewar@adacore.com>
416
417 * exp_tss.ads, sem_eval.adb: Minor reformatting
418
419 2009-07-22 Bob Duff <duff@adacore.com>
420
421 * exp_dist.adb, exp_dist.ads: Update comments.
422
423 2009-07-22 Brett Porter <porter@adacore.com>
424
425 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
426 FPSCR.
427 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
428
429 2009-07-22 Gary Dismukes <dismukes@adacore.com>
430
431 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
432 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
433 Minor reformatting.
434 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
435 used poor terminology.
436
437 2009-07-22 Robert Dewar <dewar@adacore.com>
438
439 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
440 * sem_eval.adb, exp_tss.adb: Minor comment update.
441 * stylesw.adb: Code clean up.
442
443 2009-07-22 Ed Schonberg <schonberg@adacore.com>
444
445 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
446 component size is an exact number of bytes, an array type can have a
447 size clause that forces packing even though the array type itself is
448 not bit-packed.
449
450 2009-07-22 Thomas Quinot <quinot@adacore.com>
451
452 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
453 if there is a previous entity with the same name in the scope, ignore
454 it if it is the renaming declaration for a generic package introduced
455 in instances.
456
457 2009-07-22 Nicolas Roche <roche@adacore.com>
458
459 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
460 handler on x86_64 windows.
461
462 2009-07-22 Arnaud Charlet <charlet@adacore.com>
463
464 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
465 false positives in CodePeer, so ignore this pragma in this mode.
466
467 2009-07-22 Thomas Quinot <quinot@adacore.com>
468
469 * sem_util.adb, sem_ch10.adb: Minor reformatting
470
471 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
472 special handling for the case of no data received and Item'First =
473 Stream_Element_Offset'First.
474 (Last_Index): New subprogram factoring the above special handling
475 over the various locations where it is required.
476
477 2009-07-22 Arnaud Charlet <charlet@adacore.com>
478
479 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
480 checks in CodePeer_Mode.
481 * gcc-interface/Make-lang.in: Update dependencies.
482
483 2009-07-22 Ed Schonberg <schonberg@adacore.com>
484
485 * sem_aggr.adb: Improve error message.
486
487 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
488 of an address representation clause.
489 * freeze.adb (Freeze_Static_Object): An local imported object is legal
490 if it has an address clause.
491
492 2009-07-22 Thomas Quinot <quinot@adacore.com>
493
494 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
495 expression to insert an elab check using a conditional expression, be
496 sure to carry the original list of interpretations to the new location.
497
498 2009-07-22 Gary Dismukes <dismukes@adacore.com>
499
500 * gnat1drv.adb: Fix spelling error.
501
502 2009-07-22 Javier Miranda <miranda@adacore.com>
503
504 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
505 at the library level and fix a hidden bug in its implementation: its
506 functionality for renaming objects was broken because
507 N_Object_Renaming_Declarations nodes are not a subclass of
508 N_Declaration nodes (as documented in sinfo.ads).
509 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
510 check nodes that are actuals of generic instantiations.
511
512 2009-07-22 Ed Schonberg <schonberg@adacore.com>
513
514 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
515 context of a compilation unit is being analyzed. Used to detect
516 circularities created by with_clauses that are not detected by the
517 loading machinery.
518 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
519 analyzing the context of the current compilation unit, to detect
520 possible circularities created by with_clauses.
521
522 2009-07-22 Thomas Quinot <quinot@adacore.com>
523
524 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
525
526 2009-07-22 Robert Dewar <dewar@adacore.com>
527
528 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
529 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
530 procedure.
531 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
532 * gnat_ugn.texi: Add documentation of -gnatyB
533 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
534
535 2009-07-22 Robert Dewar <dewar@adacore.com>
536
537 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
538 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
539 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
540 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
541 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
542 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
543 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
544 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
545 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
546 obey short-circuit style rule.
547
548 2009-07-20 Bob Duff <duff@adacore.com>
549
550 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
551 instead of "and", because otherwise Parent_Last_Bit is read
552 uninitialized in the case where it's not a tagged type, or the tagged
553 parent does not have a complete rep clause.
554
555 2009-07-20 Robert Dewar <dewar@adacore.com>
556
557 * stylesw.ads: Minor documentation change.
558
559 * types.ads: Minor reformatting
560
561 2009-07-20 Javier Miranda <miranda@adacore.com>
562
563 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
564 generating the tag checks associated with dispatching calls.
565 * exp_disp.adb (Apply_Access_Checks): New subprogram.
566 (New_Value): This routine was previously local to expand dispatching
567 calls but it is now used also by Apply_Access_Checks.
568 (Expand_Dispatching_Calls): Cleanup code because the functionality of
569 tag checks is now provided by Apply_Access_Checks.
570 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
571 case of dispatching calls.
572
573 2009-07-20 Arnaud Charlet <charlet@adacore.com>
574
575 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
576 CodePeer_Mode.
577
578 2009-07-20 Gary Dismukes <dismukes@adacore.com>
579
580 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
581 for VMS, only rewrite the first component of the associated exception's
582 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
583 and third components that were being replaced with 'M' and 'S'.
584
585 2009-07-20 Arnaud Charlet <charlet@adacore.com>
586
587 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
588 Also do not generate error when parsing a spec in CodePeer mode.
589
590 2009-07-20 Javier Miranda <miranda@adacore.com>
591
592 * checks.adb (Apply_Access_Check): Avoid checks on availability of
593 runtime function Offset_To_Top_Ptr when compiling with no tagged
594 types expansion.
595 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
596 adding code to the init proc when compiling for VM backends.
597
598 2009-07-20 Vincent Celier <celier@adacore.com>
599
600 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
601 account switches -gnatw.?
602
603 2009-07-20 Thomas Quinot <quinot@adacore.com>
604
605 * sem_dist.adb, exp_dist.adb: Minor reformatting
606
607 * Make-generated.in: New file.
608
609 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
610
611 2009-07-20 Javier Miranda <miranda@adacore.com>
612
613 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
614 subprogram.
615 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
616 dynamically tagged expression.
617 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
618 factorizes code.
619 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
620 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
621
622 2009-07-20 Arnaud Charlet <charlet@adacore.com>
623
624 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
625 CodePeer_Mode is set, to benefit from full front-end expansion
626 (e.g. generics).
627
628 2009-07-20 Ed Schonberg <schonberg@adacore.com>
629
630 * sem_res.adb: Add guard.
631
632 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
633 for possible attribute definition of External_Tag, in case clause
634 appears in the private part of a package.
635
636 2009-07-20 Jerome Guitton <guitton@adacore.com>
637
638 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
639
640 2009-07-20 Vadim Godunko <godunko@adacore.com>
641
642 * a-coorma.adb: Minor reformatting.
643
644 2009-07-20 Ed Schonberg <schonberg@adacore.com>
645
646 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
647 access return types.
648 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
649 provide an itype reference to gigi to force elaboration of the subtype
650 at the proper point.
651
652 2009-07-20 Tristan Gingold <gingold@adacore.com>
653
654 * g-expect.adb: Avoid closeing already closed handle.
655
656 2009-07-20 Robert Dewar <dewar@adacore.com>
657
658 * sprint.adb (Write_Subprogram_Name): New procedure to output
659 subprogram name with possible preceding $ (replaces
660 Note_Implicit_Run_Time_Call).
661
662 2009-07-20 Robert Dewar <dewar@adacore.com>
663
664 * vms_data.ads: Minor reformatting
665
666 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
667 applies to base type.
668 (Parent_Subtype): Now allowed on record subtype, applies to base type
669 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
670 for case of fully repped tagged type.
671 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
672 tag save/restore for fully repped tagged type case.
673 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
674 * fe.h (Is_Fully_Repped_Tagged_Type): New function
675 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
676 overlap of tagged type components with parent type if parent type is
677 fully repped.
678 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
679
680 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
681 comparisons.
682 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
683 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
684
685 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
686 logical operators (AND/OR/XOR), not comparison operators.
687
688 * sprint.ads: Minor reformatting
689
690 2009-07-20 Ed Schonberg <schonberg@adacore.com>
691
692 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
693 intrinsics, check that argument is a string literal, rather than
694 checking for staticness.
695
696 2009-07-20 Robert Dewar <dewar@adacore.com>
697
698 * sem_ch13.adb: Minor reformatting
699
700 * einfo.ads: Minor reformatting
701 Component_Bit_Offset is no longer considered obsolescent
702
703 2009-07-20 Nicolas Roche <roche@adacore.com>
704
705 * a-calend.adb: Redefine time_t as signed integer with same size as
706 Address type.
707 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
708 Address type
709 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
710 long
711
712 2009-07-20 Javier Miranda <miranda@adacore.com>
713
714 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
715 constructors that have anonymous access type formals.
716
717 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
718 class-wide arguments in case of imported C++ subprograms.
719
720 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
721
722 2009-07-20 Sergey Rybin <rybin@adacore.com>
723
724 * vms_data.ads: Update qualifiers.
725
726 2009-07-20 Robert Dewar <dewar@adacore.com>
727
728 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
729 reformatting
730
731 2009-07-17 Richard Guenther <rguenther@suse.de>
732
733 PR c/40401
734 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
735 state. Remove unused parameter.
736 (gnat_gimplify_function): Do not gimplify here.
737 Fold into its only caller and remove.
738 (gnat_builtin_function): Adjust for end_subprog_body signature change.
739 (gnat_write_global_declarations): Also finalize the CU.
740 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
741 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
742 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
743 change.
744 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
745
746 2009-07-15 Arnaud Charlet <charlet@adacore.com>
747
748 * gcc-interface/Make-lang.in: Update dependencies
749
750 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
751
752 2009-07-15 Robert Dewar <dewar@adacore.com>
753
754 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
755 N_Label. Remove SCO table entry for entry point (not used).
756
757 * par_sco.ads: Remove SCO entry point type (not used)
758
759 * switch.adb: Minor code clean up.
760
761 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
762
763 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
764
765 2009-07-15 Thomas Quinot <quinot@adacore.com>
766
767 * gnatls.adb: Minor reformatting
768
769 * gnatcmd.adb: Minor code reorganization
770
771 2009-07-15 Ed Schonberg <schonberg@adacore.com>
772
773 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
774 determine whether a component of a private type has a composite type.
775
776 2009-07-15 Robert Dewar <dewar@adacore.com>
777
778 * sem_ch10.adb: Minor reformatting throughout
779 Minor code reorganization (put nested subprograms in alpha order)
780
781 2009-07-15 Ed Schonberg <schonberg@adacore.com>
782
783 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
784 when compiling a call to a protected function that returns a controlled
785 object.
786
787 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
788
789 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
790 one. Add task locking and unlocking around the critical region which
791 mentions localtime_r and global variable timezone for various targets.
792 Comment reformatting.
793
794 2009-07-15 Robert Dewar <dewar@adacore.com>
795
796 * gnat_rm.texi: Document s-ststop.ads
797
798 * impunit.ad: (Map_Array): New table of alternative names
799 (Get_Kind_Of_Unit): Return possible suggested alternative name
800
801 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
802 alternative name.
803
804 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
805 alternative unit if an implementation unit is with'ed.
806
807 2009-07-15 Robert Dewar <dewar@adacore.com>
808
809 * gnat_ugn.texi: Minor updates.
810
811 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
812
813 2009-07-15 Ed Schonberg <schonberg@adacore.com>
814
815 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
816 conditions of a derived boolean type.
817 Minor reformatting
818
819 2009-07-15 Robert Dewar <dewar@adacore.com>
820
821 * gnat1drv.adb: Initialize SCO tables
822
823 * par-load.adb: Call SCO_Record for main unit spec
824
825 * par.adb: Make call to SCO_Record for main unit
826
827 * par_sco.adb (Unit_Table): Change format to facilitate sort
828 (Process_Decisions): New procedure with list argument
829 (Traverse_Generic_Package_Declaration): New procedure
830 (Initialize): New procedure, replaces Init
831 (SCO_Output): Sort unit table before output
832 (SCO_Record): Avoid duplications
833 (SCO_Record): Handle remaining cases of units
834 (Traverse_Declarations_Or_Statements): Handle generics
835
836 * par_sco.ads (Initialize): New peocedure (replaces Init)
837
838 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
839 subunit.
840
841 2009-07-15 Arnaud Charlet <charlet@adacore.com>
842
843 * debug.adb: Add -gnatd.J switch for now to support scil generation in
844 parallel. Add missing doc for -gnatd.I and -gnatd.O
845
846 2009-07-15 Robert Dewar <dewar@adacore.com>
847
848 * lib-load.adb: Minor reformatting
849
850 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
851
852 2009-07-15 Robert Dewar <dewar@adacore.com>
853
854 * par.adb: Minor reformatting
855 Add ??? comment for possible bad comment
856
857 * par-ch10.adb: Minor reformatting
858
859 2009-07-15 Ed Schonberg <schonberg@adacore.com>
860
861 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
862 is a literal of a derived boolean type, it appears as an unchecked
863 conversion. Retrieve actual value from expression of conversion.
864
865 2009-07-15 Robert Dewar <dewar@adacore.com>
866
867 * sem_ch3.adb: Minor reformatting
868
869 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
870 lib-writ.ads, lib-writ.adb: Minor reformatting.
871 Fix problem with SCO format in ALI files
872
873 2009-07-15 Robert Dewar <dewar@adacore.com>
874
875 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
876 exp_aggr.adb: Minor code reorganization (better calling sequence for
877 Make_Temporary).
878
879 2009-07-15 Thomas Quinot <quinot@adacore.com>
880
881 * opt.ads: Minor comment edits
882
883 2009-07-15 Tristan Gingold <gingold@adacore.com>
884
885 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
886 needed.
887
888 2009-07-15 Robert Dewar <dewar@adacore.com>
889
890 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
891 information.
892
893 * lib-writ.ads: Document addition of SCO lines to ALI file
894
895 * par_sco.ads, par_sco.adb: New files.
896
897 * opt.ads (Generate_SCO): New switch
898
899 * par.adb (Par): Call SCO_Record to record SCO information
900
901 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
902
903 * switch-c.adb: Recognize -gnateS to generate SCO information
904
905 * usage.adb: Add line for -gnateS
906
907 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
908
909 2009-07-15 Robert Dewar <dewar@adacore.com>
910
911 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
912 reformatting.
913
914 2009-07-15 Thomas Quinot <quinot@adacore.com>
915
916 * g-socthi-mingw.adb: Minor comment addition
917
918 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
919
920 2009-07-15 Robert Dewar <dewar@adacore.com>
921
922 * g-htable.ads, s-htable.ads: Minor reformatting
923
924 2009-07-15 Robert Dewar <dewar@adacore.com>
925
926 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
927 new switch -gnatw.g.
928 (Set_GNAT_Mode_Warnings): New procedure.
929
930 * lib-xref.adb: Minor reformatting
931
932 2009-07-15 Robert Dewar <dewar@adacore.com>
933
934 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
935 Minor code reorganization
936
937 2009-07-14 Taras Glek <tglek@mozilla.com>
938 Rafael Espindola <espindola@google.com>
939
940 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
941 installing plugin headers.
942
943 2009-07-13 Ed Schonberg <schonberg@adacore.com>
944
945 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
946 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
947 and link it to the expression whose value it captures.
948
949 2009-07-13 Robert Dewar <dewar@adacore.com>
950
951 * output.adb: Minor comment addition for last change
952
953 * sinfo.ads: Minor reformatting
954
955 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
956
957 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
958 spawn failed like on all other targets.
959
960 2009-07-13 Ed Schonberg <schonberg@adacore.com>
961
962 * exp_ch7.adb: Indicate origin of temporary for transient expression.
963
964 2009-07-13 Thomas Quinot <quinot@adacore.com>
965
966 * s-oscons-tmplt.c: Add comment.
967
968 2009-07-13 Robert Dewar <dewar@adacore.com>
969
970 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
971 reformatting. Minor code reorganization (add 9 argument version of
972 Nkind_In).
973
974 * impunit.adb: Remove s-os_lib from list of system extensions.
975
976 * sem_util.ads: Minor reformatting
977
978 * output.adb: Add warnings off/on around System.OS_Lib.
979
980 2009-07-13 Bob Duff <duff@adacore.com>
981
982 * exp_dist.adb: Minor comment updates.
983
984 2009-07-13 Gary Dismukes <dismukes@adacore.com>
985
986 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
987 several references to CodePeer.
988
989 2009-07-13 Bob Duff <duff@adacore.com>
990
991 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
992 Build_TypeCode_Function_All): Do not recurse if the type is the base
993 type.
994
995 2009-07-13 Robert Dewar <dewar@adacore.com>
996
997 * exp_ch4.adb: Minor comment change
998
999 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1000
1001 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
1002 type of iteration, to prevent spurious warnings.
1003
1004 2009-07-13 Nicolas Roche <roche@adacore.com>
1005
1006 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
1007 included.
1008
1009 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1010
1011 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
1012 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
1013 Generate_SCIL.
1014 (CodePeer_Mode): New -gnatC switch.
1015 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
1016 CodePeer_Mode.
1017
1018 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
1019
1020 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
1021 integer bound forces the check if it is compared to its subtype range.
1022
1023 2009-07-13 Robert Dewar <dewar@adacore.com>
1024
1025 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
1026 prj-strt.ads: Minor reformatting
1027
1028 2009-07-13 Thomas Quinot <quinot@adacore.com>
1029
1030 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
1031 set the type of the From_Any call to the base type.
1032
1033 2009-07-13 Doug Rupp <rupp@adacore.com>
1034
1035 * symbols-processing-vms-ia64.adb (Process): Add variables and
1036 constants to retrieve and check for symbol visibility.
1037
1038 2009-07-13 Javier Miranda <miranda@adacore.com>
1039
1040 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
1041 the identical type we remove the conversion completely because
1042 it is useless.
1043
1044 2009-07-13 Emmanuel Briot <briot@adacore.com>
1045
1046 * prj-err.adb (Error_Msg): One more case where a message should be
1047 considered as a warning.
1048
1049 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
1050
1051 2009-07-13 Thomas Quinot <quinot@adacore.com>
1052
1053 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
1054 calling stubs in the (library level) scope of the RCI locator, where it
1055 is attached, not in the caller's scope.
1056
1057 2009-07-13 Javier Miranda <miranda@adacore.com>
1058
1059 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
1060 interface object declarations we delay the generation of the equivalent
1061 record type declarations until its expansion because there are cases in
1062 which they are not required.
1063
1064 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
1065
1066 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
1067 addition of assertion.
1068
1069 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
1070 interface types require no equivalent constrained type declarations
1071 because the expanded code only references the tag component associated
1072 with the interface.
1073 (Find_Interface_Tag): Improve management of interfaces that are
1074 ancestors of tagged types.
1075
1076 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
1077 class-wide object declarations to add missing support to statically
1078 displace the pointer to the object to reference the tag component
1079 associated with the interface.
1080
1081 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
1082 auxiliary types associated with user-defined dispatching calls if the
1083 type has no user-defined primitives.
1084
1085 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
1086
1087 * mingw32.h: Make it explicit that we need XP or later.
1088
1089 * initialize.c: Remove useless extern symbol declaration.
1090
1091 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
1092 code reuse in expect.c.
1093
1094 * adaint.c: Changes throughout the Windows section to redesign storage
1095 of the child process list and the process identification.
1096
1097 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
1098 for interfacing, fix errors.
1099 (__gnat_expect_portable_execvp): use function in adaint.c
1100
1101 2009-07-13 Emmanuel Briot <briot@adacore.com>
1102
1103 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
1104 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
1105 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
1106 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
1107 (Prj.Nmsc.Report_Error): Removed, no longer needed.
1108 Always use Prj.Err.Report_Message.
1109
1110 2009-07-13 Robert Dewar <dewar@adacore.com>
1111
1112 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
1113 & comment edits.
1114
1115 2009-07-13 Robert Dewar <dewar@adacore.com>
1116
1117 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1118 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
1119
1120 2009-07-13 Emmanuel Briot <briot@adacore.com>
1121
1122 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
1123 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
1124 Ada_Prj_Include_File_Set): Removed, since not needed
1125 Code clean up.
1126
1127 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1128
1129 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
1130 Analyze_Membership_Op.
1131
1132 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
1133 Resolve_Membership_Op.
1134
1135 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
1136 Expand_N_In.
1137
1138 2009-07-13 Robert Dewar <dewar@adacore.com>
1139
1140 * clean.adb: Minor reformattting
1141
1142 2009-07-13 Emmanuel Briot <briot@adacore.com>
1143
1144 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
1145 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
1146 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
1147 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
1148 and attributes in a project tree.
1149 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
1150 Remove last remaining mode-specific code (ada_only or
1151 multi_language). This was duplicating code
1152 (Get_Mode, Set_Mode): removed, no longer used.
1153 (Initialize_Project_Path): all tools will now take into account both
1154 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
1155 Remove some global variables and subprograms no longer used
1156 Make temporary files tree-specific, to avoid interferences between
1157 trees loaded in memory at the same time.
1158 (Prj.Delete_Temporary_File): new subprogram
1159 (Object_Paths, Source_Paths): fields no longer stored in the project
1160 tree, since they are only needed locally in Set_Ada_Paths.
1161 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
1162 effect in practice.
1163 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
1164 by local variables in the appropriate subprograms
1165 (Has_Foreign_Sources): removed.
1166
1167 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
1168
1169 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1170
1171 * gnat1drv.adb (Adjust_Global_Switches): No longer set
1172 Back_Annotate_Rep_Info in inspector mode.
1173 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
1174
1175 * opt.ads: Update comment.
1176
1177 2009-07-13 Robert Dewar <dewar@adacore.com>
1178
1179 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
1180 prj.ads: Minor reformatting and code reorganization.
1181
1182 * par-ch3.adb (Check_Restricted_Expression): New procedure
1183
1184 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1185
1186 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
1187 attribute into a call of the corresponding suprogram, create extra
1188 formals for the subprogram, because it may be a renaming whose
1189 analysis does not create extra formals.
1190
1191 2009-07-13 Emmanuel Briot <briot@adacore.com>
1192
1193 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
1194 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1195 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
1196 prj-tree.ads: Minor reformatting.
1197 (Processing_Flags): new record to encapsulate the set of common
1198 parameters to several subprograms in the project manager.
1199 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
1200 Remove the need for the Current_Dir parameter in subprograms.
1201 (Look_For_Sources): minor refactoring, now that we no longer need to
1202 share subprograms between the two Ada_Only and Multi_Language modes
1203 (Processing_Flags): New field Error_On_Unknown_Language.
1204 Merge tests for library project between gnatmake and gprbuild.
1205
1206 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1207
1208 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
1209 Minor reformatting.
1210
1211 2009-07-13 Emmanuel Briot <briot@adacore.com>
1212
1213 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
1214 than units.
1215
1216 2009-07-13 Thomas Quinot <quinot@adacore.com>
1217
1218 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
1219 Write,Input,Output} from private view to full view.
1220
1221 * sem_type.adb, sem_type.ads: Minor reformatting
1222
1223 2009-07-13 Nicolas Setton <setton@adacore.com>
1224
1225 * exp_dbug.ads: Add documentation note on the utility of
1226 DW_AT_GNAT_encoding for IDEs.
1227
1228 2009-07-13 Robert Dewar <dewar@adacore.com>
1229
1230 * g-socthi-vxworks.adb: Minor reformatting
1231
1232 * gnatcmd.adb: Minor reformatting
1233
1234 2009-07-13 Thomas Quinot <quinot@adacore.com>
1235
1236 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
1237 removed, not used anymore.
1238 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
1239 New subprogram, implements copy of an Any value into a limited object.
1240 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
1241 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
1242 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
1243 of parameters of a limited type, use the above new subprogram.
1244
1245 2009-07-13 Emmanuel Briot <briot@adacore.com>
1246
1247 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
1248 Location.
1249 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
1250 allocated space.
1251 (Error_Report): Remove global variable, replaced by parameters.
1252
1253 2009-07-13 Thomas Quinot <quinot@adacore.com>
1254
1255 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
1256 standard sendto(2) interface for connected sockets (passing a null
1257 destination address). Use send(2) instead for that case.
1258
1259 2009-07-13 Pascal Obry <obry@adacore.com>
1260
1261 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
1262
1263 2009-07-13 Emmanuel Briot <briot@adacore.com>
1264
1265 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
1266 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
1267 variables and tables in prj-nmsc.adb.
1268 (Tree_Processing_Data): Renames Processing_Data, some new fields added
1269 (Project_Processing_Data): New record
1270 Simplify/unify check for missing sources.
1271
1272 2009-07-13 Emmanuel Briot <briot@adacore.com>
1273
1274 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
1275 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1276 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
1277 prj-tree.ads (Immediate_Directory_Of): Removed.
1278 (Prj.Pars): Now parse the project simulating a default config file.
1279 (Add_Default_GNAT_Naming_Scheme): New subprogram
1280 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
1281 Remove gnatmake-specific parsing of source files.
1282 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
1283 the error itself to provide more precise diagnostics.
1284 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
1285 a unit belongs to several projects.
1286 (Copy_Interface_Sources): Search the full path of files to copy in the
1287 list of sources of the application rather than in the list of units.
1288 (Parse_Project_And_Apply_Config): Do not reset the name of the main
1289 project file.
1290 (Check_File): Use htables to find out whether a source is duplicated.
1291 (Add_Source): check whether the source or unit were already seen earlier
1292
1293 * gcc-interface/Makefile.in: Update gnatmake dependencies.
1294
1295 2009-07-13 Robert Dewar <dewar@adacore.com>
1296
1297 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
1298 expression if extensions permitted.
1299
1300 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
1301 set tests).
1302 (P_Relation): Use P_Membership_Test
1303
1304 * par.adb (P_Membership_Test): New procedure (implement membership set
1305 tests).
1306
1307 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
1308
1309 * sprint.adb (Sprint_Node): Handle set form for membership tests.
1310
1311 2009-07-13 Thomas Quinot <quinot@adacore.com>
1312
1313 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
1314 Do not attempt to generate stubs for predefined primitives of
1315 synchronized interfaces.
1316 (Add_Stub_Type): Factor some code from the PCS-specific variants of
1317 Build_Stub_Type.
1318
1319 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1320
1321 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
1322 Controlling_Result flag from the operation they override.
1323
1324 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1325
1326 * gcc-interface/Make-lang.in: Update dependencies
1327
1328 2009-07-13 Robert Dewar <dewar@adacore.com>
1329
1330 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
1331 details on unsupported constructs.
1332
1333 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
1334 unconditionally.
1335
1336 * s-trafor-default.adb: Correct some warnings
1337
1338 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
1339 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
1340 Minor reformatting.
1341
1342 * par-ch4.adb (Conditional_Expression): Capture proper location for
1343 conditional expression, should point to IF.
1344
1345 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
1346 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
1347 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
1348 reorganization (use conditional expressions).
1349
1350 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1351
1352 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
1353 build-in-place function that returns an inherently limited type (not
1354 just a task type) create proper object declaration so that extra
1355 build-in-place actuals are properly added to the call.
1356
1357 2009-07-13 Robert Dewar <dewar@adacore.com>
1358
1359 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
1360
1361 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
1362
1363 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
1364
1365 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
1366 Warn_On_Suspicious_Modulus_Value.
1367
1368 * ug_words: Add entries for -gnatw.m/-gnatw.M.
1369
1370 * usage.adb: Add lines for -gnatw.m/.M switches.
1371
1372 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
1373
1374 2009-07-13 Javier Miranda <miranda@adacore.com>
1375
1376 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
1377 reading the Is_Interface attribute of the dispatching type.
1378
1379 2009-07-13 Robert Dewar <dewar@adacore.com>
1380
1381 * a-convec.adb: Minor code reorganization (use conditional expressions)
1382
1383 2009-07-13 Robert Dewar <dewar@adacore.com>
1384
1385 * freeze.adb (Check_Suspicious_Modulus): New procedure.
1386
1387 2009-07-13 Robert Dewar <dewar@adacore.com>
1388
1389 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
1390 warning).
1391
1392 * par-ch4.adb: Minor reformatting
1393
1394 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1395
1396 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
1397 => Is_Atomic_Aggregate
1398
1399 2009-07-13 Emmanuel Briot <briot@adacore.com>
1400
1401 * prj-nmsc.adb: Avoid traversing the list of source files if
1402 we have already processed all locally removed files.
1403
1404 2009-07-13 Jose Ruiz <ruiz@adacore.com>
1405
1406 * gnat_ugn.texi: Fix typo.
1407
1408 2009-07-13 Robert Dewar <dewar@adacore.com>
1409
1410 * freeze.adb: Minor reformatting
1411 Minor code reorganization (use Nkind_In)
1412
1413 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
1414
1415 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1416
1417 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
1418 local variable and do not test it in Compile_Time_Bad_Alignment.
1419 Do not issue size or alignment warnings for the X'Address form.
1420 * sem_util.ads (Find_Overlaid_Object): Delete.
1421 (Find_Overlaid_Entity): New procedure.
1422 * sem_util.adb (Find_Overlaid_Object): Rename to...
1423 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
1424 whether the address is offseted within the overlaid entity.
1425 (Has_Compatible_Alignment): Track the offset globally instead of
1426 passing it to Check_Offset. For an indexed component, compute the
1427 full offset when possible. If the resulting offset is zero, only
1428 check the prefix.
1429 (Check_Offset): Delete.
1430 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
1431 (Address_Aliased_Entity): Delete.
1432 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
1433 Find_Overlaid_Entity to find the overlaid entity and the offset.
1434 Adjust throughout for above change.
1435 (Validate_Address_Clauses): Always use attributes of entities, not of
1436 their type. Tweak message for warning. Call Has_Compatible_Alignment
1437 if the address is offseted to warn about incompatible alignments.
1438 * gcc-interface/gigi.h (annotate_object): Declare.
1439 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
1440 entity. Call annotate_object instead of annotating manually objects.
1441 (annotate_object): New function.
1442 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
1443 at the end.
1444
1445 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1446
1447 * gcc-interface/ada-tree.h: Minor reorganization.
1448 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
1449 (gnat_print_type): Likewise.
1450
1451 2009-07-11 Thomas Quinot <quinot@adacore.com>
1452
1453 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
1454 Lvalue -> lvalue
1455
1456 * exp_ch6.adb: Minor reformatting
1457
1458 2009-07-11 Ed Schonberg <schonberg@adacore.com>
1459
1460 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
1461 account possible type qualification to determine whether aggregate
1462 needs a target temporary to respect atomic type or object.
1463
1464 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
1465 Expand_Atomic_Aggregate.
1466
1467 2009-07-11 Emmanuel Briot <briot@adacore.com>
1468
1469 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
1470 algorithm.
1471 (Excluded_Sources_Htable): No longer a global table.
1472 Change error message to indicate which files are illegal in the list
1473 of excluded files, as opposed to only the location in the project
1474 file.
1475 (Find_Source): New subprogram.
1476
1477 2009-07-10 Thomas Quinot <quinot@adacore.com>
1478
1479 * exp_ch7.adb: Update comments.
1480
1481 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1482
1483 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
1484 clause if -gnatI is set instead of crashing.
1485
1486 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1487
1488 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
1489 Additional work to remove redundant successive raise statements, in
1490 this case access checks.
1491
1492 2009-07-10 Vincent Celier <celier@adacore.com>
1493
1494 * make.adb (Compile): Always create a deep copy of the mapping file
1495 argument (-gnatem=...) as it may be deallocate/reallocate by
1496 Normalize_Arguments.
1497
1498 2009-07-10 Javier Miranda <miranda@adacore.com>
1499
1500 * einfo.adb (Directly_Designated_Type): Add assertion.
1501
1502 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
1503 access types before using attribute Directly_Designated_Type.
1504
1505 2009-07-10 Emmanuel Briot <briot@adacore.com>
1506
1507 * prj.ads: Minor typo fix
1508
1509 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1510
1511 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
1512 special treatment.
1513
1514 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
1515 subprogram is a function call, resolve properly, to ensure that extra
1516 actuals are added as needed.
1517
1518 2009-07-10 Thomas Quinot <quinot@adacore.com>
1519
1520 * sem_aggr.adb: Minor comments editing
1521
1522 * exp_tss.adb, exp_ch3.adb: Minor reformatting
1523
1524 2009-07-10 Robert Dewar <dewar@adacore.com>
1525
1526 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
1527
1528 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
1529 types.
1530
1531 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
1532 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
1533 case of conditional expressions that may not be elaborated.
1534
1535 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
1536 conditional expression where we may not execute then then or else
1537 branches.
1538
1539 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1540
1541 * i-cexten.ads (bool): New type.
1542
1543 2009-07-10 Robert Dewar <dewar@adacore.com>
1544
1545 * sinfo.ads (N_Short_Circuit): New definition
1546
1547 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
1548 treepr.adb: Minor code reorganization (use N_Short_Circuit)
1549
1550 2009-07-10 Javier Miranda <miranda@adacore.com>
1551
1552 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
1553 non-tagged record types.
1554
1555 * sem_prag.adb
1556 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
1557 with non-tagged types. Required to import C++ classes that have no
1558 virtual primitives.
1559 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
1560 returning non-tagged types. For backward compatibility, if the
1561 constructor returns a class wide type we internally change the
1562 returned type to the corresponding non class-wide type.
1563
1564 * sem_aggr.adb
1565 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
1566 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
1567 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
1568 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
1569
1570 * sem_ch3.adb
1571 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
1572
1573 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
1574
1575 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
1576
1577 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
1578
1579 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
1580 cleanup.
1581
1582 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
1583
1584 * gnat_rm.texi
1585 (pragma CPP_Class): Document that it can be used now with non-tagged
1586 record types.
1587 (pragma CPP_Constructor): Document that it can be used now with
1588 functions returning specific types. For backward compatibility
1589 we also support functions returning class-wide types.
1590
1591 * gnat_ugn.texi
1592 (Interfacing with C++ constructors): Update the examples to incorporate
1593 the new syntax in which the functions used to import C++ constructors
1594 return specific types.
1595 (Interfacing with C++ at the Class Level): Update the examples to
1596 incorporate the new syntax in which the functions used to import
1597 C++ constructors return specific types.
1598
1599 2009-07-10 Thomas Quinot <quinot@adacore.com>
1600
1601 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
1602 Make_Disp_Conditional_Select_Body,
1603 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
1604 interface nor a concurrent type, the primitive body is empty. Generate
1605 a null statement so that it remains well formed.
1606
1607 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1608
1609 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
1610 replace references to them in defaulted component expressions with
1611 references to the values of the discriminants of the target object.
1612
1613 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1614
1615 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
1616 pragma, to capture global references if the context is generic.
1617
1618 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
1619 appears within the initialization procedure for the corresponding
1620 record, replace it with the proper discriminal.
1621
1622 2009-07-10 Vincent Celier <celier@adacore.com>
1623
1624 * make.adb: Do not include object directories or library ALI
1625 directories of library projects in the object path.
1626
1627 2009-07-10 Javier Miranda <miranda@adacore.com>
1628
1629 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
1630 Typ argument to ensure proper management of access types.
1631
1632 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1633
1634 * exp_ch7.adb (Build_Final_List): If the list is being built for a
1635 Taft-Amendment type, place the finalization list in the package body,
1636 to ensure that the tree for the spec is identical whenever it is
1637 compiled.
1638
1639 2009-07-10 Javier Miranda <miranda@adacore.com>
1640
1641 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
1642 inheriting attributes from a private Parent_Base.
1643
1644 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1645
1646 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
1647 statements with the same condition.
1648
1649 2009-07-10 Robert Dewar <dewar@adacore.com>
1650
1651 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
1652
1653 2009-07-09 Tom Tromey <tromey@redhat.com>
1654
1655 * raise-gcc.c: Include dwarf2h (unconditionally).
1656
1657 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1658
1659 * sem_ch10.adb (Install_Context): If the unit is a package body,
1660 install the private with_clauses of the corresponding package
1661 declaration.
1662
1663 2009-07-09 Robert Dewar <dewar@adacore.com>
1664
1665 * checks.adb: Minor reformatting
1666
1667 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1668
1669 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1670 into ug_words.
1671
1672 2009-07-09 Thomas Quinot <quinot@adacore.com>
1673
1674 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1675 Do not warn for a constant overlaying any constant object
1676
1677 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1678
1679 * sem_ch10.adb (Install_Context): If the unit is a package body,
1680 install the private with_clauses of the corresponding package
1681 declaration.
1682
1683 2009-07-09 Robert Dewar <dewar@adacore.com>
1684
1685 * checks.adb: Minor reformatting
1686
1687 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1688
1689 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1690 into ug_words.
1691
1692 2009-07-09 Thomas Quinot <quinot@adacore.com>
1693
1694 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1695 Do not warn for a constant overlaying any constant object
1696
1697 2009-07-09 Arnaud Charlet <charlet@adacore.com>
1698
1699 * gcc-interface/Make-lang.in: Update dependencies
1700
1701 2009-07-09 Thomas Quinot <quinot@adacore.com>
1702
1703 * g-socket.adb (Check_Selector): Do not create local copies of the
1704 socket sets on the stack.
1705
1706 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1707
1708 * gnat_ugn.texi: Add missing VMS translations.
1709
1710 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1711
1712 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
1713 condition, to prevent generation of visible code during expansion,
1714 when Check is not enabled.
1715
1716 2009-07-09 Gary Dismukes <dismukes@adacore.com>
1717
1718 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
1719 the check gets registered for any available local handler
1720 (Set_Local_Raise).
1721
1722 * sem_util.adb: Add with and use of Exp_Ch11.
1723 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
1724 that the check gets registered for any available local handler.
1725
1726 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
1727 on slice ranges.
1728
1729 2009-07-09 Steve Baird <baird@adacore.com>
1730
1731 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
1732 function.
1733 (Expand_N_Exception_Declaration): Fix handling of exceptions
1734 declared in a subprogram.
1735
1736 2009-07-09 Emmanuel Briot <briot@adacore.com>
1737
1738 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
1739 multi-unit files.
1740
1741 2009-07-09 Thomas Quinot <quinot@adacore.com>
1742
1743 * freeze.adb: Minor reformatting
1744
1745 * exp_ch3.adb: Minor comment fix.
1746
1747 * sinfo.ads: Minor comment fix
1748
1749 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1750
1751 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
1752
1753 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1754
1755 * freeze.adb (Freeze_Expression): If the expression is the name of a
1756 function in a call, and the function has not been frozen yet, create
1757 extra formals for it to ensure that the proper actuals are created
1758 when expanding the call.
1759
1760 2009-07-09 Emmanuel Briot <briot@adacore.com>
1761
1762 * prj-pp.adb (Print): Fix handling of source index when set on a
1763 declaration node.
1764
1765 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1766
1767 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
1768 a temporary to the source expression whose value it captures.
1769
1770 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
1771
1772 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1773
1774 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
1775 EXPR_LOCATION.
1776
1777 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1778
1779 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
1780 parameters when the subtype of the actual is not known to be a subrange
1781 of the formal's subtype.
1782 (Expand_Call): Generate a range check only in the E_In_parameter case
1783 (in out parameter range checks are now handled in Expand_Actuals).
1784
1785 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
1786 Enable_Range_Check.
1787
1788 2009-07-07 Robert Dewar <dewar@adacore.com>
1789
1790 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
1791
1792 2009-07-07 Javier Miranda <miranda@adacore.com>
1793
1794 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
1795 designated type comes from a limited views.
1796
1797 2009-07-07 Emmanuel Briot <briot@adacore.com>
1798
1799 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
1800 locally removed files that are later made visible again in an importing
1801 project.
1802
1803 2009-07-07 Robert Dewar <dewar@adacore.com>
1804
1805 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
1806
1807 2009-07-07 Sergey Rybin <rybin@adacore.com>
1808
1809 * gnat_ugn.texi: Add an example to the description of gnatcheck
1810 'Style_Checks' rule option.
1811
1812 2009-07-07 Tristan Gingold <gingold@adacore.com>
1813
1814 * seh_init.c: Fix inline assembly statement in seh_init.c
1815
1816 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1817
1818 * sem_warn.adb (Check_References): Do not emit warnings on formals of
1819 an entry body. Only the formals of the entry declaration are traced.
1820
1821 2009-07-07 Robert Dewar <dewar@adacore.com>
1822
1823 * s-osprim-mingw.adb: Minor code reorganization
1824
1825 2009-07-07 Robert Dewar <dewar@adacore.com>
1826
1827 * prj-nmsc.adb: Minor reformatting
1828
1829 2009-07-07 Pascal Obry <obry@adacore.com>
1830
1831 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
1832 cases where Pattern is longer than Source.
1833
1834 2009-07-07 Pascal Obry <obry@adacore.com>
1835
1836 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
1837
1838 2009-07-07 Emmanuel Briot <briot@adacore.com>
1839
1840 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
1841 project file.
1842
1843 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1844
1845 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
1846 primitive operations, in case one of them is called in the
1847 initialization procedure for the type.
1848
1849 2009-07-07 Robert Dewar <dewar@adacore.com>
1850
1851 * a-calend.adb: Minor code reorganization (use conditional expressions)
1852
1853 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
1854 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
1855 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
1856 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
1857 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
1858 g-comlin.adb, exp_ch11.adb: Minor reformatting.
1859
1860 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1861
1862 * checks.adb (Generate_Range_Check): Replace type conversions with
1863 unchecked conversions to support the case of performing range checks
1864 on Enum'Val (permits integer values to be converted to enumeration).
1865
1866 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
1867 Attribute_Succ): Set Do_Range_Check to False before calling
1868 Expand_Pred_Succ, to prevent gigi from generating any range checks.
1869 (Expand_N_Attribute_Reference, case Attribute_Val):
1870 Generate a range check when needed (and set Do_Range_Check to False).
1871
1872 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
1873 scalar object initialization if needed.
1874
1875 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
1876 when needed on scalar allocators.
1877 (Expand_N_Qualified_Expression): Generate range check when needed.
1878 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
1879 Checks on slice ranges handled in Resolve_Slice.
1880
1881 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
1882 when needed, for all scalar assignments, not just discrete.
1883 (Expand_Simple_Function_Return): Resolve the conversion created for a
1884 scalar function return so that the conversion will get expanded to
1885 generate a possible constraint check.
1886
1887 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
1888 in out scalar actuals when subtypes don't match, to ensure generation
1889 of return checks (and set Do_Range_Check to False).
1890 (Expand_Call): Uncomment code to perform range checks, but make it apply
1891 only to in and in out parameters (checks on parameter returns are
1892 handled in Expand_Actuals). If a scalar actual for a call to a derived
1893 subprogram is marked as needing a range check, peform it here (and set
1894 Do_Range_Check to False).
1895
1896 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
1897 range check on scalar component associations when needed.
1898
1899 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
1900 infinities but the second type does not, as these aren't compatible
1901 floating-point types.
1902
1903 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
1904 slice is itself a slice, pick up the Etype of the prefix. This handles
1905 the case where the prefix was an Image attribute expanded to a slice,
1906 and ensures that we get the subtype with the slice constraint rather
1907 than the unconstrained subbtype of the 'Image.
1908
1909 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1910
1911 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
1912 overloaded expressions in a conditional expressions.
1913
1914 * sem_res.adb (Resolve): Handle properly overloaded conditional
1915 expressions.
1916
1917 2009-07-07 Robert Dewar <dewar@adacore.com>
1918
1919 * scng.adb: Minor reformattting
1920
1921 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
1922 association allows conditional expression without parens.
1923
1924 * par-ch4.adb (P_Name): Attribute arguments can be conditional
1925 expressions without enclosing parentheses, and also as parameters,
1926 indexing expressions etc.
1927 (P_Conditional_Expression): New procedure
1928 (P_Expression_If_OK): New procedure
1929
1930 * par.adb (P_Conditional_Expression): New procedure
1931 (P_Expression_If_OK): New procedure
1932
1933 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
1934 form of conditional expression.
1935
1936 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
1937 missing True argument if ELSE argument missing.
1938
1939 * sinfo.adb (Is_Elsif): New flag
1940
1941 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
1942 part of the language, and the documentation is modified accordingly.
1943 (Is_Elsif): New flag
1944
1945 2009-07-06 Olivier Hainque <hainque@adacore.com>
1946
1947 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
1948 setjmp_longjmp): Attach the exception propagation reraise fallback
1949 to the sequence end label location when we have it.
1950
1951 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1952
1953 PR ada/40608
1954 * init.c (APPLE): Include <mach/mach_init.h>.
1955 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
1956
1957 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
1958
1959 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
1960 (SET_DECL_LANG_SPECIFIC): Likewise.
1961 (TYPE_RM_VALUE): New macro.
1962 (SET_TYPE_RM_VALUE): Likewise.
1963 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
1964 (TYPE_RM_MIN_VALUE): Likewise.
1965 (TYPE_RM_MAX_VALUE): Likewise.
1966 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
1967 (SET_TYPE_RM_MIN_VALUE): Likewise.
1968 (SET_TYPE_RM_MAX_VALUE): Likewise.
1969 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
1970
1971 2009-07-04 Laurent GUERBY <laurent@guerby.net>
1972
1973 PR ada/40631
1974 * tracebak.c (__gnat_backtrace): Fix old-style definition.
1975
1976 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1977
1978 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
1979
1980 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1981
1982 PR ada/40609
1983 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
1984 ucontext argument.
1985
1986 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
1987
1988 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
1989
1990 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1991
1992 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
1993 the type of the left operand if it pads a self-referential type when
1994 the right operand is a constructor.
1995
1996 * gcc-interface/lang-specs.h: Fix copyright date.
1997
1998 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1999
2000 * gcc-interface/decl.c: Include tree-inline.h.
2001 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
2002 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
2003 * gcc-interface/utils2.c: Include tree-inline.
2004 (known_alignment) <CALL_EXPR>: Likewise.
2005
2006 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2007
2008 * raise-gcc.c: Include dwarf2.h conditionally.
2009
2010 2009-06-29 Tom Tromey <tromey@redhat.com>
2011
2012 * raise-gcc.c: Include elf/dwarf2.h.
2013
2014 2009-06-27 Laurent GUERBY <laurent@guerby.net>
2015
2016 * tb-gcc.c (trace_callback): Add casts to silence warning.
2017
2018 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
2019
2020 * tb-gcc.c: Fix copyright notice.
2021
2022 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
2023
2024 * init.c (__gnat_set_globals): Add prototype.
2025 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
2026 (__gnat_sals_init_using_constructors): Likewise.
2027 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
2028 (get_block_jmpbuf_decl): Likewise.
2029 (gnat_poplevel): Likewise.
2030 (merge_sizes): Rename local variable.
2031 (copy_type): Likewise.
2032 (build_vms_descriptor32): Likewise.
2033 (build_vms_descriptor): Likewise.
2034 (convert_vms_descriptor64): Likewise.
2035 (convert_vms_descriptor32): Likewise.
2036 (convert_to_fat_pointer): Likewise.
2037 (maybe_unconstrained_array): Likewise.
2038 (def_fn_type): Use promoted type with va_arg.
2039 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
2040 (substitute_in_type): Rename local variable.
2041 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
2042
2043 2009-06-26 Laurent GUERBY <laurent@guerby.net>
2044
2045 * tb-gcc.c (trace_callback): Use char* instead of void*.
2046 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
2047 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
2048 (Attribute_to_gnu): Adjust for above change.
2049 (Subprogram_Body_to_gnu): Likewise.
2050 * gcc-interface/utils.c (merge_sizes): Rename local variable.
2051 (copy_type): Likewise.
2052 (build_vms_descriptor32): Likewise.
2053 (build_vms_descriptor): Likewise.
2054 (convert_vms_descriptor64): Likewise.
2055 (convert_vms_descriptor32): Likewise.
2056 (convert_to_fat_pointer): Likewise.
2057 (maybe_unconstrained_array): Likewise.
2058 * gcc-interface/decl.c (substitute_in_type): Likewise.
2059
2060 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2061
2062 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
2063 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
2064 of the upper bound of the index types.
2065
2066 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2067
2068 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
2069 out common predicate. Use the maximum to compute the upper bound of
2070 the index type only when it is not wider than sizetype. Perform the
2071 comparison in the index type for the generic expression. Use real
2072 precision to decide whether to generate special types for debugging
2073 information.
2074
2075 2009-06-26 Matthew Gingell <gingell@adacore.com>
2076
2077 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
2078
2079 2009-06-26 Vincent Celier <celier@adacore.com>
2080
2081 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
2082 default.
2083
2084 2009-06-26 Robert Dewar <dewar@adacore.com>
2085
2086 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
2087
2088 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2089
2090 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
2091 correct arguments to create_field_decl. Remove redundant iteration.
2092 Rewrite computation of the maximum size.
2093 <E_Array_Subtype>: Reorder and simplify handling of special cases.
2094 Rewrite computation of the maximum size. Use consistent naming.
2095 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
2096 comparison order for consistency. Use generic integer node to
2097 build the operator and fold the result.
2098
2099 2009-06-25 Vincent Celier <celier@adacore.com>
2100
2101 * vms_data.ads: Minor comment change
2102
2103 2009-06-25 Gary Dismukes <dismukes@adacore.com>
2104
2105 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
2106 assignment statement to targeting a caller-provided object when the
2107 result type is an interface type.
2108
2109 * exp_ch6.adb (Expand_Call): Remove redundant test of
2110 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
2111 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
2112
2113 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
2114 to OK_For_Limited_Init.
2115
2116 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
2117 condition so that True is returned for all limited interfaces, not
2118 just synchronized ones. Ignore components of an interface type when
2119 checking for limited components (such a component can be a parent
2120 component).
2121
2122 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
2123 (OK_For_Limited_Init): Add type parameter.
2124
2125 * sem_ch3.adb (Check_Initialization): Add type in call to
2126 OK_For_Limited_Init.
2127 (OK_For_Limited_Init): Add new type param in call to
2128 OK_For_Limited_Init_In_05.
2129 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
2130 nonlimited type when the context type is a limited interface. Add type
2131 on recursive calls.
2132
2133 * sem_ch4.adb (Analyze_Allocator): Add type in call to
2134 OK_For_Limited_Init.
2135
2136 * sem_ch6.adb (Check_Limited_Return): Add type in call to
2137 OK_For_Limited_Init.
2138
2139 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
2140 OK_For_Limited_Init.
2141 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
2142
2143 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
2144 class-wide interface, get the base type before applying Etype, in order
2145 to account for class-wide subtypes.
2146
2147 2009-06-25 Emmanuel Briot <briot@adacore.com>
2148
2149 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
2150 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
2151 between gnatmake and gprbuild.
2152 (Naming_Data): Removed, no longer used
2153 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
2154 needed locally in one subprogram, no need to store forever in the
2155 structure.
2156 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
2157 a similar role.
2158 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
2159 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
2160 Spec_Suffix_Id_Of): removed, no longer used.
2161
2162 2009-06-25 Javier Miranda <miranda@adacore.com>
2163
2164 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
2165 types on qualified expression in calls to imported C++ constructors.
2166
2167 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
2168 imported C++ constructors.
2169
2170 2009-06-25 Sergey Rybin <rybin@adacore.com>
2171
2172 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
2173
2174 2009-06-25 Vincent Celier <celier@adacore.com>
2175
2176 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
2177 provided, on Windows change all '/' to '\'.
2178
2179 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
2180 used. Minor comment changes
2181
2182 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
2183 Remove_Forbidden_File_Name.
2184
2185 2009-06-25 Quentin Ochem <ochem@adacore.com>
2186
2187 * prj.ads (Unit_Index): Now general access type.
2188
2189 2009-06-25 Pascal Obry <obry@adacore.com>
2190
2191 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
2192
2193 2009-06-25 Emmanuel Briot <briot@adacore.com>
2194
2195 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
2196 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
2197 computed efficiently from the other fields.
2198 (Object_To_Global_Archive): New subprogram
2199 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
2200 (Override_Kind): Fix handling of separates in Ada.
2201 (Create_Mapping_File): Remove duplicate code
2202 (Naming_Data.Implementation_Exception, Specification_Exception):
2203 field removed, since never used.
2204 (Naming_Data.Specs, .Bodies): field removed, since this is only
2205 used while processing the project and is not needed once the tree
2206 is in memory. This brings Naming_Data and Lang_Naming_Data
2207 closer (same content now, but different use still).
2208
2209 2009-06-25 Pascal Obry <obry@adacore.com>
2210
2211 * sem_ch4.adb: Minor reformatting.
2212
2213 * a-strsea.adb: Fix confusion between 'Length and 'Last.
2214
2215 2009-06-25 Ed Schonberg <schonberg@adacore.com>
2216
2217 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
2218 Unchecked_Access): If the context is an interface type, and the prefix
2219 is of the corresponding class-wide type, do not insert a conversion
2220 because the pointer displacement has already taken place, and we must
2221 retain the class-wide type in a dispatching context.
2222
2223 2009-06-25 Emmanuel Briot <briot@adacore.com>
2224
2225 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
2226 the previous source file.
2227 (Create_Mapping): Iterate on sources rather than on units.
2228
2229 2009-06-25 Emmanuel Briot <briot@adacore.com>
2230
2231 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
2232 prj-env.adb, prj-env.ads (Slash): removed, no longer used
2233 (Source_Data): no longer use Path.Name to point to a locally removed
2234 file. Instead we use the field Locally_Removed which is clearer
2235
2236 2009-06-25 Arnaud Charlet <charlet@adacore.com>
2237
2238 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
2239
2240 * sem_maps.adb, sem_maps.ads: Removed, not used.
2241
2242 2009-06-25 Ed Falis <falis@adacore.com>
2243
2244 * s-vxwext-rtp.ads: Add missing declaration
2245
2246 2009-06-25 Matthew Gingell <gingell@adacore.com>
2247
2248 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
2249 speed up unmapped case.
2250
2251 2009-06-25 Vincent Celier <celier@adacore.com>
2252
2253 * prj-nmsc.adb (Check): Change error message for illegal abstract
2254 projects.
2255
2256 2009-06-25 Robert Dewar <dewar@adacore.com>
2257
2258 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
2259
2260 2009-06-25 Emmanuel Briot <briot@adacore.com>
2261
2262 * fmap.ads: Add documentation on mapping files
2263
2264 2009-06-25 Robert Dewar <dewar@adacore.com>
2265
2266 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
2267 reformatting
2268
2269 2009-06-24 Robert Dewar <dewar@adacore.com>
2270
2271 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
2272
2273 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
2274 case.
2275 (Index): Ditto.
2276
2277 2009-06-24 Ed Schonberg <schonberg@adacore.com>
2278
2279 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
2280 present when checking whether a call may be interpreted as an indexing
2281 of the result of a call.
2282
2283 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
2284 body for a null procedure on the freeze actions for the procedure, so
2285 that it will be analyzed at the proper place without premature freezing
2286 of actuals.
2287
2288 * sem_ch3.adb (Check_Completion): Code cleanup.
2289 Do not diagnose a null procedure without a body, if previous errors
2290 have disabled expansion.
2291
2292 2009-06-24 Doug Rupp <rupp@adacore.com>
2293
2294 * init.c [VMS] Resignal C$_SIGKILL
2295
2296 2009-06-24 Ed Falis <falis@adacore.com>
2297
2298 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
2299 Define ERROR in body for VxWorks 6 kernel
2300
2301 2009-06-24 Pascal Obry <obry@adacore.com>
2302
2303 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
2304 in [Send/Receive]_Socket.
2305
2306 2009-06-24 Emmanuel Briot <briot@adacore.com>
2307
2308 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2309 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
2310 to several subprograms.
2311 (Source_Data.Other_Part): Removed, since can be computed from the
2312 language.
2313 (Other_Part): New subprogram.
2314
2315 2009-06-24 Emmanuel Briot <briot@adacore.com>
2316
2317 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
2318 the full base name of the file when the suffix doesn't start with a '.'.
2319
2320 2009-06-24 Vincent Celier <celier@adacore.com>
2321
2322 * prj-nmsc.adb (Check): A project declared abstract is legal if no
2323 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
2324 declared.
2325
2326 2009-06-24 Robert Dewar <dewar@adacore.com>
2327
2328 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
2329 prj-env.adb: Minor reformatting
2330
2331 2009-06-24 Ed Falis <falis@adacore.com>
2332
2333 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
2334 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
2335 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
2336 support for VxWorks SMP.
2337
2338 * gcc-interface/Make-lang.in: Update dependencies
2339
2340 2009-06-24 Emmanuel Briot <briot@adacore.com>
2341
2342 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
2343 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
2344 no longer useful.
2345 (Source_Data.Lang_Kind): Removed, since it duplicates information
2346 already available through Language.Config.
2347 (Source_Data.Compile): Removed, since information is already available
2348 through the language.
2349 (Is_Compilable): New subprogram.
2350 (Source_Data.Dependency): Removed, since already available through
2351 the language.
2352 (Source_Data.Object_Exist, Object_Linked): Removed since available
2353 through the language already.
2354 (Unit_Data.File_Names): Is now also set in multi_language mode, to
2355 bring the two modes closer in the resulting data structures.
2356 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
2357 just the name that would point into a hash table.
2358 (Get_Language_From_Name): New subprogram.
2359
2360 2009-06-24 Javier Miranda <miranda@adacore.com>
2361
2362 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
2363 visible through limited-with context clauses. In addition, avoid an
2364 extra tag check that is not required when the class-wide
2365 designated types of the operand and target types are
2366 the same entity.
2367 (Tagged_Membership): Handle entities from the limited view.
2368
2369 2009-06-24 Emmanuel Briot <briot@adacore.com>
2370
2371 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
2372 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
2373 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
2374 different vocabularies for similar concepts (Impl/Body_Part and
2375 Spec/Specification).
2376 (Unit_Data): now points directly to a Source_Id, rather than duplicating
2377 some of the information in File_Name_Data. This also saves a bit of
2378 memory. However, since we are now using a pointer we need to test
2379 for null explicitly in several places of the code
2380
2381 2009-06-24 Javier Miranda <miranda@adacore.com>
2382
2383 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
2384 from processing the type conversion when the node is
2385 replaced by an N_Raise_Program_Error node.
2386
2387 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
2388
2389 * sem_ch6.adb (Designates_From_With_Type): New routine.
2390 (Process_Formals): Since anonymous access types are no longer flagged
2391 as from with types, traverse the designated type to determine whether
2392 it is coming from a limited view.
2393
2394 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
2395 (Full_Designated_Type): Use Available_View to extract the non-limited /
2396 full view of a type.
2397
2398 2009-06-24 Robert Dewar <dewar@adacore.com>
2399
2400 * exp_ch6.adb: Minor reformatting
2401
2402 * layout.adb: Minor reformatting
2403
2404 * make.adb: Minor reformatting
2405
2406 2009-06-24 Thomas Quinot <quinot@adacore.com>
2407
2408 * sem_ch10.adb: Minor code reorganization.
2409
2410 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
2411
2412 * ttypes.ads: Minor editing.
2413
2414 2009-06-24 Robert Dewar <dewar@adacore.com>
2415
2416 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
2417 in deciding to do call-by-copy code.
2418
2419 2009-06-24 Vincent Celier <celier@adacore.com>
2420
2421 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
2422 check if an externally built library file is more current than the
2423 executable.
2424
2425 2009-06-23 Olivier Hainque <hainque@adacore.com>
2426
2427 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
2428 c-common.c and populate in gnat_internal_attribute_table.
2429
2430 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2431
2432 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
2433 Available_View only when designated type of an anonymous access type
2434 is limited view.
2435
2436 2009-06-23 Robert Dewar <dewar@adacore.com>
2437
2438 * sem_ch10.adb: Minor reformatting
2439
2440 * ali.ads: Mino reformatting.
2441
2442 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
2443 turning off inlining if ASIS mode active).
2444
2445 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
2446 This belongs in gnat1drv.adb after switches are scanned.
2447
2448 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
2449
2450 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
2451 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
2452 when dealing with class-wide types. Detect a legal shadow entity and
2453 retrieve its non-limited view.
2454
2455 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
2456 subprogram to top package level from Intall_Limited_Withed_Unit.
2457 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
2458 Add check which prevents the installation of a limited view if the
2459 non-limited view is already visible through a with clause.
2460 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
2461 legal shadow entity which may occur in subprogram formals of anonymous
2462 access type.
2463
2464 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
2465
2466 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
2467 From_With_Type from the designated type to the generated anonymous
2468 access type. Remove associated comment.
2469
2470 * sem_res.adb Add with and use clauses for Sem_Ch10.
2471 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
2472 non-limited view. Since the shadow entity may replace a regular
2473 incomplete type, return the available full view.
2474
2475 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2476
2477 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
2478 incomplete type declarations. Previous code was potentially quadratic
2479 in the number of visible declarations in any package appearing in a
2480 limited_with_clause.
2481
2482 2009-06-23 Robert Dewar <dewar@adacore.com>
2483
2484 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
2485 xref_lib.adb: Minor reformatting
2486
2487 2009-06-23 Robert Dewar <dewar@adacore.com>
2488
2489 * a-stzhas.adb: Provide dummy body to avoid build problems with old
2490 versions which did have a body for this unit.
2491
2492 2009-06-23 Vincent Celier <celier@adacore.com>
2493
2494 * prj-attr.adb: Attribute names Initial_Required_Switches and
2495 Final_Required_Switches changed to Leading_Required_Switches and
2496 Trailing_Required_Switches.
2497
2498 * prj-nmsc.adb (Process_Compiler): Attribute names
2499 Initial_Required_Switches and Final_Required_Switches changed to
2500 Leading_Required_Switches and Trailing_Required_Switches.
2501
2502 * prj.ads (Language_Config): Component Initial_Required_Switches and
2503 Final_Required_Switches changed to Leading_Required_Switches and
2504 Trailing_Required_Switches.
2505
2506 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
2507 Final_Required_Switches; add standard names Leading_Required_Switches
2508 and Trailing_Required_Switches.
2509
2510 2009-06-23 Thomas Quinot <quinot@adacore.com>
2511
2512 * prj-conf.adb: Minor reformatting
2513
2514 * xref_lib.adb: Minor cleanup
2515
2516 2009-06-23 Emmanuel Briot <briot@adacore.com>
2517
2518 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
2519 prj-conf.ads (Check_Configuration): New parameter
2520 Compiler_Driver_Mandatory.
2521
2522 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2523
2524 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
2525 context of the current unit has an inline pragma, the instance is not
2526 rewritten as the declaration of the package wrapper. Handle both
2527 possibilities when retrieving the visible subprogram that renames the
2528 instantiation itself.
2529
2530 2009-06-23 Javier Miranda <miranda@adacore.com>
2531
2532 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
2533 designated types referencing entities from the limited view.
2534
2535 2009-06-23 Robert Dewar <dewar@adacore.com>
2536
2537 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
2538
2539 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
2540 small values
2541
2542 * prj-conf.ads: Minor reformatting
2543
2544 * prj-conf.adb: Minor reformatting
2545
2546 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
2547
2548 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
2549 to correspond to the log format that gnatmem now expects.
2550
2551 2009-06-23 Vincent Celier <celier@adacore.com>
2552
2553 * prj-attr.adb: New attributes Initial_Required_Switches,
2554 Final_Required_Switches and Object_File_Switches
2555
2556 * prj-nmsc.adb (Process_Compiler): Process new attributes
2557 Name_Final_Required_Switches, Name_Initial_Required_Switches and
2558 Name_Object_File_Switches.
2559
2560 * prj.ads (Language_Config): New component
2561 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
2562 Compiler_Final_Required_Switches and Object_File_Switches.
2563
2564 * snames.ads-tmpl: New standard names Initial_Required_Switches,
2565 Final_Required_Switches and Object_File_Switches
2566
2567 2009-06-23 Pascal Obry <obry@adacore.com>
2568
2569 * s-strhas.adb, s-strhas.ads: Minor reformatting.
2570
2571 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2572
2573 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
2574 not indicate that the enclosing unit needs a body.
2575
2576 2009-06-23 Emmanuel Briot <briot@adacore.com>
2577
2578 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
2579
2580 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2581
2582 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
2583 primitive equality include it with its source name even if the
2584 operation is currently invisible, to make sure that the corresponding
2585 slot in the dispatch table is reserved for the internal equality
2586 subsequently generated during expansion.
2587
2588 2009-06-23 Matthew Gingell <gingell@adacore.com>
2589
2590 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
2591
2592 2009-06-22 Jose Ruiz <ruiz@adacore.com>
2593
2594 * sysdep.c (__gnat_localtime_tzoff for RTX):
2595 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
2596 GetTimeZoneInformation instead.
2597
2598 2009-06-22 Robert Dewar <dewar@adacore.com>
2599
2600 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
2601
2602 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2603
2604 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
2605 instantiations declared in a previous generic package body.
2606
2607 2009-06-22 Robert Dewar <dewar@adacore.com>
2608
2609 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
2610 restriction No_Direct_Boolean_Operators.
2611
2612 2009-06-22 Thomas Quinot <quinot@adacore.com>
2613
2614 * bindusg.adb: Minor fixes to gnatbind usage message
2615
2616 * sem_eval.adb: Minor reformatting
2617
2618 2009-06-22 Javier Miranda <miranda@adacore.com>
2619
2620 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
2621 freezing point the check on the use of abstract types in object
2622 declarations. Done to allow the declaration of C++ imported variables
2623 or constants whose type corresponds with an imported C++ classes for
2624 which the constructor is not imported.
2625
2626 2009-06-22 Thomas Quinot <quinot@adacore.com>
2627
2628 * sem_ch6.adb: Minor reformatting
2629
2630 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2631
2632 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
2633 component is constrained with an expression rather than with a
2634 discriminant of the enclosing type, use that expression when building
2635 the call to default-initialize the component, when the call is part of
2636 an aggregate with box initialization.
2637
2638 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2639
2640 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
2641 unconditional rather than a style check, because a formal name out of
2642 order is suspicious.
2643
2644 2009-06-22 Vincent Celier <celier@adacore.com>
2645
2646 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
2647 creating a directory automatically.
2648
2649 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
2650
2651 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
2652 untagged derived type, add a hidden component for every constrained
2653 discriminant of the parent type to keep record layout consistent.
2654
2655 2009-06-22 Thomas Quinot <quinot@adacore.com>
2656
2657 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
2658 copy).
2659
2660 2009-06-22 Matthew Gingell <gingell@adacore.com>
2661
2662 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
2663 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
2664 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
2665 a-swuwha.adb: New unit System.String_Hash.
2666 Refactor redundant cut and pasted hash functions with instances of a
2667 new generic hash function.
2668 Implement a new string hashing algorithm which appears in testing to
2669 be move effective than to previous approach.
2670
2671 2009-06-22 Ed Falis <falis@adacore.com>
2672
2673 * sysdep.c: remove include for nfsLib.h and an NFS specific error
2674 message for VxWorks 653 vThreads: not supported by the OS.
2675
2676 * gsocket.h: disable sockets for VxWorks 653 vThreads.
2677
2678 2009-06-22 Robert Dewar <dewar@adacore.com>
2679
2680 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
2681
2682 2009-06-22 Robert Dewar <dewar@adacore.com>
2683
2684 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
2685 by Sloc_Range.
2686
2687 * freeze.adb: Minor comment updates
2688
2689 * s-valrea.adb (Bad_Based_Value): New procedure
2690 (Scan_Real): Raise exceptions with messages
2691
2692 2009-06-22 Matthew Gingell <gingell@adacore.com>
2693
2694 * adaint.h: Complete previous change.
2695
2696 2009-06-22 Thomas Quinot <quinot@adacore.com>
2697
2698 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
2699
2700 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2701
2702 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
2703 enabled, emit warning when a non-controlling argument of the overriding
2704 operation appears out of place vis-a-vis of the formal of the
2705 overridden operation.
2706
2707 2009-06-22 Vincent Celier <celier@adacore.com>
2708
2709 * gnatcmd.adb (Check_Files): Close temporary files after all file names
2710 have been written into it.
2711
2712 2009-06-22 Matthew Gingell <gingell@adacore.com>
2713
2714 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
2715 available.
2716
2717 2009-06-22 Thomas Quinot <quinot@adacore.com>
2718
2719 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
2720 view of the root type is visible at the point of the call.
2721
2722 2009-06-22 Pat Rogers <rogers@adacore.com>
2723
2724 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
2725
2726 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
2727
2728 * freeze.adb: Add comments.
2729
2730 2009-06-21 Thomas Quinot <quinot@adacore.com>
2731
2732 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
2733 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
2734 Factor out code to new subprogram...
2735 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
2736 for a default initialized variable.
2737 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
2738 entity that has an associated freeze node.
2739 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
2740 If there is an init call for the object, defer it to the object freeze
2741 point.
2742 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
2743 name clash with new subprogram introduced in Exp_Util.
2744
2745 2009-06-21 Robert Dewar <dewar@adacore.com>
2746
2747 * einfo.ads: Minor reformatting
2748
2749 2009-06-21 Ed Falis <falis@adacore.com>
2750
2751 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
2752
2753 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
2754
2755 * einfo.ads: Update comments.
2756
2757 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
2758
2759 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
2760 where the controlling formal is of private class-wide type whose
2761 completion is a synchronized type can be converted into direct calls.
2762
2763 2009-06-21 Vincent Celier <celier@adacore.com>
2764
2765 * gnatcmd.adb (Check_Files): When all sources of the project are to be
2766 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
2767 of sources using -files=, so that the distinction can be made by the
2768 tool of a call with no source (to display the usage) from a call with
2769 a project file that contains no source.
2770
2771 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
2772
2773 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
2774 case of VM convention arrays.
2775
2776 2009-06-20 Robert Dewar <dewar@adacore.com>
2777
2778 * a-nudira.adb: Minor reformatting
2779
2780 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2781
2782 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
2783 expressions (possibly from a parent type) indicate that the scope of
2784 the new itypes is the initialization procedure being built.
2785
2786 2009-06-20 Robert Dewar <dewar@adacore.com>
2787
2788 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
2789 Needs_64, and now computed without anomolies for some dynamic types.
2790
2791 2009-06-20 Thomas Quinot <quinot@adacore.com>
2792
2793 * sem_prag.adb: Minor reformatting
2794
2795 * exp_disp.ads: Minor reformatting
2796
2797 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2798
2799 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
2800 function call is a legal expression to initialize a limited object.
2801
2802 * exp_ch3.adb: Rename various freeze operations that perform expansion
2803 actions, to prevent confusion with subprograms in the freeze package.
2804
2805 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2806
2807 * sem.adb (Walk_Library_Units): Check instantiations first.
2808
2809 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
2810 private primitive if it is a function with a controlling result that is
2811 a type extension with progenitors.
2812
2813 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
2814 a primitive operation of a synchronized tagged type that has a
2815 controlling result.
2816
2817 2009-06-20 Thomas Quinot <quinot@adacore.com>
2818
2819 * einfo.ads: Fix typo.
2820
2821 2009-06-20 Ed Falis <falis@adacore.com>
2822
2823 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
2824
2825 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2826
2827 * gcc-interface/trans.c (emit_check): Do not wrap up the result
2828 in a SAVE_EXPR.
2829 (protect_multiple_eval): Always protect complex expressions.
2830
2831 2009-06-19 Emmanuel Briot <briot@adacore.com>
2832
2833 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
2834 make sure we always return a name ending with a path separator.
2835
2836 2009-06-19 Javier Miranda <miranda@adacore.com>
2837
2838 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
2839 Save and restore the visibility of the parent when installed.
2840
2841 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2842
2843 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
2844 by Common which contains all these fields.
2845
2846 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
2847 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
2848 Remove code duplication in this package by means of calling the
2849 equivalent code in s-taprob.
2850
2851 2009-06-19 Robert Dewar <dewar@adacore.com>
2852
2853 * a-einuoc.ads: Minor reformatting
2854
2855 2009-06-19 Ed Falis <falis@adacore.com>
2856
2857 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
2858 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
2859
2860 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2861
2862 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
2863
2864 2009-06-19 Robert Dewar <dewar@adacore.com>
2865
2866 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
2867 ranges
2868
2869 * checks.adb (Determine_Range): Move the test for generic types later.
2870
2871 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
2872 cases.
2873 (Eval_Relational_Op): Fold more cases including string compares
2874
2875 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
2876 function.
2877
2878 2009-06-19 Robert Dewar <dewar@adacore.com>
2879
2880 * sem_type.ads, sem_ch12.adb: Minor reformatting
2881
2882 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
2883
2884 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2885
2886 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
2887 primitive operation of a rivate extension whose controlling argument
2888 is an out parameter.
2889
2890 * sem.adb (Walk_Library_Units): exclude generic package declarations
2891 from check.
2892
2893 2009-06-19 Thomas Quinot <quinot@adacore.com>
2894
2895 * i-vxwoio.ads: Add comments
2896
2897 2009-06-19 Thomas Quinot <quinot@adacore.com>
2898
2899 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2900 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2901 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
2902 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
2903 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
2904 Thin_Common.Socket_Ioctl.
2905 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
2906 __gnat_socket_ioctl.
2907 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
2908 argument after the file descriptor and request code.
2909
2910 2009-06-19 Robert Dewar <dewar@adacore.com>
2911
2912 * checks.adb: Minor reformatting
2913
2914 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2915
2916 * env.c (__gnat_environ): RTX does not support this functionality.
2917
2918 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2919
2920 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
2921 traverse, to account for front-end inlining and instantiations in a
2922 spec or in the main unit.
2923
2924 2009-06-19 Robert Dewar <dewar@adacore.com>
2925
2926 * checks.adb (Determine_Range): Do not attempt to get range of generic
2927 type.
2928
2929 2009-06-19 Sergey Rybin <rybin@adacore.com>
2930
2931 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
2932 gnatmetric option for generating the schema file for gnatmetric XML
2933 output. Add corresponding VMS qualifier.
2934
2935 2009-06-19 Robert Dewar <dewar@adacore.com>
2936
2937 * g-cgi.adb: Minor reformatting
2938
2939 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2940
2941 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
2942 signal code for SIGFPE and raise Program_Error for SIGILL.
2943
2944 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
2945
2946 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2947
2948 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
2949 generic package if there is a visibility candidate that is declared in
2950 a regular package.
2951
2952 2009-06-18 Olivier Hainque <hainque@adacore.com>
2953
2954 * system-aix64.ads: New file.
2955 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
2956 64bit system.ads for ppc64 multilib variants.
2957
2958 2009-06-16 Robert Dewar <dewar@adacore.com>
2959 Olivier Hainque <hainque@adacore.com>
2960
2961 Relax constraints on Machine_Attribute argument types:
2962 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
2963 missing type.
2964 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
2965 * gcc-interface/decl.c (prepend_attributes): Accept static
2966 expressions of any type as attribute arguments, not only string
2967 literals.
2968 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
2969 the relaxation of the restriction on the Info argument type.
2970
2971 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
2972
2973 * gcc-interface/utils.c (record_builtin_type): Pass location
2974 argument to build_decl.
2975 (create_type_stub_decl): Same.
2976 (create_type_decl): Same.
2977 (create_var_decl_1): Same.
2978 (create_field_decl): Same.
2979 (create_param_decl): Same.
2980 (create_label_decl): Same.
2981 (create_subprog_decl): Same.
2982 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
2983 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
2984 argument to create_artificial_label.
2985 (Loop_Statement_to_gnu): Same.
2986 (Subprogram_Body_to_gnu): Same.
2987 (gnat_gimplify_stmt): Same.
2988
2989 2009-06-11 Richard Henderson <rth@redhat.com>
2990
2991 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
2992 OPT_gdwarfplus.
2993
2994 2009-06-11 Ed Schonberg <schonberg@adacore.com>
2995
2996 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
2997 accessibiliy check on access_to_subprogram in the context of an
2998 anonymous access that is not an access parameter.
2999
3000 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
3001
3002 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
3003
3004 2009-06-11 Quentin Ochem <ochem@adacore.com>
3005
3006 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
3007 comments for message handled by GPS.
3008
3009 2009-06-11 Matthew Gingell <gingell@adacore.com>
3010
3011 * adaint.c: Use fopen64 instead of fopen on platforms where we know
3012 it's supported.
3013
3014 2009-06-11 Pascal Obry <obry@adacore.com>
3015
3016 * g-cgi.ads: Fix comment typo.
3017
3018 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
3019
3020 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
3021
3022 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
3023 a reference to the original type for the type of the field of the
3024 XVS type.
3025 (maybe_pad_type): Likewise.
3026
3027 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
3028 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
3029 Pass correctly typed arguments to create_field_decl.
3030 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
3031 case of contrained discriminants as well. Use the padded base type
3032 in the other case as well. Rename temporary variable. Tweak test.
3033 Factor common access pattern. Set GNU_SIZE only once.
3034
3035 2009-06-09 Olivier Hainque <hainque@adacore.com>
3036
3037 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
3038 helper for build_call_alloc_dealloc with arguments to be interpreted
3039 identically. Process the case where a GNAT_PROC to call is provided.
3040 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
3041 and return an allocator for DATA_SIZE bytes aimed at containing a
3042 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
3043 DATA_TYPE alignments greater than what the latter offers.
3044 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
3045 release a DATA_TYPE object designated by DATA_PTR using the
3046 __gnat_free entry point.
3047 (build_call_alloc_dealloc): Expect object data type instead of naked
3048 alignment constraint. Use the new helpers.
3049 (build_allocator): Remove special processing for the super-aligned
3050 case, now handled by build_call_alloc_dealloc. Pass data
3051 type instead of the former alignment argument, as expected by the new
3052 interface.
3053 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
3054 and comment.
3055 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
3056 Remove special processing for the super-aligned case, now handled
3057 by build_call_alloc_dealloc. Pass data type instead of the former
3058 alignment argument, as expected by the new interface.
3059
3060 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
3061
3062 * lib-writ.adb (flag_compare_debug): Import.
3063 (Write_ALI): Skip during -fcompare-debug-second.
3064
3065 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3066
3067 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
3068 adjusting the discriminant nodes in an extension, use the full view
3069 of the parent subtype if it is of a private kind.
3070
3071 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3072
3073 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
3074 _Parent field, if any, to the record before adding the other fields.
3075 <E_Record_Subtype>: Put the _Controller field before the other fields
3076 except for the _Tag or _Parent fields.
3077 (components_to_record): Likewise. Retrieve the _Parent field from the
3078 record type.
3079
3080 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3081
3082 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
3083 remove unused parameter and simplify.
3084 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
3085 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
3086 as context for all discriminants. Fix formatting nits.
3087 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
3088 before Discriminant_Constraint. Adjust for above renaming. Do not
3089 set GNU_TYPE more than once.
3090 (elaborate_entity): Test Has_Discriminants on the entity and use
3091 Implementation_Base_Type.
3092 (components_to_record): Rename component_list to gnat_component_list.
3093 Retrieve the _Parent field from the list. Fix nits in comments.
3094 Clarify logic in loop. Pass correct arguments to create_field_decl.
3095
3096 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
3097
3098 * gcc-interface/Make-lang.in: Fix formatting.
3099
3100 2009-06-01 Olivier Hainque <hainque@adacore.com>
3101 Eric Botcazou <ebotcazou@adacore.com>
3102
3103 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
3104 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
3105 on the result if at least one of the input fields couldn't be output
3106 as a static constant any more.
3107
3108 2009-06-01 Olivier Hainque <hainque@adacore.com>
3109 Eric Botcazou <ebotcazou@adacore.com>
3110
3111 * gcc-interface/utils2.c (gnat_build_constructor): Factor
3112 out code. Use initializer_constant_valid_for_bitfield_p and
3113 CONSTRUCTOR_BITFIELD_P for bit-fields.
3114
3115 2009-05-26 Ian Lance Taylor <iant@google.com>
3116
3117 * gcc-interface/Makefile.in (COMPILER): Define.
3118 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
3119 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
3120 (seh_init.o, tracebak.o): Likewise.
3121 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
3122 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
3123 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
3124 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
3125 (ada/utils2.o): Likewise.
3126
3127 2009-05-24 Olivier Hainque <hainque@adacore.com>
3128
3129 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
3130 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
3131 Add -auxbase variants to the list of recognized internal switches.
3132 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
3133 adjust comments.
3134 * lib.ads: Make comment on internal GCC switches more general.
3135 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
3136 as for C.
3137
3138 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3139
3140 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
3141
3142 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3143
3144 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
3145 types.
3146
3147 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3148
3149 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
3150 original type because of the alignment when there is an address clause.
3151
3152 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
3153
3154 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
3155 discriminants affect the shape of the subtype, retrieve the GCC type
3156 directly from the original field if the GNAT types for the field and
3157 the original field are the same.
3158
3159 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
3160
3161 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
3162 New macros.
3163 (TYPE_RM_VALUES): Likewise.
3164 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
3165 (SET_TYPE_RM_SIZE): New macro.
3166 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
3167 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
3168 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
3169 * gcc-interface/gigi.h (create_range_type): Declare.
3170 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
3171 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
3172 <E_Signed_Integer_Subtype>: Build a regular integer type first and
3173 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3174 <E_Floating_Point_Subtype>: Build a regular floating-point type first
3175 and then set the RM bounds.
3176 <E_Array_Type>: Use create_range_type instead of build_range_type.
3177 <E_Array_Subtype>: Build a regular integer type first and then set
3178 the RM bounds for the extra subtype.
3179 <E_String_Literal_Subtype>: Use create_range_type instead of
3180 build_range_type.
3181 <all>: Set the RM bounds for enumeration types and the GCC bounds for
3182 floating-point types.
3183 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
3184 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
3185 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3186 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
3187 types and with RM bounds for subtypes.
3188 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
3189 (gnat_print_type) <REAL_TYPE>: New case.
3190 <ENUMERAL_TYPE>: Fall through to above case.
3191 (gnat_get_subrange_bounds): New function.
3192 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
3193 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
3194 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
3195 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
3196 (create_range_type): New function.
3197 (create_param_decl): Build a regular integer type first and then set
3198 the RM bounds for the extra subtype.
3199 (unchecked_convert): Remove kludge for 'Valid.
3200 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
3201 the index to sizetype instead of TYPE_DOMAIN.
3202
3203 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
3204
3205 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
3206 parameter and move check for static expression to...
3207 (elaborate_expression): ...here. Adjust call to above function.
3208 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
3209 in calls to elaborate_expression.
3210 (elaborate_entity): Likewise.
3211 (substitution_list): Likewise.
3212 (maybe_variable): Fix formatting.
3213 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
3214 missing guard.
3215 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
3216
3217 2009-05-07 Arnaud Charlet <charlet@adacore.com>
3218
3219 * gcc-interface/Make-lang.in: Update dependencies.
3220
3221 2009-05-06 Laurent GUERBY <laurent@guerby.net>
3222
3223 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
3224 Define sa_handler_pos.
3225 * s-osinte-linux.ads: Use it.
3226 * s-linux-mipsel.ads: New.
3227 * system-linux-mips64el.ads: New.
3228 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
3229 mips64el-linux.
3230
3231 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3232
3233 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
3234 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
3235 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
3236 (Tagged_Type_Expansion): New flag.
3237 Replace use of VM_Target related to tagged types expansion by
3238 Tagged_Type_Expansion, since tagged type expansion is not necessarily
3239 linked to VM targets.
3240
3241 2009-05-06 Robert Dewar <dewar@adacore.com>
3242
3243 * sem_attr.adb: Add processing for Standard'Compiler_Version
3244
3245 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
3246 skipping.
3247 (Expr_First_Char): Add ??? comment that paren skipping needs work
3248 (Expr_Last_Char): Add ??? comment that paren skipping needs work
3249
3250 * exp_attr.adb: Add processing for Compiler_Version
3251
3252 * sem_attr.adb: New attribute Compiler_Version
3253
3254 * snames.ads-tmpl: Add entries for Compiler_Version attribute
3255
3256 * gnat_rm.texi: Document Compiler_Version attribute
3257
3258 2009-05-06 Robert Dewar <dewar@adacore.com>
3259
3260 * errout.adb: Minor reformatting
3261
3262 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
3263 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
3264 styleg.adb: Add stylized comments to error messages that are included
3265 in the codefix circuitry of IDE's such as GPS.
3266
3267 2009-05-06 Sergey Rybin <rybin@adacore.com>
3268
3269 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
3270 new form of the rule parameter that allows to specify the suffix for
3271 access-to-access type names.
3272
3273 2009-05-06 Robert Dewar <dewar@adacore.com>
3274
3275 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
3276 out parameter assigned when exception handlers are present.
3277
3278 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
3279 assignments on exit.
3280
3281 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
3282 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
3283 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
3284 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
3285 messages that are included in the codefix circuitry of IDE's such as
3286 GPS.
3287
3288 * sinput.ads, sinput.adb (Expr_First_Char): New function
3289 (Expr_Last_Char): New function
3290
3291 2009-05-06 Sergey Rybin <rybin@adacore.com>
3292
3293 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
3294 Add formal definition for extra exit point metric
3295
3296 2009-05-06 Pascal Obry <obry@adacore.com>
3297
3298 * adaint.c: Support for setting attributes on unicode filename on
3299 Windows.
3300
3301 2009-05-06 Robert Dewar <dewar@adacore.com>
3302
3303 * sem_warn.adb: Minor reformatting
3304
3305 2009-05-06 Javier Miranda <miranda@adacore.com>
3306
3307 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
3308 not have discriminants or components with default expressions.
3309 (Analyze_Pragma): For pragma CPP_Class check that imported types
3310 have no discriminants and components have no default expression.
3311
3312 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
3313 class-wide types in the expression of a record component association.
3314
3315 2009-05-06 Sergey Rybin <rybin@adacore.com>
3316
3317 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
3318
3319 * gnat_ugn.texi: Add description for the new extra exit points metric
3320 (gnatmetric section).
3321
3322 2009-05-06 Robert Dewar <dewar@adacore.com>
3323
3324 * s-fileio.adb: Minor comment update
3325
3326 * sem_ch8.adb: Minor reformatting
3327
3328 * exp_ch3.adb: Update comments.
3329
3330 2009-05-06 Tristan Gingold <gingold@adacore.com>
3331
3332 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
3333
3334 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3335
3336 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
3337 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
3338
3339 * gcc-interface/Make-lang.in: Update dependencies
3340
3341 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3342
3343 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
3344 change. The context clause of a generic instance declaration must be
3345 preserved until the end of the compilation, because it may have to be
3346 installed/removed repeatedly.
3347 The latest change to sem.adb ensures that the context of both spec and
3348 body of an instance is traversed before the instance itself, making
3349 this patch redundant.
3350
3351 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3352
3353 * sem_aggr.adb: Fix typo.
3354
3355 2009-05-06 Thomas Quinot <quinot@adacore.com>
3356
3357 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
3358 declaration, do not adjust if the declaration is to be rewritten into
3359 a renaming.
3360
3361 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3362
3363 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
3364 discriminant part.
3365
3366 2009-05-06 Bob Duff <duff@adacore.com>
3367
3368 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
3369 otherwise the compiler would be allowed to optimize away the cleanup
3370 code.
3371
3372 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3373
3374 * gnat_ugn.texi: Fix typo.
3375
3376 2009-05-06 Thomas Quinot <quinot@adacore.com>
3377
3378 * g-debuti.adb: Minor reformatting
3379
3380 * exp_attr.adb: Minor reformatting
3381
3382 2009-05-06 Robert Dewar <dewar@adacore.com>
3383
3384 * sem_aggr.adb: Minor reformatting.
3385
3386 * g-socthi-vms.adb: Minor reformatting
3387
3388 2009-05-06 Bob Duff <duff@adacore.com>
3389
3390 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
3391 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
3392
3393 2009-05-06 Bob Duff <duff@adacore.com>
3394
3395 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
3396 flags.
3397
3398 2009-05-06 Javier Miranda <miranda@adacore.com>
3399
3400 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
3401 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
3402 extension aggregates.
3403 (Resolve_Record_Aggregate): Add support for C++ constructors in
3404 extension aggregates.
3405
3406 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
3407 constructors in extension aggregates.
3408
3409 2009-05-06 Robert Dewar <dewar@adacore.com>
3410
3411 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
3412 clause.
3413
3414 2009-05-06 Thomas Quinot <quinot@adacore.com>
3415
3416 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
3417 packed type, since on OpenVMS, struct msghdr is packed.
3418
3419 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3420
3421 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3422 call returning an unconstrained composite value, create the proper
3423 subtype for it, as is done for object dclarations with unconstrained
3424 nominal subtypes. Perform this transformation regarless of whether
3425 call comes from source.
3426
3427 2009-05-06 Robert Dewar <dewar@adacore.com>
3428
3429 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
3430 records
3431
3432 * gnat_rm.texi:
3433 Add documentation for pragma Implicit_Packing applied to record
3434 types.
3435
3436 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3437
3438 * sem.adb (Walk_Library_Items): Place all with_clauses of an
3439 instantiation on the spec, because late instance bodies may generate
3440 with_clauses for the instance body but are inserted in the instance
3441 spec.
3442
3443 2009-05-06 Emmanuel Briot <briot@adacore.com>
3444
3445 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
3446 support for returning the directory even if it doesn't exist. This is
3447 used for the object directory, since we are always setting it to a
3448 non-null value, and we should set it to an absolute name rather than a
3449 relative name for the sake of external tools that might depend on it.
3450 (Check_Library_Attributes): When Project.Library_Dir is known, check
3451 that the directory exists.
3452
3453 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3454
3455 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
3456 reference is an implicit dereference, do not freeze the designated type
3457 if within a default expression or when preanalyzing a pre/postcondtion.
3458
3459 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3460
3461 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3462 call returning an unconstrained composite value, create the proper
3463 subtype for it, as is done for object dclarations with unconstrained
3464 nominal subtypes
3465
3466 2009-05-06 Robert Dewar <dewar@adacore.com>
3467
3468 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
3469 improvements
3470
3471 * freeze.adb: Minor reformatting
3472
3473 2009-05-06 Thomas Quinot <quinot@adacore.com>
3474
3475 * sem_ch3.adb (Access_Type_Declaration): An access type whose
3476 designated type is a limited view from a limited with clause (flagged
3477 From_With_Type) is not itself such a limited view.
3478
3479 2009-05-06 Emmanuel Briot <briot@adacore.com>
3480
3481 * prj-nmsc.adb: Remove unused variable.
3482
3483 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
3484 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
3485 makeutl.ads, since not all users of prj.ads need this.
3486
3487 2009-05-06 Javier Miranda <miranda@adacore.com>
3488
3489 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
3490 constructor in case of aggregates whose type is a CPP_Class type.
3491
3492 2009-05-06 Robert Dewar <dewar@adacore.com>
3493
3494 * sem_ch13.adb: Minor comment additions
3495
3496 * osint.adb: Minor reformatting
3497
3498 2009-05-06 Pascal Obry <obry@adacore.com>
3499
3500 * initialize.c: On Windows, keep full pathname to expanded command
3501 line patterns.
3502
3503 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3504
3505 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
3506 an aggregate with box default is of a discriminated private type, do
3507 not build a subaggregate for it.
3508 A proper call to the initialization procedure is generated for it.
3509
3510 2009-05-06 Thomas Quinot <quinot@adacore.com>
3511
3512 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
3513 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
3514 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
3515 use standard array code for Standard.String.
3516 (Exp_Dist): Bump PolyORB s-parint API version to 3.
3517 (Rtsfind): New entities TA_Std_String, Unbounded_String.
3518
3519 2009-05-06 Robert Dewar <dewar@adacore.com>
3520
3521 * g-comlin.ads: Minor reformatting
3522
3523 * xoscons.adb: Minor reformatting
3524
3525 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3526
3527 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
3528 Underlying_Type before retrieving the type definition for gathering
3529 components, to account for the case where the type is private.
3530
3531 2009-05-06 Tristan Gingold <gingold@adacore.com>
3532
3533 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
3534
3535 2009-05-06 Thomas Quinot <quinot@adacore.com>
3536
3537 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3538 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
3539 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
3540 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
3541 Windows versions): Fix incorrect base
3542 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
3543 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
3544 System.Address for the To parameter instead of a Sockaddr_In_Access, to
3545 achieve independance from AF_INET family, and also to allow this
3546 parameter to be retrieved from a Msghdr for the Windows case where
3547 these routines are used to implement C_Sendmsg and C_Recvmsg.
3548
3549 2009-05-06 Bob Duff <duff@adacore.com>
3550
3551 * g-expect.adb, g-expect.ads: Minor reformatting
3552
3553 * sdefault.ads: Minor comment fix
3554
3555 * g-expect-vms.adb: Minor reformatting
3556
3557 * table.ads, table.adb (Append_All): New convenience procedure for
3558 appending a whole array.
3559
3560 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
3561 box message. Call Osint.Dump_Source_File_Names to print out the file
3562 list, instead of rummaging around in various data structures.
3563
3564 * debug.adb: New switch -gnatd.n, to print source file names as they
3565 are read.
3566
3567 * alloc.ads: Add parameters for Osint.File_Name_Chars.
3568
3569 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
3570 out source file names during a "bug box".
3571 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
3572 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
3573 If it's not part of the runtimes, store it for later printing by
3574 Dump_Source_File_Names.
3575
3576 2009-05-06 Javier Miranda <miranda@adacore.com>
3577
3578 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
3579 documentation and add reference to the GNAT user guide for further
3580 details.
3581
3582 2009-05-06 Javier Miranda <miranda@adacore.com>
3583
3584 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
3585 also wrong examples that use extension aggregates.
3586
3587 2009-05-06 Albert Lee <lee@adacore.com>
3588
3589 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
3590 of Msg_Iovlen_T for VMS.
3591
3592 2009-05-04 Laurent GUERBY <laurent@guerby.net>
3593
3594 PR ada/38874
3595 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
3596
3597 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3598
3599 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
3600 box-defaulted operator in an instantiation, when the type of the
3601 operands is not directly visible.
3602
3603 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3604
3605 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
3606 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
3607 analysis of the ancestor part. Remove prohibition against limited
3608 interpretations of the ancestor expression in the case of Ada 2005.
3609 Revise error message in overloaded case, adding a message to cover
3610 the Ada 2005 case.
3611
3612 2009-04-29 Thomas Quinot <quinot@adacore.com>
3613
3614 * xoscons.adb: Minor reformatting
3615
3616 2009-04-29 Bob Duff <duff@adacore.com>
3617
3618 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
3619 attribute_definition_clauses for the following attributes when the
3620 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
3621 Storage_Size, Write. Otherwise, we get spurious errors (for example,
3622 missing Read attribute on remote types).
3623
3624 * gnat_ugn.texi: Document the change, and add a stern warning.
3625
3626 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3627
3628 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
3629 disabled not just for the current scope, but for the innermost dynamic
3630 scope as well.
3631
3632 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3633
3634 * gcc-interface/Make-lang.in: Update dependencies
3635
3636 2009-04-29 Vincent Celier <celier@adacore.com>
3637
3638 * prj-part.adb: Minor comment update
3639
3640 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3641
3642 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
3643 box-initialized records with discriminated subcomponents that are
3644 constrained by discriminants of enclosing components. New subsidiary
3645 procedures Add_Discriminant_Values, Propagate_Discriminants.
3646
3647 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3648
3649 * g-socket.adb: Code clean up.
3650
3651 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3652
3653 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
3654 function entity, to cover the case of a parameterless function call
3655 that has not been resolved.
3656
3657 2009-04-29 Robert Dewar <dewar@adacore.com>
3658
3659 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
3660 reformatting and comment updates.
3661
3662 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3663
3664 * gnat_ugn.texi: Update some documentation about interfacing with C++
3665 Mention -fkeep-inline-functions.
3666
3667 * gnat_ugn.texi: Minor edits
3668
3669 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3670
3671 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
3672 for a defaulted component of an enclosing aggregate, inherit the type
3673 from the component declaration of the enclosing type.
3674
3675 2009-04-29 Albert Lee <lee@adacore.com>
3676
3677 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
3678 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
3679 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
3680 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
3681 Relocate the Msghdr record type from GNAT.Sockets.Thin to
3682 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
3683 type for the Msg_Iovlen field.
3684
3685 2009-04-29 Vincent Celier <celier@adacore.com>
3686
3687 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
3688 Source_File_Index_Table entries for the source, to avoid crash when
3689 reporting an error.
3690
3691 * gnatcmd.adb (Test_If_Relative_Path): Use
3692 Makeutl.Test_If_Relative_Path.
3693
3694 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
3695 Including_RTS is True.
3696
3697 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
3698 Including_RTS defaulted to False.
3699
3700 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
3701 a default value.
3702
3703 2009-04-29 Javier Miranda <miranda@adacore.com>
3704
3705 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
3706
3707 2009-04-29 Javier Miranda <miranda@adacore.com>
3708
3709 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
3710 associated with dyamically tagged expressions if the expression
3711 initializing a tagged type corresponds with a non default CPP
3712 constructor.
3713 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
3714 of limited type objects.
3715
3716 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
3717 when a CPP constructor is called in an assignment. Disable also the
3718 error message associated with dyamically tagged expressions if the
3719 exporession initializing a tagged type corresponds with a non default
3720 CPP constructor.
3721
3722 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
3723 non-default C++ constructors.
3724
3725 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
3726
3727 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
3728 non-default constructors.
3729 (Init_Proc): Add support for non-default constructors.
3730
3731 * exp_disp.adb (Set_Default_Constructor): Removed.
3732 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
3733 but extending its functionality to handle non-default constructors.
3734
3735 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
3736 constructors. Minor code cleanup removing unrequired label and goto
3737 statement.
3738
3739 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
3740 constructors.
3741 (Build_Init_Statements): Add support for non-default constructors.
3742 (Expand_N_Object_Declaration): Add support for non-default constructors.
3743 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
3744 to Set_CPP_Constructors.
3745
3746 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
3747 non-default constructors.
3748 Required to handle its use in build-in-place statements.
3749
3750 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
3751 pragma for non-default C++ constructors and the new compiler support
3752 that allows the use of these constructors in record components, limited
3753 aggregates, and extended return statements.
3754
3755 2009-04-29 Vincent Celier <celier@adacore.com>
3756
3757 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
3758 project extending an abstract project.
3759
3760 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3761
3762 * targparm.ads: Fix oversight.
3763
3764 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3765
3766 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
3767 derivation when necessary, to find the user-subprogram that is actally
3768 being overridden.
3769
3770 2009-04-29 Robert Dewar <dewar@adacore.com>
3771
3772 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
3773 components
3774
3775 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3776
3777 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
3778 primitive operation, rather than source line of synchronized type, when
3779 building the wrapper for a primitive operation that overrides an
3780 operation inherited from a progenitor, to improve the error message on
3781 duplicate declarations.
3782
3783 * sem_ch3.adb (Process_Full_View): Use new signature of
3784 Build_Wrapper_Spec.
3785
3786 2009-04-29 Robert Dewar <dewar@adacore.com>
3787
3788 * prj-nmsc.ads: Minor reformatting
3789
3790 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3791
3792 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
3793 expression on the existing parent If statement.
3794
3795 2009-04-29 Robert Dewar <dewar@adacore.com>
3796
3797 * prj-proc.adb, prj.ads: Minor reformatting
3798
3799 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3800
3801 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
3802 existing parent If statement on the newly created one.
3803
3804 2009-04-29 Emmanuel Briot <briot@adacore.com>
3805
3806 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3807 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
3808 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
3809 (Set_In_Configuration, In_Configuration): Removed.
3810 Replaced by an extra parameter Is_Config_File in several parameter to
3811 avoid global variables to store the state of the parser.
3812
3813 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3814
3815 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
3816 with_clauses generated for the same unit through rtsfind, and that
3817 appear in the context of different units.
3818
3819 * rtsfind.adb: New attribute First_Implicit_With, component of the
3820 Unit_Record that stores information about a unit loaded through rtsfind.
3821
3822 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3823
3824 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
3825 (other conditions permitting), so that abstract stream subprograms will
3826 be declared for them.
3827
3828 2009-04-29 Bob Duff <duff@adacore.com>
3829
3830 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
3831
3832 * g-expect.ads: Minor comment fixes.
3833
3834 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3835
3836 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
3837 dispatching operation is a body without previous spec, update the list
3838 of primitive operations to ensure that cross-reference information is
3839 up-to-date.
3840
3841 2009-04-29 Albert Lee <lee@adacore.com>
3842
3843 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3844 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3845 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
3846 (GNAT.Sockets.Thin.C_Readv,
3847 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
3848 (GNAT.Sockets.Thin.C_Recvmsg,
3849 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
3850 sendmsg(2).
3851 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
3852 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
3853
3854 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3855
3856 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
3857 operation is a body without previous spec, update the list of
3858 primitive operations to ensure that cross-reference information is
3859 up-to-date.
3860
3861 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
3862 new compilation unit node for the instance declaration, keep the
3863 context items of the original unit on it, so that the context of the
3864 instance body only holds the context inherited from the generic body.
3865
3866 2009-04-29 Bob Duff <duff@adacore.com>
3867
3868 * sem_res.adb: Minor comment fix.
3869
3870 2009-04-29 Thomas Quinot <quinot@adacore.com>
3871
3872 * sem_elim.adb: Minor reformatting
3873
3874 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3875
3876 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
3877 predefined unit, allow arbitrary number of components in static
3878 aggregate, to ensure that the same level of constant folding applies
3879 for Ada 95 and Ada 05 versions of the file.
3880
3881 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3882
3883 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
3884 information: no need for full scope check.
3885 (Eliminate_Error): Do not emit error in a generic context.
3886
3887 2009-04-29 Ed Falis <falis@adacore.com>
3888
3889 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
3890 VxWorks 653 POS does not support rmdir.
3891
3892 2009-04-29 Matteo Bordin <bordin@adacore.com>
3893
3894 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
3895 results are printed.
3896
3897 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3898
3899 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
3900 unused assignment.
3901
3902 2009-04-29 Thomas Quinot <quinot@adacore.com>
3903
3904 * make.adb: Minor reformatting.
3905 Minor code reorganization throughout.
3906
3907 2009-04-29 Matteo Bordin <bordin@adacore.com>
3908
3909 * s-stausa.ads: Changed visibility of type Task_Result: moved to
3910 public part to give application visibility over it.
3911 This is for future improvement and to build a public API on top of it.
3912 Changed record components name of type Task_Result to reflect the new
3913 way of reporting.
3914
3915 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
3916 reporting Stack usage.
3917
3918 * gnat_ugn.texi: Update doc of stack usage report.
3919
3920 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
3921
3922 * Makefile.rtl: Add new run-time files.
3923
3924 2009-04-29 Pascal Obry <obry@adacore.com>
3925
3926 * initialize.c: Do not expand quoted arguments.
3927
3928 2009-04-29 Emmanuel Briot <briot@adacore.com>
3929
3930 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
3931
3932 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
3933 Prj.Ultimate_Extending_Project_Of
3934
3935 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3936
3937 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
3938 Amendment type, add the with_clause for Finalization.List_Controller
3939 only if the current context is a package body.
3940
3941 2009-04-29 Thomas Quinot <quinot@adacore.com>
3942
3943 * sem_ch12.adb: Minor reformatting
3944
3945 * sem_aggr.adb: Minor reformatting
3946
3947 * sem_ch6.adb, sem_cat.ads: Minor reformatting
3948
3949 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
3950
3951 2009-04-29 Quentin Ochem <ochem@adacore.com>
3952
3953 * prj.ads (Source_Id): Now general pointer type.
3954
3955 2009-04-29 Thomas Quinot <quinot@adacore.com>
3956
3957 * exp_ch7.adb, rtsfind.adb: Minor reformatting
3958
3959 * sem_res.adb: Minor reformatting
3960
3961 2009-04-29 Thomas Quinot <quinot@adacore.com>
3962
3963 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
3964 operands is static only if it is a predefined concatenation operator.
3965
3966 * sem_util.adb: Minor reformatting
3967
3968 * sem_ch12.adb (Save_References): When propagating semantic information
3969 from generic copy back to generic template, for the case of an
3970 identifier that has been rewritten to an explicit dereference whose
3971 prefix is either an object name or a parameterless funcion call
3972 denoting a global object or function, properly capture the denoted
3973 global entity: perform the corresponding rewriting in the template,
3974 and point the rewritten identifier to the correct global entity (not
3975 to the associated identifier in the generic copy).
3976
3977 2009-04-29 Robert Dewar <dewar@adacore.com>
3978
3979 * rtsfind.adb, prj-env.adb: Minor reformatting
3980 Minor code reorganization
3981
3982 2009-04-29 Emmanuel Briot <briot@adacore.com>
3983
3984 * make.adb: Fix comment
3985
3986 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
3987 is given as argument, as might happen in gnatmake.
3988
3989 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3990
3991 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
3992 an abstract operation of a progenitor is not properly overridden by an
3993 operation of a derived synchronized type.
3994
3995 2009-04-29 Robert Dewar <dewar@adacore.com>
3996
3997 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
3998 prj-proc.adb: Minor reformatting
3999 Minor code reorganization
4000
4001 2009-04-29 Bob Duff <duff@adacore.com>
4002
4003 * exp_ch7.adb (Build_Final_List): For an access type that designates a
4004 Taft Amendment type, if the access type needs finalization, make sure
4005 the implicit with clause for List_Controller occurs on the package spec.
4006
4007 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
4008 with's created for the pseudo-children of Text_IO and friends. In
4009 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
4010 Ada.Text_IO.Integer_IO both with-ing each other.
4011
4012 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
4013 oddball cases when pragma Extend_System is used.
4014
4015 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
4016 the case where a package spec instantiates a generic whose body with's
4017 this package, so Walk_Library_Items won't complain about cyclic with's.
4018
4019 2009-04-29 Emmanuel Briot <briot@adacore.com>
4020
4021 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
4022 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
4023 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
4024 (Project_Id): now a real pointer to Project_Data, instead of an index
4025 into the Projects_Table. This simplifies the API significantly, avoiding
4026 extra lookups in this table and the need to pass the Project_Tree_Ref
4027 parameter in several cases
4028
4029 2009-04-29 Nicolas Setton <setton@adacore.com>
4030
4031 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
4032 darwin.
4033
4034 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
4035
4036 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
4037 back kludge.
4038
4039 2009-04-24 Robert Dewar <dewar@adacore.com>
4040
4041 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
4042 clean.adb: Minor reformatting.
4043 Minor code reorganization and message improvement.
4044
4045 2009-04-24 Emmanuel Briot <briot@adacore.com>
4046
4047 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
4048 (Alternate_Languages): now implemented as a malloc-ed list rather
4049 than through a table.
4050
4051 2009-04-24 Thomas Quinot <quinot@adacore.com>
4052
4053 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
4054 accurately handle cases such as "lit" & "lit" and
4055 "lit" & static_string_constant
4056
4057 2009-04-24 Emmanuel Briot <briot@adacore.com>
4058
4059 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4060 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
4061 removed. Lists of projects are now implemented via standard malloc
4062 rather than through the table.
4063
4064 2009-04-24 Thomas Quinot <quinot@adacore.com>
4065
4066 * sem_ch12.adb: Minor reformatting
4067
4068 * g-trasym.adb: Minor reformatting
4069
4070 * exp_ch6.adb: Minor reformatting
4071
4072 2009-04-24 Robert Dewar <dewar@adacore.com>
4073
4074 * layout.adb (Layout_Type): For packed array type, copy unset
4075 size/alignment fields from the referenced Packed_Array_Type.
4076
4077 2009-04-24 Bob Duff <duff@adacore.com>
4078
4079 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
4080 longer needed after sem_ch12 changes.
4081
4082 * sem.adb (Walk_Library_Items): Include with's in some debugging
4083 printouts.
4084
4085 2009-04-24 Emmanuel Briot <briot@adacore.com>
4086
4087 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
4088 only ever using the Project field.
4089
4090 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4091
4092 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
4093 Body_Required on the generated compilation node. The new node is linked
4094 to its body, but both share the same file, so we do not set this flag
4095 on the new unit so as not to create a spurious dependency on a
4096 non-existent body in the ali file for the instance.
4097
4098 2009-04-24 Robert Dewar <dewar@adacore.com>
4099
4100 * make.adb: Minor reformatting
4101
4102 2009-04-24 Emmanuel Briot <briot@adacore.com>
4103
4104 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
4105 Add_Source): merge some code between those. In particular change where
4106 file normalization is done to avoid a few extra calls to
4107 Canonicalize_File_Name. This also removes the need for passing
4108 Current_Dir in a number of subprograms.
4109
4110 2009-04-24 Bob Duff <duff@adacore.com>
4111
4112 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
4113 False, assign the correct unit to the Cunit field of the new table
4114 entry. We want the spec unit, not the body unit.
4115
4116 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
4117 interface for these.
4118 (Maybe_Add_With): Check whether we're trying to a with on the current
4119 unit, and avoid creating such directly self-referential with clauses.
4120 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
4121 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
4122 and matches existing comments in the spec.
4123
4124 * sem.adb (Walk_Library_Items): Add various special cases to make the
4125 assertions pass.
4126
4127 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
4128 instead of Parent (N), for uniformity.
4129
4130 2009-04-24 Robert Dewar <dewar@adacore.com>
4131
4132 * errout.ads: Minor reformatting
4133
4134 2009-04-24 Emmanuel Briot <briot@adacore.com>
4135
4136 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
4137 behavior when the project includes sources from multiple languages
4138
4139 2009-04-24 Vincent Celier <celier@adacore.com>
4140
4141 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
4142 is a language other than Ada declared.
4143
4144 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
4145 Imported_First set to True.
4146
4147 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4148
4149 * sem_res.adb: additional optimization to inhibit creation of
4150 redundant transient scopes.
4151
4152 2009-04-24 Bob Duff <duff@adacore.com>
4153
4154 * rtsfind.ads: Minor comment fix
4155
4156 2009-04-24 Emmanuel Briot <briot@adacore.com>
4157
4158 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
4159 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
4160 basically doing the same work (for explicit or implicit sources).
4161 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
4162 role. Rewritten to share some code (testing that all explicit sources
4163 have been found) between ada_only and multi_language modes.
4164
4165 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
4166
4167 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
4168 for CLI imported types.
4169 (Analyze_Pragma): Allow CIL or Java imported functions returning
4170 access-to-subprogram types.
4171
4172 2009-04-24 Emmanuel Briot <briot@adacore.com>
4173
4174 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
4175 (Project_Data.Dir_Path): field removed, since it can be computed
4176 directly from .Directory, and is needed only once when processing the
4177 project is buildgpr.adb or make.adb
4178
4179 2009-04-24 Robert Dewar <dewar@adacore.com>
4180
4181 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
4182 rtsfind.adb: Minor reformatting.
4183 Minor code reorganization
4184
4185 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4186
4187 * mlib-prj.adb: Use friendlier english identifier.
4188
4189 * gnatcmd.adb, make.adb: Use better english identifiers.
4190
4191 2009-04-24 Robert Dewar <dewar@adacore.com>
4192
4193 * clean.adb: Minor reformatting
4194
4195 2009-04-24 Robert Dewar <dewar@adacore.com>
4196
4197 * einfo.adb (OK_To_Rename): New flag
4198
4199 * einfo.ads (OK_To_Rename): New flag
4200
4201 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
4202 OK_To_Rename set.
4203
4204 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
4205
4206 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
4207 OK_To_Rename.
4208
4209 2009-04-24 Emmanuel Briot <briot@adacore.com>
4210
4211 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
4212 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
4213 field removed. This is not a property of the
4214 project, just a boolean used to traverse the project tree, and storing
4215 it in the structure prevents doing multiple traversal in parallel.
4216 (Project_Data.Checked): also removed, since it was playing the same role
4217 as Seen when we had two nested loops, and this is no longer necessary
4218 (For_All_Imported_Projects): removed, since in fact there was already
4219 the equivalent in For_Every_Project_Imported. The latter was rewritten
4220 to use a local hash table instead of Project_Data.Seen
4221 Various loops were rewritten to use For_Every_Project_Imported, thus
4222 removing the need for Project_Data.Seen. This avoids a lot of code
4223 duplication
4224
4225 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4226
4227 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
4228 statements, even though the actual of the call is a concatenation,
4229 because the argument is static, and we want to preserve warning
4230 messages about sequences of code statements that are not marked
4231 volatile.
4232
4233 * sem_warn.adb: remove obsolete comment about warning being obsolete
4234
4235 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
4236 requeued and the delay has expired while within the accept statement
4237 that executes the requeue, do not perform the requeue and indicate that
4238 the timed call has been aborted.
4239
4240 2009-04-24 Emmanuel Briot <briot@adacore.com>
4241
4242 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4243 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
4244 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
4245 since they can be computed from the above.
4246
4247 2009-04-24 Vincent Celier <celier@adacore.com>
4248
4249 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
4250
4251 * prj-env.adb: Move all global variables to the private part of the
4252 project tree data.
4253 Access these new components instead of the global variables no longer
4254 in existence.
4255 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
4256 components that were previously global variables.
4257
4258 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
4259 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
4260 parameter.
4261
4262 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
4263 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
4264
4265 * prj.adb (Initialize): Do not call Prj.Env.Initialize
4266 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
4267 components in the private part of the project tree data.
4268
4269 * prj.ads (Private_Project_Tree_Data): new components moved from
4270 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
4271 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
4272 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
4273
4274 2009-04-24 Vincent Celier <celier@adacore.com>
4275
4276 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
4277
4278 * prj-nmsc.adb (Check_Library): No error for imports by shared library
4279 projects, when --unchecked-shared-lib-imports is used.
4280
4281 2009-04-24 Robert Dewar <dewar@adacore.com>
4282
4283 * sem_ch7.adb: Minor reformatting
4284
4285 2009-04-24 Tristan Gingold <gingold@adacore.com>
4286
4287 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
4288 mach thread id.
4289
4290 2009-04-24 Emmanuel Briot <briot@adacore.com>
4291
4292 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
4293 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
4294 (For_All_Imported_Projects): new procedure
4295 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
4296 above rather than duplicating code.
4297
4298 2009-04-24 Emmanuel Briot <briot@adacore.com>
4299
4300 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4301 (Source_Id, Source_Data): use a real list to store sources rather than
4302 using an external table to store the elements. This makes code more
4303 efficient and more readable.
4304
4305 2009-04-24 Emmanuel Briot <briot@adacore.com>
4306
4307 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4308 (Source_Iterator): new type.
4309 This removes the need for having the sources on three different
4310 lists at the project tree, project and language level. They are now
4311 on a single list.
4312
4313 2009-04-24 Emmanuel Briot <briot@adacore.com>
4314
4315 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
4316
4317 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4318
4319 * sem_warn.adb: Add comment on obsolete warning
4320
4321 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4322
4323 * s-tassta.adb (Create_Task): Fix violation of locking rule.
4324
4325 2009-04-24 Emmanuel Briot <briot@adacore.com>
4326
4327 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
4328 to Language_Ptr to better reflect its new implementation.
4329 (Project_Data.First_Languages_Processing): renamed to Languages now
4330 that the field with that name is no longer used
4331 (Project_Data.Languages): removed, no longer used, and duplicates
4332 information already available through First_Language_Processing.
4333 (Prj.Language_Index): now an actual pointer, instead of an index into
4334 a table. This makes the list somewhat more obvious, but more importantly
4335 removes the need to pass a pointer to the project_tree_data in a few
4336 places, and makes accessing the attributes of a languages more
4337 efficient.
4338
4339 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4340 Thomas Quinot <quinot@adacore.com>
4341
4342 * fe.h (Set_Identifier_Casing): Add const to second parameter.
4343 * gcc-interface/misc.c (internal_error_function): Make copy of return
4344 from pp_formatted_text before assigning BUFFER to it.
4345 (gnat_init): Likewise for main_input_filename and gnat_argv.
4346 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
4347
4348 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4349
4350 * ttypes.ads (Target_Double_Float_Alignment): New variable.
4351 (Target_Double_Scalar_Alignment): Likewise.
4352 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
4353 (Get_Double_Float_Alignment): New imported function.
4354 (Get_Double_Scalar_Alignment): Likewise.
4355 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
4356 the alignment of "double" floating-point types and "double" or larger
4357 scalar types, as parameterized by Target_Double_Float_Alignment and
4358 Target_Double_Scalar_Alignment respectively.
4359 * gcc-interface/gigi.h (double_float_alignment): Declare.
4360 (double_scalar_alignment): Likewise.
4361 (is_double_float_or_array): Likewise.
4362 (is_double_scalar_or_array): Likewise.
4363 (get_target_double_float_alignment): Likewise.
4364 (get_target_double_scalar_alignment): Likewise.
4365 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
4366 (get_target_strict_alignment): ...this.
4367 (get_target_double_float_alignment): New function.
4368 (get_target_double_scalar_alignment): Likewise.
4369 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4370 Test the presence of an alignment clause for under-aligned integer
4371 types. Take into account specific caps for the alignment of "double"
4372 floating-point types and "double" or larger scalar types, as
4373 parameterized by Target_Double_Float_Alignment and
4374 Target_Double_Scalar_Alignment respectively.
4375 (validate_alignment): Likewise.
4376 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
4377 (gigi): Initialize double_float_alignment and double_scalar_alignment.
4378 * gcc-interface/utils.c (double_float_alignment): New global variable.
4379 (double_scalar_alignment): Likewise.
4380 (is_double_float_or_array): New predicate.
4381 (is_double_scalar_or_array): Likewise.
4382
4383 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4384
4385 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
4386 the conditional expression only if it is common to both arms.
4387
4388 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4389
4390 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
4391 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
4392 arguments to build_allocator.
4393 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
4394 Remove code handling special allocator and assert its uselessness.
4395
4396 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4397
4398 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
4399 alignment is specified, do not promote that of the component type
4400 beyond it.
4401 <E_Array_Subtype>: Likewise.
4402
4403 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4404
4405 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
4406 * sinfo.ads (Object Declaration): Likewise.
4407 (Assignment Statement): Likewise.
4408 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
4409 Do not force Is_True_Constant to false on the temporary.
4410 (Freeze_Entity): Do not force Is_True_Constant to false on names on
4411 the RHS of object declarations.
4412 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
4413 New case. Return 1 if the object is atomic.
4414 <N_Assignment_Statement>: Likewise.
4415
4416 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4417
4418 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4419 For packed array types, make the original array type a parallel type
4420 for the modular type and its JM wrapper if the type is bit-packed.
4421 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
4422 record type for packed array types. Remove kludge.
4423
4424 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4425
4426 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
4427 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4428 Use front-end predicates to compute signedness and precision.
4429 <E_String_Literal_Subtype>: Fold range type.
4430 Make sure to set longest_float_type_node to a scalar type.
4431 (elaborate_entity): Use consistent Constraint_Error spelling.
4432 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
4433 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
4434 output for the modulus, if any.
4435 <ENUMERAL_TYPE>: Likewise for the RM size.
4436 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
4437 spelling.
4438 * gcc-interface/utils.c (finish_record_type): Really test the alignment
4439 of BLKmode bit-fields to compute their addressability.
4440 (create_index_type): Adjust comments.
4441 (create_param_decl): Create the biased subtype manually.
4442 * gcc-interface/utils2.c (build_component_ref): Use consistent
4443 Constraint_Error spelling.
4444
4445 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4446
4447 * gcc-interface/cuintp.c: Clean up include directives.
4448 * gcc-interface/targtyps.c: Likewise.
4449 * gcc-interface/decl.c: Likewise.
4450 * gcc-interface/misc.c: Likewise.
4451 * gcc-interface/trans.c: Likewise.
4452 * gcc-interface/utils.c: Likewise.
4453 * gcc-interface/utils2.c: Likewise.
4454 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
4455
4456 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4457
4458 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
4459 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
4460 (SET_DECL_LANG_SPECIFIC): Likewise.
4461 Reorder macros.
4462 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4463 Update comment about use of build_range_type.
4464 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
4465 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
4466 check for other cases of overloading.
4467 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
4468 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
4469 Use size_int in lieu of build_int_cst.
4470 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
4471 build_range_type.
4472
4473 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4474
4475 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
4476 type is an enumeral or a boolean type, change it to an integer type
4477 with the same mode and signedness.
4478
4479 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4480
4481 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
4482 for an external constant whose initializer is not absolute.
4483
4484 2009-04-22 Taras Glek <tglek@mozilla.com>
4485
4486 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
4487 * gcc-interface/trans.c: Likewise.
4488 * gcc-interface/utils.c: Likewise.
4489
4490 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4491
4492 * sem_res.adb: Create block around procedure call when actual is a
4493 concatenation.
4494
4495 2009-04-22 Thomas Quinot <quinot@adacore.com>
4496
4497 * s-soflin.ads: Fix typos
4498
4499 2009-04-22 Vincent Celier <celier@adacore.com>
4500
4501 * prj-env.adb: Minor comment change
4502
4503 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
4504 Get_Name_String with No_File.
4505
4506 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
4507 cannot be created even when not in verbose mode.
4508
4509 2009-04-22 Emmanuel Briot <briot@adacore.com>
4510
4511 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
4512 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
4513 Multi_Language modes, to avoid code duplication.
4514 (Project_Data.Include_Language): Removed.
4515
4516 2009-04-22 Vincent Celier <celier@adacore.com>
4517
4518 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
4519 the temporary file cannot be created, indicating the directory when the
4520 creation was attempted.
4521
4522 2009-04-22 Emmanuel Briot <briot@adacore.com>
4523
4524 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
4525 the language names, not their indices.
4526
4527 2009-04-22 Emmanuel Briot <briot@adacore.com>
4528
4529 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
4530 (Source_Data.Language_Name): Field removed.
4531
4532 2009-04-22 Emmanuel Briot <briot@adacore.com>
4533
4534 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
4535 Two fields removed.
4536
4537 2009-04-22 Emmanuel Briot <briot@adacore.com>
4538
4539 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
4540 separate_suffix to the same value as the body_suffix.
4541
4542 2009-04-22 Robert Dewar <dewar@adacore.com>
4543
4544 * prj.adb: Minor code reorganization
4545 Code clean up.
4546
4547 * prj-proc.adb: Minor code reorganization, clean up.
4548
4549 * prj-nmsc.adb: Minor reformatting
4550 Minor code reorganization
4551
4552 * gnat_ugn.texi: Add to doc on strict aliasing
4553
4554 2009-04-22 Pascal Obry <obry@adacore.com>
4555
4556 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
4557 SpinCount.
4558
4559 * s-tasini.adb: Minor reformatting.
4560
4561 * s-tassta.adb: Minor reformatting.
4562
4563 2009-04-22 Emmanuel Briot <briot@adacore.com>
4564
4565 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
4566 smaller subprograms.
4567 Renamed to Check_File_Naming_Schemes to avoid confusion with the
4568 other Check_Naming_Schemes functions that plays a totally different
4569 role.
4570 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
4571 extracted from the above. These were partially rewritten to avoid
4572 unnecessary code and temporary variables.
4573 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
4574 and Get_Unit (which for now still exist since they contain mode-specific
4575 code)
4576
4577 2009-04-22 Emmanuel Briot <briot@adacore.com>
4578
4579 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
4580 Remove duplicated code.
4581 (Canonical_Case_File_Name): new subprogram
4582 (Check_And_Normalize_Unit_Names): new subprogram
4583 (Write_Attr): new subprogram
4584 Better sharing of code
4585 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
4586 split Check_Naming and help find duplicated code
4587 (Check_Common): new subprogram, sharing code between ada_only and
4588 multi_language mode.
4589 (Naming_Data.Dot_Repl_Loc): field removed
4590
4591 2009-04-22 Emmanuel Briot <briot@adacore.com>
4592
4593 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
4594 Minor refactoring to reduce the size of
4595 Process_Sources_In_Multi_Language_Mode.
4596 Avoid extra copied of Source_Data, which we found in the past could be
4597 quite slow.
4598 (Mark_Excluded_Sources): new subprogram.
4599 (Remove_Locally_Removed_Files_From_Units): merged into the above
4600 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
4601 and allow better sharing of code between multi_lang and ada_only modes
4602 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
4603
4604 2009-04-22 Emmanuel Briot <briot@adacore.com>
4605
4606 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
4607 Removed, since unused.
4608
4609 2009-04-22 Vincent Celier <celier@adacore.com>
4610
4611 * prj-attr.adb: New single project level attribute
4612 Separate_Run_Path_Options.
4613
4614 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4615 attribute Seperate_Run_Path_Options.
4616
4617 * prj.ads: (Project_Configuration): New Boolean component
4618 Separate_Run_Path_Options, defaulted to False.
4619
4620 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
4621
4622 2009-04-22 Robert Dewar <dewar@adacore.com>
4623
4624 * sem_type.adb: Minor reformatting
4625
4626 * mlib.adb: Minor reformatting
4627
4628 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
4629 syntax error.
4630
4631 2009-04-22 Nicolas Setton <setton@adacore.com>
4632
4633 * link.c: Add flag __gnat_separate_run_path_options.
4634
4635 * mlib.adb (Separate_Run_Path_Options): New subprogram.
4636
4637 * mlib.ads (Separate_Run_Path_Options): Declare.
4638
4639 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
4640 switch per directory, rather than one "rpath" switch listing all
4641 directories.
4642
4643 * gnatlink.adb (Process_Binder_File): Likewise.
4644
4645 * make.adb (Gnatmake): Likewise.
4646
4647 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
4648
4649 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
4650 Add a call to Move_Final_List when the target of the assignment is a
4651 return object that needs finalization and the expression is a
4652 controlled build-in-place function.
4653
4654 2009-04-22 Vincent Celier <celier@adacore.com>
4655
4656 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
4657 Including_Libraries set to True.
4658
4659 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4660
4661 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
4662 create a unit table entry for the subprogram declaration created for a
4663 child suprogram body that has no separate specification.
4664
4665 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
4666 subprogram body, call Make_Child_Decl_Unit.
4667
4668 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
4669 table can only be the created specification of a child subprogram body
4670 that is the main unit, which has not been entered in the table yet.
4671
4672 * errout.adb (Output_Messages): Ignore created specification of a
4673 child subprogram body to prevent repeated listing of error messages.
4674
4675 * gnat1drv.adb (gnat1drv): The generated specification for a child
4676 subprogram body does not generate code.
4677
4678 2009-04-22 Arnaud Charlet <charlet@adacore.com>
4679
4680 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
4681 since this unit is now part of bootstrap units, so must use Ada 95
4682 syntax only.
4683
4684 2009-04-22 Thomas Quinot <quinot@adacore.com>
4685
4686 * a-tasatt.adb: Minor reformatting
4687
4688 2009-04-22 Bob Duff <duff@adacore.com>
4689
4690 * s-stalib.ads: Remove "with System;" since we're inside System, so
4691 it's unnecessary.
4692
4693 2009-04-22 Vincent Celier <celier@adacore.com>
4694
4695 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
4696 the source record, as there may be a dependency file even if no object
4697 file is created.
4698
4699 2009-04-22 Robert Dewar <dewar@adacore.com>
4700
4701 * lib-load.adb: Minor reformatting
4702
4703 * lib-load.ads: Minor reformatting
4704
4705 * sinfo.ads: Minor reformatting
4706
4707 2009-04-22 Bob Duff <duff@adacore.com>
4708
4709 * exp_pakd.adb: Minor comment fixes.
4710
4711 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
4712 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
4713 include units containing instantiations, as well as units that are
4714 generic instantiations.
4715
4716 * sem.adb: Include dependents and corresponding specs/bodies in the
4717 unit walk.
4718
4719 * gcc-interface/Make-lang.in:
4720 sem now depends on s-bitops, because of the packed array of Booleans.
4721
4722 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4723
4724 * gcc-interface/ada-tree.def: Fix formatting nits.
4725 (REGION_STMT): Delete.
4726 (HANDLER_STMT): Likewise.
4727 * gcc-interface/ada-tree.h: Fix formatting nits.
4728 (IS_STMT): Delete.
4729 (REGION_STMT_BODY): Likewise.
4730 (REGION_STMT_HANDLE): Likewise.
4731 (REGION_STMT_BLOCK): Likewise.
4732 (HANDLER_STMT_ARG): Likewise.
4733 (HANDLER_STMT_LIST): Likewise.
4734 (HANDLER_STMT_BLOCK): Likewise.
4735 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
4736 (fp_size_to_prec): Likewise.
4737 (largest_move_alignment): Delete.
4738 (gnat_compute_largest_alignment): Likewise.
4739 Fix minor nits.
4740 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4741 Remove redundant code.
4742 <E_Array_Type>: Remove redundant assert.
4743 <E_Array_Subtype>: Exit early from index computation in pathological
4744 cases.
4745 Rewrite conditional assignment.
4746 (make_type_from_size): Likewise.
4747 * gcc-interface/misc.c (largest_move_alignment): Delete.
4748 (gnat_finish_incomplete_decl): Likewise.
4749 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
4750 (asm_out_file): Likewise
4751 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
4752 (gnat_dwarf_name): Move around.
4753 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
4754 (gigi): Remove call to gnat_compute_largest_alignment.
4755 * utils.c (create_field_decl): Rewrite conditional assignment.
4756 Fix minor nits.
4757
4758 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4759
4760 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
4761 on entry. Defer common processing for types. Reorder and clean up.
4762 Compute the equivalent GNAT node and the default size for types only.
4763 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
4764 <E_Access_Type>: For an unconstrained designated type, do not pretend
4765 that a dummy type is always made.
4766 <all> Fix nits in comments.
4767 (validate_size): Fix formatting nits and comments.
4768 (set_rm_size): Likewise.
4769 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
4770 passed to TARGET_PROMOTE_PROTOTYPES hook.
4771
4772 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4773
4774 * fe.h (Get_External_Name): Declare.
4775 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
4776 (concat_name): ...this.
4777 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
4778 gnu_entity_name and adjust for above renaming.
4779 <E_Access_Type>: Use create_concat_name to get the name of the various
4780 types associated with unconstrained array types.
4781 (make_aligning_type): Adjust for above renaming.
4782 (maybe_pad_type): Likewise.
4783 (components_to_record): Likewise. Use get_identifier_with_length for
4784 the encoding of the variant.
4785 (get_entity_name): Use get_identifier_with_length.
4786 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
4787 Do not fiddle with Name_Buffer.
4788 (concat_id_with_name): Rename to...
4789 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
4790 with Name_Buffer.
4791 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
4792 above renaming.
4793
4794 2009-04-21 Joseph Myers <joseph@codesourcery.com>
4795
4796 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
4797 license notices.
4798
4799 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4800
4801 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
4802
4803 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4804
4805 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
4806 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
4807 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
4808 Remove useless support code for packed array types and assert its
4809 uselessness.
4810 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
4811 adjust for TYPE_RM_SIZE change.
4812 <all> Fix nits in comments. Use Original_Array_Type accessor instead
4813 of Associated_Node_For_Itype accessor for packed array types.
4814 (make_packable_type): Likewise.
4815 (maybe_pad_type): Likewise.
4816 (set_rm_size): Likewise. Rework conditional statement. Adjust for
4817 TYPE_RM_SIZE change.
4818 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
4819 (rm_size): Fix nits in comments. Rework conditional statements.
4820 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
4821 change.
4822 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
4823 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
4824 appropriate function to initialize the size_type_node. Adjust for
4825 TYPE_RM_SIZE change.
4826
4827 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4828
4829 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
4830 for imported subprograms.
4831
4832 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4833
4834 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
4835 constant objects covered by 13.3(19) volatile.
4836
4837 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4838
4839 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
4840 of dummy fat pointer types to the debug back-end.
4841
4842 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4843
4844 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
4845 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
4846 before wrapping it up in the record type. Do not overwrite the
4847 Ada size of the record type with the Esize.
4848
4849 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4850
4851 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
4852 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
4853 if the conversion is on the LHS of an assignment and a no-op.
4854 <all> Do not convert the result to the result type if the Parent
4855 node is such a conversion.
4856
4857 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4858
4859 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
4860 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
4861 of types with unknown discriminants.
4862 (substitute_in_type): Rewrite and restrict to formal substitutions.
4863 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
4864 (update_pointer_to): Update comment.
4865
4866 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4867
4868 * sem_ch8.adb (Use_One_Package): In an instance, if two
4869 potentially_use_visible and non-overloadable homonyms are available
4870 from the actuals of distinct formal packages, retain the current one,
4871 which was visible in the generic, to prevent spurious visibility
4872 errors.
4873 (End_Use_Package): Restore use_visibility when needed.
4874
4875 2009-04-20 Sergey Rybin <rybin@adacore.com>
4876
4877 * gnat_ugn.texi, vms_data.ads: Update doc.
4878
4879 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4880
4881 * gcc-interface/Make-lang.in: Update dependencies
4882
4883 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
4884 Windows.
4885
4886 2009-04-20 Robert Dewar <dewar@adacore.com>
4887
4888 * checks.ads: Fix documentation of range check handling
4889
4890 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4891
4892 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
4893 a redundant use_type clause.
4894
4895 2009-04-20 Robert Dewar <dewar@adacore.com>
4896
4897 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
4898 this attribute can be evaluated at compile time.
4899 (Eval_Attribute, case Range_Length): Same improvement
4900
4901 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
4902
4903 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4904
4905 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
4906 for better handling of null procedures.
4907 (Check_Overriding_Indicator): Do not emit a warning on a missing
4908 overriding indicator on an operator when the type of which the operator
4909 is a primitive is private.
4910
4911 2009-04-20 Bob Duff <duff@adacore.com>
4912
4913 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
4914 debugging output.
4915
4916 2009-04-20 Robert Dewar <dewar@adacore.com>
4917
4918 * sem_attr.adb: Minor reformatting
4919
4920 * gnatcmd.adb: Minor reformatting
4921
4922 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4923
4924 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
4925 overloaded and one interpretation matches the context, label the
4926 operand with the type of first formal.
4927
4928 2009-04-20 Bob Duff <duff@adacore.com>
4929
4930 * debug.ads: Minor comment fix.
4931
4932 * debug.adb: Minor comment fixes.
4933
4934 2009-04-20 Javier Miranda <miranda@adacore.com>
4935
4936 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
4937
4938 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
4939
4940 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
4941 is expanded into a call to Raise_Exception, avoid passing the
4942 exception-name'identity in runtimes in which this argument
4943 is not used.
4944
4945 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
4946
4947 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
4948 generated bindings for cil.
4949
4950 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4951
4952 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
4953 discriminants, collect components from the Underlying_Record_View,
4954 which will be used in the expansion of the aggregate into assignments.
4955
4956 * sem_ch3.adb: Do not label derived type with unknown discriminants as
4957 having a private declaration.
4958
4959 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4960
4961 * exp_util.adb (Expand_Subtype_From_Expr): use the
4962 underlying_record_view when available, to create the proper constrained
4963 subtype for an object of a derived type with unknown discriminants.
4964
4965 2009-04-20 Javier Miranda <miranda@adacore.com>
4966
4967 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
4968 formals that have pragma unreferenced.
4969
4970 2009-04-20 Pascal Obry <obry@adacore.com>
4971
4972 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
4973 Remove all calls to To_Lower_If_Case_Insensitive to preserve
4974 the pathname original casing.
4975
4976 2009-04-20 Robert Dewar <dewar@adacore.com>
4977
4978 * g-trasym.adb: Minor reformatting
4979
4980 * s-os_lib.adb: Minor reformatting
4981
4982 * sem.adb: Minor reformatting
4983 Minor code reorganization
4984
4985 * sem_ch3.adb: Minor reformatting
4986
4987 * sem_ch4.adb: Minor reformatting
4988
4989 * sem_ch8.adb: Minor reformatting
4990
4991 * sem_type.adb: Minor reformatting
4992
4993 2009-04-20 Javier Miranda <miranda@adacore.com>
4994
4995 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
4996 generated by derivations of tagged types use the aliased subprogram a
4997 reference to locate their controlling type.
4998
4999 2009-04-20 Tristan Gingold <gingold@adacore.com>
5000
5001 * g-trasym.adb: Set size of result buffer before calling
5002 convert_address.
5003
5004 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5005
5006 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
5007 to a function returning an array can be interpreted as a call with
5008 defaulted parameters whose result is indexed, take into account the
5009 types of all the indices of the array result type.
5010
5011 2009-04-20 Pascal Obry <obry@adacore.com>
5012
5013 * a-direct.adb, s-os_lib.adb: Minor reformatting.
5014
5015 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5016
5017 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
5018 null exclusion qualifiers for object renaming declarations.
5019
5020 2009-04-20 Nicolas Roche <roche@adacore.com>
5021
5022 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
5023 unsigned long long. So compare local_time and utc_time before computing
5024 the difference.
5025
5026 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5027
5028 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5029 of the Underlying_Record_View before that of the derived type.
5030
5031 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
5032 with unknown discriminants with regard to the parent subtype.
5033
5034 2009-04-20 Bob Duff <duff@adacore.com>
5035
5036 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
5037 that are not included. This is necessary if the main unit is a generic
5038 instantiation.
5039
5040 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
5041 because it doesn't work if -gnatn is used.
5042
5043 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5044
5045 * rtsfind.adb (RTE, RTE_Record_Component): In
5046 Configurable_Run_Time_Mode, do not enable front-end inlining.
5047
5048 2009-04-20 Thomas Quinot <quinot@adacore.com>
5049
5050 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
5051 System.Address_To_Access_Conversions.
5052
5053 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5054
5055 * sem.adb: Guard against ill-formed subunits.
5056
5057 2009-04-20 Bob Duff <duff@adacore.com>
5058
5059 * output.adb (Flush_Buffer): Do not indent blank lines.
5060 (Ignore_Output): New procedure for output suppression.
5061
5062 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5063
5064 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
5065 when it is positive. This avoids a potential constraint error raised
5066 by the conversion to Natural.
5067
5068 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5069
5070 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
5071 involves a target that has a specified address, don't set Forward_OK
5072 and Backward_OK to False if the rhs is an aggregate, since overlap
5073 can't occur.
5074
5075 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5076
5077 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
5078 in an object renaming declaration when the expected type is an
5079 anonymous access type.
5080
5081 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
5082 ambiguity when one interpretation is an anonymous access type and the
5083 other is a named access type, and the context itself is anonymous
5084
5085 2009-04-20 Thomas Quinot <quinot@adacore.com>
5086
5087 * einfo.ads: Minor comment rewording
5088
5089 * sem_aggr.adb: Minor comment rewording
5090
5091 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
5092
5093 2009-04-20 Pascal Obry <obry@adacore.com>
5094
5095 * adaint.c (__gnat_is_readable_file): Check for file existence
5096 when not using ACL (always the case on remote drives).
5097
5098 2009-04-20 Robert Dewar <dewar@adacore.com>
5099
5100 * sinfo.ads: Minor comment fixes
5101
5102 * exp_disp.adb: Minor reformatting
5103
5104 * gnat1drv.adb: Minor reformatting
5105
5106 * output.adb: Minor reformatting
5107
5108 * s-vxwext-kernel.ads: Minor reformatting
5109
5110 * sem.ads: Minor reformatting
5111
5112 * sem.adb: Minor reformatting
5113
5114 * sem_elim.adb: Minor reformatting
5115
5116 * uname.ads: Minor reformatting
5117
5118 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5119
5120 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
5121 a small dope of 4 words to the adjustment to the stack pointer.
5122
5123 2009-04-20 Thomas Quinot <quinot@adacore.com>
5124
5125 * xoscons.adb: generate C header s-oscons.h in
5126 addition to s-oscons.ads.
5127
5128 * socket.c: On VMS, use s-oscons.h.
5129
5130 * sem_ch3.adb: Minor reformatting
5131
5132 * exp_ch9.adb: Minor reformatting
5133
5134 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5135
5136 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
5137 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
5138 (call_to_gnu): Likewise.
5139
5140 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5141
5142 * gcc-interface/trans.c (gigi): Declare the name of the compilation
5143 unit as the first global name at the very beginning.
5144
5145 2009-04-20 Thomas Quinot <quinot@adacore.com>
5146
5147 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5148 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
5149 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
5150 since HP-UX supports neither inet_aton nor inet_pton (altough the
5151 latter is part of the Single UNIX Specification!).
5152 So reorganize code, and share C implementation based on inet_addr(3)
5153 with VMS (instead of having a VMS specific Ada implementation in
5154 g-socthi-vms.adb).
5155
5156 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5157
5158 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
5159 to return the object file name saved by Set_Object_Output_File_Name.
5160
5161 2009-04-20 Emmanuel Briot <briot@adacore.com>
5162
5163 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
5164 for the standard command line, when argc has been modified since the
5165 start of the application.
5166
5167 2009-04-20 Thomas Quinot <quinot@adacore.com>
5168
5169 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
5170 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
5171
5172 2009-04-20 Bob Duff <duff@adacore.com>
5173
5174 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
5175 pragma Debug.
5176
5177 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5178
5179 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
5180 subprogram as Eliminated when source operation is.
5181 (Expand_N_Protected_Type_Declaration): Generate protected and
5182 unprotected specs for the internal operations, even if the source
5183 operation is eliminated.
5184
5185 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5186
5187 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
5188 Predefined_Primitive_Bodies): Do not create the declarations and bodies
5189 of the primitive subprograms associated with dispatching select
5190 statements when the runtime is in configurable mode.
5191
5192 2009-04-20 Ed Falis <falis@adacore.com>
5193
5194 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
5195
5196 2009-04-20 Thomas Quinot <quinot@adacore.com>
5197
5198 * s-oscons-tmplt.c: Add support for generating a dummy version of
5199 s-oscons.ads providing all possible constants.
5200
5201 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
5202
5203 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
5204 ANSI version (not the UNICODE version) of WSAStringToAddress.
5205
5206 2009-04-20 Pascal Obry <obry@adacore.com>
5207
5208 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
5209 allocated for the security descriptor and make sure all
5210 handles are closed before leaving this procedure.
5211
5212 2009-04-20 Javier Miranda <miranda@adacore.com>
5213
5214 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
5215 (Set_Is_Underlying_Record_View): New subprogram
5216
5217 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
5218 private types with unknown discriminants use the underlying record view
5219 if available.
5220
5221 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
5222 underlying record view in the full view of private types whose parent
5223 has unknown discriminants.
5224 (Build_Derived_Record_Type): Avoid generating the class-wide entity
5225 associated with an underlying record view.
5226 (Derived_Type_Declaration): Avoid deriving parent primitives in
5227 underlying record views.
5228
5229 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
5230 records with unknown discriminants.
5231
5232 * sem_type.adb (Covers): Handle underlying record views.
5233 (Is_Ancestor): Add support for underlying record views.
5234
5235 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
5236 dispatching call if the type of the target object is tagged and has
5237 unknown discriminants.
5238
5239 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
5240 unknown discriminants.
5241
5242 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
5243 tables for internally built underlying record views.
5244
5245 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
5246 empty list of component associations.
5247
5248 2009-04-20 Thomas Quinot <quinot@adacore.com>
5249
5250 * sem_ch10.adb: Minor reformatting
5251
5252 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5253 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
5254 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
5255 standard inet_pton API (and emulate it on platforms that do not
5256 support it).
5257 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
5258 DECC$INET_ADDR, imported in Ada.
5259 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
5260 implementation provided by GNAT runtime.
5261 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
5262 Windows.
5263
5264 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5265
5266 * gnat_ugn.texi: Add documentation for -fno-ivopts.
5267
5268 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5269
5270 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
5271 with_clause if it is the main unit.
5272
5273 2009-04-20 Thomas Quinot <quinot@adacore.com>
5274
5275 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
5276 (no behaviour change): Use Append instead of Increment_Last followed
5277 by assignment.
5278
5279 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5280
5281 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
5282 declarations of all primitives associated with dispatching asynchronous,
5283 conditional and timed selects when dispaching calls are forbidden and
5284 select statements are not allowed (such as in Ravenscar).
5285 (Predefined_Primitive_Bodies): Ditto for bodies.
5286
5287 * exp_disp.ad (Make_DT): Do not create and populate the
5288 Select_Specific_Data of the dispatch table when dispatching calls are
5289 forbidden and select statements are not allowed (such as in Ravenscar).
5290
5291 2009-04-20 Robert Dewar <dewar@adacore.com>
5292
5293 * a-tifiio.adb: Minor reformatting
5294
5295 2009-04-20 Thomas Quinot <quinot@adacore.com>
5296
5297 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
5298 other C library functions, report *failure* with a zero status, and
5299 success with a non-zero status.
5300
5301 2009-04-20 Bob Duff <duff@adacore.com>
5302
5303 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
5304 (Semantics): After analyzing each unit, Append it to the
5305 Comp_Unit_List, if appropriate.
5306
5307 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
5308 purposes.
5309 (Gnat1drv): Correct comment regarding Back_End_Mode.
5310
5311 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5312
5313 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
5314
5315 2009-04-20 Thomas Quinot <quinot@adacore.com>
5316
5317 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5318 output.adb, output.ads, s-taprop-hpux-dce.adb,
5319 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
5320 reformatting.
5321
5322 2009-04-20 Thomas Quinot <quinot@adacore.com>
5323
5324 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
5325 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
5326 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
5327 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
5328 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
5329 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
5330
5331 * debug.adb: Fix typo
5332
5333 * gnat_rm.texi: Minor doc fix.
5334
5335 * sem_ch7.adb, freeze.adb: Minor reformatting
5336
5337 2009-04-20 Thomas Quinot <quinot@adacore.com>
5338
5339 * g-socket.ads: Add new constants:
5340 Loopback_Inet_Addr
5341 Unspecified_Group_Inet_Addr
5342 All_Hosts_Group_Inet_Addr
5343 All_Routers_Group_Inet_Addr
5344
5345 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
5346 ERANGE (Result too large).
5347 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
5348 propagation of errno to caller.
5349
5350 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5351
5352 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
5353 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
5354 Leap_Second_Times.
5355
5356 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5357
5358 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
5359 checking for references to eliminated subprograms that should be
5360 flagged.
5361 (Eliminate_Error_Message): Update comment to say "references" rather
5362 than "calls" (since attribute cases are handled here as well).
5363
5364 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
5365 checking for references to eliminated subprograms that should be
5366 flagged. Add with and use of Sem and Sem_Util.
5367
5368 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
5369 Add with and use of Sem_Elim.
5370
5371 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
5372 applied to eliminated subprograms.
5373 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
5374 eliminated subprograms.
5375 Add with and use of Sem_Elim.
5376
5377 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
5378 to eliminated subprograms, now handled during Resolve_Call.
5379 Remove with and use of Sem_Elim.
5380
5381 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
5382 testing Is_Eliminated, for proper handling of primitive derived from
5383 eliminated subprograms.
5384
5385 2009-04-20 Vincent Celier <celier@adacore.com>
5386
5387 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
5388 has been declared (Library_GCC or Linker'Driver), for the driver name.
5389
5390 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
5391 Linker'Driver is, use Linker'Driver as the shared library linker.
5392 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
5393 Library_GCC is declared.
5394 (Check_Library_Attributes): Set up the shared linker driver: either
5395 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
5396 declared.
5397
5398 2009-04-20 Thomas Quinot <quinot@adacore.com>
5399
5400 * g-socket.ads (Send_Socket): Fix misleading comment.
5401
5402 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5403
5404 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
5405 ASIS mode.
5406
5407 2009-04-20 Geert Bosch <bosch@adacore.com>
5408
5409 * a-tifiio.adb (Put): Avoid generating too many digits for certain
5410 fixed types with smalls that are neither integer or the reciprocal
5411 of an integer.
5412
5413 2009-04-20 Bob Duff <duff@adacore.com>
5414
5415 * uname.ads: Minor comment fix.
5416
5417 * types.ads: Minor comment fix.
5418
5419 2009-04-20 Pascal Obry <obry@adacore.com>
5420
5421 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
5422 avoid warning. At the same time fix a memory leak.
5423
5424 * osint.adb (Get_Libraries_From_Registry): Properly free memory
5425 returned by the above routine.
5426
5427 2009-04-20 Robert Dewar <dewar@adacore.com>
5428
5429 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
5430 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
5431 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
5432 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
5433
5434 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
5435
5436 2009-04-20 Pascal Obry <obry@adacore.com>
5437
5438 * initialize.c (__gnat_initialize): Add braces to kill warning.
5439
5440 * adaint.c: Minor reformatting, remove trailing spaces.
5441
5442 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5443
5444 * gcc-interface/Make-lang.in: Update dependencies.
5445
5446 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5447
5448 * adaint.h (__gnat_lwp_self): Declare on Linux.
5449
5450 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
5451
5452 2009-04-20 Robert Dewar <dewar@adacore.com>
5453
5454 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
5455 front-end part of -fpreserve-control-flow switch.
5456
5457 2009-04-20 Bob Duff <duff@adacore.com>
5458
5459 * rtsfind.adb: Minor comment fix
5460
5461 2009-04-20 Robert Dewar <dewar@adacore.com>
5462
5463 * exp_aggr.adb: Minor reformatting
5464 Minor code reorganization (use Nkind_In)
5465
5466 * g-socket.adb: Minor reformatting
5467
5468 * g-socket.ads: Minor comment fix
5469
5470 * s-auxdec.ads: Minor comment and organization update.
5471
5472 * s-auxdec-vms_64.ads: Minor comment and organization update.
5473
5474 * sem_ch10.adb: Minor addition of ??? comment
5475
5476 * sem_disp.adb: Minor reformatting
5477
5478 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5479
5480 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
5481 list a caller of an inlined subprogram, if the caller itself is not
5482 called.
5483
5484 2009-04-20 Pascal Obry <obry@adacore.com>
5485
5486 * adaint.c: Disable use of ACL on network drives.
5487
5488 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5489
5490 * gnat_ugn.texi: Add examples.
5491
5492 2009-04-20 Thomas Quinot <quinot@adacore.com>
5493
5494 * g-socket.ads (Abort_Selector): Clarify documentation.
5495
5496 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5497
5498 * opt.ads (Inspector_Mode): Update documentation of this flag.
5499
5500 2009-04-20 Thomas Quinot <quinot@adacore.com>
5501
5502 * g-socket.ads: Minor reformatting
5503
5504 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
5505 consider S_resolvLib error codes since we only use the hostLib wrappers.
5506
5507 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5508
5509 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5510 of the Underlying_Record_View after that of the derived type.
5511
5512 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5513
5514 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
5515 in inspector mode.
5516
5517 2009-04-20 Javier Miranda <miranda@adacore.com>
5518
5519 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
5520
5521 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
5522 documentation.
5523
5524 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
5525
5526 * sem_disp.adb
5527 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
5528 in internally built overriding subprograms.
5529
5530 2009-04-20 Doug Rupp <rupp@adacore.com>
5531
5532 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
5533
5534 * s-auxdec.ads: Likewise
5535
5536 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5537
5538 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
5539 type by an interface.
5540
5541 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
5542 minimze difference in expanded tree when compiled as spec of the main
5543 unit, or as a spec in the context of another unit.
5544
5545 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5546
5547 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
5548 (localtime_tzoff): This routine no longer accepts an actual of type
5549 tm_Pointer.
5550 (UTC_Time_Offset): Remove local variable Secs_TM.
5551
5552 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
5553 actual of type struct tm*. Add local variable of type struct tm for all
5554 targets that provide localtime_r and need to invoke it.
5555
5556 2009-04-20 Thomas Quinot <quinot@adacore.com>
5557
5558 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
5559 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
5560 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
5561
5562 2009-04-20 Robert Dewar <dewar@adacore.com>
5563
5564 * sem_ch3.adb: Minor reformatting
5565
5566 * lib-load.adb: Minor reformatting
5567
5568 * sem_ch4.adb: Minor reformatting
5569
5570 2009-04-20 Robert Dewar <dewar@adacore.com>
5571
5572 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
5573 (equal values => False).
5574
5575 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5576
5577 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
5578 to null procedures can be inlined unconditionally.
5579
5580 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5581
5582 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
5583 non-addressable parameter passed by reference, do not convert the
5584 actual if its type is already the nominal type, unless it is of
5585 self-referential size.
5586
5587 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5588
5589 * gnat_ugn.texi: Fix typos.
5590
5591 2009-04-20 Robert Dewar <dewar@adacore.com>
5592
5593 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
5594 Validate_Unchecked_Warnings to suppress warnings about size or
5595 alignment or extra bits if either type involved has pragma Warnings
5596 (Off) set for the type entity.
5597
5598 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
5599
5600 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
5601 a builtin type and give it a name.
5602
5603 2009-04-17 Diego Novillo <dnovillo@google.com>
5604
5605 * gcc-interface/misc.c (gnat_expand_expr): Remove.
5606 (LANG_HOOKS_EXPAND_EXPR): Remove.
5607
5608 2009-04-17 Robert Dewar <dewar@adacore.com>
5609
5610 * sem_ch3.adb: Minor reformatting
5611
5612 2009-04-17 Pascal Obry <obry@adacore.com>
5613
5614 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
5615
5616 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5617
5618 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
5619 illegal constraints on type derived from formal discrete types.
5620
5621 2009-04-17 Thomas Quinot <quinot@adacore.com>
5622
5623 PR ada/35953
5624
5625 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5626 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5627 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
5628 g-socket.ads (GNAT.Sockets.Thin.C_Send,
5629 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
5630 Replace calls to send(2) with equivalent sendto(2) calls.
5631 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
5632 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
5633 report an error in that case. Factor code common to the two versions
5634 (datagram and stream) in common routine Stream_Write.
5635
5636 2009-04-17 Robert Dewar <dewar@adacore.com>
5637
5638 * exp_disp.adb: Minor reformatting
5639 Minor code reorganization (use Nkind_In)
5640
5641 * prepcomp.adb: Minor reformatting
5642
5643 * sem_ch3.adb: Minor reformatting
5644
5645 * sem_res.adb: Minor comment addition
5646
5647 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
5648 for address clause
5649
5650 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
5651 setting Is_Referenced
5652
5653 * types.ads: Minor reformatting
5654
5655 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5656
5657 * gnat_ugn.texi: Initial documentation on binding generator.
5658
5659 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5660
5661 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
5662 type extensions whose parent is a type with unknown discriminants.
5663
5664 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
5665 aggregate has unknown discriminants, use the Underlying_Record_View to
5666 obtain the discriminants of the ancestor part.
5667
5668 * exp_disp.adb (Build_Dispatch_Tables): Types that are
5669 Underlying_Record_Views share the dispatching information of the
5670 original record extension.
5671
5672 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
5673 discriminants, propagate dispach table information to the
5674 Underlying_Record_View.
5675
5676 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
5677 discriminants and declaration is not a completion, generate
5678 Underlying_Record_View to provide proper discriminant information to
5679 the front-end and to gigi.
5680
5681 2009-04-17 Robert Dewar <dewar@adacore.com>
5682
5683 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
5684 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
5685 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
5686 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
5687 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
5688 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
5689 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
5690 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
5691 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
5692 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
5693 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
5694 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
5695 s-conca3.ads: Remove unneeded pragma Warnings
5696
5697 2009-04-17 Robert Dewar <dewar@adacore.com>
5698
5699 * g-moreex.adb: Add comments.
5700
5701 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
5702
5703 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
5704 Warnings (Off)
5705
5706 * prepcomp.adb: Add ??? comment
5707
5708 * a-tasatt.adb: Minor reformatting
5709
5710 * g-trasym-vms-alpha.adb: Add ??? comment
5711
5712 * g-trasym-vms-ia64.adb: Add ??? comment
5713
5714 * xoscons.adb: Minor reformatting
5715
5716 * s-tassta.adb: Minor reformatting
5717
5718 * s-scaval.adb: Add ??? comment
5719
5720 * stand.ads: Minor code clean up (remove junk with of Namet)
5721
5722 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
5723 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
5724 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
5725 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
5726 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
5727 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
5728 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
5729 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
5730 Warnings off pragmas.
5731
5732 2009-04-17 Pascal Obry <obry@adacore.com>
5733
5734 * initialize.c: Fix test for reallocating the arguments array.
5735
5736 2009-04-17 Geert Bosch <bosch@adacore.com>
5737
5738 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
5739 conversion truncate only for decimal fixed point types.
5740
5741 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
5742
5743 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
5744 reinitialized.
5745
5746 2009-04-17 Robert Dewar <dewar@adacore.com>
5747
5748 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
5749 Backwards_OK if either operand has an address clause.
5750
5751 2009-04-17 Pascal Obry <obry@adacore.com>
5752
5753 * initialize.c: Code clean up, use realloc.
5754
5755 2009-04-17 Pascal Obry <obry@adacore.com>
5756
5757 * initialize.c: Do not get Unicode command line if Unicode support not
5758 activated.
5759 Add support for wildcard expansion for Unicode parameters on Win32.
5760
5761 * mingw32.h: Add missing macros when Unicode support not activated.
5762
5763 2009-04-17 Javier Miranda <miranda@adacore.com>
5764
5765 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
5766 avoid generating code that references the Current_Master
5767 when compiling without tasks.
5768
5769 2009-04-17 Vincent Celier <celier@adacore.com>
5770
5771 * prj-attr.adb: New project level attribute Target
5772
5773 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5774 attribute Target
5775
5776 * prj.ads (Project_Configuration): New component Target
5777
5778 2009-04-17 Thomas Quinot <quinot@adacore.com>
5779
5780 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
5781 case for the case of an aggregate component, the attach call for the
5782 result is actually needed.
5783
5784 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
5785 an array aggregate must be disabled if the component type requires
5786 controlled actions.
5787
5788 * exp_ch3.adb: Minor reformatting
5789
5790 2009-04-17 Bob Duff <duff@adacore.com>
5791
5792 * output.ads (Indent,Outdent): New procedures for indenting the output.
5793 (Write_Char): Correct comment -- LF _is_ allowed.
5794
5795 * output.adb (Indent,Outdent): New procedures for indenting the output.
5796 Keep track of the indentation level, and make sure it doesn't get too
5797 high.
5798 (Flush_Buffer): Insert spaces at the beginning of each line, if
5799 indentation level is nonzero.
5800 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
5801 indentation level.
5802 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
5803 "Next_Col := 1;". Flush_Buffer does that.
5804
5805 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
5806 controlled by the -gnatdc switch. It now occurs on entry/exit to the
5807 relevant analysis routines, and calls Indent/Outdent to make the
5808 indentation reflect the nesting level. Add "helper" routines, since
5809 otherwise lots of "return;" statements would skip the debugging output.
5810
5811 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5812
5813 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
5814 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
5815 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
5816
5817 2009-04-17 Thomas Quinot <quinot@adacore.com>
5818
5819 * exp_aggr.adb: Minor code reorganization, no behaviour change.
5820
5821 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5822
5823 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
5824 clause in a unit that is a package body or a subunit, when the previous
5825 clause appears in a spec or a parent.
5826
5827 2009-04-17 Thomas Quinot <quinot@adacore.com>
5828
5829 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
5830
5831 * exp_ch7.adb: Minor reformatting
5832
5833 2009-04-17 Bob Duff <duff@adacore.com>
5834
5835 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
5836 allocator, check that the expression of the qualified expression obeys
5837 the constraints of the subtype of the qualified expression.
5838
5839 2009-04-17 Thomas Quinot <quinot@adacore.com>
5840
5841 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
5842
5843 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5844
5845 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
5846 aggregate, using context imposed by subtype mark in allocator.
5847
5848 2009-04-17 Pascal Obry <obry@adacore.com>
5849
5850 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
5851
5852 2009-04-17 Nicolas Roche <roche@adacore.com>
5853
5854 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
5855 argument length.
5856
5857 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5858
5859 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
5860 cover both calls and attribute references ("call" => "reference").
5861
5862 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5863
5864 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
5865 type for which Storage_Size is set to 0 is legal in a pure unit.
5866
5867 2009-04-17 Thomas Quinot <quinot@adacore.com>
5868
5869 * exp_ch7.adb: Minor reformatting
5870
5871 2009-04-17 Robert Dewar <dewar@adacore.com>
5872
5873 * restrict.adb (Check_Restriction_No_Dependence): Don't check
5874 restriction if outside main extended source unit.
5875
5876 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
5877 for parents of child units as well as the child unit itself.
5878
5879 2009-04-17 Bob Duff <duff@adacore.com>
5880
5881 * checks.ads: Minor comment fix
5882
5883 * exp_aggr.ads: Minor comment fix
5884
5885 2009-04-17 Nicolas Roche <roche@adacore.com>
5886
5887 * adaint.c: Improve cross compiler detection and handling.
5888
5889 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
5890
5891 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
5892
5893 2009-04-17 Pascal Obry <obry@adacore.com>
5894
5895 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
5896 CurrentCodePage.
5897
5898 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
5899 value when no encoding form paramter is set on Text_IO services.
5900
5901 * adaint.c: CurrentCodePage new variable on Windows.
5902 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
5903 ones.
5904
5905 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
5906 ones.
5907
5908 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
5909 environment variable value. Default is UTF-8.
5910
5911 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
5912 fopen and freopen encoding parameter is now set to Unspecified.
5913 The default value is in this case UTF-8 (as it was before) but
5914 use the new macros that convert to/from the code page set
5915 at runtime (CurrentCodePage).
5916
5917 * s-fileio.adb: When no encoding specified use Unspecified value.
5918
5919 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5920
5921 * atree.adb, atree.ads: Remove dead code.
5922
5923 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5924
5925 * gcc-interface/Make-lang.in: Update dependencies.
5926
5927 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5928
5929 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
5930 illegal uses of incomplete types in formal parts and return types.
5931
5932 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
5933 access to subprograms.
5934
5935 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
5936 Taft-amendment types as the return type of an access_to_function type.
5937
5938 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
5939 type for access_to_subprograms. The check is performed on package exit.
5940
5941 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5942
5943 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
5944
5945 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
5946
5947 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
5948
5949 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
5950 semantic units, because the handling of itypes in the copied tree
5951 requires semantic information that does not belong in atree.
5952
5953 2009-04-17 Robert Dewar <dewar@adacore.com>
5954
5955 * par-ch6.adb: Minor reformatting
5956
5957 * prj.adb: Minor reformatting
5958
5959 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5960
5961 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
5962 on protected subprogram bodies, so exclude the case where Pf_Flags is
5963 Pf_Decl_Pbod from the error check.
5964
5965 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
5966 indicators on subprograms in protected bodies, and proceed with parsing
5967 the subprogram.
5968
5969 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
5970 subprograms from the check for primitiveness on subprograms with
5971 overriding indicators.
5972 (Check_Overriding_Indicator): Include protected subprograms in the
5973 style check for missing overriding indicators.
5974
5975 2009-04-17 Tristan Gingold <gingold@adacore.com>
5976
5977 * init.c: Fix stack checking for x86 Darwin.
5978
5979 2009-04-17 Vincent Celier <celier@adacore.com>
5980
5981 * prj-attr.adb: New project level attribute Object_File_Suffix
5982 (<language>).
5983
5984 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
5985 object file name
5986 (Process_Compiler): Process attribute Object_File_Suffix
5987
5988 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
5989 platform suffix, when specified.
5990
5991 * prj.ads (Language_Config): New component Object_File_Suffix,
5992 defaulted to No_Name.
5993 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
5994
5995 * snames.ads-tmpl: New standard name Object_File_Suffix
5996
5997 2009-04-17 Robert Dewar <dewar@adacore.com>
5998
5999 * gnat_rm.texi: Add documentation about No_Streams restriction
6000
6001 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
6002 attributes when checking No_Streams restriction.
6003
6004 2009-04-17 Thomas Quinot <quinot@adacore.com>
6005
6006 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
6007
6008 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
6009 missing calls to RE_Request_Destroy to deallocate request objects after
6010 use.
6011
6012 2009-04-17 Nicolas Setton <setton@adacore.com>
6013
6014 * link.c: Fix support for passing a response file under Darwin.
6015
6016 2009-04-17 Emmanuel Briot <briot@adacore.com>
6017
6018 * prj.adb (Free): new subprogram.
6019
6020 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6021
6022 * sem_ch3.adb: additional initialization on incomplete subtypes.
6023
6024 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
6025 part and one of the formals is an incomplete tagged type, attach to
6026 list of private dependends of the type for later validation.
6027
6028 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
6029 primitive operations of a Taft-amendmment type.
6030
6031 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6032 type. The check is performed on package exit, possibly after the
6033 subprogram is frozen.
6034
6035 2009-04-17 Vincent Celier <celier@adacore.com>
6036
6037 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
6038 before looking for source directories, but make sure that there are nil
6039 if they are not explicitely declared and there is explicitely no
6040 sources in the project.
6041
6042 2009-04-17 Pascal Obry <obry@adacore.com>
6043
6044 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
6045
6046 * init.c: Fix minor typo and style fix.
6047
6048 2009-04-17 Robert Dewar <dewar@adacore.com>
6049
6050 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
6051
6052 * sem_attr.adb (Analyze_Attribute, case Address): Use
6053 PE_Address_Of_Intrinsic.
6054
6055 * types.ads: Add PE_Address_Of_Intrinsic
6056
6057 * types.h: Add PE_Address_Of_Intrinsic
6058
6059 2009-04-17 Nicolas Setton <setton@adacore.com>
6060
6061 * gcc-interface/Makefile.in: Under darwin, build shared libraries
6062 with install_name starting with "@rpath/".
6063
6064 2009-04-17 Nicolas Setton <setton@adacore.com>
6065
6066 * link.c: Add darwin section
6067
6068 2009-04-16 Robert Dewar <dewar@adacore.com>
6069
6070 * g-pehage.adb: Minor reformatting
6071
6072 * sem_ch12.adb: Minor reformatting
6073
6074 * exp_dist.adb: Minor reformatting
6075
6076 * bindgen.adb: Minor style fixes.
6077
6078 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6079
6080 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
6081 indexed components to the case where the prefix is a static string
6082 literal.
6083
6084 2009-04-16 Javier Miranda <miranda@adacore.com>
6085
6086 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
6087 objects avoid any further expansion of the expression initializing the
6088 object.
6089
6090 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6091
6092 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
6093 that hides an outer homograph, make that homograph invisible when
6094 analyzing the actuals, to to prevent illegal direct visibility on it.
6095
6096 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6097
6098 * g-pehage.adb (Initialize): Fix off-by-one error.
6099
6100 2009-04-16 Tristan Gingold <gingold@adacore.com>
6101
6102 * init.c: Detect real stack overflow on Darwin.
6103
6104 * system-darwin-x86.ads: Use stack probing on darwin x86.
6105
6106 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6107
6108 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
6109 take the address of an intrinsic subprogram.
6110
6111 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6112
6113 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
6114 for the targets where GNAT.Traceback.Symbolic is not supported.
6115
6116 2009-04-16 Vincent Celier <celier@adacore.com>
6117
6118 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
6119
6120 * g-trasym.ads: Update comments.
6121
6122 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6123
6124 * tracebak.c (STOP_FRAME): Verify validity of the current address
6125 before dereferencing.
6126
6127 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6128
6129 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
6130 the original location of the index expressions and the index subtypes,
6131 to prevent spurious out-of-scope references in gigi.
6132
6133 2009-04-16 Tristan Gingold <gingold@adacore.com>
6134
6135 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
6136 Add support for stack checking on darwin.
6137
6138 2009-04-16 Vincent Celier <celier@adacore.com>
6139
6140 * prj-attr.adb: New attribute Runtime_Source_Dir
6141
6142 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
6143 attribute Runtime_Source_Dir.
6144 (Check_Naming_Schemes): Give default values to out parameters to avoid
6145 invalid data.
6146
6147 * prj.ads (Language_Config): New component Runtime_Source_Dir
6148
6149 * snames.ads-tmpl: New standard name Runtime_Source_Dir
6150
6151 2009-04-16 Pascal Obry <obry@adacore.com>
6152
6153 * adaint.h, adaint.c (__gnat_rmdir): New routine.
6154 Simple wrapper routines used to convert to proper encoding on
6155 Windows.
6156
6157 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
6158
6159 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
6160 twice.
6161
6162 2009-04-16 Pascal Obry <obry@adacore.com>
6163
6164 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
6165
6166 2009-04-16 Thomas Quinot <quinot@adacore.com>
6167
6168 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
6169 integrated preprocessor.
6170
6171 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
6172 (Initialize): Split into two subprograms, Initialize (to be called
6173 prior to compiler command line processing) and Setup_Hooks (to be called
6174 later on when the first source file is loaded).
6175
6176 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
6177 Add call to Prep.Initialize.
6178
6179 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
6180 to Prep.Setup_Hooks.
6181
6182 2009-04-16 Pascal Obry <obry@adacore.com>
6183
6184 * adaint.h, adaint.c (__gnat_chdir): New routine.
6185 Simple wrapper routines used to convert to proper encoding on
6186 Windows.
6187
6188 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
6189
6190 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
6191
6192 2009-04-16 Quentin Ochem <ochem@adacore.com>
6193
6194 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
6195 of Source.Init.
6196
6197 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6198
6199 * a-convec.ads (Is_Empty): Mark inline.
6200
6201 2009-04-16 Nicolas Roche <roche@adacore.com>
6202
6203 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
6204
6205 2009-04-16 Thomas Quinot <quinot@adacore.com>
6206
6207 * prepcomp.adb: Minor reformatting
6208
6209 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6210
6211 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
6212 Access_Subprogram types can also be imported.
6213 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
6214 names.
6215
6216 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6217
6218 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6219 preserve homonym chain when the declaration is rewritten into a
6220 renaming declaration, in order to preserve visibility structure.
6221
6222 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6223
6224 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
6225 taken into account for VM targets.
6226
6227 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6228
6229 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
6230 Year_Week_In_Year.
6231 (Year_Week_In_Year): New routine which contains the original code from
6232 Week_In_Year. Add the missing special case for January 1st falling on
6233 a Monday.
6234
6235 2009-04-16 Thomas Quinot <quinot@adacore.com>
6236
6237 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
6238 actual type, use the base type to build the To_Any function.
6239 (Build_From_Any_Function): Remove junk, useless subtype conversion.
6240
6241 2009-04-16 Thomas Quinot <quinot@adacore.com>
6242
6243 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
6244 restrict.adb: Minor code reorganization (use
6245 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
6246
6247 2009-04-16 Bob Duff <duff@adacore.com>
6248
6249 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
6250 unused.
6251
6252 2009-04-16 Thomas Quinot <quinot@adacore.com>
6253
6254 * sem_ch4.adb: Minor reformatting
6255
6256 * adaint.c: Remove junk duplicated code.
6257
6258 * sem_ch3.adb: Minor reformatting
6259
6260 * exp_dist.adb: Minor comment rewording
6261
6262 2009-04-16 Robert Dewar <dewar@adacore.com>
6263
6264 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
6265 used together.
6266
6267 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6268
6269 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
6270 usable before calling Add_One_Interp, to resolve spurious ambiguities.
6271
6272 2009-04-16 Robert Dewar <dewar@adacore.com>
6273
6274 * Make-lang.in: Add entries for s-conca?.o
6275
6276 * Makefile.rtl: Add entries for s-conca?
6277
6278 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
6279 of concatenation expansion
6280
6281 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
6282 string cases instead of expanding assignments inline.
6283
6284 * opt.ads (Optimize_Size): New flag
6285
6286 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
6287 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
6288 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
6289 s-conca9.adb, s-conca9.ads: New file.
6290
6291 2009-04-16 Robert Dewar <dewar@adacore.com>
6292
6293 * exp_ch6.adb: Add comments
6294
6295 * rtsfind.ads: Add entries for s-conca? routines
6296
6297 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6298
6299 * gcc-interface/Make-lang.in: Update dependencies.
6300
6301 * gcc-interface/Makefile.in: Update translation for vms.
6302
6303 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6304
6305 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
6306 and made global, to be used when installing parents of a child
6307 instance, to provide mappings for entities declared in formal packages
6308 of ancestor units. Now called from Install_Formal_Packages.
6309
6310 2009-04-16 Doug Rupp <rupp@adacore.com>
6311
6312 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
6313 notation for clarity.
6314
6315 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6316 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
6317 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
6318 (Initialize): Initialize Known_Tasks with Environment task.
6319
6320 * s-taskin.ads (Task_States): Move new states to end for the sake of
6321 GDB compatibility.
6322
6323 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
6324
6325 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6326
6327 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
6328 operation has an inline pragma, propagate the flag to the internal
6329 unprotected subprogram.
6330
6331 2009-04-16 Doug Rupp <rupp@adacore.com>
6332
6333 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
6334 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
6335 s-taprop-hpux-dce.adb, s-taprop-posix.adb
6336 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
6337
6338 * s-taprop-vms.adb (Enter_Task): Likewise.
6339 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
6340
6341 * s-tassta.adb (Activate_Tasks): After task creation set state to
6342 Activating, vice Runnable. Initialize Known_Tasks, moved here from
6343 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
6344 Set state to Runnable after above.
6345 (Task_Wrapper): Set Debug_Event_Run. In exception block set
6346 Debug_Event_Terminated.
6347
6348 * s-taskin.ads (Task_States): Add new states Activiting and
6349 Activator_Delay_Sleep.
6350 (Bit_Array, Debug_Event_Array): New types.
6351 (Global_Task_Debug_Event_Set: New flag.
6352 (Common_ATCB): New field Debug_Events.
6353
6354 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
6355
6356 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
6357 Activator_Sleep.
6358
6359 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
6360 Activating and when Acceptor_Delay_Sleep.
6361
6362 * s-tasdeb.ads: Add constants for Debug_Events.
6363 (Debug_Event_Kind_Type): New subtype.
6364 (Signal_Debug_Event): New subprogram.
6365
6366 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
6367
6368 2009-04-16 Thomas Quinot <quinot@adacore.com>
6369
6370 * sem_elim.adb: Minor reformatting
6371
6372 * freeze.adb: Minor reformatting
6373
6374 * exp_ch4.adb: Minor reformatting
6375
6376 2009-04-16 Emmanuel Briot <briot@adacore.com>
6377
6378 * prj-nmsc.adb (Path_Name_Of): fix memory leak
6379
6380 2009-04-16 Robert Dewar <dewar@adacore.com>
6381
6382 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
6383
6384 2009-04-16 Vincent Celier <celier@adacore.com>
6385
6386 * fmap.adb (Initialize): Show the current line when the mapping file
6387 is detected as "incorrectly formatted".
6388
6389 2009-04-16 Robert Dewar <dewar@adacore.com>
6390
6391 * sem_ch12.adb: Minor reformatting
6392
6393 * sem_ch5.adb: Minor comment addition
6394
6395 * sem_util.adb: Minor reformatting
6396
6397 * sinput-p.adb: Minor reformatting
6398 Add missing pragma Warnings (On)
6399
6400 2009-04-16 Ed Falis <falis@adacore.com>
6401
6402 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
6403
6404 2009-04-16 Vincent Celier <celier@adacore.com>
6405
6406 * ali-util.adb: Minor comment spelling error fix
6407
6408 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6409
6410 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
6411 generate an assignment loop in case of overlap.
6412
6413 2009-04-16 Olivier Hainque <hainque@adacore.com>
6414
6415 * gnat_ugn.texi (gnatmem description): Make it explicit that
6416 gnatmem is designed to work in association with static runtime
6417 library only.
6418
6419 2009-04-16 Thomas Quinot <quinot@adacore.com>
6420
6421 * sem_type.adb: Minor reformatting
6422
6423 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6424
6425 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
6426 concerning return codes of gettimeofday and return value check.
6427
6428 2009-04-16 Ed Falis <falis@adacore.com>
6429
6430 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
6431 body can be renaming of imported routines.
6432
6433 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6434
6435 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
6436 targeted fashion.
6437
6438 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6439
6440 * exp_ch9.adb: Comment improvements.
6441 (Build_Entry_Family_Name): Add parentheses around the index of a entry
6442 family member.
6443
6444 2009-04-15 Bob Duff <duff@adacore.com>
6445
6446 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
6447 "while X /= null loop" where X is unchanged inside the loop. We were
6448 not warning in this case, because of the pointers -- we feared that the
6449 loop variable could be updated via a pointer, if there are any pointers
6450 around the place. But that is impossible in this case.
6451
6452 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
6453 the case of dereferences. In X.all, X cannot be an l-value. We now
6454 catch that case (and implicit dereferences, too).
6455
6456 2009-04-15 Vincent Celier <celier@adacore.com>
6457
6458 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
6459
6460 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6461
6462 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
6463 From code reading.
6464 (Analyze_Package_Instantiation): If generic unit in child instance is
6465 the same as generic unit in parent instance, look for an outer homonym
6466 to locate the desired generic.
6467
6468 2009-04-15 Bob Duff <duff@adacore.com>
6469
6470 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
6471 warnings unless the loop comes from source, because checking generated
6472 loops is a waste of time, and makes it harder to debug
6473 Check_Infinite_Loop_Warning.
6474
6475 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
6476 tested in the while loop is a renaming, do not warn. Otherwise, we get
6477 false alarms, because it's usually renaming something that we can't
6478 deal with (an indexed component, a global variable, ...).
6479
6480 * gnat_rm.texi: Fix typo
6481
6482 2009-04-15 Thomas Quinot <quinot@adacore.com>
6483
6484 * sem_ch6.adb: Minor reformatting
6485
6486 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6487
6488 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
6489 immediate parent of the controlled function call is a component
6490 association.
6491
6492 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6493
6494 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
6495 corresponding class-wide type is also in use.
6496
6497 2009-04-15 Thomas Quinot <quinot@adacore.com>
6498
6499 * frontend.adb: Minor comment fix
6500
6501 2009-04-15 Robert Dewar <dewar@adacore.com>
6502
6503 * gnatchop.adb (BOM_Length): New global variable
6504 (Write_Unit): Add new parameter Write_BOM
6505 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
6506 to Write_Unit
6507
6508 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
6509
6510 2009-04-15 Geert Bosch <bosch@adacore.com>
6511
6512 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
6513 (Backend_Overflow_Checks): Set to True.
6514
6515 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6516
6517 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
6518 keyword is given in a record extension.
6519
6520 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6521
6522 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
6523 of a controlled function call in the context of a record aggregate.
6524 This does not apply to array aggregates since the call will be expanded
6525 into assignments.
6526
6527 2009-04-15 Ed Falis <falis@adacore.com>
6528
6529 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
6530 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
6531 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
6532 s-osinte-vxworks* and s-vxwext*.
6533
6534 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6535
6536 * gcc-interface/Make-lang.in: Update dependencies.
6537
6538 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
6539 and s-vxwext*.
6540
6541 2009-04-15 Robert Dewar <dewar@adacore.com>
6542
6543 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
6544 of node for location for warning messages.
6545
6546 * gnatchop.adb: Minor reformatting
6547
6548 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6549
6550 * exp_ch6.adb: additional guard for renaming declarations for in
6551 parameters of an array type.
6552
6553 2009-04-15 Robert Dewar <dewar@adacore.com>
6554
6555 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
6556 in case they were rewritten by expander (Force_Evaluation).
6557
6558 * targparm.adb (Get_Target_Parameters): Correct check for
6559 Suppress_Exception_Locations.
6560
6561 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6562
6563 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
6564 inlined is of an array type that is not bit-packed, use a renaming
6565 declaration to capture its value, rather than a constant declaration.
6566
6567 2009-04-15 Robert Dewar <dewar@adacore.com>
6568
6569 * rtsfind.adb: Minor reformatting.
6570
6571 2009-04-15 Emmanuel Briot <briot@adacore.com>
6572
6573 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
6574 Restore, and free the saved context.
6575
6576 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6577
6578 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
6579 for illegal private extension from a synchronized interface parent in
6580 front of check for illegal limited extension so that limited extension
6581 from a synchronized interface will be rejected.
6582 (Check_Ifaces): Check that a private extension that has a synchronized
6583 interface as a progenitor must be explicitly declared synchronized.
6584 Also check that a record extension cannot derive from a synchronized
6585 interface.
6586
6587 2009-04-15 Pascal Obry <obry@adacore.com>
6588
6589 * adaint.h (__gnat_unlink): Add spec.
6590 (__gnat_rename): Likewise.
6591
6592 2009-04-15 Vincent Celier <celier@adacore.com>
6593
6594 * prj-nmsc.adb: Minor spelling error corrections in error messages
6595
6596 2009-04-15 Robert Dewar <dewar@adacore.com>
6597
6598 * sinfo.ads: Minor comment update
6599
6600 * opt.ads: Minor comment updates
6601
6602 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
6603 modular type.
6604
6605 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6606
6607 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
6608 that generates the code needed to update a dispatch table when a
6609 primitive operation is declared with a subprogram body without previous
6610 spec. Insertion of the generated code is responsibility of the caller.
6611 (Make_DT): When building static tables, append the code created by
6612 Register_Primitive to update a secondary table after it has been
6613 constructed.
6614
6615 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
6616
6617 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
6618 on an overriding operation that implements an interface operation only
6619 if not building static dispatch tables.
6620
6621 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6622
6623 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
6624 does not cause overflow when converted to Duration. Use the safe value
6625 as the maximum allowable time delay..
6626
6627 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
6628
6629 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
6630 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
6631 translated to "-j 2".
6632
6633 2009-04-15 Bob Duff <duff@adacore.com>
6634
6635 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
6636 with_clauses, to avoid code duplication. Change this processing so we
6637 always add a with_clause on the main unit if needed.
6638
6639 2009-04-15 Pascal Obry <obry@adacore.com>
6640
6641 Add support for Win32 native encoding for delete/rename routines.
6642
6643 * adaint.c (__gnat_unlink): New routine.
6644 (__gnat_rename): New routine.
6645 Simple wrapper routines used to convert to proper encoding on
6646 Windows.
6647
6648 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
6649 call to the C library.
6650
6651 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
6652
6653 2009-04-15 Robert Dewar <dewar@adacore.com>
6654
6655 * s-tassta.adb: Minor reformatting
6656
6657 2009-04-15 Robert Dewar <dewar@adacore.com>
6658
6659 * frontend.adb (Frontend): Set proper default for
6660 Warn_On_Non_Local_Exception.
6661
6662 * opt.ads (Exception_Handler_Encountered): New flag
6663 (No_Warn_On_Non_Local_Exception): New flag
6664
6665 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
6666
6667 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6668 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6669
6670 2009-04-15 Cyrille Comar <comar@adacore.com>
6671
6672 * s-tassta.adb, a-exextr.adb, a-elchha.adb
6673 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
6674 message when exception traces are active since it would generate
6675 redundant information.
6676 (Exception_Traces.Notify_Exception): put message output by a critical
6677 section to avoid unsynchronized output.
6678 (Trace_Unhandled_Exception_In_Task): put message output by a critical
6679 section to avoid unsynchronized output.
6680
6681 2009-04-15 Emmanuel Briot <briot@adacore.com>
6682
6683 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
6684 (Free): New subprogram.
6685
6686 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6687
6688 * a-calend.adb: Add new constant Nanos_In_Four_Years.
6689 (Formatting_Operations.Time_Of): Change the way four year chunks of
6690 nanoseconds are added to the intermediate result.
6691
6692 2009-04-15 Nicolas Setton <setton@adacore.com>
6693
6694 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
6695 does not need to wait for a carriage return.
6696
6697 2009-04-15 Tristan Gingold <gingold@adacore.com>
6698
6699 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
6700 is set.
6701
6702 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6703
6704 * freeze.adb (Freeze_Entity): improve error message for improper use of
6705 incomplete types.
6706 Diagnose additional illegal uses of incomplete types in formal parts.
6707 appearing in formal parts.
6708
6709 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
6710
6711 2009-04-15 Robert Dewar <dewar@adacore.com>
6712
6713 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
6714
6715 2009-04-15 Nicolas Roche <roche@adacore.com>
6716
6717 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
6718 current thread.
6719
6720 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
6721
6722 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
6723
6724 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6725
6726 * sem_ch4.adb: improve error message on exponentiation.
6727
6728 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6729
6730 * a-calend.adb: Move constant Epoch_Offset from package
6731 Conversion_Operations to top level.
6732 (Delay_Operations.To_Duration): Define a constant which represents
6733 "end of time" and use it as a guard against very distant delay dates.
6734 Protect the code against overflow when performing the origin shift to
6735 Unix time.
6736
6737 2009-04-15 Robert Dewar <dewar@adacore.com>
6738
6739 * sem_prag.adb: Minor reformatting.
6740
6741 * sem_type.adb: Minor reformatting
6742
6743 2009-04-15 Javier Miranda <miranda@adacore.com>
6744
6745 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
6746 support to check eliminated subprograms.
6747
6748 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
6749
6750 * sem_elim.adb (Set_Eliminated): Add support for elimination of
6751 dispatching subprograms.
6752
6753 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
6754 operations. Initialize with "null" the slots of eliminated dispaching
6755 primitives.
6756 (Write_DT): Add output for eliminated primitives.
6757
6758 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
6759
6760 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6761
6762 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
6763 the second is redundant, regardless of scopes.
6764
6765 2009-04-15 Vincent Celier <celier@adacore.com>
6766
6767 * prj-nmsc.adb (Get_Directories): Check for sources before checking
6768 the object directory as when there are no sources, they may not be any
6769 object directory.
6770
6771 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
6772 directory, when there are no exec directory.
6773
6774 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6775
6776 * sem_type.adb (Remove_Conversions): In order to resolve spurious
6777 ambiguities, refine removal of universal interpretations from complex
6778 expressions with literal arguments, when some numeric operators have
6779 been declared abstract.
6780
6781 2009-04-15 Ed Falis <falis@adacore.com>
6782
6783 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
6784 and backward compatibility for targets using probing for stack overflow
6785
6786 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6787
6788 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
6789 after any declaration, including renaming declarations.
6790
6791 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6792
6793 * gcc-interface/Make-lang.in: Update dependencies.
6794
6795 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
6796 Update xenomai target pairs.
6797
6798 2009-04-15 Javier Miranda <miranda@adacore.com>
6799
6800 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6801
6802 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
6803 functions returning anonymous access to class-wide limited types. Mark
6804 also the containing scope as a task master.
6805
6806 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
6807 limited-withed packages. Required to restore their visibility after
6808 processing packages associated with implicit with-clauses.
6809
6810 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
6811 associated with return statements because this work is now done by
6812 Check_Anonymous_Return.
6813 (Build_Master): Code cleanup.
6814
6815 2009-04-15 Thomas Quinot <quinot@adacore.com>
6816
6817 * sem_warn.ads: Minor reformatting
6818
6819 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6820
6821 * sem_ch3.adb: better error message for illegal interfaces
6822
6823 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
6824 formal is an incomplete type from a limited_with clause.
6825
6826 2009-04-15 Vincent Celier <celier@adacore.com>
6827
6828 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
6829 Externally_Built indicating if the project is externally built. If it
6830 is, and --subdirs is specified, but the subdir does not exist, look
6831 for the specified directory, without the subdir.
6832
6833 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6834
6835 * a-tasatt.adb: Fix typo, plus minor reformatting
6836
6837 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
6838
6839 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
6840
6841 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6842
6843 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
6844 private extension whose parent is a synchronized interface carries an
6845 explicit synchronized keyword.
6846
6847 2009-04-15 Thomas Quinot <quinot@adacore.com>
6848
6849 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
6850 instantiate generic shared object package with the corresponding
6851 record type.
6852
6853 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6854
6855 * system-linux-sparc.ads: Remove obsolete entries.
6856
6857 2009-04-15 Thomas Quinot <quinot@adacore.com>
6858
6859 * s-tasuti.ads: Add ??? comment
6860
6861 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6862
6863 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
6864 type even if the designated type comes from a limited_with clause, to
6865 ensure that the symbol for the finalization list of the access type is
6866 created.
6867
6868 2009-04-10 Robert Dewar <dewar@adacore.com>
6869
6870 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
6871 for warning suppression.
6872
6873 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6874
6875 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
6876 identical, there is no redudancy to check.
6877
6878 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6879
6880 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
6881 calls initializing SS_Allocator (which is initialized in following
6882 code).
6883 (Expand_Simple_Function_Return): Add comment about False value for
6884 Comes_From_Source on secondary-stack allocator.
6885
6886 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
6887 (Build_Entry_Name): Add comment.
6888
6889 2009-04-10 Robert Dewar <dewar@adacore.com>
6890
6891 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
6892
6893 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
6894 bound tested, since this is now done more generally in Sem_Res.
6895
6896 * sem_res.adb (Resolve_Comparison_Op): Add call to
6897 Check_Lower_Bound_Tested.
6898 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
6899
6900 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
6901 (Low_Bound_Tested): New name for Low_Bound_Known flag
6902
6903 * exp_ch5.adb: Minor reformatting
6904
6905 * exp_ch4.adb:
6906 Add comments on copying the Comes_From_Source flag for allocators
6907
6908 * sinfo.ads:
6909 Add comments on copying the Comes_From_Source flag for allocators
6910
6911 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
6912 Comes_From_Source flag from old allocator to new one.
6913
6914 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6915
6916 * sem_ch6.ads: Address missing documentation query
6917
6918 2009-04-10 Vincent Celier <celier@adacore.com>
6919
6920 * prj-attr.adb:
6921 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
6922 and Response_File_Switches.
6923
6924 * prj-nmsc.adb (Process_Linker): Process new attributes
6925 Max_Command_Line_Length, Response_File_Format and
6926 Response_File_Switches.
6927
6928 * prj.ads (Response_File_Format): New enumeration type
6929 (Project_Configuration): New componants Max_Command_Line_Length,
6930 Resp_File_Format and Resp_File_Options.
6931
6932 * snames.ads-tmpl: Add new standard names for linking response files
6933 for gprbuild: GNU, None, Object_List, Option_List,
6934 Max_Command_Line_Length, Response_File_Format and
6935 Response_File_Switches.
6936
6937 2009-04-10 Geert Bosch <bosch@adacore.com>
6938
6939 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
6940 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
6941 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
6942 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
6943 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
6944 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
6945 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
6946 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
6947 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
6948 system-vxworks-arm.ads, system-vxworks-m68k.ads,
6949 system-vxworks-mips.ads, system-vxworks-ppc.ads,
6950 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
6951 (Backend_Overflow_Checks): Set to True.
6952
6953 2009-04-10 Thomas Quinot <quinot@adacore.com>
6954
6955 * exp_attr.adb: Minor reformatting
6956
6957 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6958
6959 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
6960 analyze the expression for a postcondition, even if the compiler mode
6961 is Generate_Code.
6962
6963 2009-04-10 Robert Dewar <dewar@adacore.com>
6964
6965 * sem_aux.adb: Minor reformatting
6966
6967 2009-04-10 Ed Falis <falis@adacore.com>
6968
6969 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
6970
6971 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
6972
6973 2009-04-10 Thomas Quinot <quinot@adacore.com>
6974
6975 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
6976 undocumented formal.
6977 Minor reformatting
6978
6979 * a-direio.ads: Fix typo in comment
6980
6981 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
6982 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
6983 Use uniform phrasing for comment at start of subprogram body.
6984
6985 * xsnamest.adb: Add note to explain why we use specific names for the
6986 newly generated files instead of generating snames.{ads,adb,h} directly
6987
6988 2009-04-10 Sergey Rybin <rybin@adacore.com>
6989
6990 * vms_data.ads:
6991 Add qualifier for new gnatstub option '--no-exception'
6992
6993 * gnat_ugn.texi:
6994 Add the description of the new gnatstub option '--no-exception'
6995
6996 2009-04-10 Robert Dewar <dewar@adacore.com>
6997
6998 * rtsfind.adb: Minor reformatting
6999
7000 2009-04-10 Thomas Quinot <quinot@adacore.com>
7001
7002 * sem_disp.adb: Minor reformatting.
7003 Add comment pointing to RM clause for the case of warning against a
7004 (failed) attempt at declaring a primitive operation elsewhere than in a
7005 package spec.
7006
7007 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7008
7009 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
7010 an actual for a previous formal package of the current instance.
7011
7012 2009-04-10 Bob Duff <duff@adacore.com>
7013
7014 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
7015 them first, rather than on the extended main unit.
7016
7017 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7018
7019 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
7020 specification of full view carries a null exclusion indicator, create
7021 an itype for it, to check for conformance with partial view.
7022
7023 2009-04-10 Bob Duff <duff@adacore.com>
7024
7025 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
7026
7027 * rtsfind.adb: Minor comment changes, and remove useless code.
7028
7029 * sinfo.ads: Add ??? comment.
7030
7031 2009-04-10 Vincent Celier <celier@adacore.com>
7032
7033 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
7034
7035 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7036
7037 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
7038 type is a synchronized type, retrieve tag information from the
7039 corresponding record, which has the dispatch table link.
7040
7041 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
7042
7043 * g-comlin.adb (Group_Analysis): Take care of switches that might be
7044 decomposed afterwards, but are present as-is in the command line
7045 configuration, and thus should be kept as-is.
7046
7047 2009-04-10 Robert Dewar <dewar@adacore.com>
7048
7049 * gnat_rm.texi: Document that postconditions are tested on implicit
7050 returns.
7051
7052 * sem_aux.adb: Minor reformatting
7053
7054 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7055
7056 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
7057 setting Etype.
7058
7059 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
7060 Null_Exclusion_In_Return_Present when an access-to-function type has a
7061 result type with an explicit not null.
7062
7063 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
7064 given on the result type, then create a null-excluding itype for the
7065 function.
7066
7067 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
7068 the case where a null exclusion is imposed on a named access type.
7069 (Analyze_Subprogram_Specification): Push and pop the scope of the
7070 function around the call to Analyze_Return_Type in the case of no
7071 formals, for consistency with handling when formals are present
7072 (Process_Formals does this). Ensures that any itype created for the
7073 return type will be associated with the proper scope.
7074
7075 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
7076 exclusion is given on a generic function's result type, then create a
7077 null-excluding itype for the generic function.
7078 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
7079 for an actual for a formal in object according to the setting on the
7080 formal. Ensures null exclusion checks are done when the association is
7081 elaborated.
7082
7083 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
7084 N_Access_Function_Definition.
7085
7086 * sinfo.adb: Add Get_ and Set_ operations for
7087 Null_Exclusion_In_Return_Present.
7088
7089 2009-04-10 Bob Duff <duff@adacore.com>
7090
7091 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
7092 call to the _Postconditions procedure in the case of implicit returns
7093 from analysis to expansion. This eliminates some duplicated code. Use
7094 the Postcondition_Proc to find the identity of this procedure during
7095 expansion.
7096
7097 2009-04-10 Robert Dewar <dewar@adacore.com>
7098
7099 * sem_ch6.adb: Minor code clean up.
7100
7101 * einfo.ads, sem_attr.adb: Minor comment fixes.
7102
7103 2009-04-10 Robert Dewar <dewar@adacore.com>
7104
7105 * sem_ch8.adb: Minor reformatting
7106
7107 2009-04-10 Robert Dewar <dewar@adacore.com>
7108
7109 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
7110 procedures.
7111
7112 * sem_ch6.adb: Minor code clean up.
7113
7114 2009-04-10 Robert Dewar <dewar@adacore.com>
7115
7116 * mlib-tgt-specific-xi.adb: Minor reformatting
7117
7118 2009-04-10 Bob Duff <duff@adacore.com>
7119
7120 * einfo.ads: Minor comment fixes
7121
7122 2009-04-10 Vincent Celier <celier@adacore.com>
7123
7124 * snames.ads-tmpl: Remove names that are no longer used in the
7125 Project Manager.
7126 Mark specifically those that are used only in gprbuild
7127
7128 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
7129
7130 * init.c: Adjust EH support code on Alpha/Tru64.
7131
7132 2009-04-10 Bob Duff <duff@adacore.com>
7133
7134 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
7135 procedure on every path that could return implicitly (not via a return
7136 statement) from a procedure.
7137
7138 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7139
7140 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
7141 valid scope for a task declarations and therefore for a master id.
7142
7143 2009-04-10 Robert Dewar <dewar@adacore.com>
7144
7145 * sem_aux.adb: Minor reformatting
7146
7147 2009-04-10 Vincent Celier <celier@adacore.com>
7148
7149 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
7150 True.
7151 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
7152 (Set_Obsolescent_Check): New procedure to change the value of
7153 Obsolescent_Check_Flag.
7154
7155 * scn.ads (Set_Obsolescent_Check): New procedure to control
7156 Obsolescent_Check.
7157
7158 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
7159 obsolescent features while preprocessing.
7160
7161 2009-04-10 Thomas Quinot <quinot@adacore.com>
7162
7163 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
7164 generated files on all platforms.
7165
7166 2009-04-10 Robert Dewar <dewar@adacore.com>
7167
7168 * sem_aux.adb: Minor reformatting
7169
7170 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7171
7172 * sem_ch3.adb (Access_Definition): Handle properly the case of a
7173 protected function with formals that returns an anonymous access type.
7174
7175 2009-04-10 Thomas Quinot <quinot@adacore.com>
7176
7177 * sem_disp.adb: Minor reformatting
7178
7179 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
7180
7181 * seh_init.c: Do not use the 32-bit specific implementation of
7182 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
7183 version TBD).
7184
7185 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7186
7187 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
7188 a '/' at the end so we better use the complete target name to determine
7189 whether it is a PowerPC 55xx target.
7190
7191 2009-04-10 Thomas Quinot <quinot@adacore.com>
7192
7193 * sem_eval.adb: Minor reformatting
7194
7195 2009-04-10 Thomas Quinot <quinot@adacore.com>
7196
7197 * snames.h, snames.ads, snames.adb: Remove files, now generated from
7198 templates.
7199
7200 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
7201 above.
7202
7203 * xsnamest.adb: New file.
7204
7205 * gcc-interface/Make-lang.in: New target for automated generation of
7206 snames.ads, snames.adb and snames.h
7207
7208 2009-04-10 Tristan Gingold <gingold@adacore.com>
7209
7210 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
7211 avoid compile time warnings.
7212 Do not add gcc/config in include search list while compiling the RTS.
7213 Pragma Thread_Local_Storage is available on any target.
7214
7215 2009-04-10 Bob Duff <duff@adacore.com>
7216
7217 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
7218
7219 2009-04-10 Tristan Gingold <gingold@adacore.com>
7220
7221 * init.c: Install signal handler on Darwin.
7222
7223 2009-04-10 Robert Dewar <dewar@adacore.com>
7224
7225 * sem_prag.adb: Minor reformatting
7226
7227 * exp_util.adb (Make_Non_Empty_Check): New function
7228 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
7229 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
7230
7231 2009-04-10 Arnaud Charlet <charlet@adacore.com>
7232
7233 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
7234
7235 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7236
7237 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
7238 tool prefix for AVR and PowerPC 55xx targets.
7239
7240 2009-04-10 Robert Dewar <dewar@adacore.com>
7241
7242 * sem_warn.adb (Within_Postcondition): New function
7243 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
7244
7245 2009-04-10 Robert Dewar <dewar@adacore.com>
7246
7247 * sem_warn.adb: Minor reformatting
7248
7249 * make.adb: Minor reformatting.
7250
7251 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7252
7253 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
7254 entity and the scope is a subprogram, retrieve the Sloc of the
7255 subprogram's body rather than using the sloc of the spec, for better
7256 line-stepping behavior in gdb.
7257 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
7258 controller, use the Sloc of the first declaration of the containing list
7259 rather than that of the node that triggered creation of the list
7260 controller.
7261
7262 2009-04-10 Vincent Celier <celier@adacore.com>
7263
7264 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
7265 to avoid gcc warning.
7266
7267 2009-04-10 Robert Dewar <dewar@adacore.com>
7268
7269 * g-comlin.adb: Add ??? comment
7270
7271 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7272
7273 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
7274 unreferenced entities for a package with no visible declarations.
7275
7276 2009-04-10 Robert Dewar <dewar@adacore.com>
7277
7278 * exp_ch9.adb: Minor reformatting
7279
7280 2009-04-10 Thomas Quinot <quinot@adacore.com>
7281
7282 * sem_prag.adb: Minor reformatting
7283
7284 2009-04-10 Vincent Celier <celier@adacore.com>
7285
7286 * prj-nmsc.adb:
7287 (Check_Library_Attributes): For a project qualified as a library project
7288 that is not a library project, indicate in the error message which
7289 attributes are missing (Library_Dir and/or Library_Name).
7290
7291 2009-04-10 Bob Duff <duff@adacore.com>
7292
7293 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
7294 generated nodes, because it might confuse various circuits in the FE.
7295
7296 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7297
7298 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
7299 of pragma. It will be recopied and analyzed when used in call to
7300 Create_Task.
7301
7302 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
7303 initialization operations and recognize use of it in procedure calls
7304 within init_procs.
7305
7306 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
7307 argument, because it may have side-effects.
7308
7309 * exp_ch2.adb: Remove obsolete comments on default functions
7310
7311 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7312
7313 * adaint.c (RTX section): Do for RTX the same thing as we do for
7314 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
7315
7316 2009-04-10 Robert Dewar <dewar@adacore.com>
7317
7318 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
7319
7320 * sem_res.adb (Resolve_Call): Fix test for
7321 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
7322 a non-dynamic scope).
7323
7324 2009-04-10 Robert Dewar <dewar@adacore.com>
7325
7326 * make.adb: Add comment.
7327 Minor reformatting
7328
7329 2009-04-10 Nicolas Setton <setton@adacore.com>
7330
7331 * s-osprim-darwin.adb: New file.
7332
7333 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
7334
7335 2009-04-10 Thomas Quinot <quinot@adacore.com>
7336
7337 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
7338
7339 2009-04-09 Nick Clifton <nickc@redhat.com>
7340
7341 * adadecode.h: Change copyright header to refer to version
7342 3 of the GNU General Public License with version 3.1 of the
7343 GCC Runtime Library Exception and to point readers at the
7344 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
7345 page.
7346 * 9drpc.adb: Likewise.
7347 * a-assert.adb: Likewise.
7348 * a-astaco.adb: Likewise.
7349 * a-calari.adb: Likewise.
7350 * a-calcon.adb: Likewise.
7351 * a-calcon.ads: Likewise.
7352 * a-caldel.ads: Likewise.
7353 * a-calend-vms.adb: Likewise.
7354 * a-calend-vms.ads: Likewise.
7355 * a-calend.adb: Likewise.
7356 * a-calend.ads: Likewise.
7357 * a-calfor.adb: Likewise.
7358 * a-catizo.adb: Likewise.
7359 * a-cdlili.adb: Likewise.
7360 * a-cdlili.ads: Likewise.
7361 * a-cgaaso.adb: Likewise.
7362 * a-cgaaso.ads: Likewise.
7363 * a-cgarso.adb: Likewise.
7364 * a-cgcaso.adb: Likewise.
7365 * a-chacon.adb: Likewise.
7366 * a-chacon.ads: Likewise.
7367 * a-chahan.adb: Likewise.
7368 * a-chahan.ads: Likewise.
7369 * a-chlat9.ads: Likewise.
7370 * a-chtgke.adb: Likewise.
7371 * a-chtgke.ads: Likewise.
7372 * a-chtgop.adb: Likewise.
7373 * a-chtgop.ads: Likewise.
7374 * a-chzla1.ads: Likewise.
7375 * a-chzla9.ads: Likewise.
7376 * a-cidlli.adb: Likewise.
7377 * a-cidlli.ads: Likewise.
7378 * a-cihama.adb: Likewise.
7379 * a-cihama.ads: Likewise.
7380 * a-cihase.adb: Likewise.
7381 * a-cihase.ads: Likewise.
7382 * a-ciorma.adb: Likewise.
7383 * a-ciorma.ads: Likewise.
7384 * a-ciormu.adb: Likewise.
7385 * a-ciormu.ads: Likewise.
7386 * a-ciorse.adb: Likewise.
7387 * a-ciorse.ads: Likewise.
7388 * a-clrefi.adb: Likewise.
7389 * a-clrefi.ads: Likewise.
7390 * a-cohama.adb: Likewise.
7391 * a-cohama.ads: Likewise.
7392 * a-cohase.adb: Likewise.
7393 * a-cohase.ads: Likewise.
7394 * a-cohata.ads: Likewise.
7395 * a-coinve.adb: Likewise.
7396 * a-coinve.ads: Likewise.
7397 * a-colien.adb: Likewise.
7398 * a-colien.ads: Likewise.
7399 * a-colire.adb: Likewise.
7400 * a-colire.ads: Likewise.
7401 * a-comlin.adb: Likewise.
7402 * a-comlin.ads: Likewise.
7403 * a-convec.adb: Likewise.
7404 * a-convec.ads: Likewise.
7405 * a-coorma.adb: Likewise.
7406 * a-coorma.ads: Likewise.
7407 * a-coormu.adb: Likewise.
7408 * a-coormu.ads: Likewise.
7409 * a-coorse.adb: Likewise.
7410 * a-coorse.ads: Likewise.
7411 * a-coprnu.adb: Likewise.
7412 * a-coprnu.ads: Likewise.
7413 * a-crbltr.ads: Likewise.
7414 * a-crbtgk.adb: Likewise.
7415 * a-crbtgk.ads: Likewise.
7416 * a-crbtgo.adb: Likewise.
7417 * a-crbtgo.ads: Likewise.
7418 * a-crdlli.adb: Likewise.
7419 * a-crdlli.ads: Likewise.
7420 * a-cwila1.ads: Likewise.
7421 * a-cwila9.ads: Likewise.
7422 * a-decima.adb: Likewise.
7423 * a-decima.ads: Likewise.
7424 * a-diocst.adb: Likewise.
7425 * a-diocst.ads: Likewise.
7426 * a-direct.adb: Likewise.
7427 * a-direct.ads: Likewise.
7428 * a-direio.adb: Likewise.
7429 * a-direio.ads: Likewise.
7430 * a-dirval-mingw.adb: Likewise.
7431 * a-dirval-vms.adb: Likewise.
7432 * a-dirval.adb: Likewise.
7433 * a-dirval.ads: Likewise.
7434 * a-dynpri.adb: Likewise.
7435 * a-einuoc.adb: Likewise.
7436 * a-einuoc.ads: Likewise.
7437 * a-elchha.adb: Likewise.
7438 * a-elchha.ads: Likewise.
7439 * a-envvar.adb: Likewise.
7440 * a-excach.adb: Likewise.
7441 * a-except-2005.adb: Likewise.
7442 * a-except-2005.ads: Likewise.
7443 * a-except.adb: Likewise.
7444 * a-except.ads: Likewise.
7445 * a-excpol-abort.adb: Likewise.
7446 * a-excpol.adb: Likewise.
7447 * a-exctra.adb: Likewise.
7448 * a-exctra.ads: Likewise.
7449 * a-exetim-mingw.adb: Likewise.
7450 * a-exetim-mingw.ads: Likewise.
7451 * a-exexda.adb: Likewise.
7452 * a-exexpr-gcc.adb: Likewise.
7453 * a-exexpr.adb: Likewise.
7454 * a-exextr.adb: Likewise.
7455 * a-exstat.adb: Likewise.
7456 * a-filico.adb: Likewise.
7457 * a-filico.ads: Likewise.
7458 * a-finali.adb: Likewise.
7459 * a-finali.ads: Likewise.
7460 * a-interr.ads: Likewise.
7461 * a-intnam-aix.ads: Likewise.
7462 * a-intnam-darwin.ads: Likewise.
7463 * a-intnam-dummy.ads: Likewise.
7464 * a-intnam-freebsd.ads: Likewise.
7465 * a-intnam-hpux.ads: Likewise.
7466 * a-intnam-irix.ads: Likewise.
7467 * a-intnam-linux.ads: Likewise.
7468 * a-intnam-lynxos.ads: Likewise.
7469 * a-intnam-mingw.ads: Likewise.
7470 * a-intnam-rtems.ads: Likewise.
7471 * a-intnam-solaris.ads: Likewise.
7472 * a-intnam-tru64.ads: Likewise.
7473 * a-intnam-vms.ads: Likewise.
7474 * a-intnam-vxworks.ads: Likewise.
7475 * a-intsig.adb: Likewise.
7476 * a-intsig.ads: Likewise.
7477 * a-ngcefu.adb: Likewise.
7478 * a-ngcoar.adb: Likewise.
7479 * a-ngcoty.adb: Likewise.
7480 * a-ngcoty.ads: Likewise.
7481 * a-ngelfu.adb: Likewise.
7482 * a-ngrear.adb: Likewise.
7483 * a-ngrear.ads: Likewise.
7484 * a-nudira.adb: Likewise.
7485 * a-nudira.ads: Likewise.
7486 * a-nuflra.adb: Likewise.
7487 * a-nuflra.ads: Likewise.
7488 * a-numaux-darwin.adb: Likewise.
7489 * a-numaux-darwin.ads: Likewise.
7490 * a-numaux-libc-x86.ads: Likewise.
7491 * a-numaux-vxworks.ads: Likewise.
7492 * a-numaux-x86.adb: Likewise.
7493 * a-numaux-x86.ads: Likewise.
7494 * a-numaux.ads: Likewise.
7495 * a-rbtgso.adb: Likewise.
7496 * a-rbtgso.ads: Likewise.
7497 * a-reatim.ads: Likewise.
7498 * a-retide.adb: Likewise.
7499 * a-retide.ads: Likewise.
7500 * a-rttiev.adb: Likewise.
7501 * a-rttiev.ads: Likewise.
7502 * a-secain.adb: Likewise.
7503 * a-secain.ads: Likewise.
7504 * a-sequio.adb: Likewise.
7505 * a-sequio.ads: Likewise.
7506 * a-shcain.adb: Likewise.
7507 * a-shcain.ads: Likewise.
7508 * a-siocst.adb: Likewise.
7509 * a-siocst.ads: Likewise.
7510 * a-slcain.adb: Likewise.
7511 * a-slcain.ads: Likewise.
7512 * a-ssicst.adb: Likewise.
7513 * a-ssicst.ads: Likewise.
7514 * a-stboha.adb: Likewise.
7515 * a-stmaco.ads: Likewise.
7516 * a-storio.adb: Likewise.
7517 * a-strbou.adb: Likewise.
7518 * a-strbou.ads: Likewise.
7519 * a-stream.ads: Likewise.
7520 * a-strfix.adb: Likewise.
7521 * a-strhas.adb: Likewise.
7522 * a-strmap.adb: Likewise.
7523 * a-strmap.ads: Likewise.
7524 * a-strsea.adb: Likewise.
7525 * a-strsea.ads: Likewise.
7526 * a-strsup.adb: Likewise.
7527 * a-strsup.ads: Likewise.
7528 * a-strunb.adb: Likewise.
7529 * a-strunb.ads: Likewise.
7530 * a-ststio.adb: Likewise.
7531 * a-ststio.ads: Likewise.
7532 * a-stunau.adb: Likewise.
7533 * a-stunau.ads: Likewise.
7534 * a-stunha.adb: Likewise.
7535 * a-stwibo.adb: Likewise.
7536 * a-stwibo.ads: Likewise.
7537 * a-stwifi.adb: Likewise.
7538 * a-stwiha.adb: Likewise.
7539 * a-stwima.adb: Likewise.
7540 * a-stwima.ads: Likewise.
7541 * a-stwise.adb: Likewise.
7542 * a-stwise.ads: Likewise.
7543 * a-stwisu.adb: Likewise.
7544 * a-stwisu.ads: Likewise.
7545 * a-stwiun.adb: Likewise.
7546 * a-stwiun.ads: Likewise.
7547 * a-stzbou.adb: Likewise.
7548 * a-stzbou.ads: Likewise.
7549 * a-stzfix.adb: Likewise.
7550 * a-stzhas.adb: Likewise.
7551 * a-stzmap.adb: Likewise.
7552 * a-stzmap.ads: Likewise.
7553 * a-stzsea.adb: Likewise.
7554 * a-stzsea.ads: Likewise.
7555 * a-stzsup.adb: Likewise.
7556 * a-stzsup.ads: Likewise.
7557 * a-stzunb.adb: Likewise.
7558 * a-stzunb.ads: Likewise.
7559 * a-suteio.adb: Likewise.
7560 * a-suteio.ads: Likewise.
7561 * a-swbwha.adb: Likewise.
7562 * a-swmwco.ads: Likewise.
7563 * a-swunau.adb: Likewise.
7564 * a-swunau.ads: Likewise.
7565 * a-swuwha.adb: Likewise.
7566 * a-swuwti.adb: Likewise.
7567 * a-swuwti.ads: Likewise.
7568 * a-sytaco.adb: Likewise.
7569 * a-sytaco.ads: Likewise.
7570 * a-szbzha.adb: Likewise.
7571 * a-szmzco.ads: Likewise.
7572 * a-szunau.adb: Likewise.
7573 * a-szunau.ads: Likewise.
7574 * a-szuzha.adb: Likewise.
7575 * a-szuzti.adb: Likewise.
7576 * a-szuzti.ads: Likewise.
7577 * a-tags.adb: Likewise.
7578 * a-tags.ads: Likewise.
7579 * a-tasatt.ads: Likewise.
7580 * a-taside.adb: Likewise.
7581 * a-taside.ads: Likewise.
7582 * a-taster.adb: Likewise.
7583 * a-teioed.adb: Likewise.
7584 * a-teioed.ads: Likewise.
7585 * a-textio.adb: Likewise.
7586 * a-textio.ads: Likewise.
7587 * a-tiboio.adb: Likewise.
7588 * a-ticoau.adb: Likewise.
7589 * a-ticoau.ads: Likewise.
7590 * a-ticoio.adb: Likewise.
7591 * a-ticoio.ads: Likewise.
7592 * a-tideau.adb: Likewise.
7593 * a-tideau.ads: Likewise.
7594 * a-tideio.adb: Likewise.
7595 * a-tideio.ads: Likewise.
7596 * a-tienau.adb: Likewise.
7597 * a-tienau.ads: Likewise.
7598 * a-tienio.adb: Likewise.
7599 * a-tienio.ads: Likewise.
7600 * a-tifiio.adb: Likewise.
7601 * a-tifiio.ads: Likewise.
7602 * a-tiflau.adb: Likewise.
7603 * a-tiflau.ads: Likewise.
7604 * a-tiflio.adb: Likewise.
7605 * a-tiflio.ads: Likewise.
7606 * a-tigeau.adb: Likewise.
7607 * a-tigeau.ads: Likewise.
7608 * a-tiinau.adb: Likewise.
7609 * a-tiinau.ads: Likewise.
7610 * a-tiinio.adb: Likewise.
7611 * a-tiinio.ads: Likewise.
7612 * a-timoau.adb: Likewise.
7613 * a-timoau.ads: Likewise.
7614 * a-timoio.adb: Likewise.
7615 * a-timoio.ads: Likewise.
7616 * a-tiocst.adb: Likewise.
7617 * a-tiocst.ads: Likewise.
7618 * a-titest.adb: Likewise.
7619 * a-wichun.adb: Likewise.
7620 * a-wichun.ads: Likewise.
7621 * a-witeio.adb: Likewise.
7622 * a-witeio.ads: Likewise.
7623 * a-wtcoau.adb: Likewise.
7624 * a-wtcoau.ads: Likewise.
7625 * a-wtcoio.adb: Likewise.
7626 * a-wtcstr.adb: Likewise.
7627 * a-wtcstr.ads: Likewise.
7628 * a-wtdeau.adb: Likewise.
7629 * a-wtdeau.ads: Likewise.
7630 * a-wtdeio.adb: Likewise.
7631 * a-wtdeio.ads: Likewise.
7632 * a-wtedit.adb: Likewise.
7633 * a-wtedit.ads: Likewise.
7634 * a-wtenau.adb: Likewise.
7635 * a-wtenau.ads: Likewise.
7636 * a-wtenio.adb: Likewise.
7637 * a-wtenio.ads: Likewise.
7638 * a-wtfiio.adb: Likewise.
7639 * a-wtfiio.ads: Likewise.
7640 * a-wtflau.adb: Likewise.
7641 * a-wtflau.ads: Likewise.
7642 * a-wtflio.adb: Likewise.
7643 * a-wtflio.ads: Likewise.
7644 * a-wtgeau.adb: Likewise.
7645 * a-wtgeau.ads: Likewise.
7646 * a-wtinau.adb: Likewise.
7647 * a-wtinau.ads: Likewise.
7648 * a-wtinio.adb: Likewise.
7649 * a-wtmoau.adb: Likewise.
7650 * a-wtmoau.ads: Likewise.
7651 * a-wtmoio.adb: Likewise.
7652 * a-wtmoio.ads: Likewise.
7653 * a-wttest.adb: Likewise.
7654 * a-wwboio.adb: Likewise.
7655 * a-zchuni.adb: Likewise.
7656 * a-zchuni.ads: Likewise.
7657 * a-ztcoau.adb: Likewise.
7658 * a-ztcoau.ads: Likewise.
7659 * a-ztcoio.adb: Likewise.
7660 * a-ztcstr.adb: Likewise.
7661 * a-ztcstr.ads: Likewise.
7662 * a-ztdeau.adb: Likewise.
7663 * a-ztdeau.ads: Likewise.
7664 * a-ztdeio.adb: Likewise.
7665 * a-ztdeio.ads: Likewise.
7666 * a-ztedit.adb: Likewise.
7667 * a-ztedit.ads: Likewise.
7668 * a-ztenau.adb: Likewise.
7669 * a-ztenau.ads: Likewise.
7670 * a-ztenio.adb: Likewise.
7671 * a-ztenio.ads: Likewise.
7672 * a-ztexio.adb: Likewise.
7673 * a-ztexio.ads: Likewise.
7674 * a-ztfiio.adb: Likewise.
7675 * a-ztfiio.ads: Likewise.
7676 * a-ztflau.adb: Likewise.
7677 * a-ztflau.ads: Likewise.
7678 * a-ztflio.adb: Likewise.
7679 * a-ztflio.ads: Likewise.
7680 * a-ztgeau.adb: Likewise.
7681 * a-ztgeau.ads: Likewise.
7682 * a-ztinau.adb: Likewise.
7683 * a-ztinau.ads: Likewise.
7684 * a-ztinio.adb: Likewise.
7685 * a-ztmoau.adb: Likewise.
7686 * a-ztmoau.ads: Likewise.
7687 * a-ztmoio.adb: Likewise.
7688 * a-ztmoio.ads: Likewise.
7689 * a-zttest.adb: Likewise.
7690 * a-zzboio.adb: Likewise.
7691 * adadecode.c: Likewise.
7692 * adaint.c: Likewise.
7693 * adaint.h: Likewise.
7694 * alloc.ads: Likewise.
7695 * argv.c: Likewise.
7696 * arit64.c: Likewise.
7697 * atree.adb: Likewise.
7698 * atree.ads: Likewise.
7699 * aux-io.c: Likewise.
7700 * cal.c: Likewise.
7701 * casing.adb: Likewise.
7702 * casing.ads: Likewise.
7703 * cio.c: Likewise.
7704 * csets.adb: Likewise.
7705 * csets.ads: Likewise.
7706 * cstreams.c: Likewise.
7707 * ctrl_c.c: Likewise.
7708 * debug.adb: Likewise.
7709 * debug.ads: Likewise.
7710 * dec.ads: Likewise.
7711 * einfo.adb: Likewise.
7712 * einfo.ads: Likewise.
7713 * elists.adb: Likewise.
7714 * elists.ads: Likewise.
7715 * env.c: Likewise.
7716 * env.h: Likewise.
7717 * errno.c: Likewise.
7718 * exit.c: Likewise.
7719 * fe.h: Likewise.
7720 * final.c: Likewise.
7721 * fname.adb: Likewise.
7722 * fname.ads: Likewise.
7723 * g-allein.ads: Likewise.
7724 * g-alleve.adb: Likewise.
7725 * g-alleve.ads: Likewise.
7726 * g-altcon.adb: Likewise.
7727 * g-altcon.ads: Likewise.
7728 * g-altive.ads: Likewise.
7729 * g-alveop.adb: Likewise.
7730 * g-alveop.ads: Likewise.
7731 * g-alvety.ads: Likewise.
7732 * g-alvevi.ads: Likewise.
7733 * g-arrspl.adb: Likewise.
7734 * g-arrspl.ads: Likewise.
7735 * g-calend.ads: Likewise.
7736 * g-comlin.adb: Likewise.
7737 * g-debpoo.adb: Likewise.
7738 * g-debpoo.ads: Likewise.
7739 * g-eacodu-vms.adb: Likewise.
7740 * g-eacodu.adb: Likewise.
7741 * g-excact.adb: Likewise.
7742 * g-excact.ads: Likewise.
7743 * g-locfil.adb: Likewise.
7744 * g-os_lib.ads: Likewise.
7745 * g-rannum.adb: Likewise.
7746 * g-rannum.ads: Likewise.
7747 * g-regist.adb: Likewise.
7748 * g-regist.ads: Likewise.
7749 * g-signal.adb: Likewise.
7750 * g-signal.ads: Likewise.
7751 * g-soccon.ads: Likewise.
7752 * g-string.adb: Likewise.
7753 * g-string.ads: Likewise.
7754 * g-strspl.ads: Likewise.
7755 * g-timsta.adb: Likewise.
7756 * g-timsta.ads: Likewise.
7757 * g-trasym-vms-alpha.adb: Likewise.
7758 * g-trasym-vms-ia64.adb: Likewise.
7759 * g-utf_32.adb: Likewise.
7760 * g-utf_32.ads: Likewise.
7761 * g-wistsp.ads: Likewise.
7762 * g-zstspl.ads: Likewise.
7763 * gmem.c: Likewise.
7764 * gnatvsn.adb: Likewise.
7765 * gnatvsn.ads: Likewise.
7766 * gsocket.h: Likewise.
7767 * hostparm.ads: Likewise.
7768 * i-c.adb: Likewise.
7769 * i-cexten.ads: Likewise.
7770 * i-cobol.adb: Likewise.
7771 * i-cobol.ads: Likewise.
7772 * i-cpoint.adb: Likewise.
7773 * i-cpoint.ads: Likewise.
7774 * i-cpp.adb: Likewise.
7775 * i-cpp.ads: Likewise.
7776 * i-cstrea-vms.adb: Likewise.
7777 * i-cstrea.adb: Likewise.
7778 * i-cstrea.ads: Likewise.
7779 * i-cstrin.adb: Likewise.
7780 * i-cstrin.ads: Likewise.
7781 * i-forbla-darwin.adb: Likewise.
7782 * i-forbla-unimplemented.ads: Likewise.
7783 * i-forbla.adb: Likewise.
7784 * i-forbla.ads: Likewise.
7785 * i-forlap.ads: Likewise.
7786 * i-fortra.adb: Likewise.
7787 * i-pacdec.adb: Likewise.
7788 * i-pacdec.ads: Likewise.
7789 * i-vxwoio.adb: Likewise.
7790 * i-vxwoio.ads: Likewise.
7791 * indepsw-aix.adb: Likewise.
7792 * indepsw-gnu.adb: Likewise.
7793 * indepsw-mingw.adb: Likewise.
7794 * indepsw.adb: Likewise.
7795 * indepsw.ads: Likewise.
7796 * init.c: Likewise.
7797 * initialize.c: Likewise.
7798 * interfac.ads: Likewise.
7799 * krunch.adb: Likewise.
7800 * krunch.ads: Likewise.
7801 * lib-list.adb: Likewise.
7802 * lib-sort.adb: Likewise.
7803 * lib.adb: Likewise.
7804 * lib.ads: Likewise.
7805 * link.c: Likewise.
7806 * math_lib.adb: Likewise.
7807 * memtrack.adb: Likewise.
7808 * mingw32.h: Likewise.
7809 * mkdir.c: Likewise.
7810 * namet-sp.adb: Likewise.
7811 * namet-sp.ads: Likewise.
7812 * namet.adb: Likewise.
7813 * namet.ads: Likewise.
7814 * nlists.adb: Likewise.
7815 * nlists.ads: Likewise.
7816 * opt.adb: Likewise.
7817 * opt.ads: Likewise.
7818 * output.adb: Likewise.
7819 * output.ads: Likewise.
7820 * raise-gcc.c: Likewise.
7821 * raise.c: Likewise.
7822 * raise.h: Likewise.
7823 * repinfo.adb: Likewise.
7824 * repinfo.ads: Likewise.
7825 * repinfo.h: Likewise.
7826 * rident.ads: Likewise.
7827 * s-addima.adb: Likewise.
7828 * s-addima.ads: Likewise.
7829 * s-addope.adb: Likewise.
7830 * s-addope.ads: Likewise.
7831 * s-arit64.adb: Likewise.
7832 * s-arit64.ads: Likewise.
7833 * s-assert.adb: Likewise.
7834 * s-assert.ads: Likewise.
7835 * s-asthan-vms-alpha.adb: Likewise.
7836 * s-asthan.adb: Likewise.
7837 * s-asthan.ads: Likewise.
7838 * s-atacco.adb: Likewise.
7839 * s-atacco.ads: Likewise.
7840 * s-auxdec-empty.adb: Likewise.
7841 * s-auxdec-empty.ads: Likewise.
7842 * s-auxdec-vms_64.ads: Likewise.
7843 * s-auxdec.adb: Likewise.
7844 * s-auxdec.ads: Likewise.
7845 * s-bitops.adb: Likewise.
7846 * s-bitops.ads: Likewise.
7847 * s-boarop.ads: Likewise.
7848 * s-carsi8.adb: Likewise.
7849 * s-carsi8.ads: Likewise.
7850 * s-carun8.adb: Likewise.
7851 * s-carun8.ads: Likewise.
7852 * s-casi16.adb: Likewise.
7853 * s-casi16.ads: Likewise.
7854 * s-casi32.adb: Likewise.
7855 * s-casi32.ads: Likewise.
7856 * s-casi64.adb: Likewise.
7857 * s-casi64.ads: Likewise.
7858 * s-casuti.ads: Likewise.
7859 * s-caun16.adb: Likewise.
7860 * s-caun16.ads: Likewise.
7861 * s-caun32.adb: Likewise.
7862 * s-caun32.ads: Likewise.
7863 * s-caun64.adb: Likewise.
7864 * s-caun64.ads: Likewise.
7865 * s-chepoo.ads: Likewise.
7866 * s-crc32.adb: Likewise.
7867 * s-crc32.ads: Likewise.
7868 * s-crtl.ads: Likewise.
7869 * s-direio.adb: Likewise.
7870 * s-direio.ads: Likewise.
7871 * s-dsaser.ads: Likewise.
7872 * s-except.adb: Likewise.
7873 * s-except.ads: Likewise.
7874 * s-exctab.adb: Likewise.
7875 * s-exctab.ads: Likewise.
7876 * s-exnint.adb: Likewise.
7877 * s-exnint.ads: Likewise.
7878 * s-exnllf.adb: Likewise.
7879 * s-exnllf.ads: Likewise.
7880 * s-exnlli.adb: Likewise.
7881 * s-exnlli.ads: Likewise.
7882 * s-expint.adb: Likewise.
7883 * s-expint.ads: Likewise.
7884 * s-explli.adb: Likewise.
7885 * s-explli.ads: Likewise.
7886 * s-expllu.adb: Likewise.
7887 * s-expllu.ads: Likewise.
7888 * s-expmod.adb: Likewise.
7889 * s-expmod.ads: Likewise.
7890 * s-expuns.adb: Likewise.
7891 * s-expuns.ads: Likewise.
7892 * s-fatflt.ads: Likewise.
7893 * s-fatgen.adb: Likewise.
7894 * s-fatgen.ads: Likewise.
7895 * s-fatlfl.ads: Likewise.
7896 * s-fatllf.ads: Likewise.
7897 * s-fatsfl.ads: Likewise.
7898 * s-ficobl.ads: Likewise.
7899 * s-fileio.adb: Likewise.
7900 * s-fileio.ads: Likewise.
7901 * s-filofl.ads: Likewise.
7902 * s-finimp.adb: Likewise.
7903 * s-finimp.ads: Likewise.
7904 * s-finroo.adb: Likewise.
7905 * s-finroo.ads: Likewise.
7906 * s-fishfl.ads: Likewise.
7907 * s-fore.adb: Likewise.
7908 * s-fore.ads: Likewise.
7909 * s-fvadfl.ads: Likewise.
7910 * s-fvaffl.ads: Likewise.
7911 * s-fvagfl.ads: Likewise.
7912 * s-gearop.adb: Likewise.
7913 * s-gearop.ads: Likewise.
7914 * s-gecobl.adb: Likewise.
7915 * s-gecobl.ads: Likewise.
7916 * s-gecola.adb: Likewise.
7917 * s-gecola.ads: Likewise.
7918 * s-gerebl.adb: Likewise.
7919 * s-gerebl.ads: Likewise.
7920 * s-gerela.adb: Likewise.
7921 * s-gerela.ads: Likewise.
7922 * s-geveop.adb: Likewise.
7923 * s-geveop.ads: Likewise.
7924 * s-gloloc.adb: Likewise.
7925 * s-gloloc.ads: Likewise.
7926 * s-hibaen.ads: Likewise.
7927 * s-imenne.adb: Likewise.
7928 * s-imenne.ads: Likewise.
7929 * s-imgbiu.adb: Likewise.
7930 * s-imgbiu.ads: Likewise.
7931 * s-imgboo.adb: Likewise.
7932 * s-imgboo.ads: Likewise.
7933 * s-imgcha.adb: Likewise.
7934 * s-imgcha.ads: Likewise.
7935 * s-imgdec.adb: Likewise.
7936 * s-imgdec.ads: Likewise.
7937 * s-imgenu.adb: Likewise.
7938 * s-imgenu.ads: Likewise.
7939 * s-imgint.adb: Likewise.
7940 * s-imgint.ads: Likewise.
7941 * s-imgllb.adb: Likewise.
7942 * s-imgllb.ads: Likewise.
7943 * s-imglld.adb: Likewise.
7944 * s-imglld.ads: Likewise.
7945 * s-imglli.adb: Likewise.
7946 * s-imglli.ads: Likewise.
7947 * s-imgllu.adb: Likewise.
7948 * s-imgllu.ads: Likewise.
7949 * s-imgllw.adb: Likewise.
7950 * s-imgllw.ads: Likewise.
7951 * s-imgrea.adb: Likewise.
7952 * s-imgrea.ads: Likewise.
7953 * s-imguns.adb: Likewise.
7954 * s-imguns.ads: Likewise.
7955 * s-imgwch.adb: Likewise.
7956 * s-imgwch.ads: Likewise.
7957 * s-imgwiu.adb: Likewise.
7958 * s-imgwiu.ads: Likewise.
7959 * s-inmaop-dummy.adb: Likewise.
7960 * s-inmaop-vms.adb: Likewise.
7961 * s-inmaop.ads: Likewise.
7962 * s-interr-hwint.adb: Likewise.
7963 * s-interr-sigaction.adb: Likewise.
7964 * s-interr-vms.adb: Likewise.
7965 * s-interr.adb: Likewise.
7966 * s-interr.ads: Likewise.
7967 * s-intman-dummy.adb: Likewise.
7968 * s-intman-mingw.adb: Likewise.
7969 * s-intman-posix.adb: Likewise.
7970 * s-intman-solaris.adb: Likewise.
7971 * s-intman-vms.adb: Likewise.
7972 * s-intman-vms.ads: Likewise.
7973 * s-intman-vxworks.adb: Likewise.
7974 * s-intman-vxworks.ads: Likewise.
7975 * s-intman.ads: Likewise.
7976 * s-io.adb: Likewise.
7977 * s-io.ads: Likewise.
7978 * s-linux-alpha.ads: Likewise.
7979 * s-linux-hppa.ads: Likewise.
7980 * s-linux.ads: Likewise.
7981 * s-maccod.ads: Likewise.
7982 * s-mantis.adb: Likewise.
7983 * s-mantis.ads: Likewise.
7984 * s-mastop-irix.adb: Likewise.
7985 * s-mastop.adb: Likewise.
7986 * s-mastop.ads: Likewise.
7987 * s-memcop.ads: Likewise.
7988 * s-memory-mingw.adb: Likewise.
7989 * s-memory.adb: Likewise.
7990 * s-memory.ads: Likewise.
7991 * s-os_lib.ads: Likewise.
7992 * s-oscons-tmplt.c: Likewise.
7993 * s-osinte-aix.adb: Likewise.
7994 * s-osinte-darwin.adb: Likewise.
7995 * s-osinte-freebsd.adb: Likewise.
7996 * s-osinte-irix.adb: Likewise.
7997 * s-osinte-lynxos-3.adb: Likewise.
7998 * s-osinte-rtems.ads: Likewise.
7999 * s-osinte-tru64.adb: Likewise.
8000 * s-osinte-vxworks-kernel.adb: Likewise.
8001 * s-osinte-vxworks.adb: Likewise.
8002 * s-osprim-mingw.adb: Likewise.
8003 * s-osprim-posix.adb: Likewise.
8004 * s-osprim-solaris.adb: Likewise.
8005 * s-osprim-unix.adb: Likewise.
8006 * s-osprim-vms.adb: Likewise.
8007 * s-osprim-vms.ads: Likewise.
8008 * s-osprim-vxworks.adb: Likewise.
8009 * s-osprim.ads: Likewise.
8010 * s-pack03.adb: Likewise.
8011 * s-pack03.ads: Likewise.
8012 * s-pack05.adb: Likewise.
8013 * s-pack05.ads: Likewise.
8014 * s-pack06.adb: Likewise.
8015 * s-pack06.ads: Likewise.
8016 * s-pack07.adb: Likewise.
8017 * s-pack07.ads: Likewise.
8018 * s-pack09.adb: Likewise.
8019 * s-pack09.ads: Likewise.
8020 * s-pack10.adb: Likewise.
8021 * s-pack10.ads: Likewise.
8022 * s-pack11.adb: Likewise.
8023 * s-pack11.ads: Likewise.
8024 * s-pack12.adb: Likewise.
8025 * s-pack12.ads: Likewise.
8026 * s-pack13.adb: Likewise.
8027 * s-pack13.ads: Likewise.
8028 * s-pack14.adb: Likewise.
8029 * s-pack14.ads: Likewise.
8030 * s-pack15.adb: Likewise.
8031 * s-pack15.ads: Likewise.
8032 * s-pack17.adb: Likewise.
8033 * s-pack17.ads: Likewise.
8034 * s-pack18.adb: Likewise.
8035 * s-pack18.ads: Likewise.
8036 * s-pack19.adb: Likewise.
8037 * s-pack19.ads: Likewise.
8038 * s-pack20.adb: Likewise.
8039 * s-pack20.ads: Likewise.
8040 * s-pack21.adb: Likewise.
8041 * s-pack21.ads: Likewise.
8042 * s-pack22.adb: Likewise.
8043 * s-pack22.ads: Likewise.
8044 * s-pack23.adb: Likewise.
8045 * s-pack23.ads: Likewise.
8046 * s-pack24.adb: Likewise.
8047 * s-pack24.ads: Likewise.
8048 * s-pack25.adb: Likewise.
8049 * s-pack25.ads: Likewise.
8050 * s-pack26.adb: Likewise.
8051 * s-pack26.ads: Likewise.
8052 * s-pack27.adb: Likewise.
8053 * s-pack27.ads: Likewise.
8054 * s-pack28.adb: Likewise.
8055 * s-pack28.ads: Likewise.
8056 * s-pack29.adb: Likewise.
8057 * s-pack29.ads: Likewise.
8058 * s-pack30.adb: Likewise.
8059 * s-pack30.ads: Likewise.
8060 * s-pack31.adb: Likewise.
8061 * s-pack31.ads: Likewise.
8062 * s-pack33.adb: Likewise.
8063 * s-pack33.ads: Likewise.
8064 * s-pack34.adb: Likewise.
8065 * s-pack34.ads: Likewise.
8066 * s-pack35.adb: Likewise.
8067 * s-pack35.ads: Likewise.
8068 * s-pack36.adb: Likewise.
8069 * s-pack36.ads: Likewise.
8070 * s-pack37.adb: Likewise.
8071 * s-pack37.ads: Likewise.
8072 * s-pack38.adb: Likewise.
8073 * s-pack38.ads: Likewise.
8074 * s-pack39.adb: Likewise.
8075 * s-pack39.ads: Likewise.
8076 * s-pack40.adb: Likewise.
8077 * s-pack40.ads: Likewise.
8078 * s-pack41.adb: Likewise.
8079 * s-pack41.ads: Likewise.
8080 * s-pack42.adb: Likewise.
8081 * s-pack42.ads: Likewise.
8082 * s-pack43.adb: Likewise.
8083 * s-pack43.ads: Likewise.
8084 * s-pack44.adb: Likewise.
8085 * s-pack44.ads: Likewise.
8086 * s-pack45.adb: Likewise.
8087 * s-pack45.ads: Likewise.
8088 * s-pack46.adb: Likewise.
8089 * s-pack46.ads: Likewise.
8090 * s-pack47.adb: Likewise.
8091 * s-pack47.ads: Likewise.
8092 * s-pack48.adb: Likewise.
8093 * s-pack48.ads: Likewise.
8094 * s-pack49.adb: Likewise.
8095 * s-pack49.ads: Likewise.
8096 * s-pack50.adb: Likewise.
8097 * s-pack50.ads: Likewise.
8098 * s-pack51.adb: Likewise.
8099 * s-pack51.ads: Likewise.
8100 * s-pack52.adb: Likewise.
8101 * s-pack52.ads: Likewise.
8102 * s-pack53.adb: Likewise.
8103 * s-pack53.ads: Likewise.
8104 * s-pack54.adb: Likewise.
8105 * s-pack54.ads: Likewise.
8106 * s-pack55.adb: Likewise.
8107 * s-pack55.ads: Likewise.
8108 * s-pack56.adb: Likewise.
8109 * s-pack56.ads: Likewise.
8110 * s-pack57.adb: Likewise.
8111 * s-pack57.ads: Likewise.
8112 * s-pack58.adb: Likewise.
8113 * s-pack58.ads: Likewise.
8114 * s-pack59.adb: Likewise.
8115 * s-pack59.ads: Likewise.
8116 * s-pack60.adb: Likewise.
8117 * s-pack60.ads: Likewise.
8118 * s-pack61.adb: Likewise.
8119 * s-pack61.ads: Likewise.
8120 * s-pack62.adb: Likewise.
8121 * s-pack62.ads: Likewise.
8122 * s-pack63.adb: Likewise.
8123 * s-pack63.ads: Likewise.
8124 * s-parame-ae653.ads: Likewise.
8125 * s-parame-hpux.ads: Likewise.
8126 * s-parame-rtems.adb: Likewise.
8127 * s-parame-vms-alpha.ads: Likewise.
8128 * s-parame-vms-ia64.ads: Likewise.
8129 * s-parame-vms-restrict.ads: Likewise.
8130 * s-parame-vxworks.adb: Likewise.
8131 * s-parame-vxworks.ads: Likewise.
8132 * s-parame.adb: Likewise.
8133 * s-parame.ads: Likewise.
8134 * s-parint.adb: Likewise.
8135 * s-parint.ads: Likewise.
8136 * s-pooglo.adb: Likewise.
8137 * s-pooglo.ads: Likewise.
8138 * s-pooloc.adb: Likewise.
8139 * s-pooloc.ads: Likewise.
8140 * s-poosiz.adb: Likewise.
8141 * s-poosiz.ads: Likewise.
8142 * s-powtab.ads: Likewise.
8143 * s-proinf-irix-athread.adb: Likewise.
8144 * s-proinf-irix-athread.ads: Likewise.
8145 * s-proinf.adb: Likewise.
8146 * s-proinf.ads: Likewise.
8147 * s-purexc.ads: Likewise.
8148 * s-rannum.adb: Likewise.
8149 * s-rannum.ads: Likewise.
8150 * s-restri.adb: Likewise.
8151 * s-restri.ads: Likewise.
8152 * s-rident.ads: Likewise.
8153 * s-rpc.adb: Likewise.
8154 * s-rpc.ads: Likewise.
8155 * s-scaval.adb: Likewise.
8156 * s-scaval.ads: Likewise.
8157 * s-secsta.adb: Likewise.
8158 * s-secsta.ads: Likewise.
8159 * s-sequio.adb: Likewise.
8160 * s-sequio.ads: Likewise.
8161 * s-shasto.adb: Likewise.
8162 * s-shasto.ads: Likewise.
8163 * s-soflin.adb: Likewise.
8164 * s-soflin.ads: Likewise.
8165 * s-solita.adb: Likewise.
8166 * s-solita.ads: Likewise.
8167 * s-sopco3.adb: Likewise.
8168 * s-sopco3.ads: Likewise.
8169 * s-sopco4.adb: Likewise.
8170 * s-sopco4.ads: Likewise.
8171 * s-sopco5.adb: Likewise.
8172 * s-sopco5.ads: Likewise.
8173 * s-stache.adb: Likewise.
8174 * s-stache.ads: Likewise.
8175 * s-stalib.adb: Likewise.
8176 * s-stalib.ads: Likewise.
8177 * s-stausa.adb: Likewise.
8178 * s-stausa.ads: Likewise.
8179 * s-stchop-limit.ads: Likewise.
8180 * s-stchop-rtems.adb: Likewise.
8181 * s-stchop-vxworks.adb: Likewise.
8182 * s-stchop.adb: Likewise.
8183 * s-stchop.ads: Likewise.
8184 * s-stoele.adb: Likewise.
8185 * s-stoele.ads: Likewise.
8186 * s-stopoo.adb: Likewise.
8187 * s-stopoo.ads: Likewise.
8188 * s-stratt.adb: Likewise.
8189 * s-stratt.ads: Likewise.
8190 * s-strcom.adb: Likewise.
8191 * s-strcom.ads: Likewise.
8192 * s-string.adb: Likewise.
8193 * s-string.ads: Likewise.
8194 * s-strops.adb: Likewise.
8195 * s-strops.ads: Likewise.
8196 * s-strxdr.adb: Likewise.
8197 * s-ststop.adb: Likewise.
8198 * s-ststop.ads: Likewise.
8199 * s-taasde.adb: Likewise.
8200 * s-taasde.ads: Likewise.
8201 * s-tadeca.adb: Likewise.
8202 * s-tadeca.ads: Likewise.
8203 * s-tadert.adb: Likewise.
8204 * s-tadert.ads: Likewise.
8205 * s-taenca.adb: Likewise.
8206 * s-taenca.ads: Likewise.
8207 * s-taprob.ads: Likewise.
8208 * s-taprop-dummy.adb: Likewise.
8209 * s-taprop-hpux-dce.adb: Likewise.
8210 * s-taprop-irix.adb: Likewise.
8211 * s-taprop-linux.adb: Likewise.
8212 * s-taprop-lynxos.adb: Likewise.
8213 * s-taprop-mingw.adb: Likewise.
8214 * s-taprop-posix.adb: Likewise.
8215 * s-taprop-solaris.adb: Likewise.
8216 * s-taprop-tru64.adb: Likewise.
8217 * s-taprop-vms.adb: Likewise.
8218 * s-taprop-vxworks.adb: Likewise.
8219 * s-taprop.ads: Likewise.
8220 * s-tarest.adb: Likewise.
8221 * s-tarest.ads: Likewise.
8222 * s-tasdeb.adb: Likewise.
8223 * s-tasdeb.ads: Likewise.
8224 * s-tasinf-irix.ads: Likewise.
8225 * s-tasinf-linux.adb: Likewise.
8226 * s-tasinf-linux.ads: Likewise.
8227 * s-tasinf-mingw.adb: Likewise.
8228 * s-tasinf-mingw.ads: Likewise.
8229 * s-tasinf-solaris.adb: Likewise.
8230 * s-tasinf-solaris.ads: Likewise.
8231 * s-tasinf-tru64.ads: Likewise.
8232 * s-tasinf.adb: Likewise.
8233 * s-tasinf.ads: Likewise.
8234 * s-tasini.adb: Likewise.
8235 * s-tasini.ads: Likewise.
8236 * s-taskin.adb: Likewise.
8237 * s-taskin.ads: Likewise.
8238 * s-taspri-dummy.ads: Likewise.
8239 * s-taspri-hpux-dce.ads: Likewise.
8240 * s-taspri-mingw.ads: Likewise.
8241 * s-taspri-solaris.ads: Likewise.
8242 * s-taspri-tru64.ads: Likewise.
8243 * s-taspri-vms.ads: Likewise.
8244 * s-taspri-vxworks.ads: Likewise.
8245 * s-tasque.adb: Likewise.
8246 * s-tasque.ads: Likewise.
8247 * s-tasren.adb: Likewise.
8248 * s-tasren.ads: Likewise.
8249 * s-tasres.ads: Likewise.
8250 * s-tassta.adb: Likewise.
8251 * s-tassta.ads: Likewise.
8252 * s-tasuti.adb: Likewise.
8253 * s-tasuti.ads: Likewise.
8254 * s-tfsetr-default.adb: Likewise.
8255 * s-tfsetr-vxworks.adb: Likewise.
8256 * s-tpinop.adb: Likewise.
8257 * s-tpinop.ads: Likewise.
8258 * s-tpoben.adb: Likewise.
8259 * s-tpoben.ads: Likewise.
8260 * s-tpobop.adb: Likewise.
8261 * s-tpobop.ads: Likewise.
8262 * s-tpopde-vms.adb: Likewise.
8263 * s-tpopde-vms.ads: Likewise.
8264 * s-tpopsp-lynxos.adb: Likewise.
8265 * s-tpopsp-posix-foreign.adb: Likewise.
8266 * s-tpopsp-posix.adb: Likewise.
8267 * s-tpopsp-solaris.adb: Likewise.
8268 * s-tpopsp-vxworks.adb: Likewise.
8269 * s-tporft.adb: Likewise.
8270 * s-tposen.adb: Likewise.
8271 * s-tposen.ads: Likewise.
8272 * s-traceb.adb: Likewise.
8273 * s-traceb.ads: Likewise.
8274 * s-traces-default.adb: Likewise.
8275 * s-traces.adb: Likewise.
8276 * s-traces.ads: Likewise.
8277 * s-traent-vms.adb: Likewise.
8278 * s-traent-vms.ads: Likewise.
8279 * s-traent.adb: Likewise.
8280 * s-traent.ads: Likewise.
8281 * s-trafor-default.adb: Likewise.
8282 * s-trafor-default.ads: Likewise.
8283 * s-tratas-default.adb: Likewise.
8284 * s-tratas.adb: Likewise.
8285 * s-tratas.ads: Likewise.
8286 * s-unstyp.ads: Likewise.
8287 * s-utf_32.adb: Likewise.
8288 * s-utf_32.ads: Likewise.
8289 * s-vaflop-vms-alpha.adb: Likewise.
8290 * s-vaflop.adb: Likewise.
8291 * s-vaflop.ads: Likewise.
8292 * s-valboo.adb: Likewise.
8293 * s-valboo.ads: Likewise.
8294 * s-valcha.adb: Likewise.
8295 * s-valcha.ads: Likewise.
8296 * s-valdec.adb: Likewise.
8297 * s-valdec.ads: Likewise.
8298 * s-valenu.adb: Likewise.
8299 * s-valenu.ads: Likewise.
8300 * s-valint.adb: Likewise.
8301 * s-valint.ads: Likewise.
8302 * s-vallld.adb: Likewise.
8303 * s-vallld.ads: Likewise.
8304 * s-vallli.adb: Likewise.
8305 * s-vallli.ads: Likewise.
8306 * s-valllu.adb: Likewise.
8307 * s-valllu.ads: Likewise.
8308 * s-valrea.adb: Likewise.
8309 * s-valrea.ads: Likewise.
8310 * s-valuns.adb: Likewise.
8311 * s-valuns.ads: Likewise.
8312 * s-valuti.adb: Likewise.
8313 * s-valuti.ads: Likewise.
8314 * s-valwch.adb: Likewise.
8315 * s-valwch.ads: Likewise.
8316 * s-veboop.adb: Likewise.
8317 * s-veboop.ads: Likewise.
8318 * s-vector.ads: Likewise.
8319 * s-vercon.adb: Likewise.
8320 * s-vercon.ads: Likewise.
8321 * s-vmexta.adb: Likewise.
8322 * s-vmexta.ads: Likewise.
8323 * s-vxwext-kernel.ads: Likewise.
8324 * s-vxwext-rtp.adb: Likewise.
8325 * s-vxwext-rtp.ads: Likewise.
8326 * s-vxwext.ads: Likewise.
8327 * s-vxwork-arm.ads: Likewise.
8328 * s-vxwork-m68k.ads: Likewise.
8329 * s-vxwork-mips.ads: Likewise.
8330 * s-vxwork-ppc.ads: Likewise.
8331 * s-vxwork-sparcv9.ads: Likewise.
8332 * s-vxwork-x86.ads: Likewise.
8333 * s-wchcnv.adb: Likewise.
8334 * s-wchcnv.ads: Likewise.
8335 * s-wchcon.adb: Likewise.
8336 * s-wchcon.ads: Likewise.
8337 * s-wchjis.adb: Likewise.
8338 * s-wchjis.ads: Likewise.
8339 * s-wchstw.adb: Likewise.
8340 * s-wchstw.ads: Likewise.
8341 * s-wchwts.adb: Likewise.
8342 * s-wchwts.ads: Likewise.
8343 * s-widboo.adb: Likewise.
8344 * s-widboo.ads: Likewise.
8345 * s-widcha.adb: Likewise.
8346 * s-widcha.ads: Likewise.
8347 * s-widenu.adb: Likewise.
8348 * s-widenu.ads: Likewise.
8349 * s-widlli.adb: Likewise.
8350 * s-widlli.ads: Likewise.
8351 * s-widllu.adb: Likewise.
8352 * s-widllu.ads: Likewise.
8353 * s-widwch.adb: Likewise.
8354 * s-widwch.ads: Likewise.
8355 * s-win32.ads: Likewise.
8356 * s-winext.ads: Likewise.
8357 * s-wwdcha.adb: Likewise.
8358 * s-wwdcha.ads: Likewise.
8359 * s-wwdenu.adb: Likewise.
8360 * s-wwdenu.ads: Likewise.
8361 * s-wwdwch.adb: Likewise.
8362 * s-wwdwch.ads: Likewise.
8363 * scans.adb: Likewise.
8364 * scans.ads: Likewise.
8365 * seh_init.c: Likewise.
8366 * sfn_scan.adb: Likewise.
8367 * sinfo.adb: Likewise.
8368 * sinfo.ads: Likewise.
8369 * sinput.adb: Likewise.
8370 * sinput.ads: Likewise.
8371 * snames.adb: Likewise.
8372 * snames.ads: Likewise.
8373 * socket.c: Likewise.
8374 * stand.adb: Likewise.
8375 * stand.ads: Likewise.
8376 * stringt.adb: Likewise.
8377 * stringt.ads: Likewise.
8378 * sysdep.c: Likewise.
8379 * system-aix.ads: Likewise.
8380 * system-darwin-ppc.ads: Likewise.
8381 * system-darwin-x86.ads: Likewise.
8382 * system-darwin-x86_64.ads: Likewise.
8383 * system-freebsd-x86.ads: Likewise.
8384 * system-hpux-ia64.ads: Likewise.
8385 * system-hpux.ads: Likewise.
8386 * system-irix-n32.ads: Likewise.
8387 * system-irix-n64.ads: Likewise.
8388 * system-irix-o32.ads: Likewise.
8389 * system-linux-alpha.ads: Likewise.
8390 * system-linux-hppa.ads: Likewise.
8391 * system-linux-ia64.ads: Likewise.
8392 * system-linux-mips.ads: Likewise.
8393 * system-linux-mipsel.ads: Likewise.
8394 * system-linux-ppc.ads: Likewise.
8395 * system-linux-ppc64.ads: Likewise.
8396 * system-linux-s390.ads: Likewise.
8397 * system-linux-s390x.ads: Likewise.
8398 * system-linux-sh4.ads: Likewise.
8399 * system-linux-sparc.ads: Likewise.
8400 * system-linux-sparcv9.ads: Likewise.
8401 * system-linux-x86.ads: Likewise.
8402 * system-linux-x86_64.ads: Likewise.
8403 * system-lynxos-ppc.ads: Likewise.
8404 * system-lynxos-x86.ads: Likewise.
8405 * system-mingw-x86_64.ads: Likewise.
8406 * system-mingw.ads: Likewise.
8407 * system-rtems.ads: Likewise.
8408 * system-solaris-sparc.ads: Likewise.
8409 * system-solaris-sparcv9.ads: Likewise.
8410 * system-solaris-x86.ads: Likewise.
8411 * system-solaris-x86_64.ads: Likewise.
8412 * system-tru64.ads: Likewise.
8413 * system-vms-ia64.ads: Likewise.
8414 * system-vms-zcx.ads: Likewise.
8415 * system-vms.ads: Likewise.
8416 * system-vms_64.ads: Likewise.
8417 * system-vxworks-arm.ads: Likewise.
8418 * system-vxworks-m68k.ads: Likewise.
8419 * system-vxworks-mips.ads: Likewise.
8420 * system-vxworks-ppc.ads: Likewise.
8421 * system-vxworks-sparcv9.ads: Likewise.
8422 * system-vxworks-x86.ads: Likewise.
8423 * system.ads: Likewise.
8424 * table.adb: Likewise.
8425 * table.ads: Likewise.
8426 * targext.c: Likewise.
8427 * targparm.ads: Likewise.
8428 * tree_in.adb: Likewise.
8429 * tree_in.ads: Likewise.
8430 * tree_io.adb: Likewise.
8431 * tree_io.ads: Likewise.
8432 * types.adb: Likewise.
8433 * types.ads: Likewise.
8434 * uintp.adb: Likewise.
8435 * uintp.ads: Likewise.
8436 * uname.adb: Likewise.
8437 * uname.ads: Likewise.
8438 * urealp.adb: Likewise.
8439 * urealp.ads: Likewise.
8440 * vx_stack_info.c: Likewise.
8441 * widechar.adb: Likewise.
8442 * widechar.ads: Likewise.
8443 * exp_attr.adb: Change copyright header to refer to version
8444 3 of the GNU General Public License and to point readers at the
8445 COPYING3 file and the FSF's license web page.
8446 * sem.adb: Likewise.
8447 * sem_attr.ads: Likewise.
8448 * freeze.adb: Likewise.
8449 * freeze.ads: Likewise.
8450 * errout.ads: Likewise.
8451 * erroutc.adb: Likewise.
8452 * exp_ch11.ads: Likewise.
8453
8454 2009-04-09 Jakub Jelinek <jakub@redhat.com>
8455
8456 * config-lang.in: Change copyright header to refer to version
8457 3 of the GNU General Public License and to point readers at the
8458 COPYING3 file and the FSF's license web page.
8459 * gcc-interface/trans.c: Likewise.
8460 * gnathtml.pl: Likewise.
8461 * gcc-interface/ada.h: Likewise. Remove runtime exception.
8462 * gcc-interface/gigi.h: Likewise.
8463 * gcc-interface/misc.c: Likewise.
8464 * gcc-interface/targtyps.c: Likewise.
8465
8466 2009-04-09 Nicolas Setton <setton@adacore.com>
8467
8468 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
8469
8470 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
8471 struct_timeval.
8472
8473 2009-04-09 Bob Duff <duff@adacore.com>
8474
8475 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
8476 internally-generated nodes related to select statements to avoid
8477 confusing the debugger.
8478
8479 2009-04-09 Pascal Obry <obry@adacore.com>
8480
8481 * make.adb: Ensure that all linker arguments are duplicated.
8482
8483 2009-04-09 Robert Dewar <dewar@adacore.com>
8484
8485 * sem_ch5.adb: Minor reformatting
8486
8487 2009-04-09 Vincent Celier <celier@adacore.com>
8488
8489 * vms_data.ads:
8490 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
8491 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
8492 New qualifier /LXDEBUG=nnn for -gnatDnnn
8493 For H820-010
8494
8495 * gnat_ugn.texi:
8496 Update documentation for VMS qualifiers equivalent to -gnatGnn and
8497 -gnatDnn
8498
8499 2009-04-09 Nicolas Setton <setton@adacore.com>
8500
8501 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
8502 to match layout of siginfo_t in sys/signal.h.
8503
8504 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
8505
8506 2009-04-09 Thomas Quinot <quinot@adacore.com>
8507
8508 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
8509
8510 2009-04-09 Nicolas Setton <setton@adacore.com>
8511
8512 * s-oscons-tmplt.c: Allow long lines in the generated spec.
8513 Add generation of Darwin-specific constants needed when binding to the
8514 pthread library.
8515
8516 2009-04-09 Robert Dewar <dewar@adacore.com>
8517
8518 * checks.adb:
8519 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
8520 when no invalid values exist, Avoid duplicate read of atomic variable.
8521
8522 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
8523 (Standard_Unsigned): Set Is_Known_Valid
8524
8525 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
8526 subtype declaration if no constraint.
8527 (Set_Modular_Size): Set Is_Known_Valid if appropriate
8528 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
8529
8530 2009-04-09 Robert Dewar <dewar@adacore.com>
8531
8532 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
8533 switch.ads: for numeric switches, an optional equal sign is always
8534 allowed.
8535
8536 2009-04-09 Vincent Celier <celier@adacore.com>
8537
8538 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
8539 the case of file names is not significant.
8540
8541 2009-04-09 Vincent Celier <celier@adacore.com>
8542
8543 * errout.adb: Remove dependency on package Style
8544
8545 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
8546 moved to Stylesw.
8547
8548 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
8549 Styleg.
8550
8551 * errutil.adb, par.adb: Import Stylesw
8552
8553 2009-04-09 Arnaud Charlet <charlet@adacore.com>
8554
8555 * opt.ads: Fix typos.
8556
8557 2009-04-09 Robert Dewar <dewar@adacore.com>
8558
8559 * einfo.adb: Minor reformatting
8560
8561 2009-04-09 Robert Dewar <dewar@adacore.com>
8562
8563 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
8564 units.
8565
8566 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
8567
8568 2009-04-09 Robert Dewar <dewar@adacore.com>
8569
8570 * g-comver.adb: Minor reformatting.
8571
8572 2009-04-09 Thomas Quinot <quinot@adacore.com>
8573
8574 * lib-load.ads (Load_Unit): Update documentation.
8575
8576 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8577
8578 * lib-load.adb (Load_Unit): When loading the parent of a child unit
8579 named in a with_clause, retain the with_clause to preserve a
8580 limited_with indication.
8581
8582 2009-04-09 Robert Dewar <dewar@adacore.com>
8583
8584 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
8585 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
8586 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
8587 possible to replace an OR of two separate tests.
8588
8589 2009-04-09 Robert Dewar <dewar@adacore.com>
8590
8591 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
8592 Maximum_Messages.
8593
8594 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
8595 warning status as well.
8596
8597 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
8598
8599 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
8600 Maximum_Messages.
8601
8602 * bindusg.adb, usage.adb: Update line for -gnatm switch
8603
8604 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
8605 -mnn binder switch.
8606
8607 2009-04-09 Robert Dewar <dewar@adacore.com>
8608
8609 * sem_ch10.adb: Minor reformatting.
8610
8611 2009-04-09 Bob Duff <duff@adacore.com>
8612
8613 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
8614 Set Sloc of generated nodes for calls to Undefer_Aborts and
8615 Save_Occurrence to No_Location, so the debugger ignores them and
8616 therefore does not jump back and forth when single stepping.
8617
8618 2009-04-09 Robert Dewar <dewar@adacore.com>
8619
8620 * switch-b.adb: Minor reformatting.
8621
8622 2009-04-09 Robert Dewar <dewar@adacore.com>
8623
8624 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
8625 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
8626 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
8627 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
8628 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
8629 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
8630 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
8631 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
8632 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
8633 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
8634 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
8635
8636 2009-04-09 Robert Dewar <dewar@adacore.com>
8637
8638 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
8639
8640 * atree.h: Add Elist26
8641
8642 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
8643 backends.
8644
8645 2009-04-09 Javier Miranda <miranda@adacore.com>
8646
8647 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
8648 retrieve from the Dispatch_Table_Wrappers list the external name.
8649 Addition of documentation.
8650 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
8651 used to export secondary dispatch tables (in the previous version of
8652 the frontend only primary dispatch tables were exported). Addition of
8653 documentation.
8654 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
8655 dispatch table of a given tagged type.
8656 (Make_Tags): Modified to import secondary dispatch tables.
8657
8658 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
8659 (Constant_Redeclaration): Code cleanup.
8660
8661 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
8662 Dispatch_Table_Wrappers. Update documentation.
8663
8664 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
8665 Renamed to Dispatch_Table_Wrappers.
8666
8667 * sem_util.adb (Collect_Interface_Components): Improve handling of
8668 private types.
8669
8670 * atree.ads (Elist26, Set_Elist26): New subprograms
8671
8672 * atree.adb (Elist26, Set_Elist26): New subprograms
8673
8674 2009-04-09 Javier Miranda <miranda@adacore.com>
8675
8676 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
8677 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
8678 tagged types.
8679
8680 2009-04-09 Robert Dewar <dewar@adacore.com>
8681
8682 * s-direio.adb: Minor reformatting
8683
8684 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
8685
8686 2009-04-09 Robert Dewar <dewar@adacore.com>
8687
8688 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
8689
8690 2009-04-09 Pascal Obry <obry@adacore.com>
8691
8692 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
8693 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
8694 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
8695 a-filico.ads: Add some missing overriding keywords.
8696
8697 2009-04-09 Pascal Obry <obry@adacore.com>
8698
8699 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
8700 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
8701 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
8702 reformatting.
8703
8704 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8705
8706 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
8707 missing overriding indicator if the new declaration is not seen as
8708 primitive.
8709
8710 2009-04-09 Thomas Quinot <quinot@adacore.com>
8711
8712 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
8713 overflows in computation of bounds.
8714
8715 2009-04-09 Pascal Obry <obry@adacore.com>
8716
8717 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
8718 typos in comment.
8719
8720 2009-04-09 Robert Dewar <dewar@adacore.com>
8721
8722 * sem_attr.adb (Check_Stream_Attribute): Check violation of
8723 restriction No_Streams
8724
8725 * gnat_rm.texi: Clarify No_Streams restriction
8726
8727 * g-socket.adb: Minor reformatting.
8728
8729 2009-04-09 Thomas Quinot <quinot@adacore.com>
8730
8731 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
8732
8733 2009-04-09 Geert Bosch <bosch@adacore.com>
8734
8735 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
8736 (Set_Result): Likewise.
8737 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
8738 conversion, as required by RM 4.6(31).
8739
8740 2009-04-08 Robert Dewar <dewar@adacore.com>
8741
8742 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
8743 suppressed.
8744
8745 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
8746 resolution steps.
8747
8748 2009-04-08 Robert Dewar <dewar@adacore.com>
8749
8750 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
8751 No_Local_Allocators restriction preventing local instantiation.
8752
8753 2009-04-08 Thomas Quinot <quinot@adacore.com>
8754
8755 * sem_eval.adb: Minor comment fix
8756
8757 2009-04-08 Thomas Quinot <quinot@adacore.com>
8758
8759 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
8760 New limited controlled type used to automate the initialization and
8761 finalization of the sockets implementation.
8762 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
8763
8764 2009-04-08 Vincent Celier <celier@adacore.com>
8765
8766 * prj-attr.adb: New read-only project-level attribute Project_Dir
8767
8768 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
8769 read-only attribute of the same name.
8770 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
8771 (Recursive_Process): Ditto
8772
8773 * snames.adb: Add new standard name Project_Dir
8774
8775 * snames.ads: Add new standard name Project_Dir
8776
8777 2009-04-08 Thomas Quinot <quinot@adacore.com>
8778
8779 * checks.adb: Minor reformatting
8780
8781 2009-04-08 Vincent Celier <celier@adacore.com>
8782
8783 * vms_data.ads: Add documentation for new style keyword
8784 OVERRIDING_INDICATORS
8785
8786 2009-04-08 Robert Dewar <dewar@adacore.com>
8787
8788 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
8789 spec is in the current unit.
8790
8791 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8792
8793 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
8794 presence of entity.
8795
8796 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
8797
8798 2009-04-08 Vincent Celier <celier@adacore.com>
8799
8800 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
8801
8802 2009-04-08 Thomas Quinot <quinot@adacore.com>
8803
8804 * checks.ads: Minor reformatting
8805
8806 2009-04-08 Robert Dewar <dewar@adacore.com>
8807
8808 * gnat_rm.texi: Update documentation of pragma Obsolescent
8809
8810 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
8811 be omitted, and allow Entity parameter to be omitted.
8812
8813 2009-04-08 Thomas Quinot <quinot@adacore.com>
8814
8815 * exp_util.adb: Minor comment fix
8816
8817 2009-04-08 Robert Dewar <dewar@adacore.com>
8818
8819 * g-socket.ads: Fix bad syntax in pragma Obsolescent
8820
8821 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
8822 argument with no identifier following one that has an identifier. Was
8823 missed in some cases.
8824
8825 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
8826 identifier.
8827 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
8828
8829 * snames.adb: Add Name_Policy
8830
8831 * snames.ads: Add Name_Policy
8832
8833 2009-04-08 Robert Dewar <dewar@adacore.com>
8834
8835 * gnat_rm.texi: Minor reformatting
8836
8837 * par-ch2.adb: Minor reformatting
8838
8839 2009-04-08 Robert Dewar <dewar@adacore.com>
8840
8841 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
8842
8843 2009-04-08 Robert Dewar <dewar@adacore.com>
8844
8845 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
8846 properly in the presence of Remote_Types or Remote_Call_Interface.
8847
8848 * sem_util.adb: Add comment.
8849
8850 2009-04-08 Robert Dewar <dewar@adacore.com>
8851
8852 * ug_words: Add /ASSUME_VALID for -gnatB
8853
8854 * vms_data.ads: Add /ASSUME_VALID for -gnatB
8855
8856 * sem_cat.adb: Add clarifying commment
8857
8858 * a-direio.ads (Bytes): Make sure value is non-zero
8859
8860 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8861
8862 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
8863 that does not come from source, check for a rewritten function call in
8864 prefixed notation before other forms of rewriting.
8865
8866 2009-04-08 Robert Dewar <dewar@adacore.com>
8867
8868 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
8869 these are now obsolescent units used only for bootrapping with an
8870 older compiler.
8871
8872 2009-04-08 Robert Dewar <dewar@adacore.com>
8873
8874 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
8875
8876 * sem_ch3.adb: Minor comment updates
8877
8878 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8879
8880 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
8881 that come from source.
8882
8883 2009-04-08 Tristan Gingold <gingold@adacore.com>
8884
8885 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
8886 * gcc-interface/decl.c (prepend_attributes): New case
8887 Pragma_Thread_Local_Storage.
8888 * gcc-interface/utils.c (process_attributes): New case
8889 ATTR_THREAD_LOCAL_STORAGE.
8890
8891 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8892
8893 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
8894 by the back-end if it contains a call to a subprogram without a
8895 previous spec that is declared in the same unit.
8896
8897 * errout.ads: Update comments on uses of dirs
8898
8899 2009-04-08 Robert Dewar <dewar@adacore.com>
8900
8901 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
8902
8903 2009-04-08 Tristan Gingold <gingold@adacore.com>
8904
8905 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
8906 variables.
8907 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
8908
8909 2009-04-08 Vincent Celier <celier@adacore.com>
8910
8911 * prj-nmsc.adb:
8912 (Add_Source): Add the mapping of the unit name to source file name in
8913 the Unit_Sources_HT hash table, if the unit name is not null.
8914
8915 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
8916
8917 * prj.ads (Unit_Sources_Htable): New hash table instantiation
8918 (Project_Tree_Data): New component Unit_Sources_HT
8919
8920 2009-04-08 Thomas Quinot <quinot@adacore.com>
8921
8922 * sem_ch8.adb: Minor reformatting.
8923 Minor code reorganization.
8924
8925 2009-04-08 Robert Dewar <dewar@adacore.com>
8926
8927 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
8928 snames.ads, freeze.adb, par-prag.adb: Add implementation of
8929 pragma Thread_Local_Storage, setting new flag
8930 Has_Pragma_Thread_Local_Storage in corresponding entities.
8931
8932 2009-04-08 Emmanuel Briot <briot@adacore.com>
8933
8934 * prj.ads: Update comment on switches file
8935
8936 * prj-nmsc.adb: Code clean up. Use renaming clauses.
8937
8938 2009-04-08 Robert Dewar <dewar@adacore.com>
8939
8940 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
8941
8942 2009-04-08 Thomas Quinot <quinot@adacore.com>
8943
8944 * ali-util.adb: Minor comment fix
8945
8946 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8947
8948 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
8949 appears in a context clause, and the enclosing package is mentioned in
8950 a limited_with_clause.
8951 (Use_One_Type): Reject clause if type is still incomplete.
8952
8953 2009-04-08 Emmanuel Briot <briot@adacore.com>
8954
8955 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
8956 avoid copies of Source_Data variables when possible, since these
8957 involve calls to memcpy() which are done too many times.
8958
8959 2009-04-08 Robert Dewar <dewar@adacore.com>
8960
8961 * exp_ch4.adb (Expand_Concatenate): Clean up code
8962
8963 2009-04-07 Thomas Quinot <quinot@adacore.com>
8964
8965 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
8966 type for the case of concatenating a constrained array indexed by an
8967 enumeration type.
8968
8969 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8970
8971 * sem_ch6.adb (Check_Conformance): when checking conformance of an
8972 operation that overrides an abstract operation inherited from an
8973 interface, return False if only one of the controlling formals is an
8974 access parameter.
8975
8976 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8977
8978 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
8979 mandated by AI05-105.
8980
8981 2009-04-07 Vincent Celier <celier@adacore.com>
8982
8983 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
8984
8985 2009-04-07 Thomas Quinot <quinot@adacore.com>
8986
8987 * usage.adb: Minor fix in usage message.
8988
8989 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
8990 match declaration; the correct subtype is Node_Id, not Entity_Id,
8991 because the expected node kind is an identifier, not a defining
8992 identifier.
8993
8994 * switch-c.adb: Minor reformatting.
8995
8996 * uintp.adb: Minor reformatting.
8997
8998 2009-04-07 Robert Dewar <dewar@adacore.com>
8999
9000 * exp_ch13.adb: Minor reformatting
9001
9002 2009-04-07 Robert Dewar <dewar@adacore.com>
9003
9004 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
9005 against missing parent.
9006
9007 2009-04-07 Thomas Quinot <quinot@adacore.com>
9008
9009 * xoscons.adb: Minor reformatting
9010
9011 2009-04-07 Robert Dewar <dewar@adacore.com>
9012
9013 * rtsfind.ads: Remove obsolete string concatenation entries
9014
9015 2009-04-07 Robert Dewar <dewar@adacore.com>
9016
9017 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
9018
9019 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9020
9021 * sem_ch10.adb (Check_Body_Required): Handle properly imported
9022 subprograms.
9023
9024 2009-04-07 Gary Dismukes <dismukes@adacore.com>
9025
9026 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
9027 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
9028 is of a scalar or string type then suppress the setting of the
9029 expression to Empty.
9030
9031 * freeze.adb (Warn_Overlay): Also emit the warnings about default
9032 initialization for the cases of scalar and string objects when
9033 Init_Or_Norm_Scalars is True.
9034
9035 2009-04-07 Bob Duff <duff@adacore.com>
9036
9037 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
9038
9039 2009-04-07 Bob Duff <duff@adacore.com>
9040
9041 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
9042 Form parameter of Text_Translation=No allows binary mode for Text_IO
9043 files.
9044
9045 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
9046
9047 2009-04-07 Javier Miranda <miranda@adacore.com>
9048
9049 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
9050 processing the bounds for bit packed arrays or VM target machines.
9051
9052 2009-04-07 Thomas Quinot <quinot@adacore.com>
9053
9054 * g-sothco.ads (Int_Access): Remove extraneous access type (use
9055 anonymous access instead).
9056 (Get_Socket_From_Set): Fix incorrectly reverted formals
9057 Last and Socket to match the underlying C routine.
9058
9059 * g-socket.adb, g-socket.ads
9060 (Get): Use named parameter associations instead of positional ones in
9061 call go Get_Socket_From_Set, since this routine has two formals of the
9062 same type.
9063 (Image): New procedure.
9064
9065 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9066 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
9067 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
9068 for type of Arg formal.
9069
9070 * sem_warn.adb: Minor reformatting
9071
9072 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9073
9074 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
9075 over record components.
9076
9077 2009-04-07 Nicolas Roche <roche@adacore.com>
9078
9079 * gsocket.h:
9080 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
9081 has disappeared between VxWorks 6.4 and VxWorks 6.5
9082 In RTP mode use time.h instead of times.h
9083
9084 2009-04-07 Robert Dewar <dewar@adacore.com>
9085
9086 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
9087
9088 2009-04-07 Kevin Pouget <pouget@adacore.com>
9089
9090 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
9091 expanded code for constrained types.
9092
9093 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9094
9095 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
9096 AI05-105: in an object renaming declaration, anonymousness is a name
9097 resolution rule.
9098
9099 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
9100
9101 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9102
9103 * g-comlin.adb (Expansion): Fix old regression: also return directory
9104 names when matching.
9105
9106 2009-04-07 Robert Dewar <dewar@adacore.com>
9107
9108 * exp_ch4.adb:
9109 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
9110 (Expand_Concatenate): New name for Expand_Concatenate_String which has
9111 been rewritten to handle all types.
9112 (Expand_Concatenate_Other): Remove
9113
9114 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9115
9116 * lib-xref.adb (Generate_Reference): A default subprogram in an
9117 instance appears within the tree for the instance, but generates an
9118 implicit reference in the ALI.
9119
9120 2009-04-07 Javier Miranda <miranda@adacore.com>
9121
9122 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
9123 derived type that has discriminants, propagate the list of interfaces
9124 to the corresponding new base type. In addition, propagate also
9125 attribute Limited_Present (found working in this patch).
9126
9127 2009-04-07 Robert Dewar <dewar@adacore.com>
9128
9129 * exp_ch4.adb: Rewrite concatenation expansion.
9130
9131 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9132
9133 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
9134 relevant to packages.
9135
9136 2009-04-07 Robert Dewar <dewar@adacore.com>
9137
9138 * sem_attr.adb: Minor reformatting
9139
9140 * sem_ch6.adb: Minor reformatting
9141
9142 2009-04-07 Tristan Gingold <gingold@adacore.com>
9143
9144 * socket.c: Add more protections against S_resolvLib_ macros.
9145
9146 2009-04-07 Thomas Quinot <quinot@adacore.com>
9147
9148 * sem_attr.adb: Minor reformatting
9149
9150 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9151
9152 * sem_ch6.adb (New_Overloaded_Entity): New predicate
9153 Is_Overriding_Alias to handle properly types that inherit two homonym
9154 operations that have distinct dispatch table entries.
9155
9156 2009-04-07 Emmanuel Briot <briot@adacore.com>
9157
9158 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
9159 looking for the end of a parenthesis group
9160
9161 2009-04-07 Tristan Gingold <gingold@adacore.com>
9162
9163 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
9164
9165 * socket.c Don't use resolvLib_ macros if not defined.
9166
9167 2009-04-07 Robert Dewar <dewar@adacore.com>
9168
9169 * g-socket.adb: Minor reformatting.
9170
9171 * g-socthi-mingw.adb: Minor reformatting
9172
9173 * g-sothco.ads: Minor reformatting
9174
9175 * exp_ch4.adb:
9176 (Expand_Concatenate_String): Complete rewrite to generate efficient code
9177 inline instead of relying on external library routines.
9178
9179 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
9180 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
9181 obsolescent
9182
9183 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9184
9185 * sem_attr.adb:
9186 (Eval_Attribute): for attributes of array objects that are not strings,
9187 attributes are not static if nominal subtype of object is unconstrained.
9188
9189 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9190
9191 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
9192 operations for a type T in an instance do not override each other,
9193 when T is derived from a formal private type, the corresponding
9194 operations inherited by a type derived from T outside
9195 of the instance do not override each other either.
9196
9197 2009-04-07 Robert Dewar <dewar@adacore.com>
9198
9199 (Osint.Fail): Change calling sequence to have one string arg
9200 (Make.Make_Failed): Same change
9201 All callers are adjusted to use concatenation
9202
9203 2009-04-07 Robert Dewar <dewar@adacore.com>
9204
9205 * exp_ch4.adb: Fix documentation typo
9206
9207 2009-04-07 Robert Dewar <dewar@adacore.com>
9208
9209 * tbuild.ads: Minor reformatting
9210
9211 2009-04-07 Javier Miranda <miranda@adacore.com>
9212
9213 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
9214 when compiling under ZFP runtime.
9215
9216 2009-04-07 Robert Dewar <dewar@adacore.com>
9217
9218 * g-comlin.adb: Minor reformatting
9219
9220 2009-04-07 Thomas Quinot <quinot@adacore.com>
9221
9222 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9223 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
9224 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
9225 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
9226
9227 2009-04-07 Robert Dewar <dewar@adacore.com>
9228
9229 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
9230
9231 * opt.ads (Sprint_Line_Limit): New parameter
9232
9233 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
9234
9235 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
9236
9237 * usage.adb: Output information for -gnatGnn -gnatDnn
9238
9239 2009-04-07 Robert Dewar <dewar@adacore.com>
9240
9241 * make.adb: Minor reformatting
9242
9243 2009-04-07 Robert Dewar <dewar@adacore.com>
9244
9245 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
9246
9247 2009-04-07 Robert Dewar <dewar@adacore.com>
9248
9249 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
9250
9251 2009-04-07 Robert Dewar <dewar@adacore.com>
9252
9253 * checks.adb:
9254 Remove Assume_Valid parameter from In_Subrange_Of calls
9255
9256 * sem_eval.adb:
9257 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9258 (Is_In_Range): Remove incorrect use of Assume_Valid
9259 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
9260
9261 * sem_eval.ads:
9262 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9263 (Is_In_Range): Documentation cleanup
9264 (Is_Out_Of_Range): Documentation cleanup
9265
9266 * gnat_rm.texi:
9267 Add documentation for Assume_No_Invalid_Values pragma
9268
9269 * sem_ch12.adb: Minor reformatting
9270
9271 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
9272
9273 * sem_prag.adb: Improve error message.
9274
9275 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
9276 LF/CR no longer recognized as line terminator
9277
9278 * switch.ads: Minor documentation improvement
9279
9280 * vms_data.ads: Minor reformatting
9281
9282 2009-04-07 Robert Dewar <dewar@adacore.com>
9283
9284 * checks.adb (Determine_Range): Add Assume_Valid parameter
9285
9286 * checks.ads (Determine_Range): Add Assume_Valid parameter
9287
9288 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
9289 Is_Null_Loop to suppress warnings in a loop body.
9290
9291 * exp_ch4.adb:
9292 (Rewrite_Comparison): Major rewrite to accomodate invalid values
9293
9294 * exp_ch5.adb:
9295 (Expand_N_Loop_Statement): Delete loop known not to execute
9296
9297 * opt.ads:
9298 (Assume_No_Invalid_Values): Now set to False, and as documented, this
9299 fully enables the proper handling of invalid values.
9300
9301 * sem_attr.adb:
9302 New calling sequence for Is_In_Range
9303
9304 * sem_ch5.adb:
9305 (Analyze_Iteration_Scheme): Accomodate possible invalid values
9306 in determining if a loop range is null.
9307
9308 * sem_eval.adb:
9309 (Is_In_Range): Add Assume_Valid parameter
9310 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9311 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
9312 also to do more accurate and complete range analysis, catching more
9313 cases.
9314
9315 * sem_eval.ads:
9316 (Is_In_Range): Add Assume_Valid parameter
9317 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9318
9319 * sem_util.adb:
9320 New calling sequence for Is_In_Range
9321
9322 * sinfo.adb:
9323 (Suppress_Loop_Warnings): New flag
9324
9325 * sinfo.ads:
9326 (Is_Null_Loop): Update documentation
9327 (Suppress_Loop_Warnings): New flag
9328
9329 * gnat_ugn.texi: Document -gnatB switch
9330
9331 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9332
9333 * gnatvsn.ads: Bump version number.
9334
9335 2009-04-07 Thomas Quinot <quinot@adacore.com>
9336
9337 * exp_ch3.adb: Minor rewording (comments)
9338
9339 2009-04-07 Robert Dewar <dewar@adacore.com>
9340
9341 * exp_disp.adb: Minor reformatting
9342
9343 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9344
9345 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
9346 underlying type.
9347 * gcc-interface/trans.c (lvalue_required_p): Likewise.
9348
9349 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9350
9351 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
9352 Do not convert the result. Remove obsolete comment.
9353
9354 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9355
9356 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
9357 DECL_CONTEXT.
9358 (Subprogram_Body_to_gnu): Fix pasto.
9359
9360 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9361
9362 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
9363 (void_type_decl_node): Remove.
9364 (init_gigi_decls): Likewise.
9365 (gnat_install_builtins): Declare.
9366 (record_builtin_type): Likewise.
9367 (create_type_stub_decl): Likewise.
9368 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
9369 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
9370 artificial.
9371 <E_Array_Subtype>: Use the index types, not only their name, in the
9372 record giving the names of the bounds, if any.
9373 For a packed array type, make it artificial only if the base type
9374 was artificial as well. Remove redundant statement.
9375 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
9376 dummy types.
9377 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
9378 (rest_of_type_decl_compilation_no_defer): Likewise.
9379 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
9380 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
9381 and use create_type_stub_decl to build it.
9382 (gnat_pushdecl): Rewrite condition.
9383 (gnat_install_builtins): Remove bogus declaration.
9384 (record_builtin_type): New function.
9385 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
9386 of types.
9387 (create_type_stub_decl): New function.
9388 (create_type_decl): Assert that the type is not dummy. If the type
9389 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
9390 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
9391 (build_vms_descriptor): Likewise.
9392 (init_gigi_decls): Delete and move bulk of code to...
9393 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
9394 (emit_range_check): Add gnat_node parameter.
9395 (emit_index_check): Likewise.
9396 (emit_check): Likewise.
9397 (build_unary_op_trapv): Likewise.
9398 (build_binary_op_trapv): Likewise.
9399 (convert_with_check): Likewise.
9400 (Attribute_to_gnu): Adjust calls for above changes.
9401 (call_to_gnu): Likewise.
9402 (gnat_to_gnu): Likewise.
9403 (assoc_to_constructor): Likewise.
9404 (pos_to_constructor): Likewise.
9405 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
9406 (process_type): Do not create TYPE_DECL for dummy types.
9407
9408 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9409
9410 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
9411 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
9412 * gcc-interface/utils.c: Fix comments.
9413
9414 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9415
9416 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
9417 move around.
9418 (gnat_to_gnu_type): Move around.
9419 (get_unpadded_type): Likewise.
9420 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
9421 Tidy comments.
9422
9423 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9424
9425 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
9426 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
9427 (call_to_gnu): Invoke it instead of manually checking.
9428
9429 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
9430
9431 * gcc-interface/utils.c (finish_record_type): Force structural equality
9432 checks if the record type is discriminated.
9433
9434 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
9435
9436 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
9437 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
9438 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
9439 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
9440 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
9441 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
9442 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
9443
9444 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
9445
9446 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
9447 of TREE_CONSTANT_OVERFLOW.
9448
9449 2009-03-30 Joseph Myers <joseph@codesourcery.com>
9450
9451 PR rtl-optimization/323
9452 * gcc-interface/misc.c (gnat_post_options): Set
9453 flag_excess_precision_cmdline. Give an error for
9454 -fexcess-precision=standard for processors where the option is
9455 significant.
9456
9457 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9458
9459 PR c/39323
9460 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
9461 on bit_align.
9462
9463 2009-03-11 Olivier Hainque <hainque@adacore.com>
9464
9465 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
9466 checks processing, remove unintended TREE_TYPE walk on index type.
9467
9468 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
9469
9470 PR ada/39264
9471 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
9472 call make_packable_type on fat pointer types.
9473 <E_Array_Subtype>: Likewise.
9474 <E_Record_Subtype>: Call make_packable_type on all record types
9475 except for fat pointer types.
9476 (make_packable_type): Likewise.
9477 (gnat_to_gnu_field): Likewise.
9478
9479 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
9480
9481 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
9482 EH_MECHANISM change made on 2007-12-06.
9483
9484 2009-02-26 Andreas Schwab <schwab@suse.de>
9485
9486 PR ada/39172
9487 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
9488 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
9489 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
9490 (AWK): Substitute.
9491 (target_cpu_default): Substitute.
9492
9493 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9494
9495 PR ada/39221
9496 * a-teioed.adb (Expand): Fix Result overflow.
9497
9498 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9499
9500 * gcc-interface/Makefile.in: Fix multilib handling for
9501 sparc64-linux.
9502
9503 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9504
9505 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
9506
9507 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
9508
9509 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
9510
9511 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
9512
9513 * gcc-interface/deftarg.c: Remove.
9514
9515 2009-02-10 Olivier Hainque <hainque@adacore.com>
9516 Eric Botcazou <ebotcazou@adacore.com>
9517
9518 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
9519 (copy_alias_set): Rename into...
9520 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
9521 underlying array of unconstrained arrays for the new type as well.
9522 If the old and new alias sets don't conflict, make one a subset of
9523 the other as per the OP parameter.
9524 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
9525 <E_Record_Type>: Do not copy the alias set for derived types.
9526 For all types, make the alias set of derived types a superset of
9527 that of their parent type.
9528 (make_aligning_type): Adjust calls to copy_alias_set.
9529 (make_packable_type): Likewise.
9530 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
9531 Check for alias set conflict instead of strict equality to issue the
9532 warning.
9533
9534 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
9535
9536 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9537 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
9538 (copy_alias_set): Assert that arrays have the same aliasing settings.
9539 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
9540
9541 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
9542
9543 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9544 Set TYPE_NONALIASED_COMPONENT on the array type.
9545
9546 2009-01-31 Laurent GUERBY <laurent@guerby.net>
9547
9548 * gcc-interface/Makefile.in: Fix mipsel linux handling.
9549
9550 2009-01-16 Jakub Jelinek <jakub@redhat.com>
9551
9552 * gcc-interface/Makefile.in: Fix multilib handling for
9553 powerpc64-linux.
9554
9555 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
9556
9557 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
9558 only useless conversions around renamed objects.
9559
9560 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
9561
9562 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
9563 the _Tag field before any discriminants in the field list.
9564 (components_to_record): Remove obsolete comment.
9565
9566
9567 \f
9568 Copyright (C) 2009 Free Software Foundation, Inc.
9569
9570 Copying and distribution of this file, with or without modification,
9571 are permitted in any medium without royalty provided the copyright
9572 notice and this notice are preserved.