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