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