]> gcc.gnu.org Git - gcc.git/blame - gcc/ada/ChangeLog
re PR debug/7055 ([alpha osf4] G++ 3.1 Produced bad debugging entries if compiled...
[gcc.git] / gcc / ada / ChangeLog
CommitLineData
6f9f0ce3
JJ
12008-12-09 Jakub Jelinek <jakub@redhat.com>
2
3 PR ada/38450
4 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
5 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
6 Likewise.
7
9ff4a9da 82008-12-05 Sebastian Pop <sebastian.pop@amd.com>
250d2fb5
JJ
9
10 PR bootstrap/38262
11 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
12
f9805f52
EB
132008-11-29 Eric Botcazou <ebotcazou@adacore.com>
14
15 PR ada/30827
16 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
17
2ddc34ba
EB
182008-11-27 Eric Botcazou <ebotcazou@adacore.com>
19
20 * gcc-interface/decl.c: Fix various nits.
21
58612565
EB
222008-11-20 Eric Botcazou <ebotcazou@adacore.com>
23
24 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
25
e66e5d9e
EB
262008-11-16 Eric Botcazou <ebotcazou@adacore.com>
27
28 PR ada/38127
d74b4b00
EB
29 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
30 special-case boolean types. Propagate the name.
e66e5d9e
EB
31 * gcc-interface/targtyps.c: Tweak comment.
32
7348f18c
GB
332008-11-15 Geert Bosch <bosch@adacore.com>
34
35 * gcc-interface/trans.c (emit_check): Put back a final save_expr
36 to prevent exponential expansion during gimplification.
37
708bceb7
EB
382008-11-15 Eric Botcazou <ebotcazou@adacore.com>
39
40 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
41
a5b8aacd
EB
422008-11-15 Eric Botcazou <ebotcazou@adacore.com>
43
44 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
45 initialized to a static constant to be statically allocated even if
46 they are of a padding type, provided the original type also has
47 constant size.
48
4364e851
LG
492008-11-15 Laurent Guerby <laurent@guerby.net>
50
51 PR ada/37993
52 * gcc-interface/Makefile.in: Add multilib handling for x86_64
53 on darwin.
54 * system-darwin-x86_64.ads: New file.
55
255e5b04
OH
562008-11-13 Olivier Hainque <hainque@adacore.com>
57
58 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
59 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
60 are explicit to the middle-end. Tidy.
61
82d3b03a
EB
622008-11-09 Eric Botcazou <ebotcazou@adacore.com>
63
64 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
65 (MINUS_NOMOD_EXPR): Likewise.
66 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
67 unreachable.
68 <PLUS_NOMOD_EXPR>: New case.
69 <MINUS_NOMOD_EXPR>: Likewise.
70 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
71 assignment statement instead of using an increment operator.
72
f5026442
RO
732008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
74
75 * system-irix-n64.ads: New file.
76 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
77 multilibs.
78
792008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
80
81 PR ada/37681
82 * system-solaris-x86_64.ads: New file.
83 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
84
7fee6a39
BZ
852008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
86 Eric Botcazou <ebotcazou@adacore.com>
87
88 PR ada/34289
89 * lib.ads: (Enable_Switch_Storing): Declare.
90 * lib.adb: (Enable_Switch_Storing): New procedure.
91 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
92 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
93 (Display): Never display -gnatea
94 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
95
9ed0e483
TQ
962008-11-07 Thomas Quinot <quinot@adacore.com>
97
98 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
99 for empty range in original base type, not converted result type.
100
58e94443
GB
1012008-11-07 Geert Bosch <bosch@adacore.com>
102
103 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
104 and result for call to __gnat_mulv64.
105
a7c43bbc
EB
1062008-11-07 Eric Botcazou <ebotcazou@adacore.com>
107
108 * gcc-interface/trans.c: Fix formatting nits.
109
2575024c
GB
1102008-11-07 Geert Bosch <bosch@adacore.com>
111
112 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
113 overflow check for constant result.
114
4ae39383
GB
1152008-11-07 Geert Bosch <bosch@adacore.com>
116
117 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
118 overflow check for addition/subtraction if neither operand is constant.
119
6818f0fc
EB
1202008-11-06 Eric Botcazou <ebotcazou@adacore.com>
121
122 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
123 files for the target-dependent part of the runtime.
124 (SPARC/Linux): Likewise.
125
8d3323de
EB
1262008-11-06 Eric Botcazou <ebotcazou@adacore.com>
127
128 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
129 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
130 purposes.
131
baf6e6a8
EB
1322008-11-06 Eric Botcazou <ebotcazou@adacore.com>
133
134 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
135 in GC memory.
136
8b659f79
EB
1372008-11-06 Eric Botcazou <ebotcazou@adacore.com>
138
139 PR ada/19419
140 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
141 Generate a call to memmove for an assignment between overlapping
142 array slices.
143
358ef7fb
AK
1442008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
145
146 PR target/37977
147 * gcc-interface/Makefile.in: Add multilib handling for
148 s390-linux and s390x-linux.
149
7134e605
JJ
1502008-10-24 Jakub Jelinek <jakub@redhat.com>
151
152 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
153 check-acats-subtargets and check-gnat-subtargets.
154 (check_acats_targets): New variable.
155 (check-acats-subtargets, check-acats%): New targets.
156 (check-acats): If -j is used and CHAPTERS is empty, run the testing
157 in multiple make goals, possibly parallel, and afterwards run
158 dg-extract-results.sh to merge the sum and log files.
159
82f7c45f
GB
1602008-10-17 Geert Bosch <bosch@adacore.com>
161
162 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
163 to use only a single check instead of three, and avoid unnecessary
164 COMPOUND_EXPR.
165 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
166 creating more opportunities for optimizations.
167
0adef32b
JJ
1682008-10-13 Jakub Jelinek <jakub@redhat.com>
169
170 PR middle-end/37601
171 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
172 NULL TYPE_DOMAIN.
173
9cf18af8
EB
1742008-10-07 Eric Botcazou <ebotcazou@adacore.com>
175
176 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
177 dealing with volatileness to after code dealing with renaming.
178
e84319a3
EB
1792008-10-06 Eric Botcazou <ebotcazou@adacore.com>
180
181 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
182 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
183
afcea859
EB
1842008-10-06 Eric Botcazou <ebotcazou@adacore.com>
185
186 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
187 (unchecked_convert): Use it to disable problematic folding with
188 VIEW_CONVERT_EXPR in the general case. Always disable it for the
189 special VIEW_CONVERT_EXPR built for integral types and cope with
190 its addressability issues by preserving the first conversion.
191
9e81dbc7
AS
1922008-10-01 Andreas Schwab <schwab@suse.de>
193
194 * system-linux-ppc64.ads: New file.
195 * gcc-interface/Makefile.in: Add multilib handling for
196 powerpc-linux.
197
bb3da4f2
EB
1982008-09-26 Eric Botcazou <ebotcazou@adacore.com>
199
200 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
201 to that of ptr_mode instead of word_mode.
202
8f5730b9
EB
2032008-09-26 Eric Botcazou <ebotcazou@adacore.com>
204
205 PR ada/5911
206 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
207
3ca37eb7
ST
2082008-09-25 Samuel Tardieu <sam@rfc1149.net>
209
210 PR ada/37641
211 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
212 instead of deprecated FILE_WRITE_PROPERTIES.
213
22868cbf
OH
2142008-09-22 Olivier Hainque <hainque@adacore.com>
215
216 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
217 are never assigned, volatile entities are not constant for code
218 generation purposes.
219
7193e639
LG
2202008-09-21 Laurent Guerby <laurent@guerby.net>
221
9e81dbc7 222 PR ada/5911
7193e639
LG
223 * gcc-interface/Makefile.in: Add multilib handling for x86_64
224 and sparc.
225 * system-linux-sparcv9.ads: New file.
9e81dbc7 226
7fda1596
EB
2272008-09-20 Eric Botcazou <ebotcazou@adacore.com>
228
229 * exp_dbug.ads: Document new convention for the XVZ variable.
230 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
231 debug info if necessary for the type padding the component type.
232 <E_Array_Subtype>: Likewise.
233 (maybe_pad_type): Emit the XVZ variable in units.
234 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
235 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
236 on statements generated to initialize the parameter attributes cache.
237 Set the source line of the end label of the body on the special return
238 statement built for a procedure with copy-in copy-out parameters.
239
d84b344a
EB
2402008-09-20 Eric Botcazou <ebotcazou@adacore.com>
241
242 PR ada/37585
243 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
244 inlined external functions if they contain a nested function not
245 declared inline.
246
4db26d6c
JH
2472008-09-18 Jan Hubicka <jh@suse.cz>
248
249 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
250 (end_subprog_body): Do not set DECL_INLINE.
251
03e74118
PR
2522008-09-17 Pascal Rigaux <pixel@mandriva.com>
253
254 PR ada/21327
255 * gnat_ugn.texi: Use proper format in direntry.
256
6a7a3f31
EB
2572008-09-15 Eric Botcazou <ebotcazou@adacore.com>
258
259 * gcc-interface/trans.c (gigi): Declare the name of the compilation
260 unit as the first global name.
261
f67894ed
JH
2622008-09-14 Jan Hubicka <jh@suse.cz>
263
6a7a3f31 264 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
f67894ed 265
16b05213
RW
2662008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
267
268 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
269 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
270 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
271 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
272 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
273 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
274 gcc-interface/gigi.h, gcc-interface/trans.c,
275 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
276 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
277 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
278 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
279 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
280 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
281 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
282 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
283 comments.
284 * gnathtml.pl: Fix typos.
285
1011d8a2
JS
2862008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
287
288 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
289 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
290 layer. RTEMS binds to OS provided adapter routines so there are
291 no modifications to s-osinte-rtems.adb.
292
e5c73177
AC
2932008-09-09 Arnaud Charlet <charlet@adacore.com>
294 Joel Sherrill <joel.sherrill@oarcorp.com>
295
296 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
297
298 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
299
300 * s-interr-hwint.adb: New file.
301
302 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
303 needed by s-interr-hwint.adb.
304
305 * s-osinte-vxworks-kernel.adb: New file.
306
56cc5928
JS
3072008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
308
309 * s-stchop-rtems.adb: Add file missed in early commit. Already
310 referenced in gcc-interface/Makefile.in.
311
21bacb7e
TQ
3122008-08-30 Thomas Quinot <quinot@adacore.com>
313
314 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
315 be built even without a separate libada directory.
316
5b2da948
AC
3172008-08-22 Arnaud Charlet <charlet@adacore.com>
318
319 * lib-xref.ads: Fix typo in subprogram reference definition.
320
3212008-08-22 Robert Dewar <dewar@adacore.com>
322
c9f1fdfe
RD
323 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
324 to avoid warning.
5b2da948 325
c9f1fdfe 326 * g-trasym.adb: Ditto
5b2da948
AC
327
328 * s-utf_32.adb (Get_Category): Fix obvious typo
329
330 * s-wwdcha.adb: Minor code reorganization
331 Remove dead code
332
4351c21b
AC
3332008-08-22 Robert Dewar <dewar@adacore.com>
334
335 * checks.adb (Determine_Range): Deal with values that might be invalid
336
e5c73177
AC
337 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
338 configuration switches.
4351c21b
AC
339
340 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
341
342 * sem_prag.adb: Implement pragma Assume_No_Default_Values
343
344 * snames.adb, snames.ads, snames.h:
345 Add entries for pragma Assume_No_Invalid_Values
346
347 * switch-c.adb: Add processing for -gnatB switch
348
349 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
350
3512008-08-22 Javier Miranda <miranda@adacore.com>
352
353 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
354 init procedure all the expanded code associated with the spec of
355 task types and protected types.
356
2743d81d
AC
3572008-08-22 Gary Dismukes <dismukes@adacore.com>
358
359 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
360 component expression copies rather than directly setting Etype and
361 Is_Static_Expression.
362
3632008-08-22 Gary Dismukes <dismukes@adacore.com>
364
365 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
366 private types to allow for types derived from a private type with
367 preelaborable initialization, but return False for a private extension
368 (unless it has the pragma).
369
3702008-08-22 Robert Dewar <dewar@adacore.com>
371
372 * opt.ads: Minor code reorganization (put entries in alpha order)
373
a5ad3248
AC
3742008-08-22 Pascal Obry <obry@adacore.com>
375
376 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
377 spawn.
378
6eca32ba
GB
3792008-08-22 Geert Bosch <bosch@adacore.com>
380
381 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
382 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
383
1c7717c3
AC
3842008-08-22 Doug Rupp <rupp@adacore.com>
385
386 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
387 __gnat_set_features.
388
389 * init.c
390 (__gnat_set_features): New function.
391 (__gnat_features_set): New tracking variable.
392 (__gl_no_malloc_64): New feature global variable
393
3942008-08-22 Ed Schonberg <schonberg@adacore.com>
395
396 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
397 use_type_clause in an instance.
398
3992008-08-22 Bob Duff <duff@adacore.com>
400
401 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
402
4032008-08-22 Robert Dewar <dewar@adacore.com>
404
405 * exp_ch6.adb: Minor reformatting
406
407 * exp_ch7.adb: Minor reformatting
408
409 * exp_ch7.ads: Put routines in proper alpha order
410
411 * exp_dist.adb: Minor reformatting
412
4132008-08-22 Vincent Celier <celier@adacore.com>
414
415 * prj.ads: Minor comment update
416
4172008-08-22 Robert Dewar <dewar@adacore.com>
418
419 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
420
4212008-08-22 Ed Schonberg <schonberg@adacore.com>
422
423 * exp_tss.adb:
424 (Base_Init_Proc): For a protected subtype, use the base type of the
425 corresponding record to locate the propoer initialization procedure.
426
4272008-08-22 Robert Dewar <dewar@adacore.com>
428
429 * checks.adb:
430 (In_Subrange_Of): New calling sequence
431 (Determine_Range): Prepare for new processing using base type
432
433 * exp_ch4.adb:
434 (Compile_Time_Compare): Use new calling sequence
435
436 * exp_ch5.adb:
437 (Compile_Time_Compare): Use new calling sequence
438
439 * sem_eval.adb:
440 (Compile_Time_Compare): New calling sequence allows dealing with
441 invalid values.
442 (In_Subrange_Of): Ditto
443
444 * sem_eval.ads:
445 (Compile_Time_Compare): New calling sequence allows dealing with
446 invalid values.
447 (In_Subrange_Of): Ditto
448
4492008-08-22 Pascal Obry <obry@adacore.com>
450
451 * adaint.c: Fix possible race condition on win32_wait().
452
048e5cef
BD
4532008-08-22 Bob Duff <duff@adacore.com>
454
455 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
456 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
457 exp_intr.adb, exp_ch3.adb: Rename:
458 Exp_Ch7.Controlled_Type => Needs_Finalization
459 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
460 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
461 Has_Controlled_Parts
462 (Has_Some_Controlled_Component): Fix bug in array case.
463
da2f5d14
AC
4642008-08-22 Robert Dewar <dewar@adacore.com>
465
466 * sem_ch8.adb: Minor reformatting
467
4682008-08-22 Kevin Pouget <pouget@adacore.com>
469
470 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
471 Shared_Var_Close procedure specifications from package spec to package body.
472
473 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
474 RE_Shared_Var_WOpen entries.
475
476 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
477 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
478
4792008-08-22 Eric Botcazou <ebotcazou@adacore.com>
480
481 * init.c: adjust EH support code on Alpha/Tru64 as well.
482
483 * raise-gcc.c: Add back a couple of comments.
484
4852008-08-22 Ed Schonberg <schonberg@adacore.com>
486
487 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
488 involved and the return type is class-wide, use the type of the expression
489 for the generated access type. Suppress useless discriminant checks on the
490 allocator.
491
4922008-08-22 Bob Duff <duff@adacore.com>
493
494 * exp_ch7.adb: Minor comment fix
495
496 * exp_ch6.ads: Minor comment fix
497
1dcdbfab
AC
4982008-08-22 Thomas Quinot <quinot@adacore.com>
499
500 * sem_ch8.adb: Minor reformatting
501 Minor code reorganization (introduce subprogram to factor duplicated
502 code).
503
5042008-08-22 Sergey Rybin <rybin@adacore.com>
505
506 * gnat_ugn.texi: Change the description of gnatcheck default rule
507 settings.
508
5092008-08-22 Eric Botcazou <ebotcazou@adacore.com>
510
511 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
512 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
513 do not adjust the PC anymore.
514 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
515 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
516
517 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
518 instead of _Unwind_GetIP.
519
5202008-08-22 Gary Dismukes <dismukes@adacore.com>
521
522 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
523 with a range is transformed into a positional aggregate, any copied
524 component literals should be marked Is_Static_Expression.
525
526 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
527 not being known at at compile time when Configurable_Run_Time_Mode is
528 true.
529
5302008-08-22 Robert Dewar <dewar@adacore.com>
531
532 * exp_attr.adb:
533 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
534 Read or Input attribute.
535
0d4aed99
AC
5362008-08-22 Ed Schonberg <schonberg@adacore.com>
537
538 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
539 clauses in related units is redundant, if one of the units is a package
540 instantiation, use its instance_spec to determine which unit is the
541 ancestor of the other.
542
5432008-08-22 Javier Miranda <miranda@adacore.com>
544
545 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
546 attributes add missing support to handle designated types that come
547 from the limited view.
548
549 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
550
5512008-08-22 Sergey Rybin <rybin@adacore.com>
552
553 * vms_data.ads: Add entry for new gnatcheck -mNNN option
554
555 * gnat_ugn.texi: Add description for gnatcheck option '-m'
556
5d41bf55
AC
5572008-08-22 Sergey Rybin <rybin@adacore.com>
558
559 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
560 acoording to the latest changes in the metric rule interface
561
5622008-08-22 Vincent Celier <celier@adacore.com>
563
564 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
565 (Check): Check if the file names registered in the ALI file for the
566 spec, the body and each of the subunits are the ones expected.
567
5682008-08-22 Robert Dewar <dewar@adacore.com>
569
570 * g-catiio.adb: Code cleanup.
571
9299a27c
AC
5722008-08-20 Vincent Celier <celier@adacore.com>
573
574 * make.adb (Gnatmake): Remove extra space in version line
575
576 * ali.adb:
577 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
578 as the name may already have been entered in the table by the Project
579 Manager.
580
5812008-08-20 Jose Ruiz <ruiz@adacore.com>
582
583 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
584 weak symbols so we use the version provided by MaRTE when available.
585
5862008-08-20 Emmanuel Briot <briot@adacore.com>
587
588 * g-catiio.ads, g-catiio.adb:
589 (Value): Avoid an unnecessary system call to Clock in most cases.
590 This call is only needed when only the time is provided in the string,
591 and ignored in all other cases. This is more efficient.
592
5932008-08-20 Eric Botcazou <ebotcazou@adacore.com>
594
595 * raise-gcc.c: Fix formatting nits.
596
5e5dc75a
RD
5972008-08-20 Robert Dewar <dewar@adacore.com>
598
599 * sem_ch13.adb:
600 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
601 non-existing component clause.
602
603 * exp_ch5.adb: Minor reformatting
604
605 * g-comlin.adb: Minor reformatting
606
607 * make.adb: Minor reformatting
608
609 * prj-proc.adb: Minor reformatting
610
611 * stylesw.ads: Minor reformatting
612
235f4375
AC
6132008-08-20 Vincent Celier <celier@adacore.com>
614
615 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
616 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
617 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
618 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
619 and a switch is not recognized by gnatmake.
620 (Gnatmake): Implement new scheme for gnatmake switches and global
621 compilation switches.
622 (Switches_Of): Try successively Switches (<file name>),
623 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
624
6252008-08-20 Ed Schonberg <schonberg@adacore.com>
626
627 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
628 implement style check that overriding operations are explicitly marked
629 at such.
630
631 * style.ads (Missing_Overriding): new procedure that provides interface
632 to previous one.
633
634 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
635 that the declaration or body of overriding operations carries an
636 explicit overriding indicator.
637
638 * sem_ch8.adb
639 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
640 explicit indicator should be present.
641
642 * sem_ch6.adb (Verify_Overriding_Indicator,
643 Check_Overriding_Indicator): If operation is overriding, check whether
644 declaration and/or body of subprogram should be present
645
7486d8e0
AC
6462008-08-20 Vincent Celier <celier@adacore.com>
647
648 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
649 gprbuild when casing is MixedCase, whatever the casing of the letters
650 in the file name.
651
6522008-08-20 Gary Dismukes <dismukes@adacore.com>
653
654 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
655 creating dummy init proc.
656 (Requires_Init_Proc): Return False in the case No_Default_Initialization
657 is in force and the type does not have associated default
658 initialization. Move test of Is_Public (with tests of restrictions
659 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
660 for default initialization.
661
6622008-08-20 Jerome Lambourg <lambourg@adacore.com>
663
664 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
665 of any alias or prefix but having attached parameters (as \"-O2\").
666
fe5dbc2c
AC
6672008-08-20 Robert Dewar <dewar@adacore.com>
668
669 * s-fileio.adb: Minor reformatting
670
6712008-08-20 Thomas Quinot <quinot@adacore.com>
672
673 * exp_strm.adb (Build_Elementary_Input_Call,
674 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
675 selects the stream attribute routines for long float types.
676
6772008-08-20 Vincent Celier <celier@adacore.com>
678
679 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
680
681 * prj.ads (Array_Data): Add a component Location
682
6832008-08-20 Ed Schonberg <schonberg@adacore.com>
684
685 * sem_prag.adb:
686 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
687 argument for ASIS and navigation use.
688
6892008-08-20 Ed Schonberg <schonberg@adacore.com>
690
691 * einfo.ads: Add comment.
692
6932008-08-20 Bob Duff <duff@adacore.com>
694
695 * sem_eval.ads: Minor comment fix.
696
6972008-08-20 Bob Duff <duff@adacore.com>
698
699 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
700 folding. We were folding things like "False and then ...", but not
701 "X and then ..." where X is a constant whose value is known at compile
702 time.
703
7042008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
705
706 * exp_ch5.adb (Controlled_Type): New routine.
707 (Expand_N_Extended_Return_Statement): When generating a move of the
708 final list in extended return statements, check the type of the
709 function and in the case of double expanded return statements, the type
710 of the returned object.
711 (Expand_Simple_Function_Return): Perform an interface conversion when
712 the type of the returned object is an interface and the context is an
713 extended return statement.
714
7152008-08-20 Ed Schonberg <schonberg@adacore.com>
716
717 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
718 and the full view is visible, set flag on full view as well.
719
7202008-08-20 Thomas Quinot <quinot@adacore.com>
721
722 * g-comlin.adb: Minor reformatting
723 Minor code reorganization.
724
725 * freeze.adb: Minor reformatting
726
7272008-08-20 Vincent Celier <celier@adacore.com>
728
729 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
730 source of another project.
731
7322008-08-20 Pascal Obry <obry@adacore.com>
733
734 * s-os_lib.ads: Minor reformatting.
735
c4075a15
AC
7362008-08-20 Arnaud Charlet <charlet@adacore.com>
737
738 * gnatvsn.ads: Minor reformatting.
739
0dd8a0b1
AC
7402008-08-20 Arnaud Charlet <charlet@adacore.com>
741
742 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
743 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
744 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
745 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
746 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
747 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
748 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
749 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
750 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
751 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
752 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
753 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
754 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
755 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
756 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
757 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
758 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
759 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
760 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
761 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
762 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
763 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
764 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
765 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
766 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
767 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
768 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
769 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
770 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
771 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
772 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
773 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
774 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
775 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
776 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
777 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
778 s-poosiz.adb, link.c: Fix copyright notice.
779
f4857d6e
AC
7802008-08-20 Arnaud Charlet <charlet@adacore.com>
781
782 * g-comlin.ads: Update comments.
783
8b4261b3
AC
7842008-08-20 Ed Schonberg <schonberg@adacore.com>
785
786 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
787
7882008-08-20 Gary Dismukes <dismukes@adacore.com>
789
790 * exp_ch11.adb:
791 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
792 Make_Implicit_Exception_Handler when rewriting an exception handler with
793 a choice parameter, and pass the handler's Sloc instead of that of the
794 handled sequence of statements. Make_Implicit_Exception_Handler sets the
795 Sloc to No_Location (unless debugging generated code), which we don't
796 want for the case of a user handler.
797
c6084ae0
AC
7982008-08-20 Robert Dewar <dewar@adacore.com>
799
800 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
9e81dbc7 801
c6084ae0
AC
802 * sem_ch13.adb:
803 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
804 now labeled as info msgs, not warnings.
805
806 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
807
808 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
809
810 * a-textio.adb: Remove redundant test.
811
812 * a-witeio.adb: Minor code reorganization
813 Remove redundant test found working on another issue
814
815 * a-ztexio.adb: Minor code reorganization
816 Remove redundant test found working on another issue
817
8182008-08-20 Thomas Quinot <quinot@adacore.com>
819
820 * s-fileio.adb (Open) Use C helper function to determine whether a
821 given errno value corresponds to a "file not found" error.
822
823 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
824
8252008-08-20 Jose Ruiz <ruiz@adacore.com>
826
827 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
828 to get access to the per-task errno variable.
829 (__set_errno for MaRTE): Do not redefine this function here since it is
830 already defined in MaRTE.
831
8322008-08-20 Tristan Gingold <gingold@adacore.com>
833
834 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
835
6e7f835f
AC
8362008-08-20 Robert Dewar <dewar@adacore.com>
837
838 * freeze.adb: Minor reformatting
839
840 * g-comlin.adb: Minor reformatting
841
842 * g-socket.adb: Minor reformatting
843
844 * g-socthi-mingw.adb: Minor reformatting
845
846 * g-stheme.adb: Minor reformatting
847
2af92e28
ES
8482008-08-20 Ed Schonberg <schonberg@adacore.com>
849
850 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
851 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
852 confusion between partial and full views of an ancestor of the context
853 type when the parent is a private extension declared in a parent unit,
854 and full views are available for the context type.
855
79a14178 8562008-08-18 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 857 Robert Dewar <dewar@adacore.com>
79a14178
ST
858
859 PR ada/30827
860 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
861 version string.
862 Move comment in the right place.
863 * g-comver.adb (Version): Look for a zero-termination in
864 addition to a closing parenthesis.
865
b9b2405f
ST
8662008-08-18 Samuel Tardieu <sam@rfc1149.net>
867
868 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
869 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
870 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
871 Is_Package_Or_Generic_Package instead of hand-crafted tests.
872
51c16e29
ST
8732008-08-18 Samuel Tardieu <sam@rfc1149.net>
874
875 PR ada/15808
876 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
877 as well.
878
c8bbc9ef
AL
8792008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
880
881 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
882
e650b83a
EB
8832008-08-16 Eric Botcazou <ebotcazou@adacore.com>
884
885 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
886 for back-copy statements in lieu of that of the actual.
887
b38f3813
EB
8882008-08-16 Eric Botcazou <ebotcazou@adacore.com>
889
890 PR ada/20548
891 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
12f89f6c 892 setjmp test consistently. Adjust for new behavior of flag_stack_check.
b38f3813 893 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
12f89f6c 894 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
b38f3813 895
2d14501c
ST
8962008-08-13 Samuel Tardieu <sam@rfc1149.net>
897
898 PR ada/36777
899 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
900 * sem_attr.adb (Check_Type): The current instance of a protected
901 object is not a type name.
902 (Analyze_Access_Attribute): Accept instances of protected objects.
903 (Analyze_Attribute, Attribute_Address clause): Ditto.
904 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
905 the prefix as being the current instance if needed.
906
62641193
DS
9072008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
908
0490fbb8
EB
909 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
910 Remove duplicate s-win32.o. Add s-winext.o.
62641193 911
2a04ce75
DS
9122008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
913
914 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
915 with SOSC.SOCK__STREAM.
916 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
917 SOSC.MSG_OOB.
918
269b85b7
JS
9192008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
920
921 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
922 * gsocket.h, socket.c: Update to support RTEMS.
923 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
924
abcbd24c 9252008-08-10 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 926 Robert Dewar <dewar@adacore.com>
abcbd24c
ST
927
928 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
929 left argument even when right argument is 0.
930 (Expand_N_Op_Mod): Ditto when right argument is 1.
931 (Expand_N_Op_Multiply): Ditto when any argument is 0.
932 (Expand_N_Op_Rem): Ditto when right argument is 1.
933
98e48a7f
MLI
9342008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
935
936 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
937 by warn_unused.
9e81dbc7 938
70d904ca
ES
9392008-08-08 Ed Schonberg <schonberg@adacore.com>
940
941 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
942 from Freeze_Entity. Used to generate cross-reference information for
943 types declared in generic packages.
944
cfb53555
TQ
9452008-08-08 Thomas Quinot <quinot@adacore.com>
946
947 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
948 compatibility shim.
949
a3ea9137
AC
9502008-08-08 Thomas Quinot <quinot@adacore.com>
951
952 * gsocket.h:
953 On Windows, include <errno.h> and redefine only selected errno values
954 from their <winsock2.h> definitions.
955
956 * s-osinte-freebsd.ads: Minor reformatting
957
958 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
959
960 * g-soccon.ads: New file.
961
962 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
963 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
964 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
965 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
966 unit, to allow building software that depends on this internal unit
967 with both older and newer compilers.
968
9692008-08-08 Robert Dewar <dewar@adacore.com>
970
971 * s-strxdr.adb: Minor reformatting
972
9732008-08-08 Bob Duff <duff@adacore.com>
974
975 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
976 checking for integer operations (including division by zero)", which
977 is wrong -- divide by zero is not part of overflow checking.
978 Also added misc clarification about what check-suppression means.
979
980 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
981
9822008-08-08 Jerome Lambourg <lambourg@adacore.com>
983
984 * g-comlin.adb (Add_Switch): Handle addition of switches at the
985 begining of the command line.
986 (Append, Add): Renaming of Append to Add as this now allows addition
987 at the begining of the list.
9e81dbc7 988
a3ea9137
AC
989 * g-comlin.ads (Add_Switch): Handle addition of switches at the
990 begining of the command line.
991
9922008-08-08 Thomas Quinot <quinot@adacore.com>
993
994 * g-sercom.ads:
995 (Name): Document application scope (only legacy PC serial ports on
996 Linux and Windows).
997
15d2e2d4
TQ
9982008-08-08 Thomas Quinot <quinot@adacore.com>
999
1000 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
1001 previous change, not needed after all.
1002
51e4c4b9
AC
10032008-08-08 Ed Schonberg <schonberg@adacore.com>
1004
1005 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
1006 exclusion indicator is present
1007
10082008-08-08 Robert Dewar <dewar@adacore.com>
1009
1010 * g-comlin.adb: Minor code reorganization
1011 Minor reformatting
1012
1013 * g-comlin.ads: Minor reformatting
1014
1015 * s-fileio.adb: Minor reformatting
1016
1017 * sem_attr.adb: Minor code reorganization (use Nkind_In)
1018 Minor reformatting
1019
6f371a2e
ST
10202008-08-06 Samuel Tardieu <sam@rfc1149.net>
1021
1022 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
1023 with s-oscons-tmplt.i.
1024
6a69bcf4
ST
10252008-08-06 Samuel Tardieu <sam@rfc1149.net>
1026
1027 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
1028
ef9e1eff
AC
10292008-08-06 Ed Schonberg <schonberg@adacore.com>
1030
1031 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
1032 of incomplete type.
1033
1034 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
1035 of a formal parameter of an incomplete type. Improve error message for
1036 other improper uses of incomplete types.
1037
10382008-08-06 Robert Dewar <dewar@adacore.com>
1039
1040 * gnat_ugn.texi: Clarify -gnato documentation
1041
10422008-08-06 Thomas Quinot <quinot@adacore.com>
1043
1044 * gcc-interface/Makefile.in,
1045 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
1046 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
1047 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
1048 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
1049 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
1050 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
1051 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
1052 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
1053 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
1054 Remove GNAT.Sockets.Constants. This internal package is replaced by
1055 System.OS_Constants.
1056
e93d146b
TQ
10572008-08-06 Thomas Quinot <quinot@adacore.com>
1058
1059 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
1060 Remove obsolete targets referencing gen-soccon
1061 When generating s-oscons.ads, use a file name that includes the
1062 THREAD_KIND, to ensure that the (potentially different) version from a
1063 previous build with a different threads flavour does not get reused.
1064
c6aecf3b
AC
10652008-08-06 Thomas Quinot <quinot@adacore.com>
1066
1067 * sem_res.adb: Minor reformatting
1068
1069 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
1070 only when the operating system reports a non-existing file or directory
1071 (ENOENT), otherwise raise Name_Error.
1072
1073 * exp_ch11.adb: Minor reformatting
1074
10752008-08-06 Ed Schonberg <schonberg@adacore.com>
1076
1077 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
1078 incomplete, add the access_to_subprogram type to the list of private
1079 dependents only if the incomplete type will be completed in the current
1080 scope.
1081 (Build_Discriminant_Constraints): If the type of the discriminant is
1082 access_to_variable, reject a constraint that is access_to_constant.
1083
6594c0f3
AC
10842008-08-06 Thomas Quinot <quinot@adacore.com>
1085
1086 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1087 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1088 g-sttsne-dummy.ads: New files.
1089
1090 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1091 with pragma Unimplemented_Unit for sockets packages on Nucleus.
1092
10932008-08-06 Pascal Obry <obry@adacore.com>
1094
1095 * adaint.c: Another fix for ACL support on Windows.
1096
10972008-08-06 Javier Miranda <miranda@adacore.com>
1098
1099 * exp_disp (Expand_Interface_Actuals): Adds missing support for
1100 expansion of calls to subprograms using selected components.
1101
11022008-08-06 Ed Schonberg <schonberg@adacore.com>
1103
1104 * sem_res.adb (Resolve_Call): Use base type to determine whether a
1105 dereference is needed because a subtype of an access_to_subprogram is
1106 simply an access-subtype
1107
11082008-08-06 Jerome Lambourg <lambourg@adacore.com>
1109
1110 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1111 parameters, always specify the expected separator.
1112
f9325b03
AC
11132008-08-06 Thomas Quinot <quinot@adacore.com>
1114
1115 * xnmake.adb: Use new XUtil package for platform independent text
1116 output.
1117
11182008-08-06 Vincent Celier <celier@adacore.com>
1119
1120 * gnat_ugn.texi: Document compiler switch -gnateG
1121
11222008-08-06 Quentin Ochem <ochem@adacore.com>
1123
1124 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1125 in the case of an empty pattern size.
1126 (Compute_Result): Do not do any computation in the case of an empty
1127 pattern size.
1128 (Report_Result): Fixed computation of the overflow guard.
1129
11302008-08-06 Ed Schonberg <schonberg@adacore.com>
1131
1132 * g-awk.adb (Finalize): Do not use directly objects of the type in the
1133 finalization routine to prevent elaboration order anomalies in new
1134 finalization scheme.
1135
11362008-08-06 Ed Schonberg <schonberg@adacore.com>
1137
1138 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1139 declaration for the same type.
1140
11412008-08-06 Thomas Quinot <quinot@adacore.com>
1142
1143 * sem.adb: Minor rewording (comment)
1144
11452008-08-06 Jerome Lambourg <lambourg@adacore.com>
1146
1147 * g-comlin.adb (Define_Switch, Get_Switches): New.
1148 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1149 ungrouping switches.
1150 (For_Each_Simple_Switch): Allow more control over parameters handling.
1151 This generic method now allows ungrouping of switches with parameters
1152 and switches with more than one letter after the prefix.
1153 (Set_Command_Line): Take care of switches that are prefixed with a
1154 switch handling parameters without delimiter (-gnatya and -gnaty3 for
1155 example).
1156 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1157 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1158 the operation.
1159 (Start, Alias_Switches, Group_Switches): Take care of parameters
1160 possibly present inside a group.
1161
1162 * g-comlin.ads (Define_Switch): New method used to define a list of
1163 expected switches, that are necessary for correctly ungrouping switches
1164 with more that one character after the prefix.
1165 (Get_Switches): Method that builds a getopt string from the list of
1166 switches as set previously by Define_Switch.
1167 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1168 status of the operation. Also allow the removal of switches with
1169 parameters only.
1170 (Command_Line_Configuration_Record): Maintain a list of expected
1171 switches.
1172
f0a631aa
DR
11732008-08-06 Doug Rupp <rupp@adacore.com>
1174
1175 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1176 TARGET_MALLOC64 clear.
1177
1178 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1179 if TARGET_MALLOC64 clear.
1180
1181 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1182 (TARGET_MALLC64): New macro. Default to clear.
1183
31fcb30f
DR
11842008-08-06 Doug Rupp <rupp@adacore.com>
1185
1186 * gcc-interface/utils2.c (snames.h) Include
1187 (TARGET_ABI_OPEN_VMS): Initialize.
1188 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1189 for Convention C.
1190
ea08fcdc
AC
11912008-08-06 Ed Schonberg <schonberg@adacore.com>
1192
1193 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1194 null exclusion in a discriminant declaration
1195
1196 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1197 indicators when type is not an access type.
1198
1199 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1200 indicators when type is not an access type.
1201
12022008-08-06 Javier Miranda <miranda@adacore.com>
1203
1204 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1205 with the target interface before expanding the code of the interface
1206 conversion.
1207
aecf0203
AC
12082008-08-05 Ed Schonberg <schonberg@adacore.com>
1209
1210 * freeze.adb:
1211 (Freeze_Entity): A deferred constant does not violate the restriction
9e81dbc7 1212 No_Default_Initialization,
aecf0203
AC
1213
1214 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1215 can carry a null exclusion indicator, and on which an error may be
1216 posted if the indicator is redundant.
1217
1218 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1219 does not apply to a subtype mark that already excludes null.
1220
1221 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1222 exclusion does not apply to a subtype mark that already excludes null.
1223
12242008-08-05 Thomas Quinot <quinot@adacore.com>
1225
1226 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1227
12282008-08-05 Doug Rupp <rupp@adacore.com>
1229
1230 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1231
434d3cf1
AC
12322008-08-05 Thomas Quinot <quinot@adacore.com>
1233
1234 * gsocket.h: Make this file includable in a Nucleus environment, which
1235 does not support sockets.
1236
1237 * socket.c: Remove Nucleus-specific hack.
1238
12392008-08-05 Pascal Obry <obry@adacore.com>
1240
1241 * adaint.c: Remove support for readable attribute on vxworks and nucleus
1242
12432008-08-05 Ed Schonberg <schonberg@adacore.com>
1244
1245 * sem_attr.adb:
1246 (Analyze_Attribute, case 'Result): handle properly the case where some
1247 operand of the expression in a post-condition generates a transient
1248 block.
1249
1250 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1251 right-hand side when it is an anonymous access_to_subprogram, to force
1252 static accessibility check when needed.
1253
49331b42
AC
12542008-08-05 Sergey Rybin <rybin@adacore.com>
1255
1256 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1257 rule according to the change in the rule option.
1258 Add documentation for -gnatw.b/-gnatw.B
1259
12602008-08-05 Robert Dewar <dewar@adacore.com>
1261
1262 * ug_words: Add entries for -gnatw.b/-gnatw.B
1263
1264 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1265
21f560ba
VC
12662008-08-05 Vincent Celier <celier@adacore.com>
1267
1268 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1269 (File).
9e81dbc7 1270
21f560ba
VC
1271 * a-ztdeio.adb: Ditto.
1272
43540ec6
AC
12732008-08-05 Pascal Obry <obry@adacore.com>
1274
1275 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1276 readable attribute.
1277
12782008-08-05 Vincent Celier <celier@adacore.com>
1279
1280 * s-wchwts.adb:
1281 (Wide_String_To_String): Returns a String with the same 'First as its
1282 parameter S.
1283 (Wide_Wide_String_To_String): Ditto
9e81dbc7 1284
43540ec6
AC
1285 * s-wchwts.ads:
1286 (Wide_String_To_String): Document that the lowest index of the returned
1287 String is equal to S'First.
1288
2d4d7e29
TQ
12892008-08-05 Thomas Quinot <quinot@adacore.com>
1290
1291 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1292
1293 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1294 s-oscons.ads
1295
4ae23b62
AC
12962008-08-05 Robert Dewar <dewar@adacore.com>
1297
1298 * opt.ads (Warn_On_Biased_Representation): New flag
9e81dbc7 1299
4ae23b62
AC
1300 * sem_ch13.adb:
1301 (Analyze_Attribute_Definition_Clause): Issue warning when biased
1302 representation is required.
1303 (Minimum_Size): Don't allow biasing if enum rep clause case
9e81dbc7 1304
4ae23b62
AC
1305 * sem_warn.adb:
1306 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1307 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
9e81dbc7 1308
4ae23b62
AC
1309 * usage.adb: Add lines for -gnatw.b/B switches
1310
13112008-08-05 Pascal Obry <obry@adacore.com>
1312
1313 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1314
1315 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1316
13172008-08-05 Thomas Quinot <quinot@adacore.com>
1318
1319 * socket.c: Minor reformatting.
1320
ba3fa650
AC
13212008-08-05 Robert Dewar <dewar@adacore.com>
1322
1323 * sem_ch3.adb: Minor reformatting
1324
1325 * prj-nmsc.adb: Minor reformatting
1326
13272008-08-05 Ed Schonberg <schonberg@adacore.com>
1328
1329 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1330 visibility check on the component type if the simple test fails.
1331
c775e4a1
AC
13322008-08-05 Jose Ruiz <ruiz@adacore.com>
1333
1334 * init.c (__gnat_install_handler for linux): If we are building the
1335 Xenomai run time then we need to do two additional things: avoid
1336 memory swapping and transform the Linux environment task into a native
1337 Xenomai task.
1338
1339 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1340 time): Use interface to Xenomai native skin and avoid linux-specific
1341 way of setting CPU affinity.
1342 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1343
13442008-08-05 Bob Duff <duff@adacore.com>
1345
1346 * checks.ads: Minor comment fix
1347
13482008-08-05 Thomas Quinot <quinot@adacore.com>
1349
1350 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1351 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1352 CS8.
1353
13542008-08-05 Robert Dewar <dewar@adacore.com>
1355
1356 * mlib.adb: Minor code reorganization
1357 Minor reformatting
1358
1359 * make.adb: Minor reformatting
1360
1361 * prj-attr.ads: Minor reformatting
1362
1363 * s-os_lib.adb: Minor reformatting
1364
1365 * s-fileio.adb: Minor code reorganization
1366 Minor reformatting
1367
1368 * prj.ads: Minor reformatting
1369
13702008-08-05 Bob Duff <duff@adacore.com>
1371
1372 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1373 unresolved initial value of "null", because it causes implicitly
1374 generated "=" operators to be ambiguous, and because this type should
1375 not be passed to gigi.
1376
0df218a9
AC
13772008-08-05 Vincent Celier <celier@adacore.com>
1378
1379 * mlib.adb: Update comments.
1380
1381 * make.adb (Switches_Of): Check for Switches (others), before checking
1382 for Default_Switches ("Ada").
1383 (Gnatmake): Use Builder'Switches (others) in preference to
1384 Builder'Default_Switches ("Ada") if there are several mains.
1385
1386 * prj-attr-pm.adb:
1387 (Add_Attribute): Add component Others_Allowed in Attribute_Record
1388 aggregate.
1389
1390 * prj-attr.adb:
1391 Add markers to indicates that attributes Switches allow others as index
1392 (Others_Allowed_For): New Boolean function, returning True for
1393 attributes with the mark.
1394 (Initialize): Recognize optional letter 'O' as the marker for
1395 associative array attributes where others is allowed as the index.
1396
1397 * prj-attr.ads:
1398 (Others_Allowed_For): New Boolean function
1399 (Attribute_Record): New Boolean component Others_Allowed
9e81dbc7 1400
0df218a9
AC
1401 * prj-dect.adb:
1402 (Parse_Attribute_Declaration): For associative array attribute where
1403 others is allowed as the index, allow others as an index.
1404
1405 * prj-nmsc.adb:
1406 (Process_Binder): Skip associative array attributes with index others
1407 (Process_Compiler): Ditto
1408
1409 * prj-util.adb:
1410 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1411 index is All_Other_Names.
1412
1413 * prj.ads:
1414 (All_Other_Names): New constant
1415
1416 * prj-proc.adb:
1417 (Process_Declarative_Items): Skip associative array attribute when index
1418 is reserved word "others".
1419
14202008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
1421
1422 * gen-oscons.c: Adapt for VMS where termios.h is not available.
1423
c7d920ad
TQ
14242008-08-05 Thomas Quinot <quinot@adacore.com>
1425
1426 * a-rttiev.adb: Minor reformatting (comments)
1427
1428 * gen-soccon.c: Rename to gen-oscons.c
1429
1430 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1431 GNAT.Sockets.Constants.
1432 Add new constants for GNAT.Serial_Communications and System.File_IO.
1433
8b79ad42
AC
14342008-08-05 Javier Miranda <miranda@adacore.com>
1435
1436 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1437 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1438 implementation of this routine has been simplified.
1439
14402008-08-05 Pascal Obry <obry@adacore.com>
1441
1442 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1443 Set_Read_Only Win32 implementation.
1444
99e81db6
TQ
14452008-08-05 Thomas Quinot <quinot@adacore.com>
1446
1447 * exp_strm.adb: Minor reformatting (comments)
1448
1449 * sem_ch12.adb: Minor reformatting.
1450
dce86910
AC
14512008-08-05 Robert Dewar <dewar@adacore.com>
1452
1453 * sem_ch3.adb: Minor reformatting
1454
1455 * checks.adb: Minor reformatting
1456
14572008-08-05 Thomas Quinot <quinot@adacore.com>
1458
1459 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1460 restriction on Prefix.
1461
14622008-08-05 Jerome Lambourg <lambourg@adacore.com>
1463
1464 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1465 methods needed to handle switch sections when building a command line.
1466 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1467 Current_Section): New public methods or methods modified to handle
1468 building command lines with sections.
1469 (Set_Command_Line): Take into account sections when analysing a switch
1470 string.
1471 (Start): Sort the switches by sections before iterating the command line
1472 elements.
9e81dbc7 1473
dce86910
AC
1474 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1475 Is_New_Section, Current_Section): New methods or methods modified to
1476 handle building command lines with sections.
1477
14782008-08-05 Ed Schonberg <schonberg@adacore.com>
1479
1480 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1481 discriminants, indicate that the corresponding object declaration has
1482 no initialization, to prevent spurious warnings when the access type is
1483 null-excluding.
1484
14852008-08-05 Ed Schonberg <schonberg@adacore.com>
1486
1487 * sem_res.adb (Resolve_Call): If this is a call to the predefined
1488 Abort_Task, warn if the call appears within a protected operation.
1489
52fb73c2
AC
14902008-08-04 Robert Dewar <dewar@adacore.com>
1491
1492 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1493
14942008-08-04 Ed Schonberg <schonberg@adacore.com>
1495
1496 * sem_ch3.adb:
1497 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1498 anonymous access to protected subprogram that is the return type of the
1499 specification of a subprogram body.
1500
1501 * sem_ch6.adb:
1502 (Analyze_Subprogram_Body): if the return type is an anonymous access to
1503 subprogram, freeze it now to prevent access anomalies in the back-end.
1504
1505 * exp_ch9.adb: Minor code cleanup.
1506 Make sure that new declarations are inserted into the tree before
1507 analysis (from code reading).
1508
15092008-08-04 Robert Dewar <dewar@adacore.com>
1510
1511 * exp_ch5.adb:
1512 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1513 at point of return.
1514
367a9e66
AC
15152008-08-04 Thomas Quinot <quinot@adacore.com>
1516
1517 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1518
15192008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1520
1521 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1522
15232008-08-04 Javier Miranda <miranda@adacore.com>
1524
1525 * sem_prag.adb (Process_Convention): Add missing support for
1526 N_Private_Extension_Declaration nodes.
1527
15282008-08-04 Robert Dewar <dewar@adacore.com>
1529
1530 * exp_ch4.adb: Minor reformatting
1531
a07c3593
AC
15322008-08-04 Pascal Obry <obry@adacore.com>
1533
1534 * adaint.h: Add missing prototype.
1535
1536 * adaint.c: Refine support for Windows file attributes.
1537
15382008-08-04 Robert Dewar <dewar@adacore.com>
1539
1540 * sem_res.adb:
1541 (Valid_Conversion): Catch case of designated types having different
1542 sizes, even though they statically match.
1543
15442008-08-04 Javier Miranda <miranda@adacore.com>
1545
1546 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1547 added in previous patch to handle access to subprograms.
1548
15492008-08-04 Robert Dewar <dewar@adacore.com>
1550
1551 * freeze.adb:
1552 (Freeze_Entity): Only check No_Default_Initialization restriction for
1553 constructs that come from source
1554
15552008-08-04 Thomas Quinot <quinot@adacore.com>
1556
1557 * exp_ch6.adb: Minor comment fix.
1558
1559 * sem_ch4.adb: Minor reformatting.
1560
d559d5c6
AC
15612008-08-04 Robert Dewar <dewar@adacore.com>
1562
1563 * sem_res.adb: (Large_Storage_Type): Improve previous change.
1564
15652008-08-04 Pascal Obry <obry@adacore.com>
1566
1567 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1568 file attributes.
1569
b1c11e0e
JM
15702008-08-04 Javier Miranda <miranda@adacore.com>
1571
1572 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1573 for N_Formal_Object_Declaration nodes. Adding kludge required by
1574 First_Formal to provide its functionality with access to functions.
1575 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1576 for anonymous access types returned by functions.
1577
1578 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1579 conversion of null-excluding access types (required only once to force
1580 the generation of the required runtime check).
1581
1582 * sem_type.adb (Covers): minor reformating
1583
1584 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1585 with internally generated nodes. Avoid generating the error inside init
1586 procs.
1587
1588 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1589 (Resolve_Null): Generate the null-excluding check in case of assignment
1590 to a null-excluding object.
1591 (Valid_Conversion): Add missing support for anonymous access to
1592 subprograms.
1593
1594 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1595 anonymous access types whose designated type is an itype. This case
1596 occurs with anonymous access to protected subprograms types.
1597 (Analyze_Return_Type): Add missing support for anonymous access to
1598 protected subprogram.
1599
1600 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1601 subprograms addition of missing check on matching convention. Required
1602 to properly handle access to protected subprogram types.
1603
1604 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1605 null excluding access types.
1606
b282ab37
AC
16072008-08-04 Ed Schonberg <schonberg@adacore.com>
1608
1609 * sem_ch12.adb: Add comments
1610
1611 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1612 access type and the allocator is not initialized, warn rather than
1613 reporting an error.
1614
16152008-08-04 Robert Dewar <dewar@adacore.com>
1616
1617 * exp_ch4.adb: Minor reformatting
1618
1619 * exp_dist.adb: Minor reformatting
1620
1621 * g-comlin.adb: Minor reformatting
1622
16232008-08-04 Gary Dismukes <dismukes@adacore.com>
1624
1625 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1626 target to the type of the aggregate in the case where the target object
1627 is class-wide.
1628
1629 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1630 result type is class-wide and inherently limited, and the expression
1631 has a specific type, create a return object of the specific type, for
1632 more efficient handling of returns of build-in-place aggregates (avoids
1633 conversions of the class-wide return object to the specific type on
1634 component assignments).
1635
1636 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1637 about a type mismatch for a class-wide function with a return object
1638 having a specific type when the object declaration doesn't come from
1639 source. Such an object can result from the expansion of a simple return.
1640
16412008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1642
1643 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1644
1645 * gcc-interface/Makefile.in: Use 64bit-specific system files when
1646 compiling for 64bit windows.
1647
54838d1f
AC
16482008-08-04 Jerome Lambourg <lambourg@adacore.com>
1649
1650 * g-comlin.adb (Group_Switches): Preserve the switch order when
1651 grouping and allow switch grouping of switches with more than one
1652 character extension (e.g. gnatw.x).
1653 (Args_From_Expanded): Remove this now obsolete method.
1654
16552008-08-04 Ed Schonberg <schonberg@adacore.com>
1656
1657 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1658 chain at once, to ensure that type is properly decorated for back-end,
1659 when allocator appears within a loop.
1660
16612008-08-04 Kevin Pouget <pouget@adacore.com>
1662
1663 * snames.h, snames.adb, snames.ads:
1664 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1665
1666 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1667 Build_To_Any_Call and Build_TypeCode_Call procedures.
1668
1669 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1670
1671 * rtsfind.ads: Add corresponding names.
1672
1673 * tbuild.adb: Update prefix restrictions to allow '_' character.
1674
819fad69
AC
16752008-08-04 Doug Rupp <rupp@adacore.com>
1676
1677 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1678 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1679 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1680 use it. Calculate pointer range overflow using 64bit types.
1681
16822008-08-04 Ed Schonberg <schonberg@adacore.com>
1683
1684 * sem_ch3.adb (Access_Definition): A formal object declaration is a
1685 legal context for an anonymous access to subprogram.
1686
1687 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1688 indirect call, report success to the caller to include possible
1689 interpretation.
1690
1691 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1692 check when the type
1693 of the extended return is an anonymous access_to_subprogram type.
1694
1695 * sem_res.adb:
1696 (Resolve_Call): Insert a dereference if the type of the subprogram is an
1697 access_to_subprogram and the context requires its return type, and a
1698 dereference has not been introduced previously.
1699
17002008-08-04 Arnaud Charlet <charlet@adacore.com>
1701
1702 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1703 gnatcheck support in GPS.
1704
17052008-08-04 Vincent Celier <celier@adacore.com>
1706
1707 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1708 requested
1709
a037f912
VC
17102008-08-04 Vincent Celier <celier@adacore.com>
1711
1712 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1713 variable, but don't check the resulting value as it has no impact on
1714 the processing.
9e81dbc7 1715
a037f912
VC
1716 * opt.ads:
1717 (Generate_Processed_File): New Boolean flag, set to True in the compiler
1718 when switch -gnateG is used.
9e81dbc7 1719
a037f912
VC
1720 * prep.adb:
1721 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1722 when the source is modified by the preprocessor and there is no
1723 preprocessing errors.
9e81dbc7 1724
a037f912 1725 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
9e81dbc7 1726
a037f912
VC
1727 * sinput-l.adb:
1728 (Load_File): Output the result of preprocessing if the source text was
1729 modified.
9e81dbc7 1730
a037f912 1731 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
9e81dbc7 1732
a037f912 1733 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
9e81dbc7 1734
a037f912 1735 * ug_words: Add VMS equivalent for -gnateG
9e81dbc7 1736
a037f912
VC
1737 * vms_data.ads:
1738 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1739
bdc33a55
AC
17402008-08-04 Doug Rupp <rupp@adacore.com>
1741
1742 * gcc-interface/utils2.c:
1743 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1744 in 32bit descriptor.
1745
17462008-08-04 Robert Dewar <dewar@adacore.com>
1747
1748 * par-ch10.adb: Minor reformatting
1749
1750 * i-cobol.adb: Minor reformatting.
1751
17522008-08-04 Ed Schonberg <schonberg@adacore.com>
1753
1754 * sem_ch3.adb (Access_Definition): Create an itype reference for an
1755 anonymous access return type of a regular function that is not a
1756 compilation unit.
1757
17582008-08-04 Vincent Celier <celier@adacore.com>
1759
1760 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
9e81dbc7 1761
bdc33a55 1762 * snames.adb: New standard name Global_Compilation_Switches
9e81dbc7 1763
bdc33a55
AC
1764 * snames.ads: New standard name Global_Compilation_Switches
1765
1766 * make.adb: Correct spelling error in comment
1767
17682008-08-04 Arnaud Charlet <charlet@adacore.com>
1769
1770 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1771 target.
1772
17732008-08-04 Thomas Quinot <quinot@adacore.com>
1774
1775 * sem_ch10.adb: Minor comment fix.
1776
fc1b906a
AC
17772008-08-04 Robert Dewar <dewar@adacore.com>
1778
1779 * restrict.adb: Improved messages for restriction warnings
1780
1781 * restrict.ads: Improved messages for restriction messages
1782
1783 * s-rident.ads (Profile_Name): Add No_Profile
1784
17852008-08-04 Robert Dewar <dewar@adacore.com>
1786
1787 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1788
17892008-08-04 Robert Dewar <dewar@adacore.com>
1790
1791 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1792
17932008-08-04 Vincent Celier <celier@adacore.com>
1794
1795 * prj-proc.adb:
1796 (Copy_Package_Declarations): When inheriting package Naming from a
1797 project being extended, do not inherit source exception names.
1798
17992008-08-04 Ed Schonberg <schonberg@adacore.com>
1800
1801 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1802 list of declaration to find previous subprogram, do not go to the
1803 original node of a generic unit.
1804
d2143736
EB
18052008-08-02 Eric Botcazou <ebotcazou@adacore.com>
1806
1807 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1808 New case. Convert BOOLEAN_TYPE operation to the default integer type.
1809
a981c964
EB
18102008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1811
1812 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1813 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1814 and adjust for above renaming.
1815 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1816 gnu_expr_alt_type parameter. Convert the expression to it instead
1817 of changing its type in place.
1818 (build_function_stub): Adjust call to above function.
1819
8df2e902
EB
18202008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1821
1822 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1823 code. Do not get full definition of deferred constants with address
1824 clause for a use. Do not ignore deferred constant definitions with
1825 address clause. Ignore constant definitions already marked with the
1826 error node.
1827 <object>: Remove obsolete comment. For a deferred constant with
1828 address clause, get the initializer from the full view.
1829 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1830 Rework and remove obsolete comment.
1831 <N_Object_Declaration>: For a deferred constant with address clause,
1832 mark the full view with the error node.
1833 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1834 formatting nits.
1835
585df50b
AC
18362008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1837
1838 * rtsfind.ads: Add block IO versions of stream routines for Strings.
9e81dbc7 1839
585df50b
AC
1840 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1841 sem_prag.adb, snames.adb, snames.ads, snames.h,
1842 par-prag.adb: Undo previous stream related changes.
9e81dbc7 1843
585df50b 1844 * s-rident.ads: Add new restriction No_Stream_Optimizations.
9e81dbc7 1845
585df50b
AC
1846 * s-ststop.ads, s-ststop.adb: Comment reformatting.
1847 Define enumeration type to designate different IO mechanisms.
1848 Enchance generic package Stream_Ops_Internal to include an
1849 implementation of Input and Output.
1850
1851 * exp_attr.adb (Find_Stream_Subprogram): If restriction
1852 No_Stream_Optimization is active, choose the default byte IO
1853 implementations of stream attributes for Strings.
1854 Otherwise use the corresponding block IO version.
1855
2eee5152 18562008-08-01 Olivier Hainque <hainque@adacore.com>
9e81dbc7 1857
585df50b
AC
1858 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1859 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1860
18612008-08-01 Robert Dewar <dewar@adacore.com>
1862
1863 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1864 convert plain identifier into defining identifier.
2eee5152 1865
2b747305
AC
18662008-08-01 Robert Dewar <dewar@adacore.com>
1867
1868 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1869 warnings
1870
1871 * lib-xref.adb: Add error defense.
1872
18732008-08-01 Bob Duff <duff@adacore.com>
1874
1875 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1876
0c246603
AC
18772008-08-01 Gary Dismukes <dismukes@adacore.com>
1878
1879 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1880 correct accessibility levels. In the "when others" case, retrieve the
1881 access level of the Etype of Prev rather than Prev_Orig, because the
1882 original exression has not always been analyzed.
1883
18842008-08-01 Robert Dewar <dewar@adacore.com>
1885
1886 * prj-nmsc.adb: Minor reformatting
1887
1888 * sem_ch4.adb: Minor reformatting
1889 Minor code reorganization
1890
1891 * prj.ads: Minor reformatting
1892
1893 * s-os_lib.adb: Minor reformatting
1894
1895 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1896 half encodings
1897
1898 * scans.ads: Minor reformatting.
1899
1900 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1901 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1902
1903 * sem_res.adb:
1904 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1905
1906 * sem_ch12.adb: Minor comment reformatting
1907
1908 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1909 keyword
1910
1cb17b78
AC
19112008-08-01 Robert Dewar <dewar@adacore.com>
1912
1913 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1914 generating code
1915
19162008-08-01 Ed Schonberg <schonberg@adacore.com>
1917
1918 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1919 converted is a real literal and the target type has static bounds,
1920 perform the conversion exactly to prevent floating-point anomalies on
1921 some targets.
1922
19232008-08-01 Vincent Celier <celier@adacore.com>
1924
1925 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
9e81dbc7 1926
1cb17b78 1927 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
9e81dbc7 1928
1cb17b78
AC
1929 * prj.adb (Object_Exist_For): Use Object_Generated, not
1930 Objects_Generated that is removed and was never modified anyway.
1931
1932 * prj.ads:
1933 (Path_Syntax_Kind): New enumeration type
1934 (Language_Config): New component Path_Syntax, defaulted to Host.
1935 Components PIC_Option and Objects_Generated removed, as they are not
1936 used.
1937
1938 * snames.adb: New standard name Path_Syntax
9e81dbc7 1939
1cb17b78
AC
1940 * snames.ads: New standard name Path_Syntax
1941
19422008-08-01 Vincent Celier <celier@adacore.com>
1943
1944 * mlib-utl.adb:
1945 (Adalib_Path): New variable to store the path of the adalib directory
1946 when procedure Specify_Adalib_Dir is called.
1947 (Lib_Directory): If Adalib_Path is not null, return its value
1948 (Specify_Adalib_Dir): New procedure
9e81dbc7 1949
1cb17b78
AC
1950 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1951
19522008-08-01 Ed Schonberg <schonberg@adacore.com>
1953
1954 * sem_prag.adb:
1955 (Check_Precondition_Postcondition): If not generating code, analyze the
1956 expression in a postcondition that appears in a subprogram body, so that
1957 it is properly decorated for ASIS use.
1958
19592008-08-01 Gary Dismukes <dismukes@adacore.com>
1960
1961 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1962 Orig_Prev to Prev in the case where the actual is N_Function_Call or
1963 N_Identifier. This was interfering with other cases that are rewritten
1964 as N_Identifier, such as allocators, resulting in passing of the wrong
1965 accessibility level, and based on testing this code is apparently no
1966 longer needed at all.
1967
19682008-08-01 Ed Schonberg <schonberg@adacore.com>
1969
1970 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1971 procedure call whose prefix
1972 is a parameterless function call that returns an access_to_procedure.
1973
d1b4f87d
AC
19742008-08-01 Jose Ruiz <ruiz@adacore.com>
1975
1976 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1977 for RTX. Adding a suffix that is incremented at each iteration.
1978
19792008-08-01 Robert Dewar <dewar@adacore.com>
1980
1981 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1982 Raise_Exception
1983
19842008-08-01 Jerome Lambourg <lambourg@adacore.com>
1985
1986 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1987 paths, which are authorized by Windows but can lead to errors when used
1988 elsewhere.
1989
cfb02ad1
AC
19902008-08-01 Ed Schonberg <schonberg@adacore.com>
1991
1992 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1993 a pending instantiation for the body of a subprogram that is to be
1994 inlined.
1995
1996 * sem_ch12.adb:
1997 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1998
1999 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
2000 create a pending instance for its body, so that calls to the subprogram
2001 can be inlined by the back-end.
2002
20032008-08-01 Jose Ruiz <ruiz@adacore.com>
2004
2005 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
2006 rts-rtx-w32).
2007
e1bb4e71
AC
20082008-08-01 Robert Dewar <dewar@adacore.com>
2009
2010 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2011
20122008-08-01 Doug Rupp <rupp@adacore.com>
2013
2014 * gnat_rm.texi: Document new mechanism Short_Descriptor.
9e81dbc7 2015
e1bb4e71
AC
2016 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
2017 mechanism values.
2018
2019 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2020 mechanism and Short_Descriptor mechanism values.
2021
2022 * snames.adb (preset_names): Add short_descriptor entry.
2023
2024 * snames.ads: Add Name_Short_Descriptor.
2025
2026 * types.h: Add new By_Short_Descriptor mechanism values.
2027
2028 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2029 mechanism and Short_Descriptor mechanism values.
2030
2031 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
2032 values.
2033 (Descriptor_Codes): Modify range for new mechanism values.
2034
2035 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
2036 mechanism values.
2037
2038 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
2039 (gnat_to_gnu_param): Handle By_Short_Descriptor.
2040
2041 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
2042 (build_vms_descriptor32): New prototype.
2043 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
2044
2045 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
2046 argument in call fill_vms_descriptor.
2047
2048 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
2049 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
9e81dbc7 2050 (build_vms_descriptor): Renamed from build_vms_descriptor64.
e1bb4e71
AC
2051 (convert_vms_descriptor32): New function.
2052 (convert_vms_descriptor64): New function.
2053 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
2054 descriptors.
2055
2056 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
2057 no longer needed.
2058
20592008-08-01 Jose Ruiz <ruiz@adacore.com>
2060
2061 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
2062 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
2063 name.
2064
bca3ab79
AC
20652008-08-01 Jose Ruiz <ruiz@adacore.com>
2066
2067 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
2068 current directory so only fully qualified names are allowed.
2069
20702008-08-01 Robert Dewar <dewar@adacore.com>
2071
2072 * gnat_ugn.texi:
2073 Minor editing, remove uncomfortable use of semicolon
2074
2075 * s-ststop.adb: Add some ??? comments
2076
2077 * sem_ch10.adb: Minor reformatting
2078
2079 * snames.ads:
2080 Minor comment fixes, some pragmas were not properly
2081 categorized in the comments, documentation change only
2082
2083 * xref_lib.adb: Minor reformatting
2084
2085 * sinput.adb: Minor reformatting
2086
2087 * gnatchop.adb: Minor reformatting
2088
2089 * sem_util.ads: Minor reformatting.
2090
2091 * opt.ads: Minor documentation fix
2092
2093 * scng.adb: Minor reformatting
2094
2095 * prj-part.adb: Update comments
2096
20972008-08-01 Ed Schonberg <schonberg@adacore.com>
2098
2099 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2100 tagged synchronized type, use corresponding record type.
2101
21022008-08-01 Doug Rupp <rupp@adacore.com>
2103
2104 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2105 dummy transfer address for debugging.
9e81dbc7 2106
bca3ab79
AC
2107 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2108
2109 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2110
4c5a0615
EB
21112008-07-31 Eric Botcazou <ebotcazou@adacore.com>
2112
2113 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2114 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2115
964771d9
AC
21162008-07-31 Pascal Obry <obry@adacore.com>
2117
2118 * prj-nmsc.adb: Keep Object and Exec directory casing.
2119
21202008-07-31 Jose Ruiz <ruiz@adacore.com>
2121
2122 * system-rtx-rtss.ads
2123 Change the default stack size. It is important to set the commit part.
9e81dbc7 2124
964771d9
AC
2125 * s-taprop-rtx.adb
2126 (Initialize): Get the clock resolution.
2127 (RT_Resolution): Return the clock resolution that is indicated by the
2128 system.
2129
2130 * s-parame-vxworks.adb
2131 Document that this body is used for RTX in RTSS (kernel) mode.
2132
2133 * gcc-interface/Makefile.in
2134 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2135 s-parame-vxworks.adb body in order to have reasonable stack sizes in
2136 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2137 cannot ask for too big values.
2138
21392008-07-31 Robert Dewar <dewar@adacore.com>
2140
2141 * exp_aggr.adb: Minor reformatting
2142
2143 * makeutl.adb: Minor reformatting
2144
2145 * prj-env.adb: Minor reformatting
2146
1e0f7ffb
AC
21472008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2148
2149 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2150 tagged type is completed by a concurrent type.
2151
21522008-07-31 Gary Dismukes <dismukes@adacore.com>
2153
2154 * sem_aggr.adb:
2155 (Resolve_Record_Aggregate): Bypass error that a type without
2156 components must have a "null record" aggregate when compiling for Ada
2157 2005, since it's legal to give an aggregate of form (others => <>)
2158 for such a type.
2159
fa4bc5ab
AC
21602008-07-31 Javier Miranda <miranda@adacore.com>
2161
2162 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2163 handle synchronized types. Required to handle well the object.operation
2164 notation applied to synchronized types.
2165
21662008-07-31 Quentin Ochem <ochem@adacore.com>
2167
2168 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2169 anymore - just used internally.
2170 Added handling of very small tasks - when the theoretical size is
2171 already full at the point of the call.
2172 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2173 not need to be added to the result.
2174
21752008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2176
2177 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2178 corresponding spec is a primitive wrapper. Update comment.
2179
21802008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2181
2182 * bindgen.adb Comment reformatting. Update the list of run-time globals.
2183 (Gen_Adainit_Ada): Add the declaration, import and value set for
2184 configuration flag Canonical_Streams.
2185 (Gen_Adainit_C): Add the declaration and initial value of external
2186 symbol __gl_canonical_streams.
9e81dbc7 2187
fa4bc5ab 2188 * init.c: Update the list of global values computed by the binder.
9e81dbc7 2189
fa4bc5ab 2190 * opt.ads: Add flag Canonical_Streams.
9e81dbc7 2191
fa4bc5ab
AC
2192 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2193 semantically handled pragmas.
9e81dbc7 2194
fa4bc5ab
AC
2195 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2196 (Analyze_Pragma): Add case for pragma Canonical_Streams.
9e81dbc7 2197
fa4bc5ab 2198 * snames.adb: Add character value for name Canonical_Streams.
9e81dbc7 2199
fa4bc5ab
AC
2200 * snames.ads:
2201 Add Name_Canonical_Streams to the list of configuration pragmas.
2202 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
9e81dbc7 2203
fa4bc5ab 2204 * snames.h: Add a definition for Pragma_Canonical_Streams.
9e81dbc7 2205
fa4bc5ab
AC
2206 * s-ststop.adb:
2207 Add a flag and import to seize the value of external symbol
2208 __gl_canonical_streams. Update comment and initial value of constant
2209 Use_Block_IO.
9e81dbc7 2210
fa4bc5ab 2211 * gnat_rm.texi: Add section of pragma Canonical_Streams.
9e81dbc7 2212
fa4bc5ab
AC
2213 * gnat_ugn.texi:
2214 Add pragma Canonical_Streams to the list of configuration pragmas.
2215
22162008-07-31 Ed Schonberg <schonberg@adacore.com>
2217
2218 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2219 has the form A.B.C and B is a unit renaming, analyze its compilation
2220 unit and add a with_clause on A.b to the context.
2221
f32b9cd1
AC
22222008-07-31 Vincent Celier <celier@adacore.com>
2223
2224 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2225 return the empty string, instead of raising Constraint_Error.
2226
22272008-07-31 Gary Dismukes <dismukes@adacore.com>
2228
2229 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
9e81dbc7 2230
f32b9cd1
AC
2231 * checks.adb (Apply_Accessibility_Check): Insert the check on
2232 Insert_Node.
9e81dbc7 2233
f32b9cd1
AC
2234 * exp_attr.adb:
2235 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2236 to new parameter Insert_Node on call to Apply_Accessibility_Check.
2237 Necessary to distinguish the insertion node because the dereferenced
2238 formal may come from a rename, but the check must be inserted in
2239 front of the attribute.
9e81dbc7 2240
f32b9cd1
AC
2241 * exp_ch4.adb:
2242 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2243 call to Apply_Accessibility_Check.
2244 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2245 on call to Apply_Accessibility_Check.
2246 Minor reformatting
2247
22482008-07-31 Javier Miranda <miranda@adacore.com>
2249
2250 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2251 types when the candidate type is a synchronized type.
9e81dbc7 2252
f32b9cd1
AC
2253 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2254 types, and complete management of synchronized types adding missing
2255 code to handle formal that is a synchronized type.
9e81dbc7 2256
f32b9cd1
AC
2257 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2258 are not available and cause the compiler to blowup. Found compiling
2259 test with switch -gnatc
9e81dbc7 2260
f32b9cd1
AC
2261 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2262 Has_Correct_Formal_Mode plus code cleanup.
2263
e92c92b2
AC
22642008-07-31 Bob Duff <duff@adacore.com>
2265
2266 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2267 recognized as two end-of-lines, but it should be just one.
2268
22692008-07-31 Thomas Quinot <quinot@adacore.com>
2270
2271 * exp_ch9.adb: Minor reformatting
2272
2273 * tbuild.ads: Fix several occurrences of incorrectly referring to
2274 Name_Find as Find_Name.
2275
22762008-07-31 Ed Schonberg <schonberg@adacore.com>
2277
2278 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2279 and the context is an object declaration with non-static bounds, treat
2280 the aggregate as non-static.
2281
22822008-07-31 Vincent Celier <celier@adacore.com>
2283
2284 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2285 Move back spec of Parse_Single_Project to body, as it is not called
2286 outside of package Prj.Part.
2287 (Project_Data): Remove components Linker_Name, Linker_Path and
2288 Minimum_Linker_Options as they are no longer set.
2289 Remove function There_Are_Ada_Sources from package Prj and move code
2290 in the only place it was used, in Prj.Env.Set_Ada_Paths.
2291
ee5d7272
AC
22922008-07-31 Arnaud Charlet <charlet@adacore.com>
2293
2294 * mlib-utl.ads: Fix typo.
2295
22962008-07-31 Robert Dewar <dewar@adacore.com>
2297
2298 * sem_ch12.adb: Minor reformatting
2299
23002008-07-31 Sergey Rybin <rybin@adacore.com>
2301
2302 * gnat_ugn.texi: Change the description of the
2303 Overly_Nested_Control_Structures: now the rule always requires a
2304 positive parameter for '+R' option
2305
23062008-07-31 Thomas Quinot <quinot@adacore.com>
2307
2308 * g-pehage.adb: Minor reformatting
2309
23102008-07-31 Pascal Obry <obry@adacore.com>
2311
2312 * s-finimp.ads: Minor reformatting.
2313
23142008-07-31 Vincent Celier <celier@adacore.com>
2315
2316 * s-regexp.ads: Minor comment fix
2317
23182008-07-31 Arnaud Charlet <charlet@adacore.com>
2319
2320 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2321 so that we can compile this file successfully with -gnatc.
2322
23232008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2324
2325 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2326 of the type when looking for stream subprograms for type String,
2327 Wide_String and Wide_Wide_String.
9e81dbc7 2328
ee5d7272
AC
2329 * s-ststop.adb: Change the initialization expression of constant
2330 Use_Block_IO.
2331
23322008-07-31 Geert Bosch <bosch@adacore.com>
2333
2334 * arit64.c:
2335 New file implementing __gnat_mulv64 signed integer multiplication with
2336 overflow checking
2337
2338 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2339
2340 * gcc-interface/gigi.h:
2341 (standard_types): Add ADT_mulv64_decl
2342 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2343
2344 * gcc-interface/utils.c:
2345 (init_gigi_decls): Add initialization of mulv64_decl
2346
2347 * gcc-interface/trans.c:
2348 (build_unary_op_trapv): New function
2349 (build_binary_op_trapv): New function
2350 (gnat_to_gnu): Use the above functions instead of
2351 build_{unary,binary}_op
2352
2353 * gcc-interface/Makefile.in
2354 (LIBGNAT_SRCS): Add arit64.c
2355 (LIBGNAT_OBJS): Add arit64.o
2356
23572008-07-31 Vincent Celier <celier@adacore.com>
2358
2359 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2360 Linker'Default_Switches are declared. Warn if they are declared.
2361
23622008-07-31 Ed Schonberg <schonberg@adacore.com>
2363
2364 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2365 Insert_Actions to place the pointer declaration in the code, rather
2366 than Insert_Before_And_Analyze, so that insertions of temporaries are
2367 kept in the proper order when transient scopes are present.
2368
2369
b38c3c9e
AC
23702008-07-31 Robert Dewar <dewar@adacore.com>
2371
2372 * einfo.adb (Spec_PPC): Now defined for generic subprograms
9e81dbc7 2373
b38c3c9e 2374 * einfo.ads (Spec_PPC): Now defined for generic subprograms
9e81dbc7 2375
b38c3c9e
AC
2376 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2377 subprogram case
2378
23792008-07-31 Vincent Celier <celier@adacore.com>
2380
2381 * s-os_lib.adb: Minor comment fix
2382
23832008-07-31 Ed Schonberg <schonberg@adacore.com>
2384
2385 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2386 transfer pre/postconditions from generic copy to original tree, so that
2387 they will appear in each instance.
2388 (Process_PPCs): Do not transform postconditions into a procedure in a
2389 generic context, to prevent double expansion of check pragmas.
9e81dbc7 2390
b38c3c9e
AC
2391 * sem_attr.adb: In an instance, the prefix of the 'result attribute
2392 can be the renaming of the
2393 current instance, so check validity of the name accordingly.
2394
024238a2
AC
23952008-07-31 Robert Dewar <dewar@adacore.com>
2396
2397 * mlib-utl.ads: Minor reformatting
2398
23992008-07-31 Ed Schonberg <schonberg@adacore.com>
2400
2401 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2402 from context. This attribute must be usable in Ada95 mode.
2403 The attribute can appear in the body of a function marked
2404 Inline_Always, but in this case the postocondition is not enforced.
9e81dbc7 2405
024238a2
AC
2406 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2407 of an inlined call pre- and postconditions are legal
2408
24092008-07-31 Vincent Celier <celier@adacore.com>
2410
2411 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2412 were for gprmake only
2413
24142008-07-31 Robert Dewar <dewar@adacore.com>
2415
2416 * gnat_ugn.texi: Update -gnatN documentation.
2417
2418 * gnat_rm.texi: Add note about pre/postcondition
2419 pragmas not checked in conjunction with front-end inlining.
2420
035b2a77
AC
24212008-07-31 Robert Dewar <dewar@adacore.com>
2422
2423 * g-pehage.adb, g-pehage.ads: Minor reformatting
2424
24252008-07-31 Arnaud Charlet <charlet@adacore.com>
2426
2427 * mlib-utl.ads, prj-makr.ads: Add comments.
2428
636b71b9
AL
24292008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2430
9e81dbc7 2431 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
636b71b9
AL
2432 [WINDOWS]: Add s-winext.o.
2433
01ddebf2
EB
24342008-07-30 Eric Botcazou <ebotcazou@adacore.com>
2435
2436 PR ada/36554
2437 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2438 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2439 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2440 Set precision to 1 for subtype of BOOLEAN_TYPE.
2441 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2442 (make_type_from_size): Deal with BOOLEAN_TYPE.
2443 * gcc-interface/misc.c (gnat_print_type): Likewise.
2444 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2445 Set boolean_type_node as its translation in the table, as well
2446 as boolean_false_node for False and boolean_true_node for True.
2447 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2448 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2449 (create_param_decl): Deal with BOOLEAN_TYPE.
2450 (build_vms_descriptor): Likewise.
2451 (build_vms_descriptor64): Likewise.
2452 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2453
2a9cc4de
AC
24542008-07-30 Robert Dewar <dewar@adacore.com>
2455
2456 * exp_ch9.adb: Minor reformatting
2457
2458 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2459 if no primitive operation is found.
2460
2461 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2462
2463 * sem_ch8.adb: Minor reformatting
2464
24652008-07-30 Laurent Pautet <pautet@adacore.com>
2466
2467 * g-pehage.adb:
2468 Remove a limitation on the length of the words handled by the minimal
2469 perfect hash function generator.
2470
2471 * g-pehage.ads:
2472 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2473 Fix some typos.
2474
5cc6fa41
AC
24752008-07-30 Robert Dewar <dewar@adacore.com>
2476
2477 * gnatlink.adb: Minor reformatting
2478
24792008-07-30 Thomas Quinot <quinot@adacore.com>
2480
2481 * rtsfind.adb (Check_RPC): Check version consistency even when not
2482 generating RCI stubs. Provide more detailed error message in case of
2483 mismatch.
2484
24852008-07-30 Ed Schonberg <schonberg@adacore.com>
2486
2487 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2488 as a actual in an instance, check for a missing attribute to prevent
2489 program_error on an illegal program.
9e81dbc7 2490
5cc6fa41
AC
2491 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2492 error if primitive is not found, so that exception can be handled
2493 elsewhere on illegal programs.
2494
24952008-07-30 Robert Dewar <dewar@adacore.com>
2496
2497 * uintp.adb (UI_GCD): Fix potential overflow
2498
24992008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
2500
2501 * einfo.adb: Flag245 is now used.
2502 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2503 check to include functions.
2504 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2505 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2506 include functions.
2507 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2508 to the list of displayed flags.
2509
2510 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2511 Wrapped_Entity. These two flags are now present in functions.
2512 New flag Is_Private_Primitive.
2513 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2514
2515 * exp_ch9.adb:
2516 (Build_Wrapper_Bodies): New subprogram.
2517 (Build_Wrapper_Body): The spec and body have been moved to in
2518 Build_Wrapper_ Bodies. Code cleanup.
2519 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2520 Wrappers are now generated for primitives declared between the private
2521 and full view of a concurrent type that implements an interface.
2522 (Build_Wrapper_Specs): New subprogram.
2523 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2524 creation mechanism with a call to Build_Wrapper_Bodies.
2525 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2526 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2527 (Expand_N_Task_Body): Replace the wrapper body creation
2528 mechanism with a call to Build_Wrapper_Bodies.
2529 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2530 creation mechanism with a call to Build_Wrapper_Specs.
2531 (Is_Private_Primitive_Subprogram): New subprogram.
2532 (Overriding_Possible): Code cleanup.
2533 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2534
2535 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2536
2537 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2538 (Process_Full_View): Build wrapper specs for all primitives
2539 that belong to a private view completed by a concurrent type
2540 implementing an interface.
9e81dbc7 2541
5cc6fa41
AC
2542 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2543 is a primitive of a
2544 concurrent type with a private view that implements an interface, try to
2545 find the proper spec.
2546 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2547 primitive if the type of its first parameter is a non-generic tagged
2548 private type.
2549 (Analyze_Subprogram_Specification): Code reformatting.
2550 (Disambiguate_Spec): New routine.
2551 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2552 (Is_Private_Concurrent_Primitive): New routine.
2553
2554 * sem_ch6.ads:
2555 (Find_Corresponding_Spec): Add a formal to control the output of errors.
2556
6ca2b0a0
DR
25572008-07-30 Doug Rupp <rupp@adacore.com>
2558
2559 * gigi.h (build_vms_descriptor64): New function prototype.
2560 (fill_vms_descriptor): Modified function prototype.
2561
2562 * utils.c (build_vms_descriptor64): New function.
2563
2564 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2565
2566 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2567 argument.
2568
2569 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2570 64bit and 32bit descriptor and save the 64bit version as an alternate
2571 TREE_TYPE in the parameter.
2572 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2573 thin pointer.
2574
2575 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2576
002b2ad6
AC
25772008-07-30 Robert Dewar <dewar@adacore.com>
2578
2579 * make.adb: Minor reformatting
2580
2581 * mlib-utl.adb: Minor reformatting
2582
2583 * osint.ads: Minor reformatting
2584
25852008-07-30 Jose Ruiz <ruiz@adacore.com>
2586
2587 * adaint.c
2588 (__gnat_file_exists): Do not use __gnat_stat for RTX.
2589 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2590 avoid the use of this symbol from libgcc.a in RTX kernel mode.
2591
2592 * cio.c
2593 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2594 the function RtPrintf for console output.
9e81dbc7 2595
002b2ad6 2596 * argv.c Do not use the environ variable for RTX.
9e81dbc7 2597
002b2ad6
AC
2598 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2599 been moved before the call to Osint.Add_Default_Search_Dirs in order
2600 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2601 from the appropriate run time.
9e81dbc7 2602
002b2ad6
AC
2603 * targparm.ads
2604 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2605 target is a RTSS module for RTX.
9e81dbc7 2606
002b2ad6
AC
2607 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2608 RTX_RTSS_Kernel_Module
2609 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2610
2611 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2612 exception handling mechanism for Windows and RTX in Win32 mode, but
2613 not for RTX in kernel mode (RTSS).
2614 (LIBGNAT_SRCS): Remove ada.h
2615
00afcaa0
PB
26162008-07-30 Paolo Bonzini <bonzini@gnu.org>
2617
2618 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2619 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2620 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2621 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2622 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2623 ALL_ADA_CFLAGS): Remove.
2624 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2625 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2626 (GCC_CFLAGS): Remove X_CFLAGS.
2627 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2628 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2629 (ADA_CFLAGS): Substitute.
2630
a7dafa20
LG
26312008-07-30 Laurent Guerby <laurent@guerby.net>
2632
9e81dbc7
AS
2633 PR ada/5911
2634 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2635 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2636 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2637 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2638 by stamp-gnatlib2-rts.
2639
70b1e376
RW
26402008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2641
2642 PR documentation/15479
2643 * gnat-style.texi: Remove AdaCore copyright statement and GPL
2644 statement for GNAT. Add @copying stanza, use it. Update to
2645 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
2646 title as Front-Cover Text.
2647 * gnat_rm.texi: Likewise.
2648 * gnat_ugn.texi: Likewise.
2649
343eba42
JH
26502008-07-29 Jan Hubicka <jh@suse.cz>
2651
2652 * trans.c (process_inlined_subprograms): Remove tree_really_inline
2653 check.
2654
ebf5ba04
AC
26552008-07-29 Arnaud Charlet <charlet@adacore.com>
2656
2657 * gcc-interface: New directory.
2658
2659 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2660 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2661 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2662 to gcc-interface subdirectory.
2663
46897370
AL
26642008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2665
2666 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2667
e90acd93
JH
26682008-07-28 Jan Hubicka <jh@suse.cz>
2669
2670 * misc.c (gnat_post_options): Do not set flag_no_inline.
2671
726a989a
RB
26722008-07-28 Richard Guenther <rguenther@suse.de>
2673
2674 Merge from gimple-tuples-branch.
2675
2676 2008-07-22 Olivier Hainque <hainque@adacore.com>
2677
2678 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2679 this is called for an elab proc to be discarded if empty.
2680 * utils.c (end_subprog_body): Honor ELAB_P.
2681 (build_function_stub): Adjust call to end_subprog_body.
2682 * trans.c (Subprogram_Body_to_gnu): Likewise.
2683 (gigi): Reorganize processing of elab procs to prevent
2684 gimplifying twice, using the new end_subprog_body argument.
2685
2686 2008-07-19 Richard Guenther <rguenther@suse.de>
2687
2688 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2689 (utils.o): Likewise.
2690 * trans.c: Include tree-iterator.h.
2691 (gnat_gimplify_expr): Adjust prototype. Fix typo.
2692 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2693 (set_expr_location_from_node): Likewise.
2694 (gigi): Tuplify.
2695 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2696 of GENERIC_NEXT.
2697 * utils.c: Include tree-iterator.h.
2698 * gigi.h (gnat_gimplify_expr): Adjust prototype.
2699
2700 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
2701
2702 * trans.c: Include gimple.h instead of tree-gimple.h.
2703 * utils.c: Same.
2704
2705 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
2706
2707 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2708
8ae3959e 27092008-07-25 Jan Hubicka <jh@suse.cz>
7e8b322a 2710
8ae3959e
EB
2711 * utils.c (end_subprog_body): Remove inline trees check.
2712 * misc.c (gnat_post_options): Do not set flag_inline_trees.
7e8b322a 2713
4a7bb85b
RO
27142008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2715
2716 * raise-gcc.c: Move tsystem.h before tm.h.
2717
ec45d105
AC
27182008-07-20 Arnaud Charlet <charlet@adacore.com>
2719
2720 * gnathtml.pl: New file.
2721
95331614 27222008-07-19 Olivier Hainque <hainque@adacore.com>
8ae3959e 2723
95331614
OH
2724 * targtyps.c (get_target_default_allocator_alignment): Use
2725 MALLOC_ABI_ALIGNMENT.
2726
dd7ac716
OH
27272008-07-17 Olivier Hainque <hainque@adacore.com>
2728
2729 * adaint.c (__MINGW32__ section): Include ctype.h and define
2730 a fallback ISALPHA if IN_RTS.
9e81dbc7 2731 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
dd7ac716 2732
a7a46bb2
OH
27332008-07-17 Olivier Hainque <hainque@adacore.com>
2734
2735 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2736 argument, to apply to references in addition to definitions. Prevent
2737 setting TREE_STATIC on externals.
2738 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2739
66bfd481
RW
27402008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2741
2742 PR documentation/15479
2743 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2744 Replace backets around optional parameters with @ovar
2745 where possible, use @r{[}, @r{]} otherwise.
2746 Replace some @r, @i, and @emph with @var where appropriate.
2747
7a803dd8
EB
27482008-07-02 Eric Botcazou <ebotcazou@adacore.com>
2749
2750 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2751
7d71283c
KG
27522008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2753
2754 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2755 -Wc++-compat warnings.
2756 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2757 __gnat_locate_exec_on_path): Likewise.
2758 * decl.c (annotate_value): Likewise.
2759 * misc.c (gnat_handle_option): Likewise.
2760 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2761 post_error_ne_tree): Likewise.
2762
d9338c67
EB
27632008-06-27 Eric Botcazou <ebotcazou@adacore.com>
2764
2765 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2766 version of its type, attempt to first convert its elements.
2767
b4b010ad
CP
27682008-06-26 Chris Proctor <chrisp_42@bigpond.com>
2769
2770 * Makefile.in: Fix *86 kfreebsd target specific pairs.
2771
0ee61065
ST
27722008-06-25 Samuel Tardieu <sam@rfc1149.net>
2773
2774 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2775
324ed5a6
EB
27762008-06-24 Eric Botcazou <ebotcazou@adacore.com>
2777
2778 * utils2.c (known_alignment): Derive the alignment from pointed-to
2779 types only if it is otherwise unknown.
2780 <INTEGER_CST>: Tidy.
2781 <MULT_EXPR>: Likewise.
2782 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2783 that of the base.
2784
2d31e498
JDA
27852008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2786
2787 PR ada/36573
2788 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2789
6ccde948
RW
27902008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2791
2792 * gnat_rm.texi (Implementation Defined Characteristics)
2793 (Standard Library Routines): Use @smallexample for indented
2794 text. Drop Indentation outside examples.
2795 * gnat_ugn.texi: Likewise.
2796
d8612af2
OH
27972008-06-13 Olivier Hainque <hainque@adacore.com>
2798
2799 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2800 if undefined.
2801 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2802 realignment with force_align_arg_pointer attribute on foreign
2803 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
9e81dbc7 2804
ca789c7f
OH
28052008-06-13 Olivier Hainque <hainque@adacore.com>
2806
2807 * utils.c (rest_of_record_type_compilation): When computing
2808 encodings for the components of a variable size type, early
2809 strip conversions on the current position expression to make
2810 sure it's shape is visible. Use remove_conversions for this
2811 purpose.
2812
1dd4a3e6
EB
28132008-06-12 Eric Botcazou <ebotcazou@adacore.com>
2814
2815 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2816 constrained subtype of a discriminated type, discard the fields that
2817 are beyond its limits according to its size.
2818
12ae9b26
OH
28192008-06-10 Olivier Hainque <hainque@adacore.com>
2820
2821 * utils.c (create_subprog_decl): If this is for the 'main' entry
2822 point according to the asm name, redirect main_identifier_node.
2823
912cb442
EB
28242008-06-09 Eric Botcazou <ebotcazou@adacore.com>
2825
2826 * decl.c (components_to_record): Adjust the packedness for the
2827 qualified union as well.
2828
4a598c32
AC
28292008-06-09 Arnaud Charlet <charlet@adacore.com>
2830
2831 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2832 checks non fatal.
2833
4b92fd3c
ST
28342008-06-07 Samuel Tardieu <sam@rfc1149.net>
2835
2836 * sem_res.adb (Large_Storage_Type): A type is large if it
2837 requires as many bits as Positive to store its values and its
2838 bounds are known at compile time.
2839 * sem_ch13.adb (Minimum_Size): Note that this function returns
2840 0 if the size is not known at compile time.
2841
968c8001
OH
28422008-06-06 Nicolas Setton <setton@adacore.com>
2843 Olivier Hainque <hainque@adacore.com>
2844
2845 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2846 attribute, parallel descriptive type attached to another
2847 type for debug info generation purposes.
2848 * utils.c (add_parallel_type): New function, register
2849 parallel type to be attached to a type.
2850 (get_parallel_type): New function, fetch a registered
2851 parallel type, if any.
2852 (rest_of_record_type_compilation): Register the parallel
2853 type we make for variable size records.
2854 * gigi.h (add_parallel_type, get_parallel_type): Declare.
2855 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2856 parallel debug types we make.
2857 * trans.c (extract_encoding, decode_name): New functions.
2858 (gigi): If the DWARF attribute extensions are available, setup
2859 to use them.
2860 * lang.opt: Register language specific processing request
2861 for -gdwarf+.
2862 * misc.c (gnat_dwarf_extensions): New global variable. How much
2863 do we want of our DWARF extensions. 0 by default.
2864 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2865 (gnat_post_options): Map gnat_dwarf_extensions to the
2866 commonuse_gnu_debug_info_extensions for later processing.
9e81dbc7 2867
b30199b8
ST
28682008-06-04 Samuel Tardieu <sam@rfc1149.net>
2869
2870 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2871
30783513
RW
28722008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2873
2874 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2875 * gnat_ugn.texi (Style Checking)
2876 (Adding the Results of Compiler Checks to gnatcheck Output)
2877 (Example of Binder Output File): Fix typos.
2878 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2879 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2880 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2881 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2882 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2883 sinfo.ads, utils.c: Fix typos in comments.
2884 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2885
fb8368fd
AC
28862008-05-29 Thomas Quinot <quinot@adacore.com>
2887
2888 * sem_eval.adb: Minor reformatting
2889
28902008-05-29 Ed Schonberg <schonberg@adacore.com>
2891
2892 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2893 is abstract, do not apply abstractness check on subprogram if this is
2894 a renaming declaration.
2895
28962008-05-29 Arnaud Charlet <charlet@adacore.com>
2897
2898 PR ada/864
2899 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2900 allow recognition of program suffix in addition to prefix.
9e81dbc7 2901
fb8368fd 2902 * gnatchop.adb (Locate_Executable): Add support for prefix.
9e81dbc7 2903
fb8368fd
AC
2904 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2905 mlib-utl.adb: Adjust calls to Program_Name.
2906
fff3f472
AC
29072008-05-29 Robert Dewar <dewar@adacore.com>
2908
2909 * sem_ch3.adb: Minor reformatting
2910 * sem_prag.adb: Minor reformatting
2911 * sem_res.adb: Minor reformatting
2912 * sinput-p.ads: Minor reformatting
2913
29142008-05-29 Javier Miranda <miranda@adacore.com>
2915
2916 * sem_util.adb:
2917 (Abstract_Interface_List): Add missing support for full type-declaration
2918 associated with synchronized types.
2919
29202008-05-29 Robert Dewar <dewar@adacore.com>
2921
2922 * sem_eval.adb (Is_Same_Value): Take care of several more cases
2923
acca98c0
AC
29242008-05-28 Ed Schonberg <schonberg@adacore.com>
2925
2926 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2927 access type, wrap the expression in a conversion to force an
2928 accessibility check.
2929
2930 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2931 accessibility checks even when expansion is disabled in order to
2932 generate messages in the presence of previous errors or in
2933 semantics-only mode.
2934
29352008-05-28 Eric Botcazou <ebotcazou@adacore.com>
2936
2937 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2938 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2939
29402008-05-28 Vincent Celier <celier@adacore.com>
2941
2942 PR ada/34446
2943 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2944 preprocessing expressions
2945
29462008-05-28 Vincent Celier <celier@adacore.com>
2947
2948 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2949 for preprocessing
9e81dbc7 2950
acca98c0
AC
2951 * sinput-p.ads: Minor comment update and reformatting
2952
29532008-05-28 Ed Schonberg <schonberg@adacore.com>
2954
2955 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2956 type has a deeper level than any master only when it is the type of an
2957 access parameter.
2958
8250171b
AC
29592008-05-28 Javier Miranda <miranda@adacore.com>
2960
2961 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2962
29632008-05-28 Javier Miranda <miranda@adacore.com>
2964
2965 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2966 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2967 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2968 Add code that was previously located in
2969 Find_Overridden_Synchronized_Primitive because it is only used here.
2970
29712008-05-28 Sergey Rybin <rybin@adacore.com>
2972
2973 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2974 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2975
00ea9517
RD
29762008-05-28 Robert Dewar <dewar@adacore.com>
2977
2978 * restrict.ads:
2979 Add missing restrictions, and properly label all GNAT defined ones
9e81dbc7 2980
00ea9517
RD
2981 * rtsfind.ads:
2982 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2983 Add entry for Ada.Task_Termination.Set_Specific_Handler
2984 Add entry for Ada.Task_Termination.Specific_Handler
9e81dbc7 2985
00ea9517
RD
2986 * s-rident.ads:
2987 Add missing restrictions and properly mark all gnat defined ones
9e81dbc7 2988
00ea9517
RD
2989 * sem_ch3.adb:
2990 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
9e81dbc7 2991
00ea9517
RD
2992 * sem_res.adb:
2993 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2994
2995 * gnat_rm.texi: Add missing restrictions, and properly label all
2996 GNAT defined ones
2997
29982008-05-28 Robert Dewar <dewar@adacore.com>
2999
3000 * restrict.adb:
3001 (Check_Restriction): violation of restriction No_Finalization is
3002 treated as a serious error to stop expansion
3003
30042008-05-28 Robert Dewar <dewar@adacore.com>
3005
3006 * exp_util.adb: Minor reformatting
3007 * exp_util.ads: Minor reformatting.
3008
0b795892
AC
30092008-05-28 Arnaud Charlet <charlet@adacore.com>
3010
3011 * Make-lang.in: Remove gprmake.
3012
3013 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
3014
5840819a
AC
30152008-05-28 Ed Schonberg <schonberg@adacore.com>
3016
3017 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
3018 improper progenitor names, and avoid cascaded errors.
3019
30202008-05-28 Robert Dewar <dewar@adacore.com>
3021
3022 * gnat_rm.texi: Add note on Old giving warning when applied to constant
3023
3024 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
3025 a constant
3026
30272008-05-28 Robert Dewar <dewar@adacore.com>
3028
3029 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
3030 size
3031
30322008-05-28 Robert Dewar <dewar@adacore.com>
3033
3034 * exp_ch5.adb:
3035 (Expand_Simple_Function_Return): Copy unaligned result into temporary
3036
8c3dd7a8
JM
30372008-05-28 Javier Miranda <miranda@adacore.com>
3038
3039 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
3040 for user-defined predefined primitives.
9e81dbc7 3041
8c3dd7a8
JM
3042 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
3043 (Find_Overridden_Synchronized_Primitive): Ditto.
3044
3045 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
3046
35b80405
AC
30472008-05-27 Arnaud Charlet <charlet@adacore.com>
3048
3049 * a-ststio.adb, s-direio.adb:
3050 Further code clean up of previous change.
3051 Update comments.
3052
30532008-05-27 Vincent Celier <celier@adacore.com>
3054
3055 * prj-nmsc.adb: Minor reformatting
3056
30572008-05-27 Bob Duff <duff@adacore.com>
3058
3059 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
3060 untagged private type with a tagged full type, where the full type has
3061 a self reference, create the corresponding class-wide type early, in
3062 case the self reference is "access T'Class".
3063
30642008-05-27 Ed Schonberg <schonberg@adacore.com>
3065
3066 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
3067 tasks and context is an object declaration. create master entity before
3068 expansion.
3069
30702008-05-27 Robert Dewar <dewar@adacore.com>
3071
3072 * mlib-prj.adb: Minor reformatting
3073
3074 * prj-part.adb: Minor reformatting
3075
3076 * prj.ads: Minor reformatting
3077
3078 * exp_ch3.adb: Minor reformatting.
3079
3080 * sem_ch3.ads: Minor reformatting
3081
3082 * sem_eval.adb: Minor reformatting
3083
d5c998a9
AC
30842008-05-27 Vincent Celier <celier@adacore.com>
3085
3086 * gnatcmd.adb:
3087 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3088
30892008-05-27 Ed Schonberg <schonberg@adacore.com>
3090
3091 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3092 tasks, create an activation chain now, before the expansion into
3093 assignments and build-in-place calls that require the presence of an
3094 activation chain.
3095 (Backend_Processing_Possible): If the component type is inherently
3096 limited, the aggregate must be expanded into individual built-in-place
3097 assignments.
3098
3099 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3100 determine whether an allocation extra parameter must be built, to
3101 handle case of a private type whose full type is a discriminated type
3102 with defaults.
3103
31042008-05-27 Bob Duff <duff@adacore.com>
3105
3106 * gnat_rm.texi:
3107 Document the new behavior regarding trampolines.
3108
31092008-05-27 Arnaud Charlet <charlet@adacore.com>
3110
3111 * a-direio.adb, a-sequio.adb: Replace address clause by
3112 unrestricted_access, simpler and compatible with .NET.
3113
31142008-05-27 Vincent Celier <celier@adacore.com>
3115
3116 * prj-part.adb:
3117 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3118 a project file, so that symbolic links are not resolved.
3119
31202008-05-27 Arnaud Charlet <charlet@adacore.com>
3121
3122 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3123 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3124 portable across GNAT targets, since this kind of address clause is not
3125 supported by VM back-ends (.NET/JGNAT).
3126
79d2a727
AC
31272008-05-27 Arnaud Charlet <charlet@adacore.com>
3128
3129 * bindgen.adb: Update comments.
9e81dbc7 3130
79d2a727
AC
3131 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3132
31332008-05-27 Vincent Celier <celier@adacore.com>
3134
3135 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3136 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3137 mlib-tgt.adb, prj-env.adb, prj-env.ads:
3138 (Path_Information): New record type
3139 Use component of type Path_Information when there are two paths, one in
3140 canonical format and one in display format.
3141 Update the project manager to these new components.
3142
0f99f391
AC
31432008-05-27 Robert Dewar <dewar@adacore.com>
3144
3145 * makeutl.adb: Minor reformatting
3146 * prj-nmsc.adb: Minor reformatting
3147 * s-stausa.adb: Minor reformatting
3148 * s-stausa.ads: Minor reformatting
3149 * sem_ch6.adb: Minor reformatting
3150
31512008-05-27 Thomas Quinot <quinot@adacore.com>
3152
3153 * sem_res.adb: Minor comment fixes
3154
d18af35f
AC
31552008-05-27 Thomas Quinot <quinot@adacore.com>
3156
3157 * makeutl.adb: Minor code reorganization
3158
3159 * exp_aggr.adb: Add ??? comment
3160 Fix typo
3161
3162 * exp_ch6.adb: Minor reformatting
3163
31642008-05-27 Quentin Ochem <ochem@adacore.com>
3165
3166 * s-stausa.adb (Initialize): Updated result initialization, and
3167 initialization of environment stack.
3168 (Fill_Stack): Improved computation of the pattern zone, taking into
3169 account already filled at the calling point.
3170 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3171 Measure and Overflow_Guard.
3172 (Report_Result): Fixed computation of the result using new fields of
3173 Stack_Analyzer.
9e81dbc7 3174
d18af35f
AC
3175 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3176 params by more explicit Stack_Size / Max_Pattern_Size params.
3177 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3178 Added Stack_Used_When_Filling field.
3179 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3180 Min_Measure and Max_Measure fields.
9e81dbc7 3181
d18af35f
AC
3182 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3183
31842008-05-27 Vincent Celier <celier@adacore.com>
3185
3186 * prj-nmsc.adb:
3187 (Check_File): Make sure that a unit that replaces the same unit in a
3188 project being extended is properly processed.
3189
31902008-05-27 Ed Schonberg <schonberg@adacore.com>
3191
3192 * sem_ch3.adb:
3193 (Get_Discr_Value): Remove obsolete code that failed to find the value
3194 of a discriminant for an inherited task component appearing in a type
3195 extension.
3196
31972008-05-27 Thomas Quinot <quinot@adacore.com>
3198
3199 (System.File_IO.{Close, Delete, Reset}):
3200 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
9e81dbc7 3201
d18af35f
AC
3202 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3203 Pass File parameter by reference.
3204
aeff280b
AC
32052008-05-27 Vincent Celier <celier@adacore.com>
3206
3207 * prj-nmsc.adb:
3208 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3209 sources of the same project that have the same object file name.
3210 (Find_Explicit_Sources): Always remove a source exception that was not
3211 found.
3212
32132008-05-27 Thomas Quinot <quinot@adacore.com>
3214
3215 * sem_ch3.adb: Minor reformatting
3216
32172008-05-27 Ed Schonberg <schonberg@adacore.com>
3218
3219 * sem_ch6.adb:
3220 (Is_Interface_Conformant): Handle properly a primitive operation that
3221 overrides an interface function with a controlling access result.
3222 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3223 inherited and overriding operations, omit as well the conformance check
3224 on result types, to prevent spurious errors.
3225
32262008-05-27 Vincent Celier <celier@adacore.com>
3227
3228 * makeutl.ads, makeutl.adb:
3229 (Set_Location): New procedure
3230 (Get_Location): New function
3231 (Update_Main): New procedure
3232
7bf402c1
AC
32332008-05-27 Vincent Celier <celier@adacore.com>
3234
3235 * prj-nmsc.adb:
3236 (Check_Library): Allow standard project to be extended as a static
3237 library project.
3238 (Get_Mains): Do not inherit attribute Main in an extending library
3239 project.
3240
32412008-05-27 Eric Botcazou <ebotcazou@adacore.com>
3242
3243 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3244 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3245 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3246 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3247 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3248 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3249 * system-mingw.ads (Always_Compatible_Rep): Likewise.
3250 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3251 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3252 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
9e81dbc7 3253
52268145
AC
32542008-05-27 Ed Schonberg <schonberg@adacore.com>
3255
3256 * sem_attr.adb: add guard to previous patch.
3257
32582008-05-27 Ed Schonberg <schonberg@adacore.com>
3259
3260 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3261 a synchronized tagged type, do not attempt to build dispatch table for
3262 full view. The table is built for the corresponding record type, which
3263 has its own declaration.
3264
32652008-05-27 Gary Dismukes <dismukes@adacore.com>
3266
3267 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3268 to the known type entity E, rather than setting it to Any_Type. Fixes
3269 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3270 for objects whose type had an illegal constraint.
3271
32722008-05-27 Vincent Celier <celier@adacore.com>
3273
3274 * gnat_ugn.texi:
3275 Add succinct documentation for attribute Excluded_Source_List_File
3276
32772008-05-27 Vincent Celier <celier@adacore.com>
3278
3279 * prj-attr.adb: Add new project level attribute Map_File_Option
9e81dbc7 3280
52268145 3281 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
9e81dbc7 3282
52268145
AC
3283 * prj.ads: Minor reformatting and comment update
3284 (Project_Configuration): New component Map_File_Option
9e81dbc7 3285
52268145 3286 * snames.adb: New standard name Map_File_Option
9e81dbc7 3287
52268145
AC
3288 * snames.ads: New standard name Map_File_Option
3289
32902008-05-27 Vincent Celier <celier@adacore.com>
3291
3292 * xsnames.adb: Remove unused variable Oname
3293
32942008-05-27 Doug Rupp <rupp@adacore.com>
3295
3296 * exp_ch6.adb:
3297 (Expand_N_Function_Call): Fix comments. Minor reformatting.
3298
3299 * exp_vfpt.ads:
3300 (Expand_Vax_Foreign_Return): Fix comments.
3301
33022008-05-27 Thomas Quinot <quinot@adacore.com>
3303
3304 * exp_dist.adb: Minor reformating
3305
094d7cfa
AC
33062008-05-26 Gary Dismukes <dismukes@adacore.com>
3307
3308 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3309 No_Default_Initialization, which is now delayed until the freeze point
3310 of the object. Add a comment about deferral of the check.
9e81dbc7 3311
094d7cfa
AC
3312 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3313 on objects is moved here.
3314
33152008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3316
3317 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3318 (Compare_Array_S16): Adjust for above change.
3319 * s-casi32.adb (Uword): Likewise.
3320 (Compare_Array_S32): Likewise.
3321 * s-casi64.adb (Uword): Likewise.
3322 (Compare_Array_S64): Likewise.
3323 * s-caun16.adb (Uhalf): Likewise.
3324 (Compare_Array_U16): Likewise.
3325 * s-caun32.adb (Uword): Likewise.
3326 (Compare_Array_U32): Likewise.
3327 * s-caun64.adb (Uword): Likewise.
3328 (Compare_Array_U64): Likewise.
9e81dbc7 3329
094d7cfa
AC
33302008-05-26 Robert Dewar <dewar@adacore.com>
3331
3332 * exp_ch6.adb: Add ??? comment for previous change
3333
3334 * exp_vfpt.adb: Minor reformatting
3335
3336 * exp_vfpt.ads: Add ??? comment for last change
3337
3338 * sem_attr.adb: Add some ??? comments for previous change
3339
3340 * s-vaflop.ads: Add comments for previous change
3341
33422008-05-26 Doug Rupp <rupp@adacore.com>
3343
3344 * s-vaflop-vms-alpha.adb:
3345 Remove System.IO use clause, to prevent spurious ambiguities when
3346 package is access through rtsfind.
3347
33482008-05-26 Sergey Rybin <rybin@adacore.com>
3349
3350 * tree_io.ads (ASIS_Version_Number): Update because of the changes
3351 made in front-end
3352
9019f3fc
AC
33532008-05-26 Ed Schonberg <schonberg@adacore.com>
3354
3355 * sem_attr.adb:
3356 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
3357 converted to S (A)'address only if A .. B is known to be a non-null
3358 range.
3359
33602008-05-26 Doug Rupp <rupp@adacore.com>
3361
3362 * s-vaflop.adb:
3363 (Return_D, Return_F, Return_G): New functions.
3364
3365 * s-vaflop.ads:
3366 (Return_D, Return_F, Return_G): New functions.
3367
3368 * exp_vfpt.adb:
3369 (Expand_Vax_Foreign_Return): New procedure
3370
3371 * exp_vfpt.ads:
3372 (Expand_Vax_Foreign_Return): New procedure
3373
3374 * rtsfind.ads:
3375 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3376 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3377
3378 * exp_ch6.adb:
3379 Import Exp_Vfpt
3380 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3381
3382 * s-vaflop-vms-alpha.adb:
3383 (Return_D, Return_F, Return_G): New functions.
3384
33852008-05-26 Gary Dismukes <dismukes@adacore.com>
3386
3387 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3388 init proc entity when there is actual default initialization associated
3389 with the component type, to avoid spurious errors on objects of scalar
3390 array types that are marked Is_Public when No_Default_Initialization
3391 applies.
3392
d693e39d
TQ
33932008-05-26 Thomas Quinot <quinot@adacore.com>
3394
3395 * rtsfind.ads, rtsfind.adb:
3396 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3397 (Check_RPC): Support per-PCS-kind API versioning.
9e81dbc7 3398
d693e39d
TQ
3399 exp_dist.ads, exp_dist.adb:
3400 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3401 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3402 library function Get_RACW.
3403 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3404 library function Get_Reference.
3405 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3406 through an intermediate Any.
3407 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3408 going through an intermediate Any.
9e81dbc7 3409
d693e39d
TQ
3410 * sem_dist.adb: Minor reformatting.
3411
ad89bc8d
AC
34122008-05-26 Javier Miranda <miranda@adacore.com>
3413
3414 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3415 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3416 (Is_Internal): Adding documentation on internal entities that have
3417 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3418
3419 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3420 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3421 Added assertion to force entities with this attribute to have
3422 attribute Is_Internal set to True.
3423 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3424
3425 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3426 renamed as Derive_Progenitor_Subprograms. In addition, its code is
3427 a new implementation.
3428 (Add_Interface_Tag_Components): Remove special management of
3429 synchronized interfaces.
3430 (Analyze_Interface_Declaration): Minor reformating
3431 (Build_Derived_Record_Type): Minor reformating
3432 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3433 predefined primitive inherited from interface type because the body of
3434 internally generated predefined primitives of tagged types are generated
3435 later by Freeze_Type
3436 (Derive_Subprogram): Avoid generating an internal name if the parent
3437 subprogram overrides an interface primitive.
3438 (Derive_Subprograms): New implementation that keeps separate the
3439 management of tagged types not implementing interfaces, from tagged
3440 types that implement interfaces.
3441 (Is_Progenitor): New implementation.
3442 (Process_Full_View): Add documentation
3443 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3444 by call to Derive_Progenitor_Subprograms.
3445
3446 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3447 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3448 Skip_Controlling_Formals.
3449
3450 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3451 (Check_Conventions): New implementation. Remove local subprogram
3452 Skip_Check. Remove formal Search_From of routine Check_Convention.
3453 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3454 Skip_Controlling_Formals.
3455 (New_Overloaded_Entity): Enable addition of predefined dispatching
3456 operations.
3457
3458 * sem_disp.ads
3459 (Find_Primitive_Covering_Interface): New subprogram.
3460
3461 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3462 the task body procedure as a primitive of the corresponding tagged
3463 type.
3464 (Check_Operation_From_Private_Type): Avoid adding twice an entity
3465 to the list of primitives.
3466 (Find_Primitive_Covering_Interface): New subprogram.
3467 (Override_Dispatching_Operation): Add documentation.
3468
3469 * sem_type.adb (Covers): Minor reformatings
3470
3471 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3472 Collect_Interfaces.
3473 Rename formal.
3474 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3475 (Implements_Interface): New subprogram.
3476 (Is_Parent): Removed.
3477 (Primitive_Names_Match): New subprogram.
3478 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3479 (Ultimate_Alias): New subprogram.
3480
3481 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3482 Collect_Interfaces.
3483 Remove special management for synchronized types. Rename formal. Remove
3484 internal subprograms Interface_Present_In_Parent and Add_Interface.
3485 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3486 on non-record types by code to return false in such case.
3487 (Implements_Interface): New subprogram.
3488 (Is_Parent): Removed. No special management is now required for
3489 synchronized types covering interfaces.
3490 (Primitive_Names_Match): New subprogram.
3491 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3492 (Ultimate_Alias): New subprogram.
3493
3494 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3495 Add internal entities associated with secondary dispatch tables to
3496 the list of tagged type primitives that are not interfaces.
3497 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3498 (Make_Predefined_Primitive_Specs): Code reorganization to improve
3499 the management of predefined equality operator. In addition, if
3500 the type has an equality function corresponding with a primitive
3501 defined in an interface type, the inherited equality is abstract
3502 as well, and no body can be created for it.
3503
3504 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3505 exp_util to exp_disp.
3506 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3507 an entity corresponds with one of the predefined primitives required
3508 to implement interfaces.
3509 Update copyright notice.
3510
3511 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3512 final check on abstract subprograms all the primitives associated with
3513 interface primitives because they must be visible in the public and
3514 private part.
3515 (Write_DT): Use Find_Dispatching_Type to locate the name of the
3516 interface type. This allows the use of this routine, for debugging
3517 purposes, when the tagged type is not fully decorated.
3518 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3519 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3520 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3521 entity corresponds with one of the predefined primitives required to
3522 implement interfaces.
3523
3524 * exp_util.adb (Find_Interface_ADT): New implementation
3525 (Find_Interface): Removed.
3526
3527 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3528 list of interfaces associated with nodes
3529 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3530
35312008-05-26 Thomas Quinot <quinot@adacore.com>
3532
3533 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3534 condition for assignment to temporary.
3535
c878b2ef
AC
35362008-05-26 Ed Schonberg <schonberg@adacore.com>
3537
3538 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3539 checks on the upper bound if the index type is a modular type, to
3540 prevent wrap-around computations when size is close to upper bound of
3541 type.
3542
35432008-05-26 Robert Dewar <dewar@adacore.com>
3544
3545 * sem_ch3.adb: Minor reformatting
3546
39281edf
AC
35472008-05-26 Ed Schonberg <schonberg@adacore.com>
3548
3549 * sem_ch12.adb (Remove_Parent): Use specification of instance
3550 to retrieve generic parent,
3551 to handle properly the case where the instance is a child unit.
3552 Add guard to handle properly wrapper packages.
3553 Minor reformatting
3554
35552008-05-26 Thomas Quinot <quinot@adacore.com>
3556
3557 * sinfo.ads: Minor reformatting
3558
35592008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3560
3561 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3562 Generate a tag check when the result subtype of a function, defined by
3563 an access definition, designates a specific tagged type.
3564 (Make_Tag_Check): New routine.
3565
d6ca724c
AC
35662008-05-26 Arnaud Charlet <charlet@adacore.com>
3567
3568 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3569
c654b659
EB
35702008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3571
3572 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3573 (builtin_decl_for): Likewise.
3574 * trans.c (gigi): Likewise.
3575 * utils.c (def_builtin_1): Fix formatting.
3576
1c331d2d
AC
35772008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3578
3579 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3580 Create the statements which map a string name to protected or task
3581 entry indix.
3582
3583 * exp_ch9.adb: Add with and use clause for Stringt.
3584 Minor code reformatting.
3585 (Build_Entry_Names): New routine.
3586 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3587 for flag Build_Entry_Names which controls the allocation of the data
3588 structure for the string names of entries.
3589
3590 * exp_ch9.ads (Build_Entry_Names): New subprogram.
3591
3592 * exp_util.adb (Entry_Names_OK): New function.
3593
3594 * exp_util.ads (Entry_Names_OK): New function.
3595
3596 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3597 enumerations RE_Id and RE_Unit_Table.
3598
3599 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3600 (Free_Entry_Names_Array): New routine.
3601
3602 * s-taskin.ads: Comment reformatting.
3603 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3604 Add component Entry_Names to record Ada_Task_Control_Block.
3605 (Free_Entry_Names_Array): New routine.
3606
3607 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3608 dynamically allocate an array
3609 of string pointers. This structure holds string entry names.
3610 (Free_Entry_Names): New routine.
3611 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3612 (Set_Entry_Names): New routine.
3613
3614 * s-tassta.ads:
3615 (Create_Task): Add formal Build_Entry_Names. The flag is used to
3616 control the allocation of the data structure which stores entry names.
3617 (Set_Entry_Name): New routine.
3618
3619 * s-tpoben.adb:
3620 Add with and use clause for Ada.Unchecked_Conversion.
3621 (Finalize): Deallocate the entry names array.
3622 (Free_Entry_Names): New routine.
3623 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3624 create an array of string pointers to hold the entry names.
3625 (Set_Entry_Name): New routine.
3626
3627 * s-tpoben.ads:
3628 Add field Entry_Names to record Protection_Entries.
3629 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3630 (Set_Entry_Name): New routine.
3631
36322008-05-26 Vincent Celier <celier@adacore.com>
3633
3634 * prj-nmsc.adb:
3635 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3636
3637 * prj.ads:
3638 (Project_Configuration): New component Shared_Lib_Driver
3639
36402008-05-26 Ed Schonberg <schonberg@adacore.com>
3641
3642 * inline.adb:
3643 (Cleanup_Scopes): For a protected operation, transfer finalization list
3644 to protected body subprogram, to force cleanup actions when needed.
3645
36462008-05-26 Robert Dewar <dewar@adacore.com>
3647
3648 * sem_cat.adb: Minor reformatting
3649
3650 * gnatname.adb: Minor reformatting
3651
3652 * osint.ads: Minor reformatting
3653
3654 * s-carun8.ads: Minor reformatting
3655
3656 * g-heasor.ads: Minor comment fix (unit is now pure)
3657
36582008-05-26 Robert Dewar <dewar@adacore.com>
3659
3660 * exp_ch2.adb:
3661 (Expand_Current_Value): Properly type generated integer literal
3662
36632008-05-26 Sergey Rybin <rybin@adacore.com>
3664
3665 * gnat_ugn.texi: Add description for the new gnatcheck rule -
3666 Separate_Numeric_Error_Handlers.
3667
36682008-05-26 Pascal Obry <obry@adacore.com>
3669
3670 * sem_aggr.adb: Minor reformatting.
3671
36722008-05-26 Jose Ruiz <ruiz@adacore.com>
3673
3674 * s-osinte-aix.adb:
3675 (To_Target_Priority): Setting the time slice value to 0 or greater sets
3676 the scheduling policy to FIFO within priorities or round-robin
3677 respectively.
3678 Hence, the priority must be set in this case to the one selected by the
3679 user.
9e81dbc7 3680
1c331d2d
AC
36812008-05-26 Ed Schonberg <schonberg@adacore.com>
3682
3683 * sem_ch12.adb:
3684 (Remove_Parent): If the enclosing scope is an instance whose generic
3685 parent is declared within some parent scope of the just completed
3686 instance, make full views of the entities in that parent visible, when
3687 applicable.
9e81dbc7 3688
a28e8f45
KT
36892008-05-26 Kai Tietz <kai.tietz@onevision.com>
3690
3691 * mingw32.h (STD_MINGW): Set to true for target w64.
3692
3651f7ad
EB
36932008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3694
3695 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3696 instead of TREE_STATIC on the ADDR_EXPR.
3697
58272d79
EB
36982008-05-24 Eric Botcazou <ebotcazou@adacore.com>
3699
3700 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3701 (Sloc_to_locus): Do not overwrite known GCC locations when translating
3702 GNAT standard locations.
3703
4c8125f4
EB
37042008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3705
3706 * gigi.h (mark_visited): Declare.
3707 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3708 only the topmost node of expressions.
b86c6d94 3709 (elaborate_expression_1): Look deeper for read-only variables.
4c8125f4
EB
3710 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3711 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
3712 (mark_visited_r): New function.
3713
d1ba4e42
AC
37142008-05-23 Vincent Celier <celier@adacore.com>
3715
b86c6d94 3716 * snames.adb: New standard name Excluded_Source_List_File.
d1ba4e42 3717
b86c6d94 3718 * snames.ads: New standard name Excluded_Source_List_File.
d1ba4e42 3719
b86c6d94 3720 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
d1ba4e42 3721
b86c6d94 3722 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
d1ba4e42
AC
3723 Get excluded sources from
3724 file indicated by attribute Excluded_Source_List_File, when present and
3725 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3726
37272008-05-23 Robert Dewar <dewar@adacore.com>
3728
3729 * exp_dist.adb: Minor reformatting
3730
37312008-05-23 Ed Schonberg <schonberg@adacore.com>
3732
3733 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3734 slice, convert it to an indexed component, which is equivalent, more
3735 efficient, and usable even if the slice itself is not addressable.
3736
37372008-05-23 Olivier Hainque <hainque@adacore.com>
3738
3739 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3740 convention also allows access to named compiler built-in subprograms
3741 such as the GCC __builtin family.
3742
ffd0dd6c
AC
37432008-05-23 Vincent Celier <celier@adacore.com>
3744
3745 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3746 sep. If there are several possibilities, choose the one with the
3747 longer prefix.
3748
37492008-05-23 Vincent Celier <celier@adacore.com>
3750
3751 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3752 back end switches when executable specified with --GCC= is same as
3753 default, even if there are additional options.
3754
3755 * gnat_ugn.texi:
3756 Document when the back end switches from the ALI file are taken into
3757 account when gnatlink is invoked with --GCC=
3758
37592008-05-23 Thomas Quinot <quinot@adacore.com>
3760
3761 * s-os_lib.adb:
3762 (copy_File): Do not open destination file if source file is unreadable.
3763
3fda3252
EB
37642008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3765
3766 * utils.c (handle_type_generic_attribute): Adjust to accept
3767 fixed arguments before an elipsis.
3768
92c708d2
TQ
37692008-05-21 Thomas Quinot <quinot@adacore.com>
3770
3771 * g-sothco.ads, g-sothco.adb: New files.
3772
93a7c573
AC
37732008-05-20 Thomas Quinot <quinot@adacore.com>
3774
3775 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3776
3777 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3778 Add missing "with" of Ada.Unchecked_Conversion
3779
9e81dbc7
AS
3780 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3781 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3782 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3783 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3784 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3785 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
93a7c573
AC
3786 Move common code out of GNAT.Sockets.Thin implementations and into
3787 Thin_Common.
3788 New constant SIZEOF_fd_set
3789 New flag Has_Sockaddr_Len
3790 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3791
3792 * g-stsifd-sockets.adb
3793 (Create): Remove call to Set_Length; use Set_Family to set the family
3794 and (on appropriate platforms) length fields in struct sockaddr.
3795
9e81dbc7
AS
3796 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3797 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
93a7c573
AC
3798 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3799 Move common code out of GNAT.Sockets.Thin implementations and into
3800 Thin_Common.
3801
9e81dbc7 3802 * g-socket.ads, g-socket.adb:
93a7c573
AC
3803 Move common code out of GNAT.Sockets.Thin implementations and into
3804 Thin_Common.
3805 (Connect_Socket, Accept_Socket): Provide new versions of these two
3806 routines that operate with a user specified timeout.
3807 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3808 this is now handled automatically by Set_Family on platforms that
3809 require it.
3810
9e81dbc7 3811 * gen-soccon.c:
93a7c573
AC
3812 Move common code out of GNAT.Sockets.Thin implementations and into
3813 Thin_Common.
3814 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3815 this constant to 0 (not -1) because we use it to initialize an
3816 unsigned_char value.
3817 Align values for numeric constants only.
3818 Handle the case of systems that do not support AF_INET6.
3819 New constant SIZEOF_fd_set
3820 New flag Has_Sockaddr_Len
3821 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3822
3823 * gsocket.h: New flag Has_Sockaddr_Len
3824 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3825
38262008-05-20 Santiago Uruena <uruena@adacore.com>
3827
3828 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3829
38302008-05-20 Arnaud Charlet <charlet@adacore.com>
3831
3832 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3833 the underlying issue with malloc/free has been fixed. Remove associated
3834 comments.
3835 Minor reformatting.
3836 Related to PR ada/24533
3837
38382008-05-20 Robert Dewar <dewar@adacore.com>
3839
3840 * ali.adb: Correct casing of ASCII.NUL
3841
3842 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3843 properly.
3844
38452008-05-20 Robert Dewar <dewar@adacore.com>
3846 Gary Dismukes <dismukes@adacore.com>
3847
3848 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3849 overflow if result converted to wider integer type.
3850 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3851 discriminated types when discriminant checks are suppressed.
3852
38532008-05-20 Vincent Celier <celier@adacore.com>
3854
3855 * cstand.adb (Print_Standard): Issue the correct Size clause for type
3856 Wide_Wide_Character.
3857
38582008-05-20 Tristan Gingold <gingold@adacore.com>
3859
3860 * decl.c: Do not emit a variable for a object that has an address
3861 representation clause whose value is known at compile time.
3862 When a variable has an address clause whose value is known at compile
3863 time, refer to this variable by using directly the address instead of
3864 dereferencing a pointer.
3865
38662008-05-20 Robert Dewar <dewar@adacore.com>
3867
3868 PR ada/30740
3869 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3870 subtypes, always False for non-modular types.
3871 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3872 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3873 for Shared_Storage package.
3874 (Is_RACW_Stub_Type): New entity flag.
3875
3876 * exp_ch4.adb
3877 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3878 case where we have a modular type with a non-binary modules.
3879 Comments reformattings.
3880
3881 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3882 all types.
3883
38842008-05-20 Javier Miranda <miranda@adacore.com>
3885
3886 * exp_aggr.adb
3887 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3888 tests did not covered the case in which the type of the aggregate has
3889 no progenitors but some its parents has progenitors.
3890
38912008-05-20 Gary Dismukes <dismukes@adacore.com>
3892 Hristian Kirtchev <kirtchev@adacore.com>
3893
3894 * exp_ch3.adb
3895 (Expand_N_Object_Declaration): Correct the condition which triggers the
3896 generation of a call to Displace when initializing a class-wide object.
3897 (Build_Dcheck_Functions): Build discriminant-checking for null variants
3898 when Frontend_Layout_On_Target is true to ensure that they're available
3899 for calling when a record variant size function is built in Layout.
3900
39012008-05-20 Ed Schonberg <schonberg@adacore.com>
3902
3903 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3904 procedure for a derived type retrieve the discriminant values from the
3905 parent using the corresponding discriminant.
3906 (Expand_N_Assignment_Statement): Skip generation of implicit
3907 if-statement associated with controlled types if we are
3908 compiling with restriction No_Finalization.
3909
39102008-05-20 Vincent Celier <celier@adacore.com>
3911
3912 * prj.adb (Hash (Project_Id)): New function
3913 (Project_Empty): Add new component Interfaces_Defined
3914
3915 * prj.ads (Source_Data): New component Object_Linked
3916 (Language_Config): New components Object_Generated and Objects_Linked
3917 (Hash (Project_Id)): New function
3918 (Source_Data): New Boolean components In_Interfaces and
3919 Declared_In_Interfaces.
3920 (Project_Data): New Boolean component Interfaces_Defined
3921
9e81dbc7 3922 * prj-attr.adb:
93a7c573
AC
3923 New project level attribute Object_Generated and Objects_Linked
3924 Add new project level attribute Interfaces
3925
3926 * prj-dect.adb: Use functions Present and No throughout
3927 (Parse_Variable_Declaration): If a string type is specified as a simple
3928 name and is not found in the current project, look for it also in the
3929 ancestors of the project.
3930
9e81dbc7 3931 * prj-makr.adb:
93a7c573
AC
3932 Replace procedure Make with procedures Initialize, Process and Finalize
3933 to implement H414-023: process different directories with different
3934 patterns.
3935 Use functions Present and No throughout
3936
9e81dbc7 3937 * prj-makr.ads:
93a7c573
AC
3938 Replace procedure Make with procedures Initialize, Process and Finalize
3939
3940 * prj-nmsc.adb
3941 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3942 the language configuration.
3943 (Process_Project_Level_Array_Attributes): Process new attributes
3944 Object_Generated and Object_Linked.
3945 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3946 False, to indicate that the erreor/warning is a continuation.
3947 (Check): Call Report_No_Sources with Contnuation = True after the first
3948 call.
3949 (Error_Msg): Process successively contnuation character and warning
3950 character.
3951 (Find_Explicit_Sources): Check that all declared sources have been found
3952 (Check_File): Indicate in hash table Source_Names when a declared source
3953 is found.
3954 (Check_File): Set Other_Part when found
3955 (Find_Explicit_Sources): In multi language mode, check if all exceptions
3956 to the naming scheme have been found. For Ada, report an error if an
3957 exception has not been found. Otherwise, disregard the exception.
3958 (Check_Interfaces): New procedure
3959 (Add_Source): When Other_Part is defined, set mutual pointers in spec
3960 and body.
3961 (Check): In multi-language mode, call Check_Interfaces
3962 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3963 for an excluded source.
3964 (Remove_Source): A source replacing a source in the interfaces is also
3965 in the interfaces.
3966
3967 * prj-pars.adb: Use function Present
3968
3969 * prj-part.adb: Use functions Present and No throughout
3970 (Parse_Single_Project): Set the parent project for child projects
3971 (Create_Virtual_Extending_Project): Register project with no qualifier
3972 (Parse_Single_Project): Allow an abstract project to be extend several
3973 times. Do not allow an abstract project to extend a non abstract
3974 project.
3975
3976 * prj-pp.adb: Use functions Present and No throughout
3977 (Print): Take into account the full associative array attribute
3978 declarations.
3979
3980 * prj-proc.adb: Use functions Present and No throughout
3981 (Expression): Call itself with the same From_Project_Node for the
3982 default value of an external reference.
3983
3984 * prj-strt.adb: Use functions Present and No throughout
3985 (Parse_Variable_Reference): If a variable is specified as a simple name
3986 and is not found in the current project, look for it also in the
3987 ancestors of the project.
3988
3989 * prj-tree.ads, prj-tree.adb (Present): New function
3990 (No): New function
3991 Use functions Present and No throughout
3992 (Parent_Project_Of): New function
3993 (Set_Parent_Project_Of): New procedure
3994
9e81dbc7 3995 * snames.ads, snames.adb:
93a7c573
AC
3996 Add new standard names Object_Generated and Objects_Linked
3997
39982008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3999
4000 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
4001 and the derived type are of the same kind.
4002 (Expand_Call): Generate type conversions for actuals of
4003 record or array types when the parent and the derived types differ in
4004 size and/or packed status.
4005
40062008-05-20 Javier Miranda <miranda@adacore.com>
4007 Ed Schonberg <schonberg@adacore.com>
4008
4009 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
4010 generating dispatch tables of locally defined tagged types statically.
4011 Remove implicit if-statement that is no longer required.
4012 (Expand_Dispatching_Call): If this is a call to an instance of the
4013 generic dispatching constructor, the type of the first argument may be
4014 a subtype of Tag, so always use the base type to recognize this case.
4015
40162008-05-20 Thomas Quinot <quinot@adacore.com>
4017
4018 * exp_dist.adb
4019 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
4020 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
4021 assigning NULL into the result, to avoid a spurious warning.
4022 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
4023 is not frozen.
4024 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
4025 type.
4026 (Build_From_Any_Function, Build_To_Any_Function,
4027 Build_TypeCode_Function): For a type that has user-specified stream
4028 attributes, use an opaque sequence of octets as the representation.
4029
40302008-05-20 Kevin Pouget <pouget@adacore.com>
4031
4032 * exp_smem.ads, exp_smem.adb: Construction of access and assign
4033 routines has been replaced by an instantiation of
4034 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
4035 shared variable declaration.
4036 Calls to access and assign routines have been replaced by calls to
4037 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
4038 instantiated package.
9e81dbc7 4039
93a7c573
AC
4040 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
4041 It identifies the new generic package added in s-shasto.
4042
4043 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
4044 is instantiated for each shared passive variable. It provides
4045 supporting procedures called upon each read or write access by the
4046 expanded code.
4047
4048 * sem_attr.adb:
4049 For this runtime unit (always compiled in GNAT mode), we allow
4050 stream attributes references for limited types for the case where
4051 shared passive objects are implemented using stream attributes,
4052 which is the default in GNAT's persistent storage implementation.
4053
40542008-05-20 Ed Schonberg <schonberg@adacore.com>
4055
4056 * freeze.adb
4057 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
4058 convention from its base type, do not set the type to that of integer,
4059 because it may inherit a size clause.
4060 Warn on a size clause with a size different
4061 from that of Integer, if the type has convention C.
4062
40632008-05-20 Vincent Celier <celier@adacore.com>
4064
4065 * gnatname.adb
4066 (Scan_Args): Rewrite to take into account new switch --and to separate
4067 arguments into sections.
4068 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
4069 section, then Finalize.
4070
40712008-05-20 Tristan Gingold <gingold@adacore.com>
4072
4073 * init.c: Enable stack probing on ppc-linux.
4074
4075 * tracebak.c: Add symbolic traceback for ppc-linux.
4076
4077 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
4078
40792008-05-20 Arnaud Charlet <charlet@adacore.com>
4080
4081 * Makefile.in
4082 (common-tools): New rule, to avoid parallel build failure on gnat tools.
4083 Reenable parallel builds on this Makefile.
4084
4085 * Make-lang.in: Update dependencies.
4086
40872008-05-20 Robert Dewar <dewar@adacore.com>
4088
4089 * opt.ads (Treat_Restrictions_As_Warnings): New switch
4090
4091 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4092 Treat_Restrictions_As_Warnings.
4093
4094 * switch-c.adb: Recognize new switch -gnatr
4095
4096 * usage.adb: Add line for -gnatr
4097
40982008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4099
4100 * par-ch3.adb
4101 (P_Access_Definition): Change the error message when parsing "access
4102 all" in Ada 95 mode. The message no longer forces the user to recompile
4103 in 05 mode only to discover that anonymous access types are not allowed
4104 to have "all".
4105
41062008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4107
4108 * par-ch9.adb
4109 (P_Protected): Update the error message on missing "-gnat05" switch when
4110 using interfaces in conjunction with protected types. Remove the
4111 incorrect error message associated with the presence of "private" after
4112 a "with".
4113
41142008-05-20 Ed Schonberg <schonberg@adacore.com>
4115
4116 * sem_aggr.adb: Update comments.
4117 Improve previous change for PR ada/17985
4118
41192008-05-20 Thomas Quinot <quinot@adacore.com>
4120
4121 * sem_cat.adb
4122 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4123 the visible part of the spec of a remote types unit.
4124 (Validate_Remote_Access_Object_Type_Declaration):
4125 New local subprogram Is_Valid_Remote_Object_Type, replaces
4126 Is_Recursively_Limited_Private.
4127 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4128 non-controlling formals (and the return type, even though this is not
4129 explicit in the standard) must support external streaming.
4130 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4131 as above for of RAS types and RCI subprograms. (The return type is not
4132 checked yet).
4133 Update comments related to RACWs designating limited interfaces per
4134 ARG ruling on AI05-060.
4135
4136 * sem_util.ads, sem_util.adb
4137 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4138 Is_Remote_Call_Interface to identify RACW types in a stable and
4139 consistent way. We used to rely in this predicate on the privateness of
4140 the designated type and its ancestors, but depending on the currently
4141 visible private parts, this caused false negatives. We now uniformly
4142 rely on checks made at the point where the RACW type is declared.
4143 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4144
41452008-05-20 Javier Miranda <miranda@adacore.com>
4146 Ed Schonberg <schonberg@adacore.com>
4147 Hristian Kirtchev <kirtchev@adacore.com>
4148
4149 * sem_ch3.adb
4150 (Analyze_Object_Declaration): Fix over-conservative condition
4151 restricting use of predefined assignment with tagged types that have
4152 convention CPP.
4153 (Analyze_Object_Declaration): Relax the check regarding deferred
4154 constants declared in scopes other than packages since they can be
4155 completed with pragma Import.
4156 Add missing escaping of all-caps word 'CPP' in error messages.
4157 (Build_Discriminated_Subtype): Do not inherit representation clauses
4158 from parent type if subtype already carries them, because they are
4159 inherited earlier during derivation and already include those that may
4160 come from a partial view.
4161
4162 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4163 Check the declarations of a subprogram body for proper deferred
4164 constant completion.
4165
4166 * sem_ch7.ads, sem_ch7.adb
4167 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4168
41692008-05-20 Ed Schonberg <schonberg@adacore.com>
4170 Thomas Quinot <quinot@adacore.com>
4171
4172 * sem_ch4.adb
4173 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4174 F is a parameterless function that returns an array, and S is a subtype
4175 mark.
4176 (Analyze_Call): Insert dereference when the prefix is a parameterless
4177 function that returns an access to subprogram and the call has
4178 parameters.
4179 Reject a non-overloaded call whose name resolves to denote
4180 a primitive operation of the stub type generated to support a remote
4181 access-to-class-wide type.
4182
41832008-05-20 Ed Schonberg <schonberg@adacore.com>
4184
4185 * sem_ch8.adb
4186 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4187 when there is a use clause for the same entity in the context.
4188 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4189 created for a stream attribute of an abstract type or interface type.
4190
41912008-05-20 Thomas Quinot <quinot@adacore.com>
4192
4193 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4194 subprogram.
4195
4196 * sem_type.adb
4197 (Add_One_Interp): Ignore any interpretation that is a primitive
4198 operation of an RACW stub type (these primitives are only executed
4199 through dispatching, never through static calls).
4200 (Collect_Interps): When only one interpretation has been found, set N's
4201 Entity and Etype to that interpretation, otherwise Entity and Etype may
4202 still refer to an interpretation that was ignored by Add_One_Interp,
4203 in which case would end up with being marked as not overloaded but with
4204 an Entity attribute not pointing to its (unique) correct interpretation.
4205
42062008-05-20 Ed Schonberg <schonberg@adacore.com>
4207
4208 * sem_eval.adb
4209 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4210 denotes the whole array of its prefix.
4211
42122008-05-20 Robert Dewar <dewar@adacore.com>
4213
4214 * sem_res.adb (Resolve_Op_Not): Warn on double negation
4215
42162008-05-20 Ed Schonberg <schonberg@adacore.com>
4217
4218 * sprint.adb
4219 (Print_Itype): Do not modify the sloc of the component type of a
4220 (packed) array itype, because it is an unrelated type whose source
4221 location is independent of the point of creation of the itype itself.
4222
42232008-05-20 Thomas Quinot <quinot@adacore.com>
4224
4225 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4226 Append.
4227
42282008-05-20 Robert Dewar <dewar@adacore.com>
4229 Vincent Celier <celier@adacore.com>
4230
4231 * vms_data.ads: Add entry for -gnatr
4232 Put GNAT SYNC section in proper alpha order
4233 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4234
4235 * gnat_ugn.texi: Add documentation for new gnatname switch --and
4236 Update the style checks section
4237 Add documentation of -gnatr
4238 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4239 subsection the explanation how compiler checks should be disabled for
4240 gnatcheck.
4241 Update the list of Ada 95 reserved words used by in the project language
4242 Add documentation for project qualifiers.
4243 Document that abstract projects may be extended by different projects in
4244 the same project tree.
4245 Add documentation for gnatmake switch -d
4246
4247 * ug_words: Add -gnatyy VMS equivalence string.
4248 Add entry for -gnatr
4249
42502008-05-20 Bob Duff <duff@adacore.com>
4251
4252 * a-rttiev.adb
4253 (Set_Handler): Remove code from both of these that implements
4254 RM-D.15(15/2), because it causes a race condition and potential
4255 deadlock.
4256 (Process_Queued_Events): Add comment explaining "exception when others
4257 => null". Add clarifying ".all", even though implicit .all is legal
4258 here.
4259
42602008-05-20 Arnaud Charlet <charlet@adacore.com>
4261
4262 * s-winext.ads: Replace representation clause by pragma Pack. Gives
4263 equivalent representation, but has the advantage of allowing
4264 compilation of this file under 64 bits platforms.
4265
4266 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4267
4268 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4269
9e81dbc7 4270 * adaint.c:
93a7c573
AC
4271 Don't define dummy implementation of convert_addresses on ppc-linux.
4272
42732008-05-20 Ed Schonberg <schonberg@adacore.com>
4274
4275 * exp_ch7.adb
4276 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4277 if expression is aggregate component.
4278
42792008-05-20 Robert Dewar <dewar@adacore.com>
4280
4281 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4282 sem_ch12.adb: Update comments. Minor reformatting.
4283
4284 * exp_ch2.adb: Typo
4285
4286 * s-unstyp.ads: Fixed some typos in comments.
4287
1b686dc4
AC
42882008-05-20 Arnaud Charlet <charlet@adacore.com>
4289
4290 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4291 type/constant.
4292
4293 * g-socthi-vxworks.ads: Update to latest socket changes.
4294
4295 * a-caldel-vms.adb: Resync with a-caldel spec.
4296
6357e162
AC
4297 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4298 Update comments.
4299
74c11a6c
EB
43002008-05-17 Eric Botcazou <ebotcazou@adacore.com>
4301
4302 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4303 for dummy types pointed to by the converted pointer types.
4304
f730e42f
EB
43052008-05-15 Eric Botcazou <ebotcazou@adacore.com>
4306
4307 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4308 of records and unions.
4309 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4310
eaa2f8c7 43112008-05-14 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 4312 Robert Dewar <dewar@adacore.com>
eaa2f8c7
ST
4313
4314 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4315 restrictions to the prefix of 'Old.
4316 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4317 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4318 variables.
4319
f80cddcb
EB
43202008-05-13 Eric Botcazou <ebotcazou@adacore.com>
4321
4322 PR ada/24880
4323 PR ada/26635
4324 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4325 expression to an integral type with lower precision, use NOP_EXPR
4326 directly in a couple of special cases.
4327
ea0a7f39 43282008-05-12 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 4329 Ed Schonberg <schonberg@adacore.com>
ea0a7f39
ST
4330
4331 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4332 constraint expressions.
4333
751d1520
TB
43342008-05-12 Tomas Bily <tbily@suse.cz>
4335
ea0a7f39
ST
4336 * utils2.c (known_alignment, contains_save_expr_p)
4337 (gnat_mark_addressable): Use CASE_CONVERT.
4338 * decl.c (annotate_value): Likewise.
4339 * trans.c (maybe_stabilize_reference): Likewise.
4340 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4341 * utils.c (rest_of_record_type_compilation): Likewise.
4342 * trans.c (protect_multiple_eval, Attribute_to_gnu)
4343 (protect_multiple_eval): Likewise.
751d1520 4344
a1b66071
AS
43452008-05-08 Andreas Schwab <schwab@suse.de>
4346
4347 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4348 DECL_IS_PURE to DECL_PURE_P.
4349
bba74577
EB
43502008-05-05 Eric Botcazou <ebotcazou@adacore.com>
4351
4352 * decl.c (maybe_pad_type): Add ??? comment.
4353
8f85525e
EB
43542008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4355
4356 * decl.c (components_to_record): Zero the alignment of the qualified
4357 union built for the variant part upon creating it.
4358
88f36b7e
EB
43592008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4360
4361 * decl.c (maybe_pad_type): Try to get a form of the type with integral
4362 mode even if the alignment is not a factor of the original size. But
4363 make sure to create the inner field with the original size. Reorder.
4364 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4365 record as always addressable.
4366 * utils.c (convert): Deal specially with conversions between original
4367 and packable versions of a record type.
4368 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4369 recognizing an assignment between padded objects.
4370
8665c7ca
EB
43712008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4372
4373 * decl.c (make_packable_type): Resize the last component to its RM size
4374 only if it is of an aggregate type.
4375 * trans.c (call_to_gnu): Fix nit in comment.
4376 (gnat_to_gnu): Likewise.
4377
ea342909
ST
43782008-04-30 Samuel Tardieu <sam@rfc1149.net>
4379
4380 * Makefile.in: Adapt sh4-linux target.
4381
af4133b2
ST
43822008-04-29 Ed Schonberg <schonberg@adacore.com>
4383
4384 PR ada/35792
4385 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4386 tagged type by an untagged protected or task type.
4387
805100b5 43882008-04-28 Eric Botcazou <ebotcazou@adacore.com>
9e81dbc7 4389 Tristan Gingold <gingold@adacore.com>
805100b5
EB
4390
4391 PR ada/36007
4392 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4393 of aliased objects with an unconstrained nominal subtype.
4394 Cap the promotion to the effective alignment of the word mode.
4395
99c2eec1
RW
43962008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4397
4398 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4399 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4400 Use '&&' instead of ';'.
4401
22a81267
OH
44022008-04-24 Olivier Hainque <hainque@adacore.com>
4403
4404 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4405 doesn't require signed arithmetic anymore.
4406
51eed280
PB
44072008-04-23 Paolo Bonzini <bonzini@gnu.org>
4408
4409 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4410 (call_to_gnu): Don't set TREE_INVARIANT.
4411 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4412
d9126ef8
JS
44132008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
4414
4415 * s-osinte-rtems.adb: Add sigalstack function.
4416 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4417 function. Add Alternate_Stack and Alternate_Stack_Size.
4418 Add missing process_shared field to pthread_condattr_t
4419 and change ss_low_priority to int from timespec.
4420
0a58c87e
ST
44212008-04-22 Samuel Tardieu <sam@rfc1149.net>
4422
4423 * i-forbla.adb: Link against -llapack and -lblas by default
4424 instead of the private -lgnalasup.
4425
009890be
OH
44262008-04-21 Olivier Hainque <hainque@adacore.com>
4427
4428 Access to most C builtins from Ada
4429 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4430 (handle_pure_attribute, handle_novops_attribute,
4431 handle_nonnull_attribute, handle_sentinel_attribute,
4432 handle_noreturn_attribute, handle_malloc_attribute,
4433 handle_type_generic_attribute): New attribute handlers, from C fe.
4434 (gnat_internal_attribute_table): Map the new handlers.
4435 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4436 (init_gigi_decls): ... here.
4437 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4438 Move to a section dedicated to builtins processing.
4439 (build_void_list_node, builtin_type_for_size): New functions.
4440 (def_fn_type, get_nonnull_operand): Likewise.
4441 (install_builtin_elementary_type, install_builtin_function_types,
4442 install_builtin_attributes): Likewise.
4443 (fake_attribute_handler): Fake handler for attributes we don't
4444 support in Ada.
4445 (def_builtin_1): New function, worker for DEF_BUILTIN.
4446 (install_builtin_functions): New function.
4447 (gnat_install_builtins): Move to the builtins processing section.
4448 Now calling the newly introduced installers.
4449
e871a873
EB
44502008-04-20 Eric Botcazou <ebotcazou@adacore.com>
4451
4452 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4453 constant objects, but not exceptions.
4454 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4455 compatibility test.
4456 * utils.c (create_var_decl_1): Likewise.
4457 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4458 the type when copying to padded object and the source is a constructor.
4459
98ae7998
EB
44602008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4461
4462 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4463 alignment, reset it to zero if it would end up not being greater
4464 than that of the type.
4465
3569056b
EB
44662008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4467
4468 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4469 the padded type has a variable size.
4470
9a089d8b
EB
44712008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4472
4473 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4474 target pointer mechanism as soon as the size is not constant.
4475
0cb5c2a7
EB
44762008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4477
4478 * gigi.h (create_var_decl_1): Declare.
4479 (create_var_decl): Turn into a macro invoking create_var_decl_1.
4480 (create_true_var_decl): Likewise.
4481 * utils.c (create_var_decl_1): Make global and reorder parameters.
4482 (create_var_decl): Delete.
4483 (create_true_var_decl): Likewise.
4484
90d6701e
EB
44852008-04-17 Eric Botcazou <ebotcazou@adacore.com>
4486
4487 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4488 objects by default.
4489 * fe.h (Debug_Flag_Dot_A): Delete.
4490 * debug.adb (-gnatd.a): Update documentation.
4491
35485e12
ST
44922008-04-17 Samuel Tardieu <sam@rfc1149.net>
4493
4494 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4495 "not null" parameter.
4496
111c1cd9
ST
44972008-04-17 Samuel Tardieu <sam@rfc1149.net>
4498
4499 * g-socket.adb: Add a message "IPv6 not supported" to the
4500 Socket_Error exception.
4501
35c91e05
ST
45022008-04-16 Samuel Tardieu <sam@rfc1149.net>
4503
4504 PR ada/29015
4505 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4506 the type is known instead of the underlying type.
4507
b48a6531
ST
45082008-04-15 Ed Schonberg <schonberg@adacore.com>
4509
4510 PR ada/22387
4511 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4512 procedure for a derived type retrieve the discriminant values from
4513 the parent using the corresponding discriminant.
4514
462c31ef 45152008-04-15 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 4516 Gary Dismukes <dismukes@adacore.com>
462c31ef
ST
4517
4518 PR ada/28733
4519 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4520 which is not an entity (and hence not a package).
4521 (End_Use_Package): Ditto.
4522
8abe457a
ST
45232008-04-15 Ed Schonberg <schonberg@adacore.com>
4524
4525 PR ada/16086
4526 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4527 protected operation that matches the signature, not only an entry, a
4528 regular subprogram or a literal.
4529
29f4754f
EB
45302008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4531
4532 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4533 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4534 if a size or alignment is specified. Do not take into account
4535 alignment promotions for the computation of the object's size.
4536 <type>: Call maybe_pad_type only if a size or alignment is specified.
4537 (maybe_pad_type): Really reuse the RM_Size of the original type if
4538 requested.
4539 * trans.c (Attribute_to_gnu): Fix a couple of nits.
4540 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4541 statements. Use the padded view of the type when copying between
4542 padded objects of the same underlying type.
4543
f3d0f304
RW
45442008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4545
4546 * vms_data.ads: Fix typo in constant.
4547 * gen-soccon.c: Fix typo in error string.
4548 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4549 Fix typos.
4550 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4551 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4552 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4553 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4554 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4555 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4556 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4557 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4558 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4559 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4560 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4561 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4562 sinfo.ads: Fix typos in comments.
4563
2efcad9f
RD
45642008-04-14 Robert Dewar <dewar@adacore.com>
4565
4566 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4567 to every non-object and change error message.
4568
8f3723e0
RD
45692008-04-14 Robert Dewar <dewar@adacore.com>
4570
4571 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4572 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4573 directly.
4574
32f7efe1
ST
45752008-04-14 Samuel Tardieu <sam@rfc1149.net>
4576
4577 PR ada/18680
4578 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4579 apply pragma Linker_Section on type.
4580
b039b10e
ST
45812008-04-14 Samuel Tardieu <sam@rfc1149.net>
4582
4583 PR ada/16098
4584 * sem_prag.adb (Error_Pragma_Ref): New.
4585 (Process_Convention): Specialized message for non-local
4586 subprogram renaming. Detect the problem in homonyms as well.
4587
cb572b75
ST
45882008-04-14 Samuel Tardieu <sam@rfc1149.net>
4589
4590 PR ada/15915
4591 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4592 * sem_ch12.adb (Instantiate_Object): Use it.
4593 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4594 storage pool denotes a variable as per RM 13.11(15).
4595
17972da7
ST
45962008-04-14 Samuel Tardieu <sam@rfc1149.net>
4597
4598 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4599 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4600
57f80aa9
RE
46012008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
4602
4603 PR ada/20822
4604 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4605 line endings even on non-Unix platforms.
4606
9ff231e2
ST
46072008-04-14 Samuel Tardieu <sam@rfc1149.net>
4608
4609 PR ada/35050
4610 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4611 renaming information.
4612
9e81dbc7 46132008-04-13 Samuel Tardieu <sam@rfc1149.net>
92d4508a
ST
4614
4615 PR ada/17985
4616 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4617 itself.
4618
12a13f01
RW
46192008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4620
3354f96d
RW
4621 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4622 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4623 snames.ads, sprint.adb, stand.ads, stringt.ads,
4624 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4625 switch.ads, sysdep.c, table.adb, table.ads,
4626 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4627 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4628 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4629 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4630 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4631 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4632 Fix comment typos.
4633
f3d57416
RW
4634 * sem_ch10.adb, sem_ch10.ads,
4635 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4636 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4637 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4638 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4639 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4640 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4641 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4642 sem_warn.ads: Fix comment typos.
4643
12a13f01
RW
4644 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4645 s-soflin.ads, s-stalib.ads, s-stausa.adb,
4646 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4647 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4648 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4649 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4650 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4651 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4652 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4653 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4654 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4655 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4656 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4657 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4658 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4659 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4660 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4661 sem_cat.adb, sem_cat.ads: Fix comment typos.
4662
2b699ab1
JS
46632008-04-12 Joel Sherrill <joel@oarcorp.com>
4664
4665 PR ada/35825
4666 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4667
1e273538
AC
46682008-04-12 Arnaud Charlet <charlet@adacore.com>
4669
4670 * s-linux-hppa.ads: Fix syntax errors.
4671
276e95ca
RW
46722008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4673
4674 * gnat_ugn.texi: Fix typos.
4675 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4676 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4677 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4678 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4679 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4680 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4681 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4682 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4683 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4684 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4685 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4686 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4687 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4688 s-osinte-darwin.ads, s-osinte-freebsd.ads,
4689 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4690 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4691 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4692 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4693 s-parame-hpux.ads, s-parame-vms-alpha.ads,
4694 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4695 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4696 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4697 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4698 s-rident.ads: Fix comment typos.
4699
ce4e59c4
ST
47002008-04-09 Samuel Tardieu <sam@rfc1149.net>
4701
4702 PR ada/28305
4703 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4704 environment if generic instance is a top-level one.
4705
6d21c8af
DR
47062008-04-09 Doug Rupp <rupp@adacore.com>
4707
4708 * decl.c (validate_size): Set minimum size for fat pointers same as
4709 access types. Code clean ups.
4710
4711 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4712 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4713
4714 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4715
4716 * s-crtl.ads (malloc32) New function, alias for malloc
4717 (realloc32) New function, alias for realloc
4718
4719 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4720
4721 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4722 allocator size is 32 and default pointer size is 64.
4723 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4724 lhs type if smaller, whatever the modes.
4725
4726 * gigi.h (malloc32_decl): New macro definition
4727
4728 * utils.c (init_gigi_decls): New malloc32_decl
4729 Various code clean ups.
4730
4731 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4732 Task_Address vice System.Address.
4733
4734 * s-taspri-vms.ads: Import System.Aux_DEC
4735 (Task_Address): New subtype of System.Aux_DEC.Short_Address
4736 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4737
4738 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4739 Task_Address vice System.Address.
4740
4741 * s-inmaop-vms.adb: Import System.Task_Primitives
4742 (To_Address): Unchecked convert to Task_Address vice System.Address
4743
4744 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4745 expires now.
4746 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4747 (To_Address) Unchecked convert to Task_Address vice System.Address
4748
4749 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4750
4751 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4752
581edf92
EB
47532008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4754
4755 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4756 (fdesc_type_node): Define.
4757 (null_fdesc_node): Likewise.
4758 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4759 uses descriptors for vtables and the type comes from a dispatch table,
4760 return the descriptor type.
4761 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4762 uses descriptors for vtables and the type comes from a dispatch table,
4763 build a descriptor in the static case and copy the existing one in the
4764 non-static case.
4765 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4766 the type is a pointer-to-subprogram coming from a dispatch table,
4767 return the null descriptor.
4768 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4769 vtables, the source type is the descriptor type and the target type
4770 is a pointer type, first build the pointer.
4771 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4772 build the descriptor type and the null descriptor.
4773
e1da2b17
EB
47742008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4775
4776 * decl.c (prepend_attributes): Fix typo.
4777 * trans.c (Pragma_to_gnu): Likewise.
4778 * utils.c (gnat_genericize): Likewise.
4779
2b3dffa6 47802008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9e81dbc7 4781 Richard Kenner <kenner@adacore.com>
2b3dffa6
EB
4782
4783 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4784 * decl.c (gnat_to_gnu_entity): Adjust for above change.
4785 <E_Record_Type>: Try to get a better form of the component for
4786 packing, even if it has an integral mode.
4787 <E_Record_Subtype>: Likewise.
4788 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4789 exception suppressing the final conversion between record types.
4790
ba3f46d0
EB
47912008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4792
4793 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4794 alignment for space, promote the alignment of non-scalar variables with
4795 no size and alignment.
4796 * gigi.h (gnat_types_compatible_p): Declare.
4797 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4798 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
4799 * utils.c (gnat_types_compatible_p) : New predicate.
4800 (convert): Use it throughout to test for cases where a mere view
4801 conversion is sufficient.
4802 * utils2.c (build_binary_op): Minor tweaks.
4803 (build_unary_op): Likewise.
4804
373140ef
EB
48052008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4806
4807 * decl.c (adjust_packed): Expand comment.
4808
ea081ad7
AC
48092008-04-08 Arnaud Charlet <charlet@adacore.com>
4810
4811 * s-tasuti.ads: Use Task_Address instead of System.Address.
4812
4813 * makeutl.adb (Path_Or_File_Name): New function
4814
4815 * nlists.ads, itypes.ads: Update comments.
4816
4817 * s-crtl.ads (malloc32, realloc32): New functions.
4818
4819 * s-auxdec.ads (Short_Address_Size): New constant.
4820
4821 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4822
4823 * s-ststop.ads, s-ststop.adb: New file.
4824
4825 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4826 Minor reformatting.
4827
d563d3f0
AC
48282008-04-08 Pascal Obry <obry@adacore.com>
4829
4830 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4831 (Stop_Bits_Number): New type.
4832 (Parity_Check): Likewise.
4833 (Set): Add parameter to set the number of stop bits and
4834 the parity. Parameter timeout is now a duration instead
4835 of a plain integer.
4836
4837 * g-sercom-linux.adb:
4838 Implement the stop bits and parity support for GNU/Linux.
4839 Fix handling of timeout, it must be given in tenth of seconds.
9e81dbc7 4840
d563d3f0
AC
4841 * g-sercom-mingw.adb:
4842 Implement the stop bits and parity support for Windows.
4843 Use new s-win32.ads unit instead of declaring Win32 services
4844 directly into this body.
4845 Update handling of timeout as now a duration.
4846
4847 * s-win32.ads, s-winext.ads: New files.
4848
48492008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4850 Arnaud Charlet <charlet@adacore.com>
4851
4852 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4853
4854 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4855 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4856
4857 * s-osinte-lynxos-3.ads,
4858 (Alternate_Stack): Remove when not needed. Simplify declaration
4859 otherwise.
4860 (Alternate_Stack_Size): New constant.
4861
4862 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4863 'Unrestricted_Access.
4864
4865 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4866 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4867 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4868 s-osinte-solaris.ads, s-osinte-vms.ads
4869 (SA_ONSTACK): New constant.
4870 (stack_t): New record type.
4871 (sigaltstack): New imported function.
4872 (Alternate_Stack): New imported variable.
4873 (Alternate_Stack_Size): New constant.
4874
4875 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4876
4877 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
ea081ad7
AC
4878 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4879 s-taspri-vms.ads (Task_Address): New subtype of System.Address
d563d3f0
AC
4880 (Task_Address_Size): New constant size of System.Address
4881 (Alternate_Stack_Size): New constant.
4882
4883 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4884 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4885 Establish the alternate stack if the platform makes use of n alternate
4886 signal stack for stack overflows.
4887 (Create_Task): Take into account the alternate stack in the stack size.
4888 (Initialize): Save the address of the alternate stack into the ATCB for
4889 the environment task.
4890 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4891
ea081ad7 4892 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
d563d3f0
AC
4893
4894 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4895
9e81dbc7 4896 * s-intman-posix.adb:
d563d3f0
AC
4897 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4898 alternate signal stack for stack overflows.
4899
4900 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4901 x86-64, adjust the saved value of the stack pointer if the signal was
4902 raised by a stack checking probe.
4903 (HP-UX section): Use global __gnat_alternate_stack as signal handler
4904 stack and only for SIGSEGV.
4905 (Linux section): Likewise on x86 and x86-64.
4906 [VxWorks section]
4907 (__gnat_map_signal): Now static.
4908 (__gnat_error_handler): Not static any more.
4909 (__gnat_adjust_context_for_raise): New function. Signal context
4910 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4911 propagation circuitry.
4912 (__gnat_error_handler): Second argument of a sigaction handler is a
4913 pointer, not an int, and is unused.
4914 Adjust signal context before mapping to exception.
4915 Install signal handlers for LynxOS case.
4916
4917 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4918 (Task_Id): Set size to Task_Address_Size
4919 (To_Task_id): Unchecked convert from Task_Address vice System.Address
4920 (To_Address): Unchecked convert to Task_Address vice System.Address
4921
4922 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4923 address into the ATCB if the platform makes use of an alternate signal
4924 stack for stack overflows.
4925 (Free_Task): Add call to Finalize_Attributes_Link.
4926 Add argument Relative_Deadline to pass the value specified for
4927 the task. This is not yet used for any target.
4928
4929 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4930 the value specified for the task.
4931
49322008-04-08 Arnaud Charlet <charlet@adacore.com>
4933
4934 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4935 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4936 s-vxwext-rtp.adb): New files.
4937
9e81dbc7 4938 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
d563d3f0
AC
4939 Minor updates to accomodate changes above.
4940
49412008-04-08 Pascal Obry <obry@adacore.com>
4942
4943 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4944 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4945 Use new s-win32.ads unit instead of declaration
4946 from s-osinte-mingw.ads.
9e81dbc7 4947
d563d3f0
AC
4948 * s-osinte-mingw.ads:
4949 Move all non tasking based interface to s-win32.ads.
9e81dbc7 4950
d563d3f0
AC
4951 * s-osprim-mingw.adb:
4952 Remove duplicated declarations and use s-win32.ads
4953 unit instead.
4954
49552008-04-08 Vincent Celier <celier@adacore.com>
4956 Arnaud Charlet <charlet@adacore.com>
4957
4958 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4959 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4960 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4961 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4962 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4963
4964 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4965 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4966 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4967 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4968 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4969 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4970 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4971 mlib-tgt-specific-mingw.adb: New names.
4972
9e81dbc7 4973 * Makefile.in:
d563d3f0
AC
4974 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4975 Get rid of gnatbl.
4976 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4977 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4978 Minor updates for VMS
4979
ea081ad7
AC
4980 * gnatbl.c: Removed.
4981
d563d3f0
AC
49822008-04-08 Thomas Quinot <quinot@adacore.com>
4983
4984 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4985 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4986 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4987 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4988 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4989 ASCII.NUL throughout.
4990
49912008-04-08 Arnaud Charlet <charlet@adacore.com>
4992 Matthew Heaney <heaney@adacore.com>
4993
4994 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4995 renaming.
4996
9e81dbc7 4997 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
d563d3f0
AC
4998 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4999 to convention for non-RM specs.
5000 Add descriptive header, and documented each operation
5001 document each operation
5002
50032008-04-08 Robert Dewar <dewar@adacore.com>
5004 Bob Duff <duff@adacore.com>
5005 Gary Dismukes <dismukes@adacore.com>
5006 Ed Schonberg <schonberg@adacore.com>
5007
5008 * alloc.ads: Add entries for Obsolescent_Warnings table
5009
5010 * einfo.ads, einfo.adb: Minor reformatting.
5011 (Is_Discriminal): New subprogram.
5012 (Is_Prival): New subprogram.
5013 (Is_Protected_Component): New subprogram.
5014 (Is_Protected_Private): Removed.
5015 (Object_Ref, Set_Object_Ref): Removed.
5016 (Prival, Set_Prival): Change assertion.
5017 (Privals_Chain, Set_Privals_Chain): Removed.
5018 (Prival_Link, Set_Prival_Link): New subprogram.
5019 (Protected_Operation, Set_Protected_Operation): Removed.
5020 (Protection_Object, Set_Protection_Object): New subprogram.
5021 (Write_Field17_Name): Remove case for Object_Ref.
5022 (Write_Field20_Name): Add case for Prival_Link.
5023 (Write_Field22_Name): Remove case for Protected_Operation,
5024 Privals_Chain.
5025 Add case for Protection_Object.
5026 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
5027 so clients
5028 (Overlays_Constant): New flag
5029 (Is_Constant_Object): New predicate
5030 (Is_Standard_Character_Type): New predicate
5031 (Optimize_Alignment_Space): New flag
5032 (Optimize_Alignment_Time): New flag
5033 (Has_Postconditions): New flag
5034 (Obsolescent_Warrning): Field removed
5035 (Spec_PPC_List): New field
5036 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
5037 subprograms to get and set the relative deadline associated to a task.
5038
5039 * exp_attr.adb (May_Be_External_Call): Account for the case where the
5040 Access attribute is part of a named parameter association.
5041 (Expand_Access_To_Protected_Op): Test for the attribute occurring
5042 within an init proc and use that directly as the scope rather than
5043 traversing up to the protected operation's enclosing scope. Only apply
5044 assertion on Is_Open_Scopes in the case the scope traversal is done.
5045 For the init proc case use the address of the first formal (_init) as
5046 the protected object reference.
5047 Implement Invalid_Value attribute
5048 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
5049 contents of the dispatch table there is no need to duplicate the
5050 itypes associated with record types (i.e. the implicit full view
5051 of private types).
5052 Implement Enum_Val attribute
5053 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
5054 within _Postconditions procedure
5055 (Expand_N_Attribute_Reference, case Result): Implement new attribute
5056
5057 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
5058 a return statement calls a function that is not available in
5059 configurable runtime.
5060 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
5061 (Expand_Non_Function_Return): Generate call to _Postconditions proc
5062 (Expand_Simple_Function_Return): Ditto
5063
5064 * frontend.adb: Add call to Sem_Aux.Initialize
5065
5066 * sem_aux.ads, sem_aux.adb: New file.
5067
5068 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
5069 Add new Pragma_Relative_Deadline.
5070 Add support for pragmas Check and Check_Policy
5071
5072 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
5073 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
5074 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
5075 missing check because they are not allowed in CPP tagged types.
5076 Add Sure parameter to Note_Possible_Modification calls
5077 Add implementation of Invalid_Value attribute
5078 Implement new attribute Has_Tagged_Values
5079 Implement Enum_Val attribute
5080 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
5081 generated attributes.
5082 (Analyze_Attribute, case Result): If prefix of the attribute is
5083 overloaded, it always resolves to the enclosing function.
5084 (Analyze_Attribute, case Result): Properly deal with analysis when
5085 Postconditions are not active.
5086 (Resolve_Attribute, case Result): Properly deal with appearence during
5087 preanalysis in spec.
5088 Add processing for attribute Result
5089
5090 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5091 for operators.
5092 (Analyze_Subprogram_Body): Install private_with_clauses when the body
5093 acts as a spec.
5094 (Check_Inline_Pragma): recognize an inline pragma that appears within
5095 the subprogram body to which it applies.
5096 (Analyze_Function_Return): Check that type of the expression of a return
5097 statement in a function with a class-wide result is not declared at a
5098 deeper level than the function.
5099 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5100 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5101 user- defined operators.
5102 (Install_Formals): Moved to spec to allow use from Sem_Prag for
5103 analysis of precondition/postcondition pragmas.
5104 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5105 Last_Formal, along with lots of comments on what this is about
5106 (Analyze_Subprogram_Body): Fix case where we move entities from the
5107 spec to the body when there are no body entities (now possible with
5108 precondition and postcondition pragmas).
5109 (Process_PPCs): New procedure
5110 (Analyze_Subprogram_Body): Add call to Process_PPCs
5111
5112 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5113 clause.
5114 (Pop_Scope): Restore Check_Policy_List on scope exit
5115 (Push_Scope): Save Check_Policy_List on scope entry
5116 Change name In_Default_Expression => In_Spec_Expression
5117 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5118 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5119 (Analyze_Object_Renaming): Allow 'Reference as object
5120 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5121 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5122 of restriction identifier.
5123 Add Sure parameter to Note_Possible_Modication calls
5124
5125 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5126 Don't check for primitive operations when calling Rep_Item_Too_Late.
5127 (Process_Import_Or_Interface): Do not place flag on formal
5128 subprograms.
5129 (Analyze_Pragma, case Export): If the entity is a deferred constant,
5130 propagate information to full view, which is the one elaborated by the
5131 back-end.
5132 (Make_Inline): the pragma is effective if it applies to an internally
5133 generated subprogram declaration for a body that carries the pragma.
5134 (Analyze_Pragma, case Optimize_Alignment): Set new flag
5135 Optimize_Alignment_Local.
5136 (Analyze_PPC_In_Decl_Part): New procedure
5137 (Get_Pragma_Arg): Moved to outer level
5138 (Check_Precondition_Postcondition): Change to allow new visibility
5139 rules for package spec
5140 (Analyze_Pragma, case Check_Policy): Change placement rules to be
5141 same as pragma Suppress/Unsuppress.
5142 Change name In_Default_Expression => In_Spec_Expression
5143 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5144 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5145 (Check_Precondition_Postcondition): Do proper visibility preanalysis
5146 for the case of these pragmas appearing in the spec.
5147 (Check_Enabled): New function
5148 (Initialize): New procedure
5149 (Tree_Read): New procedure
5150 (Tree_Write): New procedure
5151 (Check_Precondition_Postcondition): New procedure
5152 Implement pragmas Check and Check_Policy
5153 Merge Assert processing with Check
5154
5155 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5156 New warning flag -gnatw.e
5157
5158 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5159 returning whether a task (or main procedure) has a pragma
5160 Relative_Deadline.
5161 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5162 (or main procedure) has a pragma Relative_Deadline.
5163 Add Next_Pragma field to N_Pragma node
5164 (PPC_Enabled): New flag
5165 (Next_Pragma): Now used for Pre/Postcondition processing
5166
5167 * snames.h, snames.ads, snames.adb: New standard name
5168 Inherit_Source_Path
5169 Add entry for 'Invalid_Value attribute
5170 Add entry for new attribute Has_Tagged_Values
5171 Add entry for Enum_Val attribute
5172 Add new standard names Aggregate, Configuration and Library.
5173 Add _Postconditions
5174 Add _Result
5175 Add Pragma_Precondition
5176 Add Pragma_Postcondition
5177 Add Attribute_Result
5178 New standard name Archive_Builder_Append_Option
5179 (Preset_Names): Add _relative_deadline and relative_deadline definitions
5180 There was also a missing non_preemptive_within_priorities.
5181 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5182 Relative_Deadline.
5183 Add support for pragmas Check and Check_Policy
5184
5185 * tree_gen.adb: Call Sem_Aux.Tree_Write
5186
5187 * tree_in.adb: Call Sem_Aux.Tree_Read
5188
5189 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5190 sequence
5191
5192 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5193 sequence
5194
5195 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5196 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5197 Relative_Deadline.
5198 (Expand_Pragma_Check): New procedure
5199
5200 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5201 buffer.
5202
5203 * sinfo.adb (PPC_Enabled): New flag
5204
52052008-04-08 Robert Dewar <dewar@adacore.com>
5206 Gary Dismukes <dismukes@adacore.com>
5207 Javier Miranda <miranda@adacore.com>
5208 Ed Schonberg <schonberg@adacore.com>
5209
5210 * fe.h: Remove global Optimize_Alignment flag, no longer used
5211
5212 * layout.adb: Test Optimize_Alignment flags rather than global switch
5213
5214 * lib.ads, lib.adb: New OA_Setting field in library record
5215
5216 * lib-load.adb: New OA_Setting field in library record
5217
5218 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5219 units mentioned in limited_with_ clauses in the ali file, with an
5220 'Y' marker.
5221 New Ox fields in U line
5222
5223 * opt.adb: New flag Optimize_Alignment_Local
5224 (Check_Policy_List[_Config]): New flags
5225
5226 * opt.ads (Invalid_Value_Used): New flag
5227 New switch Optimize_Alignment_Local
5228 (Warn_On_Parameter_Order): New flag
5229 (Check_Policy_List[_Config]): New flags
5230
5231 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5232 limited_with clauses.
5233 New data structures for Optimize_Alignment
5234
5235 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5236 New procedure
5237 (Check_Consistent_Optimize_Alignment): Rework for new structure
5238 (Check_Consistent_Restrictions): Fix incorrect error message
5239
5240 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5241 created class-wide type (to the Parent field of the specific type).
5242 (Install_Siblings): Handle properly private_with_clauses on subprogram
5243 bodies and on generic units.
5244 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5245 illegal limited_with_clause that names a non-existent package.
5246 (Check_Body_Required): Determine whether a unit named a limited_with
5247 clause needs a body.
5248 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5249 Capture Optimize_Alignment settings to set new OA_Setting field in
5250 library record.
5251 (Build_Limited_Views): Include task and protected type declarations.
5252
5253 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5254 case of a possible constant redeclaration where the current object is
5255 an entry index constant.
5256 (Analyze_Object_Declaration): Generate an error in case of CPP
5257 class-wide object initialization.
5258 (Analyze_Object_Declaration): Add extra information on warnings for
5259 declaration of unconstrained objects.
5260 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5261 conflicts with the setting of Stored_Constraint in the case where the
5262 access type entity has already been created as an E_Incomplete_Type due
5263 to a limited with clause.
5264 Use new Is_Standard_Character_Type predicate
5265 (Analyze_Object_Declaration): Apply access_constant check only after
5266 expression has been resolved, given that it may be overloaded with
5267 several access types.
5268 (Constant_Redeclaration): Additional legality checks for deferred
5269 constant declarations tha involve anonymous access types and/or null
5270 exclusion indicators.
5271 (Analyze_Type_Declaration): Set Optimize_Alignment flags
5272 (Analyze_Subtype_Declaration): Ditto
5273 (Analyze_Object_Declaration): Ditto
5274 (Analyze_Object_Declaration): Don't count tasks in generics
5275 Change name In_Default_Expression => In_Spec_Expression
5276 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5277 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5278 (Process_Discriminants): Additional check for illegal use of default
5279 expressions in access discriminant specifications in a type that is not
5280 explicitly limited.
5281 (Check_Abstract_Overriding): If an inherited function dispaches on an
5282 access result, it must be overridden, even if the type is a null
5283 extension.
5284 (Derive_Subprogram): The formals of the derived subprogram have the
5285 names and defaults of the parent subprogram, even if the type is
5286 obtained from the actual subprogram.
5287 (Derive_Subprogram): In the presence of interfaces, a formal of an
5288 inherited operation has the derived type not only if it descends from
5289 the type of the formal of the parent operation, but also if it
5290 implements it. This is relevant for the renamings created for the
5291 primitive operations of the actual for a formal derived type.
5292 (Is_Progenitor): New predicate, to determine whether the type of a
5293 formal in the parent operation must be replaced by the derived type.
5294
5295 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5296 predicate recursive to handle components that have a user-defined
5297 Initialize procedure. Handle controlled derived types whose ancestor
5298 has a user-defined Initialize procedured.
5299 (Note_Possible_Modification): Add Sure parameter, generate warning if
5300 sure modification of constant
5301 Use new Is_Standard_Character_Type predicate
5302 (Find_Parameter_Type): when determining whether a protected operation
5303 implements an interface operation, retrieve the type of the formal from
5304 the entity when the formal is an access parameter or an
5305 anonymous-access-to-subprogram.
5306 Move Copy_Parameter_List to sem_util, for use when building stubbed
5307 subprogram bodies.
5308 (Has_Access_Values): Tagged types now return False
5309 (Within_HSS_Or_If): New procedure
5310 (Set_Optimize_Alignment_Flags): New procedure
5311 Change name In_Default_Expression => In_Spec_Expression
5312 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5313 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5314
53152008-04-08 Tristan Gingold <gingold@adacore.com>
5316
5317 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5318
53192008-04-08 Tristan Gingold <gingold@adacore.com>
5320
5321PR ada/10768
5322
5323 * cuintp.c: Fix 16 bits issue for AVR.
5324 On AVR, integer is 16 bits, so it can't be used to do math with
5325 Base (=32768).
5326 So use long_integer instead.
5327
53282008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5329
5330 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5331 System.OS_Primitives.
5332 Change type of various constants, parameters and local variables from
5333 Time to representation type OS_Time.
5334 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5335 Remove the declaration of constant Mili_F from several routines. New
5336 body for internal package Conversions_Operations.
5337 (Time_Of): Add default parameters for several formals.
5338
5339 * a-caldel.adb: Minor reformatting
5340
5341 * a-calend.ads, a-calend.adb: New body for internal package
5342 Conversions_Operations.
5343 (Time_Of): Add default parameters for several formals.
5344
5345 * Makefile.rtl: Add a-ststop
5346 Add Ada.Calendar.Conversions to the list of runtime files.
5347 Add g-timsta
5348
5349 * a-calcon.adb, a-calcon.ads: New files.
5350
53512008-04-08 Jose Ruiz <ruiz@adacore.com>
5352 Tristan Gingold <gingold@adacore.com>
5353
5354 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5355 (Install_Restricted_Handlers): New procedure
5356 which is a simplified version of Install_Handlers that does not store
5357 previously installed.
5358
5359 * s-interr-vxworks.adb: Fix ACATS cxc3001
5360 On VxWorks interrupts can't be detached.
5361 (Install_Restricted_Handlers): New procedure.
5362
5363 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5364 procedure.
5365
53662008-04-08 Olivier Hainque <hainque@adacore.com>
5367
5368 * s-intman-vxworks.ads, s-intman-vxworks.adb
5369 (Map_And_Raise_Exception): Remove. Was an import of only part of the
5370 required services already implemented elsewhere.
5371 (Notify_Exception): Delete body, import __gnat_error_handler instead.
5372 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5373 argument passed to the handler, which we need for ZCX propagation
5374 purposes.
5375
53762008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5377
5378 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5379
5380 * g-timsta.adb, g-timsta.ads: New files.
5381
53822008-04-08 Robert Dewar <dewar@adacore.com>
5383
5384 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5385 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5386 (Raise_Exception_Always): Fix documentation accordingly
5387
53882008-04-08 Robert Dewar <dewar@adacore.com>
5389
5390 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5391 Stream_Convert)
5392
5393 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5394 FOnly
5395
53962008-04-08 Javier Miranda <miranda@adacore.com>
5397 Robert Dewar <dewar@adacore.com>
5398 Ed Schonberg <schonberg@adacore.com>
5399
5400 * a-tags.adb (Register_Interface_Offset): New subprogram.
5401 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5402 (To_Predef_Prims_Table_Ptr): Removed.
5403 (Acc_Size): Removed.
5404 (To_Acc_Size): Removed.
5405 (Parent_Size): Modified to the call the subprogram returning the size of
5406 the parent by means of the new TSD component Size_Func.
5407
5408 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5409 (DT_Offset_To_Top_Offset): New constant value that is used to generate
5410 code referencing the Offset_To_Top component of the dispatch table's
5411 prologue.
5412 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5413 use of 'address to initialize dispatch table slots.
5414 (Size_Func): New component of the TSD. Used by the run-time to call the
5415 size primitive of the tagged type.
5416
5417 * checks.adb (Apply_Access_Check): Avoid check when accessing the
5418 Offset_To_Top component of a dispatch table.
5419 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5420 deferred constant declaration. do not add a null expression, to prevent
5421 spurious errors when full declaration is analyzed.
5422 (Apply_Discriminant_Check): If both discriminant constraints share a
5423 node which is not static but has no side effects, do not generate a
5424 check for that discriminant.
5425 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5426 subexpr, since the prefix of an attribute is a name.
5427
5428 * checks.ads: Fix nit in comment.
5429
5430 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5431 and body of predefined primitives in case of CPP tagged type
5432 derivations.
5433 (Freeze_Type): Deal properly with no storage pool case
5434 (Make_Predefined_Primitive_Specs): Generate specification of abstract
5435 primitive Deep_Adjust if a nonlimited interface is derived from a
5436 limited interface.
5437 (Build_Dcheck_Functions): Create discriminant-checking functions only
5438 for variants that have some component(s).
5439 (Build_Slice_Assignment): In expanded code for slice assignment, handle
5440 properly the case where the slice bounds extend to the last value of the
5441 underlying representation.
5442 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5443 (Is_Variable_Size_Record): An array component has a static size if
5444 index bounds are enumeration literals.
5445
5446 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5447 an external tag has been specified for the type.
5448 (Building_Static_DT): Add missing support for private types.
5449 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5450 to the entity associated with the parent of Typ. This is done to
5451 avoid wrong access when the parent is a private type.
5452 (Expand_Interface_Conversion): Improve error message when the
5453 configurable runtime has no support for dynamic interface conversion.
5454 (Expand_Interface_Thunk): Add missing support to interface types in
5455 configurable runtime.
5456 (Expand_Dispatching_Call): remove obsolete code.
5457 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5458 ensure that all subtypes and aggregates associated with dispatch
5459 tables have the attribute Is_Dispatch_Table_Entity set to true.
5460 (Register_Primitive): Rename one variable to improve code reading.
5461 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5462 of the pointer to the 'size primitive in the TSD.
5463
5464 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5465 (RE_Offset_To_Top_Ptr): New entity.
5466 (RE_Register_Interface_Offset): New entity.
5467 (RE_Set_Dynamic_Offset_To_Top): New entity.
5468 (RE_Set_Offset_To_Top): Removed entity.
5469 (RE_Prim_Ptr): New entity
5470 (RE_Size_Func): New entity
5471 (RE_Size_Ptr): New entity
5472 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5473 (Ada_Dispatching_Child): Define this new subrange.
5474 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5475 RE_Time_Span, and RE_Time_Span_Zero).
5476 (RE_Unit_Table): Add new required run-time calls
5477
5478 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5479 children.
5480
5481 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5482 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5483 initializes the Offset_To_Top component of a dispatch table.
5484 (Build_Predef_Prims): Removed.
5485 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5486 its actual code.
5487 (Build_Set_Size_Function): New subprogram.
5488
5489 * exp_ch13.adb: Do not generate storage variable for storage_size zero
5490 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5491
54922008-04-08 Robert Dewar <dewar@adacore.com>
5493
5494 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5495 computing Fore when Exp > 0
5496
54972008-04-08 Robert Dewar <dewar@adacore.com>
5498
5499 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5500
5501 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5502 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5503
5504 * fmap.adb: Remove Big_String declarations (now in Types)
5505 (No_Mapping_File): New Boolean global variable
5506 (Initialize): When mapping file cannot be read, set No_Mapping_File to
5507 False.
5508 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5509 tables were empty before adding entries, open the mapping file
5510 with Truncate = True, instead of delete/re-create.
5511
5512 * fname-sf.adb: Remove Big_String declarations (now in Types)
5513
5514 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
9e81dbc7 5515 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
d563d3f0
AC
5516 big pointer types
5517
5518 * table.ads: Add for Table_Ptr'Storage_Size use 0
5519
5520 * types.ads: Add Big_String declarations
5521 Add Size_Clause of zero for big pointer types
5522
55232008-04-08 Vincent Celier <celier@adacore.com>
5524
5525 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5526 (Usage): Add line for switch --subdirs=
5527 Add new switch -eL, to follow symbolic links when processing project
5528 files.
5529
5530 * gnatcmd.adb: Process switches -eL and --subdirs=
5531 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5532 Program_Name to get proper tool names when AAMP_On_Target is set.
5533 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5534 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5535 Osint.Program_Name).
5536
5537 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5538 (Usage): Add lines for switches -eL and --subdirs=
5539
5540 * makeusg.adb: Add line for switch --subdirs=
5541
9e81dbc7 5542 * prj.ads:
d563d3f0
AC
5543 (Source_Data): New Boolean component Compiled, defaulted to True
5544 (Empty_File_Name: New global variable in private part, initialized in
5545 procedure Initialize.
5546 (Subdirs_Option): New constant string
5547 (Subdirs): New String_Ptr global variable
5548 (Language_Config): New component Include_Compatible_Languages
5549 (Project_Qualifier): New type for project qualifiers
5550 (Project_Data): New component Qualifier
5551 (Project_Configuration): New component Archive_Builder_Append_Option
5552
5553 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5554 another imported project indicate the name of this imported project.
5555 (Check_File): When a unit is in two project files, indicate the project
5556 names and the paths of the source files for each project.
5557 (Add_Source): Set Compiled to False if compiler driver is empty. Only
5558 set object, dependency and switches file names if Compiled is True.
5559 (Process_Compiler): Allow the empty string for value of attribute Driver
5560 (Get_Directories): When Subdirs is not null and Object_Dir is not
5561 specified, locate and create if necessary the actual object dir.
5562 (Locate_Directory): When Subdirs is not empty and Create is not the
5563 empty string, locate and create if necessary the actual directory
5564 as a subdirectory of directory Name.
5565 (Check_Library_Attributes.Check_Library): Allow a project where the only
5566 "sources" are header files of file based languages to be imported by
5567 library projects, in multi-language mode (gprbuild).
5568 (Check_Library_Attributes.Check_Library): In multi-language mode
5569 (gprbuild), allow a library project to import a project with no
5570 sources, even when this is not declared explicitly.
5571 (Check_If_Externally_Built): A virtual project extending an externally
5572 built project is also externally built.
5573 (Check_Library_Attributes): For a virtual project extending a library
5574 project, inherit the library directory.
5575 (Process_Project_Level_Array_Attributes): Process new attribute
5576 Inherit_Source_Path.
5577 For projects with specified qualifiers "standard", "library" or
5578 "abstract", check that the project conforms to the qualifier.
5579 (Process_Project_Level_Simple_Attributes): Process new attribute
5580 Archive_Builder_Append_Option.
5581
5582 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5583 (Normalize_Compiler_Switches): Only keep compiler switches that are
5584 passed to gnat1 by the gcc driver and that are stored in the ALI file
5585 by gnat1.
5586 Do not take into account switc -save-temps
5587
5588 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5589 gprmake is called with -eL.
5590 (Scan_Arg): Recognize switch -eL
5591 (Usage): Add line for switch -eL
5592
5593 * prj.adb (Initialize): Initialize Empty_File_Name
5594 (Project_Empty): New component Qualifier
5595
5596 * prj-attr.ads, prj-attr.adb: New project level attribute
5597 Inherit_Source_Path.
5598 New project level attribute Archive_Builder_Append_Option
5599
5600 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5601
5602 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5603 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5604 upward compatibility.
5605
5606 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5607 each Trying ..." on different lines.
5608 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5609 is "configuration" when not in configuration. Fail when in configuration
5610 when a specified qualifier is other than "configuration".
5611
5612 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5613 full associative array together.
5614 (Recursive_Process): Put the project qualifier in the project data
9e81dbc7 5615
d563d3f0
AC
5616 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5617 (Set_Project_Qualifier_Of): New procedure
5618
56192008-04-08 Robert Dewar <dewar@adacore.com>
5620
5621 * errout.ads: Update comments for new handling of info: messages
5622
5623 * erroutc.adb (Matches): New procedure
5624 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5625 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5626 info messages as well as style messages.
5627
5628 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5629
5630 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5631 subprograms.
5632 (Check_A_Call): Special "info: " warnings now have ? in the text
5633 (Elab_Warning): Use info message in static case
5634
56352008-04-08 Ed Schonberg <schonberg@adacore.com>
5636
5637 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5638 whether an array aggregate with static bounds and scalar components
5639 should be expanded into a static constant.
5640
56412008-04-08 Gary Dismukes <dismukes@adacore.com>
5642 Ed Schonberg <schonberg@adacore.com>
5643 Robert Dewar <dewar@adacore.com>
5644
5645 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5646 Has_Stream_Attribute_ Definition when checking for available stream
5647 attributes on parameters of a limited type in Ada 2005. Necessary for
5648 proper recognition of visible stream attribute clauses.
5649 (Has_Stream_Attribute_Definition): If the type is derived from a
5650 private type, then use the derived type's underlying type for checking
5651 whether it has stream attributes.
5652 (Validate_Object_Declaration): The check for a user-defined Initialize
5653 procedure applies also to types with controlled components or a
5654 controlled ancestor.
5655 Reject an object declaration in a preelaborated unit if the type is a
5656 controlled type with an overriding Initialize procedure.
5657 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5658 checking when the parent of a dereference is a selected component and
5659 the name has not been analyzed.
5660
5661 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5662 prefixes that are invalid explicit dereferences of remote
5663 access-to-class-wide values, first checking whether the selected
5664 component is a prefixed form of call to a tagged operation.
5665 (Analyze_Call): Remove code that issues an error for limited function
5666 calls in illegal contexts, as we now support all of the contexts that
5667 were forbidden here.
5668 Allow a function call that returns a task.and appears as the
5669 prefix of a selected component.
5670 (Analyze_Reference): Give error message if we try to make a 'Reference
5671 for an object that is atomic/aliased without its type having the
5672 corresponding attribute.
5673 (Analyze_Call): Remove condition checking for attributes to allow
5674 calls to functions with inherently limited results as prefixes of
5675 attributes. Remove related comment about Class attributes.
5676 (Analyze_Selected_Component): If the prefix is a remote type, check
5677 whether this is a prefixed call before reporting an error.
5678 (Complete_Object_Operation): If the controlling formal is an access to
5679 variable reject an actual that is a constant or an access to one.
5680 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5681 primitive operations from base type.
5682
5683 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5684 build-in-place
5685 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5686 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5687 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5688 (Expand_N_Slice): Test for prefix that is a build-in-place function call
5689 and call Make_Build_In_Place_Call_In_Anonymous_Context.
5690 (Analyze_Call): Remove code that issues an error for limited function
5691 calls in illegal contexts, as we now support all of the contexts that
5692 were forbidden here.
5693 New calling sequence for Get_Simple_Init_Val
5694 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5695 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5696
56972008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5698 Ed Schonberg <schonberg@adacore.com>
5699 Robert Dewar <dewar@adacore.com>
5700
5701 * exp_ch2.adb: Minor reformatting.
5702 (Expand_Entry_Index_Parameter): Set the type of the identifier.
5703 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5704 (Expand_Protected_Component): New routine.
5705 (Expand_Protected_Private): Removed.
5706 Add Sure parameter to Note_Possible_Modification calls
5707
5708 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5709 generated subprogram declaration must inherit the overriding indicator
5710 from the instantiation node.
5711 (Validate_Access_Type_Instance): If the designated type of the actual is
5712 a limited view, use the available view in all cases, not only if the
5713 type is an incomplete type.
5714 (Instantiate_Object): Actual is illegal if the formal is null-excluding
5715 and the actual subtype does not exclude null.
5716 (Process_Default): Handle properly abstract formal subprograms.
5717 (Check_Formal_Package_Instance): Handle properly defaulted formal
5718 subprograms in a partially parameterized formal package.
5719 Add Sure parameter to Note_Possible_Modification calls
5720 (Validate_Derived_Type_Instance): if the formal is non-limited, the
5721 actual cannot be limited.
5722 (Collect_Previous_Instances): Generate instance bodies for subprograms
5723 as well.
5724
5725 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5726 try to set RM_Size.
5727 Add Sure parameter to Note_Possible_Modification calls
5728 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5729 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5730 constant overlaid by variable and issue warning.
5731 Use new Is_Standard_Character_Type predicate
5732 (Analyze_Record_Representation_Clause): Check that the specified
5733 Last_Bit is not less than First_Bit - 1.
5734 (Analyze_Attribute_Definition_Clause, case Address): Check for
5735 self-referential address clause
5736
5737 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5738 detection mechanism when the lhs is a prival.
5739 (Analyze_Assignment): Call Check_Unprotected_Access to detect
5740 assignment of a pointer to protected data, to an object declared
5741 outside of the protected object.
5742 (Analyze_Loop_Statement): Check for unreachable code after loop
5743 Add Sure parameter to Note_Possible_Modication calls
5744 Protect analysis from previous syntax error such as a scope mismatch
5745 or a missing begin.
5746 (Analyze_Assignment_Statement): The assignment is illegal if the
5747 left-hand is an interface.
5748
ea081ad7
AC
5749 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5750 violation of restriction No_Implicit_Conditionals
d563d3f0
AC
5751 Add Sure parameter to Note_Possible_Modication calls
5752 Use new Is_Standard_Character_Type predicate
5753 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5754 call as operator. Fixes problems (e.g. validity checking) which
5755 come from the result looking as though it does not come from source).
5756 (Resolve_Call): Check case of name in named parameter if style checks
5757 are enabled.
5758 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5759 from the checking that such calls should not occur from an entry body.
5760 (Resolve_Call): If the return type of an Inline_Always function
5761 requires the secondary stack, create a transient scope for the call
5762 if the body of the function is not available for inlining.
5763 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5764 that are actuals for in-out formals.
5765 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5766 primitive operations from base type.
5767 (Analyze_Selected_Component): If the context is a call to a protected
5768 operation the parent may be an indexed component prior to expansion.
5769 (Resolve_Actuals): If an actual is of a protected subtype, use its
5770 base type to determine whether a conversion to the corresponding record
5771 is needed.
5772 (Resolve_Short_Circuit): Handle pragma Check
5773
5774 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5775 Use new Is_Standard_Character_Type predicate
5776 (Eval_Relational_Op): Catch more cases of string comparison
5777
57782008-04-08 Robert Dewar <dewar@adacore.com>
5779 Gary Dismukes <dismukes@adacore.com>
5780
5781 * s-rident.ads: Add No_Default_Initialization restriction
5782
9e81dbc7 5783 * exp_tss.adb:
d563d3f0
AC
5784 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5785 (Set_TSS): Handle No_Default_Initialization case
5786
5787 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5788 No_Default_Initialization
5789 (Expand_N_Subprogram_Body): Remove redundant initialization of out
5790 parameters when Normalize_Scalars is active.
5791 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5792 Fix casing error in formal parameter name in call
5793 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5794 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5795 dispatching call on VM targets.
5796
57972008-04-08 Gary Dismukes <dismukes@adacore.com>
5798 Thomas Quinot <quinot@adacore.com>
5799
5800 * exp_ch7.adb (Find_Final_List): Change the test for generating a
5801 selected component from an access type's Associated_Final_Chain to
5802 check for the presence of that field, rather than assuming it exists
5803 for all named access types.
5804 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5805 procedure to call at the end of the generated cleanup procedure.
5806 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5807 and an At_End_Proc already exists in the handled sequence of statements
5808 for which cleanup actions are being expanded, the original cleanup
5809 action must be preserved.
5810
58112008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5812 Ed Schonberg <schonberg@adacore.com>
5813 Robert Dewar <dewar@adacore.com>
5814 Gary Dismukes <dismukes@adacore.com>
5815
5816 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5817 Build_Unprotected_Subprogram_Body): Generate debug info for
5818 declarations related to the handling of private data in task and
5819 protected types.
5820 (Debug_Private_Data_Declarations): New subprogram.
5821 (Install_Private_Data_Declarations): Remove all debug info flagging.
5822 This is now done by Debug_Private_Data_Declarations at the correct
5823 stage of expansion.
5824 (Build_Simple_Entry_Call): If the task name is a function call, expand
5825 the prefix into an object declaration, and make the surrounding block a
5826 task master.
5827 (Build_Master_Entity): An internal block is a master if it wraps a call.
5828 Code reformatting, update comments. Code clean up.
5829 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5830 (Replicate_Entry_Formals): If the formal is an access parameter or
5831 anonymous access to subprogram, copy the original tree to create new
5832 entities for the formals of the subprogram.
5833 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5834 for tasks to store the value passed using pragma Relative_Deadline.
5835 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5836 run-time call to create a task.
5837 (Build_Wrapper_Spec): If the controlling argument of the interface
5838 operation is an access parameter with a non-null indicator, use the
5839 non-null indicator on the wrapper.
5840
5841 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5842 present, which it may not be in the case where the type entity is an
5843 incomplete view brought in by a limited with.
5844 (Analyze_Task_Type): Only retrieve the full view when present, which it
5845 may not be in the case where the type entity is an incomplete view brought
5846 in by a limited with.
5847 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5848 private components of a protected type, to prevent the generation of freeze
5849 nodes for which there is no proper scope of elaboration.
5850
5851 * exp_util.ads, exp_util.adb
5852 (Remove_Side_Effects): If the expression is a function call that returns a
5853 task, expand into a declaration to invoke the build_in_place machinery.
5854 (Find_Protection_Object): New routine.
5855 (Remove_Side_Effects): Also make a copy of the value
5856 for attributes whose result is of an elementary type.
5857 (Silly_Boolean_Array_Not_Test): New procedure
5858 (Silly_Boolean_Array_Xor_Test): New procedure
5859 (Is_Volatile_Reference): New function
5860 (Remove_Side_Effects): Use Is_Volatile_Reference
5861 (Possible_Bit_Aligned_Component): Handle slice case properly
5862
5863 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5864 case test to Exp_Util
5865 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5866
58672008-04-08 Thomas Quinot <quinot@adacore.com>
5868
5869 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5870 in call
5871 (Add_RACW_Features): When processing an RACW in another unit than the
5872 main unit, set Body_Decls to No_List to indicate that the bodies of
5873 the type's TSS must not be generated.
5874 (GARLIC_Support.Add_RACW_Read_Attribute,
5875 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5876 Body_Decls is No_List.
5877 (PolyORB_Support.Add_RACW_Read_Attribute,
5878 PolyORB_Support.Add_RACW_Write_Attribute,
5879 PolyORB_Support.Add_RACW_From_Any,
5880 PolyORB_Support.Add_RACW_To_Any,
5881 PolyORB_Support.Add_RACW_TypeCode): Same.
5882 (Transmit_As_Unconstrained): New function.
5883 (Build_Ordered_Parameters_List): Use the above to order parameters.
5884 (GARLIC_Support.Build_General_Calling_Stubs):
5885 Use the above to determine which parameters to unmarshall using 'Input
5886 at the point where their temporary is declared (as opposed to later on
5887 with a 'Read call).
5888 (PolyORB_Support.Build_General_Calling_Stubs):
5889 Use the above to determine which parameters to unmarshall using From_Any
5890 at the point where their temporary is declared (as opposed to later on
5891 with an assignment).
5892
58932008-04-08 Ed Schonberg <schonberg@adacore.com>
5894
5895 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5896 an Input function for an access type, do not perform default
5897 initialization on the local variable that receives the value, to
5898 prevent spurious warnings when the type is null-excluding.
5899
59002008-04-08 Robert Dewar <dewar@adacore.com>
5901 Ed Schonberg <schonberg@adacore.com>
5902
5903 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5904 units.
5905 (Size_Known): Generic formal scalar types have known at compile
5906 time size, so remove check.
5907 Fix casing error in formal parameter name in call
5908 (Freeze_Subprogram): If the subprogram is a user-defined operator,
5909 recheck its overriding indication.
5910
59112008-04-08 Vincent Celier <celier@adacore.com>
5912
5913 * gnat1drv.adb: Send all messages indicating an error to standard error
5914
59152008-04-08 Robert Dewar <dewar@adacore.com>
5916
5917 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5918 (List_Applicable_Restrictions): Do not list existing restrictions
5919
59202008-04-08 Thomas Quinot <quinot@adacore.com>
5921
5922 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5923 add a pointer to generic sockets literature
5924 do not mention that the given example is "typical" usage.
5925 Remove obsolete comment about multicast not being supported on Windows.
5926 (Connect_Socket): Make Server mode IN rather than IN OUT
5927 since this formal is never modified.
5928
59292008-04-08 Robert Dewar <dewar@adacore.com>
5930
5931 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5932 the declaration for some different entity.
5933 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5934 list is precent (following the parent subtype indication), display
5935 appropriate "and" keyword.
5936
5937 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5938 Remove unnecessary calls to Init_Size_Align and Init_Esize.
5939 Add notes on use of Parent field of an Itype
5940
59412008-04-08 Ed Schonberg <schonberg@adacore.com>
5942 Robert Dewar <dewar@adacore.com>
5943 Gary Dismukes <dismukes@adacore.com>
5944
5945 * lib-xref.adb (Is_On_LHS): Remove dead code
5946 (Output_Overriden_Op): If the overridden operation is itself inherited,
5947 list the ancestor operation, which is the one whose body or absstract
5948 specification is actually being overridden. For source navigation
5949 purposes.
5950
5951 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5952 operation is primitive for the type.
5953 (Declare_Inherited_Private_Subprograms): If the new operation overrides
5954 an inherited private subprogram, set properly the Overridden_Operation
5955 attribute, for better cross-reference information.
5956 (Analyze_Package_Specification): Do late analysis of spec PPCs
5957 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5958 properly the full view and underlying full views of a private type in a
5959 child unit, whose full view is derived from a private type in a parent
5960 unit, and whose own full view becomes visible in the child body.
5961
5962 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5963 primitive operation after the type has been frozen, add an explicit
5964 reference to the type and the operation, because other primitive
5965 references have been emitted already.
5966 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5967 dispatching call on VM targets.
5968
59692008-04-08 Vincent Celier <celier@adacore.com>
5970 Thomas Quinot <quinot@adacore.com>
5971
5972 * make.adb: (Gnatmake_Called): Remove, no longer necessary
5973 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5974 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5975 (Insert_Project_Sources): Take into account index in multi-unit source
5976 files.
5977 After building a library project, delete all temporary files.
5978 (Initialize): Reset current output after parsing project file.
5979 (Collect_Arguments_And_Compile): Never insert in the queue the sources
5980 of library projects that are externally built.
5981 Put file name in error and inform messages if -df is used
5982 (Display): If invoked with -d7, do not display path names, but only
5983 file names.
5984
5985 * makeutl.ads (Path_Or_File_Name): New function
5986 (Path_Or_File_Name): New function
5987
59882008-04-08 Arnaud Charlet <charlet@adacore.com>
5989
5990 * Make-lang.in: Disable warnings during first stage of bootstrap
5991 Get rid of gnatbl.
5992 Update dependencies.
5993
59942008-04-08 Vincent Celier <celier@adacore.com>
5995
5996 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5997 case to decide if ALI object file is included in library.
5998 (Build_Library): Never attempt to build a library if the project is
5999 externally built.
6000
60012008-04-08 Thomas Quinot <quinot@adacore.com>
6002
6003 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
6004 (No_List) is defined to return Empty.
6005
60062008-04-08 Jose Ruiz <ruiz@adacore.com>
6007
6008 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
6009 documentation.
6010 Update comments.
6011 (Read_Default_Search_Dirs): Do not consider spaces as path separators
6012 because spaces may be part of legal paths.
6013
60142008-04-08 Robert Dewar <dewar@adacore.com>
6015
6016 * par-ch11.adb (P_Exception_Handler): Check indentation level for
6017 handler
6018
60192008-04-08 Ed Schonberg <schonberg@adacore.com>
6020
6021 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
6022 in a type declaration, if this is not an interface declaration or
6023 private type extension.
6024
60252008-04-08 Vincent Celier <celier@adacore.com>
6026
6027 * prj-util.adb (Executable_Of): New String parameter Language. When
6028 Ada_Main is False and Language is not empty, attempt to remove the body
6029 suffix or the spec suffix of the language to get the base of the
6030 executable file name.
6031 (Put): New Boolean parameter Lower_Case, defauilted to False. When
6032 Lower_Case is True, put the value in lower case in the name list.
6033 (Executable_Of): If there is no executable suffix in the configuration,
6034 then do not modify Executable_Extension_On_Target.
6035
6036 * prj-util.ads (Executable_Of): New String parameter Language,
6037 defaulted to the empty string.
6038 (Put): New Boolean parameter Lower_Case, defauilted to False
6039
60402008-04-08 Robert Dewar <dewar@adacore.com>
6041
6042 * scng.adb (Scan_Identifier): Handle case of identifier starting with
6043 wide character using UTF-8 encoding.
6044
60452008-04-08 Javier Miranda <miranda@adacore.com>
6046
6047 * sem.adb (Analyze): Consider case in which we analyze an empty node
6048 that was generated by a call to a runtime function that is not
6049 available under the configurable runtime.
6050
6051 * sem.ads (Inside_Freezing_Actions): New flag.
6052 (Save_Check_Policy_List): New field in scope stack entry
6053
60542008-04-08 Ed Schonberg <schonberg@adacore.com>
6055 Robert Dewar <dewar@adacore.com>
6056
6057 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
6058 the ancestor part of an extension aggregate for a limited type.
6059 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
6060 enumeration index bounds.
6061 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
6062 when array is too short.
6063 (Check_Expr_OK_In_Limited_Aggregate): Move function
6064 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
6065 change name).
6066 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
6067 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
6068 component associations.
6069 (Check_Non_Limited_Type): Moved to outer level and renamed.
6070 (Resolve_Record_Aggregate): In an extension aggregate, an association
6071 with a box initialization can only designate a component of the
6072 extension, not a component inherited from the given ancestor
6073
6074 * sem_case.adb: Use new Is_Standard_Character_Type predicate
6075
60762008-04-08 Robert Dewar <dewar@adacore.com>
6077
6078 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
6079 negative scale
6080 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
6081 Properly handle case where Aft > Scale and input number is less than
6082 one.
6083
60842008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6085
6086 * s-stoele.ads, s-soflin.ads: Move the location of
6087 Dummy_Communication_Block from System.Storage_Elements to
6088 System.Soft_Links.
6089
6090 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6091 emulate Communication_Block in certain scenarios.
6092
60932008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6094
6095 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6096 subprogram.
6097 Add new subtype S_WWC, unchecked conversion routines From_WWC and
6098 To_WWC.
6099 (I_WWC, O_WWC): New routines for input and output of
6100 Wide_Wide_Character.
6101
61022008-04-08 Robert Dewar <dewar@adacore.com>
6103
6104 * stringt.adb (Write_String_Table_Entry): Handle wide characters
6105 properly
6106
61072008-04-08 Robert Dewar <dewar@adacore.com>
6108
6109 * styleg.adb (Check_Comment): Allow special char after -- in
6110 non-end-of-line case
6111
61122008-04-08 Robert Dewar <dewar@adacore.com>
6113
6114 * stylesw.adb: Implement -gnaty + - y options
6115 (Set_GNAT_Style_Check_Options): Includ I in style check string
6116
6117 * stylesw.ads: Add comments for new style switch options
6118
61192008-04-08 Sergey Rybin <rybin@adacore.com>
6120
6121 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6122 to the set of the GNAT components needed by ASIS.
6123
61242008-04-08 Bob Duff <duff@adacore.com>
6125
6126 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6127
61282008-04-08 Tristan Gingold <gingold@adacore.com>
6129
6130 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6131 Improve error message generation.
6132
61332008-04-08 Vincent Celier <celier@adacore.com>
6134
6135 * a-direct.adb (Start_Search): Check for Name_Error before checking for
6136 Use_Error, as specified in the RM. Check if directory is open and raise
6137 Use_Error if it is not.
6138
61392008-04-08 Vincent Celier <celier@adacore.com>
6140 Robert Dewar <dewar@adacore.com>
6141
6142 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6143 AAMP_On_Target is set.
6144
6145 * vms_data.ads: Add NOxxx to style check switch list
6146 Add entry COMPONENTS for -gnatVe
6147 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6148 (/SUBDIRS=).
6149 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6150 Add qualifiers for gnatmetric coupling options
6151 Add note that -gnata enables all checks
6152 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6153 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6154 New warning flag -gnatw.e
6155
6156 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6157 Add entry for -gnatyN (forgotten before)
6158 Line for new warning switch -gnatw.p
6159 New warning flag -gnatw.e
6160
6161 * gnat_ugn.texi: Add documentation fpr project file switch -aP
6162 Document -gnaty - + y
6163 Replace occurences of "package specification" with "package spec"
6164 Define preprocessing symbols in documentation of gnatprep
6165 Clarify reason for distinguishing overflow checking
6166 Add documentation for project-aware tool switches -eL and --subdirs=
6167 Complete list of configuration pragmas
6168 Specify that, even when gnatmake switch -x is used, mains on the command
6169 line need to be sources of project files.
6170 Editing of gnatcheck/gnatmetric doc.
6171 Add documentation for -gnatw.p/-gnatw.P
6172 Add missing documentation for -fno-inline-functions.
6173 Add documentation for -gnatw.e
6174
6175 * gnat_rm.texi: Add documentation for No_Default_Initialization
6176 Replace occurences of "package specification" with "package spec"
6177 Document use of * in Warnings Off string
6178 Update documentation of alignment/component clauses.
6179 Add documentation for Invalid_Value
6180 Document new consistency rule for Optimize_Alignment
6181 Add documentation for Precondition and Postcondition pragmas
6182 Add documentation for Check and Check_Policy pragmas
6183 Document new Enum_Val attribute
6184 Remove requirement for static string in pragma Assert
6185 Add documentation on GNAT.Time_Stamp
6186
6187 * ug_words: add entry for -gnatVe
6188 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6189 Add entry for -gnatw.e
6190
6191 * debug.adb: Add missing documentation for d.a flag
6192 Document new -gnatd.a switch.
6193 Add documentation for new gnatmake debug switch -df
6194
61952008-04-08 Thomas Quinot <quinot@adacore.com>
6196
6197 * gen-soccon.c: Bump year in copyright notices.
6198
6199 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6200
62012008-04-08 Eric Botcazou <ebotcazou@adacore.com>
6202
6203 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6204 Minor reformatting.
6205
62062008-04-08 Robert Dewar <dewar@adacore.com>
6207 Bob Duff <duff@adacore.com>
6208
6209 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6210 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6211
6212 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6213
6214 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6215
6216 * g-trasym.ads: Minor comment improvements
6217
6218 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6219
6220 * a-sequio.ads, a-direio.ads: improve message for tagged type
6221
6222 * a-strunb.ads: Minor reformatting
6223
6224 * a-tifiio.adb: Minor reformatting
6225
6226 * atree.adb (Fix_Parents): Use clearer names for formals
6227 Cleanup and simplify code
6228 Use named notation in calls
6229
6230 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6231 confusing calls
6232
6233 * uintp.adb: Used named notation for some confusing calls
6234
6235 * bindusg.adb: Minor change in one line of output
6236
6237 * cstand.adb: Minor reformatting of src representation of Standard
6238
6239 * a-assert.ads: Add comment.
6240
6241 * g-decstr.adb: Fix bad indentation
6242
6243 * expander.ads, expander.adb: Code clean up.
6244
6245 * sem_dist.ads: Minor comment improvement
6246
6247 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6248 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6249
6250 * i-cstrin.adb: Fix casing error in formal parameter name in call
6251
62522008-04-08 Ed Schonberg <schonberg@adacore.com>
6253
6254 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6255 mentioned in limited_with_clauses to do create semantic dependencies
6256 even though they appear in the ali file.
6257
62582008-04-08 Emmanuel Briot <briot@adacore.com>
6259
6260 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6261 statement.
6262 (Get_Configuration): New subprogram.
6263
6264 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6265 These optional parameters help preserve the casing of the project's name
6266 when pretty-printing.
6267
62682008-04-08 Jerome Lambourg <lambourg@adacore.com>
6269 Arnaud Charlet <charlet@adacore.com>
6270
6271 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6272 then use __gnat_set_exit_status to report the returned status code.
6273
6274 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6275 messages on .NET, since some constructs of the language are not
6276 properly supported.
6277
6278 * gnatlink.adb (Gnatlink): In case the command line is too long for the
6279 .NET linker, gnatlink now concatenate all .il files and pass this to
6280 ilasm.
6281
d8ec5bf2 62822008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9e81dbc7 6283 Xavier Grave <grave@ipno.in2p3.fr>
d8ec5bf2
AJ
6284
6285 * Makefile.in: Add make ifeq define for mips/mipsel support.
9e81dbc7 6286 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
d8ec5bf2
AJ
6287 system-linux-mips.ads: New files.
6288
7437c8d4
AJ
62892008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6290
9e81dbc7 6291 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
7437c8d4
AJ
6292 detect systems using GNU libc.
6293 * gsocket.h: ditto.
6294 * socket.c: ditto.
6295 * adaint.c: ditto.
6296 * link.c: ditto.
6297
1dab7b35
AJ
62982008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6299
9e81dbc7 6300 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
1dab7b35
AJ
6301 constant constant for sysconf call.
6302 (bit_field): New packed boolean type used by cpu_set_t.
6303 (cpu_set_t): New type corresponding to the C type with
6304 the same name. Note that on the Ada side we use a bit
6305 field array for the affinity mask. There is not need
6306 for the C macro for setting individual bit.
6307 (pthread_setaffinity_np): New imported routine.
6308 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6309 on GNU/kFreeBSD.
6310
39fcde8f
EB
63112008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6312
6313 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6314
9dd9bf80
EB
63152008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6316
6317 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6318 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6319 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6320 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6321 Return by Depressed Stack Pointer.
6322
2d091b12
EB
63232008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6324
6325 * decl.c (is_variable_size): Do not unconditionally return false
6326 on non-strict alignment platforms.
6327
1bde5bc4
EB
63282008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6329
6330 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6331 used to process all the variants of the specified type.
6332 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6333 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
6334 (rest_of_type_decl_compilation): Likewise.
6335 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6336
9ff420f1
PB
63372008-04-03 Paolo Bonzini <bonzini@gnu.org>
6338
1bde5bc4
EB
6339 * gigi.h (insert_block): Kill.
6340 * utils.c (insert_block): Kill.
9ff420f1 6341
bf1e48d1
EB
63422008-04-02 Eric Botcazou <ebotcazou@adacore.com>
6343
6344 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6345 type has self-referential size, get the size from the initializing
6346 expression directly if it is also a constant whose nominal type
6347 has self-referential size.
6348
a6a0635e
JDA
63492008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6350
51e5c7b5
JDA
6351 PR ada/33688
6352 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6353
a6a0635e
JDA
6354 PR ada/33857
6355 * env.c: Always include crt_externs.h if __APPLE__ is defined.
6356 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6357
4d22f5b1
AJ
63582008-04-01 Andreas Jaeger <aj@suse.de>
6359
6360 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6361 IP_PKTINFO.
6362
dec55d76
RW
63632008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6364
6365 * g-table.adb, g-tasloc.adb, g-traceb.ads,
6366 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6367 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6368 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6369 gnatlink.adb, gnatmem.adb, gprep.adb,
6370 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6371 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6372 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6373 lib-xref.ads, lib.adb, link.c, live.ads,
6374 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6375 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6376 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6377 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6378 namet.adb, namet.h, nlists.adb, nlists.ads,
6379 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6380 osint-c.ads, osint.adb, osint.ads, output.ads,
6381 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6382 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6383 par-endh.adb, par-labl.adb, par-prag.adb,
6384 par-sync.adb, par-tchk.adb, par-util.adb,
6385 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6386 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6387 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6388 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6389
5a864002
EB
63902008-03-31 Eric Botcazou <ebotcazou@adacore.com>
6391
6392 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6393 size if it has overflowed.
6394
2566855a 63952008-03-31 Olivier Hainque <hainque@adacore.com>
9e81dbc7 6396 Eric Botcazou <ebotcazou@adacore.com>
2566855a
OH
6397
6398 * utils2.c (find_common_type): Document assumption on t1/t2 vs
6399 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6400
e14c931f
RW
64012008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6402
6403 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6404 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6405 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6406 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6407 exp_tss.ads, exp_util.adb, exp_util.ads,
6408 exp_vfpt.adb, freeze.adb, freeze.ads,
6409 frontend.adb, g-alleve.adb, g-altcon.adb,
6410 g-altive.ads, g-alveop.ads, g-alvevi.ads,
6411 g-arrspl.adb, g-busorg.ads, g-calend.adb,
6412 g-calend.ads, g-casuti.ads, g-cgideb.adb,
6413 g-comlin.adb, g-comlin.ads, g-curexc.ads,
6414 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6415 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6416 g-dyntab.adb, g-encstr.ads, g-excact.ads,
6417 g-except.ads, g-expect.ads, g-heasor.adb,
6418 g-hesora.adb, g-hesorg.adb, g-htable.ads,
6419 g-locfil.ads, g-md5.adb, g-md5.ads,
6420 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6421 g-pehage.adb, g-pehage.ads, g-regexp.adb,
6422 g-regexp.ads, g-regpat.adb, g-regpat.ads,
6423 g-soccon-aix.ads, g-soccon-darwin.ads,
6424 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6425 g-soccon-hpux.ads, g-soccon-irix.ads,
6426 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6427 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6428 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6429 g-soccon-solaris.ads, g-soccon-tru64.ads,
6430 g-soccon-vms.ads, g-soccon-vxworks.ads,
6431 g-soccon.ads, g-socket.adb, g-socket.ads,
6432 g-socthi-mingw.adb, g-socthi-vms.adb,
6433 g-socthi-vxworks.adb, g-soliop-mingw.ads,
6434 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6435 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6436 typos.
6437
2bc894d9
EB
64382008-03-27 Eric Botcazou <ebotcazou@adacore.com>
6439
6440 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6441 if the procedure is imported.
6442
640bd0bf
AC
64432008-03-26 Arnaud Charlet <charlet@adacore.com>
6444
6445 * adaint.c: Fix warnings.
6446
0afae63b
AC
64472008-03-26 Arnaud Charlet <charlet@adacore.com>
6448
6449 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6450
afc5f979
AC
64512008-03-26 Arnaud Charlet <charlet@adacore.com>
6452
6453 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6454 Fix problem of status check for null file
6455
c5d31169
AC
64562008-03-26 Arnaud Charlet <charlet@adacore.com>
6457
6458 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6459 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6460 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6461 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6462 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6463 comments.
6464
b501b251
AC
64652008-03-26 Thomas Quinot <quinot@adacore.com>
6466
2bc894d9 6467 PR ada/33688
b501b251
AC
6468 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6469 Get_Socket_Option): Add support for Receive_Packet_Info.
6470
6471 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6472 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6473 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6474 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6475 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6476 new constants SO_REUSEPORT and IP_PKTINFO
6477
64782008-03-26 Robert Dewar <dewar@adacore.com>
6479
6480 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6481 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6482 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6483 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6484 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6485 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6486 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6487 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6488 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6489 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6490 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6491 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6492 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6493 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6494 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6495 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6496 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6497 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6498 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6499 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6500 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6501 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6502 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6503 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6504 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6505 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6506 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6507 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6508 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6509 s-tasloc.adb: Minor reformatting.
6510 Update comments.
6511 Remove "used for" sections from comments.
6512
65132008-03-26 Robert Dewar <dewar@adacore.com>
6514
6515 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6516 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6517 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6518 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6519 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6520 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6521 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6522 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6523 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6524 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6525 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6526 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6527 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6528 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6529 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6530 double spaced if it fits on one line and otherwise single spaced.
6531
65322008-03-26 Arnaud Charlet <charlet@adacore.com>
6533
9e81dbc7
AS
6534 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6535 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
b501b251
AC
6536 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6537 or task info if the thread could not be created.
6538
65392008-03-26 Arnaud Charlet <charlet@adacore.com>
6540
6541 * gnatvsn.ads (Library_Version): Bump to 4.4.
6542 (Current_Year): Bump to 2008.
6543
65442008-03-26 Robert Dewar <dewar@adacore.com>
6545
6546 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6547
6548 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6549
6550 * debug.adb: Add debug flags d.r and d.v
6551 Add debug flag .T (Optimize_Alignment (Time))
6552 Add debug flag .S (Optimize_Alignment (Space))
6553
6554 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6555 depending on setting of relevant debug flags.
6556 Replace use of Warnings_Off by Has_Warnings_Off
6557 (Freeze_Entity): In circuit for warning on suspicious convention
6558 actuals, do not give warning if subprogram has same entity as formal
6559 type, or if subprogram does not come from source.
6560 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6561 if Optimize_Alignment set to Space.
6562
6563 * frontend.adb: Add call to Sem_Warn.Initialize
6564 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6565 Reset Optimize_Alignment mode from debug switches .S and .T
6566
6567 * layout.adb (Layout_Composite_Object): Rewritten for
6568 Optimize_Aligment pragma.
6569
6570 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6571 mode.
6572
6573 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6574
6575 * par-prag.adb (N_Pragma): Chars field removed, use Chars
6576 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6577 this change. Add entry for pragma Optimize_Alignment
6578
6579 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6580 (Pragma_Identifier (..
6581 instead, adjustments throughout to accomodate this change.
6582 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6583 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6584 Add implementation of pragma Optimize_Alignment
6585
65862008-03-26 Vincent Celier <celier@adacore.com>
6587
6588 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6589 Improve memory usage to avoid use of stack.
6590
65912008-03-26 Robert Dewar <dewar@adacore.com>
6592
6593 * a-teioed.ads: Correct value of Default_Fill
6594
6595 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6596
65972008-03-26 Robert Dewar <dewar@adacore.com>
6598
6599 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6600 with Current_Output (introduce Self).
6601
66022008-03-26 Robert Dewar <dewar@adacore.com>
6603
6604 * checks.adb (Ensure_Valid): Capture valid status if possible
6605 (eliminate checks)
6606
66072008-03-26 Robert Dewar <dewar@adacore.com>
6608
6609 * stand.ads: Deal with reordering of package standard declarations
6610
6611 * cstand.adb: Put package Standard declarations in proper order
6612
66132008-03-26 Robert Dewar <dewar@adacore.com>
6614
6615 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6616 (Pragma_Identifier (.. instead.
6617 (OK_To_Reorder_Components): New flag
6618 (Has_Entries): Code cleanup.
6619 (Warnings_Off_Used): New flag
6620 (Warnings_Off_Used_Unmodified): New flag
6621 (Warnings_Off_Used_Unreferenced): New flag
6622 (Has_Warnings_Off): New function
6623 (Has_Unmodified): New function
6624 (Has_Unreferenced): New function
6625 (Is_Trivial_Subprogram): New flag
6626 (Is_Static_Dispatch_Table_Entity): New attribute.
6627 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6628 (more consistent with other similar names)
6629 (Access_Subprogram_Type): New classification function
6630
66312008-03-26 Robert Dewar <dewar@adacore.com>
6632
6633 * errout.ads: Document new !! insertion sequence
6634
6635 * errout.adb (N_Pragma): Chars field removed, use Chars
6636 (Pragma_Identifier (.. instead.
6637 Replace use of Warnings_Off by Has_Warnings_Off
6638 (Error_Msg_Internal): Don't delete warning ending in !!
6639
66402008-03-26 Robert Dewar <dewar@adacore.com>
6641
6642 * par.adb (Check_No_Right_Paren): Removed no longer used
6643
6644 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6645 (Pragma_Identifier (.. instead.
6646
6647 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6648
6649 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6650 par-ch4.adb: Minor improvements in error recovery and messages.
6651
6652 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6653 non-serious
6654
6655 * par-ch9.adb: Minor improvements in error recovery and messages
6656 (P_Protected): Better error recovery for "protected type x;"
6657
6658 * par-util.adb: Minor improvements in error recovery and messages
6659 (Check_No_Right_Paren): Removed no longer used
6660
66612008-03-26 Ed Schonberg <schonberg@adacore.com>
6662
6663 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6664 that the prefix of an attribute is the type of the aggregate being
6665 expanded.
6666
66672008-03-26 Javier Miranda <miranda@adacore.com>
6668 Robert Dewar <dewar@adacore.com>
6669
6670 * exp_attr.adb (N_Pragma): Chars field removed.
6671 (Expand_N_Attribute_Reference): If the designated type associated with
6672 attribute 'Unrestricted_Access is a subprogram entity then replace it
6673 by an E_Subprogram_Type itype.
6674 Implement attribute Old
6675
6676 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6677
6678 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6679 Replace call to
6680 New_Internal_Entity by call to Create_Itype to centralize calls
6681 building itypes, ad propagate the convention of the designated
6682 subprogram. In addition, disable the machinery cleaning constant
6683 indications from all entities in current scope when 'Unrestricted_Access
6684 corresponds with a node initializing a dispatch table slot.
6685 (Analyze_Attribute): Parameterless attributes returning a string or a
6686 type will not be called with improper arguments, so we can remove junk
6687 code that was dealing with this case.
6688 Implement attribute Old
6689
6690 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6691 Add entry for pragma Optimize_Alignment
6692 New standard names Sync and Synchronize
6693
66942008-03-26 Robert Dewar <dewar@adacore.com>
6695 Arnaud Charlet <charlet@adacore.com>
6696
6697 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6698 stmt.
6699 (No_Exception_Propagation_Active): New function.
6700 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6701 Update comments, and review all uses of No_Exception_Propagation, which
6702 are now correct and in sync with what gigi expects.
6703
6704 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6705 function.
6706 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6707 Update comments, and review all uses of No_Exception_Propagation, which
6708 are now correct and in sync with what gigi expects.
6709
67102008-03-26 Ed Schonberg <schonberg@adacore.com>
6711
6712 * sem_ch3.adb (Access_Definition): If the access type is the return
6713 result of a protected function, create an itype reference for it
6714 because usage will be in an inner scope from the point of declaration.
6715 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6716 OK_To_Reorder_Components.
6717 (Make_Index): If an overloaded range includes a universal integer
6718 interpretation, resolve to Standard.Integer.
6719 (Analyze_Subtype_Indication): Copy Convention to subtype
6720 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6721 limited an synchronized progenitors in type declaration and private
6722 extension declarations.
6723
6724 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6725 protected subprogram body, determine proper scope from subprogram
6726 declaration.
6727
67282008-03-26 Robert Dewar <dewar@adacore.com>
6729
6730 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6731 No_Run_Time_Mode
6732
67332008-03-26 Gary Dismukes <dismukes@adacore.com>
6734
6735 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6736 of a heap allocator for a limited unconstrained function return when
6737 resstriction No_Allocators is active.
6738 (Analyze_Allocator): The restriction No_Allocators is now only checked
6739 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6740
6741 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6742 of a heap allocator for a limited unconstrained function return when
6743 resstriction No_Allocators is active.
6744 (Analyze_Allocator): The restriction No_Allocators is now only checked
6745 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6746 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
6747 operands are fixed-point types, the universal_fixed predefined operation
6748 is used, regardless of whether the operand type (s) have a primitive
6749 operation of the same name.
6750
67512008-03-26 Javier Miranda <miranda@adacore.com>
6752
6753 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6754 Is_Static_Dispatch_Table
6755 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6756 to Exchange_Declarations to exchange the private and full-view. Bug
6757 found working in this issue.
6758 (Expand_Dispatching_Call): Propagate the convention of the subprogram
6759 to the subprogram pointer type.
6760 (Make_Secondary_DT): Replace generation of Prim'Address by
6761 Address (Prim'Unrestricted_Access)
6762 (Make_DT): Replace generation of Prim'Address by
6763 Address (Prim'Unrestricted_Access)
6764 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6765 simple call form for single entry.
6766 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6767 tables of predefined primitives).
6768 (Make_Secondary_DT): Add support to handle access to dispatch tables of
6769 predefined primitives.
6770 (Make_Tags): Add entities to Access_Dispatch_Table associated with
6771 access to dispatch tables containing predefined primitives.
6772
6773 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6774 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6775 this change.
6776 (Register_Predefined_DT_Entry): Updated to handle the new contents
6777 of attribute Access_Disp_Table (pointers to dispatch tables containing
6778 predefined primitives).
6779
6780 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6781 subprogram.
6782 (Find_Interface_ADT): Updated to skip the new contents of attribute
6783 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6784 primitives).
6785
6786 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6787 concurrent types.
6788 (Set_Convention): Use new function Is_Access_Subprogram_Type
6789 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6790 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6791 primitives).
6792
6793 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6794 expanded code avoiding calls to Build_Predef_Prims.
6795 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6796 call to Build_Get_Predefined_Prim_Op_Address.
6797
67982008-03-26 Javier Miranda <miranda@adacore.com>
6799
6800 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6801 subprogram Corresponding_Runtime_Package to know the runtime package
6802 that will provide support to a given protected type.
6803
6804 * exp_ch9.adb (Add_Private_Declarations,
6805 Build_Protected_Subprogram_Call,
6806 Build_Protected_Entry, Build_Simple_Entry_Call,
6807 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6808 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6809 cleanup using the new centralized subprogram Corresponding_Runtime
6810 Package to know the runtime package that provides support to
6811 a given protected type.
6812
68132008-03-26 Ed Schonberg <schonberg@adacore.com>
6814
6815 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6816 assignment is within the initialization procedure for a packed array,
6817 and Initialize_Scalars is enabled, compile right-hand side with checks
6818 off, because the value is purposely out of range.
6819
68202008-03-26 Vincent Celier <celier@adacore.com>
6821
6822 * gnatcmd.adb: Add processing for GNAT SYNC
6823
6824 * vms_conv.ads: (Command_Type): Add command Sync
6825
6826 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6827
6828 * vms_data.ads: Add entries for -gnatw.w
6829 Add qualifier for gnatstub --header-file option
6830 Add switches for GNAT SYNC
6831
6832 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6833 (Add_Package_Name): New procedure
6834 (Package_Name_List): New function
6835 (Initialize): Add known package names to the list
6836 (Register_New_Package): Add the new package name to the list
6837
68382008-03-26 Robert Dewar <dewar@adacore.com>
6839
6840 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6841 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6842 Raise_Exception by "raise with" construct.
6843
68442008-03-26 Pascal Obry <obry@adacore.com>
6845
6846 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6847 supported platforms.
9e81dbc7 6848
b501b251 6849 * Makefile.rtl: Add g-sercom.o.
9e81dbc7 6850
b501b251 6851 * impunit.adb: Add g-sercom.adb.
9e81dbc7 6852
b501b251
AC
6853 * s-crtl.ads (open): New routine.
6854 (close): Likewise.
6855 (write): Likewise.
9e81dbc7 6856
b501b251
AC
6857 * s-osinte-mingw.ads (BYTE): New type.
6858 (CHAR): Likewise.
6859 (OVERLAPPED): Likewise.
6860 (GENERIC_READ): New constant.
6861 (GENERIC_WRITE): Likewise.
6862 (OPEN_EXISTING): Likewise.
6863 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6864 type instead.
6865 (CreateFile): New routine.
6866 (WriteFile): Likewise.
6867 (ReadFile): Likewise.
6868 (CloseHandle): Move next to the other file oriented routines.
6869
6870 * g-sercom.ads: New unit.
6871
6872 * g-sercom.adb: Default implementation, calls to this unit will raise
6873 a program error exception.
9e81dbc7 6874
b501b251
AC
6875 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6876 GNU/Linux implementations.
6877
68782008-03-26 Robert Dewar <dewar@adacore.com>
6879
6880 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6881
6882 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6883 unchecked conversion for different conventions only for subprogram
6884 pointers or on VMS.
6885
68862008-03-26 Vincent Celier <celier@adacore.com>
6887
6888 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6889 to check if the specified object file is correct.
6890
68912008-03-26 Thomas Quinot <quinot@adacore.com>
6892
6893 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6894 Comes_From_Source to exclude primitives from being checked. We want to
6895 exclude predefined primitives only, so use the appropriate specific
6896 predicate. Also, flag a formal parameter of an anonymous
6897 access-to-subprogram type as illegal for a primitive operation of a
6898 remote access to class-wide type.
6899
69002008-03-26 Vincent Celier <celier@adacore.com>
6901
6902 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6903 known, check if it may be a missspelling of a known package name. In
6904 not verbose, not mode, issue warnings only if the package name is a
6905 possible misspelling.
6906 In verbose mode, always issue a warning for a not known package name,
6907 plus a warning if the name is a misspelling of a known package name.
6908
6909 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6910 limited withs or limited withs are parse during one call.
6911 (Parse_Single_Project): Post parse context clause in two passes: non
6912 limited withs before current project and limited withs after current
6913 project.
6914
6915 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6916 project with the name With_Name, even if it is only extended indirectly.
6917 (Recursive_Process): Process projects in order: first single withs, then
6918 current project, then limited withs.
6919
6920 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6921 project with the name With_Name, even if it is only extended indirectly.
6922
69232008-03-26 Robert Dewar <dewar@adacore.com>
6924
6925 * scn.adb (Initialize_Scanner): Format messages belong on standard error
6926
69272008-03-26 Ed Schonberg <schonberg@adacore.com>
6928
6929 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6930 a generic subprogram that is imported, do not attempt to compile
6931 non-existent body.
6932
6933 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6934 imported, do not generate a raise_program_error for the non-existent
6935 body.
6936 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6937 perform minimal name resolution on the generic to avoid spurious
6938 warnings.
6939 (Find_Actual_Type): the designated type of the actual in a child unit
6940 may be declared in a parent unit without being an actual.
6941
69422008-03-26 Robert Dewar <dewar@adacore.com>
6943
6944 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6945 * sinfo.ads, sinfo.adb (From_At_End): New flag
6946
69472008-03-26 Ed Schonberg <schonberg@adacore.com>
6948
6949 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6950 operations that have an interface parameter.
6951 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6952 Don't treat No_Return call as raise.
6953
6954 * sem_disp.adb (Check_Dispatching_Operations): apply check for
6955 non-primitive interface primitives to access parameters, not to all
6956 parameters of an access type.
6957
69582008-03-26 Ed Schonberg <schonberg@adacore.com>
6959
6960 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6961 declarations of a parent unit are made visible when compiling a child
6962 instance, the parent is not a hidden open scope, even though it may
6963 contain other pending instance.
9e81dbc7 6964
b501b251
AC
6965 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6966 hidden open scope for some child instance, it does affect the
6967 visibility status of other stach entries.
6968 (Analyze_Object_Renaming): Check that a class-wide object cannot be
6969 renamed as an object of a specific type.
6970
69712008-03-26 Robert Dewar <dewar@adacore.com>
6972
6973 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6974 recursion and raise SE directly.
6975 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6976 set for formal type for IN mode parameter.
6977
69782008-03-26 Robert Dewar <dewar@adacore.com>
6979
6980 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6981 (Initialize): New procedure
6982 (Output_Warnings_Off_Warnings): New procedure
6983 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6984 (Output_Non_Modifed_In_Out_Warnings): Ditto
6985 (Warn_On_Unreferenced_Entity): Ditto
6986
69872008-03-26 Vincent Celier <celier@adacore.com>
6988
6989 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6990 readable.
6991
69922008-03-26 Matthew Heaney <heaney@adacore.com>
6993
9e81dbc7 6994 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
b501b251
AC
6995 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6996 Marked with clauses as private, and controlled operations as overriding
6997
69982008-03-26 Robert Dewar <dewar@adacore.com>
6999
7000 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
7001
70022008-03-26 Robert Dewar <dewar@adacore.com>
7003
7004 * back_end.adb, back_end.ads: Minor reformatting
7005
7006 * bindgen.adb: Minor clarification of comments
7007
7008 * fname.ads: Minor comment fixes
7009
7010 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
7011 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
7012
7013 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
7014 xsnames.adb: Remove warnings off pragma no longer needed
7015
7016 * a-catizo.ads, a-calari.ads, a-calfor.adb,
7017 a-calfor.ads: Fix header.
7018
70192008-03-26 Tristan Gingold <gingold@adacore.com>
7020
7021 * init.c: Do not adjust pc for HPARITH on alpha/vms.
7022
70232008-03-26 Robert Dewar <dewar@adacore.com>
7024
7025 * lib-xref.adb: (OK_To_Set_Reference): New function
7026 (Generate_Reference): Don't set referenced from occurrence in Warnings,
7027 Unmodified, or Unreferenced pragma
7028
70292008-03-26 Robert Dewar <dewar@adacore.com>
7030
7031 * alloc.ads: Add entries for Warnings_Off_Pragmas table
7032
70332008-03-26 GNAT Script <nobody@adacore.com>
7034
7035 * Make-lang.in: Makefile automatically updated
7036
70372008-03-26 Robert Dewar <dewar@adacore.com>
7038
7039 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
7040 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
7041 removed, use Chars (Pragma_Identifier (.. instead, adjustments
7042 throughout to accomodate this change.
7043
7044 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
7045
7046 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
7047 Einfo.Set_Needs_Debug_Info)
7048
70492008-03-26 Robert Dewar <dewar@adacore.com>
7050
7051 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
7052 Add description for the new gnatstub option '--header-file'
7053 clarification of -gnatwz/-gnatwZ
7054 Add a "Irix-Specific Considerations" section to document the need to
7055 set LD_LIBRARY_PATH when using the default shared runtime library.
7056 Added documentation for both gcov and gprof.
7057
7058 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
7059 messages that are not suppressed when clients are compiled.
7060 Add documentation of s-pooglo s-pooloc
7061 Document the new GNAT.Serial_Communications API.
7062 Add documentation for 'Old attribute
7063 Add description of pragma Optimize_Alignment
7064
7065 * ug_words: Add entries for -gnatw.w -gnatw.W
7066
7067 * usage.adb: Add line for -gnatw.w (warn on warnings off)
7068
3a9634be
EB
70692008-03-25 Eric Botcazou <ebotcazou@adacore.com>
7070
7071 Revert
7072 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7073 PR ada/35186
7074 * decl.c (maybe_pad_type): Avoid padding an integral type when
7075 bumping its alignment is sufficient.
7076
53b308f6
AC
70772008-03-25 Arnaud Charlet <charlet@adacore.com>
7078
7079 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
7080 Fix wrong formatting (lines too long)
7081
8fc789c8
RW
70822008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7083
7084 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7085 a-calend-vms.adb, a-calend.adb, a-calend.ads,
7086 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7087 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7088 a-cohama.ads, a-comlin.ads, a-coorse.adb,
7089 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7090 a-except-2005.ads, a-except.adb, a-except.ads,
7091 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7092 a-exextr.adb, a-filico.ads, a-finali.ads,
7093 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7094 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7095 a-sequio.ads, a-strbou.ads, a-strfix.adb,
7096 checks.adb, exp_ch3.adb, exp_ch4.adb,
7097 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7098 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7099 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7100 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7101 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7102
15f6d6e7
RD
71032008-03-24 Robert Dewar <dewar@adacore.com>
7104
7105 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7106 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7107 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7108 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7109 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7110 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7111 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7112 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7113 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7114 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7115 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7116 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7117 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7118 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7119 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7120 double spaced if it fits on one line and otherwise single spaced.
7121
b2e74434
RW
71222008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7123
7124 PR documentation/15479
7125 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7126 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7127 (doc/gnat_ugn.info): Renamed from ...
7128 (doc/gnat_ugn_unw.info): ... this.
7129 (doc/gnat_ugn.dvi): Renamed from ...
7130 (doc/gnat_ugn_unw.dvi): ... this.
7131 (doc/gnat_ugn.pdf): Renamed from ...
7132 (doc/gnat_ugn_unw.pdf): ... this.
7133 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7134 Adjusted.
7135 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7136 unconditionally to gnat_ugn.info. Fix cross references to the
7137 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
7138 and GNU make manuals to be proper texinfo links.
7139 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7140
f4351641
OH
71412008-03-21 Olivier Hainque <hainque@adacore.com>
7142
7143 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7144 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7145
10c5d1a0
EB
71462008-03-21 Eric Botcazou <ebotcazou@adacore.com>
7147
7148 * trans.c (addressable_p): Add notes on addressability issues.
7149
457b629a 71502008-03-21 Olivier Hainque <hainque@adacore.com>
9e81dbc7 7151 Ed Schonberg <schonberg@adacore.com>
457b629a
OH
7152
7153 * trans.c (addressable_p): Accept COND_EXPR when both arms
7154 are addressable.
7155 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7156 (call_to_gnu): Do not use name reference in the error message
7157 for a misaligned by_reference_parameter. The actual may be a
7158 general expression.
7159
ac5dc795
PB
71602008-03-18 Paolo Bonzini <bonzini@gnu.org>
7161
e1da2b17
EB
7162 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7163
79f34d07
RW
71642008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7165
7166 * gnat_rm.texi (Implementation Defined Characteristics)
7167 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7168 appropriate.
7169 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7170 (Switches for gnatchop, Installing a library): Likewise.
7171
e1e7141c
EB
71722008-03-10 Eric Botcazou <ebotcazou@adacore.com>
7173
7174 * trans.c (emit_range_check): Do not emit the check if the base type
7175 of the expression is the type against which its range must be checked.
7176
892f6e65
EB
71772008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7178
7179 * decl.c (maybe_pad_type): Use value_factor_p.
7180
7934d781
EB
71812008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7182
7183 * lang.opt (nostdlib): Move around.
7184 * misc.c (gnat_handle_option): Fix formatting.
7185 (gnat_dwarf_name): Move around.
7186 * trans.c (Case_Statement_to_gnu): Fix formatting.
7187 (gnat_to_gnu): Likewise.
7188 * utils.c (aggregate_type_contains_array_p): Likewise.
7189 (create_subprog_decl): Likewise.
7190
8f5893ab
EB
71912008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7192
7193 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7194 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7195
ba436c3b
EB
71962008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7197
7198 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7199 BIGGEST_ALIGNMENT when capping the alignment of records with
7200 strict alignment and size clause.
7201
6ab36dac
EB
72022008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7203
7204 * lang-specs.h: Pass -gnatwa if -Wall is passed.
7205 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7206 and -Wuninitialized.
7207 (gnat_post_options): Clear warn_unused_parameter.
7208
8853cb0b
EB
72092008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7210
7211 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7212 aligned bit-fields, bumping the alignment of the record type if deemed
7213 profitable.
7214 (value_factor_p): Return false instead of 0.
7215
66abe22c
EB
72162008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7217
7218 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7219 for scalar types with small alignment.
7220
563569be
EB
72212008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7222
7223 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7224 from that of the front-end's end label.
7225 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7226 from that of the loop label.
7227
b49a1a1e
EB
72282008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7229
7230 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7231 comment for the packed array type case.
7232 * utils.c (build_template): Use a loop to strip padding or
7233 containing records for justified modular types.
7234
fd5c81e9
EB
72352008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7236
7237 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7238 large alignments specified for types.
7239 (validate_alignment): Minor cleanup.
7240
7f42aa36
EB
72412008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7242
7243 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7244 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7245 the component for packing, if possible, as well as if a component
7246 size clause is specified.
7247 <E_Record_Subtype>: For an array type used to implement a packed
7248 array, get the component type from the original array type.
7249 Try to get a smaller form of the component for packing, if possible,
7250 as well as if a component size clause is specified.
7251 (round_up_to_align): New function.
7252 (make_packable_type): Add in_record parameter.
7253 For a padding record, preserve the size. If not in_record and the
7254 size is too large for an integral mode, attempt to shrink the size
7255 by lowering the alignment.
7256 Ditch the padding bits of the last component.
7257 Compute sizes and mode manually, and propagate the RM size.
7258 Return a BLKmode record type if its size has shrunk.
7259 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7260 Use Original_Array_Type to retrieve the type in case of an error.
7261 Adjust call to make_packable_type.
7262 (gnat_to_gnu_field): Likewise.
7263 (concat_id_with_name): Minor tweak.
7264 * trans.c (larger_record_type_p): New predicate.
7265 (call_to_gnu): Compute the nominal type of the object only if the
7266 parameter is by-reference. Do the conversion actual type -> nominal
7267 type if the nominal type is a larger record.
7268 (gnat_to_gnu): Do not require integral modes on the source type to
7269 avoid the conversion for types with identical names.
7270 (addressable_p): Add gnu_type parameter. If it is specified, do not
7271 return true if the expression is not addressable in gnu_type.
7272 Adjust recursive calls.
7273 * utils.c (finish_record_type): Remove dead code.
7274
2f76571e
EB
72752008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7276
7277 PR ada/35186
7278 * decl.c (maybe_pad_type): Avoid padding an integral type when
7279 bumping its alignment is sufficient.
7280
4d0e4612
RW
72812008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7282
ad6b5b00
RW
7283 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7284 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7285 statement.
7286 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7287 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7288 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7289 code output strings.
7290 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7291 system-vms_64.ads: Fix typos in ada source code comments.
7292 * sinfo-cn.adb: Remove incomplete sentence.
7293
4d0e4612
RW
7294 PR documentation/15479
7295 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7296
acf6b7ab
ST
72972008-02-27 Samuel Tardieu <sam@rfc1149.net>
7298
7299 PR ada/22255
7300 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7301
f5c064ab
ST
73022008-02-27 Samuel Tardieu <sam@rfc1149.net>
7303
7304 PR ada/34799
7305 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7306 that underlying type is present.
7307
2d593c86
TT
73082008-02-26 Tom Tromey <tromey@redhat.com>
7309
7310 * misc.c (internal_error_function): Remove test of
7311 USE_MAPPED_LOCATION.
7312 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7313 (Sloc_to_locus): Remove old location code.
7314
443b3472
RW
73152008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7316
8dd07840
RW
7317 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7318 `i.e.' by adding comma or `@:' as appropriate.
7319 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7320 plain characters `C', use `@samp{C}'.
7321 * gnat_ugn.texi (File Naming Rules, About gnatkr)
7322 (Krunching Method): Likewise.
7323
443b3472
RW
7324 * gnat_ugn.texi (Conventions): List environment variables and
7325 metasyntactic variables.
7326 (Compiling Programs): Fix notation of metasyntactic variables.
7327 Add @file where appropriate. Use @file for file extensions,
7328 @samp for strings.
7329 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7330 instead of @file, @env instead of @code.
7331
9538dfb9
RW
73322008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7333
d488f6ea
RW
7334 PR documentation/15479
7335 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7336 and `...' with `@dots{}' or `@enddots{}'.
7337
1992bbd9
RW
7338 PR documentation/15479
7339 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7340 use @command instead of @code, @option instead of @samp or @code,
7341 @code instead of @var, @samp instead of @file.
7342
9538dfb9
RW
7343 PR documentation/15479
7344 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7345 in Makefile rules, by using `&&' rather than `;'.
7346
e69044cb
RW
73472008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7348
7349 PR documentation/15479
7350 * gnat_ugn.texi: In non-code, avoid space before colon.
7351 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7352 (Examples of gnatxref Usage): Use @command{vi} instead of
7353 @file{vi}.
7354 (Character Set Control): Do not use @code for UTF-8.
7355 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
7356 use @code for IEEE.
7357 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7358 sample.
7359 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
7360
9e94c78f 73612008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
6a333ca0
JS
7362
7363 PR ada/35143
7364 * env.c: Add __rtems__ to if defined.
7365 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
7366 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7367 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
7368 pragma Convention as required.
7369 * gsocket.h: Make compile in and out of RTS.
7370 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
7371 Use g-soccon-rtems.ads.
7372 * g-soccon-rtems.ads, system-rtems.ads: New files.
7373
72fb133f
KG
73742008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7375
7376 PR other/35107
7377 * Make-lang.in (gnat1): Add $(GMPLIBS).
7378
8fa07a56
EB
73792008-01-26 Eric Botcazou <ebotcazou@adacore.com>
7380
7381 * decl.c (components_to_record): Improve comment.
7382
0bf38239
EB
73832008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7384
7385 * decl.c (components_to_record): Do not reuse the empty union type
7386 if there is a representation clause on the record.
7387 * trans.c (addressable_p): Return true for INTEGER_CST.
7388
461d6eb3
EB
73892008-01-21 Eric Botcazou <ebotcazou@adacore.com>
7390
7391 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7392 in pointer arithmetics.
7393 * utils2.c (build_allocator): Likewise.
7394
9328dd57
EB
73952008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7396
7397 * utils.c (build_function_stub): Properly build the call expression.
7398
052cec9b
EB
73992008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7400
7401 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7402 before converting the expression to the type of the object.
7403 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7404 Stabilize constructors for special wrapping types.
7405
08ffbdad
EB
74062008-01-13 Eric Botcazou <ebotcazou@adacore.com>
7407
9e94c78f 7408 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
6bf4cbe8 7409 when necessary. Merge some conditional statements. Update comments.
08ffbdad
EB
7410 Rename unchecked_convert_p local variable to suppress_type_conversion.
7411 Do not suppress conversions in the In case.
7412 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7413 into account on non strict-alignment platforms.
7414
7219c2c7
EB
74152008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7416
7417 * utils.c (aggregate_type_contains_array_p): New predicate.
7418 (create_field_decl): In a packed record, force byte alignment
7419 for fields without specified position that contain an array.
7420
52ef2874
EB
74212008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7422
7423 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7424
3fa87ef8
JDA
74252008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
7426
7427 PR ada/34466
7428 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7429 sysconf call.
7430 (bit_field): New packed boolean type used by cpu_set_t.
7431 (cpu_set_t): New type corresponding to the C type with
7432 the same name. Note that on the Ada side we use a bit
7433 field array for the affinity mask. There is not need
7434 for the C macro for setting individual bit.
7435 (pthread_setaffinity_np): New imported routine.
7436
9e94c78f 74372008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
e0658eda
TK
7438
7439 PR ada/34647
7440 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7441 on OpenBSD as is done on other BSD systems.
7442
7443 PR ada/34645
7444 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7445 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7446 I/O.
7447
7448 PR ada/34644
7449 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7450 clearenv().
7451
7452 PR ada/34646
7453 * init.c (__gnat_error_handler, __gnat_install_handler,
7454 __gnat_init_float): Define for OpenBSD.
7455
7456 * initialize.c (__gnat_initialize): Define for OpenBSD.
7457
18bc9cca
ST
74582007-12-27 Samuel Tardieu <sam@rfc1149.net>
7459
7460 PR ada/34553
7461 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7462 instead of mktemp() or tmpnam() on NetBSD.
7463
f0bf503e
EB
74642007-12-23 Eric Botcazou <ebotcazou@adacore.com>
7465
7466 * trans.c (call_to_gnu): Make the temporary for non-addressable
7467 In parameters passed by reference.
7468 (addressable_p): Return true for STRING_CST and CALL_EXPR.
7469
7469b7bc
AC
74702007-12-19 Robert Dewar <dewar@adacore.com>
7471
9e81dbc7 7472 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7469b7bc
AC
7473 Add pragma Warnings (Off) for unassigned IN OUT arguments
7474
7475 * sem_warn.adb (Output_Reference): Suppress messages for internal names
7476 (Check_References): Extensive changes to tune up warnings
7477 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7478 (Has_Pragma_Unmodifed_Check_Spec): New function
7479 (Check_References): Implement pragma Unmodified
7480 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7481
7482 * par-prag.adb: Dummy entry for pragma Unmodified
7483
7484 * sem_prag.adb: Implement pragma Unmodified
7485
7486 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7487 (Proc_Next_Component_Or_Discriminant): Fix typo.
7488 Update comments.
7489
7490 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7491 Unmodified.
7492 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7493 because the former already takes care of discarding the result.
7494 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7495 Add comment.
7496
7497 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7498
74992007-12-19 Eric Botcazou <ebotcazou@adacore.com>
7500
7501 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7502 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7503 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7504 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7505 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7506 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7507 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7508 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7509 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7510 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7511 (Dynamic_Trampolines_Used): Delete.
7512
7513 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7514 Turn on stack probing mechanism on LynxOS.
7515
75162007-12-19 Bob Duff <duff@adacore.com>
7517
7518 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7519 the resulting tail recursion by hand. This prevents running out of
7520 memory on deeply nested concatenations, since Field2 is where the left
7521 operand of concatenations is stored.
7522 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7523 clarify that it can only return OK or Abandon.
7524
7525 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7526 operand by iteration, in order to avoid running out of memory on
7527 deeply-nested concatenations. Use the Parent pointer to get back up the
7528 tree.
7529 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7530 Resolve_Op_Concat_Rest): New procedures split out of
7531 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7532 clearer.
7533
7534 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7535 Traverse_Func, because the former already takes care of discarding the
7536 result.
7537
7538 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7539 because the former already takes care of discarding the result.
7540 (Remove_Warning_Messages): Use appropriate subtype for Status and
9e81dbc7 7541 Discard
7469b7bc
AC
7542
75432007-12-19 Ed Schonberg <schonberg@adacore.com>
7544
7545 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7546 discriminants forces expansion of the aggregate into assignments.
7547 (Init_Record_Controller): If the type of the aggregate is untagged and
7548 is not inherently limited, the record controller is not limited either.
7549
75502007-12-19 Robert Dewar <dewar@adacore.com>
7551
7552 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7553 handling compile time known size of record or array (case of front end
7554 layout active, e.g. in GNAAMP).
7555
75562007-12-19 Javier Miranda <miranda@adacore.com>
7557
7558 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7559 that forces the construction of static dispatch tables in case of
7560 record subtypes.
7561
75622007-12-19 Robert Dewar <dewar@adacore.com>
7563
7564 * exp_ch9.adb (Null_Statements): Moved to library level
7565 (Trivial_Accept_OK): New function
7566 (Expand_Accept_Declaration): Use Trivial_Accept_OK
7567 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7568
75692007-12-19 Robert Dewar <dewar@adacore.com>
7570
7571 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7572 in complex case where array is Volatile.
7573
75742007-12-19 Ed Schonberg <schonberg@adacore.com>
7575
7576 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7577 properly the Ada2005 rules concerning when the current instance of a
7578 record type is aliased.
7579
75802007-12-19 Ed Schonberg <schonberg@adacore.com>
7581
7582 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7583 mangled declaration
7584 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7585 declarations.
7586 (P_Variant_Part): Cleaner patch for parenthesized discriminant
7587
75882007-12-19 Vincent Celier <celier@adacore.com>
7589
7590 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7591 package is not known
7592
7593 * prj-attr.ads (Unknown_Package): New constant
7594 Do not crash when an unknown package is in several projects
7595
7596 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7597 ignored
7598
7599 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7600 existing package Language_Processing.
7601
76022007-12-19 Ed Schonberg <schonberg@adacore.com>
7603 Gary Dismukes <dismukes@adacore.com>
44914a04 7604 Samuel Tardieu <sam@rfc1149.net>
7469b7bc
AC
7605
7606 PR ada/15803, ada/15805
7607 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7608 illegal access subtypes when there is a constrained partial view.
7609 (Check_For_Premature_Usage): New procedure inside
7610 Access_Subprogram_Declaration for checking that an access-to-subprogram
7611 type doesn't reference its own name within any formal parameters or
7612 result type (including within nested anonymous access types).
7613 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7614 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7615 context is an access_to_variable, the expression cannot be an
7616 access_to_constant.
7617
76182007-12-19 Bob Duff <duff@adacore.com>
7619
7620 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7621 (Analyze_Concatenation): Use iteration instead of recursion in order
7622 to avoid running out of stack space for deeply nested concatenations.
7623
76242007-12-19 Ed Schonberg <schonberg@adacore.com>
7625 Gary Dismukes <dismukes@adacore.com>
7626
7627 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7628 whose renamed entity is a subprogram that requires overriding.
7629 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7630 issuing an error for premature usage and issue a message that says
7631 'type' rather than 'object'.
7632
76332007-12-19 Gary Dismukes <dismukes@adacore.com>
7634
7635 PR ada/34149
7636 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7637 presence of a statically tagged operand (Present (Static_Tag)) with
7638 test for Indeterm_Ancestor_Call when determining whether to propagate
7639 the static tag to tag-indeterminate operands (which forces dispatching
7640 on such calls).
7641 (Check_Controlling_Formals): Ada2005, access parameters can have
7642 defaults.
7643 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7644 not insert subprogram in list of primitive operations if already there.
7645
76462007-12-19 Tristan Gingold <gingold@adacore.com>
7647
7648 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7649 global variable.
7650
76512007-12-19 Thomas Quinot <quinot@adacore.com>
7652
7653 Part of PR ada/33688
7654 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7655 datagram info on Linux.
7656
76572007-12-19 Vincent Celier <celier@adacore.com>
7658
7659 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7660 that the source path name is always found in the dependencies.
7661
76622007-12-19 Robert Dewar <dewar@adacore.com>
7663
7664 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7665 Fix name of Wide_Wide_Latin_1/9 file names
7666 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7667 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7668 Add missing documentation for Ada.Command_Line.Response_File
7669 Update list of warning letters for Warnings pragma
7670 Add documentation for pragma Unmodified
7671
43779dea
ST
76722007-12-19 Samuel Tardieu <sam@rfc1149.net>
7673
7674 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7675
5287c2bc
AC
76762007-12-17 Arnaud Charlet <charlet@adacore.com>
7677
7678 * s-vxwork-alpha.ads: Removed, no longer used.
7679
6343804d
JJ
76802007-12-15 Jakub Jelinek <jakub@redhat.com>
7681
7682 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7683
3958c9c8
ST
76842007-12-13 Samuel Tardieu <sam@rfc1149.net>
7685
7686 PR ada/34360
7687 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7688 mlib-tgt-specific.adb.
7689
78185974
BD
76902007-12-13 Bob Duff <duff@adacore.com>
7691
7692 * trans.c (Attribute_to_gnu): Check for violations of the
7693 No_Implicit_Dynamic_Code restriction. This checking used to be done in
7694 the front end, but is moved here so we can make it more accurate.
7695
e9b54d64
AC
76962007-12-13 Pascal Obry <obry@adacore.com>
7697
7698 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7699 version is provided for older GNU/Linux distribution not
7700 supporting thread affinity sets.
9e81dbc7 7701
e9b54d64
AC
7702 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7703 call.
7704 (bit_field): New packed boolean type used by cpu_set_t.
7705 (cpu_set_t): New type corresponding to the C type with
7706 the same name. Note that on the Ada side we use a bit
7707 field array for the affinity mask. There is not need
7708 for the C macro for setting individual bit.
7709 (pthread_setaffinity_np): New imported routine.
9e81dbc7 7710
e9b54d64
AC
7711 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7712 no null.
7713 (Create_Task): Set the processor affinity mask if information
7714 is present.
9e81dbc7 7715
e9b54d64 7716 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
9e81dbc7 7717
e9b54d64
AC
77182007-12-13 Robert Dewar <dewar@adacore.com>
7719
9e81dbc7
AS
7720 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7721 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7722 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
e9b54d64
AC
7723 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7724 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
9e81dbc7
AS
7725 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7726 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
e9b54d64
AC
7727 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7728 for subprogram pointers.
7729
7730 * g-ctrl_c.adb: New file.
7731
7732 * g-ctrl_c.ads (Install_Handler): New body.
7733
7734 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7735 instead of obsolete function Is_Always_Inlined.
7736 (Freeze_Entity): check for tagged type in imported C subprogram
7737 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7738 (Freeze_Entity): check for convention Ada subprogram pointer in
7739 imported C subprogram.
7740 (Freeze_Fixed_Point_Type): In the case of a base type where the low
7741 bound would be chopped off and go from negative to zero, force
7742 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7743 bound) so that the size computation for the base type will take
7744 negative values into account.
7745
77462007-12-13 Eric Botcazou <ebotcazou@adacore.com>
7747 Bob Duff <duff@adacore.com>
7748 Tristan Gingold <gingold@adacore.com>
7749
9e81dbc7
AS
7750 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7751 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7752 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7753 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7754 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7755 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7756 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
e9b54d64 7757 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
9e81dbc7 7758 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
e9b54d64
AC
7759 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7760 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7761 (Always_Compatible_Rep): New flag to control trampolines globally.
7762 (Dynamic_Trampolines_Used): New flag for implementing the
7763 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7764 and not yet set correctly for some targets).
7765
7766 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7767 Simply indirectly call s-stchop when a task is created.
7768
9e81dbc7 7769 * ali.ads:
e9b54d64
AC
7770 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7771 appears as an argument (entries A) in an ALI file.
7772
7773 * fe.h (Stack_Check_Limits): Declare new target parameter.
7774 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7775
7776 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7777 This variable is declared in C to be sure not subject to elaboration
7778 code.
7779 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7780 Storage_Error.
7781
7782 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7783 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7784
7785 * s-stchop.ads: Add comments.
7786
7787 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7788 limit method of stack checking.
7789
7790 * s-stchop-limit.ads: New file.
7791
77922007-12-13 Robert Dewar <dewar@adacore.com>
7793
9e81dbc7
AS
7794 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7795 a-cihama.adb, g-awk.adb,
e9b54d64
AC
7796 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7797 warnings
7798
7799 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7800
7801 * sem.adb: Update handling of assigned value/unreferenced warnings
7802
7803 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7804
7805 * lib-xref.ads: Improve documentation for k xref type
7806
9e81dbc7 7807 * lib-xref.adb:
e9b54d64
AC
7808 Update handling of assigned value/unreferenced warnings
7809 (Generate_Reference): Warning for reference to entity for which a
7810 pragma Unreferenced has been given should be unconditional.
7811 If the entity is a discriminal, mark the original
7812 discriminant as referenced.
7813
7814 * sem_warn.ads, sem_warn.adb
7815 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7816 no entities referenced in package
7817 (Check_One_Unit): Don't give message about no entities referenced in
7818 a package if a pragma Unreferenced has appeared.
7819 Handle new warning flag -gnatw.a/-gnatw.A
7820 Update handling of assigned value/unreferenced warnings
7821
7822 * atree.h: Add flags up to Flag247
7823 (Flag231): New macro.
7824
78252007-12-13 Jose Ruiz <ruiz@adacore.com>
7826
7827 * adaint.h: (__gnat_plist_init): Not defined for RTX.
7828
7829 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7830 RTX systems.
7831
7832 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7833 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7834 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7835 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7836
9e81dbc7 7837 * mingw32.h:
e9b54d64
AC
7838 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7839
7840 * sysdep.c (winflush_function for RTX): Procedure that does nothing
7841 since we only have problems with Windows 95/98, which are not
7842 supported by RTX.
7843 (__gnat_ttyname): Return the empty string on Nucleus, just as
7844 done on vxworks.
7845
78462007-12-13 Robert Dewar <dewar@adacore.com>
7847
9e81dbc7 7848 * a-textio.adb, a-textio.ads:
e9b54d64
AC
7849 Extensive changes to private part for wide character encoding
7850
7851 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7852 (Look_Ahead): Fix mishandling of encoded sequences
7853 Move declaration of Wch_Con to private part (should not be visible)
7854
7855 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7856 UTF-8. Probably this is never used, but if it is, brackets is
7857 clearly correct.
7858
7859 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7860 setting wide character encoding for no main program case and when
7861 encoding is specified using -W?
7862 Initialize stack limit of environment task if stack limit method of
7863 stack checking is enabled.
7864 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7865 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7866 (Get_Main_Unit_Name): New function.
7867 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7868 (Gen_Output_File): Set Bind_Main_Program to True for .NET
7869
7870 * bindusg.adb: Add line for -Wx switch
7871
7872 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7873 Add comments
7874 Add new useful constant WC_Longest_Sequences
7875
7876 * switch-b.adb: Clean up handling of -Wx switch
7877 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7878
7879 * switch-c.adb: -gnatg activates warning on assertion errors
7880 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7881
7882 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7883
78842007-12-13 Robert Dewar <dewar@adacore.com>
7885 Ed Schonberg <schonberg@adacore.com>
7886
7887 * a-ngcoty.adb: New pragma Fast_Math
7888
7889 * opt.adb: New pragma Fast_Math
7890
9e81dbc7 7891 * par-prag.adb:
e9b54d64
AC
7892 Add Implemented_By_Entry to the list of pragmas which do not require any
7893 special processing.
7894 (Favor_Top_Level): New pragma.
7895 New pragma Fast_Math
7896
7897 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7898 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7899 Expand_Allocator_Expression): Take into account VM_Target
7900 (Expand_Attribute, case 'Identity): Handle properly the case where
7901 the prefix is a task interface.
7902 New pragma Fast_Math
7903
7904 * par.adb (Next_Token_Is): New function
7905 (P_Pragma): Add Skipping parameter
7906 (U_Left_Paren): New procedure
7907 (U_Right_Paren): New procedure
7908 New pragma Fast_Math
7909
7910 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7911 subunit
7912 New pragma Fast_Math
7913
7914 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7915 Implemented_By_Entry.
7916 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7917 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7918 items, since it can apply to more than one overloadable entity. Set
7919 new flag Has_Pragma_Inline_Always for Inline_Always case.
7920 (Analyze_Pragma, case Complex_Representation): Improve error message.
7921 (Analyze_Pragma, case Assert): When assertions are disabled build the
7922 rewritten code with Sloc of expression rather than pragma, so new
7923 warning about failing is not deleted.
7924 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7925 protected types and update error message to reflect that. Test whether
7926 the protected type is allowed for the pragma (an error is issued if the
7927 type has any entries, or components that do not have preelaborable
7928 initialization).
7929 New pragma Fast_Math
7930 (Analyze_Pragma, case No_Return): Handle generic instance
7931
9e81dbc7 7932 * snames.h, snames.ads, snames.adb:
e9b54d64
AC
7933 Add new predefined name for interface primitive _Disp_Requeue.
7934 New pragma Fast_Math
7935
7936 * a-tags.ads, a-tags.adb: New calling sequence for
7937 String_To_Wide_[Wide_]String
7938 (Secondary_Tag): New subprogram.
7939
7940 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7941 from Exp_Attr
7942 New calling sequence for String_To_Wide_[Wide_]String
7943 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7944 the use of the secondary stack for image routines.
7945
7946 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7947 calling sequence for String_To_Wide_[Wide_]String
7948
7949 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7950 Ada 95 mode
7951 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7952 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7953
7954 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7955 (P_Formal_Part): Use Skipping parameter in P_Pragma call
7956 to improve error recovery
7957
7958 * par-util.adb (Next_Token_Is): New function
7959 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7960
7961 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7962 semicolon if missing
7963 (P_Pragma): Implement new Skipping parameter
7964 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7965 Fix location of flag for unrecognized pragma message
7966
7967 * par-tchk.adb (U_Left_Paren): New procedure
7968 (U_Right_Paren): New procedure
7969
79702007-12-13 Geert Bosch <bosch@adacore.com>
7971
9e81dbc7 7972 * a-tifiio.adb:
e9b54d64
AC
7973 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7974 the second or later Scaled_Divide would omit leading zeroes,
7975 resulting in too few digits produced and a Layout_Error as result.
7976 (Put): Initialize Pos.
7977
79782007-12-13 Robert Dewar <dewar@adacore.com>
7979
7980 atree.ads, atree.adb (Flag231..Flag247): New functions
7981 (Set_Flag231..Set_Flag247): New procedures
7982 (Basic_Set_Convention): Rename Set_Convention to be
7983 Basic_Set_Convention
7984 (Nkind_In): New functions
7985 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7986
7987 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7988 instead
7989 of obsolete function Is_Always_Inlined
7990 (Register_Predefined_DT_Entry): Initialize slots of the second
7991 secondary dispatch table.
7992 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7993 (Expand_N_Function_Call): Remove special provision for stack checking.
7994
7995 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7996 Include _Disp_Requeue in the list of predefined operations.
7997 (Find_Interface_ADT): Modified to fulfill the new specification.
7998 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7999
9e81dbc7 8000 * par-ch4.adb, nlists.ads, nlists.adb:
e9b54d64
AC
8001 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8002
8003 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
8004 Fix location of flag for unrecognized pragma message
8005
8006 * sem_ch7.adb: Use Nkind_In
8007
80082007-12-13 Vincent Celier <celier@adacore.com>
8009
9e81dbc7 8010 * opt.ads:
e9b54d64
AC
8011 Indicate what flags are used by the Project Manager, gprbuild and
8012 gprclean.
8013 (Opt.Follow_Links_For_Dirs): New flag
8014 (Warn_On_Assertion_Failure): New flag
8015 (Wide_Character_Encoding_Method_Specified): New flag
8016 (Suppress_All_Inlining): New switch set by -fno-inline
8017 (Real_VMS_Target): New flag
8018 New pragma Fast_Math
8019
80202007-12-13 Robert Dewar <dewar@adacore.com>
8021
8022 * back_end.adb: Recognize -fno-inline
8023
80242007-12-13 Robert Dewar <dewar@adacore.com>
8025
8026 * checks.adb: Fix optimization problem with short-circuited form
8027
80282007-12-13 Bob Duff <duff@adacore.com>
8029
8030 * clean.adb (Usage): Add line for -aP
8031 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
8032 with a parameter "procedure Usage", instead of passing a pointer to a
8033 procedure. This is to eliminate trampolines (since the Usage procedure
8034 is often nested in a main procedure, and it would be inconvenient to
8035 unnest it).
8036
8037 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
8038 to be generic, with a parameter "procedure Callback (...)", instead of
8039 passing a pointer to a procedure. This is to eliminate trampolines
8040 (since the Callback procedure is usually nested).
8041
9e81dbc7 8042 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
e9b54d64
AC
8043 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
8044 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
8045
8046 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
8047 Use the generic Heap_Sort_G instead of Heap_Sort_A.
8048
80492007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8050
8051 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
8052 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
8053 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
8054 (Renamed_In_Spec): New flag
8055 (Has_Pragma_Inline_Always): New flag
8056 Add missing doc for pragma Obsolescent_Warning
8057 Add missing doc for 17 additional unused flags (230-247)
8058 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
8059 Alphabetize with clauses.
8060 Separate Is_Thunk and Has_Thunks flags
8061 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
8062 (Related_Interface): Renamed to Related_Type.
8063 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
8064 (Set_Is_Flag): Restrict the assertion.
8065
80662007-12-13 Vincent Celier <celier@adacore.com>
8067
8068 * errout.adb (Output_Source_Line): Do not keep a trailing space after
8069 the source line number if the source line is empty.
8070
80712007-12-13 Geert Bosch <bosch@adacore.com>
8072
8073 * eval_fat.adb (Decompose_Int): Handle argument of zero.
8074 (Compose): Remove special casing of zero.
8075 (Exponent): Likewise.
8076 (Fraction): Likewise.
8077 (Machine): Likewise.
8078 (Decompose): Update comment.
8079
80802007-12-13 Ed Schonberg <schonberg@adacore.com>
8081
8082 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
8083 limited ancestor part, initialize controllers of enclosing record
8084 before expanding ancestor aggregate.
8085 (Gen_Assign): If a component of the aggregate is box-initialized, add
8086 code to call Initialize if the component is controlled, and explicit
8087 assignment of null if the component is an access type.
8088
8089 Handle properly aggregates for limited types that appear in object
8090 declarations when the aggregate contains controlled values such as
8091 protected types.
8092 When expanding limited aggregates into individual components, do not
8093 call Adjust on controlled components that are limited.
8094
80952007-12-13 Ed Schonberg <schonberg@adacore.com>
8096
8097 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8098
80992007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8100
8101 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8102 predefined primitive _Disp_Requeue.
8103 (Make_Predefined_Primitive_Specs): Create the spec for predefined
8104 primitive _Disp_Requeue.
8105 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8106 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8107 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8108 an interface type. In case of limited interfaces we now declare all the
8109 predefined primitives associated with synchronized interfaces as
8110 abstract.
8111 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8112 declarations.
8113 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8114 tagged type is an interface type and there is no user-defined equality
8115 function.
8116 Add also bodies of predefined primitives associated with synchronized
8117 interfaces.
8118 (Freeze_Record_Type): Do not build bodies of predefined primitives of
8119 interface types because they are now defined abstract.
8120 Add missing documentation.
8121 (Expand_Record_Controller): Update occurrence of Related_Interface
8122 to Related_Type.
8123 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8124 (Expand_N_Object_Declaration): Take into account VM_Target when handling
8125 class wide interface object declaration.
8126 (Expand_Previous_Access_Type): Do not create a duplicate master entity
8127 if the access type already has one.
8128 (Expand_N_Object_Declaration): Defend against attempt to validity check
8129 generic types. Noticed for -gnatVcf specified with previous errors.
8130
81312007-12-13 Arnaud Charlet <charlet@adacore.com>
8132
8133 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8134 Expand_Allocator_Expression): Take into account VM_Target
8135
8136 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8137 secondary stack when VM_Target /= No_VM
8138
81392007-12-13 Javier Miranda <miranda@adacore.com>
8140 Ed Schonberg <schonberg@adacore.com>
8141
8142 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8143 Is_Complation_Unit by Is_Library_Level_Entity in the code
8144 that decides if the static dispatch tables need to be built.
8145 (Wrap_Transient_Declaration): Do not generate a finalization call if
8146 this is a renaming declaration and the renamed object is a component
8147 of a controlled type.
8148
81492007-12-13 Gary Dismukes <dismukes@adacore.com>
8150
8151 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8152 In the case where the renamed subprogram is a dereference, call
8153 Force_Evaluation on the prefix.
8154
81552007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8156 Ed Schonberg <schonberg@adacore.com>
8157
8158 * exp_ch9.adb (Expand_N_Asynchronous_Select,
8159 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8160 comment reformatting.
8161 (Set_Privals): Inherit aliased flag from formal. From code reading.
8162 (Build_Simple_Entry_Call): Out parameters of an access type are passed
8163 by copy and initialized from the actual. This includes entry parameters.
8164 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8165 and Ada 2005 models of requeue.
8166 (Null_Statements): Still connsider do-end block null if it contains
8167 Unreferenced and Warnings pragmas.
8168 (Expand_N_Accept_Statement): Do not optimize away null do end if
8169 dispatching policy is other than defaulted.
8170 (Expand_N_Timed_Entry_Call): When the triggering statement is a
8171 dispatching call, manually analyze the delay statement.
8172 (Find_Parameter_Type): Move subprogram to Sem_Util.
8173
81742007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8175 Javier Miranda <miranda@adacore.com>
8176
8177 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8178 _Disp_Requeue occupies dispatch table slot number 15. Move
8179 _Disp_Timed_Select to slot 16.
8180 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8181 generate the spec and body of _Disp_Reqeueue.
8182 (Make_DT): Build and initialize the second dispatch table.
8183 Handle initialization of RC_Offset when the parent
8184 is a private type with variable size components.
8185 (Make_Secondary_DT): Complete documentation. Add support to
8186 initialize the second dispatch table.
8187 (Make_Tags): Generate the tag of the second dispatch table.
8188 (Register_Primitive): Add support to register primitives in the
8189 second dispatch table.
8190
81912007-12-13 Pascal Obry <obry@adacore.com>
8192
8193 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8194 Windows. This signal is used by gnatmake to kill child processes for
8195 example.
8196
81972007-12-13 Javier Miranda <miranda@adacore.com>
8198
8199 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8200 support for generic dispatching constructor calls in which we need to
8201 locate the tag of a secondary dispatch table associated with an
8202 interface type to properly dispatch the call.
8203 (Expand_N_Attribute_Reference [case Address],
8204 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8205 handling of VM targets.
8206
82072007-12-13 Robert Dewar <dewar@adacore.com>
8208 Ed Schonberg <schonberg@adacore.com>
8209
8210 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8211 assert fail
8212
8213 * ug_words: Add entries for -gnatw.a -gnatw.A
8214
8215 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8216 literal is a subtype with non-static constraints, use the base type of
8217 the context as the base of the string subtype, to prevent type
8218 mismatches in gigi.
8219 (Resolve_Actuals): If the actual is an entity name, generate a
8220 reference before the actual is resolved and expanded, to prevent
8221 spurious warnings on formals of enclosing protected operations.
8222 (Analyze_Overloaded_Selected_Component): If type of prefix if
8223 class-wide, use visible components of base type.
8224 (Resolve_Selected_Component): Ditto.
8225 (Resolve_Short_Circuit): Detect case of pragma Assert argument
8226 evaluating to False, and issue warning message.
8227
8228 * usage.adb: Add lines for -gnatw.a and -gnatw.A
8229
82302007-12-13 Emmanuel Briot <briot@adacore.com>
8231
8232 * g-calend.ads (No_Time): New constant, to represent an uninitialized
8233 time value
8234
8235 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8236 formats.
8237 (Month_Name_To_Number): New subprogram
8238
8239 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8240 letter to upper-case.
8241
82422007-12-13 Robert Dewar <dewar@adacore.com>
8243 Ed Schonberg <schonberg@adacore.com>
8244
8245 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8246
8247 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8248 context is a limited view, use non-limited view when available. If the
8249 non-limited view is an unconstrained array, this enforces consistency
8250 requirements in 3.10.2 (27).
8251 (Layout_Type): For an access type whose designated type is a limited
8252 view, examine its declaration to determine if it is an unconstrained
8253 array, and size the access type accordingly.
8254 (Layout_Type): Do not force 32-bits for convention c subprogram
8255 pointers in -gnatdm mode, only if real vms target.
8256
8257 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8258 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8259 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8260 violations of the No_Implicit_Dynamic_Code restriction.
8261 (Resolve_Attribute, case 'Access): If designated type of context is a
8262 limited view, use non-limited view when available. If the non-limited
8263 view is an unconstrained array, this enforces consistency requirements
8264 in 3.10.2 (27).
8265 (Layout_Type): For an access type whose designated type is a limited
8266 view, examine its declaration to determine if it is an unconstrained
8267 array, and size the access type accordingly.
8268
82692007-12-13 Vincent Celier <celier@adacore.com>
8270
8271 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8272 object directory of main project does not exist.
8273 On VMS, correctly set then environment variable for the source
8274 directories.
8275
82762007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8277
8278 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8279 set to True this procedure will create the value of type REG_EXPAND_SZ.
8280 It was only possible to create REG_SZ values before.
8281
82822007-12-13 Robert Dewar <dewar@adacore.com>
8283
8284 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8285 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8286 namet-sp.adb, namet-sp.ads: New files.
8287
8288 * g-speche.adb: Use generic routine in g-spchge
8289
9e81dbc7 8290 * s-wchcnv.ads, s-wchcnv.adb:
e9b54d64
AC
8291 Minor code cleanup (make formal type consistent with spec)
8292
8293 * namet.adb: Update comments.
8294
8295 * par-endh.adb (Evaluate_End_Entry): Use new
8296 Namet.Sp.Is_Bad_Spelling_Of function
8297
8298 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8299
8300 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8301 ancestor is an access type initialized with a box, set its type
8302 explicitly, for use in subsequent expansion.
8303 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8304 function
8305
83062007-12-13 Robert Dewar <dewar@adacore.com>
8307
8308 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8309 access Vstring)
8310
83112007-12-13 Robert Dewar <dewar@adacore.com>
8312
8313 * inline.adb (Back_End_Cannot_Inline): Use new flag
8314 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8315
8316 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8317 Has_Pragma_Inline_Always instead.
8318 of obsolete function Is_Always_Inlined
8319 (Build_Body_To_Inline): Same change
8320 (Cannot_Inline): Same change
8321 Do not give warning on exception raise in No_Return function
8322
8323 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8324 component has two inconsistent component clauses in the same record
8325 representation clause, favor the message that complains about
8326 duplication rather than inconsistency.
8327 Update comments.
8328 (Record_Representation_Clause): Do not warn on missing component
8329 clauses for inherited components of a type extension.
8330 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8331 an overloadable item if it is a pragma that can apply to multiple
8332 overloadable entities (e.g. Inline) because a pragma cannot be on
8333 more than one chain at a time.
8334 (Validate_Unchecked_Conversion): Add code to warn on unchecked
8335 conversion where one of the operands is Ada.Calendar.Time.
8336 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8337 For now, ignore Component_Size clause on VM targets, as done for
8338 pragma Pack.
8339
83402007-12-13 Emmanuel Briot <briot@adacore.com>
8341 Vincent Celier <celier@adacore.com>
8342
8343 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8344 string
8345 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8346 prj.ads
8347 (Hash): Move instantiation of System.HTable.Hash from spec to body
8348 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8349 systems, since we do not need to recompute the Name_Id for the canonical
8350 file name.
8351 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8352 as a parameter. This parameter is in fact always "ada" in all calls, and
8353 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8354 while loading a project with 40000 files
8355
8356 * prj-attr.adb: Fix name of attribute Dependency_Driver
8357 Change the kind of indexing for attribute Root
8358
8359 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8360 variables already declared, in case constructions.
8361
8362 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8363 Current_Object_Path_File to No_Path.
8364
8365 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8366 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8367
8368 * prj-makr.adb: new parameter Current_Dir
8369
8370 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8371 Ada sources when language is not Ada.
8372 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8373 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8374 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8375 (Locate_Directory): Always resolve links when computing Canonical_Path
8376 (Look_For_Sources): Make sure that Name_Buffer contains the file name
8377 in Source_Files before checking for the presence of a directory
8378 separator.
8379 Optimize calls to Name_Find when on case sensitive systems.
8380 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8381 as a parameter.
8382 (Prj.Nmsc.Check): new parameter Current_Dir
8383 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8384 cannot be empty and the spec suffix cannot be the same as the body or
8385 separate suffix.
8386 (Get_Unit): When a file name can be of several unit kinds (spec, body or
8387 subunit), always consider the longest suffix.
8388 (Check_Configuration): Do not issue an error if there is no compiler
8389 for a language. Just issue a warning and ignore the sources for the
8390 language.
8391 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8392 not empty.
8393 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8394 (Unit_Exceptions): New hash table
8395 (Check_Naming_Schemes): Check if a file that could be a unit because of
8396 the naming scheme is not in fact a source because there is an exception
8397 for the unit.
8398 (Look_For_Sources): Put the unit exceptions in hash table
8399 Unit_Exceptions
8400 (Get_Unit_Exceptions): Give initial value No_Source to local variable
8401 Other_Part to avoid exception when code is compiled with validity
8402 checking.
8403 (Get_Sources_From_File): Check that there is no directory information
8404 in the file names.
8405 (Look_For_Sources): Check that there is no directory information in the
8406 list of file names in Source_Files.
8407 (Look_For_Sources): In multi-language mode, do not allow exception file
8408 names that are excluded.
8409 (Excluded_Sources_Htable): New hash table
8410 (Search_Directories.Check_File): New procedure to simplify
8411 Search_Directories.
8412 (Search_Directories): Do not consider excluded sources
8413 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8414 Search_Directories.
8415 (Get_Exceptions): Set component Lang_Kind of Source_Data
8416 (Get_Unit_Exceptions): Ditto
8417 (Search_Directories): Ditto
8418
8419 * prj-pars.adb: new parameter Current_Dir
8420
9e81dbc7 8421 * prj-part.ads, prj-part.adb:
e9b54d64
AC
8422 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8423 (Opt.Follow_Links_For_Dirs): New flag
8424 (Project_Path_Name_Of): Cache information returned by this routine as
8425 Locate_Regular_File is a costly routine. The code to output a log
8426 information and the effective call to Locate_Regular_File is now
8427 factorized into a routine (code clean-up).
8428 (Parse, Parse_Single_Project): new parameter Current_Dir
8429 When main project file cannot be found, indicate in the error
8430 message the project path that was used to do the search.
8431
8432 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8433 (Prj.Proc.Process*): new parameter Current_Dir
8434
8435 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8436
84372007-12-13 Bob Duff <duff@adacore.com>
8438
8439 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8440 procedure to be called from the back end to check the
8441 No_Implicit_Dynamic_Code restriction.
8442
84432007-12-13 Arnaud Charlet <charlet@adacore.com>
8444
8445 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8446 Fixes another case where RTE_Available_Call was ignored instead of being
8447 taken into account.
8448 (Load_Fail): Ditto.
8449
8450 * rtsfind.ads: Add new entries.
8451
84522007-12-13 Robert Dewar <dewar@adacore.com>
8453
8454 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8455 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8456
8457 * scn.adb: Implement BOM recognition
8458
84592007-12-13 Thomas Quinot <quinot@adacore.com>
8460 Ed Schonberg <schonberg@adacore.com>
8461
8462 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8463 subprogram body that acts as its own spec may not have a non-private
8464 WITH clause on a private sibling.
8465 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8466 child unit is a renaming, create an implicit with_clause on that
8467 parent, and not on the unit it renames, to prevent visibility errors
8468 in the current unit.
8469
84702007-12-13 Ed Schonberg <schonberg@adacore.com>
8471
8472 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8473 renaming declaration, use the Slocs of the formal parameters from the
8474 declaration of the formal subprogram when creating the formal parameter
8475 entities in the renaming declaration.
8476 (Analyze_Formal_Type_Declaration): Change the placement of the error
8477 message concerning illegal known discriminants. It is now posted on the
8478 type rather than on the first discriminant. This change ensures early
8479 error report.
8480 (Freeze_Subprogram_Body): If the generic subprogram is nested within
8481 the package body that contains the instance, do not generate an
8482 out-of-place freeze node for the enclosing package.
8483 (Collect_Previous_Instantiations): Ignore internal instantiations
8484 generated for formal packages.
8485 (Validate_Derived_Type_Instance): Add a check that when a formal
8486 derived type is Known_To_Have_Preelab_Init then the actual type must
8487 have preelaborable initialization, and issue an error when this
8488 condition is violated.
8489
84902007-12-13 Robert Dewar <dewar@adacore.com>
8491
8492 * s-imenne.adb, s-imenne.ads: New files.
8493
9e81dbc7
AS
8494 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8495 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8496 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8497 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
e9b54d64
AC
8498 s-imgwch.ads: New calling sequence for Image routines to avoid sec
8499 stack usage.
8500
85012007-12-13 Javier Miranda <miranda@adacore.com>
8502 Ed Schonberg <schonberg@adacore.com>
8503
8504 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8505 generation of spurious error if parent is an interface type; caused
8506 because predefined primitive bodies will be generated later by
8507 Freeze_Record_Type.
8508 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8509 flag.
8510 (Derive_Subprograms): Handle derivations of predefined primitives
8511 after all the user-defined primitives to ensure that they are
8512 found in proper order in instantiations.
8513 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8514 of Related_Interface to Related_Type.
8515 (Record_Type_Declaration): Minor reordering of calls to decorate the
8516 Tag component because the entity must have set its Ekind attribute
8517 before setting its Is_Tag attribute.
8518 (Analyze_Subtype_Declaration): In the case of subtypes with
8519 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8520
85212007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8522 Ed Schonberg <schonberg@adacore.com>
8523
8524 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8525 statement to the list of contexts where a selected component with a
8526 concurrent tagged type prefix should yield a primitive operation.
8527 (Find_Primitive_Operation): Handle case of class-wide types.
8528 (Analyze_Overloaded_Selected_Component): If type of prefix is
8529 class-wide, use visible components of base type.
8530 (Resolve_Selected_Component): Ditto.
8531 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8532 formal of a generic subprogram. find candidate interpretations by
8533 scanning the list of generic formal declarations.:
8534 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8535 type from a limited_with_clause, and the full view is available, use it
8536 for subsequent semantic checks.
8537 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8538 (Find_Primitive_Operation): New function.
8539 (Analyze_Overloaded_Selected_Component): insert explicit dereference
8540 only once if several interpretations of the prefix yield an access type.
8541 (Try_Object_Operation): Code and comment cleanup.
8542 (Analyze_Selected_Component): Reorder local variables. Minot comment and
8543 code reformatting. When the type of the prefix is tagged concurrent, a
8544 correct interpretation might be available in the primitive and
8545 class-wide operations of the type.
8546
85472007-12-13 Robert Dewar <dewar@adacore.com>
8548 Ed Schonberg <schonberg@adacore.com>
8549
8550 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8551 renaming entry as subprogram using rename-as-body if subprogram spec
8552 frozen.
8553 (Use_One_Type): The clause is legal on an access type whose designated
8554 type has a limited view.
8555 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8556 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8557 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8558 operation denoted by a selected component.
8559 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8560 it can be an expression, possibly overloaded, that returns a task or
8561 an access to one.
8562
85632007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8564 Gary Dismukes <dismukes@adacore.com>
8565
8566 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8567 requeue statement is dispatching. Do not emit an error when the name is
8568 not an entry and the context is a dispatching select. Add code to
8569 perform subtype conformance between the formals of the current entry
8570 and those of the target interface primitive.
8571 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8572 Timed_Entry_Call): Analyze the triggering statement as the first step of
8573 the processing. If this is a dispatching select, postpone the analysis
8574 of all select statements until the Expander transforms the select. This
8575 approach avoids generating duplicate identifiers after the Expander has
8576 replicated some of the select statements. In case the Expander is
8577 disabled, perform regular analysis.
8578 (Check_Triggering_Statement): New routine.
8579 (Analyze_Requeue): Exclude any interpretations that are not entries when
8580 checking overloaded names in a requeue. Also test type conformance for
8581 matching interpretations rather than requiring subtype conformance at
8582 that point to conform with the RM's resolution rule for requeues.
8583
85842007-12-13 Ed Schonberg <schonberg@adacore.com>
8585
8586 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8587 inherited operation is a defaulted tag-indeterminate call, and there is
8588 a statically tagged actual, use the static tag as a controlling actual
8589 for the defaulted actual.
8590
85912007-12-13 Geert Bosch <bosch@adacore.com>
8592
8593 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8594 context, so do not call Check_Non_Static_Context.
8595
85962007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8597
8598 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8599 whether formal E is an entity which may have parameters.
8600
86012007-12-13 Bob Duff <duff@adacore.com>
8602 Javier Miranda <miranda@adacore.com>
8603 Robert Dewar <dewar@adacore.com>
8604
8605 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8606 (Set_Convention): New procedure to set the Convention flag, and in
8607 addition make sure the Favor_Top_Level flag is kept in sync (all
8608 foreign-language conventions require Favor_Top_Level = True).
8609 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8610 to Related_Type.
8611 (Collect_Interfaces_Info): Minor update to handle the two secondary
8612 dispatch tables. Update occurrence of Related_Interface to Related_Type.
8613 (Generate_Parent_Ref): Add parameter to specify entity to check
8614 (Is_Preelaborable_Expression): Allow the name of a discriminant to
8615 initialize a component of a type with preelaborable initialization.
8616 This includes the case of a discriminal used in such a context.
8617 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8618 latest Ada 2005 rules about renaming and 'Access of
8619 discriminant-dependent components.
8620 (Check_Nested_Access): Add handling when there are no enclosing
8621 subprograms (e.g. case of a package body).
8622 (Find_Parameter_Type): Factor routine from several other compiler files.
8623 Remove routine from Find_Overridden_Synchronized_Primitive.
8624
86252007-12-13 Thomas Quinot <quinot@adacore.com>
8626
8627 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8628 an invalid access to an uninitialized slot in the
8629 Source_File_Index_Table.
8630
86312007-12-13 Thomas Quinot <quinot@adacore.com>
8632
8633 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8634
86352007-12-13 Bob Duff <duff@adacore.com>
8636
8637 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8638 access-to-subprogram types in this package.
8639
86402007-12-13 Olivier Hainque <hainque@adacore.com>
8641
8642 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8643 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8644 Stack_Overlay_Address and document that we are using an internal
8645 abstraction.
8646 (Byte_Size, Unsigned_32_Size): Remove, now useless.
8647 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8648 consistently throughout the various implementation pieces.
8649
8650 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8651 overlay we are using to fill the stack area with patterns.
8652 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8653 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8654 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8655
86562007-12-13 Robert Dewar <dewar@adacore.com>
8657
8658 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8659
86602007-12-13 Arnaud Charlet <charlet@adacore.com>
8661
9e81dbc7 8662 * s-tassta.adb:
e9b54d64
AC
8663 (Create_Task): Take into account tasks created by foreign threads.
8664 Code clean up: use constants instead of hard coded values.
8665
86662007-12-13 Robert Dewar <dewar@adacore.com>
8667
8668 * styleg.adb (Check_Comment): More liberal rules for comment placement
8669
86702007-12-13 Olivier Hainque <hainque@adacore.com>
8671
8672 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8673 of Procedure Value instead of Frame Pointer as the invocation
8674 identifier associated with the instruction pointer in each traceback
8675 entry.
8676
8677 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8678 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8679 Pointer as the invocation identifier passed to tbk$symbolize.
8680
8681 * s-traent-vms.ads, s-traent-vms.adb
8682 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8683 Procedure Value instead of Frame Pointer as the invocation identifier
8684 passed to tbk$symbolize.
8685
86862007-12-13 Robert Dewar <dewar@adacore.com>
8687
9e81dbc7 8688 * tbuild.ads, tbuild.adb:
e9b54d64
AC
8689 Fix location of flag for unrecognized pragma message
8690
86912007-12-13 Robert Dewar <dewar@adacore.com>
8692
8693 * treepr.ads, treepr.adb: (pl): implement use of positive value
8694 shorthands
8695
86962007-12-13 Robert Dewar <dewar@adacore.com>
8697
8698 * xeinfo.adb: Remove warnings
8699 * xnmake.adb: Remove warnings
8700 * xsinfo.adb: Remove warnings
8701 * xtreeprs.adb: Remove warnings
8702 * xsnames.adb: Remove warnings
8703
8704 * a-ngcoar.adb: Fix typo.
8705 * s-interr.adb: Minor reformatting
8706 * env.c: Minor reformatting.
8707 * g-bytswa.adb: Minor reformatting.
8708 * g-rannum.ads: Minor documentation improvements
8709 * s-tasinf-mingw.adb: Minor header fix
8710 * a-clrefi.adb: Minor reformatting
8711 * g-sttsne.ads: Minor documentation improvement
8712 * g-sttsne-locking.ads: Minor documentation improvement
8713 * g-soliop-solaris.ads: Minor documentation improvement
8714 * g-soliop-mingw.ads: Minor documentation improvement
8715 * g-soliop.ads: Minor documentation improvement
8716 * exp_aggr.ads: Minor reformatting
8717 * debug.adb: Add documentation for the gprbuild debug flags
8718 * exp_ch2.adb: Use Nkind_In to simplify code throughout
8719 * exp_pakd.adb: Minor reformatting
8720
8721 * g-altive.ads, g-alleve.adb: Remove assertions.
8722 Add comment about minor differences between targets regarding
8723 floating-point operations.
8724
8725 * g-thread.adb: Remove pragma unreferenced.
8726 * lib.ads: Minor reformatting
8727 * par-ch9.adb: Minor reformatting of error messages
8728 * sem_case.adb: Minor reformatting
8729 * s-fileio.adb: Minor reformattinng
8730 * s-vmexta.ads: Minor typo
9e81dbc7 8731 * vxaddr2line.adb:
e9b54d64
AC
8732 Take into account 'Success' value as per new GNAT warning.
8733
87342007-12-13 Vincent Celier <celier@adacore.com>
8735
8736 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8737 even on Windows
8738
87392007-12-13 Robert Dewar <dewar@adacore.com>
8740 Bob Duff <duff@adacore.com>
8741
8742 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8743 Document that suffixes may be terminations of each others
8744 Add doc for -gnatw.a and -gnatw.A
8745 Document gnatbind -Wx switch
8746 Document BOM recognition
8747 Document pragma Implemented_By_Entry.
8748 Document new units.
8749
8750 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8751 Add doc for pragma Unreferenced suppressing no entities referenced msg
8752 Add documentation of GNAT.Directory_Operations.Iteration
8753 Add documentation of GNAT.Random_Numbers
8754 Add documentation for pragma Shared.
8755 Correct documentation for Bit_Order
8756 Add documentation for the Pool_Address attribute.
8757 Fix and improve documentation of pragma machine_attribute.
8758 New pragma Fast_Math
8759 Document BOM recognition
8760
8761 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8762 Add /Wide_Character_Encoding for binder
8763 Add qualifier for the new gnatpp option --no-separate-loop-then
8764
87652007-12-13 Matthew Heaney <heaney@adacore.com>
8766
8767 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8768 which generic formal operations are called for each operation.
8769
87702007-12-13 Olivier Hainque <hainque@adacore.com>
8771
8772 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8773 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8774
87752007-12-13 Emmanuel Briot <briot@adacore.com>
8776
8777 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8778 Reference_Dir unless we actually need it.
8779
87802007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8781 Tristan Gingold <gingold@adacore.com>
8782
8783 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8784
8785 * s-osprim-vms.adb,
8786 a-calend-vms.adb: Remove pragma warning off and add pragma
8787 unreferenced.
8788
87892007-12-13 Robert Dewar <dewar@adacore.com>
8790
8791 * impunit.adb: Add entries for missing units
8792
8793 * Makefile.rtl: Add new run-time units.
8794
8795 * Make-lang.in: Update dependencies.
8796
87972007-12-13 Bob Duff <duff@adacore.com>
8798
8799 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8800 types, set Can_Use_Internal_Rep appropriately, based on
8801 Always_Compatible_Rep_On_Target.
8802
88032007-12-13 Gary Dismukes <dismukes@adacore.com>
8804 Arnaud Charlet <charlet@adacore.com>
8805
8806 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8807 it to the front end and setting the aamp_target environment variable
8808 to the switch's argument to ensure that gnaampbind and gnaamplink will
8809 take the specified library into account.
8810 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8811 target, since the CIL compiler supports an "object" file (.il files).
8812
88132007-12-13 Vincent Celier <celier@adacore.com>
8814
8815 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8816 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8817
88182007-12-13 Geert Bosch <bosch@adacore.com>
8819
9e81dbc7 8820 * s-parame-vxworks.adb:
e9b54d64
AC
8821 Update comments to reflect usage of this package by Nucleus.
8822
88232007-12-13 Arnaud Charlet <charlet@adacore.com>
8824
8825 * i-vxwork.ads: Kill new warning on Convention C, since changing the
8826 spec would break code.
8827
8828 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8829
8830 * system-vxworks-alpha.ads: Removed.
8831
e74a122e
EB
88322007-12-10 Eric Botcazou <ebotcazou@adacore.com>
8833
8834 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8835
5320014a
ST
88362007-12-09 Samuel Tardieu <sam@rfc1149.net>
8837
8838 PR ada/34366
8839 * sem_ch3.adb (Designates_T): New function.
8840 (Mentions_T): Factor reusable part of the logic into Designates_T.
8841 Consider non-access parameters and access and non-access result.
8842 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8843 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8844
8845 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8846
da746f77
LB
88472007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
8848
9d651736 8849 PR ada/34361
da746f77
LB
8850 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8851 the new implementation of target-specific calls.
8852
ebe0660b
OH
88532007-12-07 Olivier Hainque <hainque@adacore.com>
8854
8855 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8856 the designated full view, only follow a second level Full_View link
8857 for Non_Limited_Views of from_limited_with references.
9e81dbc7 8858
2eb160f2
ST
88592007-12-07 Samuel Tardieu <sam@rfc1149.net>
8860
8861 PR ada/15805
8862 * sem_ch6.adb (Process_Formals): Prevent an access type formal
8863 to be initialized with an access to constant object.
8864
9cc11b58
ST
8865 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8866 when an access to constant is used to initialize an access
8867 value.
8868
72f69ddf
ST
8869 PR ada/21346
8870 * a-direct.adb (Compose): Containing_Directory can be an empty string.
8871
5a2fe31a
OH
88722007-12-07 Olivier Hainque <hainque@adacore.com>
8873
8874 PR ada/34173
8875 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8876 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8877 this is from an alignment clause on the GNAT entity.
8878 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8879 to distinguish the case where we set it from the type's alignment.
8880 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8881 whether this alignment was set from an explicit alignment clause.
8882
4039fb35
EB
88832007-12-06 Eric Botcazou <ebotcazou@adacore.com>
8884
8885 * decl.c (make_packable_type): Revert last change.
8886 (gnat_to_gnu_field): Avoid setting size and position multiple times.
8887 * utils.c (finish_record_type): Retrieve the real name of the type.
8888
0ec479dc
EB
88892007-12-05 Eric Botcazou <ebotcazou@adacore.com>
8890
8891 * trans.c (lvalue_required_p): Take base node directly instead
8892 of its parent. Rename second parameter to 'gnu_type'.
8893 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8894 <N_Slice>: Likewise.
8895 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8896 Adjust calls to lvalue_required_p.
8897
07c7262e
ST
88982007-12-05 Samuel Tardieu <sam@rfc1149.net>
8899
8900 PR ada/21489
8901 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8902 parameters of an entry call.
8903
9e94c78f 89042007-12-03 Robert Dewar <dewar@adacore.com>
9e81dbc7 8905 Samuel Tardieu <sam@rfc1149.net>
403fd939
RD
8906
8907 PR ada/34287
8908 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8909 of variables declared in a library-level package.
9e81dbc7 8910
0bcb4d2a
ST
89112007-12-02 Samuel Tardieu <sam@rfc1149.net>
8912
8913 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8914 of Empty_String'Unchecked_Access.
8915
dd9c642a
ST
8916 * Makefile.in: Add support for sh4-linux.
8917
8918 * system-linux-sh4.ads: New file.
8919
35330114
KB
89202007-12-01 Kostik Belousov <kostikbel@ukr.net>
8921
8922 PR ada/33722
8923 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8924 and its argument must not be free()ed.
8925
a6dcb051
EB
89262007-11-29 Eric Botcazou <ebotcazou@adacore.com>
8927
8928 * decl.c (make_packable_type): Retrieve the real name of the type.
8929 (maybe_pad_type): Simplify similar code.
8930
39a97416
ST
89312007-11-28 Samuel Tardieu <sam@rfc1149.net>
8932
a6968b8b 8933 PR ada/15804
39a97416
ST
8934 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8935 than an identifier is used after "case" in a variant_part.
8936
b99dfeb3 8937 PR ada/17318
9c5a3a8d
ST
8938 * par-ch4.adb (Is_Parameterless_Attribute): New map.
8939 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8940 attribute name or not depending on the new map.
8941
8942 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8943 returning a string or a type will not be called with improper
8944 arguments.
8945
8946 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8947
8948 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8949
5a218498
ST
8950 PR ada/32792
8951 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8952 Signal an error when attribute argument is a fixed-point value of
8953 an unknown type.
8954
7bde4677
ST
8955 PR ada/22559
8956 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8957 a derived ordinary fixed point type.
8958
8959 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8960 RM_Size when a Small clause is found.
8961
182e0d71
AK
89622007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
8963
9e81dbc7
AS
8964 PR 34081/C++
8965 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8966 Pass 'false' for the new allocate_struct_function parameter.
8967 * utils.c (build_function_stub): Likewise.
182e0d71 8968
87caf699
RG
89692007-11-25 Richard Guenther <rguenther@suse.de>
8970
4039fb35 8971 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
87caf699
RG
8972 (gnat_poplevel): Likewise.
8973
f1c8c7ee
EB
89742007-11-25 Eric Botcazou <ebotcazou@adacore.com>
8975
8976 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8977 strict alignment, no alignment clause and a known static size, cap
8978 the type alignment to the greatest power of 2 factor of the size.
8979 (gnat_to_gnu_field): If the field has a component clause, is aliased
8980 or of a type with strict alignment, require that its size be equal to
8981 that of the type.
8982 (validate_size): Use the type size as the minimum size for a type with
8983 strict alignment.
8984
bb1f5840
ST
89852007-11-23 Samuel Tardieu <sam@rfc1149.net>
8986
8987 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8988 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8989 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8990 Use 'Access instead of 'Unchecked_Access in second and third
8991 arguments of pthread_sigmask.
8992
5102fac5
EB
89932007-11-23 Eric Botcazou <ebotcazou@adacore.com>
8994
8995 * decl.c (ceil_alignment): New function.
8996 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8997 (make_packable_type): Likewise.
8998
1fa4dfc6
OH
89992007-11-22 Olivier Hainque <hainque@adacore.com>
9000
9001 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
9002 to fit in 80 columns.
9003
9e94c78f 90042007-11-21 Aurelien Jarno <aurelien@aurel32.net>
5f45b299
AJ
9005
9006 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
9007 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
9008
7634135a
EB
90092007-11-19 Eric Botcazou <ebotcazou@adacore.com>
9010
9011 PR ada/34098
9012 * misc.c (gnat_adjust_rli): Delete.
9013 (gnat_init): Do not initialize the translation code here.
9014 Do not call set_lang_adjust_rli.
9015 * trans.c (init_code_table): Make static.
9016 (gnat_init_stmt_group): Delete.
9017 (gigi): Initialize the translation code entirely here.
9018 Emit debug info for the common types here instead of...
9019 * utils.c (gnat_init_decl_processing): ...here.
9020 * gigi.h (init_code_table): Delete.
9021 (gnat_init_stmt_group): Likewise.
9022
b2c3bcf4
OH
90232007-11-16 Olivier Hainque <hainque@adacore.com>
9024
9025 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
9026 retrieving an allocator return value from a super-aligned address from
9027 here to ...
9028 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
9029 expect a super-aligned address for a fat or thin pointer.
9e81dbc7 9030
a01e283f
EB
90312007-11-14 Eric Botcazou <ebotcazou@adacore.com>
9032
9033 * trans.c (call_to_gnu): Always set the source location on the call
9034 expression. If the function returns-by-target, also set it on the
9035 address expression.
9036
713c3145
ST
90372007-11-14 Samuel Tardieu <sam@rfc1149.net>
9038
356d8961 9039 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
713c3145
ST
9040 sections of non-supported Interix target.
9041
9042 * s-osinte-interix.ads: Removed.
9043
1e992e16
ST
9044 * i-cstrin.ads (chars_ptr): Make it a C convention type.
9045
0e506c4b
ST
90462007-11-13 Samuel Tardieu <sam@rfc1149.net>
9047
9048 * a-tasatt.adb: Add a comment at the beginning of the package
9049 explaining why in general 'Unchecked_Access must be used instead
9050 of 'Access.
9051
66beb09b
ST
9052 * sem_prag.adb (Process_Convention): Move the test for the
9053 entity on which the Convention pragma applies down to also
9054 forbid pragma Convention on enumeration literals reached
9055 through renamings.
9056
14678e46
ST
90572007-11-10 Samuel Tardieu <sam@rfc1149.net>
9058
9059 * a-tasatt.adb: Revert previous change for this file as it will
9060 generate an error when this package is instantiated from a
9061 local context.
9062
f9d806de
ST
90632007-11-07 Samuel Tardieu <sam@rfc1149.net>
9064
9065 * a-tasatt.adb: Type Wrapper should be declared in comment instead
9066 of already declared type Node_Access.
dcbd752d
ST
9067 Use 'Access instead of 'Unchecked_Access when applicable. Local
9068 lifetime is the one of the package.
9069 (Set_Value): W is allocated on the heap.
9070
9071 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9072 applicable.
9073 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
9074 access type.
9075 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
9076 access type.
9077
9078 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
9079 applicable.
9080 (elaboration code): Timer_Queue lifetime is the one of the
9081 package.
f9d806de 9082
bc01690e
ST
9083 * tracebak.c (i386 alternative): Remove useless comparaison
9084 which is always false; LOWEST_ADDRESS is 0 and is never greater
9085 than an unsigned integer.
9086
d9c1dc68
ST
9087 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9088 embedded check for "Ada_Version >= Ada_05".
9089
cb88a3ea
OH
90902007-11-07 Olivier Hainque <hainque@adacore.com>
9091
9092 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9093 craft and expand comment.
9094
233a722b
EB
90952007-11-01 Eric Botcazou <ebotcazou@adacore.com>
9096
9097 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9098
6d1e8bff
EB
90992007-10-23 Eric Botcazou <ebotcazou@adacore.com>
9100
9101 * misc.c (gnat_handle_option): Replace call to abort with
9102 call to gcc_unreachable.
9103 (gnat_init): Likewise.
9104 (gnat_expand_expr): Likewise.
9105 (fp_prec_to_size): Likewise.
9106 (fp_size_to_prec): Likewise.
9107
262e7125
RG
91082007-10-23 Richard Guenther <rguenther@suse.de>
9109
9110 PR bootstrap/33608
9111 * tracebak.c: #undef abort after including system.h.
9112
9e94c78f 91132007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
c8f499a9
DS
9114
9115 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9116 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9117 for win32 targets.
9118 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9119
f0e1e807
AC
91202007-10-15 Eric Botcazou <ebotcazou@adacore.com>
9121
9122 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9123 Set the protection status of the guard page based on the value of On.
9124
9125 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9126
9127 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9128 (Exit_Task): Pass False to Hide_Yellow_Zone.
9129
91302007-10-15 Robert Dewar <dewar@adacore.com>
9131
9e81dbc7 9132 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
f0e1e807 9133 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9e81dbc7
AS
9134 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9135 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9136 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9137 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9138 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9139 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9140 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
f0e1e807 9141 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9e81dbc7
AS
9142 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9143 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9144 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9145 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9146 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
f0e1e807
AC
9147 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9148 Minor reformatting.
9149 Add Unreferenced and Warnings (Off) pragmas for cases of
9150 variables modified calls where they are IN OUT or OUT parameters and
9151 the resulting values are not subsequently referenced. In a few cases,
9152 we also remove redundant code found by the new warnings.
9153
9e81dbc7 9154 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
f0e1e807
AC
9155 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9156 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9157 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9158 warning controlled by -gnatw.o that warns on cases of out parameter
9159 values being ignored.
9160
91612007-10-15 Geert Bosch <bosch@adacore.com>
9162
9163 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9164
9165 * expect.c: Initial port to arm-mentor-nucleus.
9166 Use kill for __gnat_kill() on VMS.
9167
91682007-10-15 Emmanuel Briot <briot@adacore.com>
9169
9170 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9171 value.
9172 (Xref_Record): Change type for Line, since in the case of a reference to
9173 a predefined entity (as happens for array index types), the line is set
9174 to 0.
9175 Add support for parsing multiple array index types info, or
9176 multiple inherited interfaces info. This information cannot be stored
9177 in Xref_Entity_Record, which only supports a single instance of Tref_*,
9178 and is therefore stored in the list of references instead. It has a
9179 special treatement later on in tools that use this information.
9180
91812007-10-15 Tristan Gingold <gingold@adacore.com>
9182
9183 * debug.adb: Document use of -gnatd.a and -gnatd.I
9184
9185 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9186
91872007-10-15 Javier Miranda <miranda@adacore.com>
9188
9189 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9190 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9191 care of access to class-wide interface types plus removal of bizarre
9192 conversion of tagged object to access type (reported by Gary
9193 Dismukes). After this patch there is no need to perform any
9194 additional management on these nodes in Expand_Interface_Actuals.
9195
9196 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9197 that handles use of 'Access and 'Unchecked_Access applied to
9198 actuals covering interface types. Such code is now
9199 centralized in Expand_N_Attribute_Reference.
9200
92012007-10-15 Ed Schonberg <schonberg@adacore.com>
9202
9203 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9204 of tagged types whose ultimate ancestor is a CPP type.
9205 (Freeze_Array_Type): For a packed array type, generate an initialization
9206 procedure if the type is public, to handle properly a client that
9207 specifies Normalize_Scalars.
9208
92092007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9210
9211 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9212 inside a generic body, retrieve the full view of the entry family
9213 discrete subtype if available.
9214
92152007-10-15 Thomas Quinot <quinot@adacore.com>
9216
9217 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9218 attempt to generate stubs for hidden primitive operations.
9219
92202007-10-15 Vincent Celier <celier@adacore.com>
9221
9222 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9223 returning None, used when there is no platform specific body for
9224 MLib.Tgt.Specific.
9225
92262007-10-15 Bob Duff <duff@adacore.com>
9227
9228 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9229 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9230 the generic Heap_Sort_G, in order to avoid trampolines.
9231
92322007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
9233 Jose Ruiz <ruiz@adacore.com>
9234
9235 * vx_stack_info.c: New file.
9236
9237 * i-forbla-unimplemented.ads: New file.
9238
9239 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9240 for unsupported configurations; use it on VMS targets instead of the
9241 real one.
9242 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9243 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9244 used by VxWorks targets to have access to task-specific data and be
9245 able to extract the stack boundaries for stack checking.
9246 Use system-vms-ia64.ads on ivms.
9247
9248 * Make-lang.in: Update dependencies.
9249
9250 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9251 (vx_stack_info.c).
9252
92532007-10-15 Vincent Celier <celier@adacore.com>
9254
9255 * snames.adb, snames.ads: Add new standard name runtime_library_dir
9256
9257 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9258
9259 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9260
9261 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9262 the source is unknown.
9263
9264 * prj-ext.adb: Spelling error fix
9265
9266 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9267 95 reserved word in its name.
9268 (Process_Project_Level_Array_Attributes): Process new attribute
9269 Runtime_Library_Dir.
9270
9271 * prj-part.adb (Parse_Single_Project): Do not check the name of the
9272 config project against the user project names.
9273
9274 * prj-proc.adb (Expression): In multi-language mode, indexes that do
9275 not include a dot are always case insensitive.
9276 (Process_Declarative_Items): Ditto
9277 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9278 detected.
9279
9280 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9281 True, compare both indexes in lower case.
9282
92832007-10-15 Robert Dewar <dewar@adacore.com>
9284
9285 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9286
92872007-10-15 Gary Dismukes <dismukes@adacore.com>
9288
9289 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9290 association for an access component, add an association with null as
9291 the expression. Remove testing for array subtypes and the setting in
9292 that case of Ctyp to the array component type, which prevented proper
9293 inclusion of an association for null-initialized arrays. Collapse
9294 condition that tests for array subtypes into just a test of
9295 Is_Partially_Initialized_Type (which already covers arrays anyway).
9296
92972007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9298
9299 * sem_ch12.adb: Minor code reformatting.
9300 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9301 find the parent package which may have been hidden by local
9302 declarations.
9303
93042007-10-15 Gary Dismukes <dismukes@adacore.com>
9305
9306 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9307 flag of derived concurrent types, taking into account the flag setting
9308 on the parent subtype and any new set of discriminants.
9309
93102007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9311
9312 * sem_ch4.adb: Minor code and comment reformatting.
9313 (Analyze_Allocator): When the designated type of an unconstrained
9314 allocator is a record with unknown discriminants or an array with
9315 unknown range bounds, emit a detailed error message depending on the
9316 compilation mode and whether the designated type is limited.
9317
93182007-10-15 Tristan Gingold <gingold@adacore.com>
9319
9320 * system-vms-ia64.ads: New file.
9321
9322 * system-vms_64.ads: Minor comment fix.
9323
93242007-10-15 Ed Schonberg <schonberg@adacore.com>
9325
9326 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9327 body generated for a function with a controlling result that is a null
9328 extension, discard the generated body in favor of the current explicit
9329 one.
9330
93312007-10-15 Ed Schonberg <schonberg@adacore.com>
9332
9333 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9334 examining its original form, to handle properly operator calls that
9335 have been rewritten.
9336
93372007-10-15 Olivier Hainque <hainque@adacore.com>
9338
9339 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9340 instead of a procedure value in each traceback entry.
9341
9342 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9343 instead of procedure value to TBK$SYMBOLIZE.
9344
9345 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9346 field.
9347 (TB_Entry_For): Account for the PV/FP renaming.
9348
9349 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9350 add comment.
9351 (Null_TB_Entry): Account for change of component name.
9352 (PV_For): Rename as FP_For.
9353
93542007-10-15 Tristan Gingold <gingold@adacore.com>
9355
9356 * trans.c (gnat_to_gnu): Remove the padding structure more often.
9357 This optimize assignment to over-aligned record.
9358
93592007-10-15 Emmanuel Briot <briot@adacore.com>
9360
9361 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9362 interfaces.
9363
9364 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9365 type, for dispatching calls.
9366
93672007-10-15 Vincent Celier <celier@adacore.com>
9368 Robert Dewar <dewar@adacore.com>
9369
9370 * gnat_ugn.texi: Add documentation for switches --version and --help
9371 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9372 gnatxref, gnatfind, gnatls, and gnatclean.
9373 Document -gnatw.o.
9374 Mention attribute Excluded_Source_Dirs
9375 Replace obsolescent attribute Locally_Removed_Files with attribute
9376 Excluded_Source_Files.
9377 Improve documentation of -u (gnatbind)
9378 Document how to do reliable stack checking for the environmental task
9379 on iVMS.
9380
9381 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9382 Document attribute Excluded_Source_Files and indicate that attribute
9383 Locally_Removed_Files is obsolescent.
9384
93852007-10-15 Thomas Quinot <quinot@adacore.com>
9386
9387 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9388
9e81dbc7 9389 * gen-soccon.c:
f0e1e807
AC
9390 Update documentation to note that OpenVMS 8.3 or later must be used
9391 to generate g-soccon-vms.ads.
9392
9393 * atree.adb: Add ??? comment
9394
9395 * exp_util.adb: Minor reformatting.
9396 Add ??? comment in Kill_Dead_Code.
9397
93982007-10-15 Robert Dewar <dewar@adacore.com>
9399
9400 * errout.ads: Comment clarification
9401
9402 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9403 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9404
9405 * lib.ads: Comment update
9406
9407 * init.c: Minor reformatting.
9408
9409 * sem_attr.adb: Minor formatting
9410
9411 * osint-b.ads: Minor reformatting
9412
9413 * sem_ch9.adb: Implement -gnatd.I switch
9414
9415 * g-comlin.adb: (Start): Fix handling of empty command line.
9416
9417 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9418 even when -rules follows the -cargs section.
9419
6524147c
OW
94202007-10-08 Ollie Wild <aaw@google.com>
9421
9422 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9423 gnat_return_tree.
9424 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9425 gnat_return_tree.
9426 (gnat_eh_runtime_type): Removed.
9427 (gnat_return_tree): New function.
9428
dff6abb2
BE
94292007-10-08 Ben Elliston <bje@au.ibm.com>
9430
9431 PR ada/33454
9432 Revert:
9433 2007-08-31 Ben Elliston <bje@au.ibm.com>
9434
9435 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9436 when compiling for powerpc64-*-linux.
9437 * system-linux-ppc64.ads: New file.
9438
c3048783
EB
94392007-09-27 Eric Botcazou <ebotcazou@adacore.com>
9440
9441 Mapped location support
9442 * back_end.adb (Call_Back_End): Pass information about source
9443 files instead of units to gigi.
9444 * gigi.h (struct File_Info_Type): New.
9445 (gigi): Rename and change type of number_units parameter, change
9446 type of file_info_ptr parameter.
9447 * trans.c (number_files): New global variable.
9448 (gigi): Rename and change type of number_units parameter, change
9449 type of file_info_ptr parameter.
9450 If mapped location support is enabled, create the isomorphic mapping
9451 between source files and line maps.
9452 (Sloc_to_locus): If mapped location support is enabled, translate
9453 source location into mapped location.
9454 (annotate_with_node): Rename into set_expr_location_from_node.
9455 Call set_expr_location instead of annotate_with_locus.
9456 (Pragma_to_gnu): Adjust for above change.
9457 (Loop_Statement_to_gnu): Likewise.
9458 (call_to_gnu): Likewise.
9459 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9460 (gnat_to_gnu): Likewise.
9461 (add_stmt_with_node): Likewise.
9462 (add_cleanup): Likewise.
9463 * utils.c (gnat_init_decl_processing): Do not set input_line.
9464
68b72a44
AC
94652007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9466
9467 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9468 (Applicable_Use): Emit a warning when a package tries to use itself.
9469 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9470 is already in use or the package where it is declared is in use or is
9471 declared in the current package.
9472 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9473
9474 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9475 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9476 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9477
94782007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9479
9e81dbc7 9480 * a-calend-vms.adb, a-calend.adb:
68b72a44
AC
9481 Add a section on leap seconds control along with two entities used to
9482 enable and disable leap seconds support. The array Leap_Second_Times is
9483 now constant and contains hard time values pre-generated. Remove
9484 all elaboration code used to populate the table of leap seconds.
9485
9e81dbc7 9486 * bindgen.adb:
68b72a44
AC
9487 Add entity Leap_Seconds_Support to the list of global run-time variables
9488 along with a comment on its usage and values.
9489 (Gen_Adainit_Ada): Add code to generate the declaration and import of
9490 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9491 or one (enabled) depending on the presence of binder switch "-y".
9492 (Gen_Adainit_C): Add code to generate the declaration of external int
9493 __gl_leap_seconds_support. Set is value to zero (disabled) or one
9494 (enabled) depending on the presence of binder switch "-y".
9495
9496 * init.c: Add __gl_leap_seconds_support to the list of global values
9497 computed by the binder.
9498
94992007-09-26 Jerome Guitton <guitton@adacore.com>
9500
9501 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9502 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9503 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9504 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9505
9506 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9507
9508 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9509 function which can be called by the debugger to interrupt the tasks of
9510 an Ada application asynchronously, as needed on VxWorks.
9511 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9512
9513 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9514 renamed from Stop_All_Tasks. Update comments.
9515 (Stop_All_tasks): New function declaration.
9516
95172007-09-26 Olivier Hainque <hainque@adacore.com>
9518
9519 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9520 #include <utime.h> and #define GCC_RESOURCE_H before
9521 #include <sys/wait.h>.
9522 Add more protections in __gnat_translate_vms.
9523
9524 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9525 #include <sys/wait.h>.
9526
95272007-09-26 Thomas Quinot <quinot@adacore.com>
9528 Sergey Rybin <rybin@adacore.com>
9529
9530 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9531
9532 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9533 where it belongs.
9534
9535 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9536
9537 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9538 where it belongs.
9539
9540 * sem_dist.ads: Minor comment fix
9541
9542 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9543
95442007-09-26 Javier Miranda <miranda@adacore.com>
9545 Eric Botcazou <ebotcazou@adacore.com>
9546
9e81dbc7 9547 * a-tags.adb:
68b72a44
AC
9548 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9549 indirection added to the HT_Link component of the TSD. This is required
9550 to statically allocate the TSD.
9551
9e81dbc7 9552 * a-tags.ads:
68b72a44
AC
9553 Minor reordering of the declarations in the private part. Required to
9554 add a level of indirection to the contents of the TSD component HT_Link.
9555 This is required to statically allocate the TSD.
9556
9557 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9558 Is_Statically_Allocated set from constant objects.
9559 Do not make exported constants created by the compiler volatile.
9560 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9561 as read-only.
9562
9563 * trans.c (Identifier_to_gnu): For constants, unshare initializers
9564 before returning them.
9565
9566 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9567 public part of the package.
9568 (Make_DT): Move HT_Link component out of the TSD record. For this
9569 purpose Make_DT now declares a separate object that stores the
9570 HT_Link value, and initializes the TSD component with the address
9571 of this new object. The addition of this level of indirection is
9572 required to statically allocate the TSD because the TSD cannot
9573 have variable components.
9574 (Expand_Interface_Conversion): Improve the expanded code.
9575 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9576
9577 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9578 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9579 if we are building static dispatch tables then we must not generate
9580 extra code to register the primitive because the dispatch table will
9581 be built at the end of the library package; otherwise we notify that
9582 we cannot build the static dispatch table.
9583
95842007-09-26 Robert Dewar <dewar@adacore.com>
9585
9586 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9587 overlays.
9588
9589 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9590 (Analyze_Record_Representation_Clause): Suppress junk warning for
9591 missing component clause.
9592 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9593 tests for controlled type overlay to composites with controlled
9594 components.
9595 (Analyze_Record_Representation_Clause): Add reference for component name
9596
95972007-09-26 Javier Miranda <miranda@adacore.com>
9598 Gary Dismukes <dismukes@adacore.com>
9599
9600 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9601 for thunks associated with interface types.
9602
9603 * einfo.ads: Improve documentatation of Is_Internal
9604 (Is_Thunk): New attribute applicable to subprograms. True for thunks
9605 associated with interface types.
9606 Extensive comment fixes regarding flags that appear in all entities. The
9607 documentation is now consistent for all such flags (there were a number
9608 of errors in the documentation in this regard).
9609
9610 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9611
9612 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9613 of these procedures are passed a function call that already has
9614 build-in-place actuals (testing new flag
9615 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9616 the case where processing continues.
9617 (Expand_Call): If the call is generated from a thunk body then we
9618 propagate the extra actuals associated with the accessibility
9619 level of the access type actuals.
9620
9621 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9622 of each extra formal of a protected operation to reference the
9623 corresponding extra formal of the subprogram denoted by the
9624 operation's Protected_Body_Subprogram.
9e81dbc7 9625
68b72a44
AC
9626 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9627 N_Function_Call nodes.
9628
96292007-09-26 Robert Dewar <dewar@adacore.com>
9630
9631 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9632
9633 * debug.adb: Add d.s flag.
9634
96352007-09-26 Gary Dismukes <dismukes@adacore.com>
9636
9637 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9638 debug variable so that it won't be initialized when pragma
9639 Initialize_Scalars is in effect.
9640
96412007-09-26 Gary Dismukes <dismukes@adacore.com>
9642
9643 * freeze.adb (Freeze_Entity): Remove check for preelaborable
9644 initialization of a full view. This is moved to
9645 Analyze_Package_Specification.
9646
9647 * sem_ch7.adb (Analyze_Package_Specification): Add check for
9648 preelaborable initialization of a full view in entity loop.
9649 (Uninstall_Declarations): If entity is a use-visible compilation unit,
9650 its child units are use-visible only if they are visible child units.
9651
9652 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9653 whether an expression can be used within a type declaration that
9654 requires preelaborable init.
9655 (Check_Components): Replace inline code that does partial checking for
9656 preelaborable default expressions with call to
9657 Is_Preelaborable_Expression.
9658 (Has_Preelaborable_Initialization): In the case of a generic actual
9659 subtype, (that is, Is_Generic_Actual is True), return the result of
9660 applying Has_Preelaborable_Initialization to the generic actual's base
9661 type.
9662
96632007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9664
9665 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9666 call to Jan_1_Day _Of_Week to optimize its performance.
9667 (Is_Leap): Move the routine to the scope of Week_In_Year.
9668 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9669 weekday on which January 1 falls of Year - 1 and Year + 1. This function
9670 avoids calling Time_Of and Split, thus making it more efficent.
9671 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9672
9673 * g-calend.ads (Week_In_Year): Change comment to reflect new
9674 implementation.
9675
96762007-09-26 Emmanuel Briot <briot@adacore.com>
9677
9678 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9679 Command_Line): New types
9680 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9681 support for defining how switches can be grouped on a command line (as
9682 is the case for -gnatw... for GNAT), and how simple switches can be
9683 used as aliases for more complex switches (-gnatwa is same as
9684 -gnatwbcef...)
9685 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9686 (Start, Current_*): New subprograms
9687 Added support for parsing an array of strings in addition to the real
9688 command line.
9689 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9690 be moved from the body to the private part of the spec.
9691 (*): All subprograms now have an extra parameter with default value to
9692 specify which parser should be used. For backward compatibility, it
9693 defaults to parsing the command line of the application. They were also
9694 modified to properly handle cases where each of the argument does not
9695 start at index 1 (which is always true for Ada.Command_Line, but not
9696 when processing any Argument_List).
9697 (Free): New subprogram
9698 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9699 Argument): New subprograms
9700 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9701 special characters like ':', '=',... are now handled in a single place,
9702 which makes the code more extensible eventually.
9703 (Getopt, Full_Switch): When the switch was returned as part of the
9704 special character '*', make sure it is prepended by the switch character
9705 ('-' in general), so that the application knows whether "foo" or "-foo"
9706 was specified on the command line.
9707
97082007-09-26 Florian Villoing <villoing@adacore.com>
9709
9710 * g-dirope.adb (Remove_Dir): In case we are removing directories
9711 recursively, make sure that if an exception is raised during the
9712 processing, the current working directory is reset to its initial
9713 value before propagating the exception.
9714
97152007-09-26 Vincent Celier <celier@adacore.com>
9716
9717 * gnatbind.adb: If there are several ALI files specified and there is
9718 a main program to bind, the first ALI is expected to contain the main
9719 subprogram and the names of the binder generated files will be derived
9720 from the first ALI file name.
9721 (Gnatbind): Fix insertion character in invocation of Error_Msg
9722
97232007-09-26 Vincent Celier <celier@adacore.com>
9724
9725 * gnatcmd.adb (Check_Files): Do not include sources that have been
9726 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9727
97282007-09-26 Ed Schonberg <schonberg@adacore.com>
9729
9730 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9731 information about each of its index types, following the type
9732 reference for its component type.
9733
97342007-09-26 Vincent Celier <celier@adacore.com>
9735
9736 * make.adb: (Kill): New procedure (__gnat_kill imported)
9737 (Running_Compile, Outstanding_Compiles): Global variables that
9738 were previously local to procedure Compile_Sources.
9739 (Sigint_Intercepted): Send signal SIGINT to all outstanding
9740 compilation processes.
9741
9742 (Gnatmake): If project files are used, create the mapping of all the
9743 sources, so that the correct paths will be found.
9744
9745 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9746
97472007-09-26 Vincent Celier <celier@adacore.com>
9748
9749 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9750
9751 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9752 Replace components Compiler_Min_Options and Binder_Min_Options with
9753 Compiler_Required_Switches and Binder_Required_Switches in record
9754 Language_Config.
9755 Remove components Default_Language and Config in Project_Tree_Data,
9756 no longer used.
9757
9758 * prj-attr.adb: New attributes Required_Switches (<language>) in
9759 packages Compiler and Binder.
9760
9761 * prj-nmsc.adb: Major rewrite of the processing of configuration
9762 attributes for gprbuild. No impact on GNAT tools.
9763
9764 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9765 process configuration attributes: this is done in Prj.Nmsc.Check.
9766 (Recursive_Process): Make a full copy of packages inherited from project
9767 being extended, instead of a shallow copy.
9768 (Process_Project_Tree_Phase_1): New procedure
9769 (Process_Project_Tree_Phase_1): New procedure
9770 (Process): Implementation now uses the two new procedures
9771
9772 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9773 from the project config, not the tree config that no longer exists.
9774
97752007-09-26 Vincent Celier <celier@adacore.com>
9776
9777 * Make-lang.in: Update dependencies..
9778
97792007-09-26 Vincent Celier <celier@adacore.com>
9780
9781 * osint.adb, osint.ads: Minor reformatting
9782
9783 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9784
97852007-09-26 Gary Dismukes <dismukes@adacore.com>
9786
9787 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9788 message to cite use of <> in aggregate component associations rather
9789 than wrongly indicating use of limited aggregates.
9790
97912007-09-26 Robert Dewar <dewar@adacore.com>
9792
9793 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9794 Address_Taken.
9795
97962007-09-26 Ed Schonberg <schonberg@adacore.com>
9797
9798 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9799 ancestor of the derived type, the operations are inherited from the
9800 primary dispatch table of the parent.
9801 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9802 when the context is an explicit type conversion.
9803
98042007-09-26 Ed Schonberg <schonberg@adacore.com>
9805
9806 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9807 rule for qualified expressions properly, to detect improper conversions
9808 and resolve some cases of overloading.
9809
98102007-09-26 Ed Schonberg <schonberg@adacore.com>
9811
9812 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9813 proper kind of reference to the primitive operation, for better source
9814 navigation.
9815 (Valid_Conversion): A tagged conversion is legal if both operands are
9816 tagged.
9817
98182007-09-26 Robert Dewar <dewar@adacore.com>
9819
9820 * sem_warn.adb (Check_References): Catch more cases of unreferenced
9821 packages.
9822
98232007-09-26 Vincent Celier <celier@adacore.com>
9824
9825 * snames.adb, snames.ads: Change Include_Option to Include_Switches
9826
98272007-09-26 Robert Dewar <dewar@adacore.com>
9828
9829 * s-wchstw.adb: provide messages for run time unit exceptions
9830
9831 * a-witeio.adb: Minor reformatting
9832
9833 * exp_ch13.adb: Minor reformatting
9834
98352007-09-26 Sergey Rybin <rybin@adacore.com>
9836
9837 * vms_data.ads: Revise gnatmetric qualifiers.
9838 Add qualified for the new gnatbind option '-y'
9839
9840 * gnat_ugn.texi: Revise the gnatmetric section.
9841 Add entry for new gnatbind option '-y'.
9842
9843 * gnat_rm.texi: Minor spelling correction.
9844 Document restriction on overlaying controlled types
9845
98462007-09-26 Vincent Celier <celier@adacore.com>
9847
9848 * makegpr.adb (Link_Executables): Do not fail when the root project has
9849 no sources, but is an extending project.
9850
0a86bcc9
EB
98512007-09-25 Eric Botcazou <ebotcazou@adacore.com>
9852
9853 * trans.c: Fix misplaced #define.
9854
b235734c
EB
98552007-09-22 Eric Botcazou <ebotcazou@adacore.com>
9856
9857 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9858 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9859
97237784
OH
98602007-09-21 Olivier Hainque <hainque@adacore.com>
9861
9862 * utils.c (type_for_nonaliased_component_p): Return false for
9863 all AGGREGATE_TYPEs.
9864
2adde4ff
EB
98652007-09-17 Eric Botcazou <ebotcazou@adacore.com>
9866
9867 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9868 object covered by 13.3(19) volatile.
9869
b693daa7
EB
98702007-09-12 Eric Botcazou <ebotcazou@adacore.com>
9871
9872 PR ada/26797
9873 PR ada/32407
9874 * utils.c (unchecked_convert): Use a subtype as the intermediate type
9875 in the special VIEW_CONVERT_EXPR case.
9876
82da9a90
AC
98772007-09-12 Robert Dewar <dewar@adacore.com>
9878
9879 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9880
9881 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9882 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9883 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9884 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9885 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9886 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9887 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
160c5065 9888 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9e81dbc7
AS
9889 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9890 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9891 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9892 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9893 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9894 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9895 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9896 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
82da9a90
AC
9897 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9898 pragma Compiler_Unit and adds it to relevant library units.
9899
99002007-09-12 Ed Schonberg <schonberg@adacore.com>
9901
9902 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9903 a box need not correspond to any component.
9904
99052007-09-12 Robert Dewar <dewar@adacore.com>
9906
9907 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9908 the tasking version of the Ada run time when foreign threads are
9909 present and there are no explicit Ada tasks or tasking constructs.
9910
9911 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9912
99132007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
9914
9915 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9916 the usage of switch -y.
9917
9918 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9919 when switch -y is present.
9920
9921 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9922 leap seconds in Ada.Calendar and its children.
9923
99242007-09-12 Jose Ruiz <ruiz@adacore.com>
9925
9926 * a-extiti.ads (Timer): The discriminant is a "not null access
9927 constant" in the Reference Manual.
9928 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9929
99302007-09-12 Robert Dewar <dewar@adacore.com>
9931
9932 * a-swuwha.adb: Remove junk RM header
9933
99342007-09-12 Vincent Celier <celier@adacore.com>
9935
9936 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9937 indicator
9938
9939 * g-bytswa.ads: Minor reformatting
9940
99412007-09-12 Thomas Quinot <quinot@adacore.com>
9942
9e81dbc7 9943 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
82da9a90
AC
9944 Add new constant Thread_Blocking_IO, always True by default, set False
9945 on a per-runtime basis.
9946 (Need_Netdb_Buffer): New constant.
9947
99482007-09-12 Arnaud Charlet <charlet@adacore.com>
9949
9950 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9951 Added renames for corresponding functions in System.Partition_Interface.
9952
99532007-09-12 Doug Rupp <rupp@adacore.com>
9954
9955 * Makefile.in: Remove VMS specific System.CRTL packages which are no
9956 longer needed.
9957
9958 * s-crtl-vms64.ads: Removed.
9959
09528ed9
OH
99602007-09-12 Olivier Hainque <hainque@adacore.com>
9961
9962 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9963 with discriminant constraints, generalize the code for BIT_FIELDs
9964 to PACKED fields of constant size and propagate DECL_PACKED.
9965
fa89b6ec
EB
99662007-09-11 Eric Botcazou <ebotcazou@adacore.com>
9967
9968 * decl.c (array_type_has_nonaliased_component): New predicate.
9969 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9970 set the TYPE_NONALIASED_COMPONENT flag on the type.
9971 <E_Array_Subtype>: Likewise.
9972 * gigi.h (type_for_nonaliased_component_p): Declare.
9973 * utils.c (type_for_nonaliased_component_p): New predicate.
9974 (create_field_decl): Invoke the above predicate to set the
9975 DECL_NONADDRESSABLE_P flag on the field.
9976
e18d6a15
JM
99772007-09-11 Javier Miranda <miranda@adacore.com>
9978
9979 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9980 in library level record type entities if we are generating statically
9981 allocated dispatch tables.
9982
9983 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9984 importing/exporting the _tag declaration by new code
9985 importing/exporting the dispatch table wrapper. This change allows us
9986 to statically allocate of the TSD.
9987 (Make_DT.Export_DT): New procedure.
9988 (Build_Static_DT): New function.
9989 (Has_DT): New function.
9990
9991 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9992 True_Constant and Current_Value. Required to statically
9993 allocate the dispatch tables.
9994 (Check_Allocator): Make function iterative instead of recursive.
9995 Also return inner allocator node, when present, so that we do not have
9996 to look for that node again in the caller.
9997
9e94c78f 99982007-09-11 Jan Hubicka <jh@suse.cz>
e89d6010
JH
9999
10000 * misc.c (gnat_expand_body): Kill.
10001 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
10002
281b604e
AC
100032007-09-10 Robert Dewar <dewar@adacore.com>
10004
10005 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
10006 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10007 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10008 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
10009 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
10010 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
10011 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
10012 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
10013 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
10014 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
10015 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
10016 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
10017 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
10018 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
10019 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10020 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
10021 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
10022 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10023 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
10024 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
10025 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10026 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
10027 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
10028 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
10029 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
10030 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10031 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
10032 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
10033 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
10034 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
10035 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
10036 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
10037 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
10038 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
10039 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10040 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
10041 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10042 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
10043 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
10044 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
10045 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
10046 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10047 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10048 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
10049 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10050 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
10051 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
10052 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10053 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10054 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10055 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10056 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
10057 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
10058 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
10059 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10060 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
10061 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
10062 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10063 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
10064 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
10065 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10066 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10067 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
10068 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
10069 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
10070 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
10071 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10072 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
10073 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
10074 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
10075 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10076 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
10077 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
10078 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
10079 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
10080 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
10081 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
10082 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
10083 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10084 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10085 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10086 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10087 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10088
100892007-09-10 Emmanuel Briot <briot@adacore.com>
10090
10091 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10092 classes ("[]").
10093
100942007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
10095
10096 * adaint.c (__gnat_translate_vms): new function.
10097
100982007-09-10 Gary Dismukes <dismukes@adacore.com>
10099 Thomas Quinot <quinot@adacore.com>
10100
10101 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10102 create an abstract subprogram in the case of 'Input. For 'Output we now
10103 create a real spec/body when the type is abstract, since it can
10104 potentially be called.
10105 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10106 body for 'Output when the type is abstract (only the creation of the
10107 body for 'Input is excluded when the type is abstract).
10108 (Stream_Operation_OK): Add an additional condition in the return
10109 statement, so that False will be returned for TTS_Stream_Input if the
10110 associated tagged type is an abstract extension. Add comments for
10111 return statement.
10112 (Expand_N_Object_Declaration): For the case of a shared passive
10113 variable, insert init proc call only after the shared variable
10114 procedures have been processed, because the IP call needs to undergo
10115 shared passive variable reference expansion, which requires these
10116 procedures to be available (and elaborated).
10117
101182007-09-10 Vincent Celier <celier@adacore.com>
10119
10120 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10121 parameter Runtime_Project.
10122
101232007-09-10 Ed Schonberg <schonberg@adacore.com>
10124
10125 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10126 given a box association, the type of the component is discriminated,
10127 and the value of the discriminant is the discriminant of the enclosing
10128 type, retrieve its value from the aggregate itself, where it must have
10129 been supplied.
10130
10131 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10132 to remove other spurious ambiguities on arithmetic operations involving
10133 literals and addresses, on systems where Address is a visible integer
10134 type, when the operator is called in functional notation.
10135 (Try_Primitive_Operation): Within an instance, a call in prefixed form
10136 is legal when the types match, even if the operation is currently
10137 hidden.
10138
101392007-09-10 Ed Schonberg <schonberg@adacore.com>
10140
10141 * sem_ch12.adb (Build_Local_Package): A formal package with no
10142 associations is legal if all formals have defaults. It is not
10143 equivalent to a formal declared with a box.
10144
101452007-09-10 Sergey Rybin <rybin@adacore.com>
10146
10147 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10148
101492007-09-10 Sergey Rybin <rybin@adacore.com>
10150
10151 * gnat_ugn.texi: Add description of the new '-lratio' option
10152 Update 7.3.1 section about availability of the feature.
10153
101542007-09-10 Thomas Quinot <quinot@adacore.com>
10155
10156 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10157 inserted node.
10158
101592007-09-10 Olivier Hainque <hainque@adacore.com>
10160
10161 * Makefile.in: (mips-irix section): Activate build of libgmem.
10162
a56955b1
EB
101632007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10164
10165 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10166 x87 registers.
10167
c03550f6
EB
101682007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10169
10170 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10171 a debug renaming declaration specially.
10172
79646678
EB
101732007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10174
10175 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10176 which a constant renaming is treated as a normal object declaration.
10177 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10178 the N_Indexed_Component case.
10179 <N_Indexed_Component>: Fall through to above case.
10180 <N_Object_Renaming_Declaration>: Return true for all composite types.
10181
d9e161ce
EB
101822007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10183
10184 * decl.c (make_packable_type): If the new type has been given BLKmode,
10185 try again to get an integral mode for it.
10186
0ab29e91 101872007-09-07 Eric Botcazou <ebotcazou@adacore.com>
6ef9a246 10188
0ab29e91 10189 Re-apply accidentally reverted change:
6ef9a246 10190
0ab29e91 10191 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
6ef9a246 10192
0ab29e91 10193 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9e81dbc7 10194 get_action_description_for): Replace _Unwind_Word with _uleb128_t
0ab29e91 10195 and _Unwind_SWord with _sleb128_t.
4b459ae4 10196
38f1f8cb
EB
101972007-09-06 Eric Botcazou <ebotcazou@adacore.com>
10198
10199 * trans.c (convert_with_check): Update call to real_2expN.
10200
db2960f4
SL
102012007-09-05 Sandra Loosemore <sandra@codesourcery.com>
10202
10203 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10204 * utils.c (end_subprog_body): Likewise.
10205
d70c0bd6
NC
102062007-09-03 Nick Clifton <nickc@redhat.com>
10207
10208 * Make-lang.in: Change copyright header to refer to version 3 of
10209 the GNU General Public License and to point readers at the
10210 COPYING3 file and the FSF's license web page.
10211 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10212 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10213 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10214 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10215 Likewise.
10216
8a26ebb6
AC
102172007-08-31 Vincent Celier <celier@adacore.com>
10218
10219 PR ada/4720
10220
9e81dbc7 10221 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
8a26ebb6
AC
10222 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10223 (Check_Version_And_Help): New procedure in package Switch to process
10224 switches --version and --help.
10225 Use Check_Version_And_Help in GNAT tools
10226
10227 * make.adb: Ditto.
10228 (Compile_Sources): Make sure that sources that are "excluded" are not
10229 compiled.
10230 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10231 project file is used.
10232 (Version_Switch): Remove, moved to Switch
10233 (Help_Switch): Remove, moved to Switch
10234 (Display_Version): Remove, moved to Switch
10235
10236 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10237 package Switch to process switches --version and --help.
10238 (Display_Version): New procedure
10239
10240 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10241
102422007-08-31 Javier Miranda <miranda@adacore.com>
10243
10244 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10245 internal tags.
10246
102472007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10248
10249 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10250 (Mark_Non_Null): If the node for which we just generated an access check
10251 is a reference to an *in* parameter and the reference appears in the
10252 declarative part of a subprogram body, mark the node as known non null.
10253
102542007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10255
10256 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10257 structure of E_Exception to reflect the new flag.
10258 (Is_Raised, Set_Is_Raised): New inlined routines.
10259 Update the usage of available flag to reflect the addition of Is_Raised.
10260 (Is_Raised, Set_Is_Raised): Bodies of new routines.
10261 (Write_Entity_Flags): Write the status of flag Is_Raised.
10262 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10263 spurious ambiguities when integer literals appear in the context of an
10264 address type that is a visible integer type.
10265
10266 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10267 exceptions never being raised.
10268 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10269 explicitly raised.
10270
102712007-08-31 Javier Miranda <miranda@adacore.com>
10272
10273 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10274 statement when compiling under restriction No_Exceptions_Proparation.
10275
102762007-08-31 Ed Schonberg <schonberg@adacore.com>
10277
10278 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10279 initialization aggregate for the type, generate itype references for
10280 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10281
102822007-08-31 Gary Dismukes <dismukes@adacore.com>
10283
10284 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10285 library-level package renaming, pass the declaration associated with
10286 the renaming's special debug variable to Qualify_Entity_Names to ensure
10287 that its encoded name is properly qualified.
10288
10289 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10290 occurring in the list of entities to qualify, and do not attempt to
10291 traverse an entity list in that case. Variables associated with
10292` library-level package renamings can now occur in the table.
10293
10294 * exp_dbug.ads: Revise documentation of the encoding for renaming
10295 declarations.
10296
102972007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10298
10299 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10300 access type points to an unconstrained array.
10301
103022007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10303
9e81dbc7 10304 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
8a26ebb6
AC
10305 conversion.
10306
10307 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10308 simple redundant qualifications. The check is performed whenever the
10309 expression is a non-overloaded identifier.
10310 (Resolve_Type_Conversion): Enchance the redundant type conversion check
10311 to include loop parameters.
10312 (Valid_Conversion): Avoid generation of spurious error message.
10313
103142007-08-31 Bob Duff <duff@adacore.com>
10315
10316 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10317 concatenations of string literals into a single literal, in order to
10318 avoid very deep recursion in the front end, which was causing stack
10319 overflow.
10320
10321 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10322 string, and the right operand is a string literal (the case of "" &
10323 "..."), optimize by avoiding copying the right operand -- just use the
10324 value of the right operand directly.
10325
10326 * stringt.adb (Store_String_Chars): Optimize by growing the
10327 String_Chars table all at once, rather than appending characters one by
10328 one.
10329 (Write_String_Table_Entry): If the string to be printed is very long,
10330 just print the first few characters, followed by the length. Otherwise,
10331 doing "pn(n)" in the debugger can take an extremely long time.
10332
10333 * sem_prag.adb (Process_Interface_Name): Replace loop doing
10334 Store_String_Char with Store_String_Chars.
10335
103362007-08-31 Vincent Celier <celier@adacore.com>
10337
10338 * prj-attr.adb: Add new attribute Excluded_Source_Files
10339
10340 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10341 Locally_Removed_Files.
10342
10343 * snames.ads, snames.adb: New standard name Excluded_Source_Files
10344
103452007-08-31 Ed Schonberg <schonberg@adacore.com>
10346
10347 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10348 clauses of subunits, ignore limited_with_clauses that are illegal and
10349 have not been fully analyzed.
10350
103512007-08-31 Ed Schonberg <schonberg@adacore.com>
10352
10353 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10354 flag, for effiency. It is called when analyzing arithmetic operators
10355 and also for actuals in calls that are universal_integers. The flag is
10356 set for the predefined type address, and for any type or subtype
10357 derived from it.
10358
10359 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10360 Universal_Integer, when the formal is a descendent of address and the
10361 call appears in user code.
10362 (Analyze_Selected_Component): if the prefix is a private extension, the
10363 tag component is visible.
10364
10365 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10366 entity flag.
10367
103682007-08-31 Robert Dewar <dewar@adacore.com>
10369
10370 * s-fileio.adb (Open): Normalize file name to lower case in non-case
10371 sensitive file name systems to avoid unexpected mismatch in Vista.
10372
103732007-08-31 Vincent Celier <celier@adacore.com>
10374
10375 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10376
103772007-08-31 Vincent Celier <celier@adacore.com>
10378
10379 * symbols-vms.adb (Initialize): Read symbol files with continuation
10380 lines
10381 (Finalize): If symbol is long, split the line
10382
103832007-08-31 Vincent Celier <celier@adacore.com>
10384
10385 * fmap.ads: Minor comment updates
10386
103872007-08-31 GNAT Script <nobody@adacore.com>
10388
10389 * Make-lang.in: Makefile automatically updated
10390
103912007-08-31 Bob Duff <duff@adacore.com>
10392
10393 * sinfo.ads: Minor comment fix.
10394
103952007-08-31 Thomas Quinot <quinot@adacore.com>
10396
10397 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10398 with implementation.
10399 Documentation cleanup only.
10400
104012007-08-31 Sergey Rybin <rybin@adacore.com>
10402
10403 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10404 gnatpp '--separate-stmt-name' option.
10405 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10406 option.
10407
10408 * gnat_ugn.texi: Add description for the new gnatpp
10409 '--separate-stmt-name' and '--use-on-new-line' options.
10410
22d2aa96
BE
104112007-08-31 Ben Elliston <bje@au.ibm.com>
10412
10413 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10414 when compiling for powerpc64-*-linux.
10415 * system-linux-ppc64.ads: New file.
10416
51743df8
KW
104172007-08-22 Krister Walfridsson <cato@df.lth.se>
10418
10419 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10420 NetBSD.
10421
ac7d7749
KG
104222007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10423
10424 * misc.c (gnat_type_max_size): Constify.
10425
833eddff
AC
104262007-08-16 Gary Dismukes <dismukes@adacore.com>
10427
10428 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10429 associated with Standard_Debug_Renaming_Type, to be used as the type of
10430 the special variables whose names provide debugger encodings for
10431 renaming declarations.
10432
10433 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10434 (Set_Debug_Renaming_Link): Change to set Node25.
10435 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10436 (Write_Field25_Name): Add case for E_Variable to output
10437 "Debug_Renaming_Link".
10438 (Write_Field23_Name): Correct the output string for "Limited_View".
10439
10440 * exp_dbug.adb: Add with and use of Tbuild.
10441 (Debug_Renaming_Declaration): Replace creation of an enumeration type
10442 and literal with creation of a variable of type
10443 Standard_Debug_Renaming_Type whose name encodes both the renamed object
10444 and the entity of the renaming declaration.
10445 (Qualify_Entity_Name): Add the delayed qualification of the entity name
10446 part of the name of a variable that has a Debug_Renaming_Link.
10447
10448 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10449 special type to be associated with variables that provide debugger
10450 encodings for renaming declarations.
10451
104522007-08-16 Gary Dismukes <dismukes@adacore.com>
10453 Ed Schonberg <schonberg@adacore.com>
10454 Javier Miranda <miranda@adacore.com>
10455
10456 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10457 ancestor part given by an aggregate to test for an unchecked conversion,
10458 since this can occur in some cases when the ancestor part is a function
10459 call, and we don't want to fall into the recursive call to this
10460 procedure in that case.
10461
10462 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10463 stream attributes on limited types to account for user-specified
10464 attributes as well as whether Input (resp. Output) becomes available
10465 due to Read (resp. Write) being available for the type. Change Boolean
10466 variable to the more accurate name
10467 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10468 double-"not" predicate at beginning of return statement to more
10469 understandable form.
10470
10471 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10472 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10473 in a block statement and use that as the first statement of the
10474 expanded return rather than incorrectly using the handled sequence as
10475 the first statement.
10476
10477 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10478 operation, generate an explicit freeze node for it rather than
10479 generating extra formals, to ensure that gigi has the proper order of
10480 elaboration for anonymous subtypes in the signature of the subprograms.
10481 (Build_In_Place_Formal): Move assertion to beginning of loop.
10482 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10483 applied to a function call (occurs for some cases of 'Input).
10484 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10485 applied to a function call (occurs for some cases of 'Input).
10486
10487 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10488 2005, generate an extended return statement enclosing the result object
10489 and 'Read call.
10490
10491 * freeze.adb (Freeze_Record_Type): Extend the current management of
10492 components that are access type with an allocator as default value: add
10493 missing support to the use of qualified expressions of the
10494 allocator (which also cause freezing of the designated type!)
10495 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10496 dispatching operation, since extra formals may be needed by calls to
10497 build-in-place functions (such as stream 'Input).
10498
10499 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10500 formals for 'Constrained and accessibility level in the case of a
10501 predefined dispatching operation.
10502
10503 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10504 point, no need to find the parent node.
10505
105062007-08-16 Javier Miranda <miranda@adacore.com>
10507
10508 * exp_attr.adb (Attribute_Priority): Add missing support for entries
10509 and entry barriers.
10510
105112007-08-16 Javier Miranda <miranda@adacore.com>
10512
10513 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10514 is not really required and can introduce regression with the debugger.
10515 The original problem is fixed with the patch written for checks.adb.
10516
105172007-08-16 Thomas Quinot <quinot@adacore.com>
10518
10519 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10520 Range_Check on Allocated_Table.
10521
105222007-08-16 Vincent Celier <celier@adacore.com>
10523
10524 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10525 Including_Non_Switch set to False.
10526 (Gnatmake): For the compiler, call Test_If_Relative_Path with
10527 Including_Non_Switch set to False.
10528
10529 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10530 parameter Including_Non_Switch, defaulted to True. When
10531 Including_Non_Switch is False, options that are not switches and
10532 appear as relative path are not converted to absolute paths.
10533
105342007-08-16 Nicolas Roche <roche@adacore.com>
10535
10536 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10537 makefiles
10538
10539 * Make-lang.in: Update dependencies
10540
105412007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10542
10543 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10544 currently inspected is a selected component, retrieve the entity of
10545 its selector.
10546 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10547 from the immediate ancestor of Main_Unit_Entity.
10548 (Install_Limited_Withed_Unit): Do not install the limited view of
10549 package P if P is reachable through an ancestor chain from package C
10550 and C also has a with clause for P in its body.
10551 (Has_Limited_With_Clause): New routine.
10552 (Has_With_Clause): New routine.
10553
105542007-08-16 Ed Schonberg <schonberg@adacore.com>
10555
10556 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10557 generic for an enclosing instance is a global reference, even though
10558 its scope is the enclosing instance.
10559
105602007-08-16 Gary Dismukes <dismukes@adacore.com>
10561 Javier Miranda <miranda@adacore.com>
10562
10563 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10564 initialize a limited object.
10565 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10566 13/2 and 14/2.
10567 Make sure Has_Complex_Representation is inherited by derived type.
10568
105692007-08-16 Robert Dewar <dewar@adacore.com>
10570
10571 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10572 exception case
10573
105742007-08-16 Ed Schonberg <schonberg@adacore.com>
10575
10576 * sem_disp.adb (Check_Dispatching_Operation): If the operation
10577 implements an operation inherited from a progenitor interface, verify
10578 that they are subtype-conformant.
10579
105802007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10581 Bob Duff <duff@adacore.com>
10582 Nicolas Setton <setton@adacore.com>
10583
10584 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10585 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10586 the statement which is being resolved comes from a predefined library
10587 unit, all non-predefined library interpretations are skipped.
10588 (Resolve_Op_Concat): If string concatenation was folded in the parser,
10589 but the "&" is user defined, give an error, because the folding would
10590 be wrong.
10591
10592 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10593 the parser has folded a long sequence of concatenations of string
10594 literals.
10595
10596 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10597 and "JMP_BUF" variables as artificial.
10598 (N_String_Literal): Do not use alloca for very long string literals. Use
10599 xmalloc/free instead. Otherwise the stack might overflow.
10600
10601 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10602 compiler.
10603
106042007-08-16 Vincent Celier <celier@adacore.com>
10605
10606 * vms_conv.adb (Process_Argument): Ensure that project related options
10607 are not put in the -cargs section when using GNAT COMPILE.
10608
106092007-08-16 Robert Dewar <dewar@adacore.com>
10610
10611 * gnat_ugn.texi: Add note on preprocessing (output file not written)
10612
106132007-08-16 Thomas Quinot <quinot@adacore.com>
10614
10615 * a-tags.adb: Minor reformatting.
10616
106172007-08-16 Bob Duff <duff@adacore.com>
10618
10619 * sem_type.ads, sem_ch4.adb: Minor reformatting.
10620
ab6328d0
AC
106212007-08-14 Thomas Quinot <quinot@adacore.com>
10622
9e81dbc7 10623 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
ab6328d0
AC
10624 s-osinte-interix.ads, system-interix.ads: Removed.
10625
106262007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10627
10628 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10629 calls to Check_Within_Time_Bounds.
10630 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10631 (Difference): Account for possible rounding of the resulting difference
10632
106332007-08-14 Robert Dewar <dewar@adacore.com>
10634
10635 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10636 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10637 s-osinte-solaris.adb, s-osinte-solaris.ads,
10638 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10639
10640 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10641 switch -gnatyS. Enable -gnatyS in GNAT style check mode
10642
106432007-08-14 Robert Dewar <dewar@adacore.com>
10644 Ed Schonberg <schonberg@adacore.com>
10645
9e81dbc7 10646 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
ab6328d0
AC
10647 Suppress unmodified in-out parameter warning in some cases
10648 This patch is a also fairly significant change to the way suppressible
10649 checks are handled.
10650
10651 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10652 needed for access to concurrent record types generated by the expander.
10653 (Generate_Range_Check): When generating a temporary to capture the
10654 value of a conversion that requires a range check, set the type of the
10655 temporary before rewriting the node, so that the type is always
10656 properly placed for back-end use.
10657 (Apply_Float_Conversion_Check): Handle case where the conversion is
10658 truncating.
10659 (Get_Discriminal): Code reformatting. Climb the scope stack looking
10660 for a protected type in order to examine its discriminants.
10661
106622007-08-14 Robert Dewar <dewar@adacore.com>
10663 Gary Dismukes <dismukes@adacore.com>
10664 Ed Schonberg <schonberg@adacore.com>
10665 Thomas Quinot <quinot@adacore.com>
10666
9e81dbc7 10667 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
ab6328d0
AC
10668 a-stwisu.adb, a-strsup.adb: Fix warnings for range
10669 tests optimized out.
10670
10671 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10672 (Get_Allocator_Final_List): For the case of an anonymous access type
10673 that has a specified Associated_Final_Chain, do not go up to the
10674 enclosing scope.
10675 (Expand_N_Type_Conversion): Test for the case of renamings of access
10676 parameters when deciding whether to apply a run-time accessibility
10677 check.
10678 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10679 aggregate code before allocator, and ahead of declaration for
10680 temporary, to prevent access before elaboration when the allocator is
10681 an actual for an access parameter.
10682 (Expand_N_Type_Conversion): On an access type conversion involving an
10683 access parameter, do not apply an accessibility check when the
10684 operand's original node was an attribute other than 'Access. We now
10685 create access conversions for the expansion of 'Unchecked_Access and
10686 'Unrestricted_Access in certain cases and clearly accessibility should
10687 not be checked for those.
10688
10689 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10690 includes a type conversion of a packed component that has been expanded,
10691 recover the original expression for the object, and use this expression
10692 in the post-call assignment statement, so that the assignment is made
10693 to the object and not to a back-end temporary.
10694 (Freeze_Subprogram): In case of primitives of tagged types not defined
10695 at the library level force generation of code to register the primitive
10696 in the dispatch table. In addition some code reorganization has been
10697 done to leave the implementation clear.
10698 (Expand_Call): When expanding an inherited implicit conversion,
10699 preserve the type of the inherited function after the intrinsic
10700 operation has been expanded.
10701
10702 * exp_ch2.ads, exp_ch2.adb
10703 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10704 of an entry formal appearing in an assignment statement does not assign
10705 to the formal.
10706 (Expand_Current_Value): Instead of calling a routine to determine
10707 whether the prefix of an attribute reference should be optimized or
10708 not, prevent the optimization of such prefixes all together.
10709
10710 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10711 component whose prefix is known to be of an access type is an implicit
10712 dereference and does not assign to the prefix.
10713
107142007-08-14 Ed Schonberg <schonberg@adacore.com>
10715 Robert Dewar <dewar@adacore.com>
10716
10717 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10718 itype is visited, make an entry into table to link associated node and
10719 new itype.
10720 Add comments and correct harmless error in Build_NCT_Hash_Tables
10721 (Array_Aggr_Subtype): Associate each itype created for an index type to
10722 the corresponding range construct, and not to the aggregate itself. to
10723 maintain a one-to-one correspondence between itype and its associated
10724 node, to prevent errors when complex expression is copied.
10725 Fix mishandling of multiple levels of parens
10726
10727 * sem_aggr.adb: Create a limited view of an incomplete type, to make
10728 treatment of limited views uniform for all visible declarations in a
10729 limited_withed package.
10730 (New_Copy_Tree): If hash table is being used and itype is visited,
10731 make an entry into table to link associated node and new itype.
10732 (Resolve_Record_Aggregate): Do not add an others box association for a
10733 discriminated record component that has only discriminants, when there
10734 is a box association for the component itself.
10735
10736 * par-ch4.adb: Fix mishandling of multiple levels of parens
10737
107382007-08-14 Robert Dewar <dewar@adacore.com>
10739
10740 * comperr.adb: Fix problem with suppressing warning messages from gigi
10741
9e81dbc7 10742 * erroutc.ads, erroutc.adb, errout.ads,
ab6328d0
AC
10743 errout.adb (Write_Eol): Remove trailing spaces before writing the line
10744 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10745 possible trailing spaces.
10746 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10747 Fix problem with suppressing warning messages from back end
10748 Improve handling of deleted warnings
10749
9e81dbc7 10750 * gnat1drv.adb:
ab6328d0
AC
10751 Fix problem with suppressing warning messages from back end
10752 Handle setting of Static_Dispatch_Tables flag.
10753
9e81dbc7 10754 * prepcomp.adb:
ab6328d0
AC
10755 Fix problem with suppressing warning messages from back end
10756
10757 * exp_intr.adb: Improve handling of deleted warnings
10758
107592007-08-14 Robert Dewar <dewar@adacore.com>
10760
10761 * debug.adb: Improve -gnatdI to cover all cases of serialization
10762 Add documentation of dZ, d.t
10763
10764 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10765 serialization.
10766 (Sprint_Node_Actual): Generate new output associated with implicit
10767 importation and implicit exportation of object declarations.
10768
107692007-08-14 Ed Schonberg <schonberg@adacore.com>
10770 Robert Dewar <dewar@adacore.com>
10771 Javier Miranda <miranda@adacore.com>
10772 Gary Dismukes <dismukes@adacore.com>
10773
10774 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10775 to make treatment of limited views uniform for all visible declarations
10776 in a limited_withed package.
10777 Improve warnings for in out parameters
10778 (Set_Related_Interaface/Related_Interface): Allow the use of this
10779 attribute with constants.
10780 (Write_Field26_Name): Handle attribute Related_Interface in constants.
10781 Warn on duplicate pragma Preelaborable_Initialialization
10782
10783 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10784 generation of a freezing node to ensure proper management of null
10785 excluding access types in the backend.
10786 (Create_Extra_Formals): Test base type of the formal when checking for
10787 the need to add an extra accessibility-level formal. Pass the entity E
10788 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10789 originally being done in a couple of cases), to ensure that the
10790 Extra_Formals list gets set on the entity E when the first entity is
10791 added.
10792 (Conforming_Types): Add missing calls to Base_Type to the code that
10793 handles anonymous access types. This is required to handle the
10794 general case because Process_Formals builds internal subtype entities
10795 to handle null-excluding access types.
10796 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10797 functions that need it, even when not marked Requires_Overriding.
10798 Improve warnings for in out parameters
10799 (Analyze_Function_Return): Warn for disallowed null return
10800 Warn on return from procedure with unset out parameter
10801 Ensure consistent use of # in error messages
10802 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10803 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10804 the implicit conversion of the expression done for anonymous access
10805 types. This is required to generate the code of the null excluding
10806 check (if required).
10807
10808 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10809 A formal parameter is never publicly referenceable outside of its body.
10810 (Check_References): For an unreferenced formal parameter in an accept
10811 statement, use the same warning circuitry as for subprogram formal
10812 parameters.
10813 (Warn_On_Unreferenced_Entity): New subprogram, taken from
10814 Output_Unreferenced_Messages, containing the part of that routine that
10815 is now reused for entry formals as described above.
10816 (Goto_Spec_Entity): New function
10817 (Check_References): Do not give IN OUT warning for dispatching operation
10818 Improve warnings for in out parameters
10819 (Test_Ref): Check that the entity is not undefinite before calling
10820 Scope_Within, in order to avoid infinite loops.
10821 Warn on return from procedure with unset out parameter
10822 Improved warnings for unused variables
10823
108242007-08-14 Robert Dewar <dewar@adacore.com>
10825 Javier Miranda <miranda@adacore.com>
10826 Gary Dismukes <dismukes@adacore.com>
10827
10828 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10829 (Expand_N_Attribute_Reference): Further unify the handling of the
10830 three forms of access attributes, using common code now for all three
10831 cases. Add a test for the case of applying an access attribute to
10832 an explicit dereference when the context is an access-to-interface
10833 type. In that case we need to apply the conversion to the prefix
10834 of the explicit dereference rather than the prefix of the attribute.
10835 (Attribute_Version, UET_Address): Set entity as internal to ensure
10836 proper dg output of implicit importation.
10837 (Expand_Access_To_Type): Removed.
10838 (Expand_N_Attribute_Reference): Merge the code from the three cases
10839 of access attributes, since the processing is largely identical for
10840 these cases. The substantive fix here is to process the case of a
10841 type name prefix (current instance case) before handling the case
10842 of interface prefixes.
10843
108442007-08-14 Thomas Quinot <quinot@adacore.com>
10845 Ed Schonberg <schonberg@adacore.com>
10846 Javier Miranda <miranda@adacore.com>
10847 Robert Dewar <dewar@adacore.com>
10848
10849 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10850 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10851 type that is an anonymous access to controlled object, establish
10852 an associated finalization chain to avoid corrupting the global
10853 finalization list when a dynamically allocated object designated
10854 by such a component is deallocated.
10855 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10856 functions that need it, even when not marked Requires_Overriding.
10857 (Initialize_Tag): Replace call to has_discriminants by call to
10858 Is_Variable_Size_Record in the circuitry that handles the
10859 initialization of secondary tags.
10860 (Is_Variable_Size_Record): New implementation.
10861 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10862 Suppress_Initialization pragma for a derived type.
10863 (Is_Variable_Size_Record): New subprogram.
10864 (Build_Offset_To_Top_Functions): New implementation that simplifies the
10865 initial version of this routine and also fixes problems causing
10866 incomplete initialization of the table of interfaces.
10867 (Build_Init_Procedure): Improve the generation of code to initialize the
10868 the tag components of secondary dispatch tables.
10869 (Init_Secondary_Tags): New implementation that simplifies the previous
10870 version of this routine.
10871 (Make_DT): Add parameter to indicate when type has been frozen by an
10872 object declaration, for diagnostic purposes.
10873 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10874 diagnose attemps to freeze a subprogram when some untagged type of its
10875 profile is a private type whose full view has not been analyzed yet.
10876 (Freeze_Array_Type): Generate init proc for packed array if either
10877 Initialize or Normalize_Scalars is set.
10878 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10879 constructing the new profile, copy the null_exclusion indicator for each
10880 parameter, to ensure full conformance of the new body with the spec.
10881
10882 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10883 Create wrappers for constructor functions that need it, even when not
10884 marked Requires_Overriding.
10885 (Covers): Handle properly designated types of anonymous access types,
10886 whose non-limited views are themselves incomplete types.
10887 (Add_Entry): Use an entity to store the abstract operation which hides
10888 an interpretation.
10889 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10890 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10891 initialization aggregate.
10892 (Function_Interp_May_Be_Hidden): Rename to
10893 Function_Interp_Has_Abstract_Op.
10894 (Has_Compatible_Type): Remove machinery that skips interpretations if
10895 they are labeled as potentially hidden by an abstract operator.
10896 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10897 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10898 (Write_Overloads): Output the abstract operator if present.
10899 (Add_Entry): Before inserting a new entry into the interpretation table
10900 for a node, determine whether the entry will be disabled by an abstract
10901 operator.
10902 (Binary_Op_Interp_May_Be_Hidden): New routine.
10903 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10904 aggregate.
10905 (Function_Interp_May_Be_Hidden): New routine.
10906 (Has_Compatible_Type): Do not consider interpretations hidden by
10907 abstract operators when trying to determine whether two types are
10908 compatible.
10909 (Has_Hidden_Interp): New routine.
10910 (Set_May_Be_Hidden_Interp): New routine.
10911 (Write_Overloads): Write the status of flag May_Be_Hidden.
10912
109132007-08-14 Ed Schonberg <schonberg@adacore.com>
10914 Javier Miranda <miranda@adacore.com>
10915
10916 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10917 types declared in the declarative part of a nested package body or in
10918 the proper body of a stub.
10919 (Set_All_DT_Position): Add missing check to avoid wrong assignation
10920 of the same dispatch table slot to renamed primitives.
10921 (Make_Select_Specific_Data_Table): Handle private types.
10922 (Tagged_Kind): Handle private types.
10923 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10924 output of implicit importation and exportation.
10925 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10926 first formal of the thunk is always associated with the controlling
10927 type. In addition perform the following code cleanup: remove formal
10928 Thunk_Alias which is no longer required, cleanup evaluation of the
10929 the controlling type, and update the documentation.
10930 Replace occurrence of Default_Prim_Op_Count by
10931 Max_Predef_Prims. Addition of compile-time check to verify
10932 that the value of Max_Predef_Prims is correct.
10933 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10934 (Make_DT): Add parameter to indicate when type has been frozen by an
10935 object declaration, for diagnostic purposes.
10936 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10937 construction of statically allocated dispatch tables.
10938 (Make_DT): In case of library-level tagged types export the declaration
10939 of the primary tag. Remove generation of tags (now done by Make_Tags).
10940 Additional modifications to handle non-static generation of dispatch
10941 tables. Take care of building tables for asynchronous interface types
10942 (Make_Tags): New subprogram that generates the entities associated with
10943 the primary and secondary tags of Typ and fills the contents of Access_
10944 Disp_Table. In case of library-level tagged types imports the forward
10945 declaration of the primary tag that will be declared later by Make_DT.
10946 (Expand_Interface_Conversion): In case of access types to interfaces
10947 replace an itype declaration by an explicit type declaration to avoid
10948 problems associated with the scope of such itype in transient blocks.
10949
109502007-08-14 Robert Dewar <dewar@adacore.com>
10951 Ed Schonberg <schonberg@adacore.com>
10952 Javier Miranda <miranda@adacore.com>
10953
9e81dbc7 10954 * exp_util.ads, exp_util.adb:
ab6328d0
AC
10955 This patch replaces a number of occurrences of explicit tests for N_Null
10956 with calls to Known_Null. This improves tracking of null values, since
10957 Known_Null also catches null constants, and variables currently known to
10958 be null, so we get better tracking.
10959 (Ensure_Defined): create an itype reference only in the scope of the
10960 itype.
10961 (Side_Effect_Free): A selected component of an access type that
10962 denotes a component with a rep clause must be treated as not
10963 side-effect free, because if it is part of a linked structure its
10964 value may be affected by a renaming.
10965 (Expand_Subtype_From_Expr): For limited objects initialized with build
10966 in place function calls, do nothing; otherwise we prematurely introduce
10967 an N_Reference node in the expression initializing the object, which
10968 breaks the circuitry that detects and adds the additional arguments to
10969 the called function. Bug found working in the new patch for statically
10970 allocated dispatch tables.
10971 (Is_Library_Level_Tagged_Type): New subprogram.
10972 (Remove_Side_Effects): If the expression of an elementary type is an
10973 operator treat as a function call.
10974 (Make_Literal_Range): If the index type of the array is not integer, use
10975 attributes properly to compute the constraint on the resulting aggregate
10976 which is a string.
10977
10978 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10979 class-wide type whose base type is an incomplete private type, leave
10980 class-wide type unfrozen so that freeze nodes can be generated
10981 properly at a later point.
10982 (Freeze_Entity, array case): Handle case of pragma Pack and component
10983 size attributre clause for same array.
10984
109852007-08-14 Vincent Celier <celier@adacore.com>
10986
10987 * prj.ads, prj.adb: Update Project Manager to new attribute names for
10988 gprbuild.
10989 Allow all valid declarations in configuration project files
10990 (Reset): Initialize all tables and hash tables in the project tree data
10991 Major update of the Project Manager and of the project aware tools,
10992 including gprmake, so that the same sources in the GNAT repository
10993 can be used by gprbuild.
10994 (Slash_Id): Change type to be Path_Name_Type
10995 (Slash): Return a Path_Name_Type instead of a File_Name_Type
10996
10997 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10998 gprbuild.
10999 Update Project Manager to new attribute names for ghprbuild
11000 Allow all valid declarations in configuration project files
11001 Major update of the Project Manager and of the project aware tools,
11002 including gprmake, so that the same sources in the GNAT repository
11003 can be used by gprbuild.
11004
9e81dbc7 11005 * prj-com.ads:
ab6328d0
AC
11006 Major update of the Project Manager and of the project aware tools,
11007 including gprmake, so that the same sources in the GNAT repository
11008 can be used by gprbuild.
11009
11010 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11011 insensitive flag for attributes with optional index.
11012 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11013 array attribute, put the index in lower case.
11014 Update Project Manager to new attribute names for ghprbuild
11015 Allow all valid declarations in configuration project files
11016 Major update of the Project Manager and of the project aware tools,
11017 including gprmake, so that the same sources in the GNAT repository
11018 can be used by gprbuild.
11019
9e81dbc7 11020 * prj-env.ads, prj-env.adb:
ab6328d0
AC
11021 Major update of the Project Manager and of the project aware tools,
11022 including gprmake, so that the same sources in the GNAT repository
11023 can be used by gprbuild.
11024 (Get_Reference): Change type of parameter Path to Path_Name_Type
11025
11026 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
11027 removing '-' from the path to start with the first character of the
11028 next directory.
11029 Major update of the Project Manager and of the project aware tools,
11030 including gprmake, so that the same sources in the GNAT repository
11031 can be used by gprbuild.
11032 Major update of the Project Manager and of the project aware tools,
11033 including gprmake, so that the same sources in the GNAT repository
11034 can be used by gprbuild.
11035
9e81dbc7 11036 * prj-nmsc.ads, prj-nmsc.adb:
ab6328d0
AC
11037 Update Project Manager to new attribute names for ghprbuild
11038 Allow all valid declarations in configuration project files
11039 (Search_Directories): Detect subunits that are specified with an
11040 attribute Body in package Naming. Do not replace a source/unit in the
11041 same project when the order of the source dirs are known. Detect
11042 duplicate sources/units in the same project when the order of the
11043 source dirs are not known.
11044 (Check_Ada_Name): Allow all identifiers that are not reserved words
11045 in Ada 95.
11046 Major update of the Project Manager and of the project aware tools,
11047 including gprmake, so that the same sources in the GNAT repository
11048 can be used by gprbuild.
11049 (Look_For_Sources): If the list of sources is empty, set the object
11050 directory of non extending project to nil.
11051 Change type of path name variables to be Path_Name_Type
11052 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
11053 otherwise creating missing directories will fail.
11054
9e81dbc7 11055 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
ab6328d0
AC
11056 prj-part.ads, prj-part.adb:
11057 Major update of the Project Manager and of the project aware tools,
11058 including gprmake, so that the same sources in the GNAT repository
11059 can be used by gprbuild.
11060
11061 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11062 insensitive flag for attributes with optional index.
11063 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11064 array attribute, put the index in lower case.
11065 (Parse_Variable_Reference): Allow the current project name to be used in
11066 the prefix of an attribute reference.
11067
11068 * prj-util.ads, prj-util.adb
11069 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
11070 defaulted to False. When True, always check against indexes in lower
11071 case.
11072
9e81dbc7 11073 * snames.ads, snames.h, snames.adb:
ab6328d0
AC
11074 Update Project Manager to new attribute names for gprbuild
11075 Allow all valid declarations in configuration project files
11076
110772007-08-14 Robert Dewar <dewar@adacore.com>
11078 Ed Schonberg <schonberg@adacore.com>
11079
11080 * opt.ads: Warning for non-local exception propagation now off by
11081 default
11082 New switch -gnatI to disable representation clauses
11083 Implement new pragma Implicit_Packing
11084
9e81dbc7 11085 * usage.adb:
ab6328d0
AC
11086 Warning for non-local exception propagation now off by default
11087 Add warning for unchecked conversion of pointers wi different
11088 conventions.
11089 New switch -gnatI to disable representation clauses
11090
11091 * usage.adb: new switch -gnatyS
11092
11093 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11094 note that aggregates of anonymous array types are not flagged.
11095 -gnatwc now includes membership tests optimized away
11096 -gnatw.x warnings are now off by default
11097 Added conditional compilation Appendix
11098 Add documentation of -gnatI
11099 Add documentation for new -gnatyS style check
11100 Update documentation about SAL and auto-init on Windows.
11101
9e81dbc7 11102 * gnat_rm.texi:
ab6328d0
AC
11103 Add documentation for pragma Check_Name and 'Enabled attribute
11104 Document that Eliminate on dispatching operation is ignored
11105 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11106 Document pragma Main
11107 Document pragma Implicit_Packing
11108
11109 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11110 different conventions
11111 New switch -gnatI to disable representation clauses
11112
11113 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11114 recognized, report the invalid characters including "-gnat" instead of
11115 just the first character in the switch.
11116 New switch -gnatI to disable representation clauses
11117 Set Warn_On_Object_Renames_Function true for -gnatg
11118
11119 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11120 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11121 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11122 to switch -aP (add directory to project search dir).
11123
11124 * par-prag.adb: Implement new pragma Implicit_Packing
11125
11126 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11127 type as having a non-standard representation, to force expansion on
11128 conversion to related types.
11129 (Analyze_Pragma): Warn on misspelled pragma
11130 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11131 Ensure consistent use of # in error messages
11132 Implement pragma Implicit_Packing
11133
111342007-08-14 Olivier Hainque <hainque@adacore.com>
11135 Eric Botcazou <ebotcazou@adacore.com>
11136
11137 * targtyps.c (get_target_maximum_default_alignment): New function.
11138 Maximum alignment
11139 that the compiler might choose by default for a type or object.
11140 (get_target_default_allocator_alignment): New function. Alignment known
11141 to be honored by the target default allocator.
11142 (get_target_maximum_allowed_alignment): New function. Maximum alignment
11143 we might accept for any type or object on the target.
11144 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11145
11146 * gigi.h (get_target_maximum_default_alignment): Declare new function.
11147 (get_target_default_allocator_alignment): Likewise.
11148 (get_target_maximum_allowed_alignment): Likewise.
11149
11150 PR ada/19037
11151 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11152 result of a function call, first try to use a stabilized reference for
11153 a constant renaming too.
11154 (validate_alignment): Use target_maximum_allowed_alignment instead of
11155 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11156 (gnat_to_gnu_entity): Use common nodes directly.
11157 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11158 alignment and size for the object.
11159 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11160 and N_Procedure_Call_Statement.
11161 (takes_address): Rename to lvalue_required_p, add third parameter
11162 'aliased' and adjust recursive calls.
11163 <N_Indexed_Component>: Update 'aliased' from the array type.
11164 <N_Selected_Component>: New case.
11165 <N_Object_Renaming_Declaration>: New Likewise.
11166 (Identifier_to_gnu): Adjust for above changes.
11167 (maybe_stabilize_reference) <CONST_DECL>: New case.
11168
11169 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11170 between type variants.
11171 (build_simple_component_ref): Likewise.
11172 (build_call_alloc_dealloc): Use target_default_allocator_alignment
11173 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11174 aligning type circuitry for allocations from the default storage pool.
11175 (build_allocator): Likewise.
11176 (build_simple_component_ref): Manually fold the reference for a
11177 constructor if the record type contains a template.
11178
11179 * utils.c (value_zerop): Delete.
11180 (gnat_init_decl_processing): Emit debug info for common types.
11181 (rest_of_record_type_compilation): If a union contains a field
11182 with a non-constant qualifier, treat it as variable-sized.
11183 (finish_record_type): Give the stub TYPE_DECL a name.
11184 (rest_of_record_type_compilation): Likewise.
11185 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
11186 types are equivalent array types.
11187 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11188 even if the type is not passed by reference.
11189 (static_ctors, static_dtors): Delete.
11190 (end_subprog_body): Do not record constructors and destructors.
11191 (build_global_cdtor): Delete.
11192 (gnat_write_global_declarations): Do not call build_global_cdtor.
11193
0ab29e91 11194 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
ab6328d0
AC
11195 -fRTS=rtp is specified.
11196 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11197 specified.
11198
11199 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11200 of the personality function with SJLJ exceptions.
11201
9e81dbc7 11202 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
ab6328d0
AC
11203 the name of the personality function with SJLJ exceptions.
11204
112052007-08-14 Robert Dewar <dewar@adacore.com>
11206 Ed Schonberg <schonberg@adacore.com>
11207
11208 * par.ads, par.adb: Improve handling of extra right parens.
11209 (Par): Remove flag From_Limited_With_Clause.
11210
11211 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11212 Improve handling of extra right parens.
11213
112142007-08-14 Robert Dewar <dewar@adacore.com>
11215
11216 * par-tchk.adb (TF_Semicolon): Improve error recovery
11217
112182007-08-14 Robert Dewar <dewar@adacore.com>
11219 Ed Schonberg <schonberg@adacore.com>
11220
11221 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11222 enumeration type, mark all literals as referenced.
11223 (Eval_Attribute, case 'Image): If the argument is an enumeration
11224 literal and names are available, constant-fold but mark nevertheless as
11225 non-static.
11226 Clean up function names.
11227 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11228 comment.
11229 (Requires_Simple_Name_Prefix): Removed.
11230
112312007-08-14 Robert Dewar <dewar@adacore.com>
11232 Ed Schonberg <schonberg@adacore.com>
11233
11234 * sem_ch11.adb: Improved warnings for unused variables
11235
11236 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11237 is a synchronized interface, the derived type is limited.
11238 (Analyze_Object_Declaration): Mark the potential coextensions in the
11239 definition and expression of an object declaration node.
11240 (Build_Derived_Type): For the completion of a private type declaration
11241 with a derived type declaration, chain the parent type's representation
11242 items to the last representation item of the derived type (not the
11243 first one) if they are not present already.
11244 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11245 object declaration of forward references to tags.
11246 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11247 subprogram types can appear as access discriminants of synchronized
11248 types.
11249 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11250 given in prefixed form as a selected component.
11251 (Process_Discriminants): If not all discriminants have defaults, place
11252 error message on a default that is present.
11253 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11254 extend a synchronized tagged type.
11255 Improved warnings for unused variables
11256 (Is_Visible_Component): Fix a visibility hole on a component inherited
11257 by a private extension when parent is itself declared as a private
11258 extension, and the derivation is in a child unit.
11259 (Find_Hidden_Interface): Move spec from the package body.
11260
112612007-08-14 Robert Dewar <dewar@adacore.com>
11262 Ed Schonberg <schonberg@adacore.com>
11263
11264 * sem_ch5.adb: Improve warnings on redundant assignments
11265
11266 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11267 parameter
11268 (Is_Synchronized_Tagged_Type): New subprogram that returns true
11269 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11270 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11271 is set to False. Improves handling of Known_[Not_]Null.
11272 (Wrong_Type): Special case address arithmetic attempt
11273 (Collect_Abstract_Interfaces): Add new formal to allow collecting
11274 abstract interfaces just using the partial view of private types.
11275 (Has_Abstract_Interfaces): Add new formal to allow checking types
11276 covering interfaces using the partial view of private types.
11277 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11278 component still needs to be defined in this case, but is never
11279 initialized as VMs are using other dispatching mechanisms.
11280 (Abstract_Interface_List): For a protected type, use base type to get
11281 proper declaration.
11282 Improve warnings on redundant assignments
11283 (Is_Variable): Handle properly an implicit dereference of a prefixed
11284 function call.
11285 (Build_Actual_Subtype): If this is an actual subtype for an
11286 unconstrained formal parameter, use the sloc of the body for the new
11287 declaration, to prevent anomalises in the debugger.
11288
112892007-08-14 Robert Dewar <dewar@adacore.com>
11290
11291 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11292 dispatching operation
11293
112942007-08-14 Ed Schonberg <schonberg@adacore.com>
11295 Gary Dismukes <dismukes@adacore.com>
11296
9e81dbc7 11297 * exp_aggr.ads,
ab6328d0
AC
11298 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11299 expanded aggregate code before allocator, and ahead of declaration for
11300 temporary, to prevent access before elaboration when the allocator is
11301 an actual for an access parameter.
11302 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11303 the TSD and the table of interfaces.
11304 (Convert_To_Assignments): Augment the test for delaying aggregate
11305 expansion for limited return statements to include the case of extended
11306 returns, to prevent creation of an unwanted transient scope.
11307 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11308 (Expand_Array_Aggregate): Handle aggregates associated with
11309 statically allocated dispatch tables.
11310 (Expand_Record_Aggregate): Handle aggregates associated with
11311 statically allocated dispatch tables.
11312 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11313 of anonymous access type.
11314
113152007-08-14 Ed Schonberg <schonberg@adacore.com>
11316
11317 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11318 is a variable that renames a slice, use the variable itself in the
11319 expannsion when the renamed expression itself may be modified between
11320 the declaration of the renaming and the array assignment.
11321
113222007-08-14 Jerome Guitton <guitton@adacore.com>
11323
9e81dbc7
AS
11324 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11325 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
ab6328d0
AC
11326 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11327 New functions; dummy implementations.
11328
11329 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11330 functions, used to implement the multi-tasks mode routines on VxWorks.
11331
11332 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11333 New functions, thin
11334 binding to the VxWorks routines which have changed between VxWorks 5
11335 and 6.
11336 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11337 which are not callable from a RTP.
11338
11339 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11340 implemented for the multi-tasks mode on VxWorks 5 and 6.
11341
11342 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11343
11344 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11345 functions.
11346
113472007-08-14 Vincent Celier <celier@adacore.com>
11348
9e81dbc7 11349 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
ab6328d0 11350 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
9e81dbc7
AS
11351 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11352 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11353 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
ab6328d0
AC
11354 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11355 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11356 procedure.
11357 (Major_Id_Name): New function.
11358 mlib-tgt.ads/mlib.tgt.adb:
11359 (Library_Major_Minor_Id_Supported): New function, default returns True
11360 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11361 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11362 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11363 Implementation of Library_Major_Minor_Id_Supported returns False
11364 clean.adb:
11365 (Clean_Library_Directory): If major/minor ids are supported, clean all
11366 library files.
11367 Major update of the Project Manager and of the project aware tools,
11368 including gprmake, so that the same sources in the GNAT repository
11369 can be used by gprbuild.
11370
113712007-08-14 Olivier Hainque <hainque@adacore.com>
11372
11373 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11374 (GCC_ZCX_Support): Switch to True.
9e81dbc7 11375
ab6328d0
AC
11376 * s-intman-solaris.adb (Notify_Exception): Call
11377 Adjust_Context_For_Raise before raising, as expected for signal
11378 handlers in general.
9e81dbc7 11379
ab6328d0
AC
11380 * s-intman-posix.adb (Notify_Exception): Remove declaration of
11381 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11382 to other implementation bodies.
9e81dbc7 11383
ab6328d0
AC
11384 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11385 be visible by multiple implementation bodies.
9e81dbc7 11386
ab6328d0
AC
11387 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11388 only for conditions coming from hardware.
11389 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11390 adjustments to signal context prior to exception raise from signal
11391 handler.
11392 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11393 mode.
11394 Solaris section: (__gnat_adjust_context_for_raise): New function.
11395 Implementation of the machine context adjustments to perform prior to
11396 raise from a signal handler. Version for both sparc and x86.
11397 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11398 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11399 prior to raising as expected for any handler, before possible nested
11400 faults to make sure all the contexts in a chain have been adjusted by
11401 the time we propagate.
11402
114032007-08-14 Pascal Obry <obry@adacore.com>
11404
11405 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11406 (SYSTEM_INFO): New record.
11407 (SetThreadIdealProcessor): New imported routine needed for supporting
11408 task_info pragma on Windows.
11409
11410 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11411 info can be applied to the current host.
11412 (Create_Task): Set the ideal processor if information is present.
11413
11414 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11415 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11416
114172007-08-14 Olivier Hainque <hainque@adacore.com>
11418
11419 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11420 stack size and initial stack pointer value for a given task.
11421 (Enter_Task): Get the stack attributes of the task we are entering and
11422 let the stack checking engine know about them.
11423
11424 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11425 Let the stack-checking engine know about the initial sp value and stack
11426 size associated with the current task.
11427 (Set_Stack_Info): If a stack base has been notified for the current
11428 task, honor it. Fallback to the previous less accurate method otherwise.
11429
11430 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11431
114322007-08-14 Ed Schonberg <schonberg@adacore.com>
11433
11434 * sem_ch10.adb: Create a limited view of an incomplete type, to make
11435 treatment of limited views uniform for all visible declarations in a
11436 limited_withed package.
11437 Set flag indicating that a subprogram body for a child unit has a
11438 generated spec.
11439 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11440 separate declaration, remove the unit name from visibility after
11441 compilation, so that environment is clean for subsequent compilations.
11442 (Install_Limited_Context_Clauses): Do not install a
11443 limited_private_with_clause unless the current unit is a body or a
11444 private child unit.
11445 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11446 in the same fashion.
11447 (Install_Limited_Withed_Unit): Do not install a limited with clause if
11448 it applies to the declaration of the current package body.
11449 (Remove_Private_With_Clauses): If there is a regular with_clause for
11450 the unit, delete Private_With_Clause from context, to prevent improper
11451 hiding when processing subsequent nested packages and instantiations.
11452
114532007-08-14 Jose Ruiz <ruiz@adacore.com>
11454
11455 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11456 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11457 representing absolute path names.
11458 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11459
11460 * cstreams.c (__gnat_full_name for VxWorks): Use
11461 __gnat_is_absolute_path to detect whether we need to add the current
11462 directory to normalize the path.
11463
114642007-08-14 Javier Miranda <miranda@adacore.com>
11465
9e81dbc7 11466 * a-tags.ads,
ab6328d0
AC
11467 a-tags.adb (Displace): Associate a message with the raised CE
11468 exception.
11469 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11470 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11471 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11472 spec.
11473 (Default_Prim_Op_Count): Removed.
11474 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11475 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11476 Remove pragma Inline_Always.
11477
11478 * rtsfind.ads (Default_Prim_Op_Count): Removed
11479 (Max_Predef_Prims): New entity
11480 (RE_Expanded_Name): Removed
11481 (RE_HT_Link): Removed
11482 (RE_Iface_Tag): Remmoved
11483 (RE_Ifaces_Table): Removed
11484 (RE_Interfaces_Array): Removed
11485 (RE_Interface_Data_Element): Removed
11486 (RE_Nb_Ifaces): Removed
11487 (RE_RC_Offset): Removed
11488 (RE_Static_Offset_To_Top): Removed
11489
11490 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11491 formal.
11492 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11493 Prim_Op_Count by Max_Predef_Prims.
11494
114952007-08-14 Thomas Quinot <quinot@adacore.com>
11496 Vincent Celier <celier@adacore.com>
11497
11498 * binde.adb (Elab_All_Links): Remove unnecessary call to
11499 Generic_Separately_Compiled (if a unit satisfies this predicate, there
11500 won't be an associated Afile).
11501 (Elab_All_Links): Fail if a referenced unit cannot be found
11502
9e81dbc7 11503 * bindgen.adb:
ab6328d0
AC
11504 Fix comments in bindgen regarding consistency checks done in Bcheck:
11505 the checks are made across units within a partition, not across several
11506 partitions.
11507 Fix generation of C binder file for VxWorks.
11508
11509 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11510 Generic_May_Lack_ALI, more descriptive of the current use of the
11511 predicate, and update documentation.
11512
11513 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11514 reorganization and documentation update for the case of predefined
11515 library generics (for which we do not reference an Afile).
11516
115172007-08-14 Robert Dewar <dewar@adacore.com>
11518
11519 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11520 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11521 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11522 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11523 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11524 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11525 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11526 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11527 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11528 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11529 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11530 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11531 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11532 g-altcon.adb: Minor reformatting
11533
11534 ada-tree.h: Delete empty line.
11535
11536 ali.ads: Minor reformatting
11537 Clarification of comments.
11538 Minor spelling correction
11539
11540 * exp_dbug.adb: Add Warnings Off to suppress new warning
11541
11542 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11543 formal
11544
11545 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11546 value
11547
11548 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11549
11550 * a-textio.ads: Reorder the standard input/output/error declarations
11551 for consistency.
11552
11553 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11554
11555 * par-ch2.adb: Recognize RM specially in errout
11556 Change 'R'M to RM in all error messages
11557
11558 * scng.adb: Recognize RM specially in errout
11559
11560 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11561 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11562
11563 * s-direio.adb: Add missing routine header box.
11564
11565 * sem_attr.ads: Add ??? comments
11566
11567 * sem_eval.adb: Recognize RM specially in errout
11568 Change 'R'M to RM in all error messages
11569
11570 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11571
11572 * s-tasinf.ads: Fix minor comment typo.
11573
11574 * a-cihama.adb: Minor comment addition
11575
11576 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11577 formal
11578
11579 * s-tasinf-tru64.ads: Fix minor comment typo.
11580
11581 * itypes.ads: Comment update.
11582
11583 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11584 anymore.
11585
11586 * argv.c: Added protection against null gnat_argv and gnat_envp.
11587
11588 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11589 warning message when Tolerate_Consistency_Errors is True.
11590
11591 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11592 Any_Id, as this subprogram is only applicable to *type* entities (it
11593 sets RM_Size). Instead initialize just Esize and Alignment.
11594
115952007-08-14 Bob Duff <duff@adacore.com>
11596
9e81dbc7
AS
11597 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11598 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11599 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
ab6328d0
AC
11600 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11601 a-coorse.ads (Next): Applied pragma Inline.
11602 Make all Containers packages Remote_Types (unless they are already
11603 Pure).
11604 (Previous): applied pragma Inline
11605 (Elements_Type): is now a record instead of an array
11606
116072007-08-14 Thomas Quinot <quinot@adacore.com>
11608
11609 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11610 of Set_Item.
11611 (Set_Item): When the new item is an element of the currently allocated
11612 table passed by reference, save a copy on the stack if we're going
11613 to reallocate. Also, in Table.Set_Item, make sure we test the proper
11614 variable to determine whether to call Set_Last.
11615
11616 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11617 symbols-vms.adb, symbols-processing-vms-alpha.adb,
11618 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11619 some occurrences of the pattern
11620 T.Increment_Last;
11621 T.Table (T.Last) := Value;
11622 with a cleaner call to
11623 T.Append (Value);
11624
116252007-08-14 Ed Schonberg <schonberg@adacore.com>
11626 Gary Dismukes <dismukes@adacore.com>
11627 Thomas Quinot <quinot@adacore.com>
11628
11629 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11630 derived type with interface progenitors use the analyzed formal as the
11631 parent of the actual, to create renamings for all the inherited
11632 operations in Derive_Subprograms.
11633 (Collect_Previous_Instances): new procedure within of
11634 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11635 unit being loaded, to ensure that the generation of global symbols is
11636 consistent in different compilation modes.
11637 (Is_Tagged_Ancestor): New function testing the ancestor relation that
11638 takes progenitor types into account.
11639 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11640 traversing over the primitives of the formal and actual types to locate
11641 any abstract subprograms of the actual type that correspond to a
11642 nonabstract subprogram of the formal type's ancestor type(s), and issue
11643 an error if such is found.
11644 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11645 Instantiate_Package_Body, Instantiate_Subprogram_Body):
11646 Remove bogus guard around calls to Inherit_Context.
11647 (Reset_Entity): If the entity is the selector of a selected component
11648 that denotes a named number, propagate constant-folding to the generic
11649 template only if the named number is global to the generic unit.
11650 (Set_Instance_Env): Only reset the compilation switches when compiling
11651 a predefined or internal unit.
11652
116532007-08-14 Ed Schonberg <schonberg@adacore.com>
11654
11655 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11656 parameter to determine whether operation applies to the prefix.
11657 (Complete_Object_Operation): If actual has an access type and
11658 controlling formal is not an in_parameter, reject the actual if it is
11659 an access_to_constant type.
11660 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11661 type, the candidate operations are found in the scope of declaration of
11662 the type, because the type has no primitive subprograms.
11663 (Analyze_Selected_Component): If prefix is class-wide, and root type is
11664 a private extension, only examine visible components before trying to
11665 analyze as a prefixed call.
11666 Change Entity_List to Type_To_Use, for better readability.
11667 (Has_Fixed_Op): Use base type when checking whether the type of an
11668 operator has a user-defined multiplication/division
11669 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11670 user-defined operators are available for fixed-point types.
11671
116722007-08-14 Thomas Quinot <quinot@adacore.com>
11673 Ed Schonberg <schonberg@adacore.com>
11674
11675 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11676 formal At_Any_Place indicating, when True, that we want to test for
11677 availability of the stream attribute at any place (as opposed to the
11678 current visibility context only).
11679 (Missing_Read_Write_Attributes): A stream attribute is missing for the
11680 purpose of enforcing E.2.2(8) only if it is not available at any place.
11681 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11682 when checking the legality of an extension aggregate in a preelaborable
11683 package. Treat the literal null as a valid default expression in a
11684 component declaration for a type with preelaborable initialization.
11685 A limited interface is a legal progenitor for the designated type of a
11686 remote access to class-wide type.
11687
116882007-08-14 Thomas Quinot <quinot@adacore.com>
11689 Ed Schonberg <schonberg@adacore.com>
11690
11691 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11692 reference): Use correct entity as denoted entity for the selector of
11693 the rewritten node.
11694 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11695 setting the Referenced_As_LHS flag for entities that are implicitly
11696 dereferenced.
11697 (Find_Type): If the type is an internally generated incomplete type,
11698 mark the full view as referenced, to prevent spurious warnings.
11699 (Find_Selected_Component, Has_Components): Handle properly non-limited
11700 views that are themselves incomplete types.
11701 Handle interfaces visible through limited-with clauses.
11702 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11703 subprogram generic actual for which we have generated a renaming.
11704 Warn when the renaming introduces a homonym of
11705 the renamed entity, and the renamed entity is directly visible.
11706
117072007-08-14 Ed Schonberg <schonberg@adacore.com>
11708 Hristian Kirtchev <kirtchev@adacore.com>
11709
11710 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11711 appear in the subtree to the current allocator if it is not a static
11712 coextension.
11713 (Resolve_Allocator): Perform cleanup if resolution has determined that
11714 the allocator is not a coextension.
11715 (Resolve): Skip an interpretation hidden by an abstract operator only
11716 when the type of the interpretation matches that of the context.
11717 (Resolve): When looping through all possible interpretations of a node,
11718 do not consider those that are hidden by abstract operators.
11719 (Resolve_Actuals): When verifying that an access to class-wide object
11720 is an actual for a controlling formal, ignore anonymous access to
11721 subprograms whose return type is an access to class_wide type.
11722 (Resolve_Slice): If the prefix of the slice is a selected component
11723 whose type depends on discriminants, build its actual subtype before
11724 applying range checks on the bounds of the slice.
11725 (Valid_Conversion): In an instance or inlined body, compare root types,
11726 to prevent anomalies between private and public views.
11727 (Resolve): Improve error message for ambiguous fixed multiplication
11728 expressions that involve universal_fixed multiplying operations.
11729
117302007-08-14 Javier Miranda <miranda@adacore.com>
11731 Hristian Kirtchev <kirtchev@adacore.com>
11732
11733 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11734 location to allow the correct generation of errors in case of
11735 restrictions applied to the expanded code.
11736 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11737 function if the condition does not reference them.
11738 (Expand_Entry_Body_Declarations): Mark the index constant as having a
11739 valid value.
11740
117412007-08-14 Thomas Quinot <quinot@adacore.com>
8a57e48f 11742 Pablo Oliveira <oliveira@adacore.com>
ab6328d0
AC
11743
11744 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11745 typecode parameters for a union (in a variant record), remove
11746 extraneous layer of Any wrapping for member label.
11747 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11748 elabration statements, register the package with the name server
11749 at the beginning, not at the end, of the elaboration statements so
11750 that they can create remote access to subprogram values that designate
11751 remote subprograms from the package.
11752
117532007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11754
11755 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11756 values to compute the number of seconds since the Unix Epoc in order to
11757 account for Daylight Savings Time. Perform special processing for dates
11758 that are earlier than the Unix Epoc to obtain a negative number.
11759
117602007-08-14 Emmanuel Briot <briot@adacore.com>
11761
11762 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11763 switches.
11764
117652007-08-14 Eric Botcazou <ebotcazou@adacore.com>
11766
11767 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11768 binder-generated file is not in Ada.
11769 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11770 recorded in the ALI file.
11771 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11772
117732007-08-14 Vincent Celier <celier@adacore.com>
11774
11775 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11776 (Output_Source): Do nothing if parameter is No_Sdep_Id
11777
11778 * make.adb (Gnatmake): Do not rebuild an archive simply because a
11779 shared library it imports has a later time stamp.
11780 (Check): Resolve the symbolic links in the path name of the object
11781 directory.
11782 Check that the ALI file is in the correct object directory
11783 Check if a file name does not correspond to the mapping of units
11784 to file names.
11785 (Display_Version): New procedure
11786 (Initialize): Process switches --version and --help
11787 Use type Path_Name_Type for path name
11788
117892007-08-14 Paul Hilfinger <hilfinger@adacore.com>
11790
11791 * impunit.adb: Re-organize System.Random_Numbers and
11792 GNAT.Random_Numbers and add to builds.
11793
11794 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11795
11796 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11797
11798 * a-assert.ads, a-assert.adb: New files.
11799
118002007-08-14 Gary Dismukes <dismukes@adacore.com>
11801
11802 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11803 if AAMP_On_Target is True, then the size of the type encompasses two
11804 addresses (a static link and a subprogram address), except in the case
11805 of library-level access types.
11806
118072007-08-14 Vincent Celier <celier@adacore.com>
11808
11809 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11810 writing the line.
11811 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11812 possible trailing spaces.
11813 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11814
118152007-08-14 Javier Miranda <miranda@adacore.com>
11816
11817 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11818 null-excluding access types.
11819
118202007-08-14 Javier Miranda <miranda@adacore.com>
11821
11822 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11823 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11824 of private types add missing check on matching interfaces in the
11825 partial and full declarations.
11826 (Analyze_Protected_Type): Code cleanup.
11827 (Analyze_Task_Type): Code cleanup.
11828
118292007-08-14 Javier Miranda <miranda@adacore.com>
11830
11831 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11832 generated interface thunk.
11833
118342007-08-14 Ed Schonberg <schonberg@adacore.com>
11835
11836 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11837 obsolescent warning on application of 'Class to an incomplete type.
11838
11839 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11840 prevent obsolescent warning on application of 'Class to an incomplete
11841 type.
11842
118432007-08-14 Pascal Obry <obry@adacore.com>
11844
11845 * s-fileio.adb (Is_Open): Add check for usability of the underlying
11846 file stream.
11847
118482007-08-14 Cyrille Comar <comar@adacore.com>
11849
11850 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11851 since it is potentially used in cases implying double finalization of
11852 the same object.
11853
118542007-08-14 Jose Ruiz <ruiz@adacore.com>
11855
11856 * s-tasini.adb (Get_Stack_Info): Move this function to
11857 System.Soft_Links.Tasking because it is common to the full and the
11858 restricted run times.
11859 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11860 in SSL.Tasking.Init_Tasking_Soft_Links.
11861
11862 * s-solita.adb (Get_Stack_Info): Function moved from
11863 System.Tasking.Initialization because it is common to the full and the
11864 restricted run times.
11865 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11866
118672007-08-14 Arnaud Charlet <charlet@adacore.com>
11868
11869 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11870 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11871 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11872 parameter.
11873
11874 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11875 guard to 12K.
11876
118772007-08-14 Gary Dismukes <dismukes@adacore.com>
11878
11879 * s-veboop.adb (SU): New named number initialized to
11880 System.Storage_Unit.
11881 (True_Val): The initialization expression is revised to use SU (=
11882 Storage_Unit) rather than assuming 8 for the component size of an
11883 unpacked Boolean array.
11884
118852007-08-14 Tristan Gingold <gingold@adacore.com>
11886
11887 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11888
11889 * tb-ivms.c: New file.
11890
11891 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11892
118932007-08-14 Geert Bosch <bosch@adacore.com>
11894
11895 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11896 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11897 Add required linker pragmas for automatically linking with the gnalasup
11898 linear algebra support library, and the systems math library.
11899 Rename cdot to cdotu and zdot to zdotu.
11900 Update header comment to describe purpose of package.
11901
119022007-08-14 Thomas Quinot <quinot@adacore.com>
11903
11904 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11905 an explicitly specified Associated_Final_Chain, use that list.
11906 (Expand_N_Package_Body): Build dispatch tables of library level tagged
11907 types.
11908 (Expand_N_Package_Declaration): Build dispatch tables of library level
11909 tagged types. Minor code cleanup.
11910
119112007-08-14 Vincent Celier <celier@adacore.com>
11912
11913 * gnatchop.adb (Terminate_Program): Remove exception and use
11914 Types.Terminate_Program instead.
11915
11916 * osint.ads, osint.adb (Current_Exit_Status): New global variable
11917 (Find_Program_Name): Added protection against empty name.
11918 (OS_Exit_Through_Exception): New procedure
11919
11920 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11921 (OS_Exit_Default): New procedure that contains the previous
11922 implementation of procedure OS_Exit.
11923 (Final_Value): Remove obsolete Interix stuff.
11924
119252007-08-14 Thomas Quinot <quinot@adacore.com>
11926
11927 * g-socket.ads: Reorganize example code so that it also works on
11928 Windows XP.
11929
119302007-08-14 Tristan Gingold <gingold@adacore.com>
11931
11932 * g-trasym.ads: AIX now supports symbolic backtraces.
11933
119342007-08-14 Ed Schonberg <schonberg@adacore.com>
11935
11936 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11937 units being loaded to detect circularities. A circularity may be
11938 present even if the current chain of pending units to load starts from
11939 a limited_with_clause.
11940
11941 * lib-load.ads: Change profile of Load_Unit to use a with_clause
11942 rather than a boolean flag, in order to detect circularities in
11943 with_clauses.
11944
11945 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11946 than propagating the From_Limited_With flag, in order to handle
11947 properly circularities involving with_clauses.
11948
119492007-08-14 Nicolas Setton <setton@adacore.com>
11950
11951 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11952 warnings.
11953
119542007-08-14 Arnaud Charlet <charlet@adacore.com>
11955
11956 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11957 to build for libgnala.
11958 libgnat: Add rules to build libgnala.a
11959 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11960 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11961 Add s-osinte-vxworks-kernel.adb to the target pairs of the
11962 kernel run-time lib for VxWorks 6, which would provide a different
11963 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11964 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11965 running ZCX by default.
11966 Add g-sttsne-locking to LynxOS version.
11967 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11968 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11969
11970 * system-darwin-x86.ads: New file.
11971
11972 * Make-lang.in: Delete files before copying onto them, so if they are
11973 read-only, the copy won't fail.
11974 Update dependencies
11975
119762007-08-14 Pascal Obry <obry@adacore.com>
11977
11978 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11979 naming scheme.
11980
119812007-08-14 Vincent Celier <celier@adacore.com>
11982
11983 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11984 (Gcc): Initialize Gcc_Name at the first call
11985
119862007-08-14 Ed Schonberg <schonberg@adacore.com>
11987
11988 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11989 with_clauses of the enclosing unit when analyzing the package
11990 specification of a nested instance.
11991
119922007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11993
11994 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11995 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11996 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11997 layout of N_Allocator.
11998
119992007-08-14 Thomas Quinot <quinot@adacore.com>
12000
12001 * rtsfind.adb (Check_RPC): Add PCS version check.
12002
12003 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
12004 (Gnat_Free_Software): New function.
12005
12006 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
12007 the PCS_Version value from s-parint, used to check that it is consistent
12008 with what exp_dist expects.
12009
12010 * s-parint.ads (PCS_Version): New entity for checking consistency
12011 between exp_dist and PCS.
12012
12013 * gen-soccon.c: (SO_REUSEPORT): New constant.
12014
120152007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12016
12017 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
12018 variable Sub_Second to Duration in order to accomodate a larger range
12019 of arithmetic operations.
12020
120212007-08-14 Bob Duff <duff@adacore.com>
12022
12023 * g-sttsne-locking.ads: Move comments from spec to body.
12024 * g-sttsne-locking.adb: Move comments from spec to body.
12025 * g-sttsne-vxworks.ads: Removed.
12026 * g-sttsne-vxworks.adb: Removed.
12027
4862826d
ILT
120282007-08-11 Ian Lance Taylor <iant@google.com>
12029
12030 * misc.c (gnat_get_alias_set): Change return type to
12031 alias_set_type.
12032
4d8a9bfe
KG
120332007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12034
12035 * decl.c, utils2.c: Fix whitespace in last change.
12036
39595763
KG
120372007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12038
12039 * decl.c (compare_field_bitpos): Constify.
12040 * utils2.c (compare_elmt_bitpos): Likewise.
12041
08e7e8cb
AJ
120422007-07-27 Aurelien Jarno <aurelien@aurel32.net>
12043
9e81dbc7 12044 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
08e7e8cb
AJ
12045 anonymous access type.
12046 (pthread_sigmask): Now take an access sigset_t.
12047
9e94c78f 120482007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
83983455 12049
9e81dbc7
AS
12050 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
12051
a8257e58
EB
120522007-06-21 Eric Botcazou <ebotcazou@adacore.com>
12053
12054 PR tree-optimization/25737
12055 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
12056
5be014d5
AP
120572007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
12058
12059 * trans.c (Attribute_to_gnu): When subtracting an
12060 offset from a pointer, use POINTER_PLUS_EXPR with
12061 NEGATE_EXPR instead of MINUS_EXPR.
12062 (gnat_to_gnu): Likewise.
12063 * utils.c (convert): When converting between
12064 thin pointers, use POINTER_PLUS_EXPR and sizetype
12065 for the offset.
12066 * utils2.c (known_alignment): POINTER_PLUS_EXPR
12067 have the same semantics as PLUS_EXPR for alignment.
12068 (build_binary_op): Add support for the semantics of
12069 POINTER_PLUS_EXPR's operands.
12070 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12071
719bb4e3 120722007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
b0464c88 12073
a472f546
EB
12074 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
12075 of get_signed_or_unsigned_type.
b0464c88
RE
12076 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
12077
93e17a25 120782007-06-11 Bob Duff <duff@adacore.com>
9e81dbc7 12079 Thomas Quinot <quinot@adacore.com>
93e17a25
BD
12080
12081 * g-stsifd-sockets.adb (Create): Work around strange behavior of
12082 'bind' on windows that causes 'connect' to fail intermittently, by
12083 retrying the 'bind'.
12084 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12085
1bbf8502
DS
120862007-06-10 Duncan Sands <baldrick@free.fr>
12087
12088 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12089 than to void, for the fields when making a new fat pointer type.
12090 (gnat_substitute_in_type): Now substitute_in_type.
a472f546 12091 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
1bbf8502
DS
12092 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12093 * utils.c (update_pointer_to): Update fat pointers by updating the
12094 dummy node pointers used for the fields.
12095
ec11296f
AC
120962007-06-06 Thomas Quinot <quinot@adacore.com>
12097 Bob Duff <duff@adacore.com>
12098
9e81dbc7
AS
12099 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12100 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
ec11296f
AC
12101 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
12102 constant Thread_Blocking_IO, always True by default, set False
12103 on a per-runtime basis.
12104 (Need_Netdb_Buffer): New constant.
12105
12106 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12107 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12108 files.
12109
12110 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12111 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12112 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12113 child package Task_Safe_NetDB
12114 (Host_Error_Messages): Add stub body.
12115 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12116
12117 * g-soccon-mingw.ads: Add Windows-specific constants.
12118 (Need_Netdb_Buffer): New constant.
12119 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12120 wrapper and import inet_addr(3) from the standard sockets library
12121 directly instead.
12122 (In_Addr): Add alignment clause.
12123 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12124
121252007-06-06 Robert Dewar <dewar@adacore.com>
12126
12127 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12128 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12129 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12130 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12131 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12132 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12133 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12134 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12135 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12136 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12137 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12138 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12139 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12140 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12141 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12142 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12143 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12144 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12145 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12146 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12147 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12148 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12149 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12150 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12151 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12152 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12153 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12154 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12155 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12156 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12157 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12158 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12159 Unchecked_* by Ada.Unchecked_*
12160
121612007-06-06 Robert Dewar <dewar@adacore.com>
12162
12163 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12164 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12165 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12166 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12167 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12168 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12169
12170 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12171 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12172 s-tasloc.adb, s-tasloc.ads: New files.
12173
121742007-06-06 Bob Duff <duff@adacore.com>
12175
9e81dbc7 12176 * g-expect-vms.adb:
ec11296f
AC
12177 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12178 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12179 (Send_Signal, Close): Raise Invalid_Process if the process id is
12180 invalid.
12181 (Pattern_Matcher_Access): Is now a general access type to be able to
12182 use aliased string.
12183
121842007-06-06 Thomas Quinot <quinot@adacore.com>
12185 Arnaud Charlet <charlet@adacore.com>
12186
a472f546
EB
12187 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12188 (SIGEMT is now used instead of SIGTERM on AIX).
ec11296f
AC
12189
12190 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12191 (Time_Slice_Supported): Set to True.
a472f546 12192 Use SIGEMT instead of SIGTERM as SIGADAABORT.
ec11296f
AC
12193
121942007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12195
12196 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12197 (Time, Time)): Use To_Relative_Time rather than manual calculation to
12198 express the bounds of Duration as Time. Raise Time_Error when the
12199 result is greater or equal to the higher bound of Duration (on the
12200 margin case).
12201 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12202 Ada_High_And_Leaps.
12203 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12204 Ada_High_And_Leaps.
12205 ("-" (Time, Time)): Reorder code.
12206 (All_Leap_Seconds): Removed.
12207 (Arithmetic_Operations.Add): Remove sign related kludge.
12208 (Arithmetic_Operations.Difference): Control the leaps seconds processing
12209 with flag Leap_Support.
12210 (Arithmetic_Operations.Subtract): Remove sign related kludge.
12211 (Check_Within_Time_Bounds): New procedure.
12212 (Clock): Control the leap seconds processing with flag Leap_Support.
12213 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12214 (Formatting_Operations.Split): Control the leap seconds processing with
12215 flag Leap_Support.
12216 (Formatting_Operations.Time_Of): Control the leaps seconds processing
12217 with flag Leap_Support. Adjust the year, month and day (if applicable)
12218 when the value of day seconds designates a new day.
12219 (Split): Use parameter associations for better readability. Integrate
12220 flag Is_Ada_05.
12221 (Time_Of): Use parameter associations for better readability. Integrate
12222 flag Is_Ada_05.
12223
12224 * a-calfor.adb (Split): Use parameter associations for better
12225 readability. Integrate flag Is_Ada_05.
12226 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12227 better readability. Integrate flag Is_Ada_05.
12228
122292007-06-06 Arnaud Charlet <charlet@adacore.com>
12230
9e81dbc7
AS
12231 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12232 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12233 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12234 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12235 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12236 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12237 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12238 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12239 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
ec11296f 12240 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9e81dbc7 12241 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
ec11296f
AC
12242 time when entering this routine to detect a backward clock setting
12243 (manual setting or DST adjustment), to avoid waiting for a longer delay
12244 than needed.
12245 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12246 Remove handling of deferred priority change, and replace by setting the
12247 task priority directly, as required by AI-188.
12248 Update comments.
12249 (Max_Task_Image_Length): New constant.
12250 Replace Warnings (Off) by Unreferenced pragma, cleaner.
12251 (Dynamic_Priority_Support): Removed, no longer needed.
12252 (Poll_Base_Priority_Change): Ditto.
12253 (Set_Ceiling): Add this procedure to change the ceiling priority
12254 associated to a lock. This is a dummy implementation because dynamic
12255 priority ceilings are not supported by the underlying system.
12256
12257 * a-dynpri.adb (Set_Priority): Take into account case where Target is
12258 accepting a RV with its priority boosted.
12259 Remove handling of deferred priority change, and replace by setting the
12260 task priority directly, as required by AI-188.
12261
12262 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12263 Succeeded = True.
12264 Remove handling of deferred priority change, and replace by setting the
12265 task priority directly, as required by AI-188.
12266 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12267 of Self_Id earlier.
12268
12269 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12270 (Poll_Base_Priority_Change): Removed.
12271 Code clean up: use SSL.Current_Target_Exception.
12272
12273 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12274 to run as this is a potentially dispatching point.
12275 (Call_Synchronous): Use Local_Defer_Abort.
12276 (Callable): Relax assertion.
12277 (Selective_Wait): Relax assertion in case abort is not allowed.
12278 Remove handling of deferred priority change, and replace by setting the
12279 task priority directly, as required by AI-188.
12280
12281 * s-tasuti.adb (Make_Passive): Adjust assertions.
12282 Remove handling of deferred priority change, and replace by setting the
12283 task priority directly, as required by AI-188.
12284
122852007-06-06 Arnaud Charlet <charlet@adacore.com>
12286
9e81dbc7
AS
12287 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12288 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12289 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12290 system-vxworks-mips.ads, system-vxworks-alpha.ads,
12291 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12292 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12293 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12294 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
ec11296f
AC
12295 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12296 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12297 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12298 This patch changes the largest non-binary modulus from 2**31-1 to
12299 2**32-1.
12300 (Compiler_System_Version): Removed, no longer used.
12301 Clean up system files by removing flags only used on a single target.
12302 Also remove obsolete flags, only used during bootstrap from system.ads
12303 (Address): Add a pragma Preelaborable_Initialization.
12304
12305 * system-aix.ads: Ditto.
12306 (GCC_ZCX_Support): Set to true.
12307 Update priority range on AIX and map Ada priorities to target
12308 priorities appropriately for different scheduling policies.
12309
12310 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12311
123122007-06-06 Vincent Celier <celier@adacore.com>
12313
12314 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12315 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12316
9e81dbc7
AS
12317 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12318 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12319 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12320 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
ec11296f 12321 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
a472f546
EB
12322 MLib.Tgt, containing the default versions of the exported subprograms.
12323 For each platform, create a specific version of the body of new child
12324 package MLib.Tgt.Specific that contains only the body of subprograms
12325 that are different from the default.
12326 (Archive_Builder_Append_Options): New function.
ec11296f
AC
12327
123282007-06-06 Matthew Gingell <gingell@adacore.com>
12329
a472f546
EB
12330 * s-osinte-aix.adb: Map Ada priorities to target priorities
12331 appropriately for different scheduling policies.
ec11296f
AC
12332
123332007-06-06 Arnaud Charlet <charlet@adacore.com>
12334
12335 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12336 its C counterpart.
12337 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9e81dbc7 12338 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
ec11296f
AC
12339
123402007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12341
a472f546
EB
12342 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12343 Noop on VMS, added for interface commonality.
ec11296f
AC
12344
123452007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12346 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12347 Olivier Hainque <hainque@adacore.com>
12348
12349 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12350 renamed expression of a full renaming at toplevel.
12351 (gnat_to_gnu_entity, case object): If not defining, do not look inside
12352 the values the constant is initialized to if it is an N_Allocator.
12353 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12354 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12355 (make_aligning_type): Accept an extra ROOM argument for storage to be
12356 made available before the aligned field, and an extra BASE_ALIGN
12357 argument for callers to pass the alignment guaranteed to be honored for
12358 the whole aligning object. Avoid call to finish_record_type, which only
12359 interferes with the sizes we want to set.
12360 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12361 make_aligning_type for super-aligned objects on stack.
12362 (components_to_record): Pass the adjusted size of the type when creating
12363 fields in the qualified union for the variant part.
12364 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12365 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12366 packed array type.
12367 (maybe_pad_type): Set TYPE_USER_ALIGN.
12368 (make_aligning_type): Likewise.
12369 ALIGN argument is unsigned int.
12370 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12371 (gnat_to_gnu_param): Likewise, for parameters.
12372 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12373 if it is constant and stems from a function call.
12374 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12375 of the record is specified. Adjust accordingly.
12376 (adjust_packed): New static function.
12377 (gnat_to_gnu_field): Use it to adjust the packedness setting.
12378 (components_to_record): Likewise.
12379 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12380 side-effects if the object is deemed constant.
12381 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12382 type instead of merely finalizing it. Tidy.
12383 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12384 <E_Access_Type>: Likewise.
12385 (defer_debug_incomplete_list): Rename to defer_finalize_list.
12386 (defer_debug_level): Delete.
12387 (gnat_to_gnu_entity) <debug_deferred>: Likewise
12388 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12389 type.
12390 <E_Record_Type>: Do not explicitly defer finalizing the type.
12391 Adjust for write_record_type_debug_info renaming.
12392 <E_Subprogram_Type>: Likewise.
12393 Finalize deferred types right after deferred incomplete types are
12394 expanded.
12395 (rest_of_type_decl_compilation): New global function.
12396 (components_to_record): Rename defer_debug parameter to do_not_finalize.
12397 (components_to_record): Propagate the packedness to the fields of the
12398 qualified union type if there is a variant part.
12399 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12400 instead of inline code to adjust the XUT field offsets.
12401 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12402 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12403 and write the debug info if the type derives from a discriminated one.
12404 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12405 <E_Array_Subtype>: Likewise.
12406 <E_String_Literal_Subtype>: Likewise.
12407 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12408 an alignment clause.
12409 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12410 before giving warning.
12411 (prepend_one_attribute_to): New function, helper to prepend an attribute
12412 to an attribute list.
12413 (gnat_to_gnu_entity) <E_Procedure>: Use it.
12414 (prepend_attributes): Likewise.
12415 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12416 <E_Array_Type>: Declare the padding type for the element type, if any.
12417 <E_Array_Subtype>: Likewise.
12418 (defer_limited_with): New variable.
12419 (Gigi_Equivalent_Type): New function.
12420 (gnat_to_gnu_entity): Use it at start and use result throughout.
12421 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12422 Gigi_Equivalent_Type, support Limited_With, allow two levels of
12423 indirection, precompute if unconstrained array to simplify logic, and
12424 use defer_limited_with to defer elaboration of some types from limited
12425 with.
12426 (finalize_from_with_types): New function.
12427
124282007-06-06 Gary Dismukes <dismukes@adacore.com>
12429 Eric Botcazou <ebotcazou@adacore.com>
12430 Tristan Gingold <gingold@adacore.com>
12431 Olivier Hainque <hainque@adacore.com>
12432
a472f546
EB
12433 * trans.c (Identifier_to_gnu): Change test for deferred constant by
12434 adding guard that the entity is an E_Constant before testing presence
12435 of Full_view (and remove unnecessary test that entity is not a type).
ec11296f
AC
12436 For a CONST_DECL used by reference, manually retrieve
12437 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
12438 (struct language_function): Move from utils.c to here.
12439 (struct parm_attr): New structure.
12440 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12441 (f_parm_attr_cache): New macro.
12442 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12443 expressions for the 'First, 'Last and 'Length attributes of the
12444 unconstrained array IN parameters.
12445 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12446 Allocate the information structure for the function earlier, as well
12447 as the language-specific part.
12448 If the parameter attributes cache has been populated, evaluate the
12449 cached expressions on entry.
12450 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
12451 N_Procedure_Call_Statement and N_Indexed_Component.
12452 (Pragma_to_gnu): Translate inspection_point to an asm statement
12453 containaing a comment and a reference to the object (either its address
12454 for BLKmode or its value).
12455 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12456 to go to DECL_INITIAL. Together with the size constraint relaxation
12457 in create_var_decl, enlarges the set of situations in which an
12458 identifier may be used as an initializer without implying elaboration
12459 code.
12460 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12461 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12462 node.
12463 (maybe_stabilize_reference): Remove lvalues_only parameter.
12464 (gnat_stabilize_reference): Adjust for above change.
12465 (gnat_to_gnu): Do not set location information on the result
12466 if it is a reference.
12467 (add_cleanup): Add gnat_node parameter and set the location of the
12468 cleanup to it.
12469 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12470 (Exception_Handler_to_gnu_zcx): Likewise.
12471 (gigi): Remove the cgraph node if the elaboration procedure is empty.
12472 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12473 the former right after the latter.
12474 (start_stmt_group): Make global.
12475 (end_stmt_group): Likewise.
12476 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12477 vars.
12478 (gnu_program_error_label_stack): Likewise.
12479 (gigi): Initialize them.
12480 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12481 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12482 New cases.
12483 (push_exception_label_stack): New function.
12484 (takes_address): New function.
12485
12486 * utils.c (struct language_function): Move to trans.c from here.
12487 (unchecked_convert): Do not wrap up integer constants in
12488 VIEW_CONVERT_EXPRs.
12489 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12490 the latter for aggregate types, unexpected by later passes, and relax an
12491 arbitrary size constraint on the former.
12492 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12493 to compare the sizes.
12494 (convert_vms_descriptor): When converting to a fat pointer type, be
12495 prepared for a S descriptor at runtime in spite of a SB specification.
12496 (shift_unc_components_for_thin_pointers): New function.
12497 (write_record_type_debug_info): For variable-sized fields, cap the
12498 alignment of the pointer to the computed alignment.
12499 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12500 If REP_LEVEL is 2, do not compute the sizes.
12501 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12502 (build_unc_object_type): Likewise.
12503 (declare_debug_type): New function.
12504
9e81dbc7 12505 * ada-tree.def: USE_STMT: removed (not emitted anymore).
ec11296f 12506
9e81dbc7
AS
12507 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12508 no statement is expandable anymore.
12509 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12510 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12511 when the user requested it explicitely.
12512 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12513 to 0 for Ada.
12514 (get_alias_set): Return alias set 0 for a type if
12515 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
ec11296f 12516
9e81dbc7
AS
12517 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12518 (DECL_FUNCTION_STUB): New accessor macro.
12519 (SET_DECL_FUNCTION_STUB): New setter macro.
ec11296f 12520
9e81dbc7 12521 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
ec11296f
AC
12522
12523 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12524 declarations.
12525
125262007-06-06 Jose Ruiz <ruiz@adacore.com>
12527
12528 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12529 Rename to Abort_Task_Interrupt to be able to keep the same interface
12530 as the rest of the targets.
12531
12532 * s-osinte-vxworks.ads s-osinte-vxworks.adb
12533 (To_VxWorks_Priority): Remove explicit "in" mode indicator
12534
12535 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12536 New files.
12537
125382007-06-06 Robert Dewar <dewar@adacore.com>
12539
12540 * a-chahan.ads: Remove obsolescent pragmas
12541
12542 * a-chlat1.ads: Minor reformatting
12543
125442007-06-06 Robert Dewar <dewar@adacore.com>
12545
12546 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12547 for Errout
12548
12549 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12550 implementation
12551
12552 * errout.ads (Finalize): Changed interface
12553 (Output_Messages): New procedure
12554 (Compilation_Errors): New Interface
12555
12556 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12557 Finalize/Output_Messages interface for Errout
12558 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12559 Errout.
12560
125612007-06-06 Thomas Quinot <quinot@adacore.com>
12562 Olivier Hainque <hainque@adacore.com>
12563 Robert Dewar <dewar@adacore.com>
12564
12565 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12566 check.
12567 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12568 propagation starts, to let debuggers know about the event in a reliable
12569 fashion.
12570 (Local_Raise): Moved to System.Exceptions
12571 More convenient to have this as a separate unit
12572
12573 * s-except.adb, s-except.ads: New files.
12574
12575 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12576 Debug_Unhandled_Exception in System.Exceptions where it belongs
12577 together with a couple of other debug helpers.
12578 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12579 the former Unhandled_Exception.
12580
12581 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12582 (Warn_No_Exception_Propagation): New procedure
12583 (Warn_If_No_Propagation): Rewritten for new warning generation
12584 (Expand_Exception_Handlers): New warning generation
12585 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12586 (Add_Exception_Label): Use Special_Exception_Package_Used for test
12587 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12588 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12589 even if restriction is set (makes life easier in Check_Returns)
12590 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12591 checking exception identities.
12592 (Expand_Local_Exception_Handlers): Do not optimize when all others case
12593 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12594 block for handler (used by Check_Returns)
12595 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12596 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12597 remove all exception handlers when optimizing local raise statements.
12598 (Find_Local_Handler): Use Get_Renamed_Entity
12599 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12600 marked analyzed after expanding exception handlers, do not generate
12601 redundant cleanup actions, because they have been constructed already.
12602
126032007-06-06 Thomas Quinot <quinot@adacore.com>
12604
12605 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12606 presence of this categorization pragma is mandated by the language.
12607 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12608 for this type.
12609
126102007-06-06 Vincent Celier <celier@adacore.com>
12611 Robert Dewar <dewar@adacore.com>
12612
9e81dbc7
AS
12613 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12614 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12615 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12616 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12617 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12618 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12619 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12620 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12621 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12622 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
ec11296f 12623 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
9e81dbc7 12624 ali.ads, ali.adb:
ec11296f
AC
12625 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12626 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12627 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12628 Use variables of types File_Name_Type and Unit_Name_Type in error
12629 messages.
12630 (Get_Name): Add parameter Ignore_Special, and set it reading file name
12631 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12632 here.
12633 Define flags Flag217-Flag230 with associated subprograms
12634 (Flag_Word5): New record type.
12635 (Flag_Word5_Ptr): New access type.
12636 (To_Flag_Word5): New unchecked conversion.
12637 (To_Flag_Word5_Ptr): Likewise.
12638 (Flag216): New function.
12639 (Set_Flag216): New procedure.
12640
126412007-06-06 Arnaud Charlet <charlet@adacore.com>
12642
12643 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12644 instead of 'Size.
12645
12646 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12647
126482007-06-06 Javier Miranda <miranda@adacore.com>
12649
12650 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12651 the package.
12652 (Object_Specific_Data_Array): This is now internal to the package.
12653 (Object_Specific_Data): This is now internal to the package.
12654 (Select_Specific_Data_Element): This is now internal to the package.
12655 (Select_Specific_Data_Array): This is now internal to the package.
12656 (Select_Specific_Data): This is now internal to the package.
12657 (Offset_To_Top_Function_Ptr): This is now public.
12658 (To_Offset_To_Top_Function_Ptr): Removed.
12659 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12660 local to subprogram Offset_To_Top.
12661 (Predefined_DT): Removed.
12662 (Typeinfo_Ptr): Removed.
12663 (OSD): This function is now internal to this package.
12664 (SSD): This function is now internal to this package.
12665 (DT): New function that displaces the pointer to the table of primitives
12666 to get access to the enclosing wrapper record.
12667 (IW_Membership): Code cleanup.
12668 (Offset_To_Top): Code cleanup.
12669 (Predefined_DT): Removed.
12670 (Register_Interface_Tag): Removed.
12671 (Set_Interface_Table): Removed.
12672 (Set_Offset_Index): Removed.
12673 (Set_Offset_To_Top): Code cleanup.
12674 (Set_OSD): Removed.
12675 (Set_Signature): Removed.
12676 (Set_SSD): Removed.
12677 (Set_Tagged_Kind): Removed.
12678 (Typeinfo_Ptr): Removed.
12679 (TSD): Removed.
12680 (Displace): Add missing check on null actual.
12681
12682 * exp_disp.ads, exp_disp.adb
12683 (Select_Expansion_Utilities): Removed.
12684 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12685 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12686 the interface requires a new parameter.
12687 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12688 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12689 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12690 Done to remove package Select_Expansion_Utilities.
12691 (Make_DT): New implementation for statically allocated dispatch tables.
12692 (Make_Secondary_DT): Moved to the scope of Make_DT.
12693 (Register_Primitive): Code cleanup plus incoporate the use of the new
12694 function DT_Address_Attribute.
12695 (Expand_Interface_Thunk): The profile of this subprogram has been
12696 changed to return the Thunk_Id and the corresponding code.
12697 (Fill_DT_Entry): Removed. Its functionality is now provided by
12698 subprogram Register_Primitive.
12699 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12700 subprogram Register_Primitive.
12701 (Register_Primitive): New subprogram that incorporates the previous
12702 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12703 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12704 was only required to call Make_DT_Access_Action, which is now removed.
12705 (Ada_Actions): Removed
12706 (Action_Is_Proc): Removed
12707 (Action_Nb_Arg): Removed
12708 Replace all the calls to Make_DT_Access_Action by direct calls to
12709 Make_Procedure_Call_Statement or Make_Function_Call.
12710 (Set_DTC_Entity_Value): New subprogram.
12711 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12712 (Expand_Interface_Thunk): Add missing support for primitives that are
12713 functions with a controlling result (case in which there is no need
12714 to generate the thunk).
12715
12716 * exp_atag.ads, exp_atag.adb
12717 (Build_DT): New subprogram that displaces the pointer to reference the
12718 base of the wrapper record.
12719 (Build_Typeinfo_Offset): Removed.
12720 (RTE_Tag_Node): Removed.
12721 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12722 (Build_Get_RC_Offset): Removed.
12723 (Build_Inherit_Predefined_Prims): Removed.
12724 (Build_Inherit_TSD: Removed.
12725 (Build_New_TSD): Removed.
12726 (Build_Set_External_Tag): Removed.
12727 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12728 (Build_Set_Prim_Op_Address): Add documentation.
12729 (Build_Set_TSD): Removed.
12730
12731 * rtsfind.ads, rtsfind.adb
12732 (Load_Fail): If load fails and we are not in configurable run-time
12733 mode, then raise Unrecoverable_Error.
12734 (Text_IO_Kludge): Generate an error message if a run-time library is
12735 not available in a given run-time (ie. zfp run-time).
12736 (RTE_Record_Component): Add code to check that the component we search
12737 for is not found in two records in the given run-time package.
12738 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12739 (RE_DT_Predef_Prims_Offset): New entity
12740 (RE_Static_Offset_To_Top): New entity
12741 (RE_HT_Link): New entity.
12742 (System_Address_Image): Addition of this run-time package.
12743 (RE_Address_Image): New entity.
12744 (RE_Abstract_Interface): Removed.
12745 (RE_Default_Prim_Op_Count): Removed.
12746 (RE_DT_Entry_Size): Removed.
12747 (RE_DT_Min_Prologue_Size): Removed.
12748 (RE_DT_Prologue_Size): Removed.
12749 (RE_Ifaces_Table_Ptr): Removed.
12750 (RE_Interface_Data_Ptr): Removed.
12751 (RE_Type_Specific_Data): Removed.
12752 (RE_Primary_DT): Removed.
12753 (RE_Register_Interface_Tag): Removed.
12754 (RE_Set_Offset_Index): Removed.
12755 (RE_Set_OSD): Removed.
12756 (RE_Set_SSD): Removed.
12757 (RE_Set_Signature): Removed.
12758 (RE_Set_Tagged_Kind): Removed.
12759 (RE_Address_Array): New entity.
12760 (RE_DT): New entity.
12761 (RE_Iface_Tag): New entity.
12762 (RE_Interfaces_Table): New entity.
12763 (RE_No_Dispatch_Table): New entity.
12764 (RE_NDT_Prims_Ptr): New entity.
12765 (RE_NDT_TSD): New entity.
12766 (RE_Num_Prims): New entity.
12767 (RE_Offset_To_Top_Function_Ptr): New entity.
12768 (RE_OSD_Table): New entity.
12769 (RE_OSD_Num_Prims): New entity.
12770 (RE_Predef_Prims): New entity
12771 (RE_Predef_Prims_Table_Ptr): New entity.
12772 (RE_Primary_DT): New entity.
12773 (RE_Signature): New entity.
12774 (RE_SSD): New entity.
12775 (RE_TSD): New entity.
12776 (RE_Type_Specific_Data): New entity.
12777 (RE_Tag_Kind): New entity.
12778
127792007-06-06 Thomas Quinot <quinot@adacore.com>
12780
12781 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12782 C imported variable.
12783 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12784 on entry.
12785
127862007-06-06 Robert Dewar <dewar@adacore.com>
12787
12788 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12789 character
12790
127912007-06-06 Vincent Celier <celier@adacore.com>
12792
12793 * a-tifiio.adb (Put, internal): For negative numbers, check that there
12794 is room for at least one digit and the minus sign.
12795 (Put.Put_Character): Never put a character outside of the range of
12796 string To.
12797
127982007-06-06 Olivier Hainque <hainque@adacore.com>
12799 Eric Botcazou <ebotcazou@adacore.com>
12800
12801 * utils2.c (build_allocator): Provide the extra arguments to
12802 make_aligning_type for super-aligned objects allocated from the default
12803 pool. Leave enough room for a pointer before the aligning field, and
12804 store the system's allocator return value there.
12805 (build_call_alloc_dealloc): When releasing a super-aligned object,
12806 retrieve the system's allocator return value from where build_allocator
12807 has stored it, just ahead of the adjusted address we are passed.
12808 (build_call_raise): Handle properly the generation of line numbers when
12809 the node is marked No_Location.
12810 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
12811 by using DECL_UID on ties.
12812 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12813 main variant.
12814 (build_call_raise): Handle converting exception into goto; support new
12815 argument KIND.
12816 (build_component_ref): Add new arg to build_call_raise.
12817
128182007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12819
12820 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12821 "." in the case of nnn.xxx when nnn terminates with an underscore.
12822 Parse the remaining "#" or ":" in the case of nnn#.xxx#
12823
128242007-06-06 Robert Dewar <dewar@adacore.com>
12825
12826 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12827
128282007-06-06 Arnaud Charlet <charlet@adacore.com>
12829 Vincent Celier <celier@adacore.com>
12830 Robert Dewar <dewar@adacore.com>
12831
12832 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12833 needed.
12834 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12835 ((destructor)) for adafinal, even when switch -a is used.
12836 Do not issue pragma Linker_Destructor for adafinal when switch -a is
12837 used.
12838 (Gen_Object_Files_Options): Add formatting of Linker Options, when
12839 Output_Linker_Option_List is set. Suppress this formatting when
12840 Zero_Formatting is set.
12841 Add case for CLI_Target.
12842 (System_Restrictions_Used): New flag, used to avoid generating with of
12843 System_Restrictions and initialization of the data unless there is
12844 some use of System.Restrictions in the partition.
12845 (Check_System_Restrictions_Used): New procedure
12846
9e81dbc7 12847 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
ec11296f
AC
12848 since we only with this unit in the binder file if it is used elsewhere
12849 in the partition.
12850
128512007-06-06 Vincent Celier <celier@adacore.com>
12852
12853 * bindusg.adb: Add line for @<response file>
12854 Add lines for new switches -R and -Z
12855
12856 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12857 hierarchy in the list of files of the closure when -R is used
12858 (Gnatbind): Accept arguments starting with '@' to indicate response
12859 files and take the arguments from the response files.
12860 If List_Closure is set, display the referenced files
12861
128622007-06-06 Javier Miranda <miranda@adacore.com>
12863 Robert Dewar <dewar@adacore.com>
12864 Ed Schonberg <schonberg@adacore.com>
12865
12866 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12867 which the address-clause is applied to in-mode actuals (allowed by
12868 13.1(22)).
12869 (Apply_Discriminant_Check): Do not generate a check if the type is
12870 constrained by a current instance.
12871 (Activate_Division_Check): New procedure
12872 (Activate_Overflow_Check): New procedure
12873 (Activate_Range_Check): New procedure
12874 Call these new Activate procedures instead of setting flags directly
12875 (Apply_Array_Size_Check): Removed, no longer needed.
12876 Code clean up: remove obsolete code related to GCC 2.
12877 (Get_E_Length): Protect against bomb in case scope is standard
12878 (Selected_Range_Checks): If the node to be checked is a conversion to
12879 an unconstrained array type, and the expression is a slice, use the
12880 bounds of the slice to construct the required constraint checks.
12881 Improve NOT NULL error messages
12882 (Apply_Constraint_Check): If the context is a null-excluding access
12883 type, diagnose properly the literal null.
12884
128852007-06-06 Pascal Obry <obry@adacore.com>
12886
12887 * clean.adb (Clean_Archive): Use untouched casing for the archive name
12888 and the corresponding .deps file.
12889 (Clean_Interface_Copy_Directory): Use untouched casing for the library
12890 src directory. Minor code-clean-up. Use untouched casing for files
12891 read into the library src dir.
12892 (Clean_Library_Directory): Idem.
12893 (Parse_Cmd_Line): Accept new switch -aP
12894
128952007-06-06 Javier Miranda <miranda@adacore.com>
12896 Ed Schonberg <schonberg@adacore.com>
12897 Robert Dewar <dewar@adacore.com>
12898 Eric Botcazou <ebotcazou@adacore.com>
12899 Arnaud Charlet <charlet@adacore.com>
12900
12901 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12902 applicable to types that have the With_Type flag set. Returns the
12903 non-limited view of the type, if available, otherwise the type itself.
12904 For class-wide types, there is no direct link in the tree, so we have
12905 to retrieve the class-wide type of the non-limited view of the Etype.
12906 New attributes Static_Initialization and Static_Elaboration_Desired.
12907 Remove the pragma Thread_Body, and the associated flag
12908 Is_Thread_Body in entities, and all related code.
12909 (Suppress_Value_Tracking_On_Call): New flag
12910 E_Exception has Esize and Alignment fields
12911 (Universal_Aliasing): New function.
12912 (Set_Universal_Aliasing): New procedure.
12913 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12914 (Check_Nested_Access): New procedure.
12915 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12916 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12917 (Related_Interface): New attribute. Present in dispatch table pointer
12918 components of records. Set to point to the entity of the corresponding
12919 interface type.
12920 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12921 (Original_Access_Type): Remove, not needed.
12922 (Root_Type): Handle properly subtypes of class-wide-types.
12923 Update comments.
12924
12925 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12926 class-wide types visible through limited-with clauses.
12927 (Try_Primitive_Operation): When examining all primitive operations of a
12928 tagged type, do not consider subprograms labeled as hidden unless they
12929 belong to a private generic type with a tagged parent.
12930 (Try_Object_Operation): Extensive rewriting, to handle properly various
12931 overloading cases, when several ancestors may have class-wide operations
12932 that are possible candidates, and when the overloaded functions return
12933 array types and have defaulted parameters so that the call may be
12934 interpreted as an indexing.
12935 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12936 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12937 successive actuals before analyzing the call itself.
12938 (Try_Primitive_Operation): A primitive operation is compatible with the
12939 prefix if the prefix has a synchronized type and the type of the formal
12940 is its corresponding record, as can be the case when the primitive
12941 operation is declared outside of the body of the type.
12942 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12943 perform homonym traversal, looking for class-wide operation matches
12944 (formerly done in statements of Try_Class_Wide_Operation). Matches on
12945 access parameters are now restricted to anonymous access types.
12946 (Mark_Allocator): An allocator with a discriminant association parent is
12947 a coextension.
12948 (Try_One_Prefix_Interpretation): If the type of the object is
12949 incomplete, as can be happen when it is a limited view obtained through
12950 a limited_with_clause, the selected component is not part of a prefixed
12951 call.
12952 (Complete_Object_Operation): Diagnose properly an object that is not
12953 aliased when the corresponding controlling formal is an access
12954 parameter.
12955 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12956 ambiguous calls in prefixed notation, where two primitives differ only
12957 in that the controlling argument of one is an access parameter.
12958
12959 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12960 whether a function that returns an unconstrained type can be inlined.
12961 (Process_Formals): Diagnose properly the illegal use of an incomplete
12962 type in the profile of an access_to_subprogram declaration.
12963 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12964 operations are attached to the corresponding record.
12965 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12966 When processing a primitive of a concurrent type which implements an
12967 interface change the type of all controlling formals to that of the
12968 corresponding record type.
12969 (Check_Synchronized_Overriding): Relax the conditional logic when trying
12970 to determine the tagged type to which a primitive belongs.
12971 (Check_Conventions): Capture condition to ignore a primitive operation
12972 (which is shared between the loop in Check_Conventions and the one in
12973 Check_Convention) in a new local function Skip_Check.
12974 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12975 confusion with Check_Conventions' own Prim_Op local variable.
12976 (Create_Extra_Formals): Test for a tagged result type rather than a
12977 controlling result when determining whether to add a BIP_Alloc_Form
12978 formal and a BIP_Final_List formal to the function.
12979 (Check_Conformance); For parameters that are anonymous access types,
12980 subtype conformance requires that the not null and the constant
12981 indicators must match
12982 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12983 to retrieve the appropriate type when processing a concurrent type
12984 declared within a generic. Minor comment reformatting. Change invocation
12985 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12986 mitive.
12987 (Analyze_Subprogram_Body): If the return type of a function is an
12988 anonymous access to the limited view of a class-wide type, and the
12989 non-limited view of the type is available, update the type of the
12990 function so that code can be generated.
12991 (Process_Formals): In case of access-subtype itype whose designated
12992 type is also an itype (situation that happens now with access to
12993 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12994 attribute to avoid backend problems.
12995 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12996 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12997 anonymous types' designated types are same before testing
12998 Subtypes_Statically_Match.
12999 (Create_Extra_Formals): Test for a named access parameter that is a
13000 controlling formal as an additional condition for adding an
13001 accessibility level formal. This can occur in the subp type created for
13002 dispatching calls in Expand_Dispatching_Call, and allows calling
13003 Create_Extra_Formals from that procedure rather than special-casing the
13004 extra formals there.
13005 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
13006 when the function has a controlling result.
13007 (Check_Returns): Add much more knowledge of the optimization of local
13008 raise statements to gotos, to retain proper warnings in this case.
13009 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
13010 nodes when looking for last statement.
13011
13012 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
13013 class-wide types visible through limited with clauses.
13014 (Add_One_Interp): If the operands are anonymous access types, the
13015 predefined operator on universal_access is immediately visibles
13016 (Find_Unique_Type): Handle anonymous access to subprogram types just as
13017 other anonymous access types.
13018 (Disambiguate): Take into account CIL convention.
13019 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
13020
130212007-06-06 Robert Dewar <dewar@adacore.com>
13022
13023 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
13024 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
13025 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
13026 Fix lower bound of tables.
13027 Add rep clauses.
13028
13029 * nlists.adb: Ditto.
13030 (Prev_Node, Next_Node): Change index type to Int so that it properly
13031 covers the range First_Node_Id - 1 up.
13032
130332007-06-06 Javier Miranda <miranda@adacore.com>
13034 Ed Schonberg <schonberg@adacore.com>
13035 Bob Duff <duff@adacore.com>
13036 Hristian Kirtchev <kirtchev@adacore.com>
13037
9e81dbc7 13038 * exp_aggr.ads, exp_aggr.adb:
ec11296f
AC
13039 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
13040 in extension aggregates.
13041 (Flatten): Other conditions being met, an aggregate is static if the
13042 low bound given by component associations is different from the low
13043 bound of the base index type.
13044 (Packed_Array_Aggregate_Handled): If the component type is itself a
13045 packed array or record, the front-end must expand into assignments.
13046 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
13047 Init_Pr, instead of Ancestor_Is_Expression.
13048 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
13049 coextension chain root, either generate a list controller or use the
13050 already existing one.
13051 (Static_Array_Aggregate): New procedure to construct a positional
13052 aggregate that can be handled by the backend, when all bounds and
13053 components are compile-time known constants.
13054 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
13055 types covering interface types into assignments.
13056 (Replace_Type): move to Build_Record_Aggr_Code.
13057 (Expand_Record_Aggr_Code): if the target of the aggregate is an
13058 interface type, convert to the definite type of the aggregate itself,
13059 so that needed components are visible.
13060 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
13061 components and the context is an extended return statement do not
13062 create a transient block for it, to prevent premature finalization
13063 before the return is executed.
13064 (Gen_Assign): Do not generate a call to deep adjust routine if the
13065 component type is itself an array of controlled (sub)-components
13066 initialized with an inner aggregate.
13067 (Component_Check): New name for Static_Check. This name is now more
13068 appropriate, and documentation is added which was missing.
13069 (Component_Check): Add test for bit aligned component value
13070 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
13071 Tagged_Comps, name is more appropriate given added function below.
13072 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
13073
130742007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13075 Javier Miranda <miranda@adacore.com>
13076 Robert Dewar <dewar@adacore.com>
13077
13078 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
13079 Terminated: Add unchecked type conversion from System.Address to
13080 System.Tasking.Task_Id when calling the predefined primitive
13081 _disp_get_task_id.
13082 Disable new Ada 05 accessibility check for JVM.NET targets, which
13083 cannot be implemented in a practical way.
13084 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13085 the sources always references the tag of the actual object. Therefore,
13086 if 'Tag is applied in the sources to class-wide interface objects we
13087 generate code that displaces "this" to reference the base of the object.
13088 (Expand_N_Attribute_Reference, case Size): Return specified size if
13089 known to front end.
13090 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13091 has code that displaces the pointer of the object to manage interface
13092 types. However this code must not be executed when the prefix is a
13093 subprogram. This bug caused the wrong expansion of the internally
13094 generated assignment that fills the dispatch table when the primitive
13095 is a function returning a class-wide interface type.
13096 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13097 Set_Attribute_Name for Name_Unaligned_Valid.
13098
130992007-06-06 Ed Schonberg <schonberg@adacore.com>
13100 Gary Dismukes <dismukes@adacore.com>
13101
13102 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13103 If the initialization is the equivalent aggregate of the initialization
13104 procedure of the type, do not remove it.
13105 (Expand_N_Attribute_Definition_Clause): Exclude access variables
13106 initialized to null from having their expression reset to empty and
13107 note this exception in the comment.
13108
131092007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13110 Robert Dewar <dewar@adacore.com>
13111 Ed Schonberg <schonberg@adacore.com>
13112 Gary Dismukes <dismukes@adacore.com>
13113
13114 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13115 Add "with" and "use" clauses for Sem_Attr.
13116 (Expand_Current_Value): Do not replace occurences of attribute
13117 references where the prefix must be a simple name.
13118
13119 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13120 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13121 Attribute_Requires_Simple_Name_Prefix.
13122 (Name_Modifies_Prefix): Body of new function.
13123 (Requires_Simple_Name_Prefix): Body of new function.
13124 (Resolve_Attribute, case Access): Improve error message for case of
13125 mismatched conventions.
13126 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13127 incomplete type.
13128 (Analyze_Attribute, case 'Access): If the type of the prefix is a
13129 constrained subtype for a nominal unconstrained type, use its base type
13130 to check for conformance with the context.
13131 (Resolve_Attribute): Remove test of the access type being associated
13132 with a return statement from condition for performing accessibility
13133 checks on access attributes, since this case is now captured by
13134 Is_Local_Anonymous_Access.
13135 (Analyze_Access_Attribute): Set Address_Taken on entity
13136 (Analyze_Attribute, case Address): Set Address_Taken on entity
13137 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13138 validating an access attribute whose prefix is a current instance.
13139 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13140 applied to dispatching operations, if freezing is required then we set
13141 the attribute Has_Delayed_Freeze in the prefix's entity.
13142 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13143 current scope if access of local subprogram taken
13144 (Analyze_Access_Attribute): Check legality of self-reference even if the
13145 expression comes from source, as when a single component association in
13146 an aggregate has a box association.
13147 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13148 the prefix if it is a protected operation and the attribute is
13149 Unrestricted_Access.
13150 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13151 reference to the base type of the context, to force a constraint check
13152 when the context is an access subtype with an explicit constraint.
13153 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13154 node is rewritten as an interface conversion. leave unanalyzed after
13155 resolution, to ensure that type checking against the context will take
13156 place.
13157
131582007-06-06 Ed Schonberg <schonberg@adacore.com>
13159 Javier Miranda <miranda@adacore.com>
13160 Robert Dewar <dewar@adacore.com>
13161
13162 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13163 wrapper when the full view of the controlling type of an inherited
13164 function that dispatches on result implements interfaces.
13165 (Expand_N_Object_Declaration): In cases where the type of the
13166 declaration is anonymous access, create finalization list for it.
13167 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13168 if the object has no explicit initialization, to match description of
13169 functionality of pragam Persistent_BSS.
13170 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13171 new function to build static aggregates, to replace initialization call
13172 when static initialization is desired.
13173 (Freeze_Type): Generate a list controller for an access type whenever
13174 its designated type has controlled anonymous access discriminants.
13175 (Build_Equivalent_Aggregate): New procedure to compute a static
13176 aggregate to be used as default initialization for composite types,
13177 instead of a generating a call to the initialization procedure for the
13178 type.
13179 (Build_Initialization_Call): When available, replace a call to the
13180 initialization procedure with a copy of the equivalent static aggregate
13181 for the type.
13182 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
13183 declarations for objects of a class-wide interface type, rather than
13184 just identifiers, to prevent visibility problems.
13185 (Expand_N_Object_Declaration): When expanding the declaration for an
13186 object of a class-wide interface type, preserve the homonym chain of
13187 the original entity before exchanging it with that of the generated
13188 renaming declaration.
13189 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13190 active, because there is no way to handle the exception.
13191 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13192 to do a minimum decoration of the Access_Disp_Table list.
13193 (Expand_Record_Controller): Avoid the addition of the controller between
13194 the component containing the tag of a secondary dispatch table and its
13195 adjacent component that stores the offset to the base of the object.
13196 This latter component is only generated when the parent type has
13197 discriminants ---documented in Add_Interface_Tag_Components).
13198 (Apply_Array_Size_Check): Removed, no longer needed.
13199 (Expand_N_Full_Type_Declaration): If the type has anonymous access
13200 components, create a Master_Entity for it only if it contains tasks.
13201 (Build_Init_Procedure): Suppress the tag assignment compiling under
13202 no run-time mode.
13203 (Freeze_Record_Type): Remove code associated with creation of dispatch
13204 table.
13205 (Init_Secondary_Tags): Update type of actuals when generating calls to
13206 Ada.Tags.Set_Offset_To_Top
13207 (Stream_Operation_OK): Disable use of streams compiling under no
13208 run-time mode
13209 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13210 if Has_Init_Expression set.
13211 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13212 Register_Primitive, which provides the same functionality.
13213 (Requires_Init_Proc): Return false in case of interface types.
13214 (Add_Secondary_Tables): Use the new attribute Related_Interface to
13215 cleanup the code.
13216 (Predefined_Primitive_Freeze): Do not assume that an internal entity
13217 is always associated with a predefined primitive because the internal
13218 entities associated with interface types are not predefined primitives.
13219 Therefore, the call to Is_Internal is replaced by a call to the
13220 function Is_Predefined_Dispatching_Operation.
13221 (Make_Eq_If): When generating the list of comparisons for the
13222 components of a given variant, omit the controller component that is
13223 present if the variant has controlled components.
13224
132252007-06-06 Javier Miranda <miranda@adacore.com>
13226 Hristian Kirtchev <kirtchev@adacore.com>
13227 Bob Duff <duff@adacore.com>
13228
13229 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13230 handle the creation of finalization lists and calls for nested
13231 coextensions when the root of the chains is part of a return statement.
13232 (Inside_A_Return_Statement): New function inside Complete_Coextension_
13233 Finalization.
13234 (Expand_Record_Equality): Skip components that are interface types.
13235 (Displace_Allocator_Pointer): Add missing support for interface subtypes
13236 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13237 with Rewrite_Coextension. Change the condition for detecting coextension
13238 root nodes.
13239 (Is_Local_Access_Discriminant): Removed.
13240 (Rewrite_Coextension): New routine which rewrites a static coextension
13241 as a temporary and uses its unrestricted access in the construction of
13242 the outer object.
13243 (Complete_Coextension_Finalization): New routine. Generate finalization
13244 attachment calls to all delayed coextensions.
13245 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13246 the allocator is not a coextension itself and has delayed coextensions.
13247 If the current allocator is controlled, but also a coextension, delay
13248 the generation of the finalization attachment call.
13249 Rename local variable "Node" to "Nod" in order to avoid confusion with
13250 "Elists.Node".
13251 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13252 limited types that are not inherently limited. Such an allocator is
13253 illegal, but is generated by the expander for a return statement, to
13254 copy the result onto the secondary stack. This is the only case where a
13255 limited object can be copied. Generate code to displace the pointer
13256 to the object if the qualified expression is a class-wide interface
13257 object. Such displacement was missing and hence the copy of the object
13258 was wrong.
13259 (Apply_Accessibility_Check): Handle allocated objects initialized in
13260 place.
13261 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13262 and Expand_Allocator_Expression. Allocating class-wide interface objects
13263 this routine displaces the pointer to the allocated object to reference
13264 the component referencing the corresponding secondary dispatch table.
13265 Expand_Allocator_Expression): Add missing support to allocate class-wide
13266 interface objects initialized with a qualified expression.
13267 (Get_Allocator_Final_List): Test for an anonymous access type that is a
13268 function result type, and use the finalization list associated with the
13269 function scope in that case (such an anonymous type should not be
13270 treated like an access parameter's type).
13271
132722007-06-06 Ed Schonberg <schonberg@adacore.com>
13273 Gary Dismukes <dismukes@adacore.com>
13274 Javier Miranda <miranda@adacore.com>
13275
13276 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13277 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13278 required exception handler.
13279 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13280 properly the case of a function whose return type is a limited
13281 class-wide interface type. Modify the code of the accessibility
13282 check to handle class-wide interface objects. In this case we need to
13283 displace "this" to reference the primary dispatch table to get access
13284 to the TSD of the object (to evaluate its accessibility level).
13285 (Expand_N_Extended_Return_Statement): Test for a tagged result type
13286 rather than a controlling result as one of the conditions for
13287 generating tests of the implicit BIP_Alloc_Form formal. The
13288 initialization assignment is also handled according to whether the
13289 result is tagged instead of controlling.
13290 In the case where the init assignment is inserted in the "then" part of
13291 the allocation conditional, rewrite the target to be a dereference of
13292 the implicit BIP_Object_Access formal.
13293 If the returned value is unconstrained and created on the secondary
13294 stack, mark the enclosing block and function so that the secondary
13295 stack is not reclaimed on return.
13296 Treat returns from functions with controlling results similarly to
13297 returns from functions with unconstrained result subtypes.
13298 If the object returned is unconstrained, and an allocator must be
13299 created for it, analyze the allocator once the block for the extended
13300 return is installed, to ensure that finalizable components
13301 of the expression use the proper finalization list. Guard the call to
13302 Move_Final_List with a check that there is something to finalize.
13303 (Make_Tag_Ctrl_Assignment): Use "old" handling
13304 of controlled type assignment for virtual machines, since new code uses
13305 unsupported features (such as direct access to bytes in memory).
13306
133072007-06-06 Gary Dismukes <dismukes@adacore.com>
13308 Ed Schonberg <schonberg@adacore.com>
13309
13310 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13311 accessibility actual, check for the case of an aliased object that has
13312 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13313 we fall into processing for the attribute rather than the name of the
13314 object.
13315 (Expand_Inline_Call): If an actual is a literal, and the corresponding
13316 formal has its address taken in the body, create a temporary to capture
13317 value. If the return type is a limited interface, do not treat the
13318 return value as Controlled.
13319 (Is_In_Place_Function): If the return type is a limited interface,
13320 treat as returning in place. The actual returned object may not always
13321 be limited, but the caller has to assume that it is returned in place.
13322 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13323 context of an allocator, use the correct finalization chain (that is,
13324 the chain belonging to the access type, rather than the chain belonging
13325 to the current scope).
13326 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13327 result type rather than a controlling result as a precondition for
13328 adding an allocation form actual to a build-in-place call.
13329 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13330 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13331 primitive in the dispatch tables. This work is now done by Make_DT when
13332 the type is frozen.
13333 (Register_Predefined_DT_Entry): Removed.
13334 (Add_Return): If end label is not present, use sloc of last statement
13335 for generated return statement in procedure, for better gdb behavior
13336 on expanded code.
13337 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13338 object address nodes to ensure proper processing by routines like
13339 Insert_After*.
13340 (Expand_Call): Fix generation of validity check for parameter
13341 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13342 the allocation form parameter if the result subtype is constrained,
13343 except when the function has a controlling result.
13344 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13345 rather than Is_Controlled and Has_Controlled_Component, since we want to
13346 include class-wide result types in this treatment. Also test for a
13347 controlling result, since that also requires passing a finalization
13348 list.
13349 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13350 even when the result subtype is constrained, to handle calls involving
13351 controlling results.
13352 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13353 is now called even when the result subtype is constrained, to handle
13354 calls involving controlling results.
13355 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13356 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13357 now performs the test).
13358 (Make_Build_In_Place_Call_In_Object_Declaration):
13359 Add_Alloc_Form_Actual_* is now called even when the result subtype is
13360 constrained, to handle calls involving controlling results.
13361 (Add_Return): Accomodate rewritten pattern from local raise to goto
13362 transformation, so that we still recognize an transfer statement
13363 and do the right thing here in that case.
13364 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13365 and end of subprogram code.
13366 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13367 support for primitives that are functions (without formals) with a
13368 controlling result.
13369 (Inherited_From_Formal): If the actual subtype has not generic parent
13370 type, it is not an actual for a formal derived type, and there is no
13371 operation to inherit from the formal.
13372
133732007-06-06 Ed Schonberg <schonberg@adacore.com>
13374 Thomas Quinot <quinot@adacore.com>
13375
13376 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13377 inserted cleanup code appropriately for GDB use.
13378 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13379 exception handler for Deep_Adjust or Deep_Finalize.
13380 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13381 Raise_From_Controlled_Operation is available, use a call to that
13382 subprogram instead of a plain "raise Program_Error" node to raise
13383 Program_Error if an exception is propagated from an Adjust or Finalize
13384 operation.
13385 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13386 appears in the optional statement list of a triggering alternative, the
13387 scope actions can be inserted directly there, and not in the list that
13388 includes the asynchronous select itself.
13389
133902007-06-06 Ed Schonberg <schonberg@adacore.com>
13391 Robert Dewar <dewar@adacore.com>
13392 Hristian Kirtchev <kirtchev@adacore.com>
13393
13394 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13395 generated exception handler appropriately when debugging generated code.
13396 Deal properly with No_Exception_Propagation restriction mode.
13397 (Expand_N_Abort_Statement): Add an unchecked type conversion from
13398 System.Address to System.Tasking.Task_Id when processing the result of
13399 the predefined primitive _disp_get_task_id.
13400 (Expand_N_Asynchronous_Select): Clarify comment.
13401 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13402 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13403 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13404 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13405 privals and for generated call to Complete_Entry_Body, for better gdb
13406 behavior.
13407 (Copy_Result_Type): Utility to construct a parameter and result profile
13408 for protected functions whose return type is an anonymous access to
13409 subprogram.
13410 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13411 call the above.
13412 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13413 point when the local-raise-to-goto transformation has taken place.
13414
134152007-06-06 Javier Miranda <miranda@adacore.com>
13416 Nicolas Setton <setton@adacore.com>
13417
13418 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13419 functionality when the backend is generating code.
13420 Otherwise any serious error
13421 reported by the backend calling the frontend routine Error_Msg
13422 changes the Compilation_Mode to Check_Semantics, disables the
13423 functionality of this routine and causes the generation of
13424 spureous additional errors.
13425
13426 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13427 debugging information now generated by the compiler for fat-pointer
13428 types.
13429 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13430 DWARF2/3.
13431 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13432
134332007-06-06 Thomas Quinot <quinot@adacore.com>
13434
13435 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13436 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13437 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13438 For a remote call to a function with a classwide return type, apply an
13439 E.4(18) check to the returned value.
13440 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13441 stream attributes of the designated type of an RACW, as they are not
13442 dispatching primitive operations.
13443
134442007-06-06 Geert Bosch <bosch@adacore.com>
13445
13446 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13447 negative literal
13448 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13449 positive
13450 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13451 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13452 positive
13453 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13454
134552007-06-06 Javier Miranda <miranda@adacore.com>
13456
13457 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13458 attribute compiling package Ada.Tags under No_Run_Time_Mode.
13459
134602007-06-06 Javier Miranda <miranda@adacore.com>
13461
13462 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13463 deallocation of class-wide interface objects.
13464 (Expand_Dispatching_Constructor_Call): Take into account that if the
13465 result of the dispatching constructor is an interface type, the
13466 function returns a class-wide interface type; otherwise the returned
13467 object would be actual. The frontend previously accepted returning
13468 interface types because Expand_Interface_Actuals silently performed
13469 the management of the returned type "as if" it were a class-wide
13470 interface type.
13471 (Expand_Dispatching_Constructor_Call): Replace call to
13472 Make_DT_Access_Action by direct call to Make_Function_Call.
13473
134742007-06-06 Robert Dewar <dewar@adacore.com>
13475 Ed Schonberg <schonberg@adacore.com>
13476
13477 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13478 compute masking constant, since we now set Esize properly to the
13479 underlying size.
13480 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13481 to match the alignment.
13482 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13483 packed arrays of 8 bits or less.
13484
13485 * freeze.adb (Freeze_Entity): When freezing the formals of a
13486 subprogram, freeze the designated type of a parameter of an access type
13487 only if it is an access parameter.
13488 Increase size of C convention enumeration object
13489 (Freeze_Entity, array type case): Make sure Esize value is properly
13490 adjusted for the alignment if it is known.
13491 (Freeze_Entity, array type case): When checking bit packed arrays for
13492 the size being incorrect, check RM_Size, not Esize.
13493 (Freeze_Record_Type): Check for bad discriminated record convention
13494 (In_Exp_Body): Return true if the body is generated for a subprogram
13495 renaming, either an attribute renaming or a renaming as body.
13496 (Check_Itype): If the designated type of an anonymous access component
13497 is a non-protected subprogram type, indicate that it is frozen, to
13498 prevent out-of-scope freeze node at some subsequent call.
13499 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13500 only if the subprogram is neither imported nor exported, as well as the
13501 NCA descriptor class if the subprogram is exported.
13502
135032007-06-06 Ed Schonberg <schonberg@adacore.com>
13504 Arnaud Charlet <charlet@adacore.com>
13505 Robert Dewar <dewar@adacore.com>
13506 Gary Dismukes <dismukes@adacore.com>
13507
13508 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13509 default initialization on an imported object, when there is no
13510 initialization call generated for it.
13511 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13512 restriction
13513
13514 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13515 Static_Elaboration_Desired.
13516 Remove pragma Thread_Body.
13517 Implement a new pragma No_Body
13518 Removes the Explicit_Overriding pragma
13519 Remove Optional_Overriding pragma
13520 (Prag): Deal with Universal_Aliasing.
13521 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13522 Pragma_CIL_Constructor): New names.
13523
13524 * sem_cat.adb (Validate_Object_Declaration): An initialization that
13525 uses the equivalent aggregate of a type must be treated as an implicit
13526 initialization.
13527 (Get_Categorization): Check a unit for pragma Preelaborate only if it
13528 has none of the other categories.
13529 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13530 to apply Import to an object renaming declaration.
13531
13532 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13533 from a C++ class should be declared as limited and that it will be
13534 considererd limited.
13535 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13536 should be declared as limited and that it will be considererd limited.
13537 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13538 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13539 (Analyze_Pragma): Deal with Universal_Aliasing.
13540 (Sig_Flags): Likewise.
13541 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13542 (Overflow_Checks_Unsuppressed): New flag.
13543 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13544 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13545 case of JVM or .NET targets, and compiling user code.
13546 Add debugging convenience routine rv
13547
135482007-06-06 Robert Dewar <dewar@adacore.com>
13549
13550 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13551 are interface type.
13552 (Build_Elementary_Input_Call): For floating-point use right type in the
13553 absence of strange size or stream size clauses.
13554 (Build_Elementary_Write_Call): Same fix
13555 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13556 set to value that does not match base type size.
13557
135582007-06-06 Ed Schonberg <schonberg@adacore.com>
13559
13560 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13561 object of a limited type can be initialized with a call to a function
13562 that returns in place. If the limited type has unknown discriminants,
13563 and the underlying type is a constrained composite type, build an actual
13564 subtype from the function call, as is done for private types.
13565 (Side_Effect_Free): An expression that is the renaming of an object or
13566 whose prefix is the renaming of a object, is not side-effect free
13567 because it may be assigned through the renaming and its value must be
13568 captured in a temporary.
13569 (Has_Controlled_Coextensions): New routine.
13570 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13571 as is done for other limited types.
13572 (Non_Limited_Designated_Type): new predicate.
13573 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13574 objects.
13575 Remove all handling of with_type clauses.
13576
9e81dbc7 13577 * par-ch10.adb: Remove all handling of with_type clauses.
ec11296f
AC
13578
13579 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13580 checksum if the main source could not be parsed.
13581 (Loat_Unit): When processing a child unit, determine properly whether
13582 the parent unit is a renaming when the parent is itself a child unit.
13583 Remove handling of with_type clauses.
13584
13585 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13586 (Set_Is_Static_Coextension): New procedure.
13587 (Has_Local_Raise): New function
13588 (Set_Has_Local_Raise): New procedure
13589 (Renaming_Exception): New field
13590 (Has_Init_Expression): New flag
13591 (Delay_Finalize_Attach): Remove because flag is obsolete.
13592 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13593 Remove all handling of with_type clauses.
13594 (Exception_Junk): Can now be set in N_Block_Statement
13595
135962007-06-06 Vincent Celier <celier@adacore.com>
13597 Robert Dewar <dewar@adacore.com>
13598
13599 * frontend.adb (Frontend): Return immediately if the main source could
13600 not be parsed, because of preprocessing errors.
13601
13602 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13603 (Gnat1drv): Exit with errors if the main source could not be parsed,
13604 because of preprocessing errors.
13605 (Check_Rep_Info): New procedure
13606
136072007-06-06 Robert Dewar <dewar@adacore.com>
13608
13609 * g-hesorg.ads, g-heasor.ads,
13610 g-busorg.ads, g-bubsor.ads: Update documentation
13611 GNAT.Heap/Bubble_Sort_G is now pure
13612
136132007-06-06 Robert Dewar <dewar@adacore.com>
13614
13615 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13616
136172007-06-06 Robert Dewar <dewar@adacore.com>
13618 Ed Schonberg <schonberg@adacore.com>
13619
9e81dbc7 13620 * g-comlin.ads, g-comlin.adb:
ec11296f
AC
13621 Add new warning for renaming of function return objects
13622
13623 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13624 (Tree_Read): Use size of object instead of type'object_size, since the
13625 latter is incorrect for packed array types.
13626 (Tree_Write): Same fix
13627
13628 * opt.ads: Add new warning for renaming of function return objects
13629 (Generating_Code): New boolean variable used to indicate that the
13630 frontend as finished its work and has called the backend to process
13631 the tree and generate the object file.
13632 (GCC_Version): Is now private
13633 (Static_Dispatch_Tables): New constant declaration.
13634 (Overflow_Checks_Unsuppressed): New flag.
13635 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13636 (List_Closure): New flag for gnatbind (-R)
13637 Zero_Formatting: New flag for gnatbind (-Z)
13638 (Special_Exception_Package_Used): New flag.
13639 (Warn_On_Unrepped_Components): New flag.
13640
13641 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13642 unit is a compilation unit, rather than relying on its scope, so that
13643 Standard can be renamed.
13644 (Analyze_Object_Renaming): Add new warning for renaming of function
13645 return objects.
13646 Also reject attempt to rename function return object in Ada 83 mode.
13647 (Attribute_Renaming): In case of tagged types, add the body of the
13648 generated function to the freezing actions of the type.
13649 (Find_Type): A protected type is visible right after the reserved word
13650 "is" is encountered in its type declaration. Set the entity and type
13651 rather than emitting an error message.
13652 (New_Scope): Properly propagate Discard_Names to inner scopes
13653 (Check_Nested_Access): New procedure.
13654 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13655 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13656
13657 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13658 Add new warning for renaming of function return objects
13659 (Check_References): Suppress warnings for objects whose type or
13660 base type has Warnings suppressed.
13661 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13662 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13663
136642007-06-06 Vincent Celier <celier@adacore.com>
13665 Emmanuel Briot <briot@adacore.com>
13666 Olivier Hainque <hainque@adacore.com>
13667
13668 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13669 absolute value of Header.Block_Size when displaying the freed physical
13670 memory in traces.
13671 (Allocate): Compute Storage_Address using Integer_Address, not
13672 Storage_Offset, because the range of Storage_Offset may not be large
13673 enough.
13674 (Configure): New parameter Low_Level_Traces
13675 (Allocate, Deallocation, Free_Physically): Added low-level traces
13676 (Configure): new parameter Errors_To_Stdout.
13677 (Output_File): new subprogram
13678 (Deallocate, Dereference): Send error messages to the proper stream
13679 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13680 documented. Previous code would send it to the current output file
13681 defined in GNAT.IO, which might not be stdout
13682 (Is_Valid): Adjust comment to mention that a positive reply means that
13683 Header_Of may be used to retrieve the allocation header associated with
13684 the subprogram Storage address argument. Return False early if this
13685 address argument is misaligned.
13686
136872007-06-06 Vincent Celier <celier@adacore.com>
13688
13689 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13690 switch -P
13691 (ASIS_Main): New global variable
13692 (Get_Closure): New procedure
13693 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13694 check, metric or pretty. Call Get_Closure in this case.
13695 (Check_Files): For GNAT LIST, check all sources of all projects when
13696 All_Projects is True.
13697 (GNATCmd): Accept -U for GNAT LIST
13698
136992007-06-06 Vincent Celier <celier@adacore.com>
13700
13701 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13702 has been specified
13703 Correct error message when invocation of the linker fails
13704 Add explicit size clause for the C imported variables
13705 Object_List_File_Supported and Using_GNU_Linker to emphasize that
13706 we expect char size.
13707 Read target parameters earlier, since this is needed to set
13708 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13709 targets.
13710
137112007-06-06 Vincent Celier <celier@adacore.com>
13712
9e81dbc7 13713 * gnatls.adb:
ec11296f
AC
13714 Add 3 spaces before the default project directory when displaying
13715 the project search path.
13716 Add new command line switch '-l' to display license information.
13717
137182007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13719
13720 * gmem.c: Add support for timestamps on memory operations.
13721
13722 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13723 operations (not used currently, just foundation for future
13724 enhancements). Add possibility to perform full dump of gmem.out file.
13725 (Print_Back_Traces): Declare accesses to root arrays constants since
13726 they aren't modified.
13727 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13728
137292007-06-06 Vincent Celier <celier@adacore.com>
13730
13731 * gnatsym.adb: Update Copyright notice
13732 (Parse_Cmd_Line): Accept new switch -D
13733 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13734 file.
13735
13736 * prj.ads (Policy): New policy Direct
13737 (Yes_No_Unknown): New enumeration type
13738 (Project_Data): New component Libgnarl_Needed
13739
13740 * prj-nmsc.adb (Check_For_Source): When recording a source file make
13741 use the untouched pathname casing.
13742 (Get_Directories): Ensure that the Display_Exec_Directory is using the
13743 proper casing on non case-sensitive platforms like Windows.
13744 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13745 on all platforms, as it is not possible to know which one is allowed
13746 before processing the project files.
13747 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13748 specified when symbol policy is Direct. Check that when there is a
13749 symbol file defined (either by default or with attribute
13750 Library_Symbol_File) it is not the same as the reference symbol file.
13751 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13752 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13753 extending projects.
13754 (Record_Ada_Source): Record a source that has been locally removed in an
13755 imported project.
13756
13757 * symbols.ads (Policy): New policy Direct
13758
13759 * symbols-vms.adb (Initialize): Take new policy Direct in case
13760 statement
13761
137622007-06-06 Vincent Celier <celier@adacore.com>
13763
13764 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13765 Correct obvious bug (return Dir; instead of return Directory;).
13766 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13767
137682007-06-06 Thomas Quinot <quinot@adacore.com>
13769
13770 * g-pehage.adb (Produce): Open output files in Binary mode, so that
13771 they have UNIX line endings (LF only) even on Windows, and thus pass
13772 all GNAT style checks.
13773
137742007-06-06 Emmanuel Briot <briot@adacore.com>
13775
13776 * g-regpat.adb (Quote): Fix improper quoting of '.'
13777
137782007-06-06 Thomas Quinot <quinot@adacore.com>
13779
13780 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13781 default, set False on a per-runtime basis.
13782 (Need_Netdb_Buffer): New constant.
13783
13784 * g-socket.ads, g-socket.adb: Import new package
13785 GNAT.Sockets.Thin.Task_Safe_NetDB.
13786 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13787 binding to obtain proper message.
13788 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13789 Replace various occurrences of Arry (Arry'First)'Address with the
13790 equivalent Arry'Address (GNAT always follows implementation advice from
13791 13.3(14)).
13792 (Get_Host_By_Address, Get_Host_By_Name,
13793 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13794 instead, rely on platform-specific task safe netdb operations provided
13795 by g-socthi.
13796
13797 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13798 parameter Process_Blocking_IO.
13799 (Host_Error_Messages): Add stub body.
13800 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13801 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13802 Safe_Getservbyport): Move functions into new child package
13803 Task_Safe_NetDB.
13804 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13805 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13806 (In_Addr): Add alignment clause.
13807
138082007-06-06 Robert Dewar <dewar@adacore.com>
13809
13810 * g-trasym.ads, g-traceb.ads: Update list of supported targets
13811 Add note about symbolic traceback
13812
138132007-06-06 Pascal Obry <obry@adacore.com>
13814
13815 * hostparm.ads (Normalized_CWD): Use the host directory separator
13816 instead of the hardcoded forward slash which is not the proper
13817 character on Windows for example.
13818 (Java_VM): Removed.
13819
138202007-06-06 Vincent Celier <celier@adacore.com>
13821 Arnaud Charlet <charlet@adacore.com>
13822
13823 * a-clrefi.adb, a-clrefi.ads: New files
13824
13825 * impunit.adb: Add s-os_lib in the list of user visible units.
13826 (Non_Imp_File_Names_95): Add a-clrefi to this list
13827 Remove obsolete run-time entries.
13828 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13829 "a-exetim" -- Ada.Execution_Time
13830 "a-extiti" -- Ada.Execution_Time.Timers
13831
13832 * mlib-prj.ads, mlib-prj.adb
13833 (Build_Library): Use untouched object dir and library dir. At the
13834 same time makes sure that the checks are done using the canonical
13835 form. Removes hard-coded directory separator and use the proper host
13836 one instead.
13837 (Process_Project): Do not look in object directory to check if libgnarl
13838 is needed for a library, if there is no object directory.
13839 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13840 linking.
13841 (Build_Library): When invoking gnatbind, use a response file if the
13842 total size of the arguments is too large.
13843
13844 * Makefile.rtl: (g-sttsne): New object file.
13845 Add entry for a-clrefi, s-utf_32, System.Exceptions
13846
13847 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13848 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13849 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13850 Change g-string to s-string, g-os_lib to s-os_lib
13851 Change all g-utf_32 references to s-utf_32
13852
138532007-06-06 Tristan Gingold <gingold@adacore.com>
13854 Olivier Hainque <hainque@adacore.com>
13855
13856 * init.c: Do not adjust IP of an imported VMS exception of ia64.
13857 LIB$STOP is called to raise an exception and the IP of the exception
13858 is the instruction right after the call.
13859 (__gnat_adjust_context_for_raise, AIX): Implement.
13860 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13861 adjust_context_for_raise before Raise_From_Signal_Hanler.
13862 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13863 siginfo is passed to the handler, necessary to let the zcx propagation
13864 engine unwind past it.
13865
138662007-06-06 Olivier Hainque <hainque@adacore.com>
13867
13868 * initialize.c (__gnat_initialize for vxworks): Update documentation
13869 on the ZCX support, using different sets of crtstuff objects than with
13870 GCC 3.4.
13871
138722007-06-06 Robert Dewar <dewar@adacore.com>
13873
13874 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13875 spec from body
13876 (Layout_Type): Fix recomputation of size from alignment.
13877
138782007-06-06 Ed Schonberg <schonberg@adacore.com>
13879 Javier Miranda <miranda@adacore.com>
13880
13881 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13882 association in an instance.
13883 (Copy_Generic_Node): If the node is a string literal, no need to copy
13884 its descendants.
13885 (Is_Generic_Formal): For a formal subprogram, the declaration is the
13886 grandparent of the entity.
13887 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13888 to simplify handling of formal interfaces that derive from other formal
13889 interfaces.
13890 (Instantiate_Subprogram_Body): The defining unit name of the body of
13891 the instance should be a defining identifier.
13892 (Install_Formal_Packages): make global to the package, for use in
13893 instantiations of child units.
13894 (Analyze_Package_Instantiation): Do not attempt to set information on an
13895 enclosing master of an entry when expansion is disabled.
13896 (Instantiate_Type): If the actual is a tagged synchronized type and the
13897 generic ancestor is an interface, create a generic actual for the
13898 corresponding record.
13899 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13900 declaration, to ensure that the interface list is processed correctly.
13901 (Inline_Instance_Body): If enclosing scope is an instance body, remove
13902 its entities from visibiility as well.
13903 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
13904 given with a named association, analyze the expression only, not the
13905 discriminant association itself.
13906 (Reset_Entity): If the analysis of a selected component is transformed
13907 into an expanded name in the prefix of a call with parameters, do not
13908 transform the original node into an expanded name, to prevent visibility
13909 errors in the case of nested generics.
13910 (Check_Private_View): For an array type, check whether the index types
13911 may need exchanging.
13912
139132007-06-06 Arnaud Charlet <charlet@adacore.com>
13914 Vincent Celier <celier@adacore.com>
13915
13916 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13917 since both are separated.
13918 Add support for imported CIL packages.
13919 Add further special handling of "value_type" for CIL.
13920 Add special handling of pragma Import for CIL.
13921
13922 * make.ads, make.adb: When switch -eS is used, direct all outputs to
13923 standard output instead of standard error, except errors.
13924 (Absolute_Path): Use untouched casing for the parent directory.
13925 (Add_Library_Search_Dir): Use the untouched directory name.
13926 (Add_Source_Search_Dir): Idem.
13927 (Change_To_Object_Directory): Update output to use proper casing.
13928 (Create_Binder_Mapping_File): Use the untouched filename to set
13929 ALI_Name.
13930 (Gnatmake): Use untouched library and executable directory names.
13931 (Insert_Project_Sources): Use untouched filename for spec and body.
13932 (Is_In_Object_Directory): Use untouched object directory.
13933 (Mark_Directory): Idem.
13934 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13935 contains the non-canonical filename in all cases.
13936 (Change_To_Object_Directory): In verbose mode, display the name of the
13937 object directory we're changing to.
13938 (Compile_Sources): Make sure, when a project file is used, to compile
13939 the body of the unit, when there is one, even when only the spec is
13940 recorded in an ALI file.
13941 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13942 spec to the body.
13943 (Report_Compilation_Failed): New procedure
13944 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13945 procedures moved from the spec to the body.
13946 (Extract_Failure): Removed, not used
13947 Replace explicit raises of exception Bind_Failed and Link_Failed with
13948 calls to Make_Failed with the proper message.
13949 Replace explicit raises of exception Compilation_Failed with calls to
13950 procedure Report_Compilation_Failed.
13951 (Initialize): Create mapping files unconditionally when using project
13952 files.
13953
13954 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13955 Pragma_CIL_Constructor): New names.
13956
13957 * targparm.ads, targparm.adb
13958 (Compiler_System_Version): Removed, no longer used.
13959 (Get_Target_Parameters): Relax checks on system.ads validity. Add
13960 handling of two new system flags: JVM and CLI.
13961
139622007-06-06 Jose Ruiz <ruiz@adacore.com>
13963 Arnaud Charlet <charlet@adacore.com>
13964
13965 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13966 time, use the default s-interr body that provides interrupt support
13967 based on signals.
13968 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13969 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13970 g-soccon.ads, and s-taprop.adb for the marte run time.
13971 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13972 timers are supported on marte.
13973 (EH_MECHANISM for marte): Do not use ZCX.
13974 (THREADSLIB for marte): Use -lmarte.
13975 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13976 Add mlib-tgt-specific.o to gnatmake objects
13977 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13978 longer of MLib.Tgt.
13979 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13980 6, either kernel or rtp, use a specialized version of s-osinte.ads.
13981
139822007-06-06 Pascal Obry <obry@adacore.com>
13983
13984 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13985
139862007-06-06 Vincent Celier <celier@adacore.com>
13987
13988 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13989 separator, use instead the proper host directory separator.
13990 (Copy_ALI_Files): Make sure that an already existing ALI file in the
13991 ALI copy dir is writable, before doing the copy.
13992
9e81dbc7 13993 * mlib-utl.ads, mlib-utl.adb:
ec11296f
AC
13994 (Gcc): If length of command line is too long, put the list of object
13995 files in a response file, if this is supported by the platform.
13996 (Ar): If invocation of the archive builder is allowed to be done in
13997 chunks and building it in one shot would go above an OS dependent
13998 limit on the number of characters on the command line, build the archive
13999 in chunks.
14000
140012007-06-06 Vincent Celier <celier@adacore.com>
14002
14003 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
14004 of specified object file is not equal to base name of source.
14005
140062007-06-06 Javier Miranda <miranda@adacore.com>
14007 Hristian Kirtchev <kirtchev@adacore.com>
14008 Ed Schonberg <schonberg@adacore.com>
14009
14010 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
14011 the full type declaration.
14012 (Analyze_Component_Declaration): Add local variable E to capture the
14013 initialization expression of the declaration. Replace the occurences of
14014 Expression (N) with E.
14015 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
14016 limited interface object with a function call.
14017 (Array_Type_Declaration): If the declaration lacks subtype marks for
14018 indices, create a simple index list to prevent cascaded errors.
14019 (Is_Null_Extension): Ignore internal components created for secondary
14020 tags when checking whether a record extension is a null extension.
14021 (Check_Abstract_Interfaces): Add missing support for interface subtypes
14022 and generic formals.
14023 (Derived_Type_Declaration): Add missing support for interface subtypes
14024 and generic formals.
14025 (Analyze_Object_Declaration): If an initialization expression is
14026 present, traverse its subtree and mark all allocators as static
14027 coextensions.
14028 (Add_Interface_Tag_Component): When looking for components that may be
14029 secondary tags, ignore pragmas that can appear within a record
14030 declaration.
14031 (Check_Abstract_Overriding): an inherited function that dispatches on
14032 result does not need to be overriden if the controlling type is a null
14033 extension.
14034 (Mentions_T): Handle properly a 'class attribute in an anonymous access
14035 component declaration, when the prefix is an expanded name.
14036 (Inherit_Component): If the derivation is for a private extension,
14037 inherited components remain visible and their ekind should not be set
14038 to Void.
14039 (Find_Type_Of_Object): In the case of an access definition, always set
14040 Is_Local_Anonymous_Access. We were previously not marking the anonymous
14041 access type of a return object as a local anonymous type.
14042 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
14043 range with character literal bounds.
14044 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
14045 (Access_Subprogram_Declaration): Indicate that the type declaration
14046 depends on an incomplete type only if the incomplete type is declared
14047 in an open scope.
14048 (Analyze_Subtype_Declaration): Handle properly subtypes of
14049 synchronized types that are tagged, and that may appear as generic
14050 actuals.
14051 (Access_Subprogram_Declaration): An anonymous access to subprogram can
14052 appear as an access discriminant in a private type declaration.
14053 (Add_Interface_Tag_Components): Complete decoration of the component
14054 containing the tag of a secondary dispatch table and the component
14055 containing the offset to the base of the object (this latter component
14056 is only generated when the parent type has discriminants --as documented
14057 in this routine).
14058 (Inherit_Components): Use the new decoration of the tag components to
14059 improve the condition that avoids inheriting the components associated
14060 with secondary tags of the parent.
14061 (Build_Discriminanted_Subtype): Indicate to the backend that the
14062 size of record types associated with dispatch tables is known at
14063 compile time.
14064 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
14065 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
14066 to include task, protected, and synchronized interfaces as limited
14067 interfaces.
14068 (Process_Discriminants): Remove the setting of
14069 Is_Local_Anonymous_Access on the type of (anonymous) access
14070 discriminants of nonlimited types.
14071 (Analyze_Interface_Type_Declaration): Complete the decoration of the
14072 class-wide entity it is is already present. This situation occurs if
14073 the limited-view has been previously built.
14074 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
14075 field.
14076 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
14077 Related_Interface.
14078
140792007-06-06 Ed Schonberg <schonberg@adacore.com>
14080
14081 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
14082 of the type that specify the position of interface tags when the type
14083 inherits discriminated array components from the parent type.
14084 If a component is initialized with a box, check for the presence of a
14085 default expression in its declaration before using its default
14086 initialization procedure.
14087 (Resolve_Record_Aggregate): If a component is box-initialized, and the
14088 component type has a discriminants, create a partial aggregate for it
14089 by copying the discriminants of the component subtype.
14090 Reject attempt to initialize a discriminant with a box.
14091 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14092 associated with dispatch tables is known at compile time.
14093 (Get_Value): If an association in a record aggregate has a box
14094 association, and the corresponding record component has a default
14095 expression, always copy the default expression, even when the
14096 association has a single choice, in order to create a proper
14097 association for the expanded aggregate.
14098
140992007-06-06 Ed Schonberg <schonberg@adacore.com>
14100 Robert Dewar <dewar@adacore.com>
14101
14102 * par-ch12.adb (P_Generic_Associations): The source position of an
14103 Others association is that of the others keyword, not that of the token
14104 that follows the box.
14105 (P_Formal_Type_Definition): Handle formal access types that carry a
14106 not null indicator.
14107
14108 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14109 multiple identifier are present, save Scan_State before scanning the
14110 colon, to ensure that separate trees are constructed for each
14111 declaration.
14112 (P_Identifier_Declarations): For object declaration, set new flag
14113 Has_Init_Expression if initialization expression present.
14114 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14115 Improve NOT NULL error messages
14116
141172007-06-06 Robert Dewar <dewar@adacore.com>
14118
14119 * par-ch4.adb: (P_Name): Recover from literal used as name
14120
141212007-06-06 Vincent Celier <celier@adacore.com>
14122
14123 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14124 defaulted to False.
14125 In the "not" case, recursive call with Complemented set to True.
14126 Do not allow "or" or "and" operators when Complemented is True.
14127
141282007-06-06 Vincent Celier <celier@adacore.com>
14129
14130 * prj.adb (Project_Empty): Gives default value for new component
14131 Libgnarl_Needed
14132
14133 * prj-attr.ads: Minor reformatting
14134
14135 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14136 directory using the untouched casing.
14137 (For_All_Source_Dirs): Idem.
14138
14139 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14140 directories specified with switches -aP.
14141 (Add_Search_Project_Directory): New procedure
14142 (Initialize_Project_Path): Put the directories in table
14143 Search_Directories in the project search path.
14144 (Initialize_Project_Path): For VMS, transform into canonical form the
14145 project path.
14146
141472007-06-06 Arnaud Charlet <charlet@adacore.com>
14148
14149 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14150 true if configurable run-time or No_Run_Time is set.
14151 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14152 processing an unit which is not the one being compiled.
14153
141542007-06-06 Arnaud Charlet <charlet@adacore.com>
14155
14156 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14157 Replace UC by Ada.UC
14158
14159 * s-bitops.adb: Get rid of System.Pure_Exceptions.
14160 Replace UC by Ada.UC
14161
141622007-06-06 Robert Dewar <dewar@adacore.com>
14163
14164 * scng.adb: (Check_End_Of_Line): Deal with very long lines
14165
141662007-06-06 Robert Dewar <dewar@adacore.com>
14167
14168 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14169 Remove no longer used nodes.
14170
141712007-06-06 Javier Miranda <miranda@adacore.com>
14172 Ed Schonberg <schonberg@adacore.com>
14173 Robert Dewar <dewar@adacore.com>
14174
14175 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14176 on obsolescent withed unit in case of limited-withed units.
14177 (Analyze_Compilation_Unit): Add guard to code that removed an
14178 instantiation from visibility, to prevent compiler aborts when
14179 instantiation is abandoned early on.
14180 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14181 current unit being analyzed, and Distinguish local incomplete types
14182 from limited views of types declared elsewhere.
14183 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14184 to state that the class-wide entity is shared by the limited-view
14185 and the full-view.
14186 (Analyze_With_Clause): Improve placement of flag for case of
14187 unimplemented unit.
14188 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14189 manner similar to GNAT.Current_Exception. This is a violation of
14190 restriction (No_Exception_Propagation), and also inhibits the
14191 optimization of local raise to goto.
14192 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14193 and if so set Most_Recent_Exception_Used flag in Opt, and also check
14194 for violation of restriction No_Exception_Propagation.
14195
141962007-06-06 Javier Miranda <miranda@adacore.com>
14197 Hristian Kirtchev <kirtchev@adacore.com>
14198 Gary Dismukes <dismukes@adacore.com>
14199
14200 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14201 use of entity Exception_Occurrence if it is not available in the
14202 target run-time.
14203
14204 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14205 concurrent types are declared within an Ada 2005 generic, build their
14206 corresponding record types since they are needed for overriding-related
14207 semantic checks.
14208 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14209 protected type does not implement a task interface or a nonlimited
14210 interface.
14211 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14212 type does not implement a protected interface or a nonlimited interface.
14213 (Single_Task_Declaration, Single_Protected_Declaration): use original
14214 entity for variable declaration, to ensure that debugging information
14215 is correcty generated.
14216 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14217 routines if the expander is not active.
14218 (Analyze_Task_Body): Mark all handlers to stop optimization of local
14219 raise, since special things happen for task exception handlers.
14220
14221 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14222 concurrent types declared within a generic.
14223 (Check_Dispatching_Operation): Do not emit warning about late interface
14224 operations in the context of an instance.
14225 (Check_Dispatching_Call): Remove restriction against calling a
14226 dispatching operation with a limited controlling result.
14227 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14228 Register_Interface_DT_Entry by calls to Register_Primitive.
14229 (Check_Dispatching_Formals): Handle properly a function with a
14230 controlling access result.
14231
142322007-06-06 Robert Dewar <dewar@adacore.com>
14233 Arnaud Charlet <charlet@adacore.com>
14234
14235 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14236 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14237 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14238 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14239 message when using a VM, since this attribute is not supported.
14240 (Analyze_Record_Representation_Clause): Give unrepped component warnings
14241
14242 * usage.adb: Add new warning for renaming of function return objects
14243 Indicate that -gnatwp and -gnatwP concern front-end inlining
14244 Add line for -gnatyg
14245 Add usage information for -gnatw.c/C
14246
142472007-06-06 Robert Dewar <dewar@adacore.com>
14248 Ed Schonberg <schonberg@adacore.com>
14249
14250 * sem_ch5.adb
14251 (Find_Var): Do not consider function call in test for infinite loop
14252 warning if warnings set off for function entity.
14253 (One_Bound): Do not create a temporary for a loop bound if it is a
14254 character literal.
14255 (Analyze_Assignment): Traverse the right hand side of an assignment and
14256 mark all allocators as static coextensions.
14257 (Analyze_Assignment): Exempt assignments involving a dispatching call
14258 to a function with a controlling access result from the check requiring
14259 the target to be class-wide.
14260
142612007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14262 Ed Schonberg <schonberg@adacore.com>
14263 Robert Dewar <dewar@adacore.com>
14264 Javier Miranda <miranda@adacore.com>
14265
14266 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14267 chain of coextensions when an allocator serves as the root of such a
14268 chain.
14269 (Propagate_Coextensions): Remove the test for the root being an
14270 allocator.
14271 (Resolve_Allocator): Add condition to ensure that all future decoration
14272 occurs on an allocator node. Add processing and cleanup for static
14273 coextensions.
14274 (Valid_Conversion): If the operand type is the limited view of a
14275 class-wide type, use the non-limited view is available to determine
14276 legality of operation.
14277 (Ambiguous_Character): move to spec, for use elsewhere.
14278 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14279 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14280 character literals.
14281 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14282 Do_Division_Check flag explicitly.
14283 (Resolve_Actuals): If the actual is of a synchronized type, and the
14284 formal is of the corresponding record type, this is a call to a
14285 primitive operation of the type, that is declared outside of the type;
14286 the actual must be unchecked-converted to the type of the actual
14287 (Resolve_Call): Kill all current values for any subprogram call if
14288 flag Suppress_Value_Tracking_On_Call is set.
14289 (Resolve_Type_Conversion): Generate error message the the operand
14290 or target of interface conversions come from a limited view.
14291 (Check_Infinite_Recursion): Ignore generated calls
14292 (Check_Allocator_Discrim_Accessibility): New procedure for checking
14293 that an expression that constrains an access discriminant in an
14294 allocator does not denote an object with a deeper level than the
14295 allocator's access type.
14296 (Resolve_Allocator): In the case of an allocator initialized by an
14297 aggregate of a discriminated type, check that associations for any
14298 access discriminants satisfy accessibility requirements by calling
14299 Check_Allocator_Discrim_Accessibility.
14300 (Resolve_Equality_Op): Handle comparisons of anonymous access to
14301 subprogram types in the same fashion as other anonymous access types.
14302 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14303 message that is not a continuation message.
14304 (Resolve_Type_Conversion): Add missing support for conversion to
14305 interface type.
14306 (Resolve_Actuals): Introduce a transient scope around the call if an
14307 actual is a call to a function returning a limited type, because the
14308 resulting value must be finalized after the call.
14309 (Resolve_Actuals): If the call was given in prefix notations, check
14310 whether an implicit 'Access reference or implicit dereference must be
14311 added to make the actual conform to the controlling formal.
14312
143132007-06-06 Robert Dewar <dewar@adacore.com>
14314 Javier Miranda <miranda@adacore.com>
14315
14316 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14317 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14318 overriding of an inherited private subprogram now there is no need to
14319 inherit its dispatching slot and reduce the size of the dispatch table.
14320 Set_All_DT_Position now ensures that the same slot is now assigned to
14321 both entities. This is required to statically build the dispatch table.
14322 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14323 of calling Set_All_DT_Position to re-evaluate the position of the
14324 entries in the dispatch table. Such reevaluation is not desired if
14325 the tagged type is already frozen.
14326
143272007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14328 Gary Dismukes <dismukes@adacore.com>
14329 Robert Dewar <dewar@adacore.com>
14330 Javier Miranda <miranda@adacore.com>
14331
14332 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14333 reference acts as an lvalue when the attribute name modifies the prefix
14334 (Is_Coextension_Root): New routine.
14335 (Mark_Static_Coextensions): New routine.
14336 (Type_Access_Level): Revise code for checking the level of the
14337 anonymous access type of a return object.
14338 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14339 (Matches_Prefixed_View_Profile): Remove the no longer necessary
14340 retrieval of the corresponding controlling record type.
14341 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14342 concurrent types declared within a generic as well as class wide types.
14343 Emit a mode incompatibility error whenever a protected entry or routine
14344 override an interface routine whose first parameter is not of mode
14345 "out", "in out" or access to variable.
14346 (Overrides_Synchronized_Primitive): Rename to
14347 Find_Overridden_Synchronized_Primitive.
14348 (Collect_Interface_Components): New subprogram that collects all the
14349 components of a tagged record containing tags of secondary dispatch
14350 tables.
14351 (Add_Global_Declaration): New procedure
14352 (Abstract_Interface_List): Handle properly the case of a subtype of a
14353 private extension.
14354 (Type_Access_Level): In the case of a type whose parent scope is a
14355 return statement, call Type_Access_Level recursively on the enclosing
14356 function's result type to determine the level of the return object's
14357 type.
14358 (Build_Elaboration_Entity): Build name of elaboration entity from the
14359 scope chain of the entity, rather than the unit name of the file name.
14360 (Check_Nested_Access): New procedure.
14361 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14362 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14363 (Get_Renamed_Entity): Utility routine for performing common operation
14364 of chasing the Renamed_Entity field of an entity.
14365
143662007-06-06 Robert Dewar <dewar@adacore.com>
14367
14368 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14369 elaboration model
14370 (Check_A_Call): Add check for entry call which was causing blowup
14371
143722007-06-06 Olivier Hainque <hainque@adacore.com>
14373
14374 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14375 special code on ia64-vms to handle major incompatibilities between the
14376 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14377 this routine with a very different set of arguments and expectations on
14378 the return value.
14379
143802007-06-06 Thomas Quinot <quinot@adacore.com>
14381
14382 * socket.c (__gnat_close_signalling_fd): New function.
14383 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14384 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14385 New supporting functions for task safe Netdb operations.
14386
143872007-06-06 Thomas Quinot <quinot@adacore.com>
14388 Olivier Hainque <hainque@adacore.com>
14389
14390 * a-except-2005.ads, a-except-2005.adb
14391 (Raise_From_Controlled_Operation): New procedure in
14392 (private part of) Ada.Exceptions (standard runtime version). Used to
14393 provide informational exception message when Program_Error is raised as
14394 a result of an Adjust or Finalize operation propagating an exception.
14395 (Rmsg_28): Fix description for E.4(18) check.
14396 (Raise_Current_Excep): Call Debug_Raise_Exception just before
14397 propagation starts, to let debuggers know about the event in a reliable
14398 fashion.
14399 Take the address of E and dereference to make sure it is homed on stack
14400 and prevent the stores from being deleted, necessary for proper
14401 debugger behavior on "break exception" hits.
14402 (Local_Raise): Moved to System.Exceptions
14403
14404 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14405 exception message from the current occurrence and raise Program_Error
14406 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14407
144082007-06-06 Jose Ruiz <ruiz@adacore.com>
14409 Arnaud Charlet <charlet@adacore.com>
14410
14411 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14412 lock, if needed.
14413
14414 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14415 priority associated to a lock.
14416
14417 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14418 assertion to take into account case of no abort restriction.
14419 (Initialize_Protection_Entries): Add initialization for the field
14420 New_Ceiling associated to the protected object.
14421 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14422 needed.
14423
14424 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14425 since this function needs to be set consistently with Update_Exception.
14426
14427 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14428 since this function needs to be set consistently with Update_Exception.
14429
14430 * s-taskin.ads: Update comments on
14431 Interrupt_Server_Blocked_On_Event_Flag.
14432 (Unbind_Handler): Fix handling of server_task wakeup
14433 (Server_Task): Set self's state so that Unbind_Handler can take
14434 appropriate actions.
14435 (Common_ATCB): Now use a constant from System.Parameters to determine
14436 the max size of the Task_Image field.
14437
14438 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14439 Initialize_Analyzer function.
14440 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14441 take into account case of no abort restriction.
14442 ([Vulnerable_]Complete_Master): Modify assertion.
14443
14444 * s-tataat.adb (Finalize): Use the nestable versions of
14445 Defer/Undefer_Abort.
14446
14447 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14448
14449 * s-tpobop.ads: Update comments.
14450
14451 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14452 of locking the object manually, to avoid inconsistencies between
14453 Lock/Unlock_Entry assertions.
14454
14455 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14456 terminating
14457 application and System.Parameters.No_Abort is True.
14458 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14459 (Unbind_Handler): Fix handling of server_task wakeup
14460 (Server_Task): Set self's state so that Unbind_Handler can take
14461 appropriate actions.
14462
144632007-06-06 Thomas Quinot <quinot@adacore.com>
14464
14465 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14466 declarations instead of an explicit null body, for conciseness.
14467
144682007-06-06 Robert Dewar <dewar@adacore.com>
14469
14470 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14471 illegal aggregate and the type is still Any_Composite.
14472 (Subtypes_Statically_Match): Fix problem of empty discriminant list
14473
144742007-06-06 Ed Schonberg <schonberg@adacore.com>
14475
14476 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14477 to prevent subsequent expansion.
14478
144792007-06-06 Robert Dewar <dewar@adacore.com>
14480
14481 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14482
144832007-06-06 Ed Schonberg <schonberg@adacore.com>
14484 Robert Dewar <dewar@adacore.com>
14485
14486 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14487 exceptions.
14488 (Write_Itype): Handle case of string literal subtype, which
14489 comes up in this context.
14490 (Update_Itype): when debugging expanded code, update sloc of itypes
14491 associated with defining_identifiers and ranges, for gdb use.
14492 (Sprint_Node_Actual): Add static keyword to object or exception
14493 declaration output if Is_Statically_Allocated is True.
14494 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14495 or task body, so that the tree carries the proper Sloc information for
14496 debugging use.
14497 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14498
144992007-06-06 Arnaud Charlet <charlet@adacore.com>
14500
14501 * s-secsta.adb (Chunk): Ensure this object has a static size known at
14502 compile time, to avoid dynamic memory allocation
14503 (Elaboration code): Only use dynamic memory allocation when needed.
14504
145052007-06-06 Quentin Ochem <ochem@adacore.com>
14506
14507 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14508 "Overflow_Guard".
14509 (Stack_Analyzer): Added field "Overflow_Guard"
14510 (Task_Result): Added field "Overflow_Guard".
14511 (Index_Str): New constant.
14512 (Task_Name_Str): New constant.
14513 (Actual_Size_Str): New constant.
14514 (Pattern_Array_Element_Size): New constant.
14515 (Get_Usage_Range): New subprogram.
14516 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14517 Now align the output.
14518 Added comments.
14519 (Initialize): Added value for Overflow_Guard.
14520 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14521 Update the value of the overflow guard according to the actual
14522 beginning of the pattern array.
14523 (Initialize_Analyzer): Added parameter Overflow_Guard.
14524 Take this parameter into accound when computing the max size.
14525 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14526 (Report_Result): Removed extra useless procedure.
14527 Updated call to Output_Result.
14528 Moved full computation of the Task_Result here.
14529
145302007-06-06 Thomas Quinot <quinot@adacore.com>
14531
14532 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14533 Thread_Blocking_IO, always True by default, set False on a per-runtime
14534 basis.
14535 Add Windows-specific constants
14536 Add new constant Need_Netdb_Buffer.
14537 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14538 not, whether to use getXXXbyYYY_r.
14539
14540 * gsocket.h: Add new constant Need_Netdb_Buffer.
14541 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14542 not, whether to use getXXXbyYYY_r.
14543
145442007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14545
14546 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14547 than their first call.
14548 Add type Dummy_Communication_Block used in the generation of the pre-
14549 defined dispatching primitive _disp_asynchronous_select.
14550 (Storage_Element): Put Pragma Universal_Aliasing on it.
14551
145522007-06-06 Vincent Celier <celier@adacore.com>
14553
14554 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14555 function.
14556
14557 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14558 letter if it is not followed by a '/' or a '\'.
14559 (Windows): New Boolean function
14560
14561 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14562 Ada 2005.
14563 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14564 drive letter.
14565 (Containing_Directory): Raise Use_Error when the directory is a root
14566 directory.
14567 (Extension): When returning the result, use a conversion to Result_Type,
14568 not a qualification.
14569
145702007-06-06 Robert Dewar <dewar@adacore.com>
14571
14572 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14573 (Set_Style_Check_Options): Recognize new -gnatyg style switch
14574
14575 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14576 Warn_On_Non_Local_Exception to False, to turn off warnings for
14577 No_Exception_Propagation in ZFP runtime.
14578 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14579 back-ends.
14580 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14581
145822007-06-06 Vincent Celier <celier@adacore.com>
14583
14584 * switch-b.adb (Scan_Binder_Switches): Add processing for new
14585 switches -R and -Z
14586
14587 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14588 (Scan_Make_Switches): Recognize new switch -aP
14589
145902007-06-06 Matthew Gingell <gingell@adacore.com>
14591 Jose Ruiz <ruiz@adacore.com>
14592
14593 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14594 VxWorks task descriptor in the Ada run time, call a C subprogram
14595 (__gnat_get_stack_info) that extracts the required information.
14596
14597 * sysdep.c: Back out temporary lynxos workaround.
14598 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14599 time the stack information associated to the currently executing task.
14600 Only VxWorks systems require this function.
14601
146022007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14603
14604 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14605 add the stack bias if the offset is computed from a frame address.
14606 (__gnat_backtrace): Adjust for above change.
14607
146082007-06-06 Thomas Quinot <quinot@adacore.com>
14609
14610 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14611 PE_Non_Transportable_Actual.
14612 (By_Descriptor_Last): New constant.
14613 (By_Copy_Return): Likewise.
14614
146152007-06-06 Vincent Celier <celier@adacore.com>
14616
14617 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14618 is.
14619
14620 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14621 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14622 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14623 Add missing comment for /OPTIMIZE=SPACE
14624 Add entry for OPTIMIZE=SPACE
14625 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14626 Add documentation for new qualifiers corresponding to -gnatw.c/.C
14627
146282007-06-06 Vincent Celier <celier@adacore.com>
14629 Robert Dewar <dewar@adacore.com>
14630
14631 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14632 -gnatw.C)
14633
14634 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14635 Document gnatbind switch -a
14636 (case Constructions): Document that variables declarations are allowed
14637 for previously declared variables.
14638 Fix external lib project example
14639 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14640 Indicate that "#if not X or Y then" is not allowed in input files to
14641 gnatprep.
14642 Document gnatw.x and gnatw.X warning flags
14643 Mention -Winline switch to activate warnings when back-end inlining is
14644 ineffective.
14645 Add gnatcheck rule descriptions
14646 Describe how to use the GNAT driver to call a tool on a closure.
14647 Describe how to run project-wide checks or metrics.
14648 Document gnatbind's -R option
14649 Updated to account for Ada 2005 support
14650
14651 * gnat_rm.texi (Case Construction): Allow variable declarations for
14652 previously declared variables.
14653 (Representation Clauses and Pragmas): Lift restriction on alignment
14654 clauses for record types.
14655 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14656 Document No_Exception_Propagation restriction
14657 Document No_Body pragma
14658 Updated to account for Ada 2005 support; corrected some typos
14659 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14660
14661 * gnat-style.texi: Make it clear that we never use mode IN for
14662 procedures or functions
14663
14664 * ug_words: Add entries for -gnatw.x and -gnatw.X
14665 Add entries for -gnatw.c/.C
14666
146672007-06-06 Pascal Obry <obry@adacore.com>
14668 Vincent Celier <celier@adacore.com>
14669
14670 * makegpr.adb (Add_Archive_Path): Use untouched object and library
14671 dirs and library name.
14672 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14673 comments.
14674 (Build_Library): Idem.
14675 (Compile_Individual_Sources): Idem.
14676 (Compile_Link_With_Gnatmake): Idem.
14677 (Compile_Sources): Idem.
14678 (Get_Imported_Directories): Idem.
14679 (Link_Executables): Idem. Same change for the executable dir.
14680 (Check_Compilation_Needed): C_Source_Path new variable containing
14681 the canonical form of Source_Path to check against the source names
14682 in the dependency file.
14683 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14684 verbose mode, display the name of the object directory we're changing
14685 to.
14686 (Saved_Switches): New name of table X_Switches
14687 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14688 (Usage): New line for switch -aP
14689 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14690 testing if a directory should be added to the search path.
14691
146922007-06-06 Javier Miranda <miranda@adacore.com>
14693
9e81dbc7 14694 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
ec11296f
AC
14695 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14696 declaration after freezing point of all its associated tagged types;
14697 otherwise such types are frozen too early.
14698
146992007-06-06 Robert Dewar <dewar@adacore.com>
14700
14701 * a-reatim.adb: Documentation addition
14702
14703 * g-cgideb.adb: Minor code reorganization
14704
14705 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14706 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14707 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14708
14709 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14710 function. Change name New_Scope to Push_Scope
14711 (Get_Debug_Flag_K): Remove unused obsolete function.
14712
14713 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14714 Push_Scope.
14715
14716 * makeusg.adb: Update Copyright notice
14717 Add line for switch -aP
14718
14719 * makeusg.adb: Fix wording of some usage messages
14720
14721 * s-assert.adb (Raise_Assert_Failure): Add call to
14722 Debug_Raise_Assert_Failure.
14723
14724 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14725 (2, Standard'Alignment) for compatibility with AAMP (where alignment
14726 is restricted to 1).
14727
14728 * s-wchjis.adb: Remove use of System.Pure_Exceptions
14729
14730 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14731 node location to No_Location when we're not debugging the expanded
14732 code.
14733
dbc30a96
AO
147342007-05-22 Alexandre Oliva <aoliva@redhat.com>
14735
14736 * misc.c (enumerate_modes): Consider log2_b to always be one.
14737
719bb4e3 147382007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
ca5ba2a3
RAE
14739
14740 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14741
d7598e11
PO
147422007-05-02 Pascal Obry <obry@adacore.com>
14743
14744 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14745 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14746 encoding support of Stream_IO.
14747 (Write_Unit): Idem.
14748
14749 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14750 filename and corresponding encoding to match the OS requirement.
14751 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14752 routine will fail on specific devices like CON: AUX: ...
14753
14754 PR ada/29856: Add missing braces
14755
1be52f61
AP
147562007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
14757
14758 PR ada/31660
14759 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14760
395a40e0
JH
147612007-04-21 Jan Hubicka <jh@suse.cz>
14762
14763 * misc.c (gnat_expand_body): Don't call target for destructors,
14764 avoid redundant check on syntax errors.
14765
3d95caa4
AP
147662007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
14767
14768 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14769 instead of checking GIMPLE_STMT_P in chain_next.
14770
ea30850a
AK
147712007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14772
14773 PR ada/31576
14774 * system-linux-alpha.ads: Disable constant condition warning for the
14775 Default_Bit_Order variable.
14776 * system-linux-s390.ads: Likewise.
14777 * system-linux-s390x.ads: Likewise.
14778 * system-linux-sparc.ads: Likewise.
14779
4b437c6b
AC
147802007-04-06 Javier Miranda <miranda@adacore.com>
14781 Matt Heaney <heaney@adacore.com>
14782 Robert Dewar <dewar@adacore.com>
14783
14784 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14785 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14786 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14787 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14788 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14789 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14790 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14791 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14792 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14793 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14794 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14795 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14796 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14797 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14798 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14799 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14800 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14801 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14802 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14803 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14804 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14805 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14806 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14807 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14808 s-taprop-tru64.adb, s-taprop-irix.adb,
14809 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14810 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14811 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
9e81dbc7
AS
14812 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14813 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14814 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14815 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14816 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14817 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14818 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14819 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14820 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14821 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14822 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14823 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14824 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14825 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
4b437c6b 14826 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
9e81dbc7 14827 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
4b437c6b
AC
14828 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14829 access types.
14830 Update documentation.
14831 Minor rewording.
14832
148332007-04-06 Robert Dewar <dewar@adacore.com>
14834
14835 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14836 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14837 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14838 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14839 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14840 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14841 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14842 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14843 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
9e81dbc7 14844 system-hpux-ia64.ads, targparm.adb,
4b437c6b
AC
14845 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14846
14847 * system.ads: Move Functions_Return_By_DSP to obsolete section,
14848 kept for bootstrap purposes only.
14849
148502007-04-06 Arnaud Charlet <charlet@adacore.com>
14851
14852 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14853 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14854 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14855 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14856
148572007-04-06 Robert Dewar <dewar@adacore.com>
14858
14859 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14860 (Local_Raise): New dummy procedure called when a raise is converted
14861 to a local goto. Used for debugger to detect that the exception
14862 is raised.
14863
14864 * debug.adb: Document new d.g flag (expand local raise statements to
14865 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14866
14867 * exp_sel.adb: Use Make_Implicit_Exception_Handler
14868
14869 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14870 suppress warnings for unused handlers.
14871 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
14872 warnings for raise statements not handled locally.
14873 (Get_RT_Exception_Entity): New function
14874 (Get_Local_Call_Entity): New function
14875 (Find_Local_Handler): New function
14876 (Warn_If_No_Propagation): New procedure
14877 (Expand_At_End_Handler): Call Make_Implicit_Handler
14878 (Expand_Exception_Handlers): Major additions to deal with local handlers
14879 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14880 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14881 for local raise
14882
14883 * exp_ch11.ads (Get_RT_Exception_Entity): New function
14884 (Get_Local_Call_Entity): New function
14885
14886 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14887 of restrictions that the binder will never suggest adding.
14888
14889 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14890 to No_Elist.
14891
14892 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14893 be with'ed in the presence of pragma Restriction
14894 (No_Exception_Propagation).
14895
14896 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14897
14898 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14899 parameter, then the handler is not a suitable target for a local raise,
14900 and this is a violation of restriction No_Exception_Propagation.
14901 (Analyze_Handled_Statements): Analyze choice parameters in exception
14902 handlers before analyzing statement sequence (needed for proper
14903 detection of local raise statements).
14904 (Analyze_Raise_Statement): Reraise statement is a violation of the
14905 No_Exception_Propagation restriction.
14906
14907 * s-rident.ads: Add new restriction No_Exception_Propagation
14908
14909 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14910 function, like Make_Exception_Handler but sets Local_Raise_Statements
14911 to No_List.
14912 (Add_Unique_Serial_Number): Deal with case where this is called during
14913 processing of configuration pragmas.
14914
149152007-04-06 Thomas Quinot <quinot@adacore.com>
14916 Pat Rogers <rogers@adacore.com>
14917 Pascal Obry <obry@adacore.com>
14918
14919 * g-stsifd-sockets.adb: New file.
14920
14921 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14922 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14923 g-socthi-vms.adb: Move signalling
14924 fd management to a nested package, so that they can conveniently be
14925 moved to a subunit that is shared across Windows, VMS, and VxWorks
14926 (Ada implementation) or completed with imported bodies from socket.c
14927 (UNIX case).
14928 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14929 subprograms.
14930 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14931 the signalling file descriptor.
14932 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14933 signalling file descriptor.
14934 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14935 instead of creating a pair of sockets for signalling here.
14936
14937 * g-socthi.adb: Ditto.
14938 Set the runtime process to ignore SIGPIPEs on platforms that support
14939 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14940
14941 * g-socthi-mingw.adb: Ditto.
14942 (WS_Version): Use Windows 2.2.
14943 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14944
14945 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14946 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14947
14948 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14949 added GNAT byte swapping facility
14950 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14951
14952 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14953
14954 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14955 New subprograms.
14956 (__gnat_create_signalling_fds): New subprogram.
14957 Set the runtime process to ignore SIGPIPEs on platforms that support
14958 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14959
149602007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
14961 Vincent Celier <celier@adacore.com>
14962
14963 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14964 New version of Ada.Calendar which supports the new upper bound of Ada
14965 time (2399-12-31 86_399.999999999).
14966 The following modifications have been made to the package:
14967 - New representation of time as count of nanoseconds since the start of
14968 Ada time (1901-1-1 0.0).
14969 - Target independent Split and Time_Of routines which service both
14970 Ada 95 and Ada 2005 code.
14971 - Target independent interface to the Ada 2005 children of Calendar.
14972 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14973 - Handling of non-leap centenial years.
14974 - Updated clock function.
14975 - Updated arithmetic and comparison operators.
14976
14977 * a-caldel.adb (To_Duration): Add call to target independent routine in
14978 Ada.Calendar to handle the conversion of time to duration.
14979
14980 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14981 (UTC Offset).
14982 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14983 set off to 0.
14984 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14985 targets do not have a natural time zone, GMT is used as a default.
14986 (__gnat_get_task_options): New.
14987
14988 * a-direct.adb (Modification_Time): Add with and use clauses for
14989 Ada.Calendar and Ada.
14990 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14991 since it is no longer needed.
14992 (Duration_To_Time): Removed.
14993 (OS_Time_To_Long_Integer): Removed.
14994 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14995 Formatting Time_Of routines which automatically handle time zones,
14996 buffer periods and leap seconds.
14997
14998 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14999 target independent routines in Ada.Calendar.
15000
9e81dbc7 15001 * a-calfor.ads, a-calfor.adb:
4b437c6b
AC
15002 Code cleanup and addition of validity checks in various routines.
15003 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
15004 Ada.Calendar.
15005
15006 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
15007 independent routine in Ada.Calendar.
15008
150092007-04-06 Olivier Hainque <hainque@adacore.com>
15010
9e81dbc7 15011 * adaint.c:
4b437c6b
AC
15012 (convert_addresses): Adjust prototype and dummy definition to expect an
15013 extra file_name argument.
15014
15015 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
15016 filling the now expected file_name argument with the appropriate
15017 argv[0] expansion.
15018 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
15019 (tracebk): Array of void * instead of char *, corresponding to what
15020 convert_addresses expects.
15021 (exename): New static global, to hold the executable file name to be
15022 used in all convert_addresses invocations.
15023 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
15024 change.
15025 (__gnat_gmem_a2l_initialize): Resolve exename.
15026 (__gnat_convert_addresses): Use exename as the convert_addresses
15027 file_name argument.
15028
15029 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
15030 "convert_addresses", now expecting a filename argument. Import the
15031 necessary entities to compute the filename to use and pass it to
15032 convert_addresses.
15033
150342007-04-06 Matt Gingell <gingell@adacore.com>
15035
15036 * system-aix.ads: Back out previous change.
15037 (Functions_Return_By_DSP): Removed
15038
150392007-04-06 Pascal Obry <obry@adacore.com>
15040
15041 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
15042 or the monotonic used by Ada.Real_Time) to compute the sleep duration
15043 on Windows.
15044
150452007-04-06 Jose Ruiz <ruiz@adacore.com>
15046
15047 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
15048 function. Its value changes in different VxWorks versions, and it is
15049 now handled by the function __gnat_get_task_options.
15050
15051 * s-taprop-vxworks.adb (Create_Task): Call the function
15052 __gnat_get_task_options to get the required options for creating a task.
15053
150542007-04-06 Pascal Obry <obry@adacore.com>
15055 Thomas Quinot <quinot@adacore.com>
15056
15057 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
15058 dealing with filename.
15059 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
15060 filename from a standard string to a wide-string depending on the
15061 encoding value.
15062 (__gnat_freopen): Idem.
15063 (__gnat_current_time): New function (wrapper for time(3) standard C
15064 function).
15065
15066 * g-os_lib.ads (Current_Time): New function. Returns the current
15067 system time as an OS_Time value.
15068
15069 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
15070 (Monotonic_Clock): Same.
15071
150722007-04-06 Quentin Ochem <ochem@adacore.com>
15073
15074 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
15075 not on a natural.
15076 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
15077
150782007-04-06 Jose Ruiz <ruiz@adacore.com>
15079
15080 * a-retide.adb: Add elaboration code to ensure that the tasking run
15081 time is initialized when using delay operations even when no task is
15082 created.
15083
150842007-04-06 Javier Miranda <miranda@adacore.com>
15085
15086 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15087 component Num_Prim_Ops.
15088 (Set_Num_Prim_Ops): Removed.
15089 Remove all the assertions because all the routines of this
15090 package are inline always.
15091 (Get_Offset_Index): Add support to primary dispatch tables.
15092 Move the documentation about the dispatch table to a-tags.ads
15093 (Set_External_Tag): Removed
15094 (Inherit_TSD): Removed.
15095 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15096 moved to a-tags.ads
15097 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15098 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15099 of the TSD field "Table" because this field has been renamed to
15100 "Ifaces_Table".
15101 (Inherit_CPP_DT): Removed.
15102 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15103 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15104 declarations have been moved to a-tags.ads
15105 (Check_Size): Removed.
15106 (Expanded_Name): Updated to get access to the new field of TSD
15107 containing the address of the expanded name.
15108 (Get_Access_Level/Set_Access_Level): Removed.
15109 (Get_Predefined_Prim_Op_Address): Removed.
15110 (Set_Predefined_Prim_Op_Address): Removed.
15111 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15112 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15113 (Set_Expanded_Name): Removed.
15114 (Inherit_DT): Removed.
15115 (Inherit_CPP_DT): Removed.
15116 (Set_RC_Offset): Removed.
15117 (Set_TSD): Removed.
15118 (Base_Address): New function that displaces "this" to point to the base
15119 of the object (that is, to point to the primary tag of the object).
15120
151212007-04-06 Ed Schonberg <schonberg@adacore.com>
15122 Javier Miranda <miranda@adacore.com>
15123
15124 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15125 anonymous access component, do not create a master_id if type already
15126 has one, as may happen if the type is a subcomponent of a packed array
15127 type.
15128 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15129 Initialize_Tag): Remove code associated with the old CPP pragmas.
15130 CPP_Virtual and CPP_Vtable are no longer supported.
15131 (Build_Offset_To_Top_Internal): Add support for concurrent record types
15132 (Build_Offset_To_Top_Functions): Add support for concurrent record types
15133 (Freeze_Record_Type): Remove call to
15134 Init_Predefined_Interface_Primitives.
15135 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15136 code required to initialize the tags of the secondary dispatch tables.
15137 This leaves the algoritm more clear.
15138 (Init_Secondary_Tags): Add support for concurrent record types
15139 (Make_Predefined_Primitive_Specs): Code cleanup.
15140 (Predefined_Primitive_Bodies): Code cleanup.
15141 (Build_Master_Renaming): New local subprogram.
15142 (Expand_N_Full_Type_Declaration): Build the master_id associated with
15143 anonymous access to task type components.
15144 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15145 subtype indication are resolved during analysis, and must not be done
15146 here.
15147 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15148
151492007-04-06 Geert Bosch <bosch@adacore.com>
15150 Ed Schonberg <schonberg@adacore.com>
15151 Javier Miranda <miranda@adacore.com>
15152 Bob Duff <duff@adacore.com>
15153
15154 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15155 for conversion of a Float_Type'Truncation to integer.
15156
15157 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15158 check if a node is an attribute that can be handled directly by the
15159 back end.
15160 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15161 attributes that can be handled directly by the back end.
15162 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15163 use new predicate Is_Access_Protected_Subprogram_Type.
15164 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15165 and Unchecked_Union if it is generated as part of the default Output
15166 procedure for a type with default discriminants.
15167 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15168 if we are compiling under restriction No_Dispatching_Calls.
15169 (Constrained): Use Underlying_Type, in case the type is private without
15170 discriminants, but the full type has discriminants.
15171 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15172 call to Build_Get_Access_Level.
15173 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15174 interface objects requires a call to the run-time subprogram that
15175 returns the base address of the object.
15176 (Valid_Conversion): Improve error message on illegal attempt to store
15177 an anonymous access to subprogram value into a record component.
15178
15179 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15180 null".
15181 (Simplify_Type_Conversion): New procedure that performs simplification
15182 of Int_Type (Float_Type'Truncation (X)).
15183 (Resolve_Type_Conversion): Call above procedure after resolving operand
15184 and before performing checks. This replaces the existing ineffective
15185 code in Exp_Ch4.
15186 (Set_String_Literal_Subtype): When creating the internal static lower
15187 bound subtype for a string literal, use a newly created copy of the
15188 subtree representing the lower bound.
15189 (Resolve_Call): Exclude build-in-place function calls from transient
15190 scope treatment. Update comments to describe this exception.
15191 (Resolve_Equality_Op): In case of dispatching call check violation of
15192 restriction No_Dispatching_Calls.
15193 (Resolve_Call): If the call returns an array, the context imposes the
15194 component type of the array, and the function has one non-defaulted
15195 parameter, rewrite the call as the indexing of a call with a single
15196 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15197 in prefix form.
15198 (Resolve_Actuals): If an actual is an allocator for an access parameter,
15199 the master of the created object is the innermost enclosing statement.
15200 (Remove_Conversions): For a binary operator, check if type of second
15201 formal is numeric, to check if an abstract interpretation is present
15202 in the case of exponentiation as well.
15203
152042007-04-06 Ed Schonberg <schonberg@adacore.com>
15205 Bob Duff <duff@adacore.com>
15206
15207 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15208 copying a parameter list in a call, set properly the First_Named_Formal
15209 and Next_Named_Formal fields in the new list and in the enclosing call.
15210 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15211 names, to ease typing in the debugger. Improve comments.
15212 (Watch_Node): New variable, intended to be set in the debugger.
15213 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15214 called when the watched node is created.
15215 (New_Node_Debugging_Output): Combined version of local procedures
15216 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15217 with a parameter so that conditional breakpoints like "if Node = 12345"
15218 work.
15219 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15220 Add Elist1 function
15221
152222007-04-06 Thomas Quinot <quinot@adacore.com>
15223 Ed Schonberg <schonberg@adacore.com>
15224 Gary Dismukes <dismukes@adacore.com>
15225
15226 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15227 required for a conversion between two access-to-unconstrained-array
15228 types.
15229 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15230 to discriminant constraints on discriminant objects. This rule must
15231 apply as well to discriminants of protected types in private components.
15232 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15233 object of a null-excluding access type then don't require the
15234 the object declaration to have an expression and don't emit a
15235 run-time check.
15236
152372007-04-06 Arnaud Charlet <charlet@adacore.com>
9e94c78f 15238 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
15239
15240 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15241 and made constant.
15242
15243 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15244 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15245 carry any.
15246
15247 * fe.h (Compiler_Abort): Add third parameter.
15248
15249 * misc.c (internal_error_function): Build third argument from current
15250 input location and pass it to Compiler_Abort.
15251
152522007-04-06 Gary Dismukes <dismukes@adacore.com>
15253
15254 * cstand.adb (Create_Standard): When the target's storage unit size is
15255 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15256 Standard_String.
15257
152582007-04-06 Nicolas Roche <roche@adacore.com>
15259
15260 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15261 absolute path can have the following form: device:/a/b. In this case
15262 '/' should be inserted between the path and the filename.
15263
152642007-04-06 Olivier Hainque <hainque@adacore.com>
9e94c78f 15265 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
15266
15267 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15268 VAR_DECL to a CONST_DECL we make for a public constant when we know the
15269 corresponding definition has created the so made visible variable.
15270 Handle anonymous access to protected subprogram.
15271 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15272 object with an address clause volatile. Re-enable original fix.
15273 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15274 too.
15275 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15276 associated with either the Equivalent or Root type, instead of the
15277 naked type node.
15278 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15279 subtree for every field of a global record type.
15280 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15281 discriminants, invoke again variable_size on its newly computed sizes.
15282
152832007-04-06 Robert Dewar <dewar@adacore.com>
15284 Thomas Quinot <quinot@adacore.com>
15285 Ed Schonberg <schonberg@adacore.com>
15286 Bob Duff <duff@adacore.com>
15287
15288 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15289 (Next_Component_Or_Discriminant): New function and procedure
15290 (First_Index, First_Literal, Master_Id,
15291 Set_First_Index, Set_First_Literal, Set_Master_Id):
15292 Add missing Ekind assertions.
15293 (Is_Access_Protected_Subprogram_Type): New predicate.
15294 (Has_RACW): New entity flag, set on package entities to indicate that
15295 the package contains the declaration of a remote accecss-to-classwide
15296 type.
15297 (E_Return_Statement): This node type has the Finalization_Chain_Entity
15298 attribute, in case the result type has controlled parts.
15299 (Requires_Overriding): Add this new flag, because "requires
15300 overriding" is subtly different from "is abstract" (see AI-228).
15301 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15302 Is_Abstract_Type. Make sure these are called only when appropriate.
15303 (Has_Pragma_Unreferenced_Objects): New flag
15304
15305 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15306 class-wide, the tag of the right-hand side must be an exact match, not
15307 an ancestor of that of the object on left-hand side.
15308 (Move_Activation_Chain): New procedure to create the call to
15309 System.Tasking.Stages.Move_Activation_Chain.
15310 (Expand_N_Extended_Return_Statement): Generate code to call
15311 System.Finalization_Implementation.Move_Final_List at the end of a
15312 return statement if the function's result type has controlled parts.
15313 Move asserts to Build_In_Place_Formal.
15314 (Move_Final_List): New function to create the call statement.
15315 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15316 tagged type, replace generation of call to the run-time subprogram
15317 CW_Membership by call to Build_CW_Membership.
15318 (Expand_N_Return_Statement): Replace generation of call to the run-time
15319 subprogram Get_Access_Level by call to Build_Get_Access_Level.
15320 (Expand_N_Simple_Function_Return): Replace generation of call to the
15321 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15322
15323 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15324 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15325 access to protected operations.
15326 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15327 master and chain actual parameters to a build-in-place function call
15328 involving tasks.
15329 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15330 statement.
15331 (Make_Build_In_Place_Call_In_Allocator,
15332 Make_Build_In_Place_Call_In_Anonymous_Context,
15333 Make_Build_In_Place_Call_In_Assignment,
15334 Make_Build_In_Place_Call_In_Object_Declaration): Call
15335 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15336 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15337 stubbed procedure with a null body, replace the call with a null
15338 statement without using the full inlining machinery, for efficiency
15339 and to avoid invalid values in source file table entries.
15340
15341 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15342 renamings of calls to build-in-place functions.
15343
15344 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15345 provides the functionality of RTE_Available to record components.
15346 (RTU_Entity): The function Entity has been renamed to RTU_Entity
15347 to avoid undesired overloading.
15348 (Entity): New subprogram that returns the entity for the referened
15349 unit. If this unit has not been loaded, it returns Empty.
15350 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15351 Remove no longer used entities.
15352 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15353 (RE_Type_Specific_Data): New entity.
15354 (RE_Move_Any_Value): New entity.
15355 (RE_TA_A, RE_Get_Any_Type): New entities.
15356 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15357 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15358 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15359 (Entity): New subprogram that returns the entity for the referened
15360 unit. If this unit has not been loaded, it returns Empty.
15361 (RTE): Addition of a new formal that extends the search to the scopes
15362 of the record types found in the chain of the package.
15363
15364 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15365 "abstract subprograms must be visible" message, whether or not the type
15366 is an interface; that is, remove the special case for interface types.
15367 (Analyze_Function_Return): Remove error message "return of task objects
15368 is not yet implemented" because this is now implemented.
15369 (Create_Extra_Formals): Add the extra master and activation chain
15370 formals in case the result type has tasks.
15371 Remove error message "return of limited controlled objects is not yet
15372 implemented".
15373 (Create_Extra_Formals): Add the extra caller's finalization list formal
15374 in case the result type has controlled parts.
15375 (Process_Formals): In case of access formal types there is no need
15376 to continue with the analysis of the formals if we already notified
15377 errors.
15378 (Check_Overriding_Indicator): Add code to check overriding of predefined
15379 operators.
15380 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15381 flags for formals that do not require them,.
15382 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15383 hidden entity is use visible or directly visible.
15384 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15385 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15386 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15387 New_Overloaded_Entity): Split Is_Abstract flag into
15388 Is_Abstract_Subprogram and Is_Abstract_Type.
15389
15390 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15391 a return statement's finalization list to the caller's list, used for
15392 build-in-place functions with result type with controlled parts.
15393 Remove no longer used entities.
15394
15395 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15396 longer needed, because the full type is now limited, and therefore a
15397 pass-by-reference type.
15398 (Foreign_Task_Level): New constant.
15399
15400 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15401 move tasks from the activation chain belonging to a return statement to
15402 the one passed in by the caller, and update the master to the one
15403 passed in by the caller.
15404 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15405 of unactivated tasks, so we don't kill the ones that are being returned
15406 by a build-in-place function.
15407 (Create_Task): Ignore AI-280 for foreign threads.
15408
154092007-04-06 Ed Schonberg <schonberg@adacore.com>
15410 Robert Dewar <dewar@adacore.com>
15411 Bob Duff <duff@adacore.com>
15412 Gary Dismukes <dismukes@adacore.com>
15413
15414 * errout.adb (Unwind_Internal_Type): Use predicate
15415 Is_Access__Protected_Subprogram_Type.
15416
15417 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15418 (Freeze_Entity, packed array case): Do not override explicitly set
15419 alignment and size clauses.
15420 (Freeze_Entity): An entity declared in an outer scope can be frozen if
15421 the enclosing subprogram is a child unit body that acts as a spec.
15422 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15423 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15424 Remove all code for DSP option
15425
15426 * layout.adb (Layout_Record_Type): Use First/
15427 Next_Component_Or_Discriminant
15428 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15429 to handle properly the anonymous access case.
15430
15431 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15432 for all access attributes, because overload resolution should work the
15433 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15434 causes the error message for the ambiguous "X'Access = Y'Access" and
15435 "X'Unrestricted_Access = Y'Access" and so forth to match.
15436 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15437 now that anonymous access to protected operations have their own kind.
15438 (Resolve_Attribute): In case of dispatching call check the violation of
15439 restriction No_Dispatching_Calls.
15440 (Check_Array_Type): Check new -gnatyA array index style option
15441
15442 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15443 attempt to derive from a synchronized tagged type.
15444 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15445 type, inherit the class-wide type already created, because it may
15446 already have been used in a self-referential anonymous access component.
15447 (Mentions_T): Recognize self-referential anonymous access components
15448 that use (a subtype of) the class-wide type of the enclosing type.
15449 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15450 Derived_Type for Prev formal on call to
15451 Check_Anonymous_Access_Components rather than Empty.
15452 (Make_Incomplete_Type_Declaration): Add test for case where the type has
15453 a record extension in deciding whether to create a class-wide type,
15454 rather than just checking Tagged_Present.
15455 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15456 to stand-alone object declarations as well as component declarations.
15457 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15458 prevent accidental overwriting when enclosing package appears in
15459 a limited_with_clause.
15460 (Array_Type_Declaration): If the component type is an anonymous access,
15461 the associated_node for the itype is the type declaration itself.
15462 (Add_Interface_Tag_Components): Modified to support concurrent
15463 types with abstract interfaces.
15464 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15465 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15466 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15467 to complete the decoration of synchronized interface types. Add also
15468 a call to Check_Abstract_Interfaces to verify the ARM rules.
15469 (Derive_Interface_Subprograms): Modified to support concurrent types
15470 with abstract interfaces.
15471 (Analyze_Subtype_Indication): Resolve the range with the given subtype
15472 mark, rather than delaying the full resolution depending on context.
15473 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15474 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15475 Array_Type_Declaration,Build_Derived_Record_Type,
15476 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15477 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15478 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15479 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15480 called only when appropriate.
15481 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15482 to private type.
15483 (Analyze_Subtype_Declaration): For an access subtype declaration, create
15484 an itype reference for the anonymous designated subtype, to prevent
15485 scope anonmalies in gigi.
15486 (Build_Itype_Reference): New utility, to simplify construction of such
15487 references.
15488
154892007-04-06 Vincent Celier <celier@adacore.com>
15490
15491 * errutil.adb (Initialize): Initialize warnings table, if all warnings
15492 are suppressed, supply an initial dummy entry covering all possible
15493 source locations.
15494
15495 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15496 and start with only one, such as "-RTS=none".
15497 (Collect_Arguments): Do not check for sources outside of projects.
15498 Do not collect arguments if project is externally built.
15499 (Compile_Sources): Do nothing, not even check if the source is up to
15500 date, if its project is externally built.
15501 (Compile): When compiling a predefined source, add -gnatpg
15502 as the second switch, after -c.
15503 (Compile_Sources): Allow compilation of Annex J renames without -a
15504 (Is_In_Object_Directory): Check if the ALI file is in the object
15505 even if there is no project extension.
15506 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15507 gnatbind if the ALI file effectively exists.
15508 (Initialize): Add the directory where gnatmake is invoked in front of
15509 the path if it is invoked from a bin directory, even without directory
15510 information, so that the correct GNAT tools will be used when spawned
15511 without directory information.
15512
15513 * makeusg.adb: Change switch -S to -eS
15514 Add lines for new switches -we, -wn and -ws
15515 Add line for new switch -p
15516
15517 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15518 Treat_As_Error and there are warnings.
15519
15520 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15521 -gnatww Change gnatmake switch -S to -eS
15522 (Scan_Make_Switches): Code reorganisation. Process separately multi
15523 character switches and single character switches.
15524 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15525 False when switch is not recognized by gnatmake.
15526 (Scan_Make_Switches): Set Setup_Projects True when -p or
15527 --create-missing-dirs is specified.
15528
15529 * fname.adb (Is_Predefined_File_Name): Return True for annex J
15530 renamings Calendar, Machine_Code, Unchecked_Conversion and
15531 Unchecked_Deallocation only when Renamings_Included is True.
15532
15533 * par.adb: Allow library units Calendar, Machine_Code,
15534 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15535 when -gnatg is not specified.
15536 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15537 there is no need to generate always a record_definition_node in case
15538 of synchronized interface types.
15539 (SIS_Entry_Active): Initialize global variable to False
15540 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15541 indicate cases where AI-447 says "not null" is legal.
15542
15543 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15544
15545 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15546 files with with several lines starting with the object fileb name.
15547 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15548 is specified.
15549 (Initialize): Add the directory where gprmake is invoked in front of the
15550 path, if it is invoked from a bin directory or with directory
15551 information, so that the correct GNAT tools will be used when invoked
15552 directly.
15553 (Check_Compilation_Needed): Process correctly backslashes on Windows.
15554
15555 * vms_data.ads: Update switches/qualifiers
15556
155572007-04-06 Ed Schonberg <schonberg@adacore.com>
15558 Thomas Quinot <quinot@adacore.com>
15559
15560 * exp_aggr.adb:
15561 If the array component is a discriminated record, the array aggregate
15562 is non-static even if the component is given by an aggregate with
15563 static components.
15564 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15565 (Convert_Aggr_In_Allocator): If the allocator is for an access
15566 discriminant and the type is controlled. do not place on a finalization
15567 list at this point. The proper list will be determined from the
15568 enclosing object.
15569 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15570 initialize record controller if needed, before the components, to ensure
15571 that they are properly finalized.
15572 (Build_Record_Aggr_Code): For the case of an array component that has a
15573 corresponding array aggregate in the record aggregate, perform sliding
15574 if required.
15575
155762007-04-06 Javier Miranda <miranda@adacore.com>
15577 Gary Dismukes <dismukes@adacore.com>
15578 Ed Schonberg <schonberg@adacore.com>
15579
15580 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15581 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15582
15583 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15584 accessibility on class-wide allocators if the allocator occurs at the
15585 same scope level as the allocator's type. The check is guaranteed to
15586 succeed in that case, even when the expression originates from a
15587 parameter of the containing subprogram.
15588 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15589 under No_Dispatching_Calls restriction. During the semantic analysis
15590 we already notified such violation.
15591 (Tagged_Membership): Constant folding. There is no need to check
15592 the tag at run-time if the type of the right operand is non
15593 class-wide abstract.
15594 Replace call to Is_Ancestor by call to Is_Parent
15595 to support concurrent types with interface types.
15596 (Expand_N_Allocator): Add an assertion associated with the generation
15597 of the master_id.
15598 (Expand_N_Slice): Do not enable range check to nodes associated
15599 with the frontend expansion of the dispatch table.
15600 (Is_Local_Access_Discriminant): Subsidiary function to
15601 Expand_N_Allocator.
15602 (Tagged_Membership): Replace generation of call to the run-time
15603 subprogram CW_Membership by call to Build_CW_Membership.
15604 (Expand_Allocator_Expression): Replace generation of call to the
15605 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15606
15607 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15608 initialize most the TSD components by means of an aggregate.
15609 Modify the declaration of the object containing the TSD
15610 because we now expand code that has a higher level of abstraction.
15611 The TSD has a discriminant containing the Inheritance Depth Level,
15612 value that is used in the membership test but also to fix the size
15613 of the table of ancestors.
15614 (Expand_Interface_Conversion): Insert function body at the closest place
15615 to the conversion expression, to prevent access-before-elaboration
15616 errors in the backend.
15617 Code improved to reduce the size of the dispatch table if
15618 compiling under restriction No_Dispatching_Calls plus code cleanup.
15619 Code reorganization plus removal of calls to Set_Num_Prim_Ops
15620 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15621 (Expand_Dispatching_Call): Minor code reorganization plus addition of
15622 code to return immediately if compiling under No_Dispatching_Calls
15623 restriction.
15624 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15625 CPP_Virtual and CPP_Vtable are no longer supported.
15626 (Expand_Interface_Conversion): Add missing support for interface type
15627 derivations.
15628 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15629 Is_Parent to support concurrent types with interfaces.
15630 (Init_Predefined_Interface_Primitives): Removed.
15631 (Make_Secondary_DT): Modified to support concurrent record types.
15632 (Set_All_DT_Position): Modified to support concurrent record types.
15633 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15634 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15635 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15636 with CW_Membership.
15637 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15638 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15639 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15640 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15641 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15642 (Expand_Dispatching_Call): Replace generation of call to the run-time
15643 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15644 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15645 Address.
15646 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15647 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15648 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15649 Build_Set_Prim_Op_Address.
15650 (Get_Remotely_Callable): Subprogram removed.
15651 (Init_Predefined_Interface_Primitives): Replace generation of call to
15652 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15653 Prims.
15654
15655 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15656 First (Parameter_Associations ()) with the call to First_Actual that
15657 returns an actual parameter expression for both named and positional
15658 associations.
15659
15660 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15661 check violation of restriction No_Dispatching_Calls.
15662 (Check_Controlling_Type): A formal of a tagged incomplete type is a
15663 controlling argument.
15664
15665 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15666 First/Next_Component_Or_Discriminant
15667 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15668 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15669 specify Any_Limited_Interface, and this functionality is already
15670 provided by the function Has_Abstract_Interfaces.
15671 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15672 support concurrent types implementing interfaces.
15673 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15674 specify kind Any_Limited_Interface, and this functionality is already
15675 provided by the function Has_Abstract_Interfaces.
15676 (Remove_Side_Effects): replace Controlled_Type by
15677 CW_Or_Controlled_Type whenever the issue is related to
15678 using or not the secondary stack.
15679
15680 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15681 P_Interface_Type_Definition to fulfill the new interface (the formal
15682 Is_Synchronized is no longer required).
15683
15684 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15685 Update dependencies.
15686
15687 * exp_atag.ads, exp_atag.adb: New file
15688
156892007-04-06 Ed Schonberg <schonberg@adacore.com>
15690 Bob Duff <duff@adacore.com>
15691 Cyrille Comar <comar@adacore.com>
15692
15693 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15694 anonymous, use finalization list of enclosing dynamic scope.
15695 (Expand_N_Package_Declaration): For a library package declaration
15696 without a corresponding body, generate RACW subprogram bodies in the
15697 spec (just as we do for the task activation call).
15698 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15699 Is_Abstract_Type. Make sure these are called only when appropriate.
15700 Remove all code for DSP option
15701 (CW_Or_Controlled_Type): new subprogram.
15702
9e94c78f 157032007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
15704 Ed Schonberg <schonberg@adacore.com>
15705 Gary Dismukes <dismukes@adacore.com>
15706
15707 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15708 parameter. If it is set to true, return a result capped according to
15709 the global upper bound for the index of an entry family.
15710 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15711 (Build_Find_Body_Index): Adjust for above change.
15712 (Entry_Index_Expression): Likewise.
15713 (Is_Potentially_Large_Family): New function extracted from...
15714 (Collect_Entry_Families): ...here. Call it to detect whether the family
15715 is potentially large.
15716 (Build_Entry_Count_Expression): If the family is potentially large, call
15717 Family_Size with 'Cap' set to true.
15718 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15719 a protected version of an operation declared in the private part of
15720 a protected object, because they may be invoked through a callback.
15721 (Set_Privals): If the type of a private component is an anonymous access
15722 type, do not create a new itype for each protected body.
15723 If the body of a protected operation creates
15724 controlled types (including allocators for class-widetypes), the
15725 body of the corresponding protected subprogram must include a
15726 finalization list.
15727 (Build_Activation_Chain_Entity): Build the chain entity for extended
15728 return statements.
15729 (Type_Conformant_Parameters): Use common predicate Conforming_Types
15730 to determine whether operation overrides an inherited primitive.
15731 (Build_Wrapper_Spec): Add code to examine the parents while looking
15732 for a possible overriding candidate.
15733 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15734 hold an actual parameter value since its initialization is separated
15735 from the the declaration. Prevents errors on null-excluding access
15736 formals.
15737
157382007-04-06 Thomas Quinot <quinot@adacore.com>
8a57e48f 15739 Pablo Oliveira <oliveira@adacore.com>
4b437c6b
AC
15740
15741 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15742 Do an Unchecked_Conversion to handle the passage from the Underlying
15743 Type to the Base Type when calling Build_To_Any_Call and
15744 Build_From_Any_Call.
15745 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15746 E_Constant, depending upon Variable formal.
15747 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15748 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15749 parameter that requires an extra constrained parameter, declare
15750 temporary for actual as a variable, not a constant.
15751 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15752 the unit being compiled is the one that contains the stub type.
15753 Change primitive operation name for the RACW associated with a RAS
15754 from Call to _Call so it cannot clash with any legal identifier.
15755 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15756 Is_RAS.
15757 (Append_RACW_Bodies): New subprogram.
15758 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15759 Add_Receiving_Stubs_To_Declarations functions.
15760 When expanding a package body, this list correspond to the
15761 statements in the HSS at the end of the pacakge.
15762 When expanding a package spec, this list correspond to the
15763 spec declarations.
15764 (Add_Receiving_Stubs_To_Declarations): Append the function
15765 registering the receiving stubs at the end of the 'Stmts' list.
15766 (RCI_Package_Locator): Pass the new Version generic formal when
15767 instantiating a RCI_Locator package.
15768 (Build_From_Any_Function): To compute the High bound for an
15769 unconstrained array actual, we add the Low bound with the length.
15770 Thus we must convert the low bound and the length to an appropriate
15771 type before doing the sum.
15772 (Build_Subprogram_Receiving_Stubs, PolyORB):
15773 * Retrieve the extra formals parameters at the
15774 end of the parameter stream.
15775 * Use Move_Any_Value to write back out parameters
15776 after executing the request as it is more efficient
15777 than Copy_Any_Value.
15778 * Build the any containing Extra Formals with the
15779 appropriate typecode.
15780 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15781 empty Component_List.
15782 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15783 the tree the declaration for an object that serves as actual parameter
15784 in server-side stubs.
15785 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15786 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15787 Use Build_Actual_Object_Declaration to prepare the actuals.
15788 (Add_Parameter_To_NVList): Set the parameter mode to In for
15789 Extra Constrained Parameters.
15790 (Build_General_Calling_Stubs): Set the parameter type to boolean for
15791 Extra Constrained parameters.
15792 (Build_To_Any_Function, Build_From_Any_Function,
15793 Built_TypeCode_Function): When Typ is implicit, call the correct
15794 function with the first not implicit parent type.
15795 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15796 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15797 typecode from the Etype. Therefore we retrieve the correct typecode
15798 with a call to Get_Any_Type.
15799 (Copy_Specification): Do controlling formal type substitution based on
15800 Is_Controlling_Formal flag, instead of caller-provided object type.
15801 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15802 a RACW primitive operation, we might get a subprogram declaration for an
15803 ancestor of the RACW designated type (not for the designated type
15804 itself), in the case where this operation is inherited. In this case we
15805 have no easy means of determining the original tagged type for which
15806 the primitive was declared, so instead we now rely on
15807 Copy_Specification to use the Is_Controlling_Formal flag to determine
15808 which formals require type substitution.
15809
158102007-04-06 Robert Dewar <dewar@adacore.com>
15811 Ed Schonberg <schonberg@adacore.com>
15812
15813 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15814 GNAT.Current_Exception are not allowed if pragma Restrictions
15815 (No_Exception_Propagation) is set and in any case make the associated
15816 handler unsuitable as a target for a local raise statement.
15817 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15818 run-time subprogram CW_Membership by call to Build_CW_Membership.
15819 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15820 by a function call, a temporary must be created before expanding the
15821 Constructor_Call itself, to prevent out-of-order elaboration in the
15822 back-end when stack checking is enabled..
15823
158242007-04-06 Ed Schonberg <schonberg@adacore.com>
15825
15826 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15827 result are the bounds of the left operand, not the right.
15828
158292007-04-06 Ed Schonberg <schonberg@adacore.com>
15830
15831 * exp_strm.adb
15832 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15833 discriminant defaults.
15834 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15835 (Make_Component_List_Attributes): Ditto.
15836
158372007-04-06 Ed Schonberg <schonberg@adacore.com>
15838 Bob Duff <duff@adacore.com>
15839
15840 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15841 an association with a box as providing a value even though the
15842 initialization procedure for the type is not available.
15843 (Resolve_Record_Aggregate): Check that a choice of an association with a
15844 box corresponds to a component of the type.
15845 (Resolve_Record_Aggregate): Split Is_Abstract flag into
15846 Is_Abstract_Subprogram and Is_Abstract_Type.
15847
15848 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15849 assert.
15850
15851 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15852 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15853 called only when appropriate.
15854
158552007-04-06 Olivier Hainque <hainque@adacore.com>
15856
15857 * g-alleve.ads (Low Level Vector type definitions): Map each to the
15858 associated vector view instead of all to the unsigned char view.
15859
15860 * g-altcon.adb (Generic_Conversions): New internal generic package,
15861 offering facilities for all the Vector/View conversion routines
15862 implemented by this unit.
15863 (To_View/To_Vector - all versions): Reimplemented in a systematic
15864 manner, using the internal Generic_Conversions facilities.
15865
158662007-04-06 Pascal Obry <obry@adacore.com>
15867
15868 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15869 string.
15870 (Create): Free the source string before storing the new one.
15871
158722007-04-06 Vincent Celier <celier@adacore.com>
15873
15874 * g-debpoo.adb (Validity): New package with a complete new
15875 implementation of subprograms Is_Valid and Set_Valid.
15876 (Is_Valid): Move to local package Validity
15877 (Set_Valid): Move to local package Validity
15878
158792007-04-06 Arnaud Charlet <charlet@adacore.com>
8a57e48f 15880 Pablo Oliveira <oliveira@adacore.com>
4b437c6b
AC
15881
15882 * g-expect.adb (Get_Command_Output): When expanding the output buffer
15883 we must ensure that there is enough place for the new data we are going
15884 to copy in.
15885
158862007-04-06 Thomas Quinot <quinot@adacore.com>
15887
15888 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15889 computation.
15890
158912007-04-06 Jose Ruiz <ruiz@adacore.com>
15892 Vincent Celier <celier@adacore.com>
15893
15894 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15895 (Stack_String): Add this String that contains the name of the Stack
15896 package in the project file.
15897 (Packages_To_Check_By_Stack): Add this list that contains the packages
15898 to be checked by gnatstack, which are the naming and the stack packages.
15899 (Check_Files): If no .ci files were specified for gnatstack we add all
15900 the .ci files belonging to the projects, including binder generated
15901 files.
15902 (Non_VMS_Usage): Document that gnatstack accept project file switches.
15903 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15904 Add gnatstack to the list of commands that use project file related
15905 switches, and get the single attribute Switches from the stack package
15906 in a project file when calling gnatstack. Parse the -U flag for
15907 processing files belonging to all projects in the project tree.
15908 Remove all processing for command Setup
15909
15910 * prj-attr.adb: Add new package Stack with single attribute Switches
15911
15912 * vms_conv.ads (Command_Type): Add command Stack.
15913 Move to body declarations that are only used in the body: types Item_Id,
15914 Translation_Type, Item_Ptr, Item and its subtypes.
15915
15916 * vms_conv.adb: (Initialize): Add data for new command Stack.
15917 Add declarations moved from the spec: types Item_Id, Translation_Type,
15918 Item_Ptr, Item and its subtypes.
15919 (Cargs_Buffer): New table
15920 (Cargs): New Boolean global variable
15921 (Process_Buffer): New procedure to create arguments
15922 (Place): Put character in table Buffer or Cargs_Buffer depending on the
15923 value of Cargs.
15924 (Process_Argument): Set Cargs when processing qualifiers for GNAT
15925 COMPILE
15926 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15927 empty, for table Cargs_Buffer.
15928 (Initialize): Remove component Setup in Command_List
15929
159302007-04-06 Vincent Celier <celier@adacore.com>
15931
15932 * gprep.adb (Process_Files.Process_One_File): Use full file name when
15933 issuing pragma Source_Reference.
15934
159352007-04-06 Emmanuel Briot <briot@adacore.com>
15936
15937 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15938 [[:xdigit:]] character class.
15939 Also raise an exception when an invalid character class is used.
15940
159412007-04-06 Pascal Obry <obry@adacore.com>
15942
15943 * i-cstrea.ads: (fopen): Add encoding parameter.
15944 (freopen): Idem.
15945 Change reference from a-sysdep.c to sysdep.c in comment.
15946 Update copyright notice.
15947 This set of patch add support for the encoding form parameter.
15948
15949 * mingw32.h (S2WSU): New macro to convert from a string to a
15950 wide-string using the UTF-8 encoding. The S2WS macro supports now only
15951 standard 8bits encoding.
15952 (WS2SU): As above but converting from wide-sring to string.
15953 This is needed as it is necessary to have access to both versions in the
15954 runtime for the form parameter encoding support.
15955 This set of patch add support for the encoding form parameter.
15956 (S2WS): Improve implementation to handle cases where the filename is not
15957 UTF-8 encoded. In this case we default to using the current code page
15958 for the conversion.
15959
15960 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15961 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15962 the constants defined in adaint.h.
15963 (fopen): Add encoding parameter.
15964 (freopen): Idem.
15965
15966 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15967 encoding. This is needed for the Reset routine (freopen low level-call).
15968
15969 * s-fileio.adb (Open): Decode encoding form parameter and set the
15970 corresponding encoding value into AFCB structure.
15971 (Reset): Pass the encoding value to freopen.
15972 (Close): Move the call to Lock_Task to the beginning of the procedure.
15973
159742007-04-06 Geert Bosch <bosch@adacore.com>
15975 Robert Dewar <dewar@adacore.com>
15976
15977 * i-fortra.ads: Add Double_Complex type.
15978
15979 * impunit.adb: (Is_Known_Unit): New function
15980 Add Gnat.Byte_Swapping
15981 Add GNAT.SHA1
15982 Add new Ada 2005 units
15983 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15984 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15985 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15986 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15987
15988 * impunit.ads (Is_Known_Unit): New function
15989
15990 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15991 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15992 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15993 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15994 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15995 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15996 New files.
15997
15998 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15999
16000 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
16001
9e94c78f 160022007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
16003 Arnaud Charlet <charlet@adacore.com>
16004
16005 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
16006 __gnat_adjust_context_for_raise.
16007 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
16008 implementation of floating point operations as native x86 targets.
16009 So the FPU should be initialized in the same way using finit. Fix
16010 floating point operations accuracy issues.
16011 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
16012 member in struct sigaction, so as to avoid warning for incompatible
16013 pointer types.
16014
9e94c78f 160152007-04-06 Serguei Rybin <rybin@adacore.com>
4b437c6b
AC
16016
16017 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
16018 switches from previously loaded tree
16019
160202007-04-06 Thomas Quinot <quinot@adacore.com>
16021
16022 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
16023 cases where a given dependency has a body or not.
16024 (Write_With_File_Names): New subprogram, common code for the two cases
16025 above.
16026
160272007-04-06 Ed Schonberg <schonberg@adacore.com>
16028 Javier Miranda <miranda@adacore.com>
16029
9e81dbc7 16030 * lib-xref.ads, lib-xref.adb:
4b437c6b
AC
16031 Modify the loop that collects type references, to include interface
16032 types that the type implements. List each of these interfaces when
16033 building the entry for the type.
16034 (Generate_Definition): Initialize component Def and Typ of new entry
16035 in table Xrefs, to avoid to have these components unitialized.
16036 (Output_References): Split Is_Abstract flag into
16037 Is_Abstract_Subprogram and Is_Abstract_Type.
16038 (Generate_Reference): Add barrier to do not generate the warning
16039 associated with Ada 2005 entities with entities generated by the
16040 expander.
16041
160422007-04-06 Robert Dewar <dewar@adacore.com>
16043 Arnaud Charlet <charlet@adacore.com>
16044 Vincent Celier <celier@adacore.com>
16045
16046 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
16047 Update 'Exception Handling Control' chapter which was outdated.
16048 Minor fix to documentation of -gnatwq
16049 Remove section "Adapting the Run Time to a New C++ Compiler" because
16050 it is now obsolete.
16051 Add passage on need of -nostart-files in some non-ada-main cases.
16052 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
16053 Update documentation about Interfacing with C++
16054 Add documentation for new gnatmake switch -p
16055 Add missing protocol part in URLs.
16056 Document -gnatyA
16057 Document pragma Compile_Time_Error
16058 Add documentation for Object_Size indicating that stand alone
16059 objects can have a larger size in some cases.
16060 Add node for GNAT.Byte_Swapping, GNAT.SHA1
16061 Update reference to the Ravenscar profile.
16062 Document pragma Unreferenced_Objects
16063
16064 * gnat-style.texi: Fix typo
16065
160662007-04-06 Vincent Celier <celier@adacore.com>
16067
16068 * mlib.adb (Building_Library): Only output "building a library..." in
16069 verbose mode
16070
16071 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16072 files in verbose mode.
16073
16074 * mlib-utl.adb (Ar): Only output the first object files when not in
16075 verbose mode.
16076 (Gcc): Do not display all the object files if not in verbose mode, only
16077 the first one.
16078
160792007-04-06 Robert Dewar <dewar@adacore.com>
16080
16081 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
16082 it no longer destroys the contents of Name_Buffer or Name_Len and
16083 non-standard and invalid names are handled better.
16084 (Get_Decoded_Name_String): Improve performance by using
16085 Name_Has_No_Encodings flag in the name table.
16086 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16087 Used for debugging printouts.
16088
160892007-04-06 Robert Dewar <dewar@adacore.com>
16090 Javier Miranda <miranda@adacore.com>
16091 Bob Duff <duff@adacore.com>
16092
16093 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16094 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16095 there is no need to generate always a record_definition_node in case
16096 of synchronized interface types.
16097 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16098 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16099 illegal in Ada 95, in cases where it is legal. Change the warnings to
16100 errors in other cases. Don't give the error unless the "not null"
16101 parses properly. Correct the source position at which the error occurs.
16102 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16103 P_Null_Exclusion, to suppress "not null" warnings.
16104 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16105 associated goto statements.
16106
16107 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16108 of END RECORD
16109
16110 * scans.ads (Type_Token_Location): New flag
16111
16112 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16113 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16114 P_Null_Exclusion, to suppress "not null" warnings.
16115
161162007-04-06 Robert Dewar <dewar@adacore.com>
16117 Javier Miranda <miranda@adacore.com>
16118 Bob Duff <duff@adacore.com>
16119 Vincent Celier <celier@adacore.com>
16120
16121 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16122 (Extensions_Allowed): No longer sets Ada_Version
16123 Entry for pragma Unreferenced_Objects
16124
16125 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16126 system.tasking if pragma priority used in a procedure
16127 (Analyze_Pragma, case Warning): Handle dot warning switches
16128 (Process_Compile_Time_Warning_Or_Error): New procedure
16129 (Analyze_Pragma): Add processing for Compile_Time_Error
16130 Add support for extra arguments External_Name and Link_Name.
16131 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16132 (Process_Import_Or_Interface): Add support for the use of pragma Import
16133 with tagged types.
16134 (Extensions_Allowed): No longer affects Ada_Version
16135 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16136 Is_Abstract_Type. Make sure these are called only when appropriate.
16137 Add processing for pragma Unreferenced_Objects
16138
16139 * snames.h, snames.ads, snames.adb: Add entry for pragma
16140 Compile_Time_Error
16141 Add new standard name Minimum_Binder_Options for new gprmake
16142 Add new standard names for gprmake: Archive_Suffix,
16143 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16144 Library_Support, Library_Version_Options,
16145 Shared_Library_Minimum_Options,
16146 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16147 Change Name_Call to Name_uCall so that it cannot clash with a legal
16148 subprogram name.
16149 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16150 Append C_Plus_Plus to convention identifiers as synonym for CPP
16151 Add new standard names Stack and Builder_Switches
16152 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16153 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16154 Run_Path_Option, Toolchain_Version.
16155 Entry for pragma Unreferenced_Objects
16156
16157 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16158 switches, without repetition of "eD". Make sure that last character of
16159 -gnatep= switch is not taken as -gnat switch character.
16160 Complete rewrite of circuit for handling saving compilation options
16161 Occasioned by need to support dot switchs for -gnatw, but cleans up
16162 things in general.
16163 -gnatX does not affect Ada_Version
16164 Include -gnatyA in -gnatg style switches
16165
16166 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16167 warnings on return objects.
16168 (Warn_On_Useless_Assignment): Exclude warnings on return objects
16169 (Set_Dot_Warning_Switch): New procedure
16170 (Check_References): Add missing case of test for
16171 Has_Pragma_Unreferenced_Objects
16172 (Output_Unreferenced_Messages): Implement effect of new pragma
16173 Unreferenced_Objects, remove special casing of limited controlled
16174 variables.
16175
161762007-04-06 Vincent Celier <celier@adacore.com>
16177
16178 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16179 the default project path, initially done during elaboration of the
16180 package.
16181 If the prefix returned by Sdefault is null, get the prefix from a call
16182 to Executable_Prefix_Path.
16183 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16184 null.
16185
16186 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16187 canonical directory name to open the directory from which files are
16188 retrieved.
16189 (Record_Other_Sources): Idem.
16190 (Locate_Directory): Add the possibility to create automatically missing
16191 directories when Setup_Projects is True.
16192 Call Locate_Directory so that the directory will be created when
16193 Setup_Projects is True, for object dir, library dir, library ALI dir,
16194 library source copy dir and exec dir.
16195
16196 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16197 versions of GNAT.
16198
161992007-04-06 Robert Dewar <dewar@adacore.com>
16200
16201 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16202 Use First/Next_Component_Or_Discriminant
16203 (Analyze_Record_Representation_Clause):
16204 Use First/Next_Component_Or_Discriminant
16205 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16206 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16207 definition if type is unconstrained.
16208 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16209 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16210 Is_Abstract_Subprogram and Is_Abstract_Type.
16211 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16212
16213 * repinfo.adb (List_Record_Info): Use First/
16214 Next_Component_Or_Discriminant.
16215
16216 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16217 New procedure.
16218
16219 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16220 Include -gnatyA in default switches
16221
16222 * opt.ads: (Warn_On_Non_Local_Exception): New flag
16223 (Warn_On_Reverse_Bit_Order): New flag
16224 (Extensions_Allowed): Update the documentation.
16225 (Warn_On_Questionable_Missing_Parens): Now on by default
16226
16227 * usage.adb: Add documentation of -gnatw.x/X switches
16228 Document new -gnatyA style switch
16229 -gnatq warnings are on by default
16230
162312007-04-06 Ed Falis <falis@adacore.com>
16232
16233 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16234 full word is no longer compared twice.
16235
162362007-04-06 Ed Schonberg <schonberg@adacore.com>
16237
16238 * sem_ch10.adb (Install_Limited_Context_Clauses.
16239 Expand_Limited_With_Clause): Use a new copy of selector name in the
16240 call to Make_With_Clause. This fixes the tree structure for ASIS
16241 purposes. Nothing is changed in the compiler behaviour.
16242 (Process_Body_Clauses): Handle properly use clauses whose prefix is
16243 a package renaming.
16244 (Install_Limited_With_Clauses): Do not install non-limited view when it
16245 is still incomplete.
16246
162472007-04-06 Ed Schonberg <schonberg@adacore.com>
16248 Gary Dismukes <dismukes@adacore.com>
16249
16250 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16251 when capturing size information, instead of base type, which for a
16252 formal array type will be the unconstrained type.
16253 (Analyze_Formal_Object_Declaration): Add check for illegal default
16254 expressions for a formal in object of a limited type.
16255 (Instantiate_Object): Ditto.
16256 (Check_Formal_Package_Instance): Skip entities that are formal objects,
16257 because they were defaulted in the formal package and no check applies
16258 to them.
16259 (Check_Formal_Package_Instance): Extend conformance check to other
16260 discrete types beyond Integer.
16261 (Process_Default): Copy directly the unmatched formal. A generic copy
16262 has already been performed in Analyze_Formal_Package.
16263 (Analyze_Associations): If a formal subprogram has no match, check for
16264 partial parametrization before looking for a default, to prevent
16265 spurious errors.
16266 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16267 not set the instantiation environment before analyzing the actuals.
16268 Fixes regression on 8515-003 with implementation of AI-133.
16269 Set_Instance_Env checks whether the generic unit is a predefined
16270 unit, in which case the instance must be analyzed with the latest Ada
16271 mode. This setting must take place after analysis of the actuals,
16272 because the actuals must be analyzed and frozen in the Ada mode extant
16273 outside of the current instantiation.
16274 (Save_Env, Restore_Env): Preserve and restore the configuration
16275 parameters so that predefined units can be compiled in the proper Ada
16276 mode.
16277 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16278 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16279 and Is_Abstract_Type.
16280 (Analyze_Formal_Package): For better error recovery, Add exception
16281 handler to catch Instantion_Error, which can be raised in
16282 Analyze_Associations
16283
162842007-04-06 Ed Schonberg <schonberg@adacore.com>
16285 Bob Duff <duff@adacore.com>
16286 Gary Dismukes <dismukes@adacore.com>
16287
16288 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16289 prefix type is a discriminated subtype of the type of the formal.
16290 (Analyze_Allocator): Collect all coextensions regardless of the context.
16291 Whether they can be allocated statically is determined in exp_ch4.
16292 (Analyze_Selected_Component): If the prefix is a limited view and the
16293 non-limited view is available, use the non-limited one.
16294 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16295 therefore illegal), suggest a qualified expression rather than a type
16296 conversion, because a type conversion would be illegal in this context.
16297 (Anayze_Allocator): Trace recursively all nested allocators so that all
16298 coextensions are on the corresponding list for the root. Do no mark
16299 coextensions if the root allocator is within a declaration for a stack-
16300 allocated object, because the access discriminants will be allocated on
16301 the stack as well.
16302 (Analyze_Call): Remove restriction on calls to limited functions for the
16303 cases of generic actuals for formal objects, defaults for formal objects
16304 and defaults for record components.
16305 (Analyze_Allocator): Before analysis, chain coextensions on the proper
16306 element list. Their expansion is delayed until the enclosing allocator
16307 is processed and its finalization list constructed.
16308 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16309 for an operation with the given name among the primitive operations of
16310 the corresponding record type.
16311 (Analyze_Selected_Component): If the prefix is a task type that
16312 implements an interface, and there is no entry with the given name,
16313 check whether there is another primitive operation (e.g. a function)
16314 with that name.
16315 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16316 properly the indexing of a function call written in prefix form, where
16317 the function returns an array type, and all parameters of the function
16318 except the first have defaults.
16319 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16320 the original operands, rather than relocating them, for efficiency and
16321 to work properly when an operand is overloaded.
16322 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16323 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16324 (Analyze_Selected_Component): If the prefix is a private extension, only
16325 scan the visible components, not those of the full view.
16326 (Try_Primitive_Operation): If the operation is a procedure, collect all
16327 possible interpretations, as for a function, because in the presence of
16328 classwide parameters several primitive operations of the type can match
16329 the given arguments.
16330
163312007-04-06 Ed Schonberg <schonberg@adacore.com>
16332 Robert Dewar <dewar@adacore.com>
16333
16334 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16335 tag-indeterminate call to an abstract function, when the left-hand side
16336 is not classwide.
16337 (Analyze_Loop_Statement): Improve detection of infinite loops
16338
163392007-04-06 Ed Schonberg <schonberg@adacore.com>
16340 Thomas Quinot <quinot@adacore.com>
16341
16342 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16343 out of Analyze_Package_Declaration, because processing must be applied
16344 to package bodies as well, for deferred constants completed by pragmas.
16345 (Analyze_Package_Declaration): When the package declaration being
16346 analyzed does not require an explicit body, call Check_Completion.
16347 (May_Need_Implicit_Body): An implicit body is required when a package
16348 spec contains the declaration of a remote access-to-classwide type.
16349 (Analyze_Package_Body): If the package contains RACWs, append the
16350 pending subprogram bodies generated by exp_dist at the end of the body.
16351 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16352 Is_Abstract_Subprogram and Is_Abstract_Type.
16353 (Preserve_Full_Attributes): The full entity list is not an attribute
16354 that must be preserved from full to partial view.
16355
9e81dbc7
AS
16356 * sem_dist.adb (Add_RAS_Dereference_TSS):
16357 Change primitive name to _Call so it cannot clash with any legal
16358 identifier, and be special-cased in Check_Completion.
16359 Mark the full view of the designated type for the RACW associated with
16360 a RAS as Comes_From_Source to get proper view switching when installing
16361 private declarations.
16362 Provite a placeholder nested package body along with the nested spec
16363 to have a place for Append_RACW_Bodies to generate the calling stubs
16364 and stream attributes.
4b437c6b
AC
16365
163662007-04-06 Ed Schonberg <schonberg@adacore.com>
16367 Robert Dewar <dewar@adacore.com>
16368
16369 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16370 that is a limited view, check the non-limited view if available.
16371 (Undefined): Refine error message for missing with of Text_IO
16372 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16373 to distinguish real missing with cases.
16374 Fix format of all missing with messages
16375 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16376 renaming as body when renamed entity is abstract.
16377
163782007-04-06 Ed Schonberg <schonberg@adacore.com>
16379 Javier Miranda <miranda@adacore.com>
16380
16381 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16382 predicate recursive, to handle complex expressions on literals whose
16383 spurious ambiguity comes from the abstract interpretation of some
16384 subexpression.
16385 (Interface_Present_In_Ancestor): Add support to concurrent record
16386 types.
16387 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16388 Is_Abstract_Subprogram and Is_Abstract_Type.
16389
163902007-04-06 Ed Schonberg <schonberg@adacore.com>
16391 Javier Miranda <miranda@adacore.com>
16392
16393 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16394 dereference of a local object R created as a reference to another
16395 object O, use the access level of O.
16396 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16397 rather than local Same_Formal_Type, to check whether protected operation
16398 overrides an inherited one.
16399 (Same_Formal_Type): New predicate, used when matching signatures of
16400 overriding synchronized operations, to handle the case when a formal
16401 has a type that is a generic actual.
16402 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16403 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16404 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16405 syntactic ambiguities involving indexing of function calls that return
16406 arrays.
16407 (Abstract_Interface_List): New subprogram that returns the list of
16408 abstract interfaces associated with a concurrent type or a
16409 concurrent record type.
16410 (Interface_Present_In_Parent): New subprogram used to check if a
16411 given type or some of its parents implement a given interface.
16412 (Collect_Abstract_Interfaces): Add support for concurrent types
16413 with interface types.
16414 (Has_Abstract_Interfaces): Add support for concurrent types with
16415 interface types.
16416 (Is_Parent): New subprogram that determines whether E1 is a parent
16417 of E2. For a concurrent type its parent is the first element of its
16418 list of interface types; for other types this function provides the
16419 same result than Is_Ancestor.
16420 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16421 (Collect_Synchronized_Interfaces): Removed because the subprogram
16422 Collect_Abstract_Interfaces provides this functionality.
16423 (Collect_Abstract_Interfaces): Minor update to give support to
16424 concurrent types and thus avoid undesired code duplication.
16425 (Get_Subprogram_Entity): Handle entry calls.
16426 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16427 entry calls.
16428 (Enter_Name): Do not give -gnatwh hiding warning for record component
16429 entities, they never result in hiding.
16430
164312007-04-06 Ed Schonberg <schonberg@adacore.com>
16432 Robert Dewar <dewar@adacore.com>
16433
16434 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16435 to chain nested components that are allocators for access discriminants
16436 of the enclosing object.
16437 Add N_Push and N_Pop nodes
16438 New field Exception_Label added
16439 (Local_Raise_Statements): New field in N_Exception_Handler_Node
16440 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16441 (Is_Coextension): New flag for allocators, to mark allocators that
16442 correspond to access discriminants of dynamically allocated objects.
16443 (N_Block_Statement): Document the fact that the corresponding entity
16444 can be an E_Return_Statement.
16445 (Is_Coextension): New flag for allocators.
16446 Remove all code for DSP option
16447
16448 * sprint.ads, sprint.adb: Display basic information for class_wide
16449 subtypes. Add handling of N_Push and N_Pop nodes
16450
164512007-04-06 Arnaud Charlet <charlet@adacore.com>
16452
16453 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16454 before propagating exception.
16455
164562007-04-06 Olivier Hainque <hainque@adacore.com>
16457
16458 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16459 an address always within the call instruction from a return address.
16460
164612007-04-06 Olivier Hainque <hainque@adacore.com>
9e94c78f 16462 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
16463
16464 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16465 expression with a COMPOUND_EXPR including the call instead of emitting
16466 the call directly here.
16467 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16468 high bound is constant and the slice is empty. Tidy.
16469 (tree_transform, case N_Op_Not): Handle properly the case where the
16470 operation applies to a private type whose full view is a modular type.
16471 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16472 Address_Clause, use the associated Expression as the GNAT tree
16473 representing the choice value to ensure the corresponding GCC tree is
16474 of the proper kind.
16475 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16476 instead of just the operands, as the base GCC stabilize_reference does.
16477 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16478 requested; otherwise fail.
16479 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16480
164812007-04-06 Thomas Quinot <quinot@adacore.com>
16482
16483 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16484 implementation of UI_Div.
16485 (UI_Div): Reimplement as a call to UI_Div_Rem.
16486 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16487 remainder, avoiding the cost of a multiplication and a subtraction.
16488 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16489 provides both quotient and remainder in a single computation.
16490 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16491 functions for uint.
16492 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16493 is undefined if the given n is not inversible.
16494
164952007-04-06 Olivier Hainque <hainque@adacore.com>
16496
16497 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16498 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16499 opcodes.
16500
9e94c78f 165012007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
16502 Olivier Hainque <hainque@adacore.com>
16503
16504 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16505 when updating the contents of the old pointer to an unconstrained array.
16506 (end_subprog_body): Set error_gnat_node to Empty.
16507 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16508 (unchecked_convert): For subtype to base type conversions, require that
16509 the source be a subtype if it is an integer type.
16510 (builtin_decls): New global, vector of available builtin functions.
16511 (gnat_pushdecl): Add global builtin function declaration nodes to the
16512 builtin_decls list.
16513 (gnat_install_builtins): Adjust comments.
16514 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16515 calling gnat_pushdecl, so that it knows when it handed a builtin
16516 function declaration node.
16517 (builtin_decl_for): Search the builtin_decls list.
16518
9e94c78f 165192007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b 16520
9e81dbc7 16521 * s-stchop-vxworks.adb:
4b437c6b
AC
16522 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16523
165242007-04-06 Robert Dewar <dewar@adacore.com>
16525 Arnaud Charlet <charlet@adacore.com>
16526
16527 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16528
16529 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16530 of files
16531 Add mention of -Sev (set initialize_scalars option from environment
16532 variable at run time) in gnatbind usage message.
16533
16534 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16535
16536 * fname-uf.ads: Minor comment fix
16537
16538 * osint.ads: Change pragma Elaborate to Elaborate_All
16539
16540 * par-load.adb: Add documentation.
16541
16542 * sem_cat.ads, sem_cat.adb: Minor code reorganization
16543
16544 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16545
16546 * s-secsta.ads: Extra comments
16547
16548 * s-soflin.ads: Minor comment fixes
16549
16550 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16551
16552 * s-wchcon.ads: Minor comment addition
16553
16554 * treepr.adb: Minor change in message
16555 (Print_Name,Print_Node): Make these debug printouts more robust: print
16556 "no such..." instead of crashing on bad input.
16557
719bb4e3 165582007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
47ecd38d
RAE
16559
16560 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16561 instead of gnat_signed_or_unsigned_type.
16562 * utils.c (gnat_signed_or_unsigned_type): Remove.
16563 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16564 * gigi.h (gnat_signed_or_unsigned_type): Remove
16565
9645c3c5
RS
165662007-03-09 Roger Sayle <roger@eyesopen.com>
16567
16568 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16569 fold with the result of buildN.
16570 * decl.c (gnat_to_gnu_entity): Likewise.
16571 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16572 * utils.c (finish_record_type, merge_sizes, max_size, convert):
16573 Likewise.
16574 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16575 nonbinary_modular_operation, build_binary_op, build_unary_op,
16576 build_cond_expr): Likewise.
16577
16578 * utils.c (convert): Use fold_build1 when casting values to void.
16579 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16580 fold_convert instead of convert when appropriate.
16581
c279aa90
BM
165822007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16583
16584 * Make-lang.in: Add install-pdf target as copied from
16585 automake v1.10 rules.
16586
c2615f30
AS
165872007-02-28 Andreas Schwab <schwab@suse.de>
16588
16589 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16590 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16591 (doc/gnat-style.info): Likewise.
16592
7771bb62
BM
165932007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
16594
16595 * gnat-style.texi: Standardize title page.
16596 * gnat_rm.texi: Likewise.
16597 * gnat_ugn.texi: Likewise.
16598
ae19c041
MM
165992007-02-25 Mark Mitchell <mark@codesourcery.com>
16600
16601 * decl.c (annotate_value): Adjust for refactoring of tree_map
16602 hierarchy.
16603
fc8600f9
MM
166042007-02-24 Mark Mitchell <mark@codesourcery.com>
16605
16606 * decl.c (annotate_value): Adjust for refactoring of tree_map
16607 hierarchy.
16608
c0bca7e1
EB
166092007-02-21 Ed Schonberg <schonberg@adacore.com>
16610
16611 PR ada/18819
16612 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16613 untagged derived type, add hidden components to keep discriminant
16614 layout consistent, when a given discriminant of the derived type
16615 constraints several discriminants of the parent type.
16616
9f3432b8 166172007-02-16 Eric Botcazou <ebotcazou@adacore.com>
6f7f72f9 16618 Sandra Loosemore <sandra@codesourcery.com>
9f3432b8
EB
16619
16620 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
16621 build the call expression.
16622 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16623 * utils.c (max_size) <tcc_exceptional>: Delete.
16624 <tcc_vl_exp>: New case.
16625 <tcc_expression>: Delete CALL_EXPR subcase.
16626 (build_global_cdtor): Use build_call_nary instead of build3.
16627 * utils2.c (build_call_1_expr): Likewise.
16628 (build_call_2_expr): Likewise.
16629 (build_call_0_expr): Likewise.
16630 (build_call_alloc_dealloc): Likewise.
16631
8438091f
AK
166322007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
16633
16634 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9e81dbc7 16635 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8438091f
AK
16636 and _Unwind_SWord with _sleb128_t.
16637
0802f6a2
PB
166382007-02-06 Paolo Bonzini <bonzini@gnu.org>
16639
16640 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16641 * decl.c: Include gt-ada-decl.h.
16642 (annotate_value_cache): New.
16643 (annotate_value): Use it instead of TREE_COMPLEXITY.
16644
326f9a75
KH
166452007-02-03 Kazu Hirata <kazu@codesourcery.com>
16646
16647 * misc.c, utils2.c: Fix comment typos.
16648
cd259a98
RS
166492007-01-24 Roger Sayle <roger@eyesopen.com>
16650
16651 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16652 TREE_CONSTANT_OVERFLOW.
16653 (allocatable_size_p, annotate_value): Likewise.
16654 * trans.c (gnat_to_gnu): Likewise.
16655 * utils.c (unchecked_convert): Likewise.
16656 * utils2.c (build_simple_component_ref): Likewise.
16657
5305be7e
RG
166582007-01-23 Richard Guenther <rguenther@suse.de>
16659
16660 PR bootstrap/30541
16661 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16662 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16663 (gnatboot3): Likewise.
16664 (GNATBIND): Do not define.
16665 * Makefile.in (GNATBIND): Do not define.
16666
2ac7cbb5
RG
166672007-01-08 Richard Guenther <rguenther@suse.de>
16668
16669 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16670 * trans.c (gnat_to_gnu): Likewise.
16671
2989d30c
GK
166722006-12-07 Geoffrey Keating <geoffk@apple.com>
16673
16674 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16675 * adaint.c: Likewise.
16676
5848e34a
EB
166772006-12-05 Aldy Hernandez <aldyh@redhat.com>
16678
6f7f72f9 16679 Merge from gimple-tuples-branch:
5848e34a 16680 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
6f7f72f9 16681
5848e34a
EB
16682 * ada-tree.h (lang_tree_node): Handle gimple tuples.
16683 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16684 GIMPLE_MODIFY_STMT.
16685
d3c56bc8
KH
166862006-12-02 Kazu Hirata <kazu@codesourcery.com>
16687
16688 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16689 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16690 Fix typos.
16691
9fa25ead
EB
166922006-11-17 Eric Botcazou <ebotcazou@adacore.com>
16693
16694 PR ada/27936
16695 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16696 if the initializer takes into account the padding.
16697
f9f770a8
RG
166982006-11-11 Richard Guenther <rguenther@suse.de>
16699
16700 * trans.c (maybe_stabilize_reference): Remove handling of
16701 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16702
75c0ed05
AC
167032006-11-05 Arnaud Charlet <charlet@adacore.com>
16704
ed41063a 16705 PR ada/29707
75c0ed05
AC
16706 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16707 (To_Target_Priority): New function.
75c0ed05 16708
70198b9f
AC
167092006-10-31 Robert Dewar <dewar@adacore.com>
16710
16711 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16712 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16713 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16714 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16715 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16716 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16717 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16718 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16719 a-szbzha.adb: Minor reformatting. Fix header.
16720
16721 * a-numaux-x86.adb: Add parentheses for use of unary minus
16722 * a-ngcefu.adb: Supply missing parentheses for unary minus
16723 * a-ngcoty.adb: Add parens for use of unary minus
16724 * a-ngelfu.adb: Add missing parens for unary minus
16725 * a-tifiio.adb: Add parentheses for uses of unary minus
16726
167272006-10-31 Robert Dewar <dewar@adacore.com>
16728 Bob Duff <duff@adacore.com>
16729 Ed Schonberg <schonberg@adacore.com>
16730
6f7f72f9 16731 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
70198b9f
AC
16732 with multiplying operator.
16733 (Expected_Type_Is_Any_Real): New function to determine from the Parent
16734 pointer whether the context expects "any real type".
16735 (Resolve_Arithmetic_Op): Do not give an error on calls to the
16736 universal_fixed "*" and "/" operators when they are used in a context
16737 that expects any real type. Also set the type of the node to
16738 Universal_Real in this case, because downstream processing requires it
16739 (mainly static expression evaluation).
16740 Reword some continuation messages
16741 Add some \\ sequences to continuation messages
16742 (Resolve_Call): Refine infinite recursion case. The test has been
16743 sharpened to eliminate some false positives.
16744 Check for Current_Task usage now includes entry barrier, and is now a
16745 warning, not an error.
16746 (Resolve): If the call is ambiguous, indicate whether an interpretation
16747 is an inherited operation.
16748 (Check_Aggr): When resolving aggregates, skip associations with a box,
16749 which are priori correct, and will be replaced by an actual default
16750 expression in the course of expansion.
16751 (Resolve_Type_Conversion): Add missing support for conversion from
16752 a class-wide interface to a tagged type. Minor code cleanup.
16753 (Valid_Tagged_Converion): Add support for abstact interface type
16754 conversions.
16755 (Resolve_Selected_Component): Call Generate_Reference here rather than
16756 during analysis, and use May_Be_Lvalue to distinguish read/write.
16757 (Valid_Array_Conversion): New procedure, abstracted from
16758 Valid_Conversion, to incorporate accessibility checks for arrays of
16759 anonymous access types.
16760 (Valid_Conversion): For a conversion to a numeric type occurring in an
16761 instance or inlined body, no need to check that the operand type is
16762 numeric, since this has been checked during analysis of the template.
16763 Remove legacy test for scope name Unchecked_Conversion.
16764
16765 * sem_res.ads: Minor reformatting
16766
16767 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16768 (PE_Current_Task_In_Entry_Body): New exception code
16769 (SE_Restriction_Violation): Removed, not used
16770
16771 * a-except.ads: Update comments.
16772
16773 * types.h, types.ads: Add definition for Validity_Check
16774 (PE_Current_Task_In_Entry_Body): New exception code
16775 (SE_Restriction_Violation): Removed, not used
16776
167772006-10-31 Thomas Quinot <quinot@adacore.com>
16778
16779 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16780 error status.
16781
167822006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16783 Jose Ruiz <ruiz@adacore.com>
16784
16785 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16786 part of Ada.Calendar: all subprogram raise Unimplemented.
16787 (Split_W_Offset): Temp function body, raising Unimplemented
16788
9e81dbc7 16789 * a-calend.ads, a-calend-vms.ads:
70198b9f
AC
16790 Add imported variable Invalid_TZ_Offset used to designate targets unable
16791 to support time zones.
16792 (Unimplemented): Temporary function raised by the body of new
16793 subprograms below.
16794 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16795 unit provides handling of leap seconds and is used by the new Ada 2005
16796 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16797 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16798 version returns an extra value which is the offset to UTC.
16799
16800 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16801 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16802 (Split_W_Offset): New function body.
16803 (Time_Of): When a date is close to UNIX epoch, compute the time for
16804 that date plus one day (that amount is later substracted after
16805 executing mktime) so there are no problems with time zone adjustments.
16806
16807 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16808
16809 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16810 a-catizo.ads, a-catizo.adb: New files.
16811
6f7f72f9 16812 * impunit.adb: Add new Ada 2005 entries
70198b9f
AC
16813
16814 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16815 Rename all occurences of "__gnat_localtime_r" to
16816 "__gnat_localtime_tzoff".
16817 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16818 zone data and calculate the GMT offset.
16819 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16820 Use the field "tm_gmtoff" to extract the GMT offset.
16821 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16822 the external variable "timezone" to calculate the GMT offset.
16823
168242006-10-31 Arnaud Charlet <charlet@adacore.com>
16825 Jose Ruiz <ruiz@adacore.com>
16826
9e81dbc7
AS
16827 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16828 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
70198b9f
AC
16829 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16830 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16831 System.Any_Priority to a POSIX priority on the target.
16832
9e81dbc7 16833 * system-linux-ia64.ads:
70198b9f
AC
16834 Extend range of Priority types on Linux to use the whole range made
16835 available by the system.
16836
16837 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16838 function maps from System.Any_Priority to a POSIX priority on the
16839 target.
16840 (PTHREAD_PRIO_PROTECT): Set real value.
16841 (PTHREAD_PRIO_INHERIT): Now a function.
16842 (SIGCPUFAIL): New signal.
16843 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16844 are documented as reserved by the OS.
16845
16846 * system-aix.ads: Use the full range of priorities provided by the
16847 system on AIX.
16848
16849 * s-taprop-posix.adb: Call new function To_Target_Priority.
16850 (Set_Priority): Take into account Task_Dispatching_Policy and
16851 Priority_Specific_Dispatching pragmas when determining if Round Robin
16852 must be used for scheduling the task.
16853
9e81dbc7 16854 * system-linux-x86_64.ads, system-linux-x86.ads,
70198b9f
AC
16855 system-linux-ppc.ads: Extend range of Priority types on Linux to use
16856 the whole range made available by the system.
16857
9e81dbc7
AS
16858 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16859 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
70198b9f
AC
16860 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16861 when deallocating the TCB in order to avoid potential references to
16862 deallocated data.
16863 (Set_Priority): Take into account Task_Dispatching_Policy and
16864 Priority_Specific_Dispatching pragmas when determining if Round Robin
16865 or FIFO within priorities must be used for scheduling the task.
16866
16867 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16868 the Thread field (to be used internally by the run-time system) and the
16869 kernel-level task id in the LWP field (to be used by the debugger).
16870 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16871 instance, and propagate the current task options to the spawned task.
16872 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16873 (Initialize): Set Round Robin dispatching when the corresponding pragma
16874 is in effect.
16875
168762006-10-31 Robert Dewar <dewar@adacore.com>
16877
9e81dbc7
AS
16878 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16879 system-linux-hppa.ads, system-hpux-ia64.ads,
16880 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16881 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16882 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16883 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16884 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16885 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
70198b9f
AC
16886 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16887 Default_Bit_Order) to kill constant condition warnings for references
16888 to this switch.
16889
168902006-10-31 Vincent Celier <celier@adacore.com>
16891 Eric Botcazou <ebotcazou@adacore.com>
16892
16893 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16894 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16895 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16896 Ext_To, when building the library file name
16897
16898 * mlib-tgt-vxworks.adb: ditto.
16899 (Get_Target_Suffix): Add support for x86 targets.
16900
16901 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16902
9e81dbc7 16903 * mlib-tgt-darwin.adb:
70198b9f
AC
16904 Use Append_To, instead of Ext_To, when building the library file name
16905 (Flat_Namespace): New global variable.
16906 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16907 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16908 (Link_Shared_Libgcc): Delete.
16909 (Build_Dynamic_Library): Adjust for above changes.
16910 Use Opt package.
16911 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16912
169132006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16914
16915 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16916 (Initialize): Add type conversions required by above change.
16917
169182006-10-31 Jose Ruiz <ruiz@adacore.com>
16919
9e81dbc7 16920 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
70198b9f
AC
16921 (getpid): New body for this function that uses the underlying taskIdSelf
16922 function for VxWorks 5 and VxWorks 6 in kernel mode.
16923 (unsigned_int): New type, modular to allow logical bit operations.
16924 (taskOptionsGet): New imported function.
16925
16926 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16927 field to be compliant with the type used by the corresponding operating
16928 system primitive.
16929
169302006-10-31 Pascal Obry <obry@adacore.com>
16931 Eric Botcazou <ebotcazou@adacore.com>
16932 Vincent Celier <celier@adacore.com>
16933
16934 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16935 ASCII version of the registry API. This is needed as the GNAT runtime
16936 is now UNICODE by default.
16937 Include version.h.
16938 (get_gcc_version): Do not hardcode the return value.
16939 (__gnat_file_time_name): On Windows properly set the default returned
16940 value to -1 which corresponds to Invalid_Time.
16941 (__gnat_fopen): New routine. A simple wrapper on all plateforms
16942 except on Windows where it does conversion for unicode support.
16943 (__gnat_freopen): Idem.
16944 (__gnat_locate_exec_on_path): If environment variable PATH does not
16945 exist, return a NULL pointer
16946
16947 * adaint.h: (__gnat_fopen): Declare.
16948 (__gnat_freopen): Likewise.
16949
16950 * mingw32.h (_tfreopen): Define this macro here for older MingW
16951 version.
16952 Activate the unicode support on platforms using a MingW runtime
16953 version 3.9 or newer.
16954
16955 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16956 This is needed for proper unicode support on Windows.
16957 (freopen): Idem.
16958
169592006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16960 Nicolas Setton <setton@adacore.com>
16961 Olivier Hainque <hainque@adacore.com>
16962 Gary Dismukes <dismukes@adacore.com>
16963
16964 * gigi.h: (tree_code_for_record_type): Declare.
16965 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16966 (get_global_renaming_pointers): Rename to
16967 invalidate_global_renaming_pointers.
16968 (static_ctors): Delete.
16969 (static_dtors): Likewise.
16970 (gnat_write_global_declarations): Declare.
16971 (create_var_decl): Adjust descriptive comment to indicate that the
16972 subprogram may return a CONST_DECL node.
16973 (create_true_var_decl): Declare new function, similar to
16974 create_var_decl but forcing the creation of a VAR_DECL node.
16975 (get_global_renaming_pointers): Declare.
16976 (add_global_renaming_pointer): Likewise.
16977
16978 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16979
16980 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16981 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16982 processing.
16983 (gnat_to_gnu_entity): Remove From_With_Type from computation for
16984 imported_p.
16985 <E_Access_Type>: Use the Non_Limited_View as the full view of the
16986 designated type if the pointer comes from a limited_with clause. Make
16987 incomplete designated type if it is in the main unit and has a freeze
16988 node.
16989 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16990 Underlying_Full_View similarly. Return earlier if the full view already
16991 has an associated tree.
16992 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16993 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16994 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16995 reference type built for objects with an address clause.
16996 Use create_true_var_decl with const_flag set for
16997 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16998 TREE_READONLY set.
16999 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
17000 for Character and Wide_Character types. This info is read by the
17001 dwarf-2 writer, and is needed to be able to use the command "ptype
17002 character" in the debugger.
17003 (gnat_to_gnu_entity): When generating a type representing
17004 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
17005 so that debug writers can distinguish it from ordinary integers.
17006 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
17007 addition to TREE_READONLY to assert the constantness of variables for
17008 elaboration purposes.
17009 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
17010 parameters to call new Einfo function First_Formal_With_Extras.
17011 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
17012 protected type with its corresponding discriminant, to obtain a usable
17013 declaration
17014 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
17015 for a multiple elaboration of the "equivalent" type.
17016 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
17017 into record_global_renaming_pointer.
17018 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
17019 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
17020 <E_Array_Subtype>: Likewise.
17021 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
17022 incomplete subtypes and incomplete subtypes of incomplete types visible
17023 through a limited with clause.
17024 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
17025 the base index type for the maximum size of the array only if they are
17026 constant.
17027 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
17028 expression into a SAVE_EXPR if stabilization failed.
17029
17030 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
17031 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
17032 by lower level compilation passes.
17033 (gnat_genericize): New function, lowering a function body to GENERIC.
17034 Turn the type of RESULT_DECL into a real reference type if the decl
17035 has been marked DECL_BY_REFERENCE, and adjust references to the latter
17036 accordingly.
17037 (gnat_genericize_r): New function. Tree walking callback for
17038 gnat_genericize.
17039 (convert_from_reference, is_byref_result): New functions. Helpers for
17040 gnat_genericize_r.
17041 (create_type_decl): Call gnat_pushdecl before calling
17042 rest_of_decl_compilation, to make sure that field TYPE_NAME of
17043 type_decl is properly set before calling the debug information writers.
17044 (write_record_type_debug_info): The heuristics which compute the
17045 alignment of a field in a variant record might not be accurate. Add a
17046 safety test to make sure no alignment is set to a smaller value than
17047 the alignment of the field type.
17048 (make_dummy_type): Use the Non_Limited_View as the underlying type if
17049 the type comes from a limited_with clause. Do not loop on the full view.
17050 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
17051 (dummy_node_table): New global variable, moved from decl.c.
17052 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
17053 (save_gnu_tree): Use above macros.
17054 (get_gnu_tree): Likewise.
17055 (present_gnu_tree): Likewise.
17056 (init_dummy_type): New function, moved from decl.c. Use above macros.
17057 (make_dummy_type): Likewise.
17058 (tree_code_for_record_type): New function extracted from make_dummy_type
17059 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
17060 (static_ctors): Change it to a vector, make static.
17061 (static_dtors): Likewise.
17062 (end_subprog_body): Adjust for above change.
17063 (build_global_cdtor): Moved from trans.c.
17064 (gnat_write_global_declarations): Emit global constructor and
17065 destructor, and call cgraph_optimize before emitting debug info for
17066 global declarations.
17067 (global_decls): New global variable.
17068 (gnat_pushdecl): Store the global declarations in global_decls, for
17069 later use.
17070 (gnat_write_global_declarations): Emit debug information for global
17071 declarations.
17072 (create_var_decl_1): Former create_var_decl, with an extra argument to
17073 state whether the creation of a CONST_DECL is allowed.
17074 (create_var_decl): Behavior unchanged. Now a wrapper around
17075 create_var_decl_1 allowing CONST_DECL creation.
17076 (create_true_var_decl): New function, similar to create_var_decl but
17077 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
17078 (create_field_decl): Do not always mark the field as addressable
17079 if its type is an aggregate.
17080 (global_renaming_pointers): New static variable.
17081 (add_global_renaming_pointer): New function.
17082 (get_global_renaming_pointers): Likewise.
17083
17084 * misc.c (gnat_dwarf_name): New function.
17085 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17086 (gnat_post_options): Add comment about structural alias analysis.
17087 (gnat_parse_file): Do not call cgraph_optimize here.
17088 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17089
17090 * trans.c (process_freeze_entity): Don't abort if we already have a
17091 non dummy GCC tree for a Concurrent_Record_Type, as it might
17092 legitimately have been elaborated while processing the associated
17093 Concurrent_Type prior to this explicit freeze node.
17094 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17095 exception handler volatile if it is of variable size.
17096 (process_type): Remove bypass for types coming from a limited_with
17097 clause.
17098 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17099 actual, convert the corresponding gnu_actual to the real destination
17100 type when necessary.
17101 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17102 originally TREE_READONLY but whose elaboration cannot be performed
17103 statically.
17104 Part of fix for F504-021.
17105 (tree_transform, subprogram cases): Change loops on formal parameters to
17106 call new Einfo function First_Formal_With_Extras.
17107 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17108 stemming from type conversion for the lhs.
17109 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17110 number of bits per unit for components of records.
17111 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17112 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17113 with At_End_Proc after the SJLJ EH cleanup.
17114 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17115 compilation unit.
17116 (elaborate_all_entities): Do not retest type_annotate_only.
17117 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17118 result type of an abstract subprogram, which may be an itype associated
17119 with an anonymous access result (related to AI-318-02).
17120 (build_global_cdtor): Move to utils.c.
17121 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17122 this choice is not a null tree nor an integer constant.
17123 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17124 on the body of elaboration routines instead of mark_unvisited.
17125 (add_stmt): Do not mark the tree.
17126 (add_decl_expr): Tweak comment.
17127 (mark_unvisited): Delete.
17128 (unshare_save_expr): New static function.
17129 (call_to_gnu): Issue an error when making a temporary around a
17130 procedure call because of non-addressable actual parameter if the
17131 type of the formal is by_reference.
17132 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17133 after building the elaboration routine.
17134
171352006-10-31 Bob Duff <duff@adacore.com>
17136
17137 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17138 as finalization-started, so we can raise Program_Error on 'new'.
17139
17140 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17141 collection has already started.
17142
17143 * s-finimp.ads (Collection_Finalization_Started): Added new special
17144 flag value for indicating that a collection's finalization has started.
17145
17146 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17147 create a task whose master has already waited for dependent tasks.
17148
171492006-10-31 Robert Dewar <dewar@adacore.com>
17150
17151 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17152
9e81dbc7
AS
17153 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17154 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17155 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17156 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17157 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
70198b9f
AC
17158 a-except-2005.ads: Add pragma Preelaborable_Warning
17159
171602006-10-31 Robert Dewar <dewar@adacore.com>
17161 Jose Ruiz <ruiz@adacore.com>
17162
17163 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17164
17165 * ali.adb (Get_Name): Properly handle scanning of wide character names
17166 encoded with brackets notation.
17167 (Known_ALI_Lines): Add S lines to this list.
17168 (Scan_ALI): Acquire S (priority specific dispatching) lines.
17169 New flag Elaborate_All_Desirable in unit table
17170
17171 * ali.ads (Priority_Specific_Dispatching): Add this range of
17172 identifiers to be used for Priority_Specific_Dispatching table entries.
17173 (ALIs_Record): Add First_Specific_Dispatching and
17174 Last_Specific_Dispatching that point to the first and last entries
17175 respectively in the priority specific dispatching table for this unit.
17176 (Specific_Dispatching): Add this table for storing each S (priority
17177 specific dispatching) line encountered in the input ALI file.
17178 New flag Elaborate_All_Desirable in unit table
17179
17180 * bcheck.adb: (Check_Configuration_Consistency): Add call to
17181 Check_Consistent_Dispatching_Policy.
17182 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17183 verifying that the use of Priority_Specific_Dispatching,
17184 Task_Dispatching_Policy, and Locking_Policy is consistent across the
17185 partition.
17186
17187 * bindgen.adb: (Public_Version_Warning): function removed.
17188 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17189 required information from ALI files in order to initialize the table
17190 containing the specific dispatching policy.
17191 (Gen_Adainit_Ada): Generate the variables required for priority specific
17192 dispatching entries (__gl_priority_specific_dispatching and
17193 __gl_num_specific_dispatching).
17194 (Gen_Adainit_C): Generate the variables required for priority specific
17195 dispatching entries (__gl_priority_specific_dispatching and
17196 __gl_num_specific_dispatching).
17197 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17198 pragma entries.
17199 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17200 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17201 (Tab_To): Removed.
17202 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17203 a call to gnat_set_globals.
17204 Generate a string containing settings from
17205 Priority_Specific_Dispatching pragma entries.
17206 (Gen_Object_Files_Options): Do not include the runtime libraries when
17207 pragma No_Run_Time is specified.
17208
17209 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17210 consistency with s-intman-posix.adb.
17211 (__gnat_error_handler, case FreeBSD): Account for the fact that the
17212 handler is installed with SA_SIGINFO.
17213 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17214 FreeBSD ZCX support, copied from Linux version.
17215 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17216 sigfillset, and sigemptyset so the routines defined by MaRTE.
17217 (__gl_priority_specific_dispatching): Add this variable that stores the
17218 string containing priority specific dispatching policies in the
17219 partition.
17220 (__gl_num_specific_dispatching): Add this variable that indicates the
17221 highest priority for which a priority specific dispatching pragma
17222 applies.
17223 (__gnat_get_specific_dispatching): Add this routine that returns the
17224 priority specific dispatching policy, as set by a
17225 Priority_Specific_Dispatching pragma appearing anywhere in the current
17226 partition. The input argument is the priority number, and the result
17227 is the upper case first character of the policy name.
17228 (__gnat_set_globals): Now a dummy function.
17229 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17230 mechargs instead of sigargs, as the latter can be retrieved from the
17231 former and sigargs is not what we want on ia64.
17232 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17233 mechargs argument.
17234 (__gnat_adjust_context_for_raise, ia64-vms): New function.
17235 (tasking_error): Remove unused symbol.
17236 (_abort_signal): Move this symbol to the IRIX specific part since this
17237 is the only target that uses this definition.
17238 (Check_Abort_Status): Move this symbol to the IRIX specific part since
17239 this is the only target that uses this definition.
17240 (Lock_Task): Remove unused symbol.
17241 (Unlock_Task): Remove unused symbol.
17242
17243 * lib-writ.adb (Write_ALI): Output new S lines for
17244 Priority_Specific_Dispatching pragmas.
17245 Implement new flag BD for elaborate body desirable
17246
17247 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17248 (Specific_Dispatching): Add this table for storing the entries
17249 corresponding to Priority_Specific_Dispatching pragmas.
17250 Document new BD flag for elaborate body desirable
17251
17252 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17253 of known pragmas.
17254
172552006-10-31 Javier Miranda <miranda@adacore.com>
17256
9e81dbc7 17257 * a-tags.ads, a-tags.adb:
70198b9f
AC
17258 (Predefined_DT): New function that improves readability of the code.
17259 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17260 Inherit_DT): Use the new function Predefined_DT to improve code
17261 readability.
17262 (Register_Interface_Tag): Update assertion.
17263 (Set_Interface_Table): Update assertion.
17264 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17265 determining progenitor interfaces in Tags.
17266 (Inherit_CPP_DT): New subprogram.
17267
6f7f72f9 17268 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
70198b9f 17269 analysis of the thunk code.
6f7f72f9
EB
17270 (Expand_Interface_Conversion): Handle run-time conversion of
17271 access to class wide types.
70198b9f
AC
17272 (Expand_Dispatching_Call): When generating the profile for the
17273 subprogram itype for a dispatching operation, properly terminate the
17274 formal parameters chaind list (set the Next_Entity of the last formal
17275 to Empty).
17276 (Collect_All_Interfaces): Removed. This routine has been moved to
17277 sem_util and renamed as Collect_All_Abstract_Interfaces.
17278 (Set_All_DT_Position): Hidden entities associated with abstract
17279 interface primitives are not taken into account in the check for
17280 3.9.3(10); this check is done with the aliased entity.
17281 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17282 interfacing with CPP by default.
17283 (Expand_Interface_Conversion): Add missing support for static conversion
17284 from an interface to a tagged type.
17285 (Collect_All_Interfaces): Add new out formal containing the list of
17286 abstract interface types to cleanup the subprogram Make_DT.
17287 (Make_DT): Update the code to generate the table of interfaces in case
17288 of abstract interface types.
17289 (Is_Predefined_Dispatching_Alias): New function that returns true if
17290 a primitive is not a predefined dispatching primitive but it is an
17291 alias of a predefined dispatching primitive.
17292 (Make_DT): If the ancestor of the type is a CPP_Class and we are
17293 compiling under full ABI compatibility mode we avoid the generation of
17294 calls to run-time services that fill the dispatch tables because under
17295 this mode we currently inherit the dispatch tables in the IP subprogram.
17296 (Write_DT): Emit an "is null" indication for a null procedure primitive.
17297 (Expand_Interface_Conversion): Use an address as the type of the formal
17298 of the internally built function that handles the case in which the
17299 target type is an access type.
17300
173012006-10-31 Robert Dewar <dewar@adacore.com>
17302
17303 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17304
173052006-10-31 Robert Dewar <dewar@adacore.com>
17306
17307 * bindusg.ads, bindusg.adb:
17308 Change to package and rename procedure as Display, which
17309 now ensures that it only outputs usage information once.
17310
173112006-10-31 Jose Ruiz <ruiz@adacore.com>
17312
17313 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17314 using RTPs.
17315
17316 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17317 when using RTPs.
17318
173192006-10-31 Robert Dewar <dewar@adacore.com>
17320 Ed Schonberg <schonberg@adacore.com>
17321
17322 * treepr.adb: Use new subtype N_Membership_Test
17323
6f7f72f9
EB
17324 * checks.ads, checks.adb: Add definition for Validity_Check
17325 (Range_Or_Validity_Checks_Suppressed): New function
17326 (Ensure_Valid): Test Validity_Check suppressed
17327 (Insert_Valid_Check): Test Validity_Check suppressed
17328 (Insert_Valid_Check): Preserve Do_Range_Check flag
70198b9f
AC
17329 (Validity_Check_Range): New procedure
17330 (Expr_Known_Valid): Result of membership test is always valid
17331 (Selected_Range_Checks): Range checks cannot be applied to discriminants
17332 by themselves. Disabling those checks must also be done for task types,
17333 where discriminants may be used for the bounds of entry families.
17334 (Apply_Address_Clause_Check): Remove side-effects if address expression
17335 is non-static and is not the name of a declared constant.
17336 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17337 Code cleanup and new error messages.
17338 (Enable_Range_Check): Test for some cases of suppressed checks
17339 (Generate_Index_Checks): Suppress index checks if index checks are
17340 suppressed for array object or array type.
17341 (Apply_Selected_Length_Checks): Give warning for compile-time detected
17342 length check failure, even if checks are off.
17343 (Ensure_Valid): Do not generate a check on an indexed component whose
17344 prefix is a packed boolean array.
17345 * checks.adb: (Alignment_Checks_Suppressed): New function
17346 (Apply_Address_Clause_Check): New procedure, this is a completely
17347 rewritten replacement for Apply_Alignment_Check
17348 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17349 we request a discriminal value only in case of discriminants.
17350 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17351 assignments where the target subtype is unconstrained and the target
17352 object is a parameter or dereference (other aliased cases are known
17353 to be unconstrained).
17354
173552006-10-31 Robert Dewar <dewar@adacore.com>
17356
17357 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17358 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17359 vms_conv.adb: Fix bad table increment values (much too small)
17360
17361 * table.adb (Realloc): Make sure we get at least some new elements
17362 Defends against silly small values for table increment
17363
173642006-10-31 Robert Dewar <dewar@adacore.com>
17365 Ed Schonberg <schonberg@adacore.com>
17366 Bob Duff <duff@adacore.com>
17367
17368 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17369 entities. Move other fields around to make this possible
17370 (Is_Derived_Type): Add missing call to Is_Type.
17371 (Extra_Formals): New function for subprograms, entries, subprogram
17372 types.
17373 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17374 (First_Formal_With_Extras): New function for subprogs, entries, subp
17375 types.
17376 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17377 Add node information for E_Return_Statement.
17378 (Elaborate_Body_Desirable): New flag
17379 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17380 to be Is_Inherently_Limited_Type, because return-by-reference has
17381 no meaning in Ada 2005.
17382 (E_Return_Statement): New entity kind.
17383 (Return_Applies_To): Field of E_Return_Statement.
17384 (Is_Return_Object): New flag in object entities.
17385 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17386 (Must_Have_Preelab_Init): New flag
17387 (Known_To_Have_Preelab_Init): New flag
17388 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17389 (Is_Visible_Formal): New flag on entities in formal packages.
17390 (Low_Bound_Known): New flag
17391 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17392 Incomplete_Kind.
17393 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17394 output when Id is an incomplete subtype.
17395
173962006-10-31 Robert Dewar <dewar@adacore.com>
17397
17398 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17399 Avoid abbreviation Creat
17400 (Finalize): List all sources in extended mail source if -gnatl
17401 switch is active.
17402 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17403 (Finalize): Implement new -gnatl=xxx switch to output listing to file
17404 (Set_Specific_Warning_On): New procedure
17405 (Set_Specific_Warning_Off): New procedure
17406 Add implementation of new insertion \\
17407 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17408 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17409 types.
17410 (Error_Msg_Internal): Make sure that we set Last_Killed to
17411 True when a message from another package is suppressed.
17412 Implement insertion character ~ (insert string)
17413 (First_Node): Minor adjustments to get better placement.
17414
9e81dbc7 17415 * frontend.adb:
70198b9f
AC
17416 Implement new -gnatl=xxx switch to output listing to file
17417
9e81dbc7 17418 * gnat1drv.adb:
70198b9f
AC
17419 Implement new -gnatl=xxx switch to output listing to file
17420
6f7f72f9 17421 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
70198b9f
AC
17422 (Commands_To_Stdout): New flag
17423 Implement new -gnatl=xxx switch to output listing to file
17424 New switch Dump_Source_Text
17425 (Warn_On_Deleted_Code): New warning flag for -gnatwt
17426 Define Error_Msg_Line_Length
17427 (Warn_On_Assumed_Low_Bound): New switch
17428
17429 * osint.ads, osint.adb
17430 (Normalize_Directory_Name): Fix bug.
17431 Implement new -gnatl=xxx switch to output listing to file
17432 (Concat): Removed, replaced by real concatenation
17433 Make use of concatenation now allowed in compiler
17434 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17435 we find the 'lib' or 'bin' directory even when the tool has been
17436 invoked with a relative path.
17437 (Executable_Name): New function taking string parameters.
17438
9e81dbc7 17439 * osint-c.ads, osint-c.adb:
70198b9f
AC
17440 Implement new -gnatl=xxx switch to output listing to file
17441
17442 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17443
9e81dbc7 17444 * switch-c.adb:
70198b9f
AC
17445 Implement new -gnatl=xxx switch to output listing to file
17446 Recognize new -gnatL switch
17447 (no longer keep in old warning about old style usage)
17448 Use concatenation to simplify code
17449 Recognize -gnatjnn switch
17450 (Scan_Front_End_Switches): Clean up handling of -gnatW
17451 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17452
174532006-10-31 Robert Dewar <dewar@adacore.com>
17454
17455 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17456 (Set_Specific_Warning_Off): New procedure
17457 (Warning_Specifically_Suppressed): New function
17458 (Validate_Specific_Warnings): New procedure
17459 (Output_Msg_Text): Complete rewrite to support -gnatjnn
17460
17461 * err_vars.ads: Implement insertion character ~ (insert string)
17462
174632006-10-31 Bob Duff <duff@adacore.com>
17464 Ed Schonberg <schonberg@adacore.com>
17465
17466 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17467 the parent part is a build-in-place function call, generate assignments.
17468 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17469 are build-in-place function calls.
17470 (Replace_Self_Reference): New subsidiary of
17471 Make_OK_Assignment_Statement, to replace an access attribute that is a
17472 self-reference into an access to the appropriate component of the
17473 target object. Generalizes previous mechanism to handle self-references
17474 nested at any level.
17475 (Is_Self_Referential_Init): Remove, not needed.
17476 (Is_Self_Referential_Init): New predicate to simplify handling of self
17477 referential components in record aggregates.
17478 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17479 check for presence of entity before checking for self-reference.
17480 (Has_Default_Init_Comps): Return True if a component association is a
17481 self-reference to the enclosing type, which can only come from a
17482 default initialization.
17483 (Make_OK_Assignment_Statement): If the expression is of the form
17484 Typ'Acc, where Acc is an access attribute, the expression comes from a
17485 default initialized self-referential component.
17486 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17487 that has been derived from several abstract interfaces we must also
17488 initialize the tags of the secondary dispatch tables.
17489
174902006-10-31 Ed Schonberg <schonberg@adacore.com>
17491 Thomas Quinot <quinot@adacore.com>
17492 Javier Miranda <miranda@adacore.com>
17493 Robert Dewar <dewar@adacore.com>
6f7f72f9 17494
9e81dbc7 17495 * exp_attr.adb:
6f7f72f9
EB
17496 (Expand_Access_To_Protected_Op): If the context indicates that an access
17497 to a local operation may be transfered outside of the object, create an
17498 access to the wrapper operation that must be used in an external call.
70198b9f
AC
17499 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17500 target, pass the Valid attribute applied to a floating-point prefix on
17501 to the back end without expansion.
17502 (Storage_Size): Use the new run-time function Storage_Size to retrieve
17503 the allocated storage when it is specified by a per-object expression.
17504 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17505 Nothing to do here, the attribute has been rewritten during semantic
17506 analysis.
17507 (Expand_Attribute_Reference): Handle expansion of the new Priority
17508 attribute
17509 (Find_Fat_Info): Handle case of universal real
17510 (Expand_Access_To_Protected_Op): Fix use of access to protected
17511 subprogram from inside the body of a protected entry.
17512 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17513 'Access and 'Unrestricted_Access, to transform the attribute reference
17514 into a fat pointer.
17515 (Is_Constrained_Aliased_View): New predicate to help determine whether a
17516 subcomponent's enclosing variable is aliased with a constrained subtype.
17517 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17518 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17519 an aliased prefix must be known to be constrained in order to use True
17520 for the attribute value, and now it's possible for some aliased views
17521 to be unconstrained.
17522
175232006-10-31 Robert Dewar <dewar@adacore.com>
17524
17525 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17526 (Expand_Entity_Reference): Correct error of not handling subprogram
17527 formals in current_value processing.
17528
175292006-10-31 Javier Miranda <miranda@adacore.com>
17530 Robert Dewar <dewar@adacore.com>
17531 Ed Schonberg <schonberg@adacore.com>
17532 Gary Dismukes <dismukes@adacore.com>
17533
6f7f72f9 17534 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
70198b9f
AC
17535 register in the final list objects containing class-wide interfaces;
17536 otherwise we incorrectly register the tag of the interface in the final
17537 list.
6f7f72f9
EB
17538 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17539 generate the wrapper if the parent primitive is abstract. This is
17540 required to report the correct error message.
17541 (Expand_N_Subtype_Indication): Do validity checks on range
70198b9f
AC
17542 (Clean_Task_Names): If an initialization procedure includes a call to
17543 initialize a task (sub)component, indicate that the procedure will use
17544 the secondary stack.
17545 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17546 compatibility for interfacing with CPP by default.
17547 (Expand_N_Object_Declaration): Only build an Adjust call when the
17548 object's type is a nonlimited controlled type.
17549 * exp_ch3.adb: Add with and use of Exp_Ch6.
17550 (Expand_N_Object_Declaration): Check for object initialization that is a
17551 call to build-in-place function and apply Make_Build_In_Place_Call_In_
17552 Object_Declaration to the call.
17553 (Freeze_Type): When the designated type of an RACW was not frozen at the
17554 point where the RACW was declared, validate the primitive operations
17555 with respect to E.2.2(14) when it finally is frozen.
17556 (Build_Initialization_Call,Expand_Record_Controller): Rename
17557 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17558 return-by-reference has no meaning in Ada 2005.
17559 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17560 to register tag of the immediate ancestor interfaces in the
17561 run-time structure.
17562 (Init_Secondary_Tags): Moved to the specification to allow the
17563 initialization of extension aggregates with abstract interfaces.
17564 (Build_Master_Renaming): Make public, for use by function declarations
17565 whose return type is an anonymous access type.
17566 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17567 Insert_List_Before_And_Analyze after the generation of the specs
17568 associated with null procedures.
17569 (Expand_Tagged_Root): Update documentation in its specification.
17570 (Init_Secondary_Tags): Update documentation.
17571 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17572 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17573 then generate code to inherit the contents of the dispatch table
17574 directly from the ancestor.
17575 (Expand_Record_Controller): Insert controller component after tags of
17576 implemented interfaces.
17577 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17578 create null procedure overridings when null procedures are inherited
17579 from interfaces.
17580 (Make_Null_Procedure_Specs): New procedure to generate null procedure
17581 declarations for overriding null primitives inherited from interfaces.
17582 (Is_Null_Interface_Procedure): New function in
17583 Make_Null_Procedure_Specs.
17584 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17585 immediate ancestor of a tagged type is an abstract interface type we
17586 must generate the specification of the predefined primitives associated
17587 with controlled types (because the dispatch table of the ancestor is
17588 null and hence these entries cannot be inherited). This is required to
17589 elaborate well the dispatch table.
17590
175912006-10-31 Javier Miranda <miranda@adacore.com>
17592 Ed Schonberg <schonberg@adacore.com>
17593 Bob Duff <duff@adacore.com>
17594 Gary Dismukes <dismukes@adacore.com>
17595 Robert Dewar <dewar@adacore.com>
6f7f72f9
EB
17596
17597 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
70198b9f 17598 conversion.
6f7f72f9 17599 (Expand_N_In): Do validity checks on range
70198b9f
AC
17600 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17601 (Expand_N_Allocator): For "new T", if the object is constrained by
17602 discriminant defaults, allocate the right amount of memory, rather than
17603 the maximum for type T.
17604 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17605 when the allocator is initialized by a build-in-place call, since the
17606 allocator is already rewritten as a reference to the function result,
17607 and this prevents an unwanted duplication of the function call.
17608 Add with and use of Exp_Ch6.
17609 (Expand_Allocator_Expresssion): Check for an allocator whose expression
17610 is a call to build-in-place function and apply
17611 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17612 untagged designated types).
17613 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17614 optimization if source or target is biased.
17615 (Expand_N_Allocator): Add comments for case of an allocator within a
17616 function that returns an anonymous access type designating tasks.
17617 (Expand_N_Allocator): apply discriminant checks for access
17618 discriminants of anonymous access types (AI-402, AI-416)
17619
176202006-10-31 Bob Duff <duff@adacore.com>
17621 Robert Dewar <dewar@adacore.com>
17622 Gary Dismukes <dismukes@adacore.com>
17623 Ed Schonberg <schonberg@adacore.com>
17624
17625 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17626
6f7f72f9 17627 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
70198b9f
AC
17628 (Expand_N_Assignment_Statement): Call
17629 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17630 build-in-place function call. Currently, this can happen only for
17631 assignments that come from aggregates.
17632 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17633 in order to alleviate the upward compatibility introduced by AI-318.
17634 (Expand_N_Extended_Return_Statement): Add support for handling the
17635 return object as a build-in-place result.
17636 (Expand_Non_Function_Return): Implement simple return statements nested
17637 within an extended return.
17638 (Enable_New_Return_Processing): Turn on the new processing of return
17639 statements.
17640 (Expand_Non_Function_Return): For a return within an extended return,
17641 don't raise Program_Error, because Sem_Ch6 now gives a warning.
17642 (Expand_N_Extended_Return_Statement): Implement AI-318
17643 (Expand_Simple_Function_Return): Ditto.
17644 (Expand_N_If_Statement): Handle new -gnatwt warning
17645 (Expand_N_Case_Statement): Handle new -gnatwt warning
17646 (Expand_N_Assignment): Handle assignment to the Priority attribute of
17647 a protected object.
17648 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17649 validity checking of assignments to elementary record components.
17650 (Expand_N_Return_Statement): return Class Wide types on the secondary
17651 stack independantly of their controlled status since with HIE runtimes,
17652 class wide types are not potentially controlled anymore.
17653
17654 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17655 node kind.
17656
17657 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17658 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17659 it expects a block, procedure, or task. The return statement will get
17660 turned into a block, and Expand_Cleanup_Actions will happen then.
17661
176622006-10-31 Robert Dewar <dewar@adacore.com>
17663 Ed Schonberg <schonberg@adacore.com>
17664 Bob Duff <duff@adacore.com>
17665 Gary Dismukes <dismukes@adacore.com>
17666
17667 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17668 capability.
17669 (Expand_Inlined_Call): Tagged types are by-reference types, and
17670 therefore should be replaced by a renaming declaration in the expanded
17671 body, as is done for limited types.
17672 (Expand_Call): If this is a call to a function with dispatching access
17673 result, propagate tag from context.
17674 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17675 CPP by default.
17676 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17677 build-in-place when the right-hand side of an assignment is a
17678 build-in-place function call.
17679 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17680 of the explicit dereference of the allocator to the result subtype of
17681 the build-in-place function. This is needed to satisfy type checking
17682 in cases where the caller's return object is created by an allocator for
17683 a class-wide access type and the type named in the allocator is a
17684 specific type.
17685 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17686 conversion of the reference to the declared object to the result subtype
17687 of the build-in-place function. This is needed to satisfy type checking
17688 in cases where the declared object has a class-wide type. Also, in the
17689 class-wide case, change the type of the object entity to the specific
17690 result subtype of the function, to avoid passing a class-wide object
17691 without explicit initialization to the back end.
17692 (Register_Interface_DT_Entry): Moved outside the body of
17693 Freeze_Subprogram because this routine is now public; it is called from
17694 Check_Dispatching_Overriding to handle late overriding of abstract
17695 interface primitives.
17696 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17697 adding an implicit access actual on a call to a build-in-place function.
17698 (Expand_Actuals): Test for an actual parameter that is a call to a
17699 build-in-place function and apply
17700 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17701 (Is_Build_In_Place_Function): New function to determine whether an
17702 entity is a function whose calls should be handled as build-in-place.
17703 (Is_Build_In_Place_Function_Call): New function to determine whether an
17704 expression is a function call that should handled as build-in-place.
17705 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17706 calls to build-in-place functions as the initialization of an allocator.
17707 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17708 handling calls to build-in-place functions in contexts that do not
17709 involve init of a separate object (for example, actuals of subprogram
17710 calls).
17711 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17712 handling calls to build-in-place functions as the initialization of an
17713 object declaration.
17714 (Detect_Infinite_Recursion): Add explicit parameter Process to
17715 instantiation of Traverse_Body to avoid unreferenced warning.
17716 (Check_Overriding_Inherited_Interfaces): Removed.
17717 (Register_Interface_DT_Entry): Code cleanup.
17718 (Register_Predefined_DT_Entry): Code cleanup.
17719 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17720 inlined statements if within a transient scope.
17721 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17722 formal parameters with occurrences of actuals in inlined body, establish
17723 visibility on the proper view of the actual's subtype for the body's
17724 context.
17725 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17726 compatibility mode and we have an imported CPP subprogram because
17727 for now we assume that imported CPP primitives correspond with
17728 objects whose constructor is in the CPP side (and therefore we
17729 don't need to generate code to register them in the dispatch table).
17730 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17731 aligned selected component.
17732 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17733 the actual of an in-mode parameter is a type conversion.
17734 (Expand_Actuals): If the call does not come from source and the actual
17735 is potentially misaligned, let gigi handle it rather than rejecting the
17736 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17737 Class Wide types as returning by reference independantly of their
17738 controlled status since with HIE runtimes class wide types are not
17739 potentially controlled anymore.
17740
6f7f72f9 177412006-10-31 Ed Schonberg <schonberg@adacore.com>
70198b9f 17742
6f7f72f9 17743 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
70198b9f
AC
17744 references that are private components of the protected object.
17745 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17746 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17747 instantiation to deal with warnings.
17748 (Initialize_Protection): If expression for priority is non-static, use
17749 System_Priority as its expected type, in case the expression has not
17750 been analyzed yet.
17751
177522006-10-31 Robert Dewar <dewar@adacore.com>
17753
17754 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17755 initialization of Homonym_Len.
17756 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17757 names from fully qualified name. Fixes problem of duplicate
17758 external names differing only in the presence of such a block name.
17759
177602006-10-31 Thomas Quinot <quinot@adacore.com>
17761 Pablo Oliveira <oliveira@adacore.com>
6f7f72f9
EB
17762
17763 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
70198b9f
AC
17764 subprogram Ids, even if they are not yet assigned.
17765 (Build_Subprogram_Id): It is now this function that will take care of
17766 calling Assign_Subprogram_Ids if necessary.
17767 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17768 should be done only once they are assigned.
17769 (Build_From_Any_Function, case of tagged types): Add missing call to
17770 Allocate_Buffer.
17771 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17772 type for an RACW type.
17773 (Add_RACW_Features): When processing an RACW declaration for which the
17774 designated type is already frozen, enforce E.2.2(14) rules immediately.
17775 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17776 special reordering of controlling formals.
17777
17778 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17779 associated stub type for an RACW type.
17780
177812006-10-31 Ed Schonberg <schonberg@adacore.com>
17782
17783 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17784 fixed-point operations in an integer context, i.e. as operands of a
17785 conversion to an integer type, indicate that result must be rounded.
17786
177872006-10-31 Robert Dewar <dewar@adacore.com>
17788
17789 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17790 cases, pass the encoding method, since it is now required by the run
17791 time.
17792
17793 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17794 assumption that Str'First = 1.
17795 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17796 it on to the Value_Wide_Wide_Character call.
17797 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17798 properly handles a string of the form quote-encoded_wide_char-quote.
17799
17800 * s-wchcnv.adb: Minor reformatting
17801
178022006-10-31 Javier Miranda <miranda@adacore.com>
6f7f72f9 17803
70198b9f
AC
17804 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17805 run-time membership test to ensure that the constructed object
17806 implements the target abstract interface.
17807
178082006-10-31 Robert Dewar <dewar@adacore.com>
17809
17810 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17811 Machine_Attribute pragma internally to implement the user pragma.
17812 Add processing for pragma Interface so that it is now completely
17813 equivalent to pragma Import.
17814
17815 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17816 so that it can be applied to all entities, including record components
17817 and enumeration literals.
17818 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17819 priority ranges are correct, verify compatibility against task
17820 dispatching and locking policies, and if everything is correct an entry
17821 is added to the table containing priority specific dispatching entries
17822 for this compilation unit.
17823 (Delay_Config_Pragma_Analyze): Delay processing
17824 Priority_Specific_Dispatching pragmas because when processing the
17825 pragma we need to access run-time data, such as the range of
17826 System.Any_Priority.
17827 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17828 Allow pragma Unreferenced as a context item
17829 Add pragma Preelaborable_Initialization
17830 (Analyze_Pragma, case Interface): Interface is extended so that it is
17831 now syntactically and semantically equivalent to Import.
17832 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17833 insertion characters.
17834 Add handling for Pragma_Wide_Character_Encoding
17835 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17836 never supercedes a real restriction, and that a real restriction
17837 always supercedes a warning.
17838 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17839 appropriate form.
17840
178412006-10-31 Bob Duff <duff@adacore.com>
17842 Ed Schonberg <schonberg@adacore.com>
17843 Robert Dewar <dewar@adacore.com>
17844
17845 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17846 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17847 Is_Inherently_Limited_Type, because return-by-reference has no meaning
17848 in Ada 2005.
17849 (Find_Node_To_Be_Wrapped): Use new method of determining the result
17850 type of the function containing a return statement, because the
17851 Return_Type field was removed. We now use the Return_Applies_To field.
17852
6f7f72f9 17853 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
70198b9f
AC
17854 (Build_Task_Image_Decl): If procedure is not called from an
17855 initialization procedure, indicate that function that builds task name
17856 uses the sec. stack. Otherwise the enclosing initialization procedure
17857 will carry the indication.
17858 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17859 N_Object_Declaration instead.
17860 (Kill_Dead_Code): New interface to implement -gnatwt warning for
17861 conditional dead code killed, and change implementation accordingly.
17862 (Insert_Actions): Add N_Return_Object_Declaration case.
17863 Correct comment to mention N_Extension_Aggregate node.
17864 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17865 attempts to save information for global variables which cannot be
17866 safely tracked.
17867 (Get_Current_Value_Condition): Handle conditions the other way round
17868 (constant on left). Also handle right operand of AND and AND THEN
17869 (Set_Current_Value_Condition): Corresponding changes
17870 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17871 (Get_Current_Value_Condition): Handle simple boolean operands
17872 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17873 (Get_Current_Value_Condition): If the variable reference is within an
17874 if-statement, does not appear in the list of then_statments, and does
17875 not come from source, treat it as being at unknown location.
17876 (Get_Current_Value_Condition): Enhance to allow while statements to be
17877 processed as well as if statements.
17878 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17879 come from source.
17880 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17881 of loop. This is safe now that we fixed Kill_Current_Values.
17882 (OK_To_Do_Constant_Replacement): Check whether current scope is
17883 Standard, before examining outer scopes.
17884
178852006-10-31 Vincent Celier <celier@adacore.com>
17886
17887 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17888 When True, apply VMS treatment to children of packages A, G, I and S.
17889 For F320-016
17890
17891 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17892
178932006-10-31 Robert Dewar <dewar@adacore.com>
17894 Ed Schonberg <schonberg@adacore.com>
17895
17896 * freeze.adb: Add handling of Last_Assignment field
17897 (Warn_Overlay): Supply missing continuation marks in error msgs
17898 (Freeze_Entity): Add check for Preelaborable_Initialization
17899
17900 * g-comlin.adb: Add Warnings (Off) to prevent new warning
17901
17902 * g-expect.adb: Add Warnings (Off) to prevent new warning
17903
17904 * lib-xref.adb: Add handling of Last_Assignment field
17905 (Generate_Reference): Centralize handling of pragma Obsolescent here
17906 (Generate_Reference): Accept an implicit reference generated for a
17907 default in an instance.
17908 (Generate_Reference): Accept a reference for a node that is not in the
17909 main unit, if it is the generic body corresponding to an subprogram
17910 instantiation.
17911
17912 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17913
6f7f72f9 17914 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
70198b9f
AC
17915 -gnatwq/Q.
17916 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17917 exception handler.
17918 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17919 use clauses, to avoid messages on packages used to qualify, and also
17920 to avoid messages from obsolescent units.
17921 (Warn_On_Useless_Assignments): Don't generate messages for imported
17922 and exported variables.
17923 (Warn_On_Useless_Assignments): New procedure
17924 (Output_Obsolescent_Entity_Warnings): New procedure
17925 (Check_Code_Statement): New procedure
17926
6f7f72f9 17927 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
70198b9f
AC
17928 Change name Is_Ada_2005 to Is_Ada_2005_Only
17929 (Last_Assignment): New field for useless assignment warning
17930
179312006-10-31 Olivier Hainque <hainque@adacore.com>
17932
17933 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17934 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17935
179362006-10-31 Bob Duff <duff@adacore.com>
17937 Robert Dewar <dewar@adacore.com>
17938 Ed Schonberg <schonberg@adacore.com>
17939
17940 * g-awk.adb (Default_Session, Current_Session): Compile this file in
17941 Ada 95 mode, because it violates the new rules for AI-318.
17942
17943 * g-awk.ads: Use overloaded subprograms in every case where we used to
17944 have a default of Current_Session. This makes the code closer to be
17945 correct for both Ada 95 and 2005.
17946
17947 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17948 code, relying on the fact that the compiler generates a warning
17949 instead of an error in -gnatg mode.
17950
17951 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17952 E_Return_Statement entity kind.
17953 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17954
17955 * par.adb (P_Interface_Type_Definition): Addition of one formal to
17956 report an error if the reserved word abstract has been previously found.
17957 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
6f7f72f9
EB
17958
17959 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
70198b9f
AC
17960 parenthesized range attribute usage
17961 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17962
17963 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17964 in the syntax for extended_return_statement. This is not in the latest
17965 RM, but the ARG is expected to issue an AI allowing this.
17966 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17967 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17968 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17969 P_Return_Statement): Parse the new syntax for extended_return_statement.
17970
17971 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17972 Output_End_Missing): Add error-recovery code for the new
17973 extended_return_statement syntax; that is, the new E_Return entry on
17974 the scope stack.
17975
17976 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17977 limited to nonlimited, because otherwise we violate the new Ada 2005
17978 rules about returning limited types in function Create_AST_Handler in
17979 s-asthan.adb.
17980
17981 * sem.adb (Analyze): Add cases for new node kinds
17982 N_Extended_Return_Statement and N_Return_Object_Declaration.
17983
17984 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17985 type is in the same category as type of context before applying check,
17986 to prevent anomalies in instantiations.
17987 (Resolve_Aggregate): Remove test for limited components in aggregates.
17988 It's unnecessary in Ada 95, because if it has limited components, then
17989 it must be limited. It's wrong in Ada 2005, because limited aggregates
17990 are now allowed.
17991 (Resolve_Record_Aggregate): Move check for limited types later, because
17992 OK_For_Limited_Init requires its argument to have been resolved.
17993 (Get_Value): When copying the component default expression for a
17994 defaulted association in an aggregate, use the sloc of the aggregate
17995 and not that of the original expression, to prevent spurious
17996 elaboration errors, when the expression includes function calls.
17997 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17998 were missing. We also didn't handle qualified expressions. Now also
17999 allow function calls. Use new common routine OK_For_Limited_Init.
18000 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
18001 with space can upper case letter).
18002
6f7f72f9 18003 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
70198b9f 18004 Has_Static_Discriminants flag
6f7f72f9
EB
18005 (Record_Type_Declaration): Diagnose an attempt to declare an interface
18006 type with discriminants.
18007 (Process_Range_Expr_In_Decl): Do validity checks on range
70198b9f
AC
18008 (Build_Discriminant_Constraints): Use updated form of
18009 Denotes_Discriminant.
18010 (Process_Subtype): If the subtype is a private subtype whose full view
18011 is a concurrent subtype, introduce an itype reference to prevent scope
18012 anomalies in gigi.
18013 (Build_Derived_Record_Type, Collect_Interface_Primitives,
18014 Record_Type_Declaration): The functionality of the subprograms
18015 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
18016 is now performed by a single routine.
18017 (Build_Derived_Record_Type): If the type definition includes an explicit
18018 indication of limitedness, then the type must be marked as limited here
18019 to ensure that any access discriminants will not be treated as having
18020 a local anonymous access type.
18021 (Check_Abstract_Overriding): Issue a detailed error message when an
18022 abstract subprogram was not overridden due to incorrect mode of its
18023 first parameter.
18024 (Analyze_Private_Extension_Declaration): Add support for the analysis of
18025 synchronized private extension declarations. Verify that the ancestor is
18026 a limited or synchronized interface or in the generic case, the ancestor
18027 is a tagged limited type or synchronized interface and all progenitors
18028 are either limited or synchronized interfaces.
18029 Derived_Type_Declaration): Check for presence of private extension when
18030 dealing with synchronized formal derived types.
18031 Process_Full_View): Enchance the check done on the usage of "limited" by
18032 testing whether the private view is synchronized.
18033 Verify that a synchronized private view is completed by a protected or
18034 task type.
18035 (OK_For_Limited_Init_In_05): New function.
18036 (Analyze_Object_Declaration): Move check for limited types later,
18037 because OK_For_Limited_Init requires its argument to have been resolved.
18038 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18039 in order to alleviate the upward compatibility introduced by AI-318.
18040 (Constrain_Corresponding_Record): If the constraint is for a component
18041 subtype, mark the itype as frozen, to avoid out-of-scope references to
18042 discriminants in the back-end.
18043 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
18044 this subprogram against wrong sources.
18045 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
18046 discriminant of limited type completed with a protected type, when the
18047 discriminant is used to constrain a private component of the type, and
18048 expansion is disabled.
18049 (Find_Type_Of_Object): Do not treat a return subtype that is an
18050 anonymous subtype as a local_anonymous_type, because its accessibility
18051 level is the return type of the enclosing function.
18052 (Check_Initialization): In -gnatg mode, turn the error "cannot
18053 initialize entities of limited type" into a warning.
18054 (OK_For_Limited_Init): Return true for generated nodes, since it
18055 sometimes violates the legality rules.
18056 (Make_Incomplete_Declaration): If the type for which an incomplete
18057 declaration is created happens to be the currently visible entity,
18058 preserve the homonym chain when removing it from visibility.
18059 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
18060 inherited subprograms.
18061 (Access_Definition): If this is an access to function that is the return
18062 type of an access_to_function definition, context is a type declaration
18063 and the scope of the anonymous type is the current one.
18064 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
18065 incomplete subtype to the set of private dependents of the original
18066 incomplete type.
18067 (Constrain_Discriminated_Type): Emit an error message whenever an
18068 incomplete subtype is being constrained.
18069 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
18070 corresponding subtype of the full view of the original incomplete type.
18071 (Check_Incomplete): Properly detect invalid usage of incomplete types
18072 and subtypes.
18073
180742006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18075
18076 * g-catiio.ads, g-catiio.adb (Value): New function.
18077 Given an input String, try and parse a valid Time value.
18078
180792006-10-31 Vincent Celier <celier@adacore.com>
18080
18081 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
18082 Integer_Address arithmetic, as in Set_Valid.
18083
180842006-10-31 Arnaud Charlet <charlet@adacore.com>
18085 Robert Dewar <dewar@adacore.com>
18086
18087 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18088 handling executable extension manually and duplicating code.
18089
18090 * make.adb: Implement new -S switch
18091 (Gnatmake): Use new function Osint.Executable_Name instead
18092 of handling executable extension manually.
18093
18094 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18095 is specified, the executable name ends with this suffix.
18096 Take advantage of Osint.Executable_Name instead of duplicating code.
18097
18098 * switch-m.adb: Recognize new gnatmake -S switch
18099
18100 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18101 variable.
18102 (Get_Target_Parameters): Set Executable_Extension_On_Target if
18103 available.
18104
18105 * makeusg.adb: Add line for gnatmake -S switch
18106
181072006-10-31 Vincent Celier <celier@adacore.com>
18108
18109 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18110 call it with -static-libgcc, as there are some platforms, such as
18111 Darwin, where one of these two switches is compulsory to link.
18112
181132006-10-31 Vincent Celier <celier@adacore.com>
6f7f72f9 18114
70198b9f
AC
18115 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18116 instead of ADA_PROJECT_PATH, for the project path.
18117 (Gnatls): When displaying the project path directories, use host dir
18118 specs.
18119
18120 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18121 names in the project path, as absolute paths may correspond to
18122 multi-valued VMS logical names.
18123
181242006-10-31 Vincent Celier <celier@adacore.com>
18125
18126 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18127 absolute path name.
18128 (Locate_Regular_File): Ditto
18129 (Change_Dir): Remove, no longer used
18130 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18131 on Windows. Get it calling Get_Current_Dir.
18132 (OpenVMS): Remove imported boolean, no longer needed.
18133 (Normalize_Pathname)[VMS]: Do not resolve directory names.
18134 (Pid_To_Integer): New function to convert a Process_Id to Integer
18135
181362006-10-31 Thomas Quinot <quinot@adacore.com>
18137
18138 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18139 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18140 to No_Socket.
18141 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18142 W_Sig_Socket.
18143
181442006-10-31 Robert Dewar <dewar@adacore.com>
18145
18146 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18147 initial letter o as a zero.
18148
181492006-10-31 Robert Dewar <dewar@adacore.com>
18150
18151 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18152
181532006-10-31 Robert Dewar <dewar@adacore.com>
18154
6f7f72f9
EB
18155 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18156 variant records
18157 (Layout_Variant_Record): Retrieve the discriminants from the entity
70198b9f
AC
18158 rather than from the type definition, because in the case of a full
18159 type for a private type we need to take the discriminants from the
18160 partial view.
6f7f72f9
EB
18161 (Layout_Component_List): When applying the Max operator to variants with
18162 a nonstatic size, check whether either operand is static and scale that
18163 operand from bits to storage units before applying Max.
70198b9f
AC
18164 (Layout_Type): In VMS, if a C-convention access type has no explicit
18165 size clause (and does not inherit one in the case of a derived type),
18166 then the size is reset to 32 from 64.
18167
181682006-10-31 Vincent Celier <celier@adacore.com>
18169
18170 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18171 its file has already been loaded, according to the unit being loaded,
18172 not to the current value of Multiple_Unit_Index.
18173
181742006-10-31 Thomas Quinot <quinot@adacore.com>
18175 Eric Botcazou <ebotcazou@adacore.com>
18176 Arnaud Charlet <charlet@adacore.com>
18177
18178 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18179 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18180 possible.
18181 (a-except.o): Pass it to the compiler.
18182 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18183 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18184 a-calend-mingw.adb version.
18185
6f7f72f9 18186 * Makefile.rtl: Added s-dsaser.
70198b9f
AC
18187 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18188 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18189 Ada.Dispatching.Round_Robin.
18190 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18191
18192 * Make-lang.in: Remove all references to gt-ada-decl.h.
18193 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18194 sources.
18195 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18196 Update dependencies.
18197
18198 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18199
182002006-10-31 Vincent Celier <celier@adacore.com>
18201
18202 * mlib-utl.adb (Initialized): Remove, no longer used
18203 (Initialize): Remove, no longer used
18204 (Ar): If Ar_Exec is null, get the location of the archive builder and,
18205 if there is one, the archive indexer. Fail if the archive builder cannot
18206 be found.
18207 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18208 be found.
18209
182102006-10-31 Ed Schonberg <schonberg@adacore.com>
18211
18212 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18213 Process_Body_Clauses): If the context of a body includes a use clause
18214 for P.Q then a with_clause for P in the same body is not redundant,
18215 even if the spec also has a with_clause on P.
18216 Add missing continuation mark to error msg
18217 (Build_Limited_Views): A limited view of a type is tagged if its
18218 declaration includes a record extension.
18219 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18220 node, even if the subunit has errors. This avoids malfunction by
18221 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18222 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18223 generation of obsolescent messages for with statements (cannot do
18224 this too early, or we cannot implement avoiding the messages in the
18225 case of obsolescent units withing obsolescent units).
18226 (Install_Siblings): If the with_clause is on a remote descendant of
18227 an ancestor of the current compilation unit, find whether there is
18228 a sibling child unit that is immediately visible.
18229 (Remove_Private_With_Clauses): New procedure, invoked after completing
18230 the analysis of the private part of a nested package, to remove from
18231 visibility the private with_clauses of the enclosing package
18232 declaration.
18233 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18234 now centralized in Generate_Reference.
18235 (Install_Limited_Context_Clauses): Remove superfluous error
18236 message associated with unlimited view visible through use
18237 and renamings. In addition, at the point in which the error
18238 is reported, we add the backslash to the text of the error
18239 to ensure that it is reported as a single error message.
18240 Use new // insertion for some continuation messages
18241 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18242 to create implicit with_clause for parent unit mentioned in original
18243 limited_with_clause.
18244 (Install_Limited_With_Unit): Set entity of parent identifiers if the
18245 unit is a child unit. For ASIS queries.
18246 (Analyze_Subunit): If the subunit appears within a child unit, make all
18247 ancestor child units directly visible again.
18248
182492006-10-31 Robert Dewar <dewar@adacore.com>
18250
18251 * par-ch10.adb (P_Context_Clause): Minor error message fix
18252
182532006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18254 Javier Miranda <miranda@adacore.com>
18255
18256 * par-ch12.adb: Grammar update and cleanup.
18257 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18258 support for synchronized derived type definitions.
18259 Add the new actual Abstract_Present to every call to
18260 P_Interface_Type_Definition.
18261 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18262 a formal object declaration with an access definition or a subtype mark
18263 with a null exclusion.
18264 (P_Generic_Association): Handle association with box, and others_choice
18265 with box, to support Ada 2005 partially parametrized formal packages.
18266
182672006-10-31 Robert Dewar <dewar@adacore.com>
18268 Javier Miranda <miranda@adacore.com>
6f7f72f9 18269
70198b9f
AC
18270 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18271 (P_Type_Declaration): Remove barrier against the reserved word "limited"
18272 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18273 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18274 private extensions.
18275 (P_Type_Declaration): Add the new actual Abstract_Present to every call
18276 to P_Interface_Type_Definition.
18277 (P_Interface_Type_Definition): Addition of one formal to report an error
18278 if the reserved word abstract has been previously found.
18279 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18280 object renaming declaration with an access definition or subtype mark
18281 with a possible null exclusion.
18282
18283 * par-ch9.adb: Minor error msg fix
18284
18285 * par-load.adb: Add missing continuation mark to error msg
18286
18287 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18288
182892006-10-31 Vincent Celier <celier@adacore.com>
18290
18291 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18292 unknown attribute in unknown package or in package that does not need
18293 to be checked.
18294 (Parse_Package_Declaration): Do not issue warning for unknown package in
18295 quiet output.
18296
182972006-10-31 Vincent Celier <celier@adacore.com>
18298
18299 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18300 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18301 Packages_To_Check.
18302
183032006-10-31 Vincent Celier <celier@adacore.com>
18304
18305 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18306 on VMS, change "__" to '.' before checking the name.
18307 (Record_Ada_Source): Always add the source file name in the list of
18308 of sources, even if it is not the first time, as it is for another
18309 source index.
18310 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18311 dot, instead of replacing only the first '_'.
18312
18313 * prj-part.adb (Parse): Convert project file path to canonical form
18314
18315 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18316 extended, the project id of the project extending it is recorded in its
18317 data, even when it has already been processed as an imported project.
18318
183192006-10-31 Robert Dewar <dewar@adacore.com>
18320
18321 * repinfo.adb (List_Entities): Don't list entities from renaming
18322 declarations.
18323
183242006-10-31 Arnaud Charlet <charlet@adacore.com>
18325 Robert Dewar <dewar@adacore.com>
18326
18327 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18328 only a restriction warning is active for the given restriction. This is
18329 desirable because we do not want to modify code in the case where only
18330 a warning is set.
18331 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18332 causes overriding of real restrictions.
18333 Take advantage of new No_Restrictions constant.
18334
18335 * raise.h: (__gnat_set_globals): Change profile.
18336
183372006-10-31 Arnaud Charlet <charlet@adacore.com>
70198b9f 18338
6f7f72f9
EB
18339 * rtsfind.adb: Remove s-polint from comment as it exists no more.
18340
9e81dbc7 18341 * rtsfind.ads:
6f7f72f9
EB
18342 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18343 Move all the entities in obsolete package System.PolyORB_Interface to
18344 System.Partition_Interface.
70198b9f
AC
18345 (RE_Storage_Size): New function in System.Tasking.
18346 (RE_Get_Ceiling): New entity.
18347 (RE_Set_Ceiling): New entity.
18348 (RO_PE_Get_Ceiling): New entity.
18349 (RO_RE_Set_Ceiling): New entity.
18350 (Inherit_CPP_DT): New entity
18351
183522006-10-31 Robert Dewar <dewar@adacore.com>
18353
18354 * scng.adb (Scan, case of numeric literal): Better msg for identifier
18355 starting with a digit.
18356
183572006-10-31 Ed Schonberg <schonberg@adacore.com>
18358 Thomas Quinot <quinot@adacore.com>
18359 Javier Miranda <miranda@adacore.com>
18360 Gary Dismukes <dismukes@adacore.com>
18361
18362 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18363 properly an attempt to apply Unchecked_Access to a protected operation.
18364 (OK_Self_Reference): New subprogram to check the legality of an access
18365 attribute whose prefix is the type of an enclosing aggregate.
18366 Generalizes previous mechanism to handle attribute references nested
18367 arbitrarily deep within the aggregate.
18368 (Analyze_Access_Attribute): An access attribute whose prefix is a type
18369 can appear in an aggregate if this is a default-initialized aggregate
18370 for a self-referential type.
18371 (Resolve_Attribute, case Access): Ditto.
18372 Add support for new implementation defined attribute Stub_Type.
18373 (Eval_Attribute, case Attribute_Stub_Type): New case.
18374 (Analyze_Attribute, case Attribute_Stub_Type): New case.
18375 (Stream_Attribute_Available): Implement using new subprogram from
18376 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18377 Has_Specified_Stream_Attribute flag.
18378 Disallow Storage_Size and Storage_Pool for access to subprogram
18379 (Resolve_Attribute, case 'Access et al): Take into account anonymous
18380 access types of return subtypes in extended return statements. Remove
18381 accessibility checks on anonymous access types when Unchecked_Access is
18382 used.
18383 (Analyze_Attribute): Add support for the use of 'Class to convert
18384 a class-wide interface to a tagged type.
18385 Add support for the attribute Priority.
18386 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18387 whether the designated type is discriminated with a constrained partial
18388 view and require static matching in that case.
18389 Add local variable Des_Btyp. The Designated_Type
18390 of an access to incomplete subtype is either its non-limited view if
18391 coming from a limited with or its etype if regular incomplete subtype.
18392
18393 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18394 Fix predicate to identify and allow cases of (expander-generated)
18395 references to tag of designated object of a RACW.
18396 (Validate_Static_Object_Name): In Ada 2005, a formal object is
18397 non-static, and therefore cannot appear as a primary in a preelaborable
18398 package.
18399 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18400 Has_Read_Write_Attributes.
18401 (Has_Read_Write_Attributes): Reimplement in termes of
18402 Has_Stream_Attribute_Definition.
18403 (Missing_Read_Write_Attributes): When checking component types in a
18404 record, unconditionally call Missing_Read_Write_Attributes recursively
18405 (remove guard checking for Is_Record_Type / Is_Access_Type).
18406
184072006-10-31 Robert Dewar <dewar@adacore.com>
18408
18409 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18410 useless assignments here and conditionalize it on absence of exception
18411 handlers.
18412 (Analyze_Exception_Handlers): Small code reorganization of error
18413 detection code, for new handling of formal packages.
18414
184152006-10-31 Ed Schonberg <schonberg@adacore.com>
18416 Hristian Kirtchev <kirtchev@adacore.com>
6f7f72f9
EB
18417
18418 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
70198b9f
AC
18419 that has been constant-folded, preserve information of original tree,
18420 for ASIS uses.
18421 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18422 generated private extension declaration if the formal derived type is
18423 synchronized. Carry synchronized present over to the generated private
18424 extension.
18425 (Validate_Derived_Type_Instance): Ensure that the actual of a
18426 synchronized formal derived type is a synchronized tagged type.
18427 (Instantiate_Formal_Package): When creating the instantiation used to
18428 validate the actual package of a formal declared without a box, check
18429 whether the formal itself depends on a prior actual.
18430 (Instantiate_Formal_Subprogram): Create new entities for the defining
18431 identifiers of the formals in the renaming declaration, for ASIS use.
18432 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18433 a renaming declaration or a subtype declaration for an actual in an
18434 instance, capture location information of declaration in generic, for
18435 ASIS use.
18436 (Instantiate_Formal_Package): Add comments on needed additional tests.
18437 AI-317 (partial parametrization) is fully implemented.
18438 (Validate_Private_Type_Instance): Add check for actual which
18439 must have preelaborable initialization
18440 Use new // insertion for some continuation messages
18441 (Analyze_Formal_Object_Declaration): Change usage of Expression to
18442 Default_Expression. Add type retrieval when the declaration has an
18443 access definition. Update premature usage of incomplete type check.
18444 (Check_Access_Definition): New subsidiary routine. Check whether the
18445 current compilation version is Ada 05 and the supplied node has an
18446 access definition.
18447 (Instantiate object): Alphabetize local variables. Handle the creation
18448 of new renaming declarations with respect to the kind of definition
18449 used - either an access definition or a subtype mark. Guard against
18450 unnecessary error message in the context of anonymous access types after
18451 they have been resolved. Add check for required null exclusion in a
18452 formal object declaration.
18453 (Switch_View): A private subtype of a non-private type needs to be
18454 switched (the base type can have been switched without its private
18455 dependents because of the last branch of Check_Private_View.
18456 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18457 value from BT.
18458 (Instantiate_Type): Emit an error message whenever a class-wide type of
18459 a tagged incomplete type is used as a generic actual.
18460 (Find_Actual_Type): Extend routine to handle a component type in a child
18461 unit that is imported from a formal package in a parent.
18462 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18463 agree on constrainedness, rather than checking against ultimate ancestor
18464 (Instantiate_Subprogram_Body): Create a cross-reference link to the
18465 generic body, for navigation purposes.
18466
184672006-10-31 Robert Dewar <dewar@adacore.com>
18468 Thomas Quinot <quinot@adacore.com>
18469
18470 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18471 type.
18472 (New_Stream_Subprogram): When processing an attribute definition clause
18473 for a stream-oriented subprogram, record an entity node occurring at
18474 the point of clause to use for checking the visibility of the clause,
18475 as defined by 8.3(23) as amended by AI-195.
18476 (New_Stream_Subprogram): New procedure, factoring behaviour from both
18477 New_Stream_Function and New_Stream_Procedure.
18478 (New_Stream_Function, New_Stream_Procedure): Removed.
18479 (Analyze_Attribute_Definition_Clause, case Address): Check new
18480 Alignment_Check check
18481
184822006-10-31 Ed Schonberg <schonberg@adacore.com>
18483 Javier Miranda <miranda@adacore.com>
18484 Robert Dewar <dewar@adacore.com>
18485
18486 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18487 generate the same errors compiling under -gnatc.
18488 (Try_Object_Operation): If no candidate interpretation succeeds, but
18489 there is at least one primitive operation with the right name, report
18490 error in call rather than on a malformed selected component.
18491 (Analyze_Selected_Component): If the prefix is an incomplete type from
18492 a limited view, and the full view is available, use the full view to
18493 determine whether this is a prefixed call to a primitive operation.
18494 (Operator_Check): Verify that a candidate interpretation is a binary
18495 operation before checking the type of its second formal.
18496 (Analyze_Call): Add additional warnings for function call contexts not
18497 yet supported.
18498 (Analyze_Allocator): Move the check for "initialization not allowed for
18499 limited types" after analyzing the expression. This is necessary,
18500 because OK_For_Limited_Init looks at the structure of the expression.
18501 Before analysis, we don't necessarily know what sort of expression it
18502 is. For example, we don't know whether F(X) is a function call or an
18503 indexed component; the former is legal in Ada 2005; the latter is not.
18504 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18505 were missing. We also didn't handle qualified expressions. Now also
18506 allow function calls. Use new common routine OK_For_Limited_Init.
18507 (Analyze_Type_Conversion): Do not perform some legality checks in an
18508 instance, because the error message will be redundant or spurious.
18509 (Analyze_Overloaded_Selected_Component): Do not do style check when
18510 setting an entity, since we do not know it is the right entity yet.
18511 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18512 (Analyze_Overloaded_Selected_Component): Same change
18513 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18514 since regular incomplete subtypes are transformed into corresponding
18515 subtypes of their full views.
18516 (Complete_Object_Operation): Treat name of transformed subprogram call
18517 as coming from source, for browsing purposes.
18518 (Try_Primitive_Operation): If formal is an access parameter, compare
18519 with base type of object to determine whether it is a primitive
18520 operation.
18521 (Operator_Check): If no interpretation of the operator matches, check
18522 whether a use clause on any candidate might make the operation legal.
18523 (Try_Class_Wide_Operation): Check whether the first parameter is an
18524 access type whose designated type is class-wide.
18525
185262006-10-31 Robert Dewar <dewar@adacore.com>
18527 Ed Schonberg <schonberg@adacore.com>
18528 Gary Dismukes <dismukes@adacore.com>
18529
18530 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18531 warn on infinite loops.
18532 Add \\ to some continuation messages
18533 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18534 (Process_Bounds): If the bounds are integer literals that result from
18535 constant-folding, and they carry a user-defined type, preserve that type
18536 rather than treating this as an integer range.
18537 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18538 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18539 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18540 left hand side of assignment.
18541 (Analyze_Assignment): Add suport to manage assigments to the attribute
18542 priority of a protected object.
18543 (Check_Possible_Current_Value_Condition): Allow fully qualified names
18544 not just identifiers.
18545 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18546 or AND THEN for possible tracking.
18547 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18548 case of while loops so we can track values in the loop body.
18549
185502006-10-31 Ed Schonberg <schonberg@adacore.com>
18551 Hristian Kirtchev <kirtchev@adacore.com>
18552 Bob Duff <duff@adacore.com>
6f7f72f9 18553
70198b9f
AC
18554 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18555 procedure cannot be a protected operation (it is a basic_declaration,
18556 not a subprogram_declaration).
18557 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18558 Subp. Add logic for entry processing.
18559 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18560 Determine whether an entry or subprogram of a protected or task type
18561 override an inherited primitive of an implemented interface.
18562 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18563 Update the actual used in calls to Check_Overriding_Indicator.
18564 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18565 generate the proper reference to the parent unit, for cross-reference.
18566 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18567 Is_Formal.
18568 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18569 (Add_Extra_Formal): Revise procedure to allow passing in associated
18570 entity, scope, and name suffix, and handle setting of the new
18571 Extra_Formals field.
18572 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18573 pass new parameters. Add support for adding the new extra access formal
18574 for functions whose calls are treated as build-in-place.
18575 (Analyze_A_Return_Statement): Correct casing in error message.
18576 Move Pop_Scope to after Analyze_Function_Return, because an extended
18577 return statement really is a full-fledged scope. Otherwise, visibility
18578 doesn't work right. Correct use of "\" for continuation messages.
18579 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18580 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18581 the node doesn't get properly marked as analyzed.
18582 (Analyze_Subprogram_Body): If subprogram is a function that returns
18583 an anonymous access type that denotes a task, build a Master Entity
18584 for it.
18585 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18586 proper usage of null exclusion in a result definition.
18587 (Process_Formals): Code cleanup and new error message.
18588 (Process_Formals): Detect incorrect application of null exclusion to
18589 non-access types.
18590 (Conforming_Types): Handle conformance between [sub]types and itypes
18591 generated for entities that have null exclusions applied to them.
18592 (Maybe_Primitive_Operation): Add an additional type retrieval when the
18593 base type is an access subtype. This case arrises with null exclusions.
18594 (New_Overloaded_Entity): Do not remove the overriden entity from the
18595 homonym chain if it corresponds with an abstract interface primitive.
18596 (Process_Formals): Replace membership test agains Incomplete_Kind with a
18597 call to the synthesized predicate Is_Incomplete_Type.
18598 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18599 primitives.
18600 (Analyze_Subprogram_Declaration): Check that abstract interface
18601 primitives are abstract or null.
18602 (Analyze_Subprogram_Specification): Remove previous check for abstract
18603 interfaces because it was not complete.
18604 (Has_Interface_Formals): Removed.
18605
186062006-10-31 Ed Schonberg <schonberg@adacore.com>
18607 Javier Miranda <miranda@adacore.com>
18608
18609 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18610 of Analyze_Package_Body, to create Itype references for anonymous
18611 access types created in the package declaration, whose designated types
18612 may have only a limited view.
18613 (Analyze_Package_Specification): For the private part of a nested
18614 package, install private_with_clauses of enclosing compilation unit if
18615 we are in its visible part.
18616 (Declare_Inherited_Private_Subprograms): Complete barrier
18617 to ensure that the primitive operation has an alias to some parent
18618 primitive. This is now required because, after the changes done for the
18619 implementation of abstract interfaces, the contents of the list of
18620 primitives has entities whose alias attribute references entities of
18621 such list of primitives.
18622 (Analyze_Package_Specification): Simplify code that handles parent units
18623 of instances and formal packages.
18624 (Uninstall_Declarations): Check the convention consistency among
18625 primitive overriding operations of a tagged record type.
18626
186272006-10-31 Robert Dewar <dewar@adacore.com>
18628 Hristian Kirtchev <kirtchev@adacore.com>
18629 Javier Miranda <miranda@adacore.com>
18630 Ed Schonberg <schonberg@adacore.com>
6f7f72f9 18631
70198b9f
AC
18632 * sem_ch8.adb: Minor error msg rewording
18633 (Undefined): When checking for misspellings, invert arguments (to get
18634 expected and found set right)
18635 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18636 (Analyze_Generic_Renaming): Same fix
18637 (Use_One_Package): Do not take into account the internal entities of
18638 abstract interfaces during the analysis of entities that are marked
18639 as potentially use-visible.
18640 (Find_Type): Handle the case of an attribute reference for
18641 implementation defined attribute Stub_Type (simply let the analysis of
18642 the attribute reference rewrite it).
18643 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18644 type that appears in a Use_Type clause.
18645 (Analyze_Object_Renaming): Add support for renaming of the Priority
18646 attribute.
18647 (Find_Type): In Ada 2005, a task type can be used within its own body,
18648 when it appears in an access definition.
18649 (Analyze_Object_Renaming): Remove warning on null_exclusion.
18650 (Analyze_Object_Renaming): Introduce checks for required null exclusion
18651 in a formal object declaration or in a subtype declaration.
18652 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18653 (Check_Null_Exclusion): New local routine to
18654 Analyze_Subprogram_Renaming. Check whether the formals and return
18655 profile of a renamed subprogram have required null exclusions when
18656 their counterparts of the renaming already impose them.
18657 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18658 Determine whether an entity is inside a generic scope.
18659 (In_Open_Scope): First pass of documentation update.
18660 (Find_Expanded_Name): Add support for shadow entities associated with
18661 limited withed packages. This is required to handle nested packages.
18662 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18663 that makes a renaming of a limited withed package illegal.
18664
186652006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18666 Ed Schonberg <schonberg@adacore.com>
18667
18668 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18669 Check_Overriding_Indicator.
18670 (Analyze_Task_Definition): Ditto.
18671 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18672 (Check_Overriding_Indicator): To find overridden interface operation,
18673 examine only homonyms that have an explicit subprogram declaration, not
18674 inherited operations created by an unrelated type derivation.
18675 (Check_Overriding_Indicator): When checking for the presence of "null"
18676 in a procedure, ensure that the queried node is a procedure
18677 specification.
18678 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18679 type when the formal is an access to variable.
18680 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18681 (Analyze_Task_Type): Same addition
18682 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18683 provide navigation capabilities for entries.
18684
186852006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18686 Ed Schonberg <schonberg@adacore.com>
18687 Javier Miranda <miranda@adacore.com>
18688 Gary Dismukes <dismukes@adacore.com>
18689
18690 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18691 inherited from an interface ancestor by another interface in the
18692 context of an instance as 'late'.
18693 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18694 of a call to a function that dispatches on access result.
18695 (Check_Dispatching_Operation): In case of late overriding of a primitive
18696 that covers abstract interface subprograms we register it in all the
18697 secondary dispatch tables associated with abstract interfaces.
18698 (Check_Dispatching_Call): Add check that a dispatching call is not made
18699 to a function with a controlling result of a limited type. This is a
18700 current implementation restriction.
18701 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18702 (Check_Dispatching_Operation): Do no emit a warning if the controlling
18703 argument is an interface type that is a generic formal.
18704 (Is_Interface_Subprogram): Removed.
18705 (Check_Dispatching_Operation): If the subprogram is not a dispatching
18706 operation, check the formals to handle the case in which it is
18707 associated with an abstract interface type.
18708
187092006-10-31 Robert Dewar <dewar@adacore.com>
18710 Ed Schonberg <schonberg@adacore.com>
18711
18712 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18713 Add new calls to this procedure during traversal
18714 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18715 another unit if expansion is disabled.
18716
187172006-10-31 Robert Dewar <dewar@adacore.com>
18718
18719 * sem_eval.adb (Compile_Time_Compare): Make use of information from
18720 Current_Value in the conditional case, to evaluate additional
18721 comparisons at compile time.
18722
187232006-10-31 Ed Schonberg <schonberg@adacore.com>
18724 Hristian Kirtchev <kirtchev@adacore.com>
18725 Javier Miranda <miranda@adacore.com>
18726
18727 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18728 subprogram type to provide better diagnostics in case of ambiguity.
18729 (Covers): Handle coverage of formal and actual anonymous access types in
18730 the context of generic instantiation.
18731 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18732 abstract interface types; this is required to handle concurrent types
18733 with discriminants and abstract interface types.
18734 (Covers): Include type coverage of both regular incomplete subtypes and
18735 incomplete subtypes of incomplete type visibles through a limited with
18736 clause.
18737
187382006-10-31 Robert Dewar <dewar@adacore.com>
18739 Hristian Kirtchev <kirtchev@adacore.com>
18740 Ed Schonberg <schonberg@adacore.com>
6f7f72f9
EB
18741
18742 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
70198b9f
AC
18743 messages for entities in packages which are not used.
18744 (Collect_Synchronized_Interfaces): New procedure.
18745 (Overrides_Synchronized_Primitive): New function.
18746 (Denotes_Discriminant): Extend predicate to apply to task types.
18747 Add missing continuation marks in error msgs
18748 (Unqualify): New function for removing zero or more levels of
18749 qualification from an expression. There are numerous places where this
18750 ought to be used, but we currently only deal properly with zero or one
18751 level.
18752 (In_Instance); The analysis of the actuals in the instantiation of a
18753 child unit is not within an instantiation, even though the parent
18754 instance is on the scope stack.
18755 (Safe_To_Capture_Value): Exclude the case of variables that are
18756 renamings.
18757 (Check_Obsolescent): Removed
18758 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18759 is an aliased view, even when rewritten as a reference to the target
18760 object in an assignment.
18761 (Get_Subprogram_Entity): New function
18762 (Known_To_Be_Assigned): New function
18763 (Type_Access_Level): Compute properly the access level of a return
18764 subtype that is an anonymous access type.
18765 (Explain_Limited_Type): Correct use of "\" for continuation messages.
18766 (Is_Transfer): The new extended_return_statement causes a transfer of
18767 control.
18768 (Has_Preelaborable_Initialization): New function
18769 (Has_Null_Exclusion): New function. Given a node N, determine whether it
18770 has a null exclusion depending on its Nkind.
18771 Change Is_Lvalue to May_Be_Lvalue
18772 (May_Be_Lvalue): Extensive additional code to deal with subprogram
18773 arguments (IN parameters are not Lvalues, IN OUT parameters are).
18774 (Safe_To_Capture_Value): Extend functionality so it can be used for
18775 the current value condition case.
18776 (Has_Compatible_Alignment): New function
18777 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18778 objects to handle the Ada 2005 case, where aliasedness no longer implies
18779 that the object is constrained. In particular, for dereferenced names,
18780 the designated object must be assumed to be unconstrained.
18781 (Kill_Current_Values): Properly deal with the case where we encounter
18782 a loop in the scope chain.
18783 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18784 a value.
18785 (Compile_Time_Constraint_Error): Improve error message in error case
18786
18787 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18788 associated with entities of abstract interface primitives.
18789 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18790
187912006-10-31 Robert Dewar <dewar@adacore.com>
18792
9e81dbc7 18793 * s-osinte-tru64.adb:
70198b9f
AC
18794 Mark Asm statements Volatile to prevent warnings (seems a
18795 reasonable change anyway)
18796 Fixes new warnings
18797
18798 * s-mastop-irix.adb: Add Volatile to Asm statements
18799 Suppresses warning, and seems appropriate in any case
18800
18801 * s-osinte-vms.adb: Add Volatile to Asm statement
18802
18803 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18804
18805 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18806 returned.
18807 Add call to Check_Code_Statement
18808
188092006-10-31 Robert Dewar <dewar@adacore.com>
18810 Ed Schonberg <schonberg@adacore.com>
18811 Bob Duff <duff@adacore.com>
18812
18813 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18814 Synchronized_Present): Add Formal_Derived_Type_Definition and
18815 Private_Extension_Declaration to the list of assertions.
18816 (Is_Entry_Barrier_Function): New flag
18817 (Has_Self_Reference): New flag on aggregates, to indicate that they
18818 contain a reference to the enclosing type, inserted through a default
18819 initialization.
18820 (Next_Rep_Item): Move from Node4 to Node5.
18821 (Entity): Add this field for N_Attribute_Definition_Clause.
18822 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18823 (N_Return_Object_Declaration): Remove this node kind. We now use
18824 N_Object_Declaration instead.
18825 (Actual_Designated_Subtype): Move to a different place to make room in
18826 N_Extended_Return_Statement.
18827 (Procedure_To_Call): Move to a different place to make room in
18828 N_Extended_Return_Statement.
18829 (Return_Type): Removed this field to make room in return statements
18830 (both kinds).
18831 (Return_Statement_Entity): New field in return statements, in part to
18832 replace Return_Type, and in part to support the fact that return
18833 statements are now pushed on the scope stack during semantic analysis.
18834 (Return_Object_Declarations): New field to support extended return
18835 statements.
18836 (N_Extended_Return_Statement): New node for extended_return_statement
18837 nonterminal.
18838 (N_Return_Object_Declaration): New node for part of
18839 extended_return_statement nonterminal. Needed because all the necessary
18840 fields won't fit in N_Extended_Return_Statement.
18841 Generic_associations now carry the Box_Present flag, to indicate a
18842 default for an actual in a partially parametrized formal package.
18843
6f7f72f9 18844 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
70198b9f
AC
18845 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18846 and for the new predefined dispatching policies: EDF_Across_Priorities,
18847 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18848 Introduce new name Stub_Type for implementation defined attribute.
18849 Add pragma Preelaborable_Initialization
18850 Add entry for Priority attribute.
18851 Add Pragma_Wide_Character_Encoding
18852 (Get_Convention_Name): Given a convention id, this function returns the
18853 corresponding name id from the names table.
18854
188552006-10-31 Ed Schonberg <schonberg@adacore.com>
18856 Robert Dewar <dewar@adacore.com>
18857 Bob Duff <duff@adacore.com>
18858
18859 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18860 print null exclusion twice in the case of an access definition,
18861 Implement new -gnatL switch
18862 Remove N_Return_Object_Declaration. We now use
18863 N_Object_Declaration instead. Implement the case for
18864 N_Extended_Return_Statement. Alphabetize the cases.
18865 Add cases for new nodes N_Extended_Return_Statement and
18866 N_Return_Object_Declaration. The code is not yet written.
18867 Update the output for N_Formal_Object_Declaration
18868 and N_Object_Renaming_Declaration.
18869 (Write_Itype): Account for the case of a modular integer subtype whose
18870 base type is private.
18871
188722006-10-31 Arnaud Charlet <charlet@adacore.com>
18873
18874 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18875 Remove elaboration code, now done in the binder.
18876
18877 * s-rident.ads: Make this unit Preelaborate.
18878 (No_Restrictions): New constant used to clean up code and follow
18879 preelaborate constraints.
18880
9e81dbc7 18881 * s-stalib.adb:
70198b9f
AC
18882 Add System.Restrictions dependence, referenced directly from the
18883 binder generated file.
18884
188852006-10-31 Gary Dismukes <dismukes@adacore.com>
18886
18887 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18888 True when AAMP extended floating-point is in use (48-bit). Change type
18889 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18890 the two byte array types on AFloat. Change type of IV_Ilf overlay
18891 variable from Byte8 to ByteLF. Add appropriate initializations of
18892 floating-point overlays for AAMP cases.
18893
188942006-10-31 Javier Miranda <miranda@adacore.com>
18895
18896 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18897 (Get_Ceiling): New subprogram that returns
18898 the ceiling priority of the protected object.
18899 (Set_Ceiling): New subprogram that sets the new ceiling priority of
18900 the protected object.
18901
18902 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18903
18904 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18905
189062006-10-31 Jose Ruiz <ruiz@adacore.com>
18907
18908 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18909 requeuing to the same protected object to give higher priority tasks
18910 the opportunity to execute.
18911
189122006-10-31 Robert Dewar <dewar@adacore.com>
18913
18914 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18915 add more precise check for the character sequence that follows '[' to
18916 avoid possible confusion in case if '[' is the last character of a
18917 string literals.
18918 (Scan_Wide): Always allow brackets encoding
18919
189202006-10-31 Olivier Hainque <hainque@adacore.com>
18921
18922 * s-stchop.ads: make this unit preelaborate. This is desirable in
18923 general and made mandatory by the use of this unit by s-taprop which
18924 is itself preelaborate.
18925
18926 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18927 Td_Events component.
18928
189292006-10-31 Vincent Celier <celier@adacore.com>
18930
18931 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18932 in file names.
18933
189342006-10-31 Vincent Celier <celier@adacore.com>
18935
18936 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18937
189382006-10-31 Vincent Celier <celier@adacore.com>
18939
18940 * makegpr.adb (Check_Compilation_Needed): Take into account path names
18941 with spaces.
18942 (Check_Compilation_Needed): When checking a C or C++ source, do not
18943 resolve symbolic links.
18944 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18945 When not in verbose mode and Ellipse is True, display "..." for the
18946 first argument with Display set to False.
18947 (Build_Global_Archive): Always set Display True for the first object
18948 file. Call Display_Command with Ellipse set to True.
18949
189502006-10-31 Matt Heaney <heaney@adacore.com>
18951
18952 * a-crbtgo.ads: Commented each subprogram
18953
18954 * a-crbtgo.adb: Added reference to book from which algorithms were
18955 adapted.
18956
6f7f72f9 18957 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
70198b9f
AC
18958 indicate which child.
18959 (Generic_Conditional_Insert): changed parameter name from "Success" to
18960 "Inserted".
18961 (Generic_Unconditional_Insert_With_Hint): improved algorithm
18962
18963 * a-coorse.adb (Replace_Element): changed parameter name in call to
18964 conditional insert operation.
18965
18966 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18967
18968 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18969 Generic_Iteration
18970
18971 * a-ciorse.adb (Replace_Element): changed parameter name in call to
18972 conditional insert operation.
18973
18974 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18975 Generic_Iteration.
18976
18977 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18978 instead of mode inout.
18979
18980 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18981 draft
18982 (Generic_Read): preserve existing buckets array if possible
18983 (Generic_Write): don't send buckets array length anymore
18984
18985 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18986 instead of mode inout.
18987
18988 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18989 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18990
18991 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18992 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18993 (Replace_Element): local operation is now an instantiation
18994
18995 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18996 check current length.
18997 (Generic_Replace_Element): new operation
18998
189992006-10-31 Doug Rupp <rupp@adacore.com>
19000
19001 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
19002 Call TBK$SYMBOLIZE without omitting parameters.
19003
190042006-10-31 Vincent Celier <celier@adacore.com>
19005
19006 * symbols-processing-vms-ia64.adb,
19007 symbols-processing-vms-alpha.adb (Process): Do not include symbols
19008 that come from generic instantiations in bodies.
19009
190102006-10-31 Pat Rogers <rogers@adacore.com>
19011
9e81dbc7 19012 * a-rttiev.ads, a-rttiev.adb:
70198b9f
AC
19013 This is a significant redesign primarily for the sake of automatic
19014 timer task termination but also to fix a design flaw.
19015 Therefore we are now using an RTS lock, instead of a protected
19016 object, to provide mutual exclusion to the queue of pending events
19017 and the type Timing_Event is no longer a protected type.
19018
190192006-10-31 Robert Dewar <dewar@adacore.com>
19020 Cyrille Comar <comar@adacore.com>
19021 Ben Brosgol <brosgol@adacore.com>
19022
19023 * debug.adb: Update flags documentation
19024
6f7f72f9
EB
19025 * gnat_ugn.texi: Add documentation for new -gnatwq switch
19026 Clean up documentation for several other warning switches
19027 Clarify how task stack size can be specified with various
19028 versions of Windows.
19029 Add note that -gnatVo includes ranges including loops
70198b9f
AC
19030 Add documentation for -gnatL switch
19031 Add note on elaboration warning for initializing variables
19032 Add documentation for new -gnatwt warning switch
19033 Document new form of pragma Warnings (On|Off, string)
19034 Add comment on use of pragma Warnings to control warnings
19035 Add documentation for -gnatjnn switch
19036 Modify section on interfacing with C for VMS 64-bit.
19037 Add doc for -gnatVe/E
19038 Add documentation of new warning flags -gnatww/-gnatwW
19039 Add warnings about address clause overlays to list of warnings
19040 (Exception Handling Control): Document that the option --RTS must be
19041 used consistently for gcc and gnatbind.
19042 Clarify that inlining is not always possible
19043 Update documentation on pragma Unchecked_Union.
19044
9e81dbc7 19045 * gnat_rm.texi:
70198b9f
AC
19046 Add documentation for new extended version of pragma Obsolescent
19047 Add documentation for implementation defined attribute 'Stub_Type.
19048 Add note on use of Volatile in asm statements
19049 Add documentation on use of pragma Unreferenced in context clause
19050 Document new form of pragma Warnings (On|Off, pattern)
19051 Document pragma Wide_Character_Encoding
19052 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
19053 enforced if code generation is active.
19054 Add section on pragma Suppress to document GNAT specific check
19055 Alignment_Check
19056 Clarify difference between No_Dispatching_Calls & No_Dispatch.
19057 Add documentation for pragma Restrictions (No_Elaboration_Code)
19058
9e81dbc7 19059 * gnat-style.texi:
70198b9f
AC
19060 Add comments on layout of subprogram local variables in the
19061 presence of nested subprograms.
19062
6f7f72f9 19063 * ug_words: Resync.
70198b9f
AC
19064
19065 * elists.ads: Minor reformatting
19066 Node returns Node_Or_Entity_Id (doc change only)
19067
19068 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
19069
19070 * g-arrspl.ads (Create): Update comments.
19071
19072 * sem.ads: Add details on the handling of the scope stack.
19073
6f7f72f9 19074 * usage.adb: Update documentation.
70198b9f 19075
9e81dbc7 19076 * validsw.ads, validsw.adb:
70198b9f
AC
19077 Add definition of Validity_Check_Components and implement -gnatVe/E
19078
6f7f72f9 19079 * vms_data.ads: Add missing VMS qualifiers.
70198b9f
AC
19080
19081 * s-addope.ads: Add documentation on overflow and divide by zero
19082
190832006-10-31 Robert Dewar <dewar@adacore.com>
19084 Thomas Quinot <quinot@adacore.com>
19085 Arnaud Charlet <charlet@adacore.com>
19086
19087 * fmap.adb: Put routines in alpha order
19088
19089 * g-boumai.ads: Remove redundant 'in' keywords
19090
19091 * g-cgi.adb: Minor reformatting
19092
19093 * g-cgi.ads: Remove redundant 'in' keywords
19094
19095 * get_targ.adb: Put routines in alpha order
19096
19097 * prj-attr.ads: Minor reformatting
19098
19099 * s-atacco.ads: Minor reformatting
19100
19101 * scn.adb: Put routines in alpha order
19102
19103 * sinput-l.adb: Minor comment fix
19104
19105 * sinput-p.adb: Minor comment fix
19106
19107 * s-maccod.ads: Minor reformatting
19108
19109 * s-memory.adb: Minor reformatting
19110
19111 * s-htable.adb: Fix typo in comment.
19112
19113 * s-secsta.adb: Minor comment update.
19114
19115 * s-soflin.adb: Minor reformatting
19116
9e81dbc7 19117 * s-stoele.ads:
70198b9f
AC
19118 Add comment about odd qualification in Storage_Offset declaration
19119
9e81dbc7 19120 * s-strxdr.adb:
70198b9f
AC
19121 Remove unnecessary 'in' keywords for formal parameters.
19122
19123 * treeprs.adt: Minor reformatting
19124
19125 * urealp.adb: Put routines in alpha order
19126
19127 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19128 taking string.
19129
19130 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19131
19132 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19133
19134 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19135 workaround as on other platforms.
19136
19137 * g-eacodu-vms.adb: Remove redundant 'in' keywords
19138 * g-expect-vms.adb: Remove redundant 'in' keywords
19139
19140 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19141 clear error message if the list-of-files file cannot be opened.
19142
19143 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19144 equality operator is always visible.
19145
19146 * lang.opt: Woverlength-strings: New option.
19147
9e81dbc7 19148 * nmake.adt:
70198b9f
AC
19149 Update copyright, since nmake.ads and nmake.adb have changed.
19150
19151 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19152 (Binder_Output_Time_Stamps_Set): removed.
19153 (Old_Binder_Output_Time_Stamp): idem.
19154 (New_Binder_Output_Time_Stamp): idem.
19155 (Recording_Time_From_Last_Bind): idem.
19156 (Recording_Time_From_Last_Bind): Make constant.
19157
19158 * output.ads, output.adb (Write_Str): Allow LF characters
19159 (Write_Spaces): New procedure
19160
19161 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19162
19163 * inline.adb: Minor reformatting
19164
19165 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19166
19167 * s-mastop-vms.adb: Remove redundant 'in' keywords
19168
19169 * s-osprim-vms.adb: Remove redundant 'in' keywords
19170
19171 * s-trafor-default.adb: Remove redundant 'in' keywords
19172
19173 * 9drpc.adb: Remove redundant 'in' keywords
19174
19175 * s-osinte-mingw.ads: Minor reformatting
19176
19177 * s-inmaop-posix.adb: Minor reformatting
19178
19179 * a-direio.ads: Remove quotes from Compile_Time_Warning message
19180
19181 * a-exexda.adb: Minor code reorganization
19182
19183 * a-filico.adb: Minor reformatting
19184
19185 * a-finali.adb: Minor reformatting
19186
19187 * a-nudira.ads: Remove quote from Compile_Time_Warning message
19188
19189 * a-numeri.ads: Minor reformatting
19190
19191 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19192
19193 * exp_pakd.ads: Fix obsolete comment
19194
19195 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19196 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19197 Probably not a bug, but certainly neater and more efficient.
19198
19199 * a-tienio.adb: Minor reformatting
19200
19201 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19202 Avoid assuming low bound of string is 1.
19203
19204 * gnatbind.adb: Change Bindusg to package and rename procedure as
19205 Display, which now ensures that it only outputs usage information once.
19206 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19207
19208 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19209 Table'First.
19210
19211 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19212 warning.
19213 (Match): Add pragma Assert to ensure that Matches'First is zero
19214
19215 * g-regpat.ads (Match): Document that Matches lower bound must be zero
19216
19217 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19218 documented preconditions (also kills warnings about bad indexes).
19219
19220 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19221 is 1.
19222 (Build_Import_Library): Ditto;
19223
19224 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19225
19226 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19227
19228 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19229 lower bound of choice table is 1.
19230
19231 * sem_case.ads (Analyze_Choices): Document that lower bound of
19232 Choice_Table is 1.
19233
19234 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19235 string is 1.
19236
19237 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19238 and add appropriate Assert pragma to suppress warnings.
19239
19240 * atree.h, atree.ads, atree.adb
19241 Change Elist24 to Elist25
19242 Add definitions of Field28 and Node28
19243 (Traverse_Field): Use new syntactic parent table in sinfo.
19244
19245 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19246
19247 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19248
19249 * exp_tss.adb: Put routines in alpha order
19250
19251 * fe.h: Remove redundant declarations.
19252
719bb4e3 192532006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
ed41063a 19254
c79efc4d
RÁE
19255 * utils.c (builtin_function): Rename to gnat_builtin_function.
19256 Move common code to add_builtin_function.
19257 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19258 gnat_builtin_function.
19259 * gigi.h (builtin_function): Rename to gnat_builtin_function.
19260 Change the signature.
19261
a8384928
BM
192622006-10-16 Brooks Moses <bmoses@stanford.edu>
19263
19264 * Makefile.in: Add TEXI2PDF definition.
19265 * Make-lang.in: Add "ada.pdf" target.
19266
2285b053
KH
192672006-10-03 Kazu Hirata <kazu@codesourcery.com>
19268
19269 * decl.c, utils.c: Fix comment typos.
c0a69967
KH
19270 * utils.c: Fix a typo.
19271
b55e7f34
EB
192722006-09-28 Eric Botcazou <ebotcazou@adacore.com>
19273
19274 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19275 on "pure" Ada subprograms if SJLJ exceptions are used.
19276 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19277 on the declaration node of JMPBUF_SAVE.
19278 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19279 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19280 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19281
9e94c78f 192822006-08-20 Laurent Guerby <laurent@guerby.net>
d2b40c09 19283
7a197678
EB
19284 PR ada/28716
19285 g-socket.adb (Bind_Socket): Call Set_Address.
19286
41d9adc7
EB
192872006-09-15 Eric Botcazou <ebotcazou@adacore.com>
19288
19289 PR ada/15802
19290 * decl.c (same_discriminant_p): New static function.
19291 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19292 subtype and we have discriminants, fix up the COMPONENT_REFs
19293 for the discriminants to make them reference the corresponding
19294 fields of the parent subtype after it has been built.
19295
21cc3719
RS
192962006-09-15 Roger Sayle <roger@eyesopen.com>
19297
19298 PR ada/18817
19299 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19300 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19301
6f2789da
OH
193022006-09-13 Olivier Hainque <hainque@adacore.com>
19303
19304 PR ada/29025
19305 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19306 of a SAVE_EXPR, just make the operand addressable/not-readonly and
19307 let the common gimplifier code make and propagate a temporary copy.
19308 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19309 out/in-out actuals and defer setting the addressable/readonly bits
19310 to the gimplifier.
19311
efaa616e
EB
193122006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19313
19314 PR ada/28591
19315 * decl.c (components_to_record): Defer emitting debug info for the
19316 record type associated with the variant until after we are sure to
19317 actually use it.
19318
2655f1c6
EB
193192006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19320
19321 PR ada/21952
19322 * gigi.h (gnat_internal_attribute_table): Declare.
19323 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19324 * utils.c (gnat_internal_attribute_table): New global variable.
19325 (builtin_function): Always call decl_attributes on the builtin.
19326 (handle_const_attribute): New static function.
19327 (handle_nothrow_attribute): Likewise.
19328
48779194
VR
193292006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19330
19331 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19332
8df7d439
EB
193332006-06-23 Olivier Hainque <hainque@adacore.com>
19334
19335 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19336 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19337
83fdc7c4 193382006-06-20 James A. Morrison <phython@gcc.gnu.org>
6f7f72f9 19339 Eric Botcazou <ebotcazou@adacore.com>
83fdc7c4
JM
19340
19341 PR ada/18692
19342 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
19343 check-gnat into check-acats.
19344
5f516f59
KB
193452006-06-17 Karl Berry <karl@gnu.org>
19346
6f7f72f9 19347 * gnat-style.texi (@dircategory): Use "Software development"
5f516f59
KB
19348 instead of "Programming", following the Free Software Directory.
19349
ce0d1b88
JDA
193502006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19351
19352 PR ada/27944
19353 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19354
9e94c78f 193552006-06-06 Laurent Guerby <laurent@guerby.net>
8c60f779 19356
6f7f72f9
EB
19357 PR ada/27769
19358 mlib-utl.adb: Use Program_Name.
19359
ce2e12c2
KH
193602006-05-28 Kazu Hirata <kazu@codesourcery.com>
19361
19362 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19363 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19364 trans.c, utils.c: Fix comment typos. Follow spelling
19365 conventions.
19366 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
19367 conventions.
19368
ba4ac682
EB
193692006-05-19 Nicolas Setton <setton@adacore.com>
19370
19371 * misc.c (gnat_dwarf_name): New function.
19372 (LANG_HOOKS_DWARF_NAME): Define to it.
19373
05b44921
L
193742006-05-14 H.J. Lu <hongjiu.lu@intel.com>
19375
19376 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19377 (ada/misc.o): Likewise.
19378 (ada/utils.o): Likewise.
19379
a3bd7058
AJ
193802006-04-08 Aurelien Jarno <aurel32@debian.org>
19381
19382 * Makefile.in: Add Ada support for GNU/kFreeBSD.
19383 * s-osinte-kfreebsd-gnu.ads: New file.
19384
ad3a7ce3
CD
193852006-03-29 Carlos O'Donell <carlos@codesourcery.com>
19386
19387 * Make-lang.in: Rename docdir to gcc_docdir.
19388
936a6fa7
EB
193892006-03-04 Eric Botcazou <ebotcazou@adacore.com>
19390
19391 * gigi.h (get_ada_base_type): Delete.
19392 * utils2.c (get_ada_base_type): Likewise.
19393 * trans.c (convert_with_check): Operate in the real base type.
19394
93f978b7
RK
193952006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19396
19397 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19398
434aeebb
RS
193992006-03-02 Richard Sandiford <richard@codesourcery.com>
19400
19401 * utils.c (create_var_decl): Use have_global_bss_p when deciding
19402 whether to make the decl common.
19403
719bb4e3 194042006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
93f978b7 19405
ed41063a 19406 * Make-lang.in (Ada): Remove.
9d29a5b7
RE
19407 (.PHONY): Remove Ada
19408
c63f730e
AC
194092006-02-17 Ed Schonberg <schonberg@adacore.com>
19410
19411 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19412 aggregate, check the interpretations of the other operand to find one
19413 that may be a boolean array.
19414
19415 (Analyze_Selected_Component): Fix flow-of-control typo in case where
19416 the prefix is a private extension.
19417
194182006-02-17 Eric Botcazou <botcazou@adacore.com>
19419
19420 PR ada/26315
c63f730e
AC
19421 * utils2.c (find_common_type): If both input types are BLKmode and
19422 have the same constant size, keep using the first one.
19423
19424 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19425
19426 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19427
19428 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19429
194302006-02-17 Jose Ruiz <ruiz@adacore.com>
19431
9e81dbc7
AS
19432 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19433 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19434 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
c63f730e
AC
19435 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19436 Abort_Defer/Undefer pairs to avoid the possibility of a task being
19437 aborted while owning a lock.
19438
194392006-02-17 Javier Miranda <miranda@adacore.com>
19440 Robert Dewar <dewar@adacore.com>
19441
19442 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19443 through an access to class-wide interface we force the displacement of
19444 the pointer to the allocated object to reference the corresponding
19445 secondary dispatch table.
19446 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19447 if Long_Shifts are supported on the target, even if 64 bit divides
19448 are not supported (configurable run time mode).
19449 (Expand_N_Type_Conversion): Do validity check if validity checks on
19450 operands are enabled.
19451 (Expand_N_Qualified_Expression): Do validity check if validity checks
19452 on operands are enabled.
19453
194542006-02-17 Ed Schonberg <schonberg@adacore.com>
19455
19456 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19457 must be materialized when the renamed expression is an explicit
19458 dereference.
19459
194602006-02-17 Ed Schonberg <schonberg@adacore.com>
19461
19462 * freeze.adb (Statically_Discriminated_Components): Return false if
19463 the bounds of the type of the discriminant are not static expressions.
19464
19465 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19466 the bounds of the discriminant type are not static.
19467
194682006-02-17 Robert Dewar <dewar@adacore.com>
19469
19470 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19471 then we close To if it is valid.
19472
194732006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19474
19475 * init.c (facility_resignal_table): new array
19476 (__gnat_default_resignal_p): enhance default predicate to resignal if
19477 VMS condition has one of the predefined facility codes.
19478
194792006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19480
19481 * Makefile.in: Use VMS64 specialized versions of several units in
19482 Interfaces.C hierarchy to be compatible with HP C default size choices.
19483 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19484
194852006-02-17 Ed Schonberg <schonberg@adacore.com>
19486
19487 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19488 instantiation, the corresponding entity is the related_instance of the
19489 wrapper package created for the instance.
19490
194912006-02-17 Ed Schonberg <schonberg@adacore.com>
19492
19493 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19494 the current instance is nested within another instance in a child unit.
19495
194962006-02-17 Javier Miranda <miranda@adacore.com>
19497 Ed Schonberg <schonberg@adacore.com>
19498
19499 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19500 type we cannot inherit the primitive operations; we inherit the
19501 Corresponding_Record_Type (which has the list of primitive operations).
19502 (Check_Anonymous_Access_Types): When creating anonymous access types for
19503 access components, use Rewrite in order to preserve the tree structure,
19504 for ASIS use.
19505 (Analyze_Object_Declaration): For limited types with access
19506 discriminants with defaults initialized by an aggregate, obtain
19507 subtype from aggregate as for other mutable types.
19508 (Derived_Type_Declaration): If the derived type is a limited interface,
19509 set the corresponding flag (Is_Limited_Record is not sufficient).
19510
195112006-02-17 Ed Schonberg <schonberg@adacore.com>
19512
19513 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19514 to inline a function that returns an unconstrained type, the return
19515 expression must be the first variable declared in the body of the
19516 function.
19517
195182006-02-17 Javier Miranda <miranda@adacore.com>
19519
19520 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19521 abstract interface type, the static analysis is not enough to know if
19522 the interface is implemented or not by the source tagged type. Hence
19523 we must pass the work to the expander to generate the required code to
19524 evaluate the conversion at run-time.
19525 (Resolve_Equality_Op): Do not apply previous
19526 transformation if expansion is disasbled, to prevent anomalies when
19527 locating global references in a generic unit.
19528
195292006-02-17 Vincent Celier <celier@adacore.com>
19530
19531 * snames.ads, snames.adb: New standard names for new project attributes:
19532 archive_builder, archive_indexer, compiler_pic_option,
19533 config_body_file_name, config_body_file_name_pattern,
19534 config_file_switches, config_file_unique, config_spec_file_name,
19535 config_spec_file_name_pattern, default_builder_switches,
19536 default_global_compiler_switches, default_language,
19537 dependency_file_kind, global_compiler_switches, include_path,
19538 include_path_file, language_kind, linker_executable_option,
19539 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19540 roots, runtime_project.
19541
195422006-02-17 Matthew Heaney <heaney@adacore.com>
19543
9e81dbc7 19544 * a-convec.ads, a-convec.adb:
c63f730e
AC
19545 (operator "&"): handle potential overflow for large index types
19546 (Insert): removed Contraint_Error when using large index types
19547 (Insert_Space): removed Constraint_Error for large index types
19548 (Length): moved constraint check from Length to Insert
19549
19550 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19551 as not null access.
19552 Explicit raise statements now include an exception message.
19553 (operator "&"): handle potential overflow for large index types
19554 (Insert): removed Contraint_Error when using large index types
19555 (Insert_Space): removed Constraint_Error for large index types
19556 (Length): moved constraint check from Length to Insert
19557
195582006-02-17 Robert Dewar <dewar@adacore.com>
19559
19560 * s-wchcnv.adb: Document handling of [ on output (we do not change
19561 this to ["5B"] and the new comments say why not.
19562
9e81dbc7 19563 * gnat_ugn.texi:
c63f730e
AC
19564 Add note for -gnatVo that this now includes the cases of type
19565 conversions and qualified expressions.
19566 Add comments on handling of brackets encoding for Text_IO
19567
195682006-02-17 Ramon Fernandez <fernandez@adacore.com>
19569 Thomas Quinot <quinot@adacore.com>
19570 Robert Dewar <dewar@adacore.com>
19571 Javier Miranda <miranda@adacore.com>
19572
19573 * expander.adb: Fix typo in comment
19574
19575 * exp_pakd.adb: Fix typo
19576 Minor comment reformatting.
19577
19578 * g-dyntab.adb: Minor reformatting
19579
19580 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19581 aliased subprograms to look for the abstract interface subprogram.
19582
fd7927cd
EB
195832006-02-16 Eric Botcazou <ebotcazou@adacore.com>
19584
19585 * env.c (__gnat_setenv): Use size_t.
19586 (__gnat_unsetenv): Likewise.
19587 (__gnat_clearenv): Likewise.
19588
3f806915
AC
195892006-02-16 Arnaud Charlet <charlet@adacore.com>
19590
19591 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19592
cc26ad97
AC
195932006-02-13 Arnaud Charlet <charlet@adacore.com>
19594
19595 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19596 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19597 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19598 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19599 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19600 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19601 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19602 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19603 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19604 no longer used.
19605
196062006-02-13 Jose Ruiz <ruiz@adacore.com>
19607
19608 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19609 protection against race conditions is not needed.
19610 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19611 fallback handler.
19612 (Set_Specific_Handler): Add mutual exclusive access to the specific
19613 handler.
19614 (Specific_Handler): Add mutual exclusive access for retrieving the
19615 specific handler.
19616
19617 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19618 back handler.
19619
19620 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19621 Fall_Back_Handler and Specific_Handler.
19622
19623 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19624 termination handlers.
19625 Set two different owerflow depending on the maximal stack size.
19626
19627 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19628 protection against race conditions is not needed when executing the
19629 task termination handler.
19630
196312006-02-13 Robert Dewar <dewar@adacore.com>
19632
19633 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19634 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19635 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19636 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19637 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19638 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19639 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19640 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19641 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19642 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19643 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19644 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19645 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19646 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19647 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19648 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19649 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19650 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19651 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19652 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19653 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19654 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19655 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19656 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19657 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19658 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19659 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19660 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19661 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19662 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19663 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19664 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19665 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19666 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19667 reformatting.
19668
196692006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19670
19671 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19672 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19673 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19674 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19675 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19676 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19677 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19678 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19679 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19680
196812006-02-13 Arnaud Charlet <charlet@adacore.com>
19682
9e81dbc7
AS
19683 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19684 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19685 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19686 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19687 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
cc26ad97
AC
19688 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19689 replaced by anonymous access type.
19690 (pthread_sigmask): Now take an access sigset_t
19691
19692 * s-osinte-hpux.ads: Ditto.
19693 (pthread_mutex_t, pthread_cond_t): Update definitions to support
19694 properly 32 and 64 bit ABIs.
19695
196962006-02-13 Pascal Obry <obry@adacore.com>
19697
9e81dbc7
AS
19698 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19699 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
cc26ad97
AC
19700 s-taprop-linux.adb, s-taprop-solaris.adb,
19701 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19702 adjustement is already done when calling this routine.
19703
197042006-02-13 Pascal Obry <obry@adacore.com>
19705
19706 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19707 table to take advantage of the 16 priority levels available on Windows
19708 2000 and XP. On NT4 there are only 7 priority levels, this is properly
19709 supported by this new mapping.
19710
197112006-02-13 Nicolas Setton <setton@adacore.com>
19712
19713 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19714 (get_encoding): New subprogram. Extracts the encodings from an encoded
19715 Ada name.
19716
197172006-02-13 Pascal Obry <obry@adacore.com>
19718 Nicolas Roche <roche@adacore.com>
19719 Arnaud Charlet <charlet@adacore.com>
19720
19721 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19722 support.
19723 (__gnat_try_lock): Add unicode support by using a specific section on
19724 Windows.
19725 (__gnat_get_current_dir): Idem.
19726 (__gnat_open_read): Idem.
19727 (__gnat_open_rw): Idem.
19728 (__gnat_open_create): Idem.
19729 (__gnat_create_output_file): Idem.
19730 (__gnat_open_append): Idem.
19731 (__gnat_open_new): Idem.
19732 (__gnat_file_time_name): Idem.
19733 (__gnat_set_file_time_name): Idem.
19734 (__gnat_stat): Idem.
19735 (win32_no_block_spawn): Idem.
19736 (__gnat_locate_exec_on_path): Idem.
19737 (__gnat_opendir): New routine.
19738 (__gnat_closedir): Idem.
19739 (__gnat_readdir): Add new parameter length (pointer to int). Update
19740 implementation to use it and add specific Win32 code for Unicode
19741 support.
19742 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19743 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19744 (convert_addresses): Do not define this dummy routine on VMS.
19745
19746 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19747 runtime Unicode support will be activated.
19748 (S2WS): String to Wide-String conversion. This version just copy a
19749 string in non Unicode version.
19750 (WS2S): Wide-String to String conversion. This version just copy a
19751 string in non Unicode version.
19752
19753 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19754 (Open): Now import __gnat_opendir from adaint.c.
19755 (Read): Change the implementation to support unicode characters. It is
19756 not possible to use strlen() on Windows as this version supports only
19757 standard ASCII characters. So the length of the directory entry is now
19758 returned from the imported __gnat_readdir routine.
19759 Update copyright notice.
19760
19761 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19762 (opendir): Moved to adaint.c.
19763
19764 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19765 (Get_Directory): Fix wrong indexing.
19766 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19767 __gnat_getenv from env.c
19768 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19769 from env.c
19770
19771 * env.h, env.c: New file.
19772
19773 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19774 adaint.c by __gnat_getenv from env.c
19775
19776 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19777 adaint.c by __gnat_getenv from env.c
19778
19779 * Make-lang.in: Add env.o in the list of C object needed by gnat1
19780 and gnatbind.
19781 Update dependencies.
19782
197832006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19784 Olivier Hainque <hainque@adacore.com>
19785 Eric Botcazou <ebotcazou@adacore.com>
19786
19787 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
9e81dbc7 19788
cc26ad97
AC
19789 * gigi.h (value_factor_p): Add prototype and description, now public.
19790
19791 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19792 promotion for field with rep clause if the associated size was proven
19793 to be in error.
19794 Expand comments describing attempts to use a packable type.
19795 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19796 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19797 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19798 necessary since these are not different types and pointers may
19799 actually designate any subtype in this hierarchy.
19800 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19801 discriminants but put them into record only if not Unchecked_Union;
19802 pass flag to components_to_record showing Unchecked_Union.
19803 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19804 components before variants; don't set TYPE_UNCHECKED_UNION_P.
19805 (components_to_record): New argument UNCHECKED_UNION.
19806 Remove special case code for Unchecked_Union and instead use main code
19807 with small changes.
19808
19809 PR ada/26096
ed41063a
EB
19810 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19811 variable with the expression being built, only its inner field.
cc26ad97
AC
19812
19813 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19814 emit_sequence_entry_statements.
19815 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19816 (establish_gnat_vms_condition_handler): Move before
19817 Subprogram_Body_to_gnu.
19818 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19819 for a subprogram if it has a foreign convention or is exported.
19820 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19821 substituted for a CONST_DECL.
19822 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19823 Etype to assoc_to_constructor.
19824 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19825 discriminants of Unchecked_Union.
19826 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19827 don't need cluttering preprocessor directives.
19828 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19829 condition handler as current in the compiled function.
19830 (body_with_handlers_p): New function. Tell whether a given sequence of
19831 statements node is attached to a package or subprogram body and involves
19832 exception handlers possibly nested within inner block statements.
19833 (emit_sequence_entry_statements): New function, to emit special
19834 statements on entry of sequences when necessary. Establish GNAT
19835 condition handler in the proper cases for VMS.
19836 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19837 emit_sequence_entry_statements.
19838
19839 * utils2.c (find_common_type): If both input types are BLKmode and
19840 have a constant size, use the smaller one.
19841 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19842 the same.
19843
19844 * utils.c (value_factor_p): Make public, to allow uses from other gigi
19845 units.
19846 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19847 (convert, case UNION_TYPE): Remove special treatment for unchecked
19848 unions.
19849
19850 PR ada/18659
ed41063a
EB
19851 (update_pointer_to): Update variants of pointer types to unconstrained
19852 arrays by attaching the list of fields of the main variant.
cc26ad97
AC
19853
198542006-02-13 Arnaud Charlet <charlet@adacore.com>
19855 Robert Dewar <dewar@adacore.com>
19856
19857 * a-exexpr.adb, a-exexpr-gcc.adb
19858 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19859 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19860 Remove code unused for exception propagation for the compiler itself
19861 from a-except.adb and update to still share separate packages.
19862
19863 * a-except.ads, a-except.adb: Ditto.
19864 Add comments that this version is now used only by the compiler and
19865 other basic tools. The full version that includes the Ada 2005 stuff
19866 is in separate files a-except-2005.ads/adb. The reason is that we do
19867 not want to cause bootstrap problems with compilers not recognizing
19868 Wide_Wide_String.
19869 Add exception reason code PE_Implicit_Return
19870 Add new exception reason code (Null Exception_Id)
19871
19872 * a-except-2005.adb, a-except-2005.ads: New files.
19873
19874 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19875
19876 * s-wchcon.adb: New file.
19877
19878 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19879 (traceback.o deps): Likewise.
19880 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19881 Activate build of GMEM instrumentation library on VMS targets.
19882 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19883 Use a-except-2005.ads/adb for all run-time library builds unless
19884 specified otherwise.
19885 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19886 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19887 Use s-parame.adb on all native platforms.
19888 Use s-parame-vxworks.adb on all vxworks platforms.
19889 Add env.c env.h in LIBGNAT_SRCS
19890 Add env.o in LIBGNAT_OBJS
19891 (GNATMAKE_OBJS): Remove ctrl_c.o object.
19892 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19893 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19894 supports VxWorks 6 RTPs.
19895 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19896 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19897
19898 * types.h, types.ads (Terminate_Program): New exception
19899 Add comment on modifying multiple versions of a-except.adb when the
19900 table of exception reasons is modified.
19901 Add exception reason code PE_Implicit_Return
19902 Add new exception reason code (Null Exception_Id)
19903
6f7f72f9
EB
19904 * clean.adb (Initialize): Get the target parameters before checking
19905 if target is OpenVMS. Move the OpenVMS specific code here from package
19906 body elaboration code.
cc26ad97
AC
19907
199082006-02-13 Thomas Quinot <quinot@adacore.com>
19909 Vincent Celier <celier@adacore.com>
19910 Robert Dewar <dewar@adacore.com>
19911
19912 * ali-util.adb (Get_File_Checksum): Update to account for change in
19913 profile of Initialize_Scanner.
19914
19915 * gprep.adb (Gnatprep): Update to account for change in profile of
19916 Initialize_Scanner.
19917 (Process_One_File): Same.
19918
19919 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19920 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19921 that behaviour using the new Unit information recorded in the source
19922 files table, rather than going through all units every time.
19923 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19924 (Get_Source_Unit): Same.
19925
19926 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19927 change in profile of Initialize_Scanner.
19928 (Prepare_To_Preprocess): Same.
19929
19930 * lib.ads: Fix typo in comment (templace -> template).
19931
19932 * prj-part.adb (Parse_Single_Project): Update to account for change in
19933 profile of Initialize_Scanner.
19934
19935 * scn.adb (Initialize_Scanner): Account for change in profile of
19936 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19937 Also record the association of the given Source_File_Index to the
19938 corresponding Unit_Number_Type.
19939
19940 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19941 procedure.
19942 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19943 Remove Unit formal for generic scanner: this formal
19944 is only relevant to Scn (the scanner instance used to parse Ada source
19945 files), not to other instances. Update comment accordingly.
19946 (Scan): Use new function Snames.Is_Keyword_Name.
19947
19948 * sinfo-cn.adb: Fix typo in comment.
19949
19950 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19951 Unit.
19952
19953 * sinput.ads (Source_File_Record): New component Unit, used to capture
19954 the unit identifier (if any) associated to a source file.
19955
19956 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19957 Unit in Source_File_Record.
19958
19959 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19960 in profile of Initialize_Scanner.
19961
19962 * scans.adb (Initialize_Ada_Keywords): New procedure
19963
19964 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19965 Ada keywords in the Namet table, without the need to call
19966 Initialize_Scanner.
19967
19968 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19969 (Is_Keyword_Name): New function
19970
19971 * snames.ads: Add subtype Configuration_Pragma_Names
19972 Add pragma Ada_2005 (synonym for Ada_05)
19973 (Is_Keyword_Name): New function
19974
19975 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19976
199772006-02-13 Arnaud Charlet <charlet@adacore.com>
19978
19979 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19980 index.
19981
19982 * a-stwima.adb (To_Set): Add extra check when N = 0.
19983
19984 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19985
199862006-02-13 Arnaud Charlet <charlet@adacore.com>
19987
19988 * s-parame-mingw.adb, s-parame-linux.adb,
19989 s-parame-solaris.adb: Removed, replaced by s-parame.adb
19990
19991 * s-parame-vxworks.ads: Fix typo.
19992
19993 * s-parame-vxworks.adb: New file.
19994
19995 * s-parame.adb: Version now used by all native platforms.
19996 (Default_Stack_Size): Use 2 megs for default stack size and use
19997 __gl_default_stack_size when available.
19998 (Minimum_Stack_Size): Use 12K.
19999
20000 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
20001 (Create_Task): Refine implementation taking advantage of the XP stack
20002 size support. On XP, we now create the thread using the flag
20003 STACK_SIZE_PARAM_IS_A_RESERVATION.
20004
20005 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
20006
20007 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
20008 XP and 0 on older Windows versions.
20009
20010 * interfac-vms.ads: Removed, no longer used.
20011
200122006-02-13 Matthew Heaney <heaney@adacore.com>
20013
9e81dbc7
AS
20014 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
20015 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
cc26ad97
AC
20016 a-cohase.adb: All explicit raise statements now include an exception
20017 message.
20018
20019 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
20020 (Update_Element_Preserving_Key): renamed op to just Update_Element.
20021 Explicit raise statements now include an exception message
20022
20023 * a-cihase.ads, a-cohase.ads: Removed comment.
20024
20025 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
20026 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
20027 a-szbzha.adb, a-szfzha.ads: New files.
20028
200292006-02-13 Matthew Heaney <heaney@adacore.com>
20030
20031 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
20032 quicksort.
20033
200342006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20035
20036 * lang.opt: Wvariadic-macros: New option.
20037 Wold-style-definition: Likewise.
20038 Wmissing-format-attribute: Likewise.
20039
20040 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
20041 -Wold-style-definition and -Wmissing-format-attribute.
20042
200432006-02-13 Robert Dewar <dewar@adacore.com>
20044
20045 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
20046
20047 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
20048
200492006-02-13 Nicolas Roche <roche@adacore.com>
20050
20051 * a-envvar.adb, a-envvar.ads: New files.
20052
200532006-02-13 Douglas Rupp <rupp@adacore.com>
20054
20055 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
20056
20057 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
20058
200592006-02-13 Pat Rogers <rogers@adacore.com>
20060
20061 * a-rttiev.adb, a-rttiev.ads: New files.
20062
200632006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20064
20065 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
20066 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
20067
20068 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
20069
200702006-02-13 Robert Dewar <dewar@adacore.com>
20071
9e81dbc7 20072 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
cc26ad97
AC
20073 sem_case.adb: Minor code reorganization (not Present should be No)
20074
200752006-02-13 Geert Bosch <bosch@adacore.com>
20076 Gary Dismukes <dismukes@adacore.com>
20077
20078 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
20079 0, since the lower bound of the actual string may be greater than one.
20080
20081 PR ada/20753
ed41063a 20082 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
cc26ad97
AC
20083 layout is requested.
20084
200852006-02-13 Vincent Celier <celier@adacore.com>
20086
20087 * back_end.adb (Scan_Compiler_Arguments): Check if
20088 Search_Directory_Present is True and, if it is, add the argument in
20089 the source search directory path.
20090
20091 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20092 Search_Directory_Present to True.
20093
200942006-02-13 Joel Brobecker <brobecke@adacore.com>
20095
20096 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20097 volatile, to tell the compiler to preserve this variable at any level
20098 of optimization.
20099 (Gen_Versions_Ada): Temporarily work around codegen bug.
20100
201012006-02-13 Vincent Celier <celier@adacore.com>
20102
20103 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20104 gcc to link with option -shared-libgcc.
20105 (Gnatlink): Remove duplicate switches -shared-libgcc
20106
201072006-02-13 Robert Dewar <dewar@adacore.com>
20108
20109 * gnatvsn.ads (Current_Year): New constant, used to easily update
20110 copyright on all GNAT tools.
20111
20112 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20113 copyright notice.
20114
201152006-02-13 Robert Dewar <dewar@adacore.com>
20116
20117 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20118 after hyphen (small aesthetic change useful for a range of numbers
20119 using ^-^.
20120 Suppress range checks for a couple of assignments which otherwise
20121 cause validity checks with validity checking turned on.
20122
20123 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20124 Improvement in error message for object.
20125 (Rep_Item_Too_Late): Remove '!' in warning message.
20126
201272006-02-13 Robert Dewar <dewar@adacore.com>
20128 Eric Botcazou <ebotcazou@adacore.com>
20129
20130 * err_vars.ads: Suppress range checks for a couple of assignments
20131 which otherwise cause validity checks with validity checking turned on.
20132 Update comments.
20133
20134 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20135 Make message unconditional if it is a warning.
20136 (Error_Msg_NEL): Always output warning messages.
20137 Suppress range checks for a couple of assignments which otherwise
20138 cause validity checks with validity checking turned on.
20139
20140 * errout.ads (Message Insertion Characters): Document that '!' is
20141 implied by '?' in error messages.
20142
20143 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20144 (Gnat1drv): Use a goto to end of main subprogram instead of
20145 Exit_Program (E_Success) so that finalization can occur normally.
20146
201472006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20148
20149 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20150 wrapped around.
20151
201522006-02-13 Vincent Celier <celier@adacore.com>
20153
20154 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20155 Unchecked_Conversion functions.
20156 (Modification_Time): Use direct conversion of OS_Time to Calendar time
20157 when OpenVMS returns False.
20158
20159 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20160 a-dirval.adb (OpenVMS): New Boolean function
20161
201622006-02-13 Ed Schonberg <schonberg@adacore.com>
20163 Thomas Quinot <quinot@adacore.com>
20164
20165 * checks.adb (Build_Discriminant_Checks): If the expression being
20166 checks is an aggregate retrieve the values of its discriminants to
20167 generate the check, rather than creating a temporary and a reference
20168 to it.
20169 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20170 (Install_Null_Excluding_Check): Ditto
20171 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20172 not for the renamed object, so that the actual itype is attached in the
20173 proper context.
20174
201752006-02-13 Robert Dewar <dewar@adacore.com>
20176 Vincent Celier <celier@adacore.com>
20177
20178 * debug.adb: Eliminate numeric switches for binder/gnatmake
20179
20180 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20181 switches for the compiler.
20182 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20183 (Scan_Make_Switches): When failing with an illegal switch, output an
20184 error message with the full switch.
20185 Eliminate numeric switches for binder/gnatmake
20186
20187 * switch.ads, switch.adb (Bad_Switch): New procedure
20188
20189 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20190 Remove 0-9 as debug flag character possibilities
20191 -d is now controlling the primary stack size when its value is a
20192 positive. Also add checks against invalid values, and support for kb,
20193 mb. Ditto for -D switch.
20194
201952006-02-13 Robert Dewar <dewar@adacore.com>
20196 Serguei Rybin <rybin@adacore.com>
20197
20198 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20199 save/restore routines.
20200 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20201 were not always properly handled previously.
20202 Since we are changing the tree format anyway, also get rid of the
20203 junk obsolete Immediate_Errors flag.
20204 (Tree_Read): Change the way of reading Tree_Version_String - now we
20205 read the version string from the tree even if its length is not the
20206 same as the length of the version string computed from Gnatvsn.
20207 (Search_Directory_Present): New Boolean flag for the compiler.
20208 Define Tree_Version_String as a dynamic string.
20209 (Default_Stack_Size): new variable, used to handle switch -d.
20210
9e81dbc7 20211 * par-prag.adb:
cc26ad97
AC
20212 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20213 only for main unit.
20214 Add pragma Ada_2005 (synonym for Ada_05)
20215 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20216 were not always properly handled previously.
20217
20218 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20219 explicit Ada_95 to Ada_2005.
20220
202212006-02-13 Javier Miranda <miranda@adacore.com>
20222 Robert Dewar <dewar@adacore.com>
20223 Ed Schonberg <schonberg@adacore.com>
20224
20225 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20226 against errors in the source program: a private types for which the
20227 corresponding full type declaration is missing and pragma CPP_Virtual
20228 is used.
20229 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20230 (Is_Known_Null): New flag
20231 (Has_Pragma_Pure): New flag
20232 (No_Return): Present in all entities, set only for procedures
20233 (Is_Limited_Type): A type whose ancestor is an interface is limited if
20234 explicitly declared limited.
20235 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20236 entities. Only used for component marked Is_Tag. If present it stores
20237 the Offset_To_Top function used to provide this value in tagged types
20238 whose ancestor has discriminants.
20239
20240 * exp_ch2.adb: Update status of new Is_Known_Null flag
20241
20242 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20243
20244 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20245 the categorization sense if Is_Pure was set by pragma Pure_Function.
20246
202472006-02-13 Quentin Ochem <ochem@adacore.com>
20248 Olivier Hainque <hainque@adacore.com>
20249
20250 * bindusg.adb: Updated documentation for -d and -D switches.
20251
20252 * raise.h (__gnat_set_globals): added new parameter for
20253 Default_Stack_Size.
20254
20255 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20256 (__gnat_handle_vms_condition): Adjust context before raise.
20257 (__gnat_install_handler): Restore the global vector setup for GCC
20258 versions before 3.4, as the frame based circtuitry is not available
20259 in this case.
20260 (__gnat_set_globals): added a parameter default_stack_size
20261 (__gl_default_stack_size): new variable.
20262
202632006-02-13 Ed Schonberg <schonberg@adacore.com>
20264
20265 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20266 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20267 does not exist in the Ada RM.
20268 (Compatible_Int_Bounds): Determine whether two integer range bounds
20269 are of equal length and have the same start and end values.
20270 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20271 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20272 aggregate when it is part of an object declaration.
20273 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
20274 constrains discriminants of its parent, add explicitly the discriminant
20275 constraints of the ancestor by retrieving them from the
20276 stored_constraint of the parent.
20277
202782006-02-13 Robert Dewar <dewar@adacore.com>
20279
20280 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20281 attribute Mechanism_Code is applied to renamed subprogram, modify
20282 prefix to point to base subprogram.
20283 Max/Min attributes now violate Restriction No_Implicit_Conditionals
20284
20285 * sinfo.ads: Document that Mechanism_Code cannot be applied to
20286 renamed subprograms so that the front-end must replace the prefix
20287 appropriately.
20288
202892006-02-13 Javier Miranda <miranda@adacore.com>
20290 Gary Dismukes <dismukes@adacore.com>
20291
20292 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20293 availability of RE_Interface_Tag.
20294 (Build_Initialization_Call): Fix wrong access to the discriminant value.
20295 (Freeze_Record_Type): Do not generate the tables associated with
20296 timed and conditional dispatching calls through synchronized
20297 interfaces if compiling under No_Dispatching_Calls restriction.
20298 When compiling for Ada 2005, for a nonabstract
20299 type with a null extension, call Make_Controlling_Function_Wrappers
20300 and insert the wrapper function declarations and bodies (the latter
20301 being appended as freeze actions).
20302 (Predefined_Primitive_Bodies): Do not generate the bodies of the
20303 predefined primitives associated with timed and conditional
20304 dispatching calls through synchronized interfaces if we are
20305 compiling under No_Dispatching_Calls.
20306 (Build_Init_Procedure): Use RTE_Available to check if a run-time
20307 service is available before generating a call.
20308 (Make_Controlling_Function_Wrappers): New procedure.
20309 (Expand_N_Full_Type_Declaration): Create a class-wide master for
20310 access-to-limited-interfaces because they can be used to reference
20311 tasks that implement such limited interface.
20312 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20313 procedure spec and body of the Offset_To_Top function that is generated
20314 when the parent of a type with discriminants has secondary dispatch
20315 tables.
20316 (Init_Secondary_Tags): Handle the case in which the parent of the type
20317 containing secondary dispatch tables has discriminants to generate the
20318 correct arguments to call Set_Offset_To_Top.
20319 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20320
20321 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20322 Add Wide_[Wide_]Expanded_Name.
20323 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20324 the same functionality of Get_Prim_Op_Address but applied to predefined
20325 primitive operations because the pointers to the predefined primitives
20326 are now saved in a separate table.
20327 (Parent_Size): Modified to get access to the separate table of primitive
20328 operations or the parent type.
20329 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20330 functionality of Set_Prim_Op_Address but applied to predefined primitive
20331 operations.
20332 (Set_Signature): New subprogram used to store the signature of a DT.
20333 (Displace): If the Offset_To_Top value is not static then call the
20334 function generated by the expander to get such value; otherwise use
20335 the value stored in the table of interfaces.
20336 (Offset_To_Top): The type of the actual has been changed to Address to
20337 give the correct support to tagged types with discriminants. In this
20338 case this value is stored just immediately after the tag field.
20339 (Set_Offset_To_Top): Two new formals have been added to indicate if the
20340 offset_to_top value is static and hence pass this value to the run-time
20341 to store it in the table of interfaces, or else if this value is dynamic
20342 and then pass to the run-time the address of a function that is
20343 generated by the expander to provide this value for each object of the
20344 type.
20345
20346 * rtsfind.ads (Default_Prin_Op_Count): Removed.
20347 (Default_Prim_Op_Count): New entity
20348 (Get_Predefined_Prim_Op_Address): New entity
20349 (Set_Predefined_Prim_Op_Address): New entity
20350 (RE_Set_Signature): New entity
20351
203522006-02-13 Thomas Quinot <quinot@adacore.com>
20353 Ed Schonberg <schonberg@adacore.com>
20354
20355 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20356 Make_Adjust_Call done for a newly-allocated object.
20357
20358 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20359 in a subprogram are wrapped in a cleanup block, indicate that the
20360 subprogram contains an inner block with an exception handler.
20361 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20362 Adjust call is for a newly-allocated object. In that case we must not
20363 assume that the finalization list chain pointers are correct (since they
20364 come from a bit-for-bit copy of the original object's pointers) so if
20365 the attach level would otherwise be zero (no change), we set it to 4
20366 instead to cause the pointers to be reset to null.
20367
20368 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20369 reset chain pointers to null.
20370
203712006-02-13 Ed Schonberg <schonberg@adacore.com>
20372
20373 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20374 string, and the context requires a loop for the assignment (e.g.
20375 because the left-hand side is packed), generate a unique name for the
20376 temporary that holds the string, to prevent spurious name clashes.
20377
203782006-02-13 Ed Schonberg <schonberg@adacore.com>
20379 Javier Miranda <miranda@adacore.com>
20380 Robert Dewar <dewar@adacore.com>
20381 Gary Dismukes <dismukes@adacore.com>
20382
20383 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20384 return unconstrained arrays.
20385 Update comments.
20386 (Expand_Call): An indirect call through an access parameter of a
20387 protected operation is not a protected call.
20388 Add circuit to raise CE in Ada 2005 mode following call
20389 to Raise_Exception.
20390 (Register_DT_Entry): Do nothing if
20391 the run-time does not give support to abstract interfaces.
20392 (Freeze_Subprogram): In case of dispatching operations, do not generate
20393 code to register the operation in the dispatch table if the source
20394 is compiled with No_Dispatching_Calls.
20395 (Register_Predefined_DT_Entry): Generate code that calls the new
20396 run-time subprogram Set_Predefined_Prim_Op_Address instead of
20397 Set_Prim_Op_Address.
20398
20399 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20400 on array assignments if the right-hand side is a function call that has
20401 been inlined. Check is performed on the assignment in the block.
20402 (Process_Bounds): If bounds and range are overloaded, apply preference
20403 rule for root operations to disambiguate, and diagnose true ambiguity.
20404 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20405 a tag-indeterminate right-hand side even when Expander_Active is True.
20406 Needed to ensure that dispatching calls to T'Input are allowed and
20407 get the tag of the target class-wide object.
20408
20409 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20410 an inherited primitive operation that already overrides several
20411 abstract interface primitives. For transitivity, the new entity must
20412 also override all the abstract interface primitives covered by the
20413 inherited overriden primitive.
20414 Emit warning if new entity differs from homograph in same scope only in
20415 that one has an access parameter and the other one has a parameter of
20416 a general access type with the same designated type, at the same
20417 position in the signature.
20418 (Make_Inequality_Operator): Use source locations of parameters and
20419 subtype marks from corresponding equality operator when creating the
20420 tree structure for the implicit declaration of "/=". This does not
20421 change anything in behaviour except that the decoration of the
20422 components of the subtree created for "/=" allows ASIS to get the
20423 string images of the corresponding identifiers.
20424 (Analyze_Return_Statement): Remove '!' in warning message.
20425 (Check_Statement_Sequence): Likewise.
20426 (Analyze_Subprogram_Body): For an access parameter whose designated type
20427 is an incomplete type imported through a limited_with clause, use the
20428 type of the corresponding formal in the body.
20429 (Check_Returns): Implicit return in No_Return procedure now raises
20430 Program_Error with a compile time warning, instead of beging illegal.
20431 (Has_Single_Return): Function returning unconstrained type cannot be
20432 inlined if expression in unique return statement is not an identifier.
20433 (Build_Body_To_Inline): It is possible to inline a function call that
20434 returns an unconstrained type if all return statements in the function
20435 return the same local variable. Subsidiary procedure Has_Single_Return
20436 verifies that the body conforms to this restriction.
20437
20438 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20439 same type, and one of them is of an anonymous access type, convert
20440 the other operand to it, so that this is a valid binary operation for
20441 gigi.
20442 (Resolve_Type_Conversion): Handle subtypes of protected types and
20443 task types when accessing to the corresponding record type.
20444 (Resolve_Allocator): Add '\' in 2-line warning message.
20445 Remove '!' in warning message.
20446 (Resolve_Call): Add '\' in 2-line warning message.
20447 (Valid_Conversion): Likewise.
20448 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20449 resulting type may be an access type with an implicit dereference.
20450 Obtain the proper component from the designated type.
20451 (Make_Call_Into_Operator): Handle properly a call to predefined equality
20452 given by an expanded name with prefix Standard, when the operands are
20453 of an anonymous access type.
20454 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20455 Explicit_Dereference and Resolve_Selected_Component, to verify that the
20456 prefix of the expression is not of an incomplete type. Allows full
20457 diagnoses of all semantic errors.
20458 (Resolve_Actuals): If the actual is an allocator whose directly
20459 designated type is a class-wide interface we build an anonymous
20460 access type to use it as the type of the allocator. Later, when
20461 the subprogram call is expanded, if the interface has a secondary
20462 dispatch table the expander will add a type conversion to force
20463 the displacement of the pointer.
20464 (Resolve_Call): If a function that returns an unconstrained type is
20465 marked Inlined_Always and inlined, the call will be inlined and does
20466 not require the creation of a transient scope.
20467 (Check_Direct_Boolean_Op): Removed
20468 (Resolve_Comparison_Op): Remove call to above
20469 (Resolve_Equality_Op): Remove call to above
20470 (Resolve_Logical_Op): Inline above, since this is only call.
20471 (Valid_Conversion): Handle properly conversions between arrays of
20472 convertible anonymous access types.
20473
20474 PR ada/25885
cc26ad97
AC
20475 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20476 the literal in an unchecked conversion, because GCC 4.x needs a static
20477 value for a string bound.
20478
204792006-02-13 Ed Schonberg <schonberg@adacore.com>
20480 Hristian Kirtchev <kirtchev@adacore.com>
20481
20482 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20483 components of the corresponding record, take into account component
20484 definitions that are access definitions.
20485 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20486 procedure is not considered a dispatching call and will be expanded
20487 properly.
20488
204892006-02-13 Javier Miranda <miranda@adacore.com>
20490
20491 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20492 controlling argument of the dispatching call is an abstract interface
20493 class-wide type then we use it directly.
20494 Check No_Dispatching_Calls restriction.
20495 (Default_Prim_Op_Position): Remove the code that looks for the last
20496 entity in the list of aliased subprograms. This code was wrong in
20497 case of renamings.
20498 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20499 when the source is compiled with the No_Dispatching_Calls restriction.
20500 (Init_Predefined_Interface_Primitives): No need to inherit primitives
20501 if we are compiling with restriction No_Dispatching_Calls.
20502 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20503 subprograms if we are compiling under No_Dispatching_Calls restriction.
20504 (Make_DT): Generate a dispatch table with a single dummy entry if
20505 we are compiling with the No_Dispatching_Calls restriction. In
20506 addition, in this case we don't generate code that calls to the
20507 following run-time subprograms: Set_Type_Kind, Inherit_DT.
20508 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20509 of this subprogram if compiling with the No_Dispatching_Calls
20510 restriction.
20511 (Expand_Type_Conversion): Instead of using the actual parameter,
20512 the argument passed as parameter to the conversion function was
20513 erroneously referenced by the expander.
20514 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20515 Set_Predefined_Primitive_Op_Address and Set_Signature.
20516 (Expand_Dispatching_Call): Generate call to
20517 Get_Predefined_Prim_Op_Address for predefined primitives.
20518 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20519 predefined primitives.
20520 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20521 primitives we reserve one dummy entry to ensure that the tag does not
20522 point to some memory that is associated with some other object. In
20523 addition, remove all the old code that generated the assignments
20524 associated with the signature of the dispatch table and replace them
20525 by a call to the new subprogram Set_Signature.
20526 (Set_All_DT_Position): Change the algorithm because now we have a
20527 separate dispatch table associated with predefined primitive operations.
20528 (Expand_Interface_Conversion): In case of non-static offset_to_top
20529 add explicit dereference to get access to the object after the call
20530 to displace the pointer to the object.
20531 (Expand_Interface_Thunk): Modify the generation of the actual used
20532 in the calls to the run-time function Offset_To_Top to fulfil its
20533 new interface.
20534 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20535
205362006-02-13 Ed Schonberg <schonberg@adacore.com>
20537
20538 * exp_dist.adb (Copy_Specification): For access parameters, copy
20539 Null_Exclusion flag, which will have been set for stream subprograms
20540 in Ada2005 mode.
20541
205422006-02-13 Pascal Obry <obry@adacore.com>
20543
20544 * expect.c (__gnat_expect_portable_execvp): New implementation. The
20545 previous implementation was using the C runtime spawnve routine but
20546 the corresponding wait was using directly the Win32 API. This was
20547 causing some times a lock when waiting for an event using
20548 WaitForSingleObject in __gnat_waitpid. This new implementation uses
20549 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20550 API fixes this problem.
20551
205522006-02-13 Robert Dewar <dewar@adacore.com>
20553
20554 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20555 call.
20556
205572006-02-13 Thomas Quinot <quinot@adacore.com>
20558
20559 * exp_pakd.ads: Fix typos in comments.
20560
20561 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20562 array reference that is an explicit dereference, mark the converted
20563 (packed) array reference as analyzed to prevent a forthcoming
20564 reanalysis from resetting its type to the original (non-packed) array
20565 type.
20566
205672006-02-13 Ed Schonberg <schonberg@adacore.com>
20568 Javier Miranda <miranda@adacore.com>
20569 Eric Botcazou <ebotcazou@adacore.com>
20570
20571 * exp_util.ads, exp_util.adb (Find_Prim_Op,
20572 Is_Predefined_Primitive_Operation): When
20573 searching for the predefined equality operator, verify that operands
20574 have the same type.
20575 (Is_Predefined_Dispatching_Operation): Remove the code that looks
20576 for the last entity in the list of aliased subprograms. This code
20577 was wrong in case of renamings.
20578 (Set_Renamed_Subprogram): New procedure
20579 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20580 Exp_Type constant computed when entering this subprogram.
20581 (Known_Null): New function
20582 (OK_To_Do_Constant_Replacement): New function
20583 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20584 (Side_Effect_Free): An attribute reference 'Input is not free of
20585 side effect, unlike other attributes that are functions. (from code
20586 reading).
20587 (Remove_Side_Effects): Expressions that involve packed arrays or records
20588 are copied at the point of reference, and therefore must be marked as
20589 renamings of objects.
20590 (Is_Predefined_Dispatching_Operation): Return false if the operation is
20591 not a dispatching operation.
20592
20593 PR ada/18819
20594 (Remove_Side_Effects): Lift enclosing type conversion nodes for
20595 elementary types in all cases.
20596
205972006-02-13 Javier Miranda <miranda@adacore.com>
20598
20599 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20600 task types when accessing to the corresponding record type.
20601 Remove '!' in warning message.
20602
206032006-02-13 Olivier Hainque <hainque@adacore.com>
20604
20605 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20606 to avoid useless and space inefficient overalignments on targets where
20607 Max_Alignment is larger than 16.
20608
206092006-02-13 Pascal Obry <obry@adacore.com>
20610
20611 * g-catiio.adb (Sec_Number): New type used to compute the number of
20612 seconds since 1-1-1970.
20613 (Image) [Natural]: The parameter was an Integer, as we can't deal with
20614 negative numbers (years, months...) it is better to have a Natural here.
20615 Code clean-up.
20616 (Image) [Number]: Change parameter from Long_Integer to Number.
20617 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20618 overflow for dates past year 2038.
20619
206202006-02-13 Matthew Heaney <heaney@adacore.com>
20621
20622 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20623 Constraint_Error.
20624
206252006-02-13 Arnaud Charlet <charlet@adacore.com>
20626
20627 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20628 native platforms.
20629 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20630 finalization can occur normally.
20631
206322006-02-13 Vincent Celier <celier@adacore.com>
20633
20634 * gnatcmd.adb (Rules_Switches): New table
20635 (Add_To_Rules_Switches): New procedure
20636 (GNATCmd): For command CHECK, put all options following "-rules" in the
20637 Rules_Switches table. Append these -rules switches after the -cargs
20638 switches.
20639
206402006-02-13 Robert Dewar <dewar@adacore.com>
20641
20642 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20643 These two cases were generating incorrect output, and if this unit
20644 was built with checks on, generated a discriminant mismatch constraint
20645 error.
20646
206472006-02-13 Ed Schonberg <schonberg@adacore.com>
20648 Robert Dewar <dewar@adacore.com>
20649
20650 * lib-xref.adb (Get_Type_Reference): For a private type whose full
20651 view is an array type, indicate the component type as well, for
20652 navigation purposes.
20653 (Generate_Reference): Don't consider array ref on LHS to be a case
20654 of violating pragma Unreferenced.
20655 Do not give Ada 2005 warning except on real reference.
20656
206572006-02-13 Vincent Celier <celier@adacore.com>
20658
20659 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20660 main source, add switch -mdebug-main=_ada_ so that the executable can
20661 be debugged by the standard VMS debugger.
20662 (Gnatmake): Set No_Main_Subprogram to True when there is no main
20663 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20664 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20665 of the last source, as the binding and linking phases are never
20666 performed.
20667 Set all executable obsolete when rebuilding a library.
20668
20669 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20670 options.
20671
206722006-02-13 Javier Miranda <miranda@adacore.com>
20673
20674 PR ada/23973
cc26ad97
AC
20675 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20676 code to improve the error message reported when the program has
20677 declarations of abstract interface types and it is not compiled with
20678 the -gnat05 switch.
20679 (P_Access_Definition): Reorganize the code to improve the error
20680 message reported when the new Ada 2005 syntax for anonymous
20681 access types is used and the program is not compiled with the
20682 -gnat05 switch.
20683
206842006-02-13 Robert Dewar <dewar@adacore.com>
20685
20686 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20687 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20688 (MODE_IN)
20689
206902006-02-13 Javier Miranda <miranda@adacore.com>
20691
20692 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20693 against source containing syntax errors.
20694
206952006-02-13 Vincent Celier <celier@adacore.com>
20696
20697 * prj.adb (Reset): Initialize the first element of table Namings with
20698 the standard naming data.
20699
207002006-02-13 Vincent Celier <celier@adacore.com>
20701
20702 * prj.ads (Error_Warning): New enumeration type
20703
20704 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20705 unknown, use the location of the project to report the error.
20706 (When_No_Sources): New global variable
20707 (Report_No_Ada_Sources): New procedure
20708 (Check): New parameter When_No_Sources. Set value of global variable
20709 When_No_Sources,
20710 (Find_Sources): Call Report_No_Ada_Sources when appropriate
20711 (Get_Sources_From_File): Ditto
20712 (Warn_If_Not_Sources): Better warning messages indicating the unit name
20713 and the file name.
20714
20715 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20716 Call Prj.Proc.Process with parameter When_No_Sources.
20717
20718 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20719 Call Recursive_Check with parameter When_No_Sources.
20720 (Recursive_Check): New parameter When_No_Sources. Call itself and
20721 Prj.Nmsc.Check with parameter When_No_Sources.
20722 (Process): New parameter When_No_Sources. Call Check with parameter
20723 When_No_Sources.
20724 (Copy_Package_Declarations): New procedure to copy renamed parameters
20725 and setting the location of the declared attributes to the location
20726 of the renamed package.
20727 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20728 packages.
20729
207302006-02-13 Vincent Celier <celier@adacore.com>
20731
20732 * prj-makr.adb (Make): Preserve the comments from the original project
20733 file.
20734 When removing nodes (attributes Source_Dirs, Source_Files,
20735 Source_List_File and package Naming), save the comments and attach the
20736 saved comments to the newly created nodes.
20737 Do not add a with clause for the naming package if one already exists.
20738
207392006-02-13 Javier Miranda <miranda@adacore.com>
20740 Gary Dismukes <dismukes@adacore.com>
20741 Robert Dewar <dewar@adacore.com>
20742
20743 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20744
20745 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20746 aliased entities to look for the overriden abstract interface
20747 subprogram.
20748 (Is_Interface_Subprogram): Complete documentation.
20749 (Check_Dispatching_Operation): Do not generate code to register the
20750 operation in the dispatch table if the source is compiled with
20751 restriction No_Dispatching_Calls.
20752 (Override_Dispatching_Operation): Check for illegal attempt to override
20753 No_Return procedure with procedure that is not No_Return
20754 (Check_Dispatching_Call): Suppress the check for an abstract operation
20755 when the original node of an actual is a tag-indeterminate attribute
20756 call, since the attribute, which must be 'Input, can never be abstract.
20757 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20758 call to the Input attribute (even when rewritten).
20759 (Propagate_Tag): Augment comment to indicate the possibility of a call
20760 to an Input attribute.
20761
20762 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20763 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20764
20765 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20766 No_Wide_Characters is no longer partition-wide
20767 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20768 rather than GNAT
20769
207702006-02-13 Douglas Rupp <rupp@adacore.com>
20771
20772 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20773
207742006-02-13 Javier Miranda <miranda@adacore.com>
20775
20776 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20777 handles default-initialized components to keep separate the management
20778 of this feature but also avoid the unrequired resolution and
20779 expansion of components that do not have partially initialized
20780 values.
20781 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20782 (Check_Bounds): Likewise.
20783 (Check_Length): Likewise.
20784
207852006-02-13 Javier Miranda <miranda@adacore.com>
20786 Ed Schonberg <schonberg@adacore.com>
20787
20788 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20789 abstract interface type call analyze_and_resolve to expand the type
20790 conversion into the corresponding displacement of the
20791 reference to the base of the object.
20792 (Eval_Attribute, case Width): For systems where IEEE extended precision
20793 is supported, the maximum exponent occupies 4 decimal digits.
20794 (Accessibility_Message): Add '\' in 2-line warning message.
20795 (Resolve_Attribute): Likewise.
20796 (case Attribute_Access): Significantly revise checks
20797 for illegal access-to-subprogram Access attributes to properly enforce
20798 the rules of 3.10.2(32/2).
20799 Diagnose use of current instance with an illegal attribute.
20800
6f7f72f9
EB
20801 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20802 to a Node_Id.
20803 (Enclosing_Generic_Unit): New function to return a node's innermost
20804 enclosing generic declaration node.
20805 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20806 (Type_Access_Level): The accessibility level of anonymous acccess types
20807 associated with discriminants is that of the current instance of the
20808 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20809 (Compile_Time_Constraint_Error): Handle case of conditional expression.
20810 (Kill_Current_Values_For_Entity): New function
20811 (Enter_Name): Change formal type to Entity_Id
cc26ad97
AC
20812
208132006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20814 Ed Schonberg <schonberg@adacore.com>
20815 Gary Dismukes <dismukes@adacore.com>
20816
20817 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20818 Analyze_Compilation_Unit.
20819 Detect and warn on redundant with clauses detected in a package spec
20820 and/or body when -gnatwr is used.
20821 (Analyze_Context): Analyze config pragmas before other items
20822 (Install_Context_Items): Don't analyze config pragmas here
20823 (Install_Limited_Withed_Unit): Set limited entity of package in
20824 with_clause so that cross-reference information or warning messages on
20825 unused packages can be properly generated
20826 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20827 has Error_Posted set. Prevent infinite loops in illegal programs.
20828 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20829 to the point of the error test requiring the current unit to be private.
20830 This ensures that private with clauses are not exempted from the basic
20831 checking for being a descendant of the same library unit parent as a
20832 withed private descendant unit.
20833 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20834 handle private with clauses properly, as well as to account for cases
20835 where the withed unit is a public descendant of a private ancestor
20836 (in which case the current unit must be a descendant of the private
20837 ancestor's parent). The spec comments were updated accordingly. Also,
20838 the old error message in this subprogram was replaced with error
20839 messages that mirror the errors tested and reported by
20840 Check_Private_Child_Unit.
20841 Parameter and variable names improved for readability.
20842 (Install_Limited_Context_Clauses): Remove test for a withed unit being
20843 private as the precondition for calling
20844 Check_Private_Limited_Withed_Unit since that subprogram has been
20845 revised to test public units as well as private units.
20846
208472006-02-13 Thomas Quinot <quinot@adacore.com>
20848 Robert Dewar <dewar@adacore.com>
20849 Ed Schonberg <schonberg@adacore.com>
20850 Javier Miranda <miranda@adacore.com>
20851
20852 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20853 that Scope_Stack.First = 1.
20854 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20855 were not always properly handled previously.
20856 (Formal_Entity): Complete rewrite, to handle properly some complex case
20857 with multiple levels of parametrization by formal packages.
20858 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20859 to the corresponding derived type declaration for proper semantics.
20860
20861 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20862 (Check_Component): Enforce restriction on components of
20863 unchecked_unions: a component in a variant cannot contain tasks or
20864 controlled types.
20865 (Unchecked_Union): Allow nested variants and multiple discriminants, to
20866 conform to AI-216.
20867 Add pragma Ada_2005 (synonym for Ada_05)
20868 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20869 were not always properly handled previously.
20870 Document that pragma Propagate_Exceptions has no effect
20871 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20872 (Set_Convention_From_Pragma): Check that if a convention is
20873 specified for a dispatching operation, then it must be
20874 consistent with the existing convention for the operation.
20875 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20876 longer required to specify an vtable-ptr component in the record. For
20877 compatibility reasons we leave the support for the previous definition.
20878 (Analyze_Pragma, case No_Return): Allow multiple arguments
20879
20880 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20881 non-overrideen inherited operation with a controlling result as
20882 illegal only its implicit declaration comes from the derived type
20883 declaration of its result's type.
20884 (Check_Possible_Deferred_Completion): Relocate the object definition
20885 node of the subtype indication of a deferred constant completion rather
20886 than directly analyzing it. The analysis of the generated subtype will
20887 correctly decorate the GNAT tree.
20888 (Record_Type_Declaration): Check whether this is a declaration for a
20889 limited derived record before analyzing components.
20890 (Analyze_Component_Declaration): Diagnose record types not explicitly
20891 declared limited when a component has a limited type.
20892 (Build_Derived_Record_Type): Code reorganization to check if some of
20893 the inherited subprograms of a tagged type cover interface primitives.
20894 This check was missing in case of a full-type associated with a private
20895 type declaration.
20896 (Constant_Redeclaration): Check that the subtypes of the partial and the
20897 full view of a constrained deferred constant statically match.
20898 (Mentions_T): A reference to the current type in an anonymous access
20899 component declaration must be an entity name.
20900 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20901 class_wide type to refer to full type, not to the incomplete one.
20902 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20903 available. Required to give support to the certified run-time.
20904 (Analyze_Component_Declaration): In case of anonymous access components
20905 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20906 (Process_Discriminants): For an access discriminant, use the
20907 discriminant specification as the associated_node_for_itype, to
20908 simplify accessibility checks.
20909
209102006-02-13 Ed Schonberg <schonberg@adacore.com>
20911 Javier Miranda <miranda@adacore.com>
20912
20913 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20914 abstract interpretations on an operator, remove interpretations that
20915 yield Address or a type derived from it, if one of the operands is an
20916 integer literal.
20917 (Try_Object_Operation.Try_Primitive_Operation,
20918 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20919 location when creating the new reference to a primitive or class-wide
20920 operation as a part of rewriting a subprogram call.
20921 (Try_Primitive_Operations): If context requires a function, collect all
20922 interpretations after the first match, because there may be primitive
20923 operations of the same type with the same profile and different return
20924 types. From code reading.
20925 (Try_Primitive_Operation): Use the node kind to choose the proper
20926 operation when a function and a procedure have the same parameter
20927 profile.
20928 (Complete_Object_Operation): If formal is an access parameter and prefix
20929 is an object, rewrite as an Access reference, to match signature of
20930 primitive operation.
20931 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20932 by an expanded name with prefix Standard, when the operands are of an
20933 anonymous access type.
20934 (Remove_Abstract_Operations): If the operation is abstract because it is
20935 inherited by a user-defined type derived from Address, remove it as
20936 well from the set of candidate interpretations of an overloaded node.
20937 (Analyze_Membership_Op): Membership test not applicable to cpp-class
20938 types.
20939
209402006-02-13 Bob Duff <duff@adacore.com>
20941
20942 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20943 redundant use clauses.
20944 In particular, if the scope of two use clauses overlaps, but one is not
20945 entirely included in the other, we should not warn. This can happen
20946 with nested packages.
20947 (Analyze_Subprogram_Renaming): Protect the compiler against previously
20948 reported errors. The bug was reported when the compiler was built
20949 with assertions enabled.
20950 (Find_Type): If the node is a 'Class reference and the prefix is a
20951 synchronized type without a corresponding record, return the type
20952 itself.
20953
209542006-02-13 Javier Miranda <miranda@adacore.com>
20955
20956 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20957 if this is the full-declaration associated with a private declaration
20958 that implement interfaces, then the private type declaration must be
20959 limited.
20960 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20961 as aliased. The use of the 'access attribute is not available for such
20962 object (for this purpose the object should be explicitly marked as
20963 aliased, but being an anonymous type this is not possible).
20964
209652006-02-13 Ed Schonberg <schonberg@adacore.com>
20966 Robert Dewar <dewar@adacore.com>
20967
20968 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20969 compilation unit is an elaboration scope.
20970 (Add_Task_Proc): Add '\' in 2-line warning message.
20971 (Activate_All_Desirable): Deal with case of unit with'ed by parent
20972
209732006-02-13 Ed Schonberg <schonberg@adacore.com>
20974 Javier Miranda <miranda@adacore.com>
20975
20976 * sem_type.adb (Write_Overloads): Improve display of candidate
20977 interpretations.
20978 (Add_One_Interp): Do not add to the list of interpretations aliased
20979 entities corresponding with an abstract interface type that is an
20980 immediate ancestor of a tagged type; otherwise we have a dummy
20981 conflict between this entity and the aliased entity.
20982 (Disambiguate): The predefined equality on universal_access is not
20983 usable if there is a user-defined equality with the proper signature,
20984 declared in the same declarative part as the designated type.
20985 (Find_Unique_Type): The universal_access equality operator defined under
20986 AI-230 does not cover pool specific access types.
20987 (Covers): If one of the types is a generic actual subtype, check whether
20988 it matches the partial view of the other type.
20989
209902006-02-13 Thomas Quinot <quinot@adacore.com>
20991
20992 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20993 line. This is necessary to allow In_Extended_Main_Unit to provide
20994 correct results for itypes while writing out expanded source.
20995 (Close_File): No need to update the source_index_table here since it's
20996 now done for each line.
20997
209982006-02-13 Ed Schonberg <schonberg@adacore.com>
20999 Robert Dewar <dewar@adacore.com>
21000
21001 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
21002 preserve the source unit where the itype is declared, and prevent a
21003 backend abort.
21004 (Note_Implicit_Run_Time_Call): New procedure
21005 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
21006 E_Subprogram_Type)
21007
21008 * sprint.ads: Document use of $ for implicit run time routine call
21009
210102006-02-13 Quentin Ochem <ochem@adacore.com>
21011
21012 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
21013 task name.
21014
210152006-02-13 Bob Duff <duff@adacore.com>
21016
21017 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
21018 Scan_Unsigned, so we do not scan leading blanks and sign twice.
21019 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21020 raise Constraint_Error.
21021
21022 * s-vallli.adb (Scan_Long_Long_Integer): Call
21023 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
21024 do not scan leading blanks and sign twice.
21025 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21026 raise Constraint_Error.
21027
21028 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
21029 Scan_Long_Long_Unsigned): Split out most of the processing from
21030 Scan_Long_Long_Unsigned out into
21031 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
21032 This prevents scanning leading blanks and sign twice.
21033 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
21034 See RM-3.5(44).
21035
21036 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
21037 out most of the processing from Scan_Unsigned out into
21038 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
21039 This prevents scanning leading blanks and sign twice.
21040
21041 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
21042 use with Modular'Value attribute.
21043 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
21044 attribute.
21045
210462006-02-13 Robert Dewar <dewar@adacore.com>
21047
21048 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
21049
210502006-02-13 Eric Botcazou <ebotcazou@adacore.com>
21051
21052 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
21053 (PPC VxWorks): Likewise.
21054 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
21055 (forced_callee): Make non-inlinable and non-pure.
21056 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
21057
210582006-02-13 Arnaud Charlet <charlet@adacore.com>
21059 Ben Brosgol <brosgol@adacore.com>
21060 Robert Dewar <dewar@adacore.com>
21061
21062 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
21063 support.
21064 Document that gnatbind -M option is for cross environments only.
21065 Added description of using gnatmem to trace gnat rtl allocs and deallocs
21066 Add note on use of $ to label implicit run time calls
21067 Add documentation for -gnatyI (check mode IN)
21068 Updated chapter on compatibility with HP Ada
21069 VMS-oriented edits.
21070 Ran spell and corrected errors
21071 Add documentation for gnatbind -d and rework documentation of -D
21072 at the same time.
21073 Add subprogram/data elimination section.
21074 Minor editing of annex A.
21075 Add section for gnatcheck.
21076 Add documentation for restriction No_Dispatching_Calls
21077 Add documentation for pragma Ada_2005
21078 Remove mention of obsolete pragma Propagate_Exceptions
21079 Document that pragma Unreferenced can appear after DO in ACCEPT
21080 Clarify Pure_Function for library level units
21081 Mention Max/Min in connection with No_Implicit_Conditionals
21082 No_Wide_Characters restriction is no longer partition-wide
21083 Add a nice example for Universal_Literal_String attribute
21084 Document that pragma No_Return can take multiple arguments
21085
21086 * ug_words: Added entry for gnatcheck
21087
21088 * g-ctrl_c.ads (Install_Handler): Enhance comments
21089
21090 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21091
21092 * g-trasym.ads: Add documentation on how to do off line symbolic
21093 traceback computation.
21094
21095 * s-fatgen.adb: Add comments for Unaligned_Valid
21096
21097 * stand.ads: Fix typo in comment
21098
0e692cc0
RO
210992006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21100
21101 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21102
f44013ae
RS
211032006-02-06 Roger Sayle <roger@eyesopen.com>
21104
21105 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21106
3df6582b
JDA
211072006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21108
21109 PR target/25926
21110 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21111 implementation that calls __main.
21112
f57a2203
PG
211132006-01-25 Peter O'Gorman <peter@pogma.com>
21114
21115 PR bootstrap/25859
21116 * Makefile.in (GCC_LINK): Remove quotes.
21117 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21118 or $(GCC_LINK).
21119
21120 (powerpc-darwin): Pass -shared-libgcc when building shared library.
21121
4bf2d473
JDA
211222006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21123
21124 PR ada/24533
21125 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21126
4580c9a6
JDA
211272005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21128
21129 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21130
e5c681b3
AC
211312005-12-12 Arnaud Charlet <charlet@adacore.com>
21132
21133 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21134 needed.
21135
b0b8e176
AC
211362005-12-12 Arnaud Charlet <charlet@adacore.com>
21137
21138 * Make-lang.in: Update dependencies
21139
53fcb103
AC
211402005-12-12 Arnaud Charlet <charlet@adacore.com>
21141
21142 * Make-lang.in: Add rule for ada/exp_sel.o
21143
25b06cda
AC
211442005-12-12 Arnaud Charlet <charlet@adacore.com>
21145
21146 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21147
aedc2c2b
AC
211482005-12-09 Arnaud Charlet <charlet@adacore.com>
21149
21150 * gnatvsn.ads (Library_Version): Bump to version 4.2
21151 (ASIS_Version_Number): Bumped.
21152
211532005-12-09 Doug Rupp <rupp@adacore.com>
21154
21155 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21156 Ada bind file prefix on VMS from b$ to b__.
21157 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21158 __init.
21159
21160 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21161 Targparm.OpenVMS_On_Target.
21162 (Object_Suffix): Initialize with target object suffix.
21163 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21164
21165 * butil.adb: Change some Hostparm.OpenVMS checks to
21166 Targparm.OpenVMS_On_Target.
21167
21168 * clean.adb: Change some Hostparm.OpenVMS checks to
21169 Targparm.OpenVMS_On_Target.
21170 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21171 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21172 Ada bind file prefix on VMS from b$ to b__.
21173
21174 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21175 --GCC so that Get_Target_Parameters can find system.ads.
21176 (Gnatlink): Call Get_Target_Parameters in mainline.
21177 Initialize standard packages for Targparm.
21178 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21179 (Process_Args): Also Check for object files with target object
21180 extension.
21181 (Make_Binder_File_Names): Create with target object extension.
21182 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21183 to b__.
21184
21185 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21186 Targparm.OpenVMS_On_Target.
21187 ({declaration},Build_Library,Check_Library): Change Ada bind file
21188 prefix on VMS from b$ to b__.
21189
21190 * osint-b.adb: Change some Hostparm.OpenVMS checks to
21191 Targparm.OpenVMS_On_Target.
21192 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21193 b__.
21194
21195 * targext.c: New file.
21196
21197 * Makefile.in: add support for vxworks653 builds
21198 (../../vxaddr2line): gnatlink with targext.o.
21199 (TOOLS_LIBS): Move targext.o to precede libgnat.
21200 (init.o, initialize.o): Minor clean up in dependencies.
21201 (GNATLINK_OBJS): Add targparm.o, snames.o
21202 Add rules fo building targext.o and linking it explicitly with all
21203 tools.
21204 Also add targext.o to gnatlib.
21205
21206 * Make-lang.in: Add rules for building targext.o and linking it in
21207 with gnat1 and gnatbind.
21208 Add entry for exp_sel.o.
21209
21210 * osint.adb Change some Hostparm.OpenVMS checks to
21211 Targparm.OpenVMS_On_Target.
21212 (Object_File_Name): Use target object suffix.
21213
21214 * osint.ads (Object_Suffix): Remove, no longer used.
21215 (Target_Object_Suffix): Initialize with target object suffix.
21216
21217 * rident.ads: Add special exception to license.
21218
21219 * targparm.adb (Get_Target_Parameters): Set the value of
21220 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21221 value.
21222 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
9e81dbc7 21223
aedc2c2b
AC
21224 * targparm.ads: Add special exception to license.
21225
21226 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21227 function.
21228 (Copy_File): Make sure from file is closed if error on to file
21229 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21230
21231 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21232 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21233
21234 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21235 target object suffix.
21236
212372005-12-09 Jose Ruiz <ruiz@adacore.com>
21238 Quentin Ochem <ochem@adacore.com>
21239 Florian Villoing <villoing@adacore.com>
21240
6f7f72f9 21241 * a-taster.ads, a-taster.adb: New files.
aedc2c2b
AC
21242
21243 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21244 link to the version that does nothing. This way the task termination
21245 routine is not executed twice for the environment task when finishing
21246 because of an unhandled exception.
21247
21248 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21249 handler because of an unhandled exception.
21250
21251 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21252 System.Tasking.Utilities instead of that in System.Tasking.Stages.
21253
21254 * s-finimp.adb (initialization code): Modify the soft link for the
21255 finalization of the global list instead of Adafinal.
21256
21257 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21258 non-tasking version of the soft link for task termination. We do
21259 nothing since if we are using the non-tasking version it
21260 means that the task termination functionality is not used.
21261 (Null_Finalize_Global_List): Add this null version for the procedure
21262 in charge of finalizing the global list for controlled objects.
21263 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21264 instead for handling run-time termination in a more flexible way.
21265 (Adafinal_NT): This new procedure will take care of finalizing the
21266 global list for controlled objects if needed, but no tasking
21267 finalization.
21268
21269 * s-tarest.adb (Task_Lock): Do not try to lock again the
21270 Global_Task_Lock if we already own it. Otherwise, we get blocked in
21271 some run-time operations.
21272 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21273 until all nested locks have been released.
21274 (Task_Wrapper): Call the fall-back task termination handler. It
21275 applies to all tasks but the environment task.
21276 (Finalize_Global_Tasks): Add the call for the task termination
21277 procedure for the environment task.
21278 (Task_Wrapper): suppress warnings around declaration of
21279 Secondary_Stack_Address.
21280
21281 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21282 moved to the Common_ATCB record.
21283 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21284 Common_ATCB record.
21285 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21286 Common_ATCB record.
21287
21288 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21289 Fall_Back_Handler, and Specific_Handler.
21290
21291 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21292 defined in Ada.Task_Termination, to avoid circular dependencies.
21293 (Termination_Handler): Redefine this type here, alredy defined in
21294 Ada.Task_Termination, for avoiding circular dependencies.
21295 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21296 for storing task termination handlers. In addition,
21297 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21298 Common_ATCB because it is used by both the regular and the restricted
21299 run times.
21300 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21301 Common_ATCB because it is used by both the regular and the restricted
21302 run times.
21303 (Common_ATCB): Added a dynamic task analyzer field.
21304
21305 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21306 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21307 (Task_Wrapper): Call the task termination handler. It applies to all
21308 tasks but the environment task.
21309 (Finalize_Global_Tasks): Call the task termination procedure for the
21310 environment task. The call to Finalize_Global_List is now performed
21311 using the soft links mechanism.
21312 (Task_Wrapper): added dynamic stack analysis.
21313
21314 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21315 potentially blocking operations has been moved from
21316 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21317 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21318 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21319 this run-time check.
21320
21321 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21322 of task termination procedure.
21323 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21324 link for the task termination procedure.
21325
21326 * bindusg.adb: (Bindusg): Added documentation for -u option.
21327
21328 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21329 (Get_Main_C): Add handling of dynamic stack analysis.
21330 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21331
21332 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21333 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21334 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21335
21336 * opt.ads: Added flags used by dynamic stack measurement.
21337 (Max_Line_Length): Remove (not used anymore)
21338
21339 * s-io.ads, s-io.adb (Standard_Error): new subprogram
21340 (Standart_Output): new subprogram
21341 (Set_Output): new subprogram
21342 (Put): now uses the value of Current_Out to know if the output has to be
21343 send to stderr or stdout.
9e81dbc7 21344
aedc2c2b
AC
21345 * s-stausa.ads: Complete implementation.
21346
21347 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
9e81dbc7 21348
aedc2c2b
AC
21349 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21350 list of Ada 05 files.
21351 (GNAT Library Units): Add AltiVec files.
21352
21353 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21354 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21355 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21356
213572005-12-09 Nicolas Setton <setton@adacore.com>
21358
21359 * adaint.c (__gnat_locate_regular_file): Return immediately if
21360 file_name is empty.
21361
213622005-12-09 Javier Miranda <miranda@adacore.com>
21363 Hristian Kirtchev <kirtchev@adacore.com>
21364
21365 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21366 to the specification because the frontend generates code that uses this
21367 subprogram.
21368 (Set_Interface_Table): Add missing assertion.
21369 Update documentation describing the run-time structure.
21370 (Displace): New subprogram that displaces the pointer to the object
21371 to reference one of its secondary dispatch tables.
21372 (IW_Membership): Modified to use the new table of interfaces.
21373 (Inherit_TSD): Modified to use the new table of interfaces.
21374 (Register_Interface_Tag): Use the additional formal to fill the
21375 contents of the new table of interfaces.
21376 (Set_Interface_Table): New subprogram that stores in the TSD the
21377 pointer to the table of interfaces.
21378 (Set_Offset_To_Top): Use the additional formal to save copy of
21379 the offset value in the table of interfaces.
21380 Update structure of GNAT Primary and Secondary dispatch table diagram.
21381 Add comment section on GNAT dispatch table prologue.
21382 (Offset_To_Signature): Update the constant value of the Signature field.
21383 (Dispatch_Table): Update comment on hidden fields in the prologue.
21384 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21385 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21386 the type of formal parameter T to Tag, introduce additional assertions.
21387 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21388 conversion.
21389 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21390
21391 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21392 in all the calls to Expand_Interface_Thunk. Instead of referencing the
21393 record component containing the tag of the secondary dispatch table we
21394 have to use the Offset_To_Top run-time function to get this information;
21395 otherwise if the pointer to the base of the object has been displace
21396 we get a wrong value if we use the 'position attribute.
21397
21398 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21399 all the calls to Expand_Interface_Thunk.
21400 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21401 interfaces; hence the call to Set_Interface_Table was clearly wrong.
21402 (Collect_All_Interfaces): Modify the internal subprogram Collect to
21403 ensure that the interfaces implemented by the ancestors are placed
21404 at the header of the generated list.
21405 (Expand_Interface_Conversion): Handle the case in which the displacement
21406 associated with the interface conversion is not statically known. In
21407 this case we generate a call to the new run-time subprogram Displace.
21408 (Make_DT): Generate and fill the new table of interfaces.
21409 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21410 Get_Tagged_Kind and Set_Tagged_Kind.
21411 (Tagged_Kind): New function that determines the tagged kind of a type
21412 with respect to limitedness and concurrency and returns a reference to
21413 RE_Tagged_Kind.
21414 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21415 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21416 primary dispatch table for a type.
21417 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21418 secondary dispatch table respectively of a tagged type.
21419
21420 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21421 (Expand_Interface_Conversion): New subprogram to indicate if the
21422 displacement of the type conversion is statically known.
21423 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21424
21425 * rtsfind.ads (RE_Offset_To_Top): New entity
21426 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21427 accessible to users.
21428 (Re_Displace): New entity
21429 (RE_Interface_Data): New entity
21430 (RE_Set_Interface_Data): New_Entity
21431 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21432 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21433 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21434 RE_TK_Tagged, RE_TK_Task.
21435
21436 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21437 Init_Secondary_Tags_Internal to allow its use with interface types and
21438 also to generate the code for the new additional actual required
21439 by Set_Offset_To_Top.
21440 (Build_Init_Statements): In case of components associated with abstract
21441 interface types there is no need to generate a call to its IP.
21442 (Freeze_Record_Type): Generate Select Specific Data tables only for
21443 concurrent types.
21444 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21445 the bodies and specifications of the predefined primitive operations
21446 dealing with dispatching selects and abort, 'Callable, 'Terminated only
21447 for concurrent types.
21448
6f7f72f9 21449 * exp_sel.ads, exp_sel.adb: New files.
aedc2c2b
AC
21450
21451 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21452 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21453 properly protected objects and attach handler in the case of the
21454 restricted profile.
21455 Move embeded package Select_Expansion_Utilities into a separate external
21456 package.
21457 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21458 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21459 (Build_K, Build_S_Assignment): New subprograms, part of the select
21460 expansion utilities.
21461 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21462 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21463 where the trigger is a dispatching procedure of a limited tagged type.
21464
214652005-12-09 Olivier Hainque <hainque@adacore.com>
21466
21467 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21468 pointer initialization values. Make a SAVE_EXPR instead. Add comments
21469 about the use and expansion of SAVE_EXPRs in the various possible
21470 renaming handling cases.
21471 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21472 abusing DECL_FCONTEXT.
21473
214742005-12-09 Matthew Heaney <heaney@adacore.com>
21475
21476 * a-convec.adb (Merge): Added assertions to check whether vector params
21477 are sorted.
21478
21479 * a-coinve.adb (Merge): Added assertions to check whether vector params
21480 are sorted.
21481
21482 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21483 draft.
21484 (Cursor'Read): raises PE
21485
21486 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21487 to its default value.
21488
21489 * a-cihama.adb: Manually check whether cursor's key and elem are
21490 non-null
21491
21492 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21493 (Merge): Assert that target and source lists are in order
21494 (Swap): Declare non-const temporaries, to pass to Splice
21495
21496 * a-cdlili.ads: (Splice): Changed param name and param mode
21497
21498 * a-cdlili.adb: (Splice): Changed param name and param mode
21499 (Merge): Assert that target and source lists are in order
21500 (Swap): Declare non-const temporaries, to pass to Splice
21501
21502 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21503 (Write): declare Stream param as not null
21504
21505 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21506 an exception message.
21507
215082005-12-09 Thomas Quinot <quinot@adacore.com>
21509 Robert Dewar <dewar@adacore.com>
21510
21511 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21512 which is the absolute maximum length we can support.
21513
21514 * frontend.adb: For the processing of configuration pragma files,
21515 remove references to Opt.Max_Line_Length, which is not checked anymore.
21516
21517 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21518 length.
21519
9e81dbc7 21520 * scn.adb, scng.adb:
aedc2c2b
AC
21521 Always check line length against the absolute supported maximum,
21522 Hostparm.Max_Line_Length.
21523
21524 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21525 value for the maximum line length is Max_Line_Length (not
21526 Column_Number'Last).
21527 Minor error msg update
21528 (Set_Style_Check_Options): New interface returning error msg
21529 Minor code reorganization (processing for 'M' was out of alpha order)
21530
21531 * switch-c.adb: New interface for Set_Style_Check_Options
21532
21533 * stylesw.ads (Set_Style_Check_Options): New interface returning error
21534 msg.
21535
215362005-12-09 Javier Miranda <miranda@adacore.com>
21537
21538 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21539 with IP subprogram were only supported if there were limited types.
21540
21541 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21542 records with IP subprogram were only supported if there were limited
21543 types.
21544
215452005-12-09 Olivier Hainque <hainque@adacore.com>
21546 Eric Botcazou <ebotcazou@adacore.com>
21547
21548 * trans.c (tree_transform, emit_check): Adjust calls to
21549 build_call_raise, passing the now expected GNAT_NODE argument.
21550
21551 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21552 source line information than what the current global locus indicates
21553 when appropriate.
21554
21555 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21556 field has overflowed.
21557 (build_call_raise): Add a GNAT_NODE argument to convey better source
21558 line information than what the current global locus indicates when
21559 appropriate.
21560 (build_component_ref): Adjust call to build_call_raise.
21561
215622005-12-09 Pascal Obry <obry@adacore.com>
21563
21564 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21565 the iterator is quitting iteration on parent directory.
21566
215672005-12-09 Javier Miranda <miranda@adacore.com>
21568
21569 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21570 and the assignment to a class-wide object, before the assignment we
21571 generate a run-time check to ensure that the tag of the Target is
21572 covered by the tag of the source.
21573
215742005-12-09 Robert Dewar <dewar@adacore.com>
21575
21576 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21577 parameter in call to Image_Wide_Character.
21578
21579 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21580 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21581 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21582 annoying FFFE/FFFF inconsistency.
21583
215842005-12-09 Robert Dewar <dewar@adacore.com>
21585 Javier Miranda <miranda@adacore.com>
21586 Ed Schonberg <schonberg@adacore.com>
21587
21588 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21589 of type conversion.
21590 (Find_Interface): New subprogram that given a tagged type and one of its
21591 component associated with the secondary table of an abstract interface
21592 type, return the entity associated with such abstract interface type.
21593 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21594 base type to create anonymous subtype, because entity may be a locally
21595 declared subtype or generic actual.
21596 (Find_Interface): New subprogram that given a tagged type and one of its
21597 component associated with the secondary table of an abstract interface
21598 type, return the entity associated with such abstract interface type.
21599
21600 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21601 conversion cannot be handled at compile time. In this case we pass this
21602 information to the expander to generate the appropriate code.
21603
216042005-12-09 Robert Dewar <dewar@adacore.com>
21605 Ed Schonberg <schonberg@adacore.com>
21606 Gary Dismukes <dismukes@adacore.com>
21607 Javier Miranda <miranda@adacore.com>
21608 Hristian Kirtchev <kirtchev@adacore.com>
21609
21610 * einfo.adb (Itype_Printed): New flag
21611 (Is_Limited_Type): Derived types do not inherit limitedness from
21612 interface progenitors.
21613 (Is_Return_By_Reference_Type): Predicate does not apply to limited
21614 interfaces.
21615
21616 * einfo.ads (Itype_Printed): New flag
21617 Move Is_Wrapper_Package to proper section
21618 Add missing Inline for Is_Volatile
21619
21620 * output.ads, output.adb (Write_Erase_Char): New procedure
21621 (Save/Restore_Output_Buffer): New procedures
21622 (Save/Restore_Output_Buffer): New procedures
21623
21624 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21625 Add missing support for anonymous access type
21626 (Write_Id): Insert calls to Write_Itype
21627 (Write_Itype): New procedure to output itypes
21628
21629 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21630 use of "limited" in declaration.
21631
9e81dbc7 21632 * sinfo.ads, sinfo.adb:
aedc2c2b
AC
21633 Formal derived types can carry an explicit "limited" indication.
21634
21635 * sem_ch3.adb: Add with and use of Targparm.
21636 (Create_Component): If Frontend_Layout_On_Target is True and the
21637 copied component does not have a known static Esize, then reset
21638 the size and positional fields of the new component.
21639 (Analyze_Component_Declaration): A limited component is
21640 legal within a protected type that implements an interface.
21641 (Collect_Interfaces): Do not add to the list the interfaces that
21642 are implemented by the ancestors.
21643 (Derived_Type_Declaration): If the parent of the full-view is an
21644 interface perform a transformation of the tree to ensure that it has
21645 the same parent than the partial-view. This simplifies the job of the
21646 expander in order to generate the correct object layout, and it is
21647 needed because the list of interfaces of the full-view can be given in
21648 any order.
21649 (Process_Full_View): The parent of the full-view does not need to be
21650 a descendant of the parent of the partial view if both parents are
21651 interfaces.
21652 (Analyze_Private_Extension_Declaration): If declaration has an explicit
21653 "limited" the parent must be a limited type.
21654 (Build_Derived_Record_Type): A derived type that is explicitly limited
21655 must have limited ancestor and progenitors.
21656 (Build_Derived_Type): Ditto.
21657 (Process_Full_View): Verify that explicit uses of "limited" in partial
21658 and full declarations are consistent.
21659 (Find_Ancestor_Interface): Remove function.
21660 (Collect_Implemented_Interfaces): New procedure used to gather all
21661 implemented interfaces by a type.
21662 (Contain_Interface): New function used to check whether an interface is
21663 present in a list.
21664 (Find_Hidden_Interface): New function used to determine whether two
21665 lists of interfaces constitute a set equality. If not, the first
21666 differing interface is returned.
21667 (Process_Full_View): Improve the check for the "no hidden interface"
21668 rule as defined by AI-396.
21669
216702005-12-09 Robert Dewar <dewar@adacore.com>
21671
21672 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21673 types, not on record subtypes.
21674 (Freeze_Entity): Code cleanup. Add barrier to the loop
21675 that generates the references for primitive operations. This allows to
21676 remove an unnecessary exception handler.
21677 Code reformatting and comment clean ups.
21678
216792005-12-09 Vincent Celier <celier@adacore.com>
21680
21681 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21682 If GNAT CHECK is called with a project file, but with no
21683 source on the command line, call gnatcheck with all the compilable
21684 sources of the project.
21685 Take into account the new command Check, for gnatcheck. Treat as for
21686 other ASIS tools: take into account project, specific package Check and
21687 Compiler switches.
21688 For ASIS tools, add the switches in package Compiler for
21689 the invocation of the compiler.
21690
21691 * prj-attr.adb: Add package Check and its attributes
21692
21693 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21694
21695 * vms_conv.adb (Initialize): Change Params of command Check to
21696 unlimited files.
21697 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21698 Add data for new command Check
21699
21700 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21701 ELIM.
21702 Add qualifiers for Check command options
21703 (Command_Type): New command Check
21704
217052005-12-09 Thomas Quinot <quinot@adacore.com>
21706
21707 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21708 command line switch overruns the output buffer.
21709
217102005-12-09 Robert Dewar <dewar@adacore.com>
21711
21712 * sem_prag.adb: Processing for new pragma Complete_Representation
21713 (Analyze_Pragma, case Debug): Implement two argument form.
21714
21715 * par-prag.adb: Entry for new pragma Complete_Representation
21716 (Prag, case Debug): Recognize two argument form of pragma Debug
21717 New interface for Set_Style_Check_Options.
21718
21719 * sem_ch13.adb: Implement new pragma Complete_Representation.
21720
21721 * snames.adb, snames.ads, snames.h: Entry for new pragma
21722 Complete_Representation.
21723
217242005-12-09 Gary Dismukes <dismukes@adacore.com>
21725
21726 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21727 available user-specified stream attributes on limited parameters to
21728 also test the type directly rather than only its underlying type (for
21729 Ada 95) and, in the case of Ada 2005, to check that the user-specified
21730 attributes are visible at the point of the subprogram declaration.
21731 For Ada 2005, the error message is modified to indicate that the
21732 type's stream attributes must be visible (again, only for -gnat05).
21733
217342005-12-09 Ed Schonberg <schonberg@adacore.com>
21735
21736 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21737 anonymous access types.
21738
21739 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21740 matching of anonymous access types and anonymous access to subprogram
21741 types. 'R'M 4.9.1 (2/2).
21742
217432005-12-09 Ed Schonberg <schonberg@adacore.com>
21744
21745 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21746 rule prematurely when operands are universal, remaining ambiguities
21747 will be removed during resolution.
21748 Code cleanup.
21749
21750 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21751 that are Ada 2005 functions.
21752 (Has_Abstract_Interpretation): Subsidiary to
21753 Remove_Conversions, to remove ambiguities caused by abstract operations
21754 on numeric types when operands are universal.
21755
217562005-12-09 Robert Dewar <dewar@adacore.com>
21757
21758 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21759 for case where spec is categorized.
21760
217612005-12-09 Javier Miranda <miranda@adacore.com>
21762
21763 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21764 types use the corresponding record type. This was not needed before
21765 the implementation of Ada 2005 synchronized types because
21766 concurrent types were never tagged types in Ada 95.
21767
217682005-12-09 Ed Schonberg <schonberg@adacore.com>
21769
21770 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21771 first subtype of the type of the expression to verify that it is a
21772 legal Time type.
21773
217742005-12-09 Robert Dewar <dewar@adacore.com>
21775
21776 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21777 decoded names.
21778
217792005-12-09 Quentin Ochem <ochem@adacore.com>
21780 Robert Dewar <dewar@adacore.com>
21781 Ed Falis <falis@adacore.com>
21782 Florian Villoing <villoing@adacore.com>
21783 Thomas Quinot <quinot@adacore.com>
21784 Arnaud Charlet <charlet@adacore.com>
21785
21786 * gnat_ugn.texi: Created section "Stack Related Tools"
21787 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21788 "Stack Related Tools"
21789 Added subsection "Static Stack Usage Analysis"
21790 Added subsection "Dynamic Stack Usage Analysis"
21791 Include documentation of itypes in sprint listing (-gnatG)
21792 Documented gnatbind -D switch (default sec stack size for fixed sec
21793 stacks).
21794 Added Interrupt_State and Persistent_BSS to list of configuration
21795 pragmas.
21796 Add missing doc for maximum value of nnn in -gnatyMnnn
21797
21798 * gnat_rm.texi: Document the AltiVec binding.
21799 Add documentation for pragma Complete_Representation
21800 Shortened an overly long line (> 79 chars)
21801 Clarify documentation of unchecked conversion in implementation
21802 defined cases.
21803 Document two argument form of pragma Debug
21804
21805 * types.ads (Column_Number): Update documentation.
21806
21807 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21808 library level Finalize_Storage_Only objects (these are not attached to
21809 any finalization list).
21810
21811 * system-mingw.ads: (Underlying_Priorities): Update comment.
21812
218132005-12-09 Robert Dewar <dewar@adacore.com>
21814
21815 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
6f7f72f9 21816 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
aedc2c2b
AC
21817 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21818 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21819 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21820 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21821 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21822 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21823 reformatting.
21824
218252005-12-09 Robert Dewar <dewar@adacore.com>
21826
21827 * s-vaflop-vms-alpha.adb: (Ne_F): New function
21828 (Ne_G): New function
21829
21830 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21831 for tag assignment.
21832 (Rewrite_Comparison): Handle case where operation is not a comparison
21833 and ignore, and also handle type conversion case.
21834
218352005-12-09 Thomas Quinot <quinot@adacore.com>
21836
21837 * exp_aggr.ads: Fix typo in comment.
21838 ???-mark Convert_Aggr_In_Assignment as needing documentation.
21839
218402005-12-09 Gary Dismukes <dismukes@adacore.com>
21841
21842 * layout.adb: Replace various uses of byte by storage unit throughout.
21843 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21844 static size, convert to storage units before returning, to conform to
21845 spec.
21846
218472005-12-09 Matthew Gingell <gingell@adacore.com>
21848
21849 * g-exctra.ads: Fix typo in comment.
21850
218512005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21852
21853 * utils.c: Minor reformatting.
21854
218552005-12-09 Robert Dewar <dewar@adacore.com>
21856
9e81dbc7 21857 * g-soccon.ads:
aedc2c2b
AC
21858 Further comment fixes to make the status of the default file clear
21859
21860 * s-bitops.adb: Clarify comment for Bits_Array
21861
719bb4e3 218622005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
bd97af06
RÁE
21863
21864 * Make-lang.in (ada.install-normal): Remove.
21865
719bb4e3 218662005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2f4d2d18
AM
21867
21868 * Make-lang.in: Remove all dependencies on s-gtype.
21869
53917868
RG
218702005-12-05 Richard Guenther <rguenther@suse.de>
21871
21872 * utils.c (convert): Use fold_convert where appropriate.
21873
40077270
PB
218742005-12-05 Paolo Bonzini <bonzini@gnu.org>
21875
6f7f72f9 21876 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
40077270
PB
21877 a period is meant.
21878
a380cd0a
RG
218792005-12-02 Richard Guenther <rguenther@suse.de>
21880
21881 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21882
87f2a9f5
RS
218832005-12-01 Roger Sayle <roger@eyesopen.com>
21884
21885 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21886 nodes.
21887
9e94c78f 218882005-11-23 Laurent Guerby <laurent@guerby.net>
f8d15f14 21889
6f7f72f9 21890 * mlib-prj.adb (Build_Library): Initialize Delete.
f8d15f14 21891
9e94c78f 218922005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
04b5d587
JS
21893
21894 * socket.c: Add extern int h_errno for rtems since networking header
21895 files are not available at this point in a tool bootstrap. Newlib
21896 only has basic C library header files.
21897
452b5b1e
RG
218982005-11-19 Richard Guenther <rguenther@suse.de>
21899 Roger Sayle <roger@eyesopen.com>
21900
21901 PR ada/23717
21902 * misc.c (internal_error_function): Don't use vsprintf to format
21903 the error message text, instead use pp_format_text and the new
21904 pretty printer APIs. This allows handling of %qs, %w, etc.
21905
9e94c78f 219062005-11-18 Laurent Guerby <laurent@guerby.net>
e0709888 21907
6f7f72f9
EB
21908 PR ada/24857
21909 * Makefile.in: Use s-auxdec-empty for RTEMS.
e0709888 21910
115a82d3
RK
219112005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21912
21913 PR ada/22333
21914 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21915 a temporary if taking the address of something that is neither
21916 reference, declaration, or constant, since the gimplifier
21917 can't handle that case.
21918
9e94c78f 219192005-11-17 Laurent Guerby <laurent@guerby.net>
f92af607
LG
21920
21921 PR ada/24857
21922 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
6f7f72f9 21923
0678ec6b
RG
219242005-11-16 Richard Guenther <rguenther@suse.de>
21925
21926 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21927
9e94c78f 219282005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
b381d30b 21929
6f7f72f9
EB
21930 PR ada/24855
21931 * raise-gcc.c: Add missing stdarg.h include.
9e81dbc7 21932
1367ca38
RG
219332005-11-16 Richard Guenther <rguenther@suse.de>
21934
21935 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21936 (ada/misc.o): Likewise.
21937
5de923eb
AC
219382005-11-14 Thomas Quinot <quinot@adacore.com>
21939
21940 * g-soccon.ads: Minor reformatting. Update comments.
21941
21942 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21943 gain visibility on the declaration of struct timeval.
21944
21945 * g-soccon-freebsd.ads,
21946 g-soccon-darwin.ads,
21947 g-soccon-tru64.ads,
21948 g-soccon-aix.ads,
21949 g-soccon-irix.ads,
21950 g-soccon-hpux.ads,
21951 g-soccon-solaris.ads,
21952 g-soccon-vms.ads,
21953 g-soccon-mingw.ads,
21954 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21955
21956 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21957 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21958 g-soccon-linux-x86.ads: New files.
21959
9e81dbc7 21960 * g-socthi-mingw.adb:
5de923eb
AC
21961 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21962
21963 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21964 (time_t, suseconds_t): New types constructed to match the tv_sec
21965 and tv_usec fields of C struct timeval.
21966 (Timeval): Construct structure in terms of the new types.
21967 (Host_Errno): New function (imported from socket.c), returns last hosts
21968 database error.
21969
21970 * g-socthi-vxworks.adb: Add error handling circuitry.
21971
21972 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21973 components of struct timeval.
21974 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21975 (Check_Selector): In error conditions, clear internal socket sets to
21976 avoid a memory leak.
21977 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21978 Send_Timeout, Receive_Timeout.
21979
21980 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21981 the tv_sec and tv_usec fields of C struct timeval.
21982 (Timeval): Construct structure in terms of the new types.
21983 (Host_Errno): New function (imported from socket.c), returns last hosts
21984 database error.
21985
21986 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21987 hosts database last error code.
21988
21989 * gen-soccon.c: Complete value expansion should not be performed on
21990 TARGET, as it has the form of a math expression, and some components
21991 may be platform-defined macros.
21992 For VxWorks, generate the OK and ERROR values.
21993 New constants giving the sizes of the components of C struct timeval.
21994
219952005-11-14 Robert Dewar <dewar@adacore.com>
21996 Ed Schonberg <schonberg@adacore.com>
21997
21998 PR ada/18434
5de923eb
AC
21999 * types.ads: Include All_Checks in Suppress_Array
22000
22001 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
22002 not(a=b), since we no longer do this rewriting, and hence it is not
22003 needed.
22004 (Elaboration_Checks_Suppressed): Add special casing to
22005 deal with different cases of static and dynamic elaboration checks (all
22006 checks does not count in the first case, but does in the second).
22007 (Expr_Known_Valid): Do not assume that the result of any arbitrary
22008 function call is valid, since this is not the case.
22009 (Ensure_Valid): Do not apply validity check to a real literal
22010 in a universal or fixed context
22011
22012 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
22013 elementary types using the operator in standard. It is cleaner not to
22014 modify the programmers intent, especially in the case of floating-point.
22015 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
22016 it did not matter because we always rewrote a/=b to not(a=b).
22017 (Expand_Allocator_Expression): For an allocator expression whose nominal
22018 subtype is an unconstrained packed type, convert the expression to its
22019 actual constrained subtype.
22020 Implement warning for <= or >= where < or > not possible
22021 Fix to Vax_Float tests (too early in many routines, causing premature
22022 Vax_Float expansions.
22023
22024 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
22025 to be used with packages and generic packages as well as with
22026 subprograms.
22027 (Suppress): Set All_Checks, but not Elaboration_Check, for case
22028 of pragma Suppress (All_Checks)
22029 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
22030 a string literal for precise control over warnings.
22031 Avoid raise of pragma in case of unrecognized pragma and just return
22032 instead.
22033
22034 * sem_prag.ads: Minor reformatting
22035
22036 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
22037 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22038 Switch. Do not handle any exception.
22039 Include -gnatwx as part of -gnatg (warn on redundant parens)
22040 Allow optional = after -gnatm
22041 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
22042 longer sets Elaboration_Checks.
22043 Code to set warning mode moved to Sem_Warn
22044 so that it can be shared by pragma processing.
22045
22046 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
22047 statement.
22048
9e81dbc7 22049 * s-taprop-solaris.adb:
5de923eb
AC
22050 Change some <= to =, to avoid new warning
22051
9e81dbc7 22052 * a-exexda.adb, prj-proc.adb:
5de923eb
AC
22053 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
22054 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
22055
220562005-11-14 Robert Dewar <dewar@adacore.com>
22057
22058 * exp_vfpt.adb: Handle /= case
22059 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
22060 so that we do not get duplicate scaling for fixed point conversions.
22061
22062 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
22063
220642005-11-14 Matthew Gingell <gingell@adacore.com>
22065
9e81dbc7 22066 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
5de923eb
AC
22067 Increase default priority on Lynx from 15 to 17, and meet the Ada
22068 requirement that Default_Priority be ((Priority'First +
22069 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
22070
220712005-11-14 Vincent Celier <celier@adacore.com>
22072
22073 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22074 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22075 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
22076 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
22077 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
22078 mlib-tgt-lynxos.adb (DLL_Prefix): New function
22079
220802005-11-14 Doug Rupp <rupp@adacore.com>
22081
22082 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
22083 private part.
22084
220852005-11-14 Arnaud Charlet <charlet@adacore.com>
22086
22087 * s-traces-default.adb, s-trafor-default.ads,
22088 s-tratas-default.adb: Fix compilation errors.
22089
220902005-11-14 Jose Ruiz <ruiz@adacore.com>
22091
22092 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22093 raising the exception so the memory used is freed.
22094
220952005-11-14 Arnaud Charlet <charlet@adacore.com>
22096
22097 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22098 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22099 (convert_address): Update comments and list of platforms using this.
22100
22101 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22102 no longer used.
22103
221042005-11-14 Pascal Obry <obry@adacore.com>
22105 Vincent Celier <celier@adacore.com>
22106
22107 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22108 GNAT.Command_Line.
22109
22110 * memroot.adb: Remove redundant with/use clause on
22111 System.Storage_Elements.
22112
221132005-11-14 Arnaud Charlet <charlet@adacore.com>
22114
22115 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22116 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22117 related code to a-exexpr.adb
22118 (Save_Occurrence_And_Private): Move GCC EH related code to
22119 a-exexpr-gcc.adb
22120 (Raise_Current_Excep): Add new variable Id with pragma
6f7f72f9 22121 volatile, to ensure that the variable lives on stack.
5de923eb
AC
22122
22123 * a-exexpr-gcc.adb, raise-gcc.c: New file.
22124
22125 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22126 from a-except.adb.
22127 Move GCC EH related code to a-exexpr-gcc.adb
22128
22129 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22130 64-bit Solaris
22131 Split the Linux version of g-soccon into separate variants for 32 and 64
22132 bit platforms.
22133 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22134 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22135 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22136 of host variable $(RANLIB_FLAGS).
22137 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22138 Code clean up: remove unused/obsolete targets.
22139 (EH_MECHANISM): New variable introduced to differenciate between the
22140 two EH mechanisms statically.
22141 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22142 (LIBGNAT_OBJS): Add raise-gcc.o
22143 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22144 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22145 supports VxWorks 6 RTPs.
22146 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22147 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22148
22149 * raise.c: Move all GCC EH-related routines to raise-gcc.c
22150
221512005-11-14 Jose Ruiz <ruiz@adacore.com>
22152
22153 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22154 deferral level, when abort is not allowed, to a later stage (the
22155 Task_Wrapper).
22156 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22157 it will not get changed by the generated code. It was previously done
22158 in Create_Task.
22159
221602005-11-14 Thomas Quinot <quinot@adacore.com>
22161 Olivier Hainque <hainque@adacore.com>
22162 Eric Botcazou <ebotcazou@adacore.com>
22163
22164 * decl.c:
22165 Factor common code to build a storage type for an unconstrained object
22166 from a fat or thin pointer type and a constrained object type.
22167 (annotate_value): Handle BIT_AND_EXPR.
22168 (annotate_rep): Don't restrict the back annotation of inherited
22169 components to the type_annotate_only case.
22170 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22171 we are not defining the type.
22172 <E_Record_Type>: Likewise.
22173 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22174 to get advantage of the new maybe_stabilize_reference interface, to
22175 ensure that what we reference is indeed stabilized instead of relying
22176 on assumptions on what the stabilizer does.
22177 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22178 type imported through a limited_with clause, use its non-limited view.
22179 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22180 differentiation.
22181 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22182 of #if sections + explicit comparisons of convention identifiers.
22183 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22184 before early-returning for certain types when code generation is
22185 disabled.
22186 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22187 nullification of gnu_expr we do for objects with address clause and
22188 that we are not defining.
22189 (elaborate_expression_1): Do not create constants when creating
22190 variables needed by the debug info: the dwarf2 writer considers that
22191 CONST_DECLs is used only to represent enumeration constants, and emits
22192 nothing for them.
22193 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22194 object with an address clause into an indirect reference, drop the
22195 initializing expression.
22196 Include "expr.h".
22197 (STACK_CHECK_BUILTIN): Delete.
22198 (STACK_CHECK_PROBE_INTERVAL): Likewise.
22199 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22200 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22201 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22202 corresponding to the renamed object as ignored for debugging purposes.
22203
22204 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22205 related): For a prefix that is a dereference of a fat or thin pointer,
22206 if there is an actual subtype provided by the front-end, use that
22207 subtype to build an actual type with bounds template.
22208 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22209 is provided by the front-end, use that subtype to compute the size of
22210 the deallocated object.
22211 (gnat_to_gnu): When adding a statement into an elaboration procedure,
22212 check for a potential violation of a No_Elaboration_Code restriction.
22213 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22214 with extra arguments to control whether to recurse through non-values
22215 and to let the caller know if the stabilization has succeeded.
22216 (gnat_stabilize_reference): Now a simple wrapper around
22217 maybe_stabilize, for common uses without restriction on lvalues and
22218 without need to check for the success indication.
22219 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22220 pass false instead of 0 as the FORCE argument which is a bool.
22221 (Identifier_to_gnu): Remove checks ensuring that an renamed object
22222 attached to a renaming pointer has been properly stabilized, as no such
22223 object is attached otherwise.
22224 (call_to_gnu): Invoke create_var_decl to create the temporary when the
22225 function uses the "target pointer" return mechanism.
22226 Reinstate conversion of the actual to the type of the formal
22227 parameter before any other specific treatment based on the passing
22228 mechanism. This turns out to be necessary in order for PLACEHOLDER
22229 substitution to work properly when the latter type is unconstrained.
22230
22231 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22232 common pattern.
22233 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22234 with extra arguments to control whether to recurse through non-values
22235 and to let the caller know if the stabilization has succeeded.
22236
22237 * utils2.c (gnat_build_constructor): Only sort the fields for possible
22238 static output of record constructor if all the components are constant.
22239 (gnat_build_constructor): For a record type, sort the list of field
22240 initializers in increasing bit position order.
22241 Factor common code to build a storage type for an unconstrained object
22242 from a fat or thin pointer type and a constrained object type.
22243 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22244 types variants, and process special cases of VIEW_CONVERT expressions
22245 as their NOP_EXPR counterpart to ensure we get to the
22246 CORRESPONDING_VARs associated with CONST_DECls.
22247 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22248 on the right-hand side.
22249
22250 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22251 a common pattern.
22252 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22253 are converting back to its original type.
22254 (convert) <JM input>: Fallthrough regular conversion code instead of
22255 extracting the object if converting to a type variant.
22256 (create_var_decl): When a variable has an initializer requiring code
22257 generation and we are at the top level, check for a potential violation
22258 of a No_Elaboration_Code restriction.
22259 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22260 SIZE and SIZE_UNIT which we need for later back-annotations.
22261 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22262 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22263 is an unchecked union.
22264 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22265 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22266 main variant, just replace the VIEW_CONVERT_EXPR.
22267 <UNION_TYPE>: Revert 2005-03-02 change.
22268
22269 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22270
22271 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22272
222732005-11-14 Matthew Heaney <heaney@adacore.com>
22274
9e81dbc7
AS
22275 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22276 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22277 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22278 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22279 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22280 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
5de923eb
AC
22281 Compiles against the spec for ordered maps described in sections
22282 A.18.6 of the most recent (August 2005) AI-302 draft.
22283
222842005-11-14 Olivier Hainque <hainque@adacore.com>
22285
22286 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22287 to ensure bias adjustments take place when need be and to prevent
22288 occurrences of intermediate overflows.
22289
222902005-11-14 Matthew Gingell <gingell@adacore.com>
22291 Olivier Hainque <hainque@adacore.com>
22292
22293 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22294 ia64 HP-UX.
22295
22296 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22297 tracebacks on ia64 HP-UX and provide explanatory comment.
22298 Enable backtraces on ia64 GNU/Linux.
22299 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22300 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22301
223022005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22303 Javier Miranda <miranda@adacore.com>
22304
22305 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22306 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22307 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22308 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22309
22310 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22311 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22312 assertions).
22313
22314 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22315 subprogram that generates the external name associated with a
22316 secondary dispatch table.
22317 (Get_Secondary_DT_External_Name): New subprogram that generates the
22318 external name associated with a secondary dispatch table.
22319
223202005-11-14 Emmanuel Briot <briot@adacore.com>
22321
22322 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22323 line in the ALI file to include both an instantiation reference, and a
22324 returned value.
22325
223262005-11-14 Vincent Celier <celier@adacore.com>
22327
22328 * clean.adb (Check_Project): Look for Ada code in extending project,
22329 even if Ada is not specified as a language.
22330 Use new function DLL_Prefix for DLL_Name
22331 (Clean_Interface_Copy_Directory): New procedure
22332 (Clean_Library_Directory): New procedure
22333 (Clean_Directory): Remove procedure, no longer used
22334 (Clean_Project): Do not delete any file in an externally built project
22335
22336 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22337 directory of an extending project, even when there are no Ada source
22338 present.
22339 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22340 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22341
22342 * mlib-prj.adb (Check_Library): For all library projects, get the
22343 library file timestamp.
22344 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22345 (Build_Library): Use new function DLL_Prefix for the DLL_Name
22346 (Clean): Remove procedure, no longer used
22347 (Ultimate_Extension_Of): New function
22348 (Build_Library): When cleaning the library directory, only remove an
22349 existing library file and any ALI file of a source of the project.
22350 When cleaning the interface copy directory, remove any source that
22351 could be a source of the project.
22352
22353 * prj.ads, prj.adb (Project_Empty): Add values of new components
22354 Library_TS and All_Imported_Projects.
22355 (Project_Empty): Add values for new components of Project_Data:
22356 Library_ALI_Dir and Display_Library_ALI_Dir
22357
22358 * prj-attr.adb: New project level attribute name Library_ALI_Dir
22359
22360 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22361 attribute Library_ALI_Dir.
22362 (Check_Library_Attributes): The library directory cannot be the same as
22363 any source directory of the project tree.
22364 (Check_Stand_Alone_Library): The interface copy directory cannot be
22365 the same as any source directory of the project tree.
22366
22367 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22368 all temporary files.
22369
223702005-11-14 Robert Dewar <dewar@adacore.com>
22371 Ed Schonberg <schonberg@adacore.com>
22372
22373 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22374 (Check_Elab_Call): A call within a protected body is never an
22375 elaboration call, and does not require checking.
22376 (Same_Elaboration_Scope): Take into account protected types for both
22377 entities.
22378 (Activate_Elaborate_All_Desirable): New procedure
22379
22380 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22381 desirable
22382
22383 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22384 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22385
9e81dbc7 22386 * lib-writ.ads, lib-writ.adb:
5de923eb
AC
22387 Implement new AD/ED for Elaborate_All/Elaborate desirable
22388 Use new Elaborate_All_Desirable flag in N_With_Clause node
22389
22390 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22391 N_Free_Statement nodes.
22392 Define new class N_Subprogram_Instantiation
22393 Add Elaborate_Desirable flag to N_With_Clause node
22394 Add N_Delay_Statement (covering two kinds of delay)
22395
22396 * debug.adb: Introduce d.f flag for compiler
22397 Add -da switch for binder
22398
223992005-11-14 Ed Schonberg <schonberg@adacore.com>
22400 Cyrille Comar <comar@adacore.com>
22401
22402 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22403 for task component, in the case of a limited aggregate. The enclosed
22404 object declaration will create it earlier. Otherwise, in the case of a
22405 nested aggregate, the object may appear in the wrong scope.
22406 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22407 (Gen_Assign): If the component being assigned is an array type and the
22408 expression is itself an aggregate, wrap the assignment in a block to
22409 force finalization actions on the temporary created for each row of the
22410 enclosing object.
22411 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22412 structures are initialized after all discriminants are set so that
22413 they can be accessed even when their offset is dynamic.
22414
224152005-11-14 Robert Dewar <dewar@adacore.com>
22416 Hristian Kirtchev <kirtchev@adacore.com>
22417
22418 * sem_attr.adb: Implement Machine_Rounding attribute
22419 (Analyze_Access_Attribute): The access attribute may appear within an
22420 aggregate that has been expanded into a loop.
22421 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22422 'Terminated whenever the prefix is of a task interface class-wide type.
22423 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22424 the prefix is of a task interface class-wide type.
22425
22426 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22427 to avoid warnings.
22428
22429 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22430 Remove pragma Inline for [Unaligned_]Valid.
22431 Add comments that Valid routines do not work for Vax_Float
22432
22433 * exp_attr.adb: Implement Machine_Rounding attribute
22434
22435 * snames.h: Add entry for Machine_Rounding attribute
22436
224372005-11-14 Javier Miranda <miranda@adacore.com>
22438 Robert Dewar <dewar@adacore.com>
22439 Hristian Kirtchev <kirtchev@adacore.com>
22440
22441 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22442 and related): For a prefix that is an explicit dereference of an
22443 access to unconstrained packed array type, annotate the dereference
22444 with an actual subtype so GIGI can make a correct size computation.
22445 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22446 'Unrestricted_Access, if the designated type is an interface we
22447 add a type conversion to force the displacement of the pointer
22448 to the secondary dispatch table.
22449 Use Universal_Real instead of Long_Long_Float when we need a high
22450 precision float type for the generated code (prevents gratuitous
22451 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22452 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22453 'Terminated for task interface class-wide objects. Generate a call to
22454 the predefined dispatching routine used to retrieve the _task_id from
22455 a task corresponding record.
22456 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22457
22458 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22459 (Check_Dispatching_Operation): Protect the frontend againts
22460 previously detected errors.
22461
22462 * Makefile.rtl: Add new instantiations of system.fat_gen
22463
9e81dbc7 22464 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
5de923eb
AC
22465 Change name of instantiated package for better consistency
22466 with newly added system.fat_gen instantiations.
22467
22468 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22469 s-fvagfl.ads: New files.
22470
224712005-11-14 Cyrille Comar <comar@adacore.com>
22472 Thomas Quinot <quinot@adacore.com>
22473
22474 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22475 assignment of a value of a tagged type that has been rewritten to a
22476 block statement, it is known by construction that no checks are
22477 necessary for the statements within the block: analyze it with checks
22478 suppressed.
22479 (Expand_N_If_Statement): When killing a dead then-branch in an
22480 if-statement that has elsif_parts, recompute the Current_Value node
22481 for any entity whose value is known from the condition of the first
22482 elsif_part.
22483 (Expand_N_Return_Statement): When returning a mutable record, convert
22484 the return value into its actual subtype in order to help the backend
22485 to return the actual size instead of the maximum. This is another
22486 aftermath of not returning mutable records on the sec-stack anymore.
22487
22488 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22489 handling of error msg for suspicious reverse range iteration.
22490 (Check_Possible_Current_Value_Condition): Move declaration from body to
22491 spec, to allow this subprogram to be called from exp_ch5.
22492
224932005-11-14 Thomas Quinot <quinot@adacore.com>
22494
22495 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22496 generate a set of nested array aggregates instead of a single flat
22497 aggregate for multi-dimensional arrays.
22498
224992005-11-14 Pascal Obry <obry@adacore.com>
22500
22501 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22502 by spawnve is a process handle, no need to convert. Add a parameter
22503 close to control wether the process handle must be closed.
22504 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22505 a process handle, not need to convert.
22506 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22507
22508 * g-expect.adb: (Kill): Document the new close parameter.
22509 (Close): Do not release the process handle in the kill there as
22510 waitpid() is using it.
22511 (Send_Signal): Release the process handle.
22512
225132005-11-14 Robert Dewar <dewar@adacore.com>
22514
22515 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22516 need a high precision float type for the generated code (prevents
22517 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22518 used).
22519
22520 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22521 need a high precision float type for the generated code (prevents
22522 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22523 used).
22524 (Expand_Width_Attribute): In configurable run-time, the attribute is not
22525 allowed on non-static enumeration subtypes. Force a load error to emit
22526 the correct diagnostic.
22527
225282005-11-14 Thomas Quinot <quinot@adacore.com>
22529 Robert Dewar <dewar@adacore.com>
22530 Ed Schonberg <schonberg@adacore.com>
22531
22532 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22533 subtype to compute the size of the designated object at run-time,
22534 create such a subtype and store it in the Actual_Designated_Subtype
22535 attribute of the N_Free_Statement.
22536 Generate itype for classwide designated object in both cases of
22537 user-specified storage pool: specific and class-wide, not only in the
22538 specific case.
22539 Raise CE when trying to set a not null access type object to null.
22540 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22541 an explicit loop, because freeze nodes make its position variable.
22542
22543 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22544 null object.
22545
225462005-11-14 Javier Miranda <miranda@adacore.com>
22547
22548 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22549 Build_Stream_Procedure): Add the null-excluding attribute to the first
22550 formal.
22551 This has no semantic meaning under Ada95 mode but it is a
22552 requirement under Ada05 mode.
22553
22554 * par-ch3.adb (P_Access_Definition): Addition of warning message if
22555 the null exclusion is used under Ada95 mode
22556 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22557 (P_Access_Definition): Remove assertion that forbids the use of
22558 the null-exclusion feature in Ada95.
22559
225602005-11-14 Robert Dewar <dewar@adacore.com>
22561
22562 * impunit.adb: Exclude container helper units not intended for use by
22563 users.
22564
225652005-11-14 Ed Schonberg <schonberg@adacore.com>
22566
22567 * freeze.adb (Freeze_Entity): For an access formal that is an access
22568 to subprogram, freeze the anonymous subprogram type at the same time,
22569 to prevent later freezing in the wrong scope, such as the enclosing
22570 subprogram body.
22571 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22572 subprogram whenever available.
22573
225742005-11-14 Arnaud Charlet <charlet@adacore.com>
22575
22576 PR ada/23732
22577 * gnatvsn.ads (Library_Version): Bump to 4.1
22578
225792005-11-14 Robert Dewar <dewar@adacore.com>
22580
22581 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22582 Storage_Offset to avoid wrap around causing invalid results.
22583
225842005-11-14 Pascal Obry <obry@adacore.com>
22585
22586 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22587 cross-compiler.
22588 (Scan_Bind_Arg): Fail with an error message if -M option is used
22589 on a native compiler.
22590
225912005-11-14 Robert Dewar <dewar@adacore.com>
22592 Vincent Celier <celier@adacore.com>
22593
22594 * gprep.adb: Implement -C switch to scan comments
22595
22596 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22597
22598 * scans.ads: Comment updates (including new use of Tok_Comment in
22599 preprocessing)
22600
22601 * opt.ads: Add documentation for flags that are used by gprmake,
22602 currently and in the next version of gprmake.
22603 (Verbosity_Level): New variable
22604 Add Replace_In_Comments switch
22605
22606 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22607 and -vm.
22608 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22609
226102005-11-14 Arnaud Charlet <charlet@adacore.com>
22611
22612 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22613 message, friendlier.
22614
226152005-11-14 Robert Dewar <dewar@adacore.com>
22616
22617 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22618
226192005-11-14 Doug Rupp <rupp@adacore.com>
22620
22621 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22622
226232005-11-14 Robert Dewar <dewar@adacore.com>
22624
22625 * interfac.ads: Change declarations of IEEE float types so that we no
22626 longer need a separate version of this package for VMS.
22627
226282005-11-14 Ed Schonberg <schonberg@adacore.com>
22629
22630 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22631 internal entity created for the declaration of a child subprogram body
22632 with no spec as coming from source, to generate proper cross-reference
22633 information.
22634
226352005-11-14 Vincent Celier <celier@adacore.com>
22636
22637 * make.adb (Compile_Sources): Change verbose message to minimum
22638 verbosity level High for "is in an Ada library", "is a read-only
22639 library" and "is an internal library",
22640 (Create_Binder_Mapping_File): Path name of ALI file for library project
22641 must include the library directory, not the object directory.
22642 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22643 for new switches -vl, -vm and -vh.
22644 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22645 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22646 (Compile_Sources): Do not attempt to compile if an ALI file is missing
22647 in a project that is externally built.
22648 (Compute_All_Imported_Projects): New procedure
22649 (Gnatmake): Check if importing libraries should be regenerated because
22650 at least an imported library is more recent.
22651 (Initialize): For each project compute the list of the projects it
22652 imports directly or indirectly.
22653 (Add_Library_Search_Dir): New procedure, used in place of
22654 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22655 put in the search paths.
22656 (Add_Source_Search_Dir): New procedure, used in place of
22657 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22658 put in the search paths.
22659 (Mark_Directory): Resolve the absolute path the directory before marking
22660 it.
22661
22662 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22663 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22664 Switch. Do not handle any exception.
22665 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22666 so that the switch is recognized as valid.
22667 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22668
226692005-11-14 GNAT Script <nobody@adacore.com>
22670
22671 * Make-lang.in: Makefile automatically updated
22672
226732005-11-14 Pascal Obry <obry@adacore.com>
22674
22675 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22676 used.
22677 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22678 In both cases the last argument was dropped.
22679
226802005-11-14 Eric Botcazou <ebotcazou@adacore.com>
22681
22682 * namet.h: (Column_Numbe): New type.
22683 (Get_Column_Number): Define to sinput__get_column_number.
22684 (Instantiation): Define to sinput__instantiation.
22685 (Get_Column_Number): Declare.
22686 (Instantiation): Likewise.
22687
226882005-11-14 Robert Dewar <dewar@adacore.com>
22689
22690 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22691 syntax, which could cause compiler hangs.
22692
226932005-11-14 Vincent Celier <celier@adacore.com>
22694
22695 * prj-ext.adb: Take into account new environment variable
22696 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22697 are defined.
22698 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22699 normalize its path name, making it absolute and resolving symbolic
22700 links, and replace the original if resolved path is different.
22701
227022005-11-14 Vincent Celier <celier@adacore.com>
22703
22704 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22705 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22706
227072005-11-14 Emmanuel Briot <briot@adacore.com>
22708
22709 * prj-pp.adb (Print): Do not output the with statement if the
22710 associated name is empty, which happens for virtual extending projects.
22711 (Print): Preserve the "extends all" attribute when printing the project.
22712
22713 * prj-tree.ads (String_Value_Of): Add comment about returned value for
22714 a virtual extending project.
22715
227162005-11-14 Ed Schonberg <schonberg@adacore.com>
22717
22718 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22719 rhs of an assignment even if the type is unconstrained, when the
22720 context is non-expanding.
22721 In an inlined body, if the context type is private,
22722 resolve with its full view, which must be a composite type.
22723
227242005-11-14 Robert Dewar <dewar@adacore.com>
22725 Ed Schonberg <schonberg@adacore.com>
22726
22727 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22728 Do not give obsolescent warning on with of subprogram (since we
22729 diagnose calls)
22730 (Analyze_With_Clause): Add test for obsolescent package
22731 (Install_Context_Clauses): If the unit is the body of a child unit, do
22732 not install twice the private declarations of the parents, to prevent
22733 circular lists of Use_Clauses in a parent.
22734 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22735 compiling body of child unit.
22736 Use new class N_Subprogram_Instantiation
22737 (Expand_With_Clause): If this is a private with_clause for a child unit,
22738 appearing in the context of a package declaration, then the implicit
22739 with_clauses generated for parent units are private as well.
22740 (License_Check): Do not generate message if with'ed unit is internal
22741
227422005-11-14 Gary Dismukes <dismukes@adacore.com>
22743 Ed Schonberg <schonberg@adacore.com>
22744 Thomas Quinot <quinot@adacore.com>
22745
22746 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22747 names are internal, because they will not have a corresponding partner
22748 in the actual package.
22749 (Analyze_Formal_Package): Move the setting of the formal package spec's
22750 Generic_Parent field so that it occurs prior to analyzing the package,
22751 to allow proper operation of Install_Parent_Private_Declarations.
22752 (Analyze_Package_Instantiation): Set the instantiated package entity's
22753 Package_Instantiation field.
22754 (Get_Package_Instantiation_Node): Move declaration to package spec.
22755 Retrieve the N_Package_Instantiation node when the Package_Instantiation
22756 field is present.
22757 (Check_Generic_Child_Unit): Within an inlined call, the only possible
22758 instantiation is Unchecked_Conversion, for which no parents are needed.
22759 (Inline_Instance_Body): Deinstall and record the use_clauses for all
22760 parent scopes of a scope being removed prior to inlining an instance
22761 body.
22762 (Analyze_Package_Instantiation): Do not perform front-end inlining when
22763 the current context is itself an instance within a non-instance child
22764 unit, to prevent scope stack errors.
22765 (Save_References): If the node is an aggregate that is an actual in a
22766 call, rewrite as a qualified expression to preserve some type
22767 information, to resolve possible ambiguities in the instance.
22768 (Instance_Parent_Unit): New global variable to record the ultimate
22769 parent unit associated with a generic child unit instance (associated
22770 with the existing Parent_Unit_Visible flag).
22771 (type Instance_Env): New component Instance_Parent_Unit for stacking
22772 parents recorded in the global Instance_Parent_Unit.
22773 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22774 stack.
22775 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22776 it's not a top-level unit, and only do this if Instance_Parent_Unit is
22777 not already set. Replace test of Is_Child_Unit with test of parent's
22778 scope against package Standard. Add comments and a ??? comment.
22779 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22780 on a child instance parent to test that the parent equals
22781 Instance_Parent rather than simply checking that the unit is not a
22782 child unit.
22783 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22784 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22785 a formal interface are ancestors of the corresponding actual.
22786 (Validate_Formal_Interface_Type): Additional legality checks.
22787 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22788 interface types with ancestors.
22789 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22790 to diagnose attempts to use generic within its own declaration.
22791
227922005-11-14 Ed Schonberg <schonberg@adacore.com>
22793 Javier Miranda <miranda@adacore.com>
22794
22795 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22796 discriminant.
22797 (Build_Private_Derived_Type): The entity of the created full view of the
22798 derived type does not come from source. If after installing the private
22799 declarations of the parent scope the parent is still private, use its
22800 full view to construct the full declaration of the derived type.
22801 (Build_Derived_Record_Type): Relax the condition that controls the
22802 execution of the check that verifies that the partial view and
22803 the full view agree in the set of implemented interfaces. In
22804 addition, this test now only takes into account the progenitors.
22805 (Derive_Interface_Subprograms): No need to derive subprograms
22806 of ancestors that are interfaces.
22807 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22808 associated code.
22809 Change name Is_Package to Is_Package_Or_Generic_Package
22810 (Complete_Subprograms_Derivation): Handle the case in which the full
22811 view is a transitive derivation of the ancestor of the partial view.
22812 (Process_Full_View): Rename local subprogram Find_Interface_In_
22813 Descendant to Find_Ancestor_Interface to leave the code more clear.
22814 Remove wrong code that avoids the generation of an error message
22815 when the immediate ancestor of the partial view is an interface.
22816 In addition some minor reorganization of the code has been done to
22817 leave it more clear.
22818 (Analyze_Type_Declaration): If type has previous incomplete tagged
22819 partial view, inherit properly its primitive operations.
22820 (Collect_Interfaces): Make public, for analysis of formal
22821 interfaces.
22822 (Analyze_Interface_Declaration): New procedure for use for regular and
22823 formal interface declarations.
22824 (Build_Derived_Record_Type): Add support for private types to the code
22825 that checks if a tagged type implements abstract interfaces.
22826 (Check_Aliased_Component_Type): The test applies in the spec of an
22827 instance as well.
22828 (Access_Type_Declaration): Clean up declaration of malformed type
22829 declared as an access to its own classwide type, to prevent cascaded
22830 crash.
22831 (Collect_Interfaces): For private extensions and for derived task types
22832 and derived protected types, the parent may be an interface that must
22833 be included in the interface list.
22834 (Access_Definition): If the designated type is an interface that may
22835 contain tasks, create Master_Id for it before analyzing the expression
22836 of the declaration, which may be an allocator.
22837 (Record_Type_Declaration): Set properly the interface kind, for use
22838 in allocators, the creation of master id's for task interfaces, etc.
22839
228402005-11-14 Javier Miranda <miranda@adacore.com>
22841 Ed Schonberg <schonberg@adacore.com>
22842
22843 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22844 omitted in case of stream attribute subprograms.
22845 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22846 appear immediately after a subprogram body, when there is no previous
22847 subprogram declaration.
22848 Change name Is_Package to Is_Package_Or_Generic_Package
22849 (Process_Formals): A non null qualifier on a non null named access
22850 type is not an error, and is a warning only if Redundant_Constructs
22851 are flagged.
22852
228532005-11-14 Gary Dismukes <dismukes@adacore.com>
22854 Ed Schonberg <schonberg@adacore.com>
22855
22856 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22857 nested within Analyze_Package_Specification to install the private
22858 declarations and use clauses within each of the parent units of a
22859 package instance of a generic child package.
22860 (Analyze_Package_Specification): When entering a private part of a
22861 package associated with a generic instance or formal package, the
22862 private declarations of the parent must be installed (by calling new
22863 procedure Install_Parent_Private_Declarations).
22864 Change name Is_Package to Is_Package_Or_Generic_Package
22865 (Preserve_Full_Attributes): For a synchronized type, the corresponding
22866 record is absent in a generic context, which does not indicate a
22867 compiler error.
22868
228692005-11-14 Ed Schonberg <schonberg@adacore.com>
22870
22871 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22872 not try to rewrite a renamed stream attribute, because the operations
22873 on the type may not have been generated.
22874 Handle properly a renaming_as_body generated for a stream operation
22875 whose default is abstract because the object type itself is abstract.
22876 (Find_Type): If the type is incomplete and appears as the prefix of a
22877 'Class reference, it is tagged, and its list of primitive operations
22878 must be initialized properly.
22879 (Chain_Use_Clauses): When chaining the use clauses that appear in the
22880 private declaration of a parent unit, prior to compiling the private
22881 part of a child unit, find on the scope stack the proper parent entity
22882 on which to link the use clause.
22883 (Note_Redundant_Use): Emit a warning when a redundant use clause is
22884 detected.
22885 (Analyze_Object_Renaming): An attribute reference is not a legal object
22886 if it is not a function call.
22887
228882005-11-14 Robert Dewar <dewar@adacore.com>
22889 Ed Schonberg <schonberg@adacore.com>
22890
22891 * sem_eval.adb: Implement d.f flag
22892 (Subtype_Statically_Match): A generic actual type has unknown
22893 discriminants when the corresponding actual has a similar partial view.
22894 If the routine is called to validate the signature of an inherited
22895 operation in a child instance, the generic actual matches the full view,
22896
228972005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22898 Ed Schonberg <schonberg@adacore.com>
22899 Robert Dewar <dewar@adacore.com>
22900 Thomas Quinot <quinot@adacore.com>
22901
22902 * sem_res.adb (Resolve_Call): Provide a better error message whenever
22903 a procedure call is used as a select statement trigger and is not an
22904 entry renaming or a primitive of a limited interface.
22905 (Valid_Conversion): If the operand has a single interpretation do not
22906 remove address operations.
22907 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22908 statement to inhibit warning.
22909 (Resolve_Unary_Op): Do not produce a warning when
22910 processing an expression of the form -(A mod B)
22911 Use Universal_Real instead of Long_Long_Float when we need a high
22912 precision float type for the generated code (prevents gratuitous
22913 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22914 (Resolve_Concatenation_Arg): Improve error message when argument is an
22915 ambiguous call to a function that returns an array.
22916 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22917 there is an implicit operator in the given scope if we are within an
22918 instance: legality check has been performed on the generic.
22919 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22920 after resolving operand, to avoid false warnings on overloaded calls.
22921
229222005-11-14 Ed Schonberg <schonberg@adacore.com>
22923 Javier Miranda <miranda@adacore.com>
22924
22925 PR ada/15604
5de923eb
AC
22926 * sem_type.adb (Covers): In an inlined body, a composite type matches
22927 a private type whose full view is a composite type.
22928 (Interface_Present_In_Ancestor): Protect the frontend against
22929 previously detected errors to ensure that its compilation
22930 with assertions enabled gives the same output that its
22931 compilation without assertions.
22932 (Interface_Present_In_Ancestor): Add support for private types.
22933 Change name In_Actual to In_Generic_Actual (clean up)
22934 (Disambiguate): New predicate In_Actual, to recognize expressions that
22935 appear in the renaming declaration generated for generic actuals, and
22936 which must be resolved in the outer context.
22937
229382005-11-14 Robert Dewar <dewar@adacore.com>
22939 Thomas Quinot <quinot@adacore.com>
22940 Hristian Kirtchev <kirtchev@adacore.com>
22941 Ed Schonberg <schonberg@adacore.com>
22942
22943 * sem_util.ads, sem_util.adb: Change name Is_Package to
22944 Is_Package_Or_Generic_Package.
22945 (Check_Obsolescent): New procedure.
22946 (Set_Is_Public): Remove obsolete junk test.
22947 (Set_Public_Status): Do not set Is_Public on an object whose declaration
22948 occurs within a handled_sequence_of_statemets.
22949 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22950 for a parameterless procedure.
22951 (Enter_Name): Recognize renaming declarations created for private
22952 component of a protected type within protected operations, so that
22953 the source name of the component can be used in the debugger.
22954
229552005-11-14 Ed Schonberg <schonberg@adacore.com>
22956 Robert Dewar <dewar@adacore.com>
22957
22958 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22959 of a generic subprogram are not visible outside the body.
22960 (Set_Warning_Switch): New procedure (code to set warning mode moved
22961 here from Switch.C so that it can be shared by pragma processing.
22962 (Check_References): Special case warning for non-modified non-imported
22963 volatile objects.
22964 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22965 form with a string literal argument
22966
229672005-11-14 Javier Miranda <miranda@adacore.com>
22968
22969 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22970 anonymous access.
22971 (Write): Addition of "not null" to the anonymous access.
22972 (Read): Addition of "not null" to the anonymous access.
22973 (Write): Addition of "not null" to the anonymous access.
22974
22975 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22976 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22977 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22978 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22979 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22980 "not null" to the anonymous access.
22981
229822005-11-14 Robert Dewar <dewar@adacore.com>
22983
22984 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22985 offset values
22986
229872005-11-14 Vincent Celier <celier@adacore.com>
22988
22989 * switch.adb (Bad_Switch): New procedure
22990 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22991 message when in error.
22992
22993 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22994 Too_Many_Output_Files): Remove declarations, no longer used.
22995 (Scan_Nat): New parameter Switch
22996 (Scan_Pos): Ditto
22997 (Bad_Switch): New procedure
22998
22999 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
23000 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
23001 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
23002 to Osint.Fail. Do not handle any exception.
23003
230042005-11-14 Vincent Celier <celier@adacore.com>
23005
23006 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
23007 designates a non existent directory.
23008
230092005-11-14 Robert Dewar <dewar@adacore.com>
23010
23011 * xgnatugn.adb: Replace invalid membership test by 'Valid
23012
230132005-11-14 Vincent Celier <celier@adacore.com>
23014
23015 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
23016 there is no object directory.
23017
230182005-11-14 Robert Dewar <dewar@adacore.com>
23019
23020 * usage.adb: Minor adjustment to output format, use nn instead of nnn
23021 (so that -gnateInnn does not run into next column)
23022
230232005-11-14 Ed Falis <falis@adacore.com>
23024
23025 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
23026 "constrained"
23027
230282005-11-14 Cyrille Comar <comar@adacore.com>
23029
23030 * s-chepoo.ads: Add comments on Dereference.
23031 Remove unnecessary inherited abstract primitives.
23032 Cosmetic cleanup.
23033
230342005-11-14 Robert Dewar <dewar@adacore.com>
23035
23036 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
23037 node parameter, not needed, since it is available as Declaration_Node.
23038
230392005-11-14 Geert Bosch <bosch@adacore.com>
23040
23041 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
23042 grammatically correct.
23043
230442005-11-14 Vincent Celier <celier@adacore.com>
23045
23046 * s-fileio.ads: Correct spelling error in comment
23047
230482005-11-14 Cyrille Comar <comar@adacore.com>
23049 Robert Dewar <dewar@adacore.com>
23050 Vincent Celier <celier@adacore.com>
23051 Ben Brosgol <brosgol@adacore.com>
23052 Jose Ruiz <ruiz@adacore.com>
23053 Pascal Obry <obry@adacore.com>
23054
9e81dbc7 23055 * gnat_ugn.texi:
5de923eb
AC
23056 Document that -fstack-check is needed for strict compliance with the
23057 Ada 95 Reference Manual.
23058 Correct reference to VAX systems to meet HP guidelines
23059 Add documentation for new gnatmake switches -vl, -vm and -vh
23060 Replace DEC Ada by HP Ada
23061 Replace DIGITAL by HP
23062 Remove empty section on tools in compatibility section
23063 Clarify the Windows convention semantics.
23064 Document the Win32 calling convention.
23065 The Stdcall, Win32 and DLL convention are synonyms.
23066 Add a note in -gnatR description about zero size record components
23067 Note on new >= and <= warnings for -gnatwc
23068 Document that equal sign after -gnatm is optional.
23069 Note that strip is working fine on DLL built with a Library
23070 Project. The restriction apply only to DLL built with gnatdll.
23071 Update section about the way to debug a DLL.
23072 Update information about the DLL convention.
23073 Document -C switch for gnatprep
23074 Document new attribute Library_ALI_Dir
23075 Update elaboration doc to include implicit Elaborate pragmas now
23076 generated for subprogram instantiations.
23077 Document limitation on executable names that include spaces for --GCC,
23078 --GNATBIND, and --GNATLINK switches.
23079 Document that -w causes -gnatws to be added at start of gcc switches
23080
23081 * gnat_rm.texi: Document that -mieee is needed for generating infinite
23082 and NaN values in case of overflow on machines that are not fully
23083 compliant with the IEEE floating-point standard.
23084 Create a section describing the set of compiler options needed for
23085 strict compliance with the Ada 95 Reference Manual.
23086 Add documentation for pragma Obsolescent applied to a package
23087 Clarify potential issues of mixed language programs related to the
23088 I/O buffering enabling in the elaboration of the GNAT runtime.
23089 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23090 This documentation only patch adds extra documentsion for pragma
23091 Restrictions (No_Elaboration_Code), explaining why it is not possible
23092 to document this restriction in terms of allowed source constructs.
23093 Document string literal form of pragma Warnings
23094 Document new attribute Library_ALI_Dir
23095 Add documentation on stable attributes in project files that was missing
23096
23097 * gnat-style.texi: Indicate that paragraphs within a single comment
23098 should be separated by empty comment lines
23099
23100 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23101 /05 respectively)
23102
23103 * bindusg.adb: Minor cleanup, put -m before -M for consistency
23104
231052005-11-14 Robert Dewar <dewar@adacore.com>
23106
23107 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23108 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23109 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23110 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23111 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23112 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23113 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23114 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23115 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23116 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23117 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23118 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23119 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23120 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23121 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23122 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23123 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23124 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23125 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23126 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23127 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23128 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23129 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23130 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23131 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23132 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23133 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23134 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23135 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23136 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23137 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23138 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23139 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23140 system-interix.ads, system-solaris-sparc.ads,
23141 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23142 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23143 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23144 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23145 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23146 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23147 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23148 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23149 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23150 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23151 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23152 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23153 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23154 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23155 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23156 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23157 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23158 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23159 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23160 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23161 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23162 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23163 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23164 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23165 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23166 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23167 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23168 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23169 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23170 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23171 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23172 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23173 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23174 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23175 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23176 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23177 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23178 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23179 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23180 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23181 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23182 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23183 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23184 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23185 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23186 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23187 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23188 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23189 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23190 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23191 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23192 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23193 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23194 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23195 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23196 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23197 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23198 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23199 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23200 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23201 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23202 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23203 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23204 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23205 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23206 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23207 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23208 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23209 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23210 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23211 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23212 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23213 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23214 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23215 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23216 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23217 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23218 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23219 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23220 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23221 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23222 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23223 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23224 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23225 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23226 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23227 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23228 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23229 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23230 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23231 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23232 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23233 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23234 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23235 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23236 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23237 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23238 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23239 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23240 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23241 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23242 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23243 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23244 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23245 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23246 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23247 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23248 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23249 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23250 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23251 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23252 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23253 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23254 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23255 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23256 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23257 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23258 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23259 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23260 a-numaux-darwin.ads, a-numaux-darwin.adb,
23261 a-swuwha.ads, a-stunha.ads: Minor reformatting
23262
e0ac6309
RD
232632005-11-14 Robert Dewar <dewar@adacore.com>
23264
23265 PR ada/18434
23266 * osint-m.adb: Add pragma Elaborate_All for Osint
23267
f45ddfe0
EB
232682005-11-10 Eric Botcazou <ebotcazou@adacore.com>
23269
23270 PR ada/23995
23271 * trans.c (call_to_gnu): Restore statement lost in translation.
23272
13bb031a
EB
232732005-11-08 Eric Botcazou <ebotcazou@adacore.com>
23274
23275 * init.c: Use the Linux-specific section for the IA-64/Linux target.
23276 (__gnat_adjust_context_for_raise): Add conditional code so that the
23277 IA-64 is also supported.
23278
72098128
JW
232792005-11-03 James E Wilson <wilson@specifix.com>
23280
23281 PR ada/23427
13bb031a
EB
23282 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23283 TREE_OVERFLOW check.
72098128 23284
8fafe21d
OH
232852005-09-21 Olivier Hainque <hainque@adacore.com>
23286
23287 PR ada/22418
23288 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23289 as we create them to store a size in bits.
23290
552725e3
EB
232912005-10-21 Eric Botcazou <ebotcazou@adacore.com>
23292
23293 PR ada/21937
23294 PR ada/22328
23295 PR ada/22381
23296 PR ada/22383
23297 PR ada/22419
23298 PR ada/22420
23299 * utils2.c (build_return_expr): New helper function.
23300 * gigi.h (build_return_expr): Declare it.
23301 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23302 of manually building the RETURN_EXPR tree.
23303 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23304 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
8fafe21d 23305 build_binary_op for the "target pointer" case. Use build_return_expr
552725e3
EB
23306 instead of manually building the RETURN_EXPR tree.
23307
9e94c78f 233082005-09-16 Laurent Guerby <laurent@guerby.net>
ccdeca37
LG
23309
23310 PR ada/23788
23311 * s-tpinop.ads: Make this unit Preelaborate.
23312
da8f5fd9
AJ
233132005-09-16 Andreas Jaeger <aj@suse.de>
23314
23315 * socket.c: Add string.h for memcpy.
23316
98b40956
AC
233172005-09-05 Arnaud Charlet <charlet@adacore.com>
23318
23319 * dec-io.ads, dec-io.adb: Removed, no longer used.
23320
233212005-09-01 Arnaud Charlet <charlet@adacore.com>
23322
23323 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23324
23325 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23326 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23327 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23328 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23329 dependent units are Preelaborate.
23330 (Initialize): Call Interrupt_Managemeent.Initialize and
23331 OS_Primitives.Initialize to ensure proper initialization of this unit.
23332 Remove use of System.Soft_Links
23333 Make this unit Preelaborate.
23334
23335 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23336 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23337 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23338 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23339 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23340 s-tratas.ads, s-tasinf.ads: Minor reformatting.
23341 Add pragma Preelaborate, since these packages are suitable for this
23342 categorization.
23343 Update comments.
23344
23345 * s-traent-vms.ads, s-intman-dummy.adb,
23346 s-taprop-dummy.adb: Make this unit Preelaborate.
23347
23348 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
da8f5fd9 23349 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
98b40956
AC
23350 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23351 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23352 s-intman-solaris.adb, s-intman-irix-athread.adb,
23353 s-intman-irix.adb: Mark this unit Preelaborate.
23354 (Initialize): New procedure.
23355 Update comments.
23356
23357 * s-taspri-linux.ads: Removed.
23358
23359 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23360 as done by other implementations (e.g. posix).
23361
23362 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23363 responsible for deferring abort.
23364 Mark this unit Preelaborate.
23365
23366 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23367 proper initialization of the tasking run-time.
23368
23369 * s-tasdeb.ads: Mark this unit Preelaborate.
23370 (Known_Tasks): Add explicit default value to avoid elaboration code.
23371
23372 * s-inmaop-vms.adb (Elaboration code): Add call to
23373 Interrupt_Management.Initialize since the elaboration code depends on
23374 proper initialization of this package.
23375
23376 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23377 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23378 s-osprim-posix.adb: Make this unit Preelaborate.
23379
23380 * a-calend.adb: Add call to OS_Primitives.Initialize
23381
23382 * a-elchha.adb: Update use of Except.Id.Full_Name.
23383 Minor reformatting.
23384 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23385
23386 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23387 Move with clauses outside Warnings Off now that dependent units are
23388 Preelaborate.
23389 Use raise xxx with "..."; Ada 2005 form.
23390
da8f5fd9 23391 * a-taside.ads, a-taside.adb:
98b40956
AC
23392 Remove some dependencies, to make it easier to make this unit truly
23393 Preelaborate.
23394 Rewrite some code to be conformant with Preelaborate rules.
23395
23396 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23397 marked Preelaborate in the future.
23398
23399 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23400 these units Preelaborate.
23401
23402 * s-exctab.adb: Update use of Except.Id.Full_Name.
23403
23404 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23405 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23406 Set_Exc_Stack_Addr): Removed, no longer used.
23407 Remove reference to *Machine_State_Addr*, no longer needed.
23408
23409 * s-stalib.ads: Mark this unit as Preelaborate[_05].
23410 (Exception_Data): Full_Name is now a System.Address so that this unit
23411 can be made Preelaborate.
23412 Clean up/simplify code thanks to Full_Name being a System.Address.
23413 Remove obsolete pragma Suppress (All_Checks), no longer needed.
23414
da8f5fd9 23415 * s-taskin.ads, s-taskin.adb:
98b40956
AC
23416 Move with clauses outside Warnings Off now that dependent units are
23417 Preelaborate.
23418 Make this unit Preelaborate.
23419 (Initialize): New proceduure, replace elaboration code and makes the
23420 set up of the tasking run-time cleaner.
23421 (Detect_Blocking): Now a function instead of a deferred boolean, to
23422 obey Preelaborate rules.
23423
23424 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23425 soft links, no longer used.
23426
23427 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23428 packages are suitable for this categorization.
23429
23430 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23431 since we compile run-time sources in Ada 2005 mode.
23432 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23433 avoid having s-taprop*.adb depend on s-soflin and to avoid code
23434 duplication.
23435 Remove reference to *Machine_State_Addr*, no longer needed.
23436
234372005-09-01 Arnaud Charlet <charlet@adacore.com>
23438
23439 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23440 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23441 Remove reference to System.Exceptions.
23442
23443 * s-mastop-x86.adb: Removed, no longer used.
23444
23445 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23446
23447 * a-excach.adb: Minor reformatting.
23448
23449 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23450 instead fix new warnings that were hidden by this change.
23451 (AAA, ZZZ): Removed, replaced by...
23452 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23453 are used instead of constants, to help make Ada.Exception truly
23454 preelaborate.
23455 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23456 Raise_Storage_Error): File is now a System.Address, to simplify code.
23457 (Elab code): Removed, no longer used.
23458 (Null_Occurrence): Remove Warnings Off and make this construct
23459 preelaborate.
23460 Remove code related to front-end zero cost exception handling, since
23461 it is no longer used.
23462 Remove -gnatL/-gnatZ switches.
23463
23464 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23465 Update use of Except.Msg.
23466
23467 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23468 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23469 to front-end zero cost exception handling, since it is no longer used.
23470 Remove -gnatL/-gnatZ switches.
23471
23472 * lib-writ.ads: Minor reformatting
23473 Remove doc of UX
23474
23475 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23476
23477 * Make-lang.in: Remove references to s-except.ads
23478
23479 * s-except.ads: Removed, no longer used.
23480
da8f5fd9 23481 * s-mastop.ads, s-mastop.adb:
98b40956
AC
23482 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23483 Remove reference to System.Exceptions.
23484
23485 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23486 switch-b.adb: Remove code related to front-end zero cost exception
23487 handling, since it is no longer used.
23488 Remove -gnatL/-gnatZ switches.
23489
234902005-09-01 Robert Dewar <dewar@adacore.com>
23491 Gary Dismukes <dismukes@adacore.com>
23492 Javier Miranda <miranda@adacore.com>
23493
23494 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23495 type by valid test and generate warning.
23496 (Tagged_Membership): Generate call to the run-time
23497 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23498 Change formal name Subtype_Mark to Result_Definition in several calls to
23499 Make_Function_Specification.
23500 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23501 check for proper accessibility of the operand of a class-wide allocator.
23502 The check can be left out if checks are suppressed or if the expression
23503 has a specific tagged type whose level is known to be safe.
23504
23505 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23506 generates the run-time check associated with null-excluding entities.
23507 (Expand_N_Return_Statement): Add tests to determine if the accessibility
23508 check on the level of the return expression of a class-wide function
23509 can be elided. The check usually isn't needed if the expression has a
23510 specific type (unless it's a conversion or a formal parameter). Also
23511 add a test for whether accessibility checks are suppressed. Augment
23512 the comments to describe the conditions for performing the check.
23513
235142005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
23515 Javier Miranda <miranda@adacore.com>
23516 Gary Dismukes <dismukes@adacore.com>
23517 Ed Schonberg <schonberg@adacore.com>
23518
23519 * a-tags.adb (IW_Membership): Give support to
23520 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23521 subprogram has been extended to look for the tag in the ancestors tag
23522 table.
23523 Update the structure of the GNAT Dispatch Table to reflect the
23524 additional two tables used in dispatching selects.
23525 Introduce appropriate array types and record components in
23526 Type_Specific_Data to reflect the two tables.
23527 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23528 the TSD of a tag, indexed by position.
23529 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23530 operation kind in the TSD of a tag, indexed by position.
23531
23532 * a-tags.ads: Introduce an enumeration type to capture different
23533 primitive operation kinds. Define a constant reflecting the number of
23534 predefined primitive operations.
23535 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23536 of an entry wrapper.
23537 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23538 callable entity of a primitive operation.
23539
23540 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23541 primitive operations used in dispatching selects for limited
23542 interfaces, limited tagged, task and protected types what implement a
23543 limited interface.
23544 (Freeze_Type): Generate the bodies of the primitive operations used in
23545 dispatching selects for limited tagged, task and protected types that
23546 implement a limited interface. Generate statements to populate the two
23547 auxiliary tables used for dispatching in select statements.
23548 (Freeze_Record_Type): Add call to initialize the dispatch table entries
23549 associated with predefined interface primitive operations.
23550 (Build_Dcheck_Function): Change Set_Subtype_Mark to
23551 Set_Result_Definition.
23552 (Build_Variant_Record_Equality): Change Subtype_Mark to
23553 Result_Definition.
23554 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23555 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23556 (Build_Assignment): Simplify the code that adds the run-time-check.
23557 (Expand_N_Object_Declaration): Code cleanup.
23558
23559 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23560 entries when there is a protected type that implements a limited
23561 interface.
23562
23563 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23564 common routines used in expansion of dispatching selects.
23565 (Add_Private_Declarations): Select the appropriate protection type when
23566 there is a protected type that implements a limited interface.
23567 (Build_Parameter_Block): Generate a wrapped parameter block.
23568 (Build_Protected_Subprogram_Body): Select the appropriate type for
23569 locking entries when there is a protected type that implements a
23570 limited interface.
23571 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23572 classified as entry wrappers.
23573 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23574 asynchronous selects.
23575 (Expand_N_Conditional_Entry_Call): Add support for expansion of
23576 dispatching conditional selects.
23577 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23578 protection when there is a protected type that implements limited
23579 interfaces.
23580 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23581 timed selects.
23582 (Extract_Dispatching_Call): Extract the entity of the name of a
23583 dispatching call, the object parameter, actual parameters and
23584 corresponding formals.
23585 (Make_Initialize_Protection): Correct logic of protection initialization
23586 when there is a protected type that implements a limited interface.
23587 (Parameter_Block_Pack): Populate a wrapped parameter block with the
23588 values of actual parameters.
23589 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23590 block and assign them to the original actual parameters.
23591
23592 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23593 (Build_Protected_Sub_Specification): Change the type and name of the
23594 last formal to account for the increased variety of protection modes.
23595
23596 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23597 entities. Used to save the value of the Is_Hidden attribute when the
23598 limited-view is installed.
23599 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23600 the attribute of procedures classified as entry wrappers.
23601 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23602 entity of a primitive wrapper.
23603 (Write_Entity_Flags): Output the name and value of the
23604 Is_Primitive_Wrapper attribute.
23605 (Write_Field27_Name): Output the name and entity of the field Wrapped_
23606 Entity.
23607 (Underlying_Type): If we have an incomplete entity that comes from
23608 the limited view then we return the Underlying_Type of its non-limited
23609 view if it is already available.
23610 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23611 including operators.
23612 (Write_Field26_Name): Add entry for Overridden_Operation
23613 (Overridden_Operation): New attribute of functions and procedures.
23614
23615 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23616 predefined position in the dispatch table for the primitive operations
23617 used in dispatching selects.
23618 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23619 predefined primitive operations and replace it with
23620 Default_Prim_Op_Count.
23621 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23622 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23623 the names of the generated primitive operations used in dispatching
23624 selects.
23625 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23626 case of abstract interface types. They will be inherit by the objects
23627 implementing the interface.
23628 (Make_DT): There is no need to inherit the dispatch table of the
23629 ancestor interface for the elaboration of abstract interface types.
23630 The dispatch table will be inherited by the object implementing the
23631 interface.
23632 (Copy_Secondary_DTs): Add documentation.
23633 (Validate_Position): Improve this static check in case of
23634 aliased subprograms because aliased subprograms must have
23635 the same position.
23636 (Init_Predefined_Interface_Primitives): New subprogram that initializes
23637 the entries associated with predefined primitives of all the secondary
23638 dispatch tables.
23639 (Build_Anonymous_Access_Type): Removed.
23640 (Expand_Interface_Actuals): With the previous cleanup there is no need
23641 to build an anonymous access type. This allows further cleanup in the
23642 code generated by the expander.
23643 (Expand_Interface_Conversion): If the actual is an access type then
23644 build an internal function to handle the displacement. If the actual
23645 is null this function returns null because no displacement is
23646 required; otherwise performs a type conversion that will be
23647 expanded in the code that returns the value of the displaced actual.
23648 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23649 conversions that have no effect in the generated code because no
23650 displacement is required. Code cleanup; use local variables to
23651 avoid repeated calls to the subprogram directly_designated_type().
23652
23653 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23654 Classify the primitive operations used in dispatching selects as
23655 predefined.
23656 (Implements_Limited_Interface): Determine whether some type either
23657 directly implements a limited interface or extends a type that
23658 implements a limited interface.
23659 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23660 (Expand_Subtype_From_Expr): Do not build actual subtype if the
23661 expression is limited.
23662 (Find_Interface_Tag): Add code to handle class-wide types and
23663 entities from the limited-view.
23664
23665 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23666 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23667 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23668 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23669 Set_Prim_Op_Kind.
23670
23671 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23672 of procedure name or prefix that appears as a trigger in a triggering
23673 alternative.
23674
23675 * uintp.ads: Introduce constants Uint_11 and Uint_13.
23676
236772005-09-01 Arnaud Charlet <charlet@adacore.com>
23678
23679 * s-tataat.adb, a-tasatt.adb:
23680 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23681
23682 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23683 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23684 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23685 longer used.
23686
236872005-09-01 Arnaud Charlet <charlet@adacore.com>
23688 Jose Ruiz <ruiz@adacore.com>
23689
da8f5fd9 23690 * s-taprop-vxworks.adb:
98b40956
AC
23691 Move with clauses outside Warnings Off now that dependent units are
23692 Preelaborate.
23693 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23694 initialization of this unit.
23695 (Specific): Add new procedures Initialize and Delete so that this
23696 package can be used for VxWorks 5.x and 6.x
23697 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23698 differences between VxWorks 5.x and 6.x
23699 Minor reformatting.
23700 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23701 caller.
23702 Use only Preelaborate-compatible constructs.
23703
23704 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23705 Primitives.Operations.
23706 (Delete, Initialize): New procedures.
23707
23708 * s-osinte-vxworks.adb: Body used to handle differences between
23709 VxWorks 5.x and 6.x
23710 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23711
23712 * s-osinte-vxworks.ads: Minor reformatting.
23713 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23714 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23715 and 6.
23716 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23717 between Vxworks 5 and 6.
23718 (taskLock, taskUnlock): Removeed, no longer used.
23719
23720 * adaint.c: The wait.h header is not located in the sys directory on
23721 VxWorks when using RTPs.
23722 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23723 using RTPs.
23724 (__gnat_dup): dup is available on Vxworks when using RTPs.
23725 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23726
23727 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23728
23729 * expect.c: The wait.h header is not located in the sys directory on
23730 VxWorks when using RTPs.
23731
237322005-09-01 Thomas Quinot <quinot@adacore.com>
23733
23734 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23735
23736 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23737
23738 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23739 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23740 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23741 g-soccon-freebsd.ads: Add new constants:
23742 IP_MULTICAST_IF
23743 SO_RCVTIMEO/SO_SNDTIMEO
23744 IOV_MAX
23745
da8f5fd9 23746 * gen-soccon.c:
98b40956
AC
23747 Move all target-specific file inclusions and macro definitions to
23748 gsocket.h, in order to ensure that any C code in socket.c will see a
23749 set of constants that is consistent with the contents of g-soccon.ads.
23750
23751 * gsocket.h: Code imported from gen-soccon.c:
23752 Move all target-specific file inclusions and macro definitions to
23753 gsocket.h, in order to ensure that any C code in socket.c will see a set
23754 of constants that is consistent with the contents of g-soccon.ads.
23755 This change also makes gen-soccon self-contained (removing dependencies
23756 upon GCC internal headers).
23757
23758 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23759 iovecs at a time.
23760 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23761
23762 * socket.c: Minor reformatting.
23763
237642005-09-01 Ed Schonberg <schonberg@adacore.com>
23765 Thomas Quinot <quinot@adacore.com>
23766
23767 * fname-sf.adb, mlib-tgt.ads,
23768 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23769 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23770 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23771 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23772 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23773 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23774 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23775 makegpr.adb: Remove redundant use_clauses.
23776
237772005-09-01 Arnaud Charlet <charlet@adacore.com>
23778
da8f5fd9
AJ
23779 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23780 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23781 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23782 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23783 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23784 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23785 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23786 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23787 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23788 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23789 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23790 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23791 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23792 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23793 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
98b40956 23794 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
da8f5fd9
AJ
23795 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23796 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23797 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23798 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23799 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23800 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23801 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23802 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23803 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23804 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23805 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23806 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
98b40956
AC
23807 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23808 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
da8f5fd9
AJ
23809 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23810 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23811 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23812 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23813 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23814 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23815 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23816 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23817 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23818 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23819 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23820 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23821 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23822 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23823 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23824 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23825 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23826 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23827 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23828 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23829 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23830 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23831 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23832 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23833 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23834 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23835 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23836 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23837 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23838 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23839 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23840 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23841 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23842 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23843 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23844 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23845 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
98b40956
AC
23846 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23847 and always use the no parameter form for consistency.
23848
23849 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23850
238512005-09-01 Robert Dewar <dewar@adacore.com>
23852
23853 * binde.adb: Minor reformatting
23854 (Find_Elab_Order): Output warning if -p used with static elab order
23855
238562005-09-01 Robert Dewar <dewar@adacore.com>
23857
23858 * checks.adb (Check_Needed): New procedure, deals with removing checks
23859 based on analysis of short-circuited forms. Also generates warnings for
23860 improper use of non-short-circuited forms.
23861 Code clean ups.
23862
238632005-09-01 Robert Dewar <dewar@adacore.com>
23864
23865 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23866 with 'Valid tests.
23867
238682005-09-01 Robert Dewar <dewar@adacore.com>
23869
23870 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23871 spec.
23872 Implement new insertion char < (conditional warning)
23873 * errutil.adb, erroutc.adb: Implement new insertion char <
23874 (conditional warning).
23875 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23876 (Error_Msg_Warn): New variable for < insertion char.
23877 * prj-nmsc.adb: Implement new errout insertion char < (conditional
23878 warning).
23879 (Check_For_Source): Change value of Source_Id only after the current
23880 source has been dealt with.
23881
238822005-09-01 Robert Dewar <dewar@adacore.com>
23883 Doug Rupp <rupp@adacore.com>
23884
23885 * exp_attr.adb: Handle vax fpt for 'Valid attribute
23886 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23887 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23888 (Valid_D, Valid_F, Valid_G): New functions
23889
238902005-09-01 Ed Schonberg <schonberg@adacore.com>
23891 Hristian Kirtchev <kirtchev@adacore.com>
23892 Javier Miranda <miranda@adacore.com>
23893
23894 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23895 from object notation, the original node is unanalyzed and carries no
23896 semantic information, so that accessiblity checks must be performed on
23897 the type of the actual itself.
23898 (Expand_N_Subprogram_Declaration): Change last actual parameter for
23899 compatibility with Build_Protected_Sub_Specification.
23900 (Check_Overriding_Inherited_Interfaces): Add suport to handle
23901 overloaded primitives.
23902 (Register_Interface_DT_Entry): Use the new name of the formal
23903 the the calls to Expand_Interface_Thunk
23904
23905 * exp_dbug.ads: Augment comments on encoding of protected types to
23906 include the generation of dispatching subprograms when the type
23907 implements at least one interface.
23908
23909 * lib.ads: Extend information in Load_Stack to include whether a given
23910 load comes from a Limited_With_Clause.
23911
23912 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23913 whether a potential circularity is harmless, because it includes units
23914 loaded through a limited_with clause. Extends previous treatment which
23915 did not handle properly arbitrary combinations of limited and
23916 non-limited clauses.
23917
239182005-09-01 Nicolas Setton <setton@adacore.com>
23919
23920 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23921 to be encoded as typ___XBLU_lowerbound__upperbound instead of
23922 typ___XB_lowerbound__upperbound.
23923
239242005-09-01 Thomas Quinot <quinot@adacore.com>
23925
23926 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23927 dummy access formal for RACW/RAS TypeCode TSS.
23928 (Build_TypeCode_Call): Do not generate dummy null access actual for
23929 calls to the TypeCode TSS.
23930
239312005-09-01 Ed Schonberg <schonberg@adacore.com>
23932
23933 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23934 fully qualified name, to distinguish instances with the same local name.
23935
23936 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23937 fully qualified.
23938
239392005-09-01 Robert Dewar <dewar@adacore.com>
23940
23941 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23942 packed arrays.
23943
239442005-09-01 Jerome Lambourg <lambourg@adacore.com>
23945
23946 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23947 (Free): New deallocation procedure for filter elements
23948 (Close): Deallocate any existing filter for the concerned connection
23949
239502005-09-01 Laurent Pautet <pautet@adacore.com>
23951
23952 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23953 position set is provided, we compute one in order to reduce the maximum
23954 length of the keys. This computation first selects a character
23955 position between 1 and the minimum length of the keys in order to
23956 avoid reducing one of the keys to an empty string.
23957 (Initialize, Compute): When the ratio V to K is too low, the algorithm
23958 does not converge. The initialization procedure now comes with a
23959 maximum number of iterations such that when exceeded, an exception is
23960 raised in Compute. The user can initialize this ratio to another value
23961 and try again
23962 Reformating and updated headers.
23963
239642005-09-01 Javier Miranda <miranda@adacore.com>
23965
23966 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23967 that given an entity T creates and returns an Itype that duplicates the
23968 contents of T. The returned Itype has the null-exclusion
23969 attribute set to True, and its Etype attribute references T
23970 to keep the association between the two entities.
23971 Update copyright notice
23972
23973 * sem_aggr.adb (Check_Can_Never_Be_Null,
23974 Aggregate_Constraint_Checks, Resolve_Aggregate,
23975 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23976
23977 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23978
239792005-09-01 Gary Dismukes <dismukes@adacore.com>
23980 Robert Dewar <dewar@adacore.com>
23981 Hristian Kirtchev <kirtchev@adacore.com>
23982
23983 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23984 Result_Definition.
23985
23986 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23987 function specs.
23988 Call Set_Result_Definition instead of Set_Subtype_Mark.
23989 (P_Subprogram_Specification): Add parsing of anonymous access result
23990 plus null exclusions. Call Set_Result_Definition instead of
23991 Set_Subtype_Mark.
23992
23993 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23994 (P_Access_Type_Definition): Add parsing for an anonymous access result
23995 subtype, plus parsing for null exclusions. Call Set_Result_Definition
23996 instead of Set_Subtype_Mark.
23997
23998 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23999 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
24000 (Result_Definition): New function for N_Function_Specifications.
24001 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
24002 N_Function_Specification.
24003 (Set_Null_Exclusion_Present): Allow this flag for
24004 N_Function_Specification.
24005 (Set_Result_Definition): New procedure for N_Function_Specifications.
24006 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
24007 and N_Function_Specification.
24008
24009 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
24010 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
24011 Add support for LIMITED NEW for Ada 2005 AI-419
24012 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
24013 syntax for anonymous access results.
24014 Replace Subtype_Mark field by Result_Definition in
24015 N_Function_Specification and N_Access_Definition specs.
24016 Add Null_Exclusion_Present to spec of N_Function_Specification.
24017 (Result_Definition): New function for N_Function_Specification and
24018 N_Access_Function_Definition.
24019 (Set_Result_Definition): New procedure for N_Function_Specification and
24020 N_Access_Function_Definition.
24021
24022 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
24023 Result_Definition for cases of N_Access_Function_Definition and
24024 N_Function_Specification.
24025 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
24026
240272005-09-01 Vincent Celier <celier@adacore.com>
24028
24029 * lib-writ.adb: Update Copyright notice
24030 (Write_With_Lines): On platforms where file names are case-insensitive,
24031 record the file names in lower case.
24032 (Write_ALI): For D lines, on platforms where file names are
24033 case-insensitive, record the file names in lower case.
24034
240352005-09-01 Ed Schonberg <schonberg@adacore.com>
24036 Emmanuel Briot <briot@adacore.com>
24037
24038 * lib-xref.adb (Output_Overridden_Op): Display information on
24039 overridden operation.
24040
24041 * lib-xref.ads: Add documentation on overridden operations.
24042
24043 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
24044 information.
24045
24046 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
24047 overriding entity information.
24048
240492005-09-01 Vincent Celier <celier@adacore.com>
24050
24051 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
24052 including those that are inherited.
24053
240542005-09-01 Robert Dewar <dewar@adacore.com>
24055
24056 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
24057
24058 * par-prag.adb: Implement new pragma Debug_Policy
24059
24060 * sem_prag.adb Implement new pragma Debug_Policy
24061 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
24062 Component_Size attribute specification. Give warning for ignored pragma
24063 Pack.
24064
24065 * snames.h, snames.ads, snames.adb: Introduce entries in
24066 Preset_Names for Name_Disp_Asynchronous_Select,
24067 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
24068 Name_Disp_Timed_Select.
24069 New pragma Debug_Policy
24070
24071 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24072 explicitly.
24073 Switch -gnata also sets Debug_Pragmas_Enabled
24074
24075 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
24076 handle an explicit -gnata when compiling predefined files.
24077
240782005-09-01 Vincent Celier <celier@adacore.com>
24079
24080 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
24081 directories of projects that have no Ada sources.
24082
240832005-09-01 Robert Dewar <dewar@adacore.com>
24084
24085 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24086 (makes a difference for wide characters)
24087
da8f5fd9 24088 * widechar.adb, widechar.ads:
98b40956
AC
24089 Add Wide_Char_Byte_Count feature to count chars vs bytes
24090
240912005-09-01 Thomas Quinot <quinot@adacore.com>
24092 Ed Schonberg <schonberg@adacore.com>
24093 Robert Dewar <dewar@adacore.com>
24094
24095 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24096 'Address attribute reference with an overloaded prefix, use the
24097 location of the prefix (not the location of the attribute reference) as
24098 the error location.
24099 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24100 a function renaming thereof, is a valid prefix for 'Size (where it is
24101 intepreted as a function call).
24102 (Statically_Denotes_Entity): New predicate to determine whether the
24103 prefix of an array attribute can be considered static.
24104
24105 PR ada/9087
24106 (Eval_Attr): Fix failure to evaluate Component_Size for
24107 unconstrained arrays (resulted in wrong value in packed case, since
24108 back end cannot handle this case)
24109
241102005-09-01 Robert Dewar <dewar@adacore.com>
24111
24112 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24113 error msgs for most common cases.
24114 Use new errout insertion char < (conditional warning)
24115
241162005-09-01 Javier Miranda <miranda@adacore.com>
24117 Ed Schonberg <schonberg@adacore.com>
24118
24119 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24120 become local to the whole package.
24121 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24122 the package was already analyzed the new algorithm "replaces" the
24123 real entities by the shadow ones. This is required to ensure that
24124 the order of these entities in the homonym chains does not change;
24125 otherwise we can have undefined references at linking time because
24126 in case of conflicts the external name of the entities will have
24127 a suffix that depends on the order of the entities in the chain.
24128 (Remove_Limited_With_Clause): Complementary code that completes the
24129 new algorithm and replaces the shadow entities by the real ones.
24130 (Install_Limited_Withed_Unit): When unchaining entities before the
24131 installation of the shadow entities, only regular entities of the
24132 public part must be taken into account. This is required to
24133 keep this routine in synch with the work done by Remove_Limited_
24134 With_Clause
24135 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24136 even if unit is analyzed, because the analysis of the unit is
24137 idempotent in any case, and the limited view of the unit may have to
24138 be installed for proper visibility.
24139 (Expand_Limited_With_Clause): Even if the unit in the implicit
24140 with_clause has been analyzed already, a limited view of the package
24141 must be built for the current context, if it does not exist yet.
24142
241432005-09-01 Ed Schonberg <schonberg@adacore.com>
24144 Javier Miranda <miranda@adacore.com>
24145 Gary Dismukes <dismukes@adacore.com>
24146
24147 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24148 defining entity for the instance body, make a new defining identifier
24149 rather than copying the entity of the spec, to prevent accidental
24150 sharing of the entity list.
24151 (Check_Private_View): When exchanging views of private types, build the
24152 list of exchanged views as a stack, to ensure that on exit the exchanges
24153 are undone in the proper order.
24154 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24155 Restore the compilation environment in case of instantiation_error.
24156 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24157 for an anonymous access result.
24158 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24159 (Formal_Entity): Handle properly the case of a formal package that
24160 denotes a generic package renaming.
24161
241622005-09-01 Thomas Quinot <quinot@adacore.com>
24163
24164 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24165 clause if the array aggregate is surrounded by parentheses.
24166
241672005-09-01 Cyrille Comar <comar@adacore.com>
24168 Gary Dismukes <dismukes@adacore.com>
24169 Ed Schonberg <schonberg@adacore.com>
24170 Javier Miranda <miranda@adacore.com>
24171
24172 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24173 underlying type
24174 to check if a type is Constrained in cases related to code generation
24175 (rather than semantic checking) since otherwise we do not generate
24176 similar code for mutable private types depending if their
24177 discriminants are visible or not.
24178 (Check_Abstract_Overriding): Do not complain about failure to override
24179 the primitive operations used in dispatching selects since they will
24180 always be overriden at the freeze point of the type.
24181 (Access_Definition): Separate out handling for resetting the scope
24182 of an anonymous access function result type. Retrieve the scope
24183 of the associated function rather than using Current_Scope, which
24184 does not have a consistent value (depends on whether we're in the
24185 middle of analyzing formal parameters). Add ??? comment about
24186 finding a cleaner way to handle the special cases of scope setting.
24187 (Process_Incomplete_Dependents): A protected operation is never a
24188 dispatching operation (only its wrapper may be).
24189 (Build_Derived_Record_Type): In case of tagged private types that
24190 implement interfaces add derivation of predefined primitive
24191 operations.
24192 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24193 by two parameters that are used in case of derivation from abstract
24194 interface types: No_Predefined_Prims is used to avoid the derivation
24195 of predefined primitives from the interface, and Predefined
24196 Prims_Only is used to complete the derivation predefined primitives
24197 in case of private tagged types implementing interfaces.
24198 Fix typo in comments
24199 (Find_Interface_In_Descendant): Protect the frontend against
24200 wrong code with large circularity chains.
24201 (Is_Private_Overriding): Add support for entities overriding interface
24202 subprograms. The test failed because Entities associated with overriden
24203 interface subprograms are always marked as hidden (and used to build
24204 the secondary dispatch table); in this case the overriden entity is
24205 available through the field abstract_interface_alias (cf. override_
24206 dispatching_operation)
24207 (Access_Definition): Set the scope of the type to Current_Scope for the
24208 case of a function with an anonymous access result type.
24209 (Access_Subprogram_Declaration): Handle creation of the type entity for
24210 an access-to-function type with an anonymous access result.
24211 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24212 in handling for N_Access_Function_Definition.
24213 (Analyze_Subtype_Declaration): Modify the text of error message.
24214 (Derived_Type_Declaration): Modify the text of error message.
24215 (Process_Subtype): Modify the text of error message plus cleanup
24216 of one redundant error message.
24217 (Analyze_Component_Declaration): Code cleanup.
24218 (Analyze_Object_Declaration): Code cleanup.
24219 (Analyze_Subtype_Declaration): Propagate the null-exclusion
24220 attribute in case of access types. Code cleanup.
24221 (Array_Type_Declaration): Code cleanup.
24222 (Process_Discriminants): Create the new null-excluding itype
24223 if required. Code cleanup.
24224 (Process_Subtype): Create the new null-excluding itype if
24225 required. Code cleanup.
24226 (Build_Derived_Record_Type): Code cleanup to avoid calling
24227 twice the subprogram derive_subprograms in case of private
24228 types that implement interfaces. In this particular case the
24229 subprogram Complete_Subprograms_Derivation already does the
24230 job associated with the second call.
24231
6f7f72f9
EB
24232 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24233 conversion to the full view when generating an operation for a
24234 discriminant whose type may currently be private.
98b40956
AC
24235
242362005-09-01 Ed Schonberg <schonberg@adacore.com>
24237 Javier Miranda <miranda@adacore.com>
24238
24239 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24240 V (Obj.F), the rewriting does not involve the indexed component, but
24241 only the selected component itself.
24242 Do not apply the transformation if the analyzed node is an actual of a
24243 call to another subprogram.
24244 (Complete_Object_Operation): Retain the entity of the
24245 dispatching operation in the selector of the rewritten node. The
24246 entity will be used in the expansion of dispatching selects.
24247 (Analyze_One_Call): Improve location of the error message associated
24248 with interface.
24249 (Analyze_Selected_Component): No need to resolve prefix when it is a
24250 function call, resolution is done when parent node is resolved, as
24251 usual.
24252 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24253 when attempting to resolve a call transformed from its object notation.
24254 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24255 of the argument list for each interpretation of the operation.
24256 (Try_Object_Operation): The designated type of an access parameter may
24257 be an incomplete type obtained through a limited_with clause, in which
24258 case the primitive operations of the type are retrieved from its full
24259 view.
24260 (Analyze_Call): If this is an indirect call, and the return type of the
24261 access_to_subprogram is incomplete, use its full view if available.
24262
242632005-09-01 Javier Miranda <miranda@adacore.com>
24264 Gary Dismukes <dismukes@adacore.com>
24265
24266 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24267 access types the null-exclusion and access-to-constant attributes must
24268 also match.
24269 (Analyze_Return_Statement): When the result type is an anonymous access
24270 type, apply a conversion of the return expression to the access type
24271 to ensure that appropriate accessibility checks are performed.
24272 (Analyze_Return_Type): For the case of an anonymous access result type,
24273 generate the Itype and set Is_Local_Anonymous_Access on the type.
24274 Add ??? placeholder for check to disallow returning a limited object
24275 in Ada 2005 unless it's an aggregate or a result of a function call.
24276 Change calls from Subtype_Mark to Result_Definition.
24277 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24278 Result_Definition in call to Make_Function_Specification.
24279 (Build_Body_To_Inline): Change Set_Subtype_Mark to
24280 Set_Result_Definition.
24281 (Make_Inequality_Operator): Change formal Subtype_Mark to
24282 Result_Definition in call to Make_Function_Specification.
24283 (Process_Formals): Create the new null-excluding itype if required.
24284 (New_Overloaded_Entity): For an entity overriding an interface primitive
24285 check if the entity also covers other abstract subprograms in the same
24286 scope. This is required to handle the general case, that is, overriding
24287 other interface primitives and overriding abstract subprograms inherited
24288 from some abstract ancestor type.
24289 (New_Overloaded_Entity): For an overriding entity that comes from
24290 source, note the operation that it overrides.
24291 (Check_Conformance, Type_Conformant): Addition of one new formal
24292 to skip controlling formals in the analysis. This is used to
24293 handle overloading of abstract interfaces.
24294 (Base_Types_Match): Add missing case for types imported from
24295 limited-with clauses
24296 (New_Overloaded_Entity): Add barrier to protect the use of
24297 the "alias" attribute.
24298
242992005-09-01 Ed Schonberg <schonberg@adacore.com>
24300
24301 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24302 verify that the procedure and the entry are mode conformant.
24303 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24304 as a different operator, which is often a cut-and-paste error.
24305
243062005-09-01 Javier Miranda <miranda@adacore.com>
24307 Ed Schonberg <schonberg@adacore.com>
24308
24309 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24310 used in controlling parameters exclude null because it is necessary to
24311 read the tag to dispatch, and null has no tag.
24312 (Override_Dispatching_Operation): If the previous operation is inherited
24313 from an interface, it becomes hidden and does not participate in later
24314 name resolution.
24315
243162005-09-01 Javier Miranda <miranda@adacore.com>
24317 Ed Schonberg <schonberg@adacore.com>
24318 Gary Dismukes <dismukes@adacore.com>
24319
24320 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24321 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24322 the expander will generate the corresponding run-time check to evaluate
24323 the expression.
24324 (Resolve_Call): Check for legal type of procedure name or prefix that
24325 appears as a trigger in a triggering alternative.
24326 (Valid_Conversion): If expression is ambiguous and the context involves
24327 an extension of System, remove System.Address interpretations.
24328 (Resolve_Qualified_Expression): Reject the case of a specific-type
24329 qualification applied to a class-wide argument. Enhance comment
24330 to explain checking of Original_Node.
24331 (Resolve_Type_Conversion): The location of the error message was not
24332 general enough to handle the general case and hence it has been removed.
24333 In addition, this patch improves the text of the message.
24334 (Resolve_Type_Conversion): Add missing support for access to interface
24335 types.
24336 (Resolve_Type_Conversion): If the target is a class-wide interface type,
24337 do not expand if the expression is the actual in a call, because proper
24338 expansion will take place when the call itself is expanded.
24339 (Resolve_Allocator): If the context is an unchecked conversion, the
24340 allocator inherits its storage pool, if any, from the target type of
24341 the conversion.
24342
243432005-09-01 Ed Schonberg <schonberg@adacore.com>
24344 Javier Miranda <miranda@adacore.com>
24345
24346 * sem_type.adb (Add_One_Interp): If a candidate operation is an
24347 inherited interface operation that has an implementation, use the
24348 implementation to avoid spurious ambiguities.
24349 (Interface_Present_In_Ancestor): In case of concurrent types we can't
24350 use the Corresponding_Record_Typ attribute to look for the interface
24351 because it is set by the expander (and hence it is not always
24352 available). For this reason we traverse the list of interfaces
24353 (available in the parent of the concurrent type).
24354 (Interface_Present_In_Ancestor): Handle entities from the limited view
24355
243562005-09-01 Ed Schonberg <schonberg@adacore.com>
24357
24358 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24359 from the list of required components.
24360 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24361 primitive procedure of a limited interface with a controlling first
24362 parameter.
24363 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24364 of an entry.
24365 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24366 capture if it is generated in the second operand of a short-circuit
24367 operation.
24368 Do not capture values for variables with address clauses.
24369 (Is_Object_Reference): Treat a function call as an object reference only
24370 if its type is not Standard_Void_Type.
24371
243722005-09-01 Ed Schonberg <schonberg@adacore.com>
24373
24374 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24375 to a variable that is statically known to be constant.
24376
243772005-09-01 Geert Bosch <bosch@adacore.com>
24378 Robert Dewar <dewar@adacore.com>
24379
24380 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24381 (VAXGF_Safe_First): Idem.
24382
243832005-09-01 Robert Dewar <dewar@adacore.com>
24384 Arnaud Charlet <charlet@adacore.com>
24385
24386 * g-dirope.ads: Minor reformatting
24387 Document that bounds of result of Base_Name match the input index
24388 positions.
24389 Add documentation on environment variable syntax for Expand_Path
24390
24391 * gnat_ugn.texi: Update documentation to include mention of -m switches
24392 Document new treatment of wide characters in max line length
24393 style check.
24394 Remove -gnatL/-gnatZ switches, no longer used.
24395 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24396 of -gnata switch.
24397
24398 * gnat_rm.texi: Add doc for two argument form of pragma
24399 Float_Representation.
24400 Add documentation for pragma No_Strict_Aliasing
24401 Add note that explicit component clause overrides pragma Pack.
24402 Add documentation of pragma Debug_Policy
24403
244042005-09-01 Matthew Heaney <heaney@adacore.com>
24405
da8f5fd9
AJ
24406 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24407 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24408 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
98b40956
AC
24409 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24410 draft (Draft 13, August 2005) of Ada Amendment 1.
24411
244122005-09-01 Arnaud Charlet <charlet@adacore.com>
24413
24414 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24415 Note that the platform-specific version of g-soccon.ads for VMS is now
24416 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24417 really is a package spec).
24418 Replace s-taspri-linux.ads by s-taspri-posix.ads
24419 Remove references to s-mastop-x86.adb
24420
24421 * system-vxworks-xscale.ads: Removed, no longer used.
24422 * s-vxwork-xscale.ads: Removed, no longer used.
24423
244242005-09-01 Robert Dewar <dewar@adacore.com>
24425
24426 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24427 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24428 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24429 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24430 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24431 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24432 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24433 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24434 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24435 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24436 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24437 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24438 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24439 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24440 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24441 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24442 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24443 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24444 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24445 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24446 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24447
332a1c2e
AC
244482005-08-29 Arnaud Charlet <charlet@adacore.com>
24449
24450 PR ada/23187
24451 * adaint.c
da8f5fd9 24452 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
332a1c2e
AC
24453
244542005-08-29 Arnaud Charlet <charlet@adacore.com>
24455 Doug Rupp <rupp@adacore.com>
24456
24457 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24458 when needed.
24459 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24460 this code in the GNAT run-time.
24461
24462 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24463
24464 PR ada/21053
24465 * init.c (__gnat_error_handler [many]): Mark "msg" as const
24466 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24467
24468 (__gnat_inside_elab_final_code): Moved here from
24469 Standard_Library and only defined for the compiler.
24470 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24471 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24472 using RTPs because directly vectored Interrupt routines are not
24473 supported on this configuration.
24474 (getpid): Do not redefine this function on VxWorks when using RTPs
24475 because this primitive is well supported by the RTP libraries.
24476 (copy_msg): Correct the code that checks for buffer overflow.
24477 Discovered during code reading.
24478
244792005-08-29 Olivier Hainque <hainque@adacore.com>
24480
24481 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24482 a library level mutable variable with an initializer, tell
24483 build_allocator to ignore the initializer's size. It may not be large
24484 enough for all the values that might be assigned to the variable later
24485 on.
24486
244872005-08-29 Arnaud Charlet <charlet@adacore.com>
24488 Eric Botcazou <ebotcazou@adacore.com>
24489
24490 * trans.c: Protect < in error msg with quote
24491 Replace GCC_ZCX by Back_End_Exceptions.
24492 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24493 has been sufficiently aligned in the record.
24494
35fd1d77
JW
244952005-08-15 James E. Wilson <wilson@specifix.com>
24496
24497 * system-linux-alpha.ads: Change ia64 to alpha.
24498
b15341b8
KH
244992005-08-01 Kazu Hirata <kazu@codesourcery.com>
24500
24501 * decl.c, utils.c: Fix comment typos.
24502
9e4eb559
KH
245032005-07-29 Kazu Hirata <kazu@codesourcery.com>
24504
24505 * decl.c, init.c, initialize.c: Fix comment typos.
24506
4038c495
GB
245072005-07-20 Giovanni Bajo <giovannibajo@libero.it>
24508
24509 Make CONSTRUCTOR use VEC to store initializers.
24510 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24511 CONSTRUCTOR_ELTS.
24512 * trans.c (extract_values): Likewise.
24513 * utils.c (convert, remove_conversions): Likewise.
24514 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24515 gnat_build_constructor): Likewise.
24516
f685a2e6
AP
245172005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24518
24519 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24520 DECL_SECTION_NAME.
24521 (compare_field_bitpos): Likewise.
24522
7c6ef73e
AP
245232005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24524
24525 * utils.c (create_var_decl): Only set DECL_COMMON on
24526 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24527 VAR_OR_FUNCTION_DECL_P.
24528
820cc88f 245292005-07-08 Daniel Berlin <dberlin@dberlin.org>
da8f5fd9 24530
820cc88f
DB
24531 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24532 removed.
24533
1a9cb483
AC
245342005-07-07 Pascal Obry <obry@adacore.com>
24535
24536 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24537 returned type on Windows.
24538
24539 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24540 routine.
24541
24542 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24543 exception in this case.
24544 Simplify the code as "Image (Image'Range)" = "Image".
24545
245462005-07-07 Vincent Celier <celier@adacore.com>
24547
24548 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24549 the destructor/constructor attributes for <lib>final/<lib>init.
24550
24551 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24552
245532005-07-07 Eric Botcazou <ebotcazou@adacore.com>
24554
24555 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24556 type if the parameter is not passed by copy but reference by default.
24557
245582005-07-07 Javier Miranda <miranda@adacore.com>
24559
24560 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24561 Reimplementation of the support for abstract interface types in order
24562 to leave the code more clear and easy to maintain.
24563
24564 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24565 abstract interface types in order to leave the code clearer and easier
24566 to maintain.
24567
24568 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24569 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24570 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24571 appropriate entry of the secondary dispatch table.
24572 (Make_DT): Add code to inherit the secondary dispatch tables of
24573 the ancestors.
24574
24575 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24576 implementing both functionalities by means of a common routine, each
24577 routine has its own code.
24578
245792005-07-07 Javier Miranda <miranda@adacore.com>
24580
24581 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24582
24583 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24584 types:
24585 --
24586 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24587 --
24588
24589 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24590 use of tag incomplete types.
24591
24592 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24593 give support to tagged incomplete types.
24594
24595 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24596 expression is a discriminant reference and its type is private, as can
24597 happen within a stream operation for a mutable record, use the full
24598 view of the type to resolve the case alternatives.
24599 (Analyze_Assignment): Check wrong dereference of incomplete types.
24600
24601 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24602 types.
24603
24604 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24605 incomplete types.
24606
24607 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24608 N_Incomplete_Type_Declaration nodes.
24609
24610 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24611 Tag_Present to give support to tagged incomplete types:
24612 --
24613 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24614 --
24615
246162005-07-07 Olivier Hainque <hainque@adacore.com>
24617
24618 PR ada/22301
1a9cb483
AC
24619 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24620 definitions for the Unwind wrappers in the compiler case.
24621
246222005-07-07 Ed Schonberg <schonberg@adacore.com>
24623 Javier Miranda <miranda@adacore.com>
24624
24625 * par-load.adb (Load): If a child unit is loaded through a limited_with
24626 clause, each parent must be loaded as a limited unit as well.
24627
24628 * sem_ch10.adb (Previous_Withed_Unit): Better name for
24629 Check_Withed_Unit. Return true if there is a previous with_clause for
24630 this unit, whether limited or not.
24631 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24632 the current unit.
24633 (Is_Visible_Through_Renamings): New local subprogram of install_limited
24634 _withed_unit that checks if some package installed through normal with
24635 clauses has a renaming declaration of package whose limited-view is
24636 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24637 of the current Draft document for Ada 2005.
24638 (Analyze_Context): Complete the list of compilation units that
24639 are allowed to contain limited-with clauses. It also contains
24640 checks that were previously done by Install_Limited_Context_Clauses.
24641 This makes the code more clear and easy to maintain.
24642 (Expand_Limited_With_Clause) It is now a local subprogram of
24643 Install_Limited_Context_Clauses, and contains the code that adds
24644 the implicit limited-with clauses for parents of child units.
24645 This functionality was prevously done by Analyze_Context.
24646
24647 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24648 incomplete type.
24649
24650 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24651 been erroneously named in a limited-with clause of its own context.
24652 In this case the error has been previously notified by Analyze_Context.
24653
246542005-07-07 Ed Schonberg <schonberg@adacore.com>
24655
24656 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24657 generic package that contains local declarations with the same name.
24658 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24659
246602005-07-07 Bernard Banner <banner@adacore.com>
24661
24662 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24663 ia64 platform only on platforms that you the GCC unwind library
24664 rather than the system unwind library.
24665
246662005-07-07 Thomas Quinot <quinot@adacore.com>
24667
24668 * expect.c: Minor reformatting
24669
246702005-07-07 Sergey Rybin <rybin@adacore.com>
24671
24672 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24673 --no-separate-is
24674
24675 * gnat_ugn.texi: Add description for new gnatpp option
24676 (--no-separate-is)
24677
7d300a99
AC
246782005-07-04 Thomas Quinot <quinot@adacore.com>
24679
24680 * g-expect-vms.adb, g-expect.ads, g-expect.adb
24681 (Get_Command_Output): New subprogram to launch a process and get its
24682 standard output as a string.
24683
246842005-07-04 Eric Botcazou <ebotcazou@adacore.com>
9bae2797 24685 Olivier Hainque <hainque@adacore.com>
7d300a99
AC
24686
24687 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24688 fetch a code-range descriptor associated with the machine state. On
24689 failure set the machine state's PC to 0; on success, pass the
24690 descriptor to exc_virtual_unwind.
24691
24692 * init.c (Tru64 section): New function __gnat_set_code_loc.
24693
246942005-07-04 Vincent Celier <celier@adacore.com>
24695
da8f5fd9
AJ
24696 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24697 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
7d300a99
AC
24698 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24699 Remove all auto-initialization code, as this is now done through the
24700 constructor mechanism.
24701
24702 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24703 __gnat_sals_init_using_constructors): New functions.
24704
24705 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24706 Linker_Constructor and Linker_Destructor when switch -a is used.
24707
24708 * bindusg.adb: Add line for new switch -a
24709
24710 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24711 (Gnatbind): When switch -a is used, check if it is allowed
24712
24713 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24714
247152005-07-04 Joel Brobecker <brobecker@adacore.com>
24716
24717 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24718 This prevents us from hitting a limitation during the debug info
24719 generation when using stabs.
24720 (Prims_Ptr): Likewise.
24721
247222005-07-04 Gary Dismukes <dismukes@adacore.com>
24723 Ed Schonberg <schonberg@adacore.com>
24724 Javier Miranda <miranda@adacore.com>
24725
24726 * checks.adb (Null_Exclusion_Static_Checks): In the case of
24727 N_Object_Declaration, only perform the checks if the Object_Definition
24728 is not an Access_Definition.
24729
6f7f72f9
EB
24730 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24731 where the parent of an the access definition is an N_Object_Declaration
24732 when determining the Associated_Node_For_Itype and scope of an
24733 anonymous access-to-subprogram type.
7d300a99
AC
24734
24735 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24736 Corresponding_Spec on the body created for a null procedure. Add ???
24737 comment. Remove New_Copy_Tree call on body argument to
24738 Set_Body_To_Inline.
24739
24740 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24741 discriminants, use the type of the actual as well, because the
24742 discriminants may be read by the called subprogram.
24743
24744 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24745 access type we do not need to handle non-limited views.
24746 (Build_Derived_Record_Type): Additional check to check that in case of
24747 private types, interfaces are only allowed in private extensions.
24748
247492005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24750
24751 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24752 <Pragma_Linker_Destructor>: Likewise.
24753
24754 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24755 Pragma_Linker_Destructor.
24756
24757 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24758 ATTR_LINK_DESTRUCTOR.
24759 (static_ctors, static_dtors): New variables.
24760
24761 * misc.c (gnat_expand_body): Output current function as constructor
24762 and destructor if requested.
24763
24764 * par-prag.adb: Add processing for pragma Linker_Constructor and
24765 Linker_Destructor.
24766
24767 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24768 extracted from Check_Interrupt_Or_Attach_Handler.
24769 (Check_Interrupt_Or_Attach_Handler): Invoke it.
24770 Implement pragma Linker_Constructor and Linker_Destructor with the
24771 help of Find_Unique_Parameterless_Procedure.
24772 Replace Name_Alias with Name_Target for pragma Linker_Alias.
24773
da8f5fd9 24774 * snames.h, snames.ads, snames.adb:
7d300a99
AC
24775 Add Name_Linker_Constructor and Name_Linker_Destructor.
24776 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24777 * snames.adb: Remove Name_Alias.
24778
24779 * trans.c: Include cgraph.h.
24780 (build_global_cdtor): New function.
24781 (Compilation_Unit_to_gnu): Build global constructor and destructor if
24782 needed.
24783 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24784 of objects too.
24785 (addressable_p) <COMPONENT_REF>: Unconditionally test
24786 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24787
24788 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24789 variable if it is external.
24790
24791 (static_ctors, static_dtors): New global variables.
24792 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24793 <ATTR_LINK_DESTRUCTOR>: Likewise.
24794 (end_subprog_body): Chain function as constructor and destructor
24795 if requested.
24796
24797 * exp_util.adb (Force_Evaluation): Unconditionally invoke
24798 Remove_Side_Effects with Variable_Ref set to true.
24799 (Remove_Side_Effects): Handle scalar types first. Use a renaming
24800 for non-scalar types even if Variable_Ref is true and for class-wide
24801 expressions.
24802
248032005-07-04 Ed Schonberg <schonberg@adacore.com>
24804
24805 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24806 to prevent spurious warnings.
24807
248082005-07-04 Thomas Quinot <quinot@adacore.com>
24809
24810 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24811 Itypes. Itypes are really unexpected there.
24812 (Build_TypeCode_Function): Generalise special processing for Itypes to
24813 handle the case of numeric implicit base types as well as enumerated
24814 ones.
24815
248162005-07-04 Ed Schonberg <schonberg@adacore.com>
24817
24818 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24819 controlled, indicate the expected type of the dereference that is
24820 created for the call to Deep_Finalize, to prevent spurious errors when
24821 the designated type is private and completed with a derivation from
24822 another private type.
24823
248242005-07-04 Vincent Celier <celier@adacore.com>
24825
24826 * make.adb (Change_To_Object_Directory): When unable to change the
24827 current dir to the object directory, output the full path of the
24828 directory.
24829
248302005-07-04 Matthew Gingell <gingell@adacore.com>
24831
24832 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24833
24834 * indepsw-linux.adb: Replace by...
24835
24836 * indepsw-gnu.adb: ...this new file
24837
248382005-07-04 Vincent Celier <celier@adacore.com>
24839
24840 * mlib-prj.adb (Auto_Initialize): New constant String
24841 (SALs_Use_Constructors): New Boolean function
24842 (Build_Library): Call gnatbind with Auto_Initialize switch when
24843 SALs_Use_Constructors returns True.
24844
24845 * mlib-tgt.ads: Minor reformatting
24846
24847 * mlib-utl.ads: Minor reformatting
24848
24849 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24850
248512005-07-04 Ed Schonberg <schonberg@adacore.com>
24852
24853 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24854 single protected declarations can have an interface list.
24855 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24856 with seriously malformed entry declarations, and lead to compilation
24857 abandoned messages.
24858
248592005-07-04 Javier Miranda <miranda@adacore.com>
24860
24861 * par-load.adb: Load the context items in two rounds.
24862
248632005-07-04 Robert Dewar <dewar@adacore.com>
24864
24865 * scng.adb: Do not consider Mod used as an attribute to be a keyword
24866
248672005-07-04 Ed Schonberg <schonberg@adacore.com>
24868 Javier Miranda <miranda@adacore.com>
24869
24870 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24871 type extension needs a limited view.
24872 Remove previous restriction on private types available through the
24873 limited-view (only tagged private types were previously allowed).
24874 (Install_Withed_Unit): In the code that implements the
24875 legality rule given in AI-377, exclude a child unit with the name
24876 Standard, because it is a homonym of the Standard environment package.
24877
248782005-07-04 Thomas Quinot <quinot@adacore.com>
24879
24880 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24881 overloaded function call, carry interpretations from the original tree
24882 to the copy.
24883
248842005-07-04 Ed Schonberg <schonberg@adacore.com>
24885
24886 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24887 types check whether some designated type is a limited view, and use
24888 the non-limited view if available.
24889
248902005-07-04 Gary Dismukes <dismukes@adacore.com>
24891
24892 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24893 constraint of full view of a private view T1 if present, when T2 is a
24894 discriminated full view.
24895
248962005-07-04 Thomas Quinot <quinot@adacore.com>
24897
24898 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24899 actual that is a view conversion of a bit packed array reference.
24900
249012005-07-04 Ed Schonberg <schonberg@adacore.com>
24902
24903 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24904 present before checking whether an interface type covers a synchronized
24905 type.
24906
249072005-07-04 Ed Schonberg <schonberg@adacore.com>
24908
24909 * sem_util.adb (Is_Object_Reference): An indexed or selected component
24910 whose prefix is an implicit dereference is an object reference. Removes
24911 spurious errors when compiling with -gnatc.
24912
249132005-07-04 Robert Dewar <dewar@adacore.com>
24914
24915 PR ada/22039
7d300a99
AC
24916 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24917
249182005-07-04 Matthew Gingell <gingell@adacore.com>
24919
24920 * tracebak.c: Enable tracebacks on ia64 platforms
24921
249222005-07-04 Vincent Celier <celier@adacore.com>
24923
24924 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24925 the GNAT BIND command, as gnatbind accepts multiples ALI files with
24926 the -L or -n switches.
24927
249282005-07-04 Vincent Celier <celier@adacore.com>
24929
24930 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24931 correctly computed and the main project data is not modified while
24932 doing so.
24933 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24934 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24935 c++linker as this does not work on some platforms.
24936
249372005-07-04 Matthew Heaney <heaney@adacore.com>
24938
24939 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24940 was changed.
24941 * a-coinve.adb: Perform constraint checks explicitly.
24942
249432005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24944 Thomas Quinot <quinot@adacore.com>
24945
24946 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24947 new target gen-soccon.
24948
249492005-07-04 Robert Dewar <dewar@adacore.com>
24950
24951 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24952
249532005-07-04 Thomas Quinot <quinot@adacore.com>
24954
24955 * g-socket.ads (Check_Selector): Minor rewording of comment.
24956
249572005-07-04 Vincent Celier <celier@adacore.com>
24958
24959 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24960
249612005-07-04 Thomas Quinot <quinot@adacore.com>
24962
24963 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24964
249652005-07-04 Sergey Rybin <rybin@adacore.com>
24966
6f7f72f9 24967 * gnat_ugn.texi: Add description of --eol gnatpp option
7d300a99
AC
24968
249692005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24970 Thomas Quinot <quinot@adacore.com>
24971
6f7f72f9 24972 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
7d300a99
AC
24973 if the user wants all calls of a subprogram to be flagged,
24974 independently of whether they are made from within the same unit or
24975 another unit.
6f7f72f9
EB
24976 Mention restriction for pragma Linker_Alias on some platforms.
24977 Document pragma Linker_Constructor and Linker_Destructor.
24978 Rewrite documentation of Weak_External, Linker_Section and
24979 Linker_Alias pragmas.
7d300a99 24980
fc64d83c
AC
249812005-07-04 Arnaud Charlet <charlet@adacore.com>
24982
24983 * s-stausa.ads, s-stausa.adb: New files.
24984
cb5fee25
KC
249852005-06-30 Kelley Cook
24986
24987 * all files: Update FSF address in copyright headers.
24988 * gen-soccon.co (main): Output new FSF address in generated files.
24989
617a1b71
PB
249902005-06-28 Paul Brook <paul@codesourcery.com>
24991
24992 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24993
0adcdb66
AC
249942005-06-14 Olivier Hainque <hainque@adacore.com>
24995 Eric Botcazou <ebotcazou@adacore.com>
24996
24997 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24998 exc_unwind, now that we are generating proper .debug_frame output for
24999 that target.
25000
25001 * tracebak.c: Remove the mips-irix section, as we are now using the
25002 s-mastop based unwinder again.
25003 Under SPARC/Solaris, take into account the stack bias to compute the
25004 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
25005 ABI.
25006
250072005-06-14 Doug Rupp <rupp@adacore.com>
25008
25009 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
25010
25011 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
25012
250132005-06-14 Pascal Obry <obry@adacore.com>
25014
25015 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
25016 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
25017 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
25018 package name).
25019
da8f5fd9
AJ
25020 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
25021 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
25022 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
25023 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
0adcdb66 25024 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
da8f5fd9
AJ
25025 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
25026 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
25027 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
25028 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
25029 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
25030 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
25031 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
25032 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
25033 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
25034 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
25035 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
25036 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
25037 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
25038 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
25039 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
25040 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
25041 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
25042 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
25043 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
25044 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
25045 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
25046 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
25047 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
25048 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
0adcdb66
AC
25049 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
25050 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
25051 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
25052 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
25053 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
25054 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
25055 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
25056 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
25057 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
25058 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
25059 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
25060 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
25061 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
25062 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
25063 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
25064 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
25065 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
25066 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
25067 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
25068 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
25069 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
25070 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25071 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25072 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
25073 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25074 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
25075 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25076 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
25077 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
25078 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
25079 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
25080 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
25081 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
25082 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
25083 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25084 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25085 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
da8f5fd9
AJ
25086 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25087 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
0adcdb66 25088 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
da8f5fd9 25089 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
0adcdb66
AC
25090 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25091 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25092 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25093 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25094 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25095 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25096 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25097 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25098 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25099 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25100 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25101 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25102 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25103 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25104 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25105 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25106 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25107 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25108 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25109 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25110 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25111 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25112 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25113 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25114 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25115 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25116 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25117 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25118 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25119 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25120 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25121 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25122 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25123 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25124 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25125 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25126 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
da8f5fd9
AJ
25127 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25128 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25129 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25130 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25131 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25132 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25133 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
0adcdb66
AC
25134 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25135 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25136 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25137 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25138 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25139 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
da8f5fd9
AJ
25140 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25141 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
0adcdb66
AC
25142 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25143 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25144 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25145 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25146 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25147 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25148 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25149 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25150 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25151 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25152 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25153
251542005-06-14 Jose Ruiz <ruiz@adacore.com>
25155 Arnaud Charlet <charlet@adacore.com>
25156
25157 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25158 longer protected objects. They have been replaced by lower-level
25159 suspension objects made up by a mutex and a condition variable (or
25160 their equivalent given a particular OS) plus some internal data to
25161 reflect the state of the suspension object.
25162 (Initialize, Finalize): Add this initialization procedure for
25163 Suspension_Object, which is a controlled type.
25164 (Finalize): Add the finalization procedure for Suspension_Object,
25165 which is a controlled type.
25166
25167 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25168 Ada.Synchronous_Task_Control because there is no longer a need for a
25169 VxWorks specific version of this package. Target dependencies
25170 has been moved to System.Task_Primitives.Operations.
25171
25172 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25173 longer needed.
25174 (InitializeCriticalSection, EnterCriticalSection,
25175 LeaveCriticalSection, DeleteCriticalSection): Replace the type
25176 pCriticalSection by an anonymous access type so that we avoid problems
25177 of accessibility to local objects.
25178
25179 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25180 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25181 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25182 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25183 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25184 set the environment task mask here.
25185 (Current_State): Add this function that returns the state of the
25186 suspension object.
25187 (Set_False): Add this procedure that sets the state of the suspension
25188 object to False.
25189 (Set_True): Add this procedure that sets the state of the suspension
25190 object to True, releasing the task that was suspended, if any.
25191 (Suspend_Until_True): Add this procedure that blocks the calling task
25192 until the state of the object is True. Program_Error is raised if
25193 another task is already waiting on that suspension object.
25194 (Initialize): Add this procedure for initializing the suspension
25195 object. It initializes the mutex and the condition variable which are
25196 used for synchronization and queuing, and it sets the internal state
25197 to False.
25198 (Finalize): Add this procedure for finalizing the suspension object,
25199 destroying the mutex and the condition variable.
25200
25201 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25202 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25203 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25204 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25205 which provides a low-level abstraction (using operating system
25206 primitives) for Ada.Synchronous_Task_Control.
25207 This object is made up by a mutex (for ensuring mutual exclusion), a
25208 condition variable (for queuing threads until the condition is
25209 signaled), a Boolean (State) indicating whether the object is open,
25210 and a Boolean (Waiting) reflecting whether there is a task already
25211 suspended on this object.
25212
25213 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25214 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25215 s-intman-vms.ads, s-intman-mingw.adb,
25216 (Initialize_Interrupts): Removed, no longer used.
25217
25218 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25219 (Setup_Interrupt_Mask): New procedure.
25220
25221 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
25222
25223 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25224
25225 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25226 this is no longer done in the body of s-taprop
25227 (Server_Task): Explicitely test for Pending_Action in case
25228 System.Parameters.No_Abort is True.
25229
25230 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25231 is no longer done in the body of s-taprop
25232
252332005-06-14 Robert Dewar <dewar@adacore.com>
25234
25235 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25236 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25237 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25238 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25239 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25240 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25241 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25242 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25243 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25244 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25245 system-linux-hppa.ads, system-vms_64.ads,
25246 system-vxworks-alpha.ads: Minor comment update for
25247 AI-362 (unit is Pure).
25248
25249 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25250 Add pragma Pure_05 for AI-362
25251 Make remaining conversion functions obsolescent in Ada 95
25252
25253 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25254 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25255 Add entries for a-wichun and a-zchuni
25256 Add a-widcha a-zchara for AI-395
25257 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25258
25259 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25260 Add entries for a-wichun.o and a-zchuni.o
25261 Entries for a-widcha.o and a-zchara.o
25262 Add entry for a-chacon.o
25263
25264 * a-ztenau.adb: Add with of Ada.Characters.Conversions
25265
25266 * a-chacon.ads, a-chacon.adb: New files.
25267
25268 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25269 categorization violations.
25270
25271 * a-strmap.ads: Add pragma Pure_05 for AI-362
25272 * a-strmap.ads: Add note on implicit categorization for AI-362
25273
25274 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25275
25276 * par-prag.adb: Dummy entry for pragma Persistent_BSS
25277 Set Ada_Version_Explicit, for implementation of AI-362
25278 Add processing for pragma Pure_05 and Preelaborate_05
25279 Add entry for Assertion_Policy pragma
25280
25281 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25282 when needed for proper processing of categorization stuff
25283
da8f5fd9 25284 * sem_cat.adb:
0adcdb66
AC
25285 For several cases, make errors in preealborate units warnings,
25286 instead of errors, if GNAT_Mode is set. For AI-362.
25287
25288 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25289 preelaborate unit is now warning if in GNAT mode
25290
25291 * s-stoele.ads: Document AI-362 for pragma preelaborate
25292
252932005-06-14 Doug Rupp <rupp@adacore.com>
25294
25295 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25296 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25297 Default_Exception_Msg_Max_Length: new parameter.
25298
25299 * a-except.ads: (Exception_Msg_Max_Length): Set to
25300 System.Parameters.Default_Exception_Msg_Max_Length
25301 Add pragma Preelaborate_05 for AI-362
25302 Add warnings off to allow categorization violations for AI-362
25303
253042005-06-14 Vincent Celier <celier@adacore.com>
25305
25306 * gnatsym.adb: Adapt to modification of package Symbols: procedure
25307 Process is now in package Processing.
25308
25309 * symbols.ads, symbols.adb:
25310 (Processing): New package, containing procedure Process
25311
da8f5fd9 25312 * symbols-vms-alpha.adb:
0adcdb66
AC
25313 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25314
25315 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25316 symbols-processing-vms-ia64.adb: New files.
25317
253182005-06-14 Pascal Obry <obry@adacore.com>
25319
25320 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25321 implementation. This new version generates the proper DllMain routine
25322 to initialize the SAL. The DllMain is generated in Ada and compiled
25323 before being added as option to the library build command.
25324
253252005-06-14 Doug Rupp <rupp@adacore.com>
25326 Pascal Obry <obry@adacore.com>
25327
25328 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25329 call to decc$translate_vms.
25330 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25331 need to remove those quotes before catenating the filename.
25332 (__gnat_locate_exec_on_path): improvements to the Win32 section:
25333 * avoid allocating the memory twice for better efficiency;
25334 * allocate 32K buffer for environment expansion as suggested by MSDN;
25335 * prepend ".;" to the path so that current directory is searched too.
25336
253372005-06-14 Robert Dewar <dewar@adacore.com>
25338
25339 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25340 instead of raising CE (AI-241)
25341 Add warnings off to allow categorization violations for AI-362
25342
253432005-06-14 Robert Dewar <dewar@adacore.com>
25344
25345 * ali-util.adb, gnatbind.adb: Remove references to
25346 Force_RM_Elaboration_Order.
25347
25348 * switch-b.adb: Remove recognition of -f switch
25349
253502005-06-14 Pascal Obry <obry@adacore.com>
25351
25352 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25353 implementation which is slightly more efficient.
25354
253552005-06-14 Gary Dismukes <dismukes@adacore.com>
25356 Javier Miranda <miranda@adacore.com>
25357 Ed Schonberg <schonberg@adacore.com>
25358 Hristian Kirtchev <kirtchev@adacore.com>
25359
25360 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25361 allocator's designated type is a class-wide type, and compiling for
25362 Ada 2005, emit a run-time check that the accessibility level of the
25363 type given in the allocator's expression is not deeper than the level
25364 of the allocator's access type.
25365
25366 (Tagged_Membership): Modified to gives support to abstract interface
25367 types.
25368
25369 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25370 Access_Level.
25371 (Descendant_Tag): New predefined function
25372 (Is_Descendant_At_Same_Level): New predefined function
25373 (Get_Access_Level): New private function
25374 (Set_Access_Level): New private procedure
25375 (IW_Membership): New function. Given the tag of an object and the tag
25376 associated with an interface, evaluate if the object implements the
25377 interface.
25378 (Register_Interface_Tag): New procedure used to initialize the table of
25379 interfaces used by the IW_Membership function.
25380 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25381 of the dispatch table.
25382 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25383 table of interfaces of the parent.
25384 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25385 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25386 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25387 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25388 Ada 2005 semantics for the new predefined function.
25389
25390 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25391 call to Descendant_Tag rather than Internal_Tag.
25392 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25393 the accessibility level of the attribute's Item parameter is not deeper
25394 than the level of the attribute's prefix type. Tag_Error is raised if
25395 the check fails. The check is only emitted for Ada_05.
25396 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25397 requested stream attribute, use it.
25398 (Expand_N_Attribute_Reference): If the designated type is an interface
25399 then rewrite the referenced object as a conversion to force the
25400 displacement of the pointer to the secondary dispatch table.
25401 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25402 is a dereference of an object with a constrained partial view.
25403
25404 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25405 type is a class-wide type, emit a run-time check that the accessibility
25406 level of the returned object is not deeper than the level of the
25407 function's master (only when compiling for Ada 2005).
25408
25409 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25410 Action_Nb_Arg): Add entries for new Get_Access_Level and
25411 Set_Access_Level routines in these tables.
25412 (Make_DT): Generate a call to set the accessibility level of the
25413 tagged type in its TSD.
25414 (Make_DT): Code cleanup. The functionality of generating all the
25415 secondary dispatch tables has been moved to freeze_record_type.
25416 (Make_Abstract_Interface_DT): Minor code cleanup.
25417 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25418 this subprogram implements a new algorithm that provides the
25419 same functionality and it is more clear in case of primitives
25420 associated with abstract interfaces.
25421 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25422 clean up, the functionality of this subprogram is now provided
25423 by Set_All_DT_Position.
25424 (Write_DT): New subprogram: a debugging procedure designed to be called
25425 within gdb to display the dispatch tables associated with a tagged
25426 type.
25427 (Collect_All_Interfaces): New subprogram that collects the whole list
25428 of interfaces that are directly or indirectly implemented by a tagged
25429 type.
25430 (Default_Prim_Op_Position): New subprogram that returns the fixed
25431 position in the dispatch table of the default primitive operations.
25432 (Expand_Interface_Actuals): New subprogram to generate code that
25433 displaces all the actuals corresponding to class-wide interfaces to
25434 reference the interface tag of the actual object.
25435 (Expand_Interface_Conversion): New subprogram. Reference the base of
25436 the object to give access to the interface tag associated with the
25437 secondary dispatch table.
25438 (Expand_Interface_Thunk): New subprogram that generates the code of the
25439 thunk. This is required for compatibility with the C+ ABI.
25440 (Make_Abstract_Interface_DT): New subprogram that generate the
25441 declarations for the secondary dispatch tables associated with an
25442 abstract interface.
25443 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25444 attribute for each primitive operation covering interface subprograms
25445 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25446 These subprograms were upgraded to give support to abstract interfaces
25447
25448 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25449 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25450 RE_Set_Access_Level.
25451 (RE_Unit_Table): Add entries for new Ada.Tags operations.
25452 Add support to call the followig new run-time subprograms:
25453 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25454
25455 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25456 match its full declaration when both have an access definition with
25457 statically matching designated subtypes.
25458 (Analyze_Component_Declaration): Delete commented out code that was
25459 incorrectly setting the scope of an anonymous access component's type.
25460 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25461 an access discriminant when the containing type is nonlimited.
25462 (Make_Incomplete_Type_Declaration): Create an incomplete type
25463 declaration for a record type that includes self-referential access
25464 components.
25465 (Check_Anonymous_Access_Types): Before full analysis of a record type
25466 declaration, create anonymous access types for each self-referential
25467 access component.
25468 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25469 an access component in this context is a Local_Anonymous_Access, for
25470 proper accessibility checks.
25471 (Access_Definition): Set properly the scope of the anonymous access type
25472 created for a stand-alone access object.
25473 (Find_Type_Of_Object): An object declaration may be given with an access
25474 definition.
25475 (Complete_Subprograms_Derivation): New subprogram used to complete
25476 type derivation of private tagged types implementing interfaces.
25477 In this case some interface primitives may have been overriden
25478 with the partial-view and, instead of re-calculating them, they
25479 are included in the list of primitive operations of the full-view.
25480 (Build_Derived_Record_Type): Modified to give support to private
25481 types implemening interfaces.
25482 (Access_Definition): Reject ALL on anonymous access types.
25483 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25484 type derivation to occur at a deeper accessibility level than the
25485 parent type.
25486 For the case of derivation within a generic body however, disallow the
25487 derivation if the derived type has an ancestor that is a formal type
25488 declared in the formal part of an enclosing generic.
25489 (Analyze_Object_Declaration): For protected objects, remove the check
25490 that they cannot contain interrupt handlers if not declared at library
25491 level.
25492 (Add_Interface_Tag_Components): New subprogram to add the tag components
25493 corresponding to all the abstract interface types implemented by a
25494 record type or a derived record type.
25495 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25496 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25497 Process_Full_View, Record_Type_Declaration): Modified to give
25498 support to abstract interface types
25499 (Collect_Interfaces): New subprogram that collects the list of
25500 interfaces that are not already implemented by the ancestors
25501 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25502 when partial view has no discriminants and full view has defaults.
25503 (Constrain_Access): Reject a constraint on a general access type
25504 if the discriminants of the designated type have defaults.
25505 (Access_Subprogram_Declaration): Associate the Itype node with the inner
25506 full-type declaration or subprogram spec. This is required to handle
25507 nested anonymous declarations.
25508 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25509 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25510 Process_Full_View, Record_Type_Declaration): Modified to give
25511 support to abstract interface types
25512 (Derive_Subprograms): Addition of a new formal to indicate if
25513 we are in the case of an abstact-interface derivation
25514 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25515 to the specification because it is requied to analyze all the
25516 identifiers found in a list of interfaces
25517
25518 * debug.adb: Complete documentation of flag "-gnatdZ"
25519
25520 * exp_ch3.adb: Implement config version of persistent_bss pragma
25521 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25522 testing for TSS presence to properly enforce visibility rules.
25523 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25524 Make_Abstract_Interfaces_DT to generate the secondary tables
25525 associated with abstract interfaces.
25526 (Build_Init_Procedure): Modified to initialize all the tags
25527 corresponding.
25528 (Component_Needs_Simple_Initialization): Similar to other tags,
25529 interface tags do not need initialization.
25530 (Freeze_Record_Type): Modified to give support to abstract interface
25531 types.
25532 (Expand_N_Object_Declaration): Do not generate an initialization for
25533 a scalar temporary marked as internal.
25534
25535 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25536 in-out parameter that is a component in an initialization procedure,
25537 whose constraint might depend on discriminants, and that may be
25538 misaligned because of packing or representation clauses.
25539 (Is_Legal_Copy): New predicate to determine whether a possibly
25540 misaligned in-out actual can actually be passed by copy/return. This
25541 is an error in case the type is by_reference, and a warning if this is
25542 the consequence of a DEC import pragma on the subprogram.
25543 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25544 interface types
25545 (Expand_Inlined_Call): Mark temporary generated for the return value as
25546 internal, so that no useless scalar normalization is generated for it.
25547 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25548 null procedure can always be inlined.
25549 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25550 procedure, generate an explicit empty body for it.
25551
25552 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25553 Given a type implementing an interface, returns the corresponding
25554 access_disp_table value.
25555 (Find_Interface_Tag): New subprogram. Given a type implementing an
25556 interface, returns the record component containing the tag of the
25557 interface.
25558 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25559 previous ones that return the corresponding tag and access_disp_table
25560 entities.
25561 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25562 is a predefined primitive operation.
25563 (Expand_Subtype_From_Expr): If the expression is a selected component
25564 within an initialization procedure, compute its actual subtype, because
25565 the component may depend on the discriminants of the enclosing record.
25566
da8f5fd9 25567 * i-cpp.ads, i-cpp.adb:
0adcdb66
AC
25568 This package has been left available for compatibility with previous
25569 versions of the frontend. As part of the new layout this is now a
25570 dummy package that uses declarations available at a-tags.ads
25571
25572 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25573 "constant access" and "aliased [constant] access" when not compiling
25574 with -gnat05.
25575 Suppress Ada 2005 keyword warning if -gnatwY used
25576 (P_Identifier_Declarations): Add support for object declarations with
25577 access definitions.
25578 (Private_Extension_Declaration): Complete the documentation
25579 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25580 attribute in case of private extension declaration
25581 (P_Type_Declaration): Mark as "abstract" the type declarations
25582 corresponding with protected, synchronized and task interfaces
25583 (P_Declarative_Items): "not" and "overriding" are overriding indicators
25584 for a subprogram or instance declaration.
25585
25586 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25587 instantiation that is a dispatching operation has controlling access
25588 parameters that are null excluding.
25589 Save and restore Ada_Version_Explicit, for implementation of AI-362
25590 (Validate_Derived_Type_Instance): Add check for abstract interface
25591 types.
25592 (Analyze_Formal_Package): Establish Instantiation source for the copy of
25593 the generic that is created to represent the formal package.
25594 (Analyze_Package_Instantiation): Instantiate body immediately if the
25595 package is a predefined unit that contains inlined subprograms, and
25596 we are compiling for a Configurable_Run_Time.
25597 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25598 If the program has a null default, generate an empty body for it.
25599
25600 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25601 error message condition, null procedures are correctly detected now.
25602 (New_Overloaded_Entity): Bypass trivial overriding indicator check
25603 for subprograms in the context of protected types. Instead, the
25604 indicator is examined in Sem_Ch9 while analysing the subprogram
25605 declaration.
25606 (Check_Overriding_Indicator): Check consistency of overriding indicator
25607 on subprogram stubs as well.
25608 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25609 the library level.
25610 (Analize_Subprogram_Specification): When analyzing a subprogram in which
25611 the type of the first formal is a concurrent type, replace this type
25612 by the corresponding record type.
25613 (Analyze_Subprogram_Body): Undo the previous work.
25614 (Analyze_Procedure_Call): If the call has the form Object.Op, the
25615 analysis of the prefix ends up analyzing the call itself, after which
25616 we are done.
25617 (Has_Interface_Formals): New subprogram subsidiary to analyze
25618 subprogram_specification that returns true if some non
25619 class-wide interface subprogram is found
25620 (New_Overloaded_Entity): Modified to give support to abstract
25621 interface types
25622 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25623 access to subprograms must be recursive.
25624 (Is_Unchecked_Conversion): Improve the test that recognizes
25625 instantiations of Unchecked_Conversion, and allows them in bodies that
25626 are to be inlined by the front-end. When the body comes from an
25627 instantiation, a reference to Unchecked_Conversion will be an
25628 Expanded_Name, even though the body has not been analyzed yet.
25629 Replace Is_Overriding and Not_Overriding in subprogram_indication with
25630 Must_Override and Must_Not_Override, to better express intent of AI.
25631 (Analyze_Subprogram_Body): If an overriding indicator is given, check
25632 that it is consistent with the overrinding status of the subprogram
25633 at this point.
25634 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25635 always inlined.
25636 If the subprogram is a null procedure, indicate that it does not need
25637 a completion.
25638
25639 * sem_disp.adb (Check_Controlling_Type): Give support to entities
25640 available through limited-with clauses.
25641 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25642 allowed as the last primitive of a tagged type if it has no previous
25643 spec.
25644 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25645 to give support to abstract interface types
25646
25647 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25648 in the case where the target type is an anonymous access type of an
25649 object or component (that is, when Is_Local_Anonymous_Access is true).
25650 Prevent the special checks for conversions of access discriminants in
25651 the case where the discriminant belongs to a nonlimited type, since
25652 such discriminants have their accessibility level defined in the same
25653 way as a normal component of an anonymous access type.
25654 (Resolve_Allocator): When an allocator's designated type is a class-wide
25655 type, check that the accessibility level of type given in the
25656 allocator's expression or subtype indication is not statically deeper
25657 than the level of the allocator's access type.
25658 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25659 name in a discriminant constraint of a record component.
25660 (Resolve_Explicit_Dereference): Do not check whether the type is
25661 incomplete when the dereference is a use of an access discriminant in
25662 an initialization procedure.
25663 (Resolve_Type_Conversion): Handle conversions to abstract interface
25664 types.
25665 (Valid_Tagged_Conversion): The conversion of a tagged type to an
25666 abstract interface type is always valid.
25667 (Valid_Conversion): Modified to give support to abstract interface types
25668 (Resolve_Actuals): Enable full error reporting on view conversions
25669 between unrelated by_reference array types.
25670 The rule for view conversions of arrays with aliased components is
25671 weakened in Ada 2005.
25672 Call to obsolescent subprogram is now considered to be a violation of
25673 pragma Restrictions (No_Obsolescent_Features).
25674 (Check_Direct_Boolean_Operator): If the boolean operation has been
25675 constant-folded, there is nothing to check.
25676 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25677 check on possible violation of restriction No_Direct_Boolean_Operators
25678 until after expansion of operands, to prevent spurious errors when
25679 operation is constant-folded.
25680
25681 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25682 Has_Compatible_Type): Modified to give support to abstract interface
25683 types.
25684 (Interface_Present_In_Ancestor): New function to theck if some ancestor
25685 of a given type implements a given interface
25686
25687 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25688 prefix is a parameterless function that returns an access_to_procedure.
25689 (Transform_Object_Operation): Handle properly function calls of the
25690 form Obj.Op (X), which prior to analysis appear as indexed components.
25691 (Analyze_One_Call): Complete the error notification to help new Ada
25692 2005 users.
25693 (Analyze_Allocator): For an allocator without an initial value, where
25694 the designated type has a constrained partial view, a discriminant
25695 constraint is illegal.
25696
256972005-06-14 Robert Dewar <dewar@adacore.com>
25698
25699 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25700 do with treatment of Set_Col when positioned at end of line character.
25701
257022005-06-14 Robert Dewar <dewar@adacore.com>
25703
25704 * atree.adb: (Elist*): Protect against uninitialized field
25705
257062005-06-14 Ed Schonberg <schonberg@adacore.com>
25707
25708 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25709 for an attribute reference that returns an access type.
25710 (Apply_Discriminant_Check): No need for check if (designated) type has
25711 constrained partial view.
25712
25713 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25714 both bound checks, rather than a conjunction.
25715 (Insert_Valid_Check): If the expression is an actual that is an indexed
25716 component of a bit-packed array, force expansion of the packed element
25717 reference, because it is specifically inhibited elsewhere.
25718
257192005-06-14 Vincent Celier <celier@adacore.com>
25720
25721 * clean.adb (Clean_Project): Correctly delete executable specified as
25722 absolute path names.
25723
25724 * make.adb (Gnatmake): Allow relative executable path names with
25725 directory information even when project files are used.
25726 (Change_To_Object_Directory): Fail gracefully when unable to change
25727 current working directory to object directory of a project.
25728 (Gnatmake): Remove exception handler that could no longer be exercized
25729 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25730 may be deallocated by Normalize_Arguments.
25731 (Collect_Arguments): Eliminate empty arguments
25732
25733 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25734 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25735 (Check_Project): Return False when Project is No_Project. Return True
25736 when All_Projects is True.
25737 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25738 All_Projects to True.
25739 Minor reformatting
25740
257412005-06-14 Ed Schonberg <schonberg@adacore.com>
25742 Javier Miranda <miranda@adacore.com>
25743 Thomas Quinot <quinot@adacore.com>
25744 Robert Dewar <dewar@adacore.com>
25745 Hristian Kirtchev <kirtchev@adacore.com>
25746 Gary Dismukes <dismukes@adacore.com>
25747
25748 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25749 anonymous access types, to indicate that the accessibility level of
25750 the type is determined by that of the enclosing declaration.
25751 (Has_Persistent_BSS): New flag
25752 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25753 of this attribute with functions.
25754 (Is_Primitive_Wrapper): Remove the barrier.
25755 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25756 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25757 New subprograms.
25758 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25759 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25760 New subprograms.
25761 (Is_Pure_Unit_Access_Type): New flag
25762 (Abstract_Interfaces): Complete the assertion to cover all usages.
25763 (Set_Is_Interface): Complete the assertion to cover all usages.
25764 (Is_Primitive_Wrapper): New attribute.
25765 (Is_Obsolescent): Now applies to all entities (though it is only set
25766 for subprograms currently)
25767 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25768 which solves various problems concerning access subtypes.
25769 (Has_Persistent_BSS): New flag
25770 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25771 Remove these subprograms because this attribute is currently
25772 not used.
25773 New entity flags:
25774 Has_Specified_Stream_Input (Flag190)
25775 Has_Specified_Stream_Output (Flag191)
25776 Has_Specified_Stream_Read (Flag192)
25777 Has_Specified_Stream_Write (Flag193)
25778 Present in all type and subtype entities. Set for a given view if the
25779 corresponding stream-oriented attribute has been defined by an
25780 attribute definition clause. When such a clause occurs, a TSS is set
25781 on the underlying full view; the flags are used to track visibility of
25782 the attribute definition clause for partial or incomplete views.
25783 (Is_Pure_Unit_Access_Type): New flag
25784 Clarify use of Is_Internal.
25785 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25786 internally generated to wrap the invocation of tasks and protected
25787 types that implement interfaces.
25788 (Implementation_Base_Type): Documentation correction
25789 (Is_Obsolescent): Now applies to all entities (though it is only set
25790 for subprograms currently)
25791 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25792 which solves various problems concerning access subtypes.
25793
25794 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25795 for examined parameters. Identify unequal parameter list lengths as
25796 non-conformant parameters.
25797 (Overriding_Possible): Do not check for "All" qualifier in declaration
25798 of controlling access parameter, following prescription of AI-404.
25799 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25800 that build the procedure body that wraps an entry invocation
25801 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25802 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25803 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25804 give support to abstract interface types
25805
25806 * freeze.adb (Freeze_Entity): Issue error message if
25807 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25808 type has no storage pool (Ada 2005) AI-366.
25809 Also modified to give support to abstract interface types
25810 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25811 Inline_Always pragma.
25812
25813 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25814 now begin an entry declaration.
25815 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25816 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25817 a subprogram declaration preceded by an overriding indicator.
25818 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25819 declarations or subprogram declarations preceded by reserved words
25820 "not" or "overriding".
25821 (P_Entry_Declaration): Update comment. Parse and check overriding
25822 indicator, set semantic flags of entry declarations.
25823 (P_Task): New error message in case of private applied
25824 to a task type declaration.
25825 (P_Protected): New error message in case of private applied
25826 to a task type declaration.
25827
25828 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25829 in which the full view of a type implementing an interface is a
25830 concurrent type.
25831 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25832 Declare_Inherited_Private_Subprograms): If an explicit operation
25833 overrides an operation that is inherited in the private part, mark the
25834 explicit one as overriding, to enable overriding indicator checks.
25835 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25836 full view to partial view, to simplify handling in back-end.
25837
25838 * sprint.adb: Print interface lists where needed: derived types,
25839 protected types, task types.
25840 output "is null" for null procedures. Part of implementation of
25841
25842 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25843 relaxation of rules for access types in pure, shared passive partitions.
25844
25845 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25846 first read discriminants into temporary objects, performing checks on
25847 the read values, then possibly performing discriminant checks on the
25848 actual (if it is constrained), and only finally reading the components
25849 into a constrained temporary object.
25850 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25851 case of reading discriminants of a mutable record type to recognize
25852 the new form of the code generated by
25853 Build_Mutable_Record_Read_Procedure.
25854
25855 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25856 of a simple call to Make_TSS_Name.
25857 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25858 buffer, in order for Is_TSS to work correctly on local TSS names.
25859
25860 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25861 Is_Local_Anonymous_Access to check legaliy of attributes in the
25862 context of access components and stand-alone access objects.
25863 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25864 treated as available for a limited private type if there is an
25865 attribute_definition_clause that applies to its full view, but not in
25866 other cases where the attribute is available for the full view
25867 (specifically, the sole fact that the full view is non-limited does not
25868 make the attribute available for the partial view).
25869 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25870 non-overloaded intrinsic subprogram.
25871 (Check_Stream_Attribute): Reject an attribute reference for an
25872 unavailable stream attribute even if the prefix is not a limited type
25873 (case of a 'Input attribute reference for an abstract, non-classwide
25874 type)
25875 (Stream_Attribute_Available): New function to determine whether a stream
25876 attribute is available at a place.
25877 (Check_Attribute): Use Stream_Attribute_Available instead of just
25878 testing for TSS presence on the implementation base type.
25879 (Analyze_Attribute): Modified to give support to task interfaces.
25880 (Analyze_Access_Attribute): Add error check for use of an Access (or
25881 Unrestricted_Access) attribute with a subprogram marked as
25882 Inline_Always.
25883 (Analyze_Attribute, case Attribute_Address): Add error check for use of
25884 an Address attribute with a subprogram marked as Inline_Always.
25885 Update Eval_Attribute to handle new value of Width from AI-395
25886
25887 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25888 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25889 Factor common code across the stream-oriented attribute circcuits into
25890 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25891 processing is functionally identical to the previous duplicated one,
25892 except that an expression that denotes an abstract subprogram will now
25893 be rejected, as mandated by AI-195 item 5.
25894
25895 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25896 Is_Local_Anonymous_Access to apply accessibility checks to access
25897 components and stand-alone access objects.
25898 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25899 elsewhere.
25900 (Is_Potentially_Persistent_Type): New function
25901 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25902 a heap-object whose type has a constrained partial view, the object is
25903 unconstrained and the component may depend on a discriminant, making its
25904 renaming illegal.
25905
25906 * sinfo.ads, sinfo.adb
25907 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25908 (Must_Override): Flag applicable to N_Entry_Declaration.
25909 Indicate that interface_list can appear in single task and single
25910 protected declarations.
25911 Replace Is_Overriding and Not_Overriding with Must_Override and
25912 Must_Not_Override, to better express intent of AI.
25913 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25914 of an overriding indicator in a subprogram or instance.
25915 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25916 Add the overriding indicator [[not] overriding] construct to the
25917 following grammar productions:
25918 ENTRY_DECLARATION
25919 GENERIC_INSTANTIATION
25920 SUBPROGRAM_SPECIFICATION
25921
25922 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25923 can start with an overriding indicator.
25924
25925 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25926 flags accordingly on subrogram specifications or instances.
25927
da8f5fd9 25928 * sem_ch8.adb:
0adcdb66
AC
25929 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25930 overriding_indicator, if present, is consistent with status of spec.
25931 Improve error message for null-excluding checks on controlling access
25932 parameters.
25933 (Check_In_Previous_With_Clause): Protect the frontend against
25934 previously reported critical errors in the context clauses.
25935 Save and restore Ada_Version_Explicit, for implementation of AI-362
25936 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25937 operation verify that controlling formals of the renamed entity that
25938 are access parameters are explicitly non-null.
25939 (Find_Expanded_Name): Improve error message when prefix is an illegal
25940 reference to a private child unit.
25941
25942 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
da8f5fd9 25943 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
0adcdb66
AC
25944 Rewrite to correspond to new wide character names in AI-395
25945
6f7f72f9
EB
25946 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25947 default procedures.
0adcdb66
AC
25948
259492005-06-14 Ed Schonberg <schonberg@adacore.com>
25950 Robert Dewar <dewar@adacore.com>
25951
25952 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25953 code, not on the bodies of predefined operations, to cut down on
25954 spurious noise.
25955
259562005-06-14 Ed Schonberg <schonberg@adacore.com>
25957
25958 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25959 be expanded in place. The size computation does not require a
25960 subtraction, which would raise an exception on a compiler built with
25961 assertions when the upper bound is Integer'first.
25962 (Flatten): For an array of composite components, take into account the
25963 size of the components to determine whether it is safe to expand the
25964 array into a purely positional representation.
25965
259662005-06-14 Thomas Quinot <quinot@adacore.com>
25967
25968 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25969 denoting a formal parameter into account.
25970
259712005-06-14 Ed Schonberg <schonberg@adacore.com>
25972
25973 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25974 the entry_call alternative of a conditional entry call, wrap the
25975 conditional entry call itself.
25976
259772005-06-14 Nicolas Setton <setton@adacore.com>
25978 Ed Schonberg <schonberg@adacore.com>
25979
25980 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25981 the "simple_choice" member in a variant record, in accordance with the
25982 description in the package spec: the information output for a constant
25983 should be "S number", not "SS number".
25984 (Get_Encoded_Name): Return at once if not generating code. Avoids name
25985 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25986
259872005-06-14 Thomas Quinot <quinot@adacore.com>
25988
25989 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25990 RACW without any primitives, do not generate the if statement for
25991 dispatching by name in the PolyORB/DSA case, as it would be malformed
25992 (it would have an Elsif_Parts list that is not No_List, but with a
25993 length of 0).
25994
259952005-06-14 Robert Dewar <dewar@adacore.com>
25996
25997 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25998
259992005-06-14 Jose Ruiz <ruiz@adacore.com>
26000
26001 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
26002 can determine whether pragma Suppress_Exception_Locations is in effect.
26003
26004 * utils2.c (build_call_raise): Do not pass the file name to the
26005 exception handler if pragma Suppress_Exception_Locations is in effect.
26006 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
26007
260082005-06-14 Emmanuel Briot <briot@adacore.com>
26009
26010 * g-debpoo.adb (Deallocate, Dereference): Improve output.
26011
260122005-06-14 Nicolas Roche <roche@adacore.com>
26013
26014 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
26015 to ""
26016 (Next_Level): Fix minor bug in handling of ../dir case
26017 (Read): Add dir separator to Directory name so that "" is understood as
26018 "/"
26019
260202005-06-14 Pascal Obry <obry@adacore.com>
26021
26022 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
26023 releasing the items.
26024
260252005-06-14 Vincent Celier <celier@adacore.com>
26026 Cyrille Comar <comar@adacore.com>
26027
26028 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
26029 with output file descriptor and with output file name.
26030 (Dup, Dup2): Now global procedures as they are used by two subprograms
26031 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
26032
260332005-06-14 Thomas Quinot <quinot@adacore.com>
26034
26035 PR ada/6717
0adcdb66
AC
26036 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
26037 broadcast address.
26038 (Create_Selector): Bind listening socket used to create the signalling
26039 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
26040 Set listen backlog to 1 to ensure that we detect socket theft by a
26041 failure of our own connect(2) call.
26042 (Check_Selector): Improve documentation of the selector mechanism.
26043 (Broadcast_Inet_Addr): New constant.
26044
260452005-06-14 Gary Dismukes <dismukes@adacore.com>
26046
26047 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
26048 type which turns out to be an incomplete and incorrect fix.
26049 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
26050 of the type is declared in a record (for determination of insertion
26051 type).
26052 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
26053 a private type and ensure that the primary entity is used for the type
26054 of the newly created function's V formal by taking the Etype of the
26055 view.
26056
260572005-06-14 Javier Miranda <miranda@adacore.com>
26058 Jose Ruiz <ruiz@adacore.com>
26059 Robert Dewar <dewar@adacore.com>
26060 Ed Schonberg <schonberg@adacore.com>
26061
26062 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
26063 that indicates if we are parsing a compilation unit found in a
26064 limited-with clause.
26065 It is use to avoid the circularity check.
26066
26067 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
26068 we are parsing a compilation unit found in a limited-with clause. This
26069 is use to avoid the circularity check.
26070
26071 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26072 unit as a consequence of parsing a limited-with clause. This is used
26073 to avoid the circularity check.
26074
26075 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
26076 (Analyze_Context): Limited-with clauses are now allowed
26077 in more compilation units.
26078 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
26079 againts previously reported critical errors in context clauses
26080 (Install_Limited_Withed_Unit): Code cleanup plus static detection
26081 of two further errors: renamed subprograms and renamed packages
26082 are not allowed in limited with clauses.
26083 (Install_Siblings): Do not install private_with_clauses on the package
26084 declaration for a non-private child unit.
26085 (Re_Install_Parents): When a parent of the subunit is reinstalled,
26086 reset visibility of child units properly.
26087 (Install_Withed_Unit): When a child unit appears in a with_clause of its
26088 parent, it is immediately visible.
26089
260902005-06-14 Ed Schonberg <schonberg@adacore.com>
26091 Emmanuel Briot <briot@adacore.com>
26092
26093 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26094 declared within an inlined body as referenced, to prevent spurious
26095 warnings.
26096 (Output_One_Ref): If an entity renames an array component, indicate in
26097 the ALI file that this aliases (renames) the array. Capture as well
26098 function renamings that rename predefined operations.
26099 Add information about generic parent for package and subprogram
26100 instances.
26101 (Get_Type_Reference): For a subtype that is the renaming of an actual in
26102 an instantiation, use the first_subtype to ensure that we don't generate
26103 cross-reference information for internal types.
26104 For objects and parameters of a generic private type, retain the '*'
26105 indicator to distinguish such an entity from its type.
26106
6f7f72f9
EB
26107 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26108 to store information about instantiated entities.
0adcdb66 26109
6f7f72f9
EB
26110 * ali.adb (Scan_ALI): Add support for parsing the reference to the
26111 generic parent
0adcdb66 26112
6f7f72f9
EB
26113 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26114 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26115 information.
0adcdb66
AC
26116
261172005-06-10 Doug Rupp <rupp@adacore.com>
26118 Arnaud Charlet <charlet@adacore.com>
26119 Olivier Hainque <hainque@adacore.com>
26120 Jose Ruiz <ruiz@adacore.com>
26121
26122 * Make-lang.in: Add initialize.o when needed.
26123 Remove obsolete references to RT_FLAGS.
26124 Add missing dependencies for sdefault.o
26125
26126 * initialize.c: New file.
26127
26128 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26129 [VMS] cond_signal_table: Fix problem in declaration.
26130 [VMS] __gnat_error_handler: rewrite.
26131 Move all __gnat_initialize() routines to initialize.c
26132 Specialize the former "hpux" section to "hppa hpux", as this is what the
26133 section really is here for and we now have other hpux ports that need
26134 different contents.
26135 (__gnat_adjust_context_for_raise) i386-linux: First version of this
26136 function for this target. Adjust PC by one in the machine context. This
26137 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26138 it is more reliable to do that in the signal handler itself.
26139 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26140 flags, so that the handler is passed the context structure to adjust
26141 prior to the raise.
26142 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26143 SA_SIGINFO sigaction should look like. Call
26144 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26145 Machine_State_Operations stuff.
26146 Add conditional code so that the x86_64 is also supported.
26147
261482005-06-14 Pascal Obry <obry@adacore.com>
26149
26150 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26151 the library name.
26152
261532005-06-14 Robert Dewar <dewar@adacore.com>
26154
26155 * opt.ads, opt.adb: New flags for persistent_bss mode
26156 Add Ada_Version_Explicit, for implementation of AI-362
26157 Add Assertions_Enabled_Config and associated handling
26158 Needed since setting can be changed with Assertion_Policy pragma
26159 Add new flag Warn_On_Ada_2005_Compatibility
26160
26161 * switch-c.adb: Recognize -gnatwy/Y
26162 Set Ada_Version_Explicit, for implementation of AI-362
26163 The -gnatg switch now includes -gnatyu
26164
26165 * usage.adb: Add -gnatwy/Y
26166 Remove wrong asterisk on -gnatwX line
26167 Add line for -gnatyu switch
26168
261692005-06-14 Vincent Celier <celier@adacore.com>
26170
26171 * osint.adb (Add_Default_Search_Dirs): Put source and object
26172 directories of project files before directories coming from
26173 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26174
261752005-06-14 Robert Dewar <dewar@adacore.com>
26176
26177 PR ada/15613
0adcdb66
AC
26178 * par-ch2.adb (Scan_Pragma_Argument): New procedure
26179 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26180
261812005-06-14 Vincent Celier <celier@adacore.com>
26182
26183 * prep.adb (Preprocess): Ignore error when scanning the first token of
26184 a line.
26185
261862005-06-14 Vincent Celier <celier@adacore.com>
26187
26188 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26189 (Check_Stand_Alone_Library): If the specified reference symbol file does
26190 not exist, only issue a warning when the symbol policy is not
26191 Controlled. And, when symbol policy is Compliant, set the symbol
26192 policy to Autonomous.
26193
261942005-06-14 Vincent Celier <celier@adacore.com>
26195
26196 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26197 when the project file in a with clause is not the last one, that is the
26198 project file name is followed by a comma.
26199 * prj-pp.adb: (First_With_In_List): New Boolean global variable
26200 (Print): Issue list of project files separated by commas in with clauses
26201 according to the values returned by Is_Not_Last_In_List.
26202 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26203 (Set_Is_Not_Last_In_List): New procedure
26204
262052005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26206
26207 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26208
262092005-06-14 Robert Dewar <dewar@adacore.com>
26210
26211 * scng.adb: Add call to new Check_EOF routine
26212 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26213 Add some comments regarding wide character handling
26214
26215 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26216
26217 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26218
26219 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26220 characters are now considered graphic characters and hence yield false
26221 in this call.
26222
6f7f72f9
EB
26223 * nmake.adt: Modify header so that xnmake does not generate output
26224 files with multiple blank lines.
0adcdb66 26225
6f7f72f9
EB
26226 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26227 not have an extra blank line
0adcdb66
AC
26228
262292005-06-14 Gary Dismukes <dismukes@adacore.com>
26230
26231 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26232 expression when the component type is an anonymous access type to
26233 ensure that appropriate accessibility checks are done.
26234
26235 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26236 expression of an assignment when the target object is of an anonymous
26237 access type. This ensures that required accessibility checks are done.
26238 (One_Bound): Move the check for type Universal_Integer to
26239 Process_Bounds.
26240 (Process_Bounds): Check whether the type of the preanalyzed range is
26241 Universal_Integer, and in that case set Typ to Integer_Type prior
26242 to setting the type of the original range and the calls to One_Bound.
26243
262442005-06-14 Ed Schonberg <schonberg@adacore.com>
26245
26246 * sem_case.adb (Expand_Others_Choice): Improve warning.
26247
262482005-06-14 Ed Schonberg <schonberg@adacore.com>
26249
26250 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26251 constraint of full view if present, when other type is discriminated.
26252 (Eval_Relational_Op): Recognize tests of pointer values against Null,
26253 when the pointer is known to be non-null, and emit appropriate warning.
26254
262552005-06-14 Robert Dewar <dewar@adacore.com>
26256 Ed Schonberg <schonberg@adacore.com>
26257
26258 PR ada/10671
0adcdb66
AC
26259 * sem_prag.adb: Implement pragma Persistent_BSS
26260 Remove obsolete pragma Persistent_Data, Persistent_Object
26261 Set Ada_Version_Explicit, for implementation of AI-362
26262 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26263 Add processing for pragma Pure_05 and Preelaborate_05
26264 Add processing for Assertion_Policy pragma
26265 Add pragma identifiers for Assert
26266 (Analyze_Pragma, case Assert): Check number of arguments
26267 (Process_Inline): Additional guard against an illegal program, where the
26268 argument of the pragma is undefined, and warnings on redundant
26269 constructs are enabled.
26270 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26271 Ada_05 to this pragma, specifying that the pragma is only active in
26272 Ada_05 mode.
26273 (Check_Arg_Order): New procedure
26274 Add appropriate calls to this procedure throughout
26275 Also throughout, check entity name before doing any other checks
26276
26277 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26278 Remove obsolete pragma Persistent_Data, Persistent_Object
26279 Add entries for pragma Pure_05 and Preelaborate_05
26280 Add entries for Assertion_Policy pragma and associated names
26281 Add some names for pragma argument processing
26282
26283 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26284
262852005-06-14 Ed Schonberg <schonberg@adacore.com>
26286
26287 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26288 appears within a negation (either from source or as a rewriting of
26289 inequality) adjust text of warning accordingly.
26290
262912005-06-14 Thomas Quinot <quinot@adacore.com>
26292
26293 * s-strxdr.adb: Follow AI95-00132
26294
262952005-06-14 Arnaud Charlet <charlet@adacore.com>
26296
26297 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26298
262992005-06-14 Arnaud Charlet <charlet@adacore.com>
26300 Jose Ruiz <ruiz@adacore.com>
26301
26302 * s-tposen.adb, s-tpobop.adb
26303 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26304 the exception id.
26305 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26306 there is no violation of the Max_Entry_Queue_Length restriction (if it
26307 has been set); Program_Error is raised otherwise.
26308 (Requeue_Call): Before requeuing the task on the target entry queue we
26309 check that there is no violation of the Max_Entry_Queue_Length
26310 restriction (if it has been set); Program_Error is raised otherwise.
26311
263122005-06-14 Robert Dewar <dewar@adacore.com>
26313
26314 * styleg.adb: Fix several remaining problems in -gnatyu switch
26315 Blank line count not reset at start
26316 Scanning outside source buffer in some cases
26317 Confusing message for blanks at end of file
26318 Non-empty blank lines not recognized
26319
26320 * nmake.adt: Modify header so that xnmake does not generate output
26321 files with multiple blank lines.
26322
6f7f72f9
EB
26323 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26324 not have an extra blank line
0adcdb66
AC
26325
263262005-06-14 Sergey Rybin <rybin@adacore.com>
26327
26328 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26329
263302005-06-14 Doug Rupp <rupp@adacore.com>
26331 Vincent Celier <celier@adacore.com>
26332
26333 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26334 Update copyright.
26335
26336 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26337 Remove "Library" command.
26338 Change keyword for style check -gnatyd from NOCRLF to
26339 DOS_LINE_ENDINGS.
26340 Remove useless second style check keyword NONE
26341 Remove help documentation for inexistent style check keyword
26342 RM_COLUMN_LAYOUT.
26343 Add help documentation for style check keywords DOS_LINE_ENDINGS,
26344 UNNECESSARY_BLANK_LINES and XTRA_PARENS
26345 Add UNNECESSARY_BLANK_LINES for -gnatyu
26346 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26347
6f7f72f9 26348 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
0adcdb66
AC
26349
263502005-06-14 Vincent Celier <celier@adacore.com>
26351
26352 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26353 gprmake was invoked with -d.
26354 (Compile_Sources): If -d was used, output the "completed ..." message
26355 for each compilation.
26356 (Scan_Arg): Recognize new switch -d
26357 When -c and at least one main is specified, set
26358 Unique_Compile to True to guarantee that no other sources will be
26359 compiled.
26360
263612005-06-14 Matthew Heaney <heaney@adacore.com>
26362
26363 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26364 * a-swuwha.ads, a-swuwha.adb: New files
26365
26366 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26367 * a-szuzha.ads, a-szuzha.adb: New files.
26368
26369 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
da8f5fd9
AJ
26370 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26371 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26372 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26373 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
0adcdb66 26374 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
da8f5fd9 26375 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
0adcdb66
AC
26376 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26377 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26378 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26379 Ada 2005 RM.
26380
263812005-06-10 Eric Botcazou <ebotcazou@adacore.com>
26382 Olivier Hainque <hainque@adacore.com>
26383 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26384 Pascal Obry <obry@adacore.com>
26385
26386 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26387
26388 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26389 making a temporary around a procedure call because of non-addressable
26390 actual parameter.
26391 (process_freeze_entity): If entity is a private type, capture size
26392 information that may have been computed for the full view.
26393 (tree_transform, case N_Allocator): If have initializing expression,
26394 check type for Has_Constrained_Partial_View and pass that to
26395 build_allocator.
26396 (tree_transform, case N_Return_Statement): Pass extra arg to
26397 build_allocator.
26398
26399 * decl.c (annotate_value): Remove early return if -gnatR is not
26400 specified.
26401 (gnat_to_gnu_field): Don't make a packable type for a component clause
26402 if the position is byte aligned, the field is aliased, and the clause
26403 size isn't a multiple of the packable alignment. It serves no useful
26404 purpose packing-wise and would be rejected later on.
26405 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26406
26407 PR ada/20515
26408 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26409 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26410 instead.
26411 (create_concat_name): Idem.
26412
264132005-06-10 Robert Dewar <dewar@adacore.com>
26414 Eric Botcazou <ebotcazou@adacore.com>
26415 Ben Brosgol <brosgol@adacore.com>
26416 Cyrille Comar <comar@adacore.com>
26417 Sergey Rybin <rybin@adacore.com>
26418 Pascal Obry <obry@adacore.com>
26419
26420 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26421 Document second argument (Ada_05) of pragma Obsolescent
26422 Add note that call to subprogram marked with pragma Obsolescent
26423 is now considered to be a violation of program Restrictions
26424 (No_Obsolescent_Features).
26425 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26426 that only machine-dependent attributes are supported.
26427
da8f5fd9 26428 * gnat_ugn.texi:
0adcdb66
AC
26429 Commented out menu lines and empty section for gnatclean examples
26430 Document -gnatwy/Y
26431 Fix some over long lines
26432 Clarify and enhance documentation of ADA_PROJECT_PATH.
26433 Rework section 2.11.2(3) about linking with a non-GNU compiler.
26434 Mention new switch -fcallgraph-info.
26435 Mention new switch -fstack-usage.
26436 For gnatpp, replace '-notab' with '-N' and add this option to Index
26437 Corrected VMS example.
26438 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26439 Minor reformatting
26440 Add documentation for -gnatyu switch (unnecessary blank lines)
26441 Document new switch -U for GNAT PRETTY and GNAT METRIC
26442 Add note about Stdcall being handled as C convention on non Windows OS.
26443 Remove some junk typo in description of gnatbind -S switch
26444 Remove reference to Extensions_Allowed pragma
26445 Document the new order of the directories to be searched (source and
26446 object directories of project files before directories in ADA_*_PATH
26447 environment variables.
26448
6f7f72f9 26449 * g-trasym.ads: Document that IRIX is supported
0adcdb66
AC
26450
264512005-06-10 Arnaud Charlet <charlet@adacore.com>
26452
26453 * Makefile.in: Add initialize.o when needed.
26454 Adapt to new VMS package body Symbols and subunits
26455 No specialized version of a-sytaco is needed for VxWorks.
26456
26457 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26458 * a-zchara.ads, a-widcha.ads: New files.
26459
26460 * system-hpux-ia64.ads: New file.
26461
26462 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26463 is imported from the VxWorks kernel.
26464
264652005-06-14 Robert Dewar <dewar@adacore.com>
26466
26467 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26468 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26469 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26470 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26471 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26472 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26473 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26474 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26475 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26476 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26477 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26478 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26479
264802005-06-14 Thomas Quinot <quinot@adacore.com>
26481
26482 * xeinfo.adb: Fix typo in comment
26483
264842005-06-14 Javier Miranda <miranda@adacore.com>
26485
26486 * repinfo.ads: Fix typo in comment
26487
264882005-06-14 Gary Dismukes <dismukes@adacore.com>
26489
26490 * s-finimp.adb (Parent_Tag): Delete this imported function (function
26491 Parent_Tag is now in the visible part of Ada.Tags).
26492 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26493 using imported function.
26494
264952005-06-14 Bernard Banner <banner@adacore.com>
26496
26497 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26498 also apply for handling support for VxSim 653.
26499
265002005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26501
26502 * xsnames.adb: Add automatic generation of snames.h.
26503
265042005-06-14 Thomas Quinot <quinot@adacore.com>
26505
26506 * gen-soccon.c: Add IP_MULTICAST_IF constant
26507 Minor reformatting and adjustments to prevent warnings.
26508
265092005-06-14 Pascal Obry <obry@adacore.com>
26510
26511 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26512
e0d161cf
AP
265132005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
26514
26515 * trans.c (gnat_gimplify_expr): Call
26516 recompute_tree_invarant_for_addr_expr when we change
26517 the operand of the ADDR_EXPR.
26518
4c714dd4
KG
265192005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26520
26521 * misc.c: Don't include errors.h.
26522
7b9997f3
KG
265232005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26524
26525 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26526
5ff62c2e
KH
265272005-05-29 Kazu Hirata <kazu@cs.umass.edu>
26528
26529 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26530 comment typos.
26531 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26532
9e94c78f 265332005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
8b37cc64
NN
26534
26535 PR ada/20270
26536 * Makefile.in: Make TGT_LIB behave correctly.
26537
d4ee4d25
DD
265382005-04-23 DJ Delorie <dj@redhat.com>
26539
26540 * misc.c: Adjust warning() callers.
26541
9e94c78f 265422005-04-16 Laurent Guerby <laurent@guerby.net>
159921c0 26543
6f7f72f9
EB
26544 PR ada/18847
26545 * a-nudira.adb (Value): Check for valid string.
26546 * a-nuflra.adb (Value): Likewise.
159921c0 26547
0b026622
RS
265482005-04-11 Richard Sandiford <rsandifo@redhat.com>
26549
26550 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26551
bde83138
KH
265522005-04-10 Kazu Hirata <kazu@cs.umass.edu>
26553
26554 * adaint.c, init.c, tracebak.c: Fix comment typos.
26555 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26556
9e94c78f 265572005-04-07 Laurent Guerby <laurent@guerby.net>
ad9945b5
LG
26558 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26559
26560 * Makefile.in: Add make ifeq define for hppa linux tasking support.
26561 * system-hpux.ads: Define Signed_Zeros to be True.
26562 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26563
45f7cb60
KH
265642005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26565
26566 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26567 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26568 typos.
26569
5662a50d
TT
265702005-03-30 Tom Tromey <tromey@redhat.com>
26571
26572 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26573
e6e375cc
AL
265742005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26575
26576 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26577
5db8bc34
AC
265782005-03-29 Robert Dewar <dewar@adacore.com>
26579
26580 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26581 fixed-point expression has value that is not a multiple of the Small
26582 value.
26583
26584 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26585
26586 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26587 nanoseconds.
26588
26589 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26590
265912005-03-29 Vincent Celier <celier@adacore.com>
26592
26593 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26594 (Build_Dynamic_Library.Version_String): Return the empty string when
26595 Lib_Version is empty or when the symbol policy is not Autonomous.
26596
26597 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26598 a symbol is not in the reference symbol file, increase the Major ID
26599 and set the Minor ID to 0.
26600 Use gsmatch=lequal instead of gsmatch=equal
26601
266022005-03-29 Doug Rupp <rupp@adacore.com>
26603
26604 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26605 name and translate.
26606
266072005-03-29 Javier Miranda <miranda@adacore.com>
26608
26609 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26610 (Inherit_DT): The first formal has been redefined as a Tag.
26611 This allows us the removal of the subprogram Get_TSD.
26612 (TSD): Replace the call to Get_TSD by the actual code.
26613
26614 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26615 (Make_DT): Upgrade the call to Inherit_TSD according to the
26616 new interface: the first formal is now a Tag.
26617
26618 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26619 redefined as a Tag.
26620 This change allows us to remove the subprogram Get_TSD.
26621 (CPP_Get_TSD): Subprogram removed.
26622 (TSD): Replace the call to CPP_Get_TSD by the actual code.
26623
26624 * rtsfind.ads: Remove support to call the run-time
26625 subprogram Get_TSD
26626
266272005-03-29 Robert Dewar <dewar@adacore.com>
26628
da8f5fd9 26629 * errutil.adb, errout.adb:
5db8bc34
AC
26630 Minor comment updates on Line_Terminator references
26631
26632 * par-ch10.adb: Add ??? comment about line terminator
26633
26634 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26635 (check dos line terminator).
26636 (Check_Line_Max_Length): New procedure, split off from the existing
26637 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26638 be properly recognized.
26639
26640 * styleg.adb: Add ??? comment for line terminator reference
26641
26642 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26643 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26644
26645 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26646 (check dos line terminator).
26647 (Check_Line_Max_Length): New procedure, split off from the existing
26648 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26649 be properly recognized.
26650
da8f5fd9 26651 * stylesw.ads, stylesw.adb:
5db8bc34
AC
26652 Add handling for new -gnatyd switch (check dos line terminator)
26653
26654 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26655 Recognize -gnatwb/-gnatwB switches
26656 Include Warn_On_Bad_Fixed_Value for -gnatg
26657
da8f5fd9 26658 * usage.adb:
5db8bc34
AC
26659 Add line for new -gnatyd switch (check dos line terminator)
26660
26661 * usage.adb: Add lines for -gnatwb/-gnatwB
26662
26663 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26664
26665 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26666
26667 * gnat_ugn.texi: Fix overlong lines
26668 Document new -gnatyd switch
26669 Document new -gnatwb/-gnatwB switches
26670
266712005-03-29 Ed Schonberg <schonberg@adacore.com>
26672
26673 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26674 order to retrieve the component list of the type, before examining
26675 individual components.
26676
26677 * sem_type.adb (Covers): Types are compatible if one is the base type
26678 of the other, even though their base types might differ when private
26679 views are involved.
26680
266812005-03-29 Thomas Quinot <quinot@adacore.com>
26682
26683 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26684 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26685 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26686 analyzed if expansion is disabled (which could otherwise cause spurious
26687 error messages if expansion has been disabled due to previous
26688 (unrelated) errors).
26689
26690 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26691 is disabled, the entity denoted by the argument is the access type
26692 itself, not an underlying record type, so there is no need to go back
26693 to the Corresponding_Remote_Type.
26694
266952005-03-29 Gary Dismukes <dismukes@adacore.com>
26696 Robert Dewar <dewar@adacore.com>
26697
26698 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26699 expand a call to an instance of
26700 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26701 Constructor actual of the instance. A class-wide membership
26702 check is also generated, to ensure that the tag passed to the instance
26703 denotes a type in the class.
26704 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26705 of Name_Generic_Dispatching_Constructor.
26706
26707 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26708 05 unit for AI-260-02).
26709
26710 * a-tgdico.ads: New file.
26711
26712 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26713 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26714
26715 * snames.ads, snames.adb (Preset_Names): Add entry for
26716 Generic_Dispatching_Constructor.
26717
26718 PR ada/20300
5db8bc34
AC
26719 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26720 character type cases.
26721 (Analyze_Subprogram_Renaming): Add special handling for
26722 the case of renaming of stream attributes when the renaming denotes a
26723 generic formal subprogram association for an abstract formal subprogram.
26724 Check that the attribute is a primitive stream attribute (and not
26725 a class-wide stream attribute) and then rewrite the attribute name
26726 as the name of the appropriate compiler-generated stream primitive.
26727
267282005-03-29 Robert Dewar <dewar@adacore.com>
26729
26730 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26731 recursive calls.
26732 (Is_Possibly_Unaligned_Object): Correct typo that
26733 resulted in inaccurate result for unaligned scalars within records.
26734
267352005-03-29 Ed Schonberg <schonberg@adacore.com>
26736
26737 * freeze.adb (Freeze_Record_Type): If the type of the component is an
26738 itype whose parent is controlled and not yet frozen, do not create a
26739 freeze node for the itype if expansion is disabled.
26740
267412005-03-29 Vincent Celier <celier@adacore.com>
26742
26743 * make.adb (Gnatmake): Don't fail if the main project file is declared
26744 as having no Ada sources. Do not display message "no sources to
26745 compile" in quiet output.
26746
267472005-03-29 Doug Rupp <rupp@adacore.com>
26748
26749 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26750 extra tools.
26751
267522005-03-29 Robert Dewar <dewar@adacore.com>
26753
26754 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26755 child.
26756
267572005-03-29 Robert Dewar <dewar@adacore.com>
26758
26759 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26760 missing TYPE Improve the error message generated when compiling a
26761 limited interface in Ada83 or Ada95 mode.
26762
267632005-03-29 Robert Dewar <dewar@adacore.com>
26764
26765 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26766 rather than proceed ahead using a junk attribute name.
26767
267682005-03-29 Vincent Celier <celier@adacore.com>
26769
26770 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26771
26772 * prj-part.adb (Parse_Single_Project): Set the location of a project
26773 on its defining identifier, rather than on the reserved word "project".
26774
26775 * prj-proc.adb (Expression): Adapt to the fact that default of external
26776 references may be string expressions, not always literal strings.
26777 (Recursive_Process): Set Display_Name equal to Name
26778 when Location is No_Location, that is when there is no actual file.
26779 Get the Display_Name of the project from the source, when it is not a
26780 virtual project.
26781 (Process): Use the Display_Name in error messages
26782
26783 * prj-strt.adb (External_Reference): Allow default to be string
26784 expressions, not only literal strings.
26785
267862005-03-29 Vincent Celier <celier@adacore.com>
26787
26788 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26789 file and the reference symbol file to be the same file.
26790
267912005-03-29 Thomas Quinot <quinot@adacore.com>
26792
26793 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26794 forbid conversion of a local access-to-subprogram type to a remote one.
26795
26796 * sem_util.adb (Wrong_Type): For a record type that is the expanded
26797 equivalent type for a remote access-to-subprogram type, go back to the
26798 original RAS entity when displaying an error message, so the casing is
26799 the original source casing.
26800
268012005-03-29 Robert Dewar <dewar@adacore.com>
26802
26803 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26804 on param update.
26805
268062005-03-29 Ed Schonberg <schonberg@adacore.com>
26807
26808 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26809 subtype if code is being pre-analyzed, to prevent un-expanded
26810 references to protected formals, among others.
26811 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26812 interpretation that can be a call, include the result of the call as a
26813 possible interpretation of the dereference.
26814
26815 * sem_ch5.adb (Process_Bounds): Determine type of range by
26816 pre-analyzing a copy of the original range, and then analyze the range
26817 with the expected type.
26818
26819 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26820 with an overloaded prefix where not all interpretations yield an
26821 access to subprogram, do not rewrite node as a call.
26822 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26823 the node as a call once the context identifies the interpretation of
26824 the prefix whose call yields the context type.
26825 (Valid_Conversion): For the case of a conversion between
26826 local access-to-subprogram types, check subtype conformance using
26827 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26828 detailed error message.
26829
268302005-03-29 Ed Schonberg <schonberg@adacore.com>
26831
26832 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26833 indicator, indicate that the formal can never be null.
26834 (Process_Formals): If a formal has a non_null indicator, insert the
26835 resulting subtype immediately before the enclosing subprogram decl,
26836 and not at the beginning of the corresponding declarative part, to
26837 prevent access before elaboration (Ada2005).
26838
268392005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26840
26841 PR ada/19956
26842 * utils.c (finish_record_type): Use variable_size when setting sizes.
26843
268442005-03-29 Robert Dewar <dewar@adacore.com>
26845
26846 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26847 guarantee Unix style line terminators for the output files, even when
26848 running on windows.
26849
268502005-03-29 Robert Dewar <dewar@adacore.com>
26851
26852 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26853 buffer if an exception is raised.
26854
268552005-03-29 Ed Falis <falis@adacore.com>
26856
26857 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26858 VxWorks 653 1.4
26859
268602005-03-29 Robert Dewar <dewar@adacore.com>
26861
26862 * sem_util.ads: Minor reformatting
26863 * gnat_rm.texi: Minor editing.
26864
268652005-03-29 Eric Botcazou <ebotcazou@adacore.com>
26866
26867 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26868 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26869
aad9ff31
AL
268702005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26871
26872 * adaint.c (__gnat_portable_spawn): Adjust cast.
26873
d101034c
JM
268742005-03-23 Joseph S. Myers <joseph@codesourcery.com>
26875
26876 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26877
3a0c4f5a
AC
268782005-03-17 Pascal Obry <obry@adacore.com>
26879
26880 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26881 used.
26882
26883 * expect.c (__gnat_waitpid): Moved here from adaint.c.
26884 Reimplement under Win32 using Win32 API.
26885
26886 (__gnat_kill) [Win32]: Properly close the process handle before leaving
26887 this routine.
26888
268892005-03-17 Eric Botcazou <ebotcazou@adacore.com>
26890
26891 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26892 (DECL_RENAMED_OBJECT): New accessor macro.
26893 (SET_DECL_RENAMED_OBJECT): New setter macro.
26894
26895 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26896 object in all cases. Attach the renamed object to the VAR_DECL.
26897 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26898 field is not prescribed.
26899
26900 * misc.c (gnat_handle_option): Handle -gnatO separately.
26901 (gnat_print_decl) <VAR_DECL>: New case.
26902 Print the DECL_RENAMED_OBJECT node.
26903
26904 * lang.opt: Declare separate -gnatO option.
26905
26906 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26907 pointer, replace it with the renamed object.
26908 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26909 pointer type if the source is not a fat pointer type whose underlying
26910 array has the same non-zero alias set as that of the destination array.
26911
269122005-03-17 Javier Miranda <miranda@adacore.com>
26913
26914 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26915 (Get_Inheritance_Depth): Removed.
26916 (Set_Inheritance_Depth): Removed.
26917
26918 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26919 subprogram Get_Expanded_Name because it is not referenced by the
26920 frontend.
26921
26922 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26923 (CPP_Get_Inheritance_Depth): Removed.
26924 (CPP_Set_Inheritance_Depth): Removed.
26925
26926 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26927
269282005-03-17 Robert Dewar <dewar@adacore.com>
26929
26930 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26931 3, since we now expect GCC 3 to do all the work.
26932
269332005-03-17 Javier Miranda <miranda@adacore.com>
26934
26935 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26936 of one barrier to avoid wrong usage of this attribute.
26937
26938 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26939 First_Private_Entity.
26940
26941 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26942 the subprogram against wrong usage.
26943 Adapt the code to traverse the entities in the
26944 scope of a record_type because in addition to its usage regarding
26945 packages, this subprogram is also called by Expand_N_Freeze_Entity
26946 to install the visible declarations of the enclosing scope of a
26947 record_type_with_private to establish the proper visibility before
26948 freezing the entity and related subprograms.
26949
269502005-03-17 Ed Schonberg <schonberg@adacore.com>
26951
26952 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26953 entry formals.
26954
269552005-03-17 Thomas Quinot <quinot@adacore.com>
26956
26957 * exp_ch3.adb (Check_Attr): New subprogram.
26958 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26959 into a new Check_Attr subprogram, in order to provide a more
26960 explanatory error message (including the name of the missing attribute).
26961 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26962 subprogram determines whether a default implementation exists for a
26963 given stream attribute.
26964 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26965 Determine whether to generate a default implementation for each stream
26966 attribute separately, as this depends on the specific attribute.
26967
26968 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26969 limited extension where a stream attribute is missing for a limited
26970 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26971 generate a bogus reference to the missing attribute to prevent
26972 cascaded errors. Instead, generate a null statement.
26973
26974 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26975 available for a limited type if it has been specified for an ancestor
26976 of the type.
26977
269782005-03-17 Ed Schonberg <schonberg@adacore.com>
26979
26980 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26981 entity is an operator.
26982
269832005-03-17 Thomas Quinot <quinot@adacore.com>
26984
26985 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26986 spec, to make this predicate available to other units.
26987
26988 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26989 reimplementing it.
26990
26991 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26992 when no distribution runtime library is available.
26993
26994 * sem_res.adb, sem_dist.adb: Disable expansion of remote
26995 access-to-subprogram types when no distribution runtime library is
26996 available.
26997 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26998 predicate available to other units.
26999
27000 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27001 spec, to make this predicate available to other units.
27002
270032005-03-17 Vincent Celier <celier@adacore.com>
27004
27005 * make.adb (Insert_Project_Sources): Make sure the Q is always
27006 initialized.
27007
27008 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
27009 the default for the tree, not the global default naming.
27010
27011 * prj-proc.adb (Recursive_Process): No need to put the default naming
27012 in the project data, it's already there.
27013
270142005-03-17 Doug Rupp <rupp@adacore.com>
27015
27016 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
27017
6f7f72f9
EB
27018 * 5xcrtl.ads: Renamed to...
27019 * s-crtl-vms64.ads: ...this new file
3a0c4f5a
AC
27020
270212005-03-17 Robert Dewar <dewar@adacore.com>
27022
27023 PR ada/19519
3a0c4f5a
AC
27024 * namet.adb (Copy_One_Character): Set proper wide character encoding
27025 for upper half character if we have upper half encoding.
27026
270272005-03-17 Robert Dewar <dewar@adacore.com>
27028
27029 * par.adb (Par): Improved msg for attempt to recompile predefined unit
27030
270312005-03-17 Thomas Quinot <quinot@adacore.com>
27032
27033 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
27034 tagged limited type, the TSS is a newly built renaming declaration:
27035 insert it using Set_TSS, not Copy_TSS.
27036
270372005-03-17 Javier Miranda <miranda@adacore.com>
27038
27039 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
27040 Try_Object_Operation): Analyze the object that is accessible
27041 through the prefix of the subprogram call before we apply
27042 the transformation of the object-operation notation.
27043
270442005-03-17 Jose Ruiz <ruiz@adacore.com>
27045
27046 * s-taprob.adb (Initialize_Protection): Initialize the protected
27047 object's owner to Null_Task.
27048 (Lock): If pragma Detect_Blocking is in effect and the caller of this
27049 procedure is already the protected object's owner then Program_Error
27050 is raised. In addition the protected object's owner is updated.
27051 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
27052 of this procedure is already the protected object's owner then
27053 Program_Error is raised.
27054 In addition the protected object's owner is updated.
27055 (Unlock): Remove the ownership of the protected object.
27056
27057 * s-taprob.ads (Protection): Add the field Owner, used to store the
27058 protected object's owner.
27059 This component is needed for detecting one type of potentially blocking
27060 operations (external calls on a protected subprogram with the same
27061 target object as that of the protected action). Document the rest of
27062 the components.
27063
27064 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
27065 Initialize the protected object's owner to Null_Task.
27066 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
27067 caller of this procedure is already the protected object's owner then
27068 Program_Error is raised.
27069 Do not raise Program_Error when this procedure is called from a
27070 protected action.
27071 (Unlock_Entries): Remove the ownership of the protected object.
27072 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
27073 of this procedure is already the protected object's owner then
27074 Program_Error is raised.
27075 Do not raise Program_Error when this procedure is called from
27076 a protected action.
27077
27078 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
27079 used to store the protected object's owner.
27080
27081 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
27082 effect and this procedure (a potentially blocking operation) is called
27083 from whithin a protected action, Program_Error is raised.
27084 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27085 and this procedure (a potentially blocking operation) is called from
27086 whithin a protected action, Program_Error is raised.
27087
270882005-03-17 Vincent Celier <celier@adacore.com>
27089 Nicolas Setton <setton@adacore.com>
27090
27091 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27092 switch, not supported by the linker on Darwin. Add '_' before
27093 <library>init, as this character is added unconditionally by the
27094 compiler.
27095 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27096 correct one ".dylib". This fixes detection of the archive files when
27097 building library projects.
27098
270992005-03-17 Vincent Celier <celier@adacore.com>
27100
27101 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27102 -gnat83, -gnat95 and -gnat05.
27103
271042005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
27105
27106 * gnat_ugn.texi: Document gnatmem restriction
27107
271082005-03-17 Thomas Quinot <quinot@adacore.com>
27109
27110 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27111 cleanup
27112
271132005-03-17 Robert Dewar <dewar@adacore.com>
27114
27115 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27116 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27117 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27118
27119 * casing.adb: Comment improvements
27120
271212005-03-17 Pascal Obry <obry@adacore.com>
27122
27123 * g-expect.adb: Minor reformatting.
27124
a1286ef5
ZW
271252005-03-15 Zack Weinberg <zack@codesourcery.com>
27126
27127 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27128 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27129 to dependencies.
27130
2532808d
VC
271312005-03-15 Vincent Celier <celier@adacore.com>
27132
a1286ef5
ZW
27133 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27134 Add new parameter In_Tree to specify the project tree: needed
27135 by the project manager. Adapt to changes in project manager
27136 using new parameter In_Tree.
2532808d 27137
e2d6b9b9
JJ
271382005-03-15 Jakub Jelinek <jakub@redhat.com>
27139
27140 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27141 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27142 ada/bldtools to avoid make -jN failures.
27143
813edff1
EB
271442005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27145
27146 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27147 to NULL_TREE on entry.
27148
4f51c6e7
AC
271492005-03-15 Robert Dewar <dewar@adacore.com>
27150
27151 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27152 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27153 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27154 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27155 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27156 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27157 system-interix.ads, system-solaris-sparc.ads,
27158 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27159 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27160 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27161 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27162 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27163 Compiler_System_Version to be False.
27164
27165 * opt.ads: Add new flag Opt.Address_Is_Private
27166
27167 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27168 Add new parameter Compiler_System_Version to avoid checking for
27169 completeness of parameters when compiler is compiling itself.
27170 Allows old versions of GNAT to be compiled with new compiler.
27171
271722005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27173
27174 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27175 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27176 calling thread.
27177 (Stack_Base_Available): New flag.
27178 (Get_Page_Size): New overloaded functions imported from C.
27179 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27180 PROT_ON, PROT_OFF): New constants.
27181 (mprotect): New function imported from C.
27182 (pthread_teb_t): New record type.
27183
27184 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27185 (Create_Task): Account for the Yellow Zone and the guard page.
27186
271872005-03-15 Vincent Celier <celier@adacore.com>
27188
27189 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27190 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27191 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27192 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27193 Library_File_Name_For): Add new parameter In_Tree
27194 to specify the project tree: needed by the project manager.
27195 Adapt to changes in project manager using new parameter In_Tree.
27196 Remove local imports, use functions in System.CRTL.
27197
27198 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27199 to use the project manager.
27200
27201 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27202 In_Tree to designate the project tree. Adapt to changes in the project
27203 manager, using In_Tree.
27204
27205 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27206 Copy_Interface_Sources): Add new parameter In_Tree to specify the
27207 project tree: needed by the project manager.
27208 (Build_Library): Check that Arg'Length >= 6 before checking if it
27209 contains "--RTS=...".
27210
27211 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27212 Library_File_Name_For): Add new parameter In_Tree to specify the
27213 project tree: needed by the project manager.
27214
27215 * prj.ads, prj.adb: Major modifications to allow several project trees
27216 in memory at the same time.
27217 Change tables to dynamic tables and hash tables to dynamic hash
27218 tables. Move tables and hash tables from Prj.Com (in the visible part)
27219 and Prj.Env (in the private part). Move some constants from the visible
27220 part to the private part. Make other constants deferred.
27221 (Project_Empty): Make it a variable, not a function
27222 (Empty_Project): Add parameter Tree. Returns the data with the default
27223 naming data of the project tree Tree.
27224 (Initialize): After updating Std_Naming_Data, copy its value to the
27225 component Naming of Project Empty.
27226 (Register_Default_Naming_Scheme): Use and update the default naming
27227 component of the project tree, instead of the global variable
27228 Std_Naming_Data.
27229 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27230 Tree is not defaulted, return the default naming data of the Tree.
27231 (Initial_Buffer_Size): Constant moved from private part
27232 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27233 variables initialized in procedure Initialize.
27234 (Add_To_Buffer): Add two in out parameters to replace global variables
27235 Buffer and Buffer_Last.
27236 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27237 functions.
27238 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27239 hash tables.
27240 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27241 for the project tree.
27242 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27243 constant at the beginning of the package spec, so that they cane be used
27244 in subprograms before their full declarations.
27245 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27246 (Empty_Project): Add parameter of type Project_Node_Ref
27247 (Private_Project_Tree_Data): Add component Default_Naming of type
27248 Naming_Data.
27249 (Buffer, Buffer_Last): remove global variables
27250 (Add_To_Buffer): Add two in out parameters to replace global variables
27251 Buffer and Buffer_Last.
27252 (Current_Packages_To_Check): Remove global variable
27253 (Empty_Name): Move to private part
27254 (No-Symbols): Make it a constant
27255 (Private_Project_Tree_Data): New type for the private part of the
27256 project tree data.
27257 (Project_Tree_Data): New type for the data of a project tree
27258 (Project_Tree_Ref): New type to designate a project tree
27259 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27260 for the project tree.
27261
27262 * prj-attr.ads: Add with Table; needed, as package Prj no longer
27263 imports package Table.
27264
27265 * prj-com.adb: Remove empty, no longer needed body
27266
27267 * prj-com.ads: Move most of the content of this package to package Prj.
27268
27269 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27270 designate the project node tree and Packages_To_Check to replace
27271 global variable Current_Packages_To_Check.
27272 Add new parameters In_Tree and Packages_To_Check to local subprograms,
27273 when needed. Adapt to changes in project manager with project node tree
27274 In_Tree.
27275
27276 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27277 project tree to most subprograms. Move tables and hash tables to
27278 private part of package Prj.
27279 Adapt to changes in project manager using project tree In_Tree.
27280
27281 * prj-makr.adb (Tree): New constant to designate the project node tree
27282 Adapt to change in project manager using project node tree Tree
27283
27284 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27285 display the Library_Src_Dir and the Library_Dir.
27286 Add new parameter In_Tree to designate the project node tree to most
27287 subprograms. Adapt to changes in the project manager, using project tree
27288 In_Tree.
27289 (Check_Naming_Scheme): Do not alter the casing on platforms where
27290 the casing of file names is not significant.
27291 (Check): Add new parameter In_Tree to designate the
27292
27293 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27294 designate the project tree.
27295 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27296
27297 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27298 to replace those that were in the private part of package Prj.
27299 Add new parameter In__Tree to designate the project node tree to most
27300 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27301 (Post_Parse_Context_Clause): When specifying the project node of a with
27302 clause, indicate that it is a limited with only if there is "limited"
27303 in the with clause, not necessarily when In_Limited is True.
27304 (Parse): Add new parameter In_Tree to designate the project node tree
27305
27306 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27307 designate the project node tree. Adapt to change in Prj.Tree with
27308 project node tree In_Tree.
27309
27310 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27311 tree In_Tree in the call to function Empty_Process to give its initial
27312 value to the project data Processed_Data.
27313 Add new parameters In_Tree to designate the project tree and
27314 From_Project_Node_Tree to designate the project node tree to several
27315 subprograms. Adapt to change in project manager with project tree
27316 In_Tree and project node tree From_Project_Node_Tree.
27317
27318 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27319 to replace those that were in the private part of package Prj.
27320 Add new parameter In_Tree to designate the project node tree to most
27321 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27322
27323 * prj-tree.ads, prj-tree.adb: Add new parameter of type
27324 Project_Node_Tree_Ref to most subprograms.
27325 Use this new parameter to store project nodes in the designated project
27326 node tree.
27327 (Project_Node_Tree_Ref): New type to designate a project node tree
27328 (Tree_Private_Part): Change table to dynamic table and hash tables to
27329 dynamic hash tables.
27330
27331 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27332 the project tree to most subprograms. Adapt to changes in project
27333 manager using project tree In_Tree.
27334
27335 * makegpr.adb (Project_Tree): New constant needed to use project
27336 manager.
27337
273382005-03-15 Olivier Hainque <hainque@adacore.com>
27339
27340 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27341 for sigactions with SA_SIGINFO set. Call
27342 __gnat_adjust_context_for_raise before raising, to perform the
27343 potentially required adjustments to the machine context for the GCC
27344 unwinder.
27345
27346 * raise.h (__gnat_adjust_context_for_raise): New prototype.
27347
27348 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27349 Adjust PC by one in the provided machine context.
27350 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27351 so that the handler is passed the context structure to adjust prior to
27352 the raise.
27353 (__gnat_error_handler) HPUX: Adjust the signature to match what an
27354 SA_SIGINFO sigaction should look like. Call
27355 __gnat_adjust_context_for_raise before actually raising.
27356 (__gnat_adjust_context_for_raise): Default noop to help PC
27357 adjustments before raise from signal handlers.
27358 (__gnat_error_handler): Indirectly call a predicate function to
27359 determine if a condition should be resignaled or not.
27360 (__gnat_set_resignal_predicate): User interface to modify the predicate.
27361 (__gnat_default_resignal_p): Default GNAT predicate.
27362
273632005-03-15 Doug Rupp <rupp@adacore.com>
27364
27365 * adaint.c: Prefix #include of VMS system header files with vms/
27366 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27367 Do not define a dummy function "convert_addresses" under Darwin,
27368 not needed.
27369
27370 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27371 with vms/
27372
273732005-03-15 Nicolas Setton <setton@adacore.com>
27374
27375 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27376 PPC/AIX.
27377
273782005-03-15 Robert Dewar <dewar@adacore.com>
27379
27380 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27381 AI-386.
27382
27383 * a-retide.ads: Minor comment changes
27384
273852005-03-15 Robert Dewar <dewar@adacore.com>
27386
27387 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27388 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27389 Realloc_For_Chunk to private part of package.
27390 New subprograms for AI-301
27391
27392 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27393 Get_Line procedure.
27394 Avoid unnecessary use of Get/Set_Wide_String
27395
273962005-03-15 Robert Dewar <dewar@adacore.com>
27397
27398 PR ada/13470
a1286ef5 27399 * a-stunau.ads, a-stunau.adb:
4f51c6e7
AC
27400 Change interface to allow efficient (and correct) implementation
27401 The previous changes to allow extra space in unbounded strings had
27402 left this interface a bit broken.
27403
27404 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27405
27406 * g-spipat.ads, g-spipat.adb: New interface for Get_String
27407 Minor reformatting (function specs)
27408
27409 * g-spitbo.adb: New interface for Get_String
27410
27411 * g-spitbo.ads: Minor reformatting
27412
27413 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27414
27415 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27416
274172005-03-15 Javier Miranda <miranda@adacore.com>
27418 Robert Dewar <dewar@adacore.com>
27419 Thomas Quinot <quinot@adacore.com>
27420 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27421
27422 * atree.ads, atree.adb: Add support for Elist24 field
27423
27424 * atree.h: Fix wrong definition of Field27
27425 Add support for Elist16 field
27426 Add support for Elist24 field
27427
27428 * einfo.ads, einfo.adb (Abstract_Interfaces,
27429 Set_Abstract_Interfaces): New subprograms.
27430 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27431 subprograms.
27432 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27433 entities rather than a single node.
27434 (Is_Interface, Set_Is_Interface): New subprogram
27435 (First_Tag_Component): New syntesized attribute
27436 (Next_Tag_Component): New synthesized attribute
27437 (Write_Entity_Flags): Upgraded to write Is_Interface
27438 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27439 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27440 (Task_Body_Procedure): New subprogram to read this attribute.
27441 (Set_Task_Body_Procedure): New subprogram to set this attribute.
27442 (Has_Controlled_Component): Now applies to all entities.
27443 This is only a documentation change, since it always worked to apply
27444 this to other than composite types (yielding false), but now this is
27445 official.
27446 Update documentation on Must_Be_Byte_Aligned for new spec
27447
27448 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27449 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27450 uses of the Access_Disp_Table attribute to reference the first dispatch
27451 table associated with a tagged type. As
27452 part of the implementation of abstract interface types,
27453 Access_Disp_Table has been redefined to contain a list of dispatch
27454 tables (rather than a single dispatch table).
27455 Similarly, upgrade all the references to Tag_Component by the
27456 new attribute First_Tag_Component.
27457 (Find_Inherited_TSS): Moved to exp_tss.
27458 Clean up test in Expand_N_Object_Declaration for cases
27459 where we need to do a separate assignment of the initial value.
27460 (Expand_N_Object_Declaration): If the expression in the
27461 declaration of a tagged type is an aggregate, no need to generate an
27462 additional tag assignment.
27463 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27464 is to be deleted.
27465 Bit packed array ops are only called if operands are known to be
27466 aligned.
27467 (Component_Equality): When returning an N_Raise_Program_Error statement,
27468 ensure that its Etype is set to Empty to avoid confusing GIGI (which
27469 expects that only expressions have a bona fide type).
27470 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27471 determine the amount of data to be copied.
27472
27473 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27474 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27475 INTERFACE_TYPE_DEFINITION ::=
27476 [limited | task | protected | synchronized] interface
a1286ef5 27477 [AND interface_list]
4f51c6e7
AC
27478
27479 * par-ch3.adb (P_Type_Declaration): Modified to give support to
27480 interfaces.
27481 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27482 interfaces.
27483 (P_Interface_Type_Definition): New subprogram that parses the new
27484 syntax rule of Ada 2005 interfaces
27485 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27486 messages by the correct RENAMES (quotes removed).
27487
27488 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27489 attribute First_Tag_Component.
27490
27491 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27492 (Interface_List, Set_Interface_List): New subprograms.
27493 (Interface_Present, Set_Interface_Present): New subprograms.
27494 (Limited_Present, Set_Limited_Present): Available also in derived
27495 type definition nodes.
27496 (Protected_Present, Set_Protected_Present): Available also in
27497 record type definition and
27498 derived type definition nodes.
27499 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27500 (Task_Present, Set_Task_Present): New subprogram.
27501 (Task_Body_Procedure): Removed.
27502 (Set_Task_Body_Procedure): Removed.
27503 These subprogram have been removed because the attribute
27504 Task_Body_Procedure has been moved to the corresponding task type
27505 or task subtype entity to leave a field free to store the list
27506 of interfaces implemented by a task (for AI-345)
27507 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27508 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27509 expression flag Do_Range_Check
27510 (Exception_Junk): Change to Flag7 to accomodate above change
27511 (Box_Present, Default_Name, Specification, Set_Box_Present,
27512 Set_Default_Name, Set_Specification): Expand the expression
27513 "X in N_Formal_Subprogram_Declaration" into the corresponding
27514 two comparisons. Required to use the csinfo tool.
27515
27516 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27517 "with string" given.
27518
a1286ef5
ZW
27519 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27520 expression given.
4f51c6e7
AC
27521
27522 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27523 in 2005 mode
27524
27525 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27526 attribute Task_Body_Procedure rather than the old semantic field that
27527 was available in the task_type_declaration node.
27528
27529 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27530 interface type definitions.
27531 (P_Formal_Derived_Type_Definition): Modified to handle the list of
27532 interfaces.
27533
27534 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27535 task type declaration.
27536 (P_Protected): Modified to handle the list of interfaces in a
27537 protected type declaration.
27538
275392005-03-15 Doug Rupp <rupp@adacore.com>
27540 Vincent Celier <celier@adacore.com>
27541
27542 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27543 (Gen_Output_File_C): Likewise.
27544 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27545
275462005-03-15 Thomas Quinot <quinot@adacore.com>
27547
27548 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27549 is an N_Raise_Constraint_Error node, create a new copy of it without
27550 going through a call to Duplicate_Subexpr.
27551
275522005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27553 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27554 Nicolas Setton <setton@adacore.com>
27555 Ed Schonberg <schonberg@adacore.com>
27556
27557 PR ada/19900
27558 PR ada/19408
27559 PR ada/19140
27560 PR ada/20255
4f51c6e7
AC
27561 * decl.c (gnat_to_gnu_field): Reject aliased components with a
27562 representation clause that prescribes a size not equal to the rounded
27563 size of their types.
27564 (gnat_to_gnu_entity, case E_Component): Always look at
27565 Original_Record_Component if Present and not the entity.
27566 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27567 of tagged extension types by not making field for components that are
27568 inside the parent.
27569 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27570 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27571 expression to the type of the object when the object is constant.
27572 Reverse defer_debug_incomplete_list before traversing it, so that trees
27573 are processed in the order at which they were added to the list. This
27574 order is important when using the stabs debug format.
27575 If we are deferring the output of debug information, also defer this
27576 output for a function return type.
27577 When adding fields to a record, prevent emitting debug information
27578 for incomplete records, emit the information only when the record is
27579 complete.
27580 (components_to_record): New parameter defer_debug.
27581 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27582 (gnat_to_gnu_field_decl): New function.
27583 (substitution_list, annotate_rep): Call it.
27584 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27585 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27586 No longer update discriminants to not be a COMPONENT_REF.
27587 (copy_alias_set): Strip padding from input type; also handle
27588 unconstrained arrays properly.
27589
27590 * gigi.h (write_record_type_debug_info): New function.
27591 Convert to use ANSI-style prototypes. Remove unused
27592 declarations for emit_stack_check, elab_all_gnat and
27593 set_second_error_entity.
27594 (gnat_to_gnu_field_decl): New decl.
27595
27596 * utils.c (write_record_type_debug_info): New function.
27597 (finish_record_type): Delegate generation of debug information to
27598 write_record_type_debug_info.
27599 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27600 (update_pointer_to): Fix pasto.
27601 (convert) <UNION_TYPE>: Accept slight type variations when
27602 converting to an unchecked union type.
27603
27604 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27605 replace the N_Freeze_Entity with a null statement.
27606
27607 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27608 within a constrained subcomponent of an enclosing record, place the
27609 freeze nodes in the scope stack entry for the enclosing record.
27610 (Undelay_Type): New Subprogram.
27611 (Set_Small_Size): Pass T, the type to modify; all callers changed.
27612 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27613 within records; allow them to have freeze nodes if their base types
27614 aren't frozen yet.
27615
017205f5
EB
27616 * exp_util.adb (Remove_Side_Effects): Properly test for
27617 Expansion_Delayed and handle case when it's inside an
27618 N_Qualified_Expression.
27619
4f51c6e7
AC
27620 * sem_ch3.adb (Derived_Type_Declaration): New predicate
27621 Comes_From_Generic, to recognize accurately that the parent type in a
27622 derived type declaration can be traced back to a formal type, because
27623 it is one or is derived from one, or because its completion is derived
27624 from one.
27625 (Constrain_Component_Type): If component comes from source and has no
27626 explicit constraint, no need to constrain in in a subtype of the
27627 enclosing record.
27628 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27629 Minor change to propagate Is_Ada_2005 flag
27630
27631 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27632 Expansion_Delayed is False.
27633 (assoc_to_constructor): Ignore fields that have a
27634 Corresponding_Discriminant.
27635 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27636 function returns "by target", dereference the target pointer using the
27637 type of the actual return value.
27638 <all>: Be prepared for a null gnu_result.
27639 (processed_inline_subprograms): Check flag_really_no_inline
27640 instead of flag_no_inline.
27641 (set_second_error_entity): Remove unused function.
27642 (gnat_to_gnu, case N_Selected_Component): Call
27643 gnat_to_gnu_field_decl.
27644 (assoc_to_constructor): Likewise.
27645
276462005-03-15 Robert Dewar <dewar@adacore.com>
27647 Ed Schonberg <schonberg@adacore.com>
27648 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27649
4f51c6e7
AC
27650 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27651 Must_Be_Byte_Aligned for cases where we do not need to use a
27652 System.Pack_nn unit.
27653
27654 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27655 as procedures.
27656 Needed now that we do some processing for IN parameters as well. This
27657 may well fix some unrelated errors.
27658 (Expand_Call): Handle case of unaligned objects (in particular those
27659 that come from packed arrays).
27660 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27661 renamed entity is an inherited operation, re-expand the call using the
27662 original operation, which is the one to call.
27663 Detect attempt to inline parameterless recursive subprogram.
27664 (Represented_As_Scalar): Fix to work properly with private types
27665 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27666 accurate estimate. Yields True in far fewer cases than before,
27667 improving the quality of code that depends on this test.
4f51c6e7
AC
27668
27669 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27670 over both visible and private declarations to remove them from tree,
27671 and mark subprograms declared in package as eliminated, to prevent
27672 spurious use in subsequent compilation of generic units in the context.
27673
27674 * exp_util.ads: Minor cleanup in variable names
27675
27676 * sem_eval.ads, sem_eval.adb: Minor reformatting
27677 (Compile_Time_Known_Bounds): New function
27678
276792005-03-15 Ed Schonberg <schonberg@adacore.com>
27680
27681 * exp_ch7.adb (Convert_View): Use base types of underlying types when
27682 determining whether an unchecked conversion is needed for the argument
27683 of an initialization call.
27684
276852005-03-15 Ed Schonberg <schonberg@adacore.com>
27686
27687 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27688 that appears in the instantiation rather than the internal subtype
27689 generated in the wrapper package, to avoid anomalies in gigi when the
27690 target is derived from a private type whose full view is an access type.
27691
276922005-03-15 Robert Dewar <dewar@adacore.com>
27693
27694 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27695 not needed.
27696 Add documentation to replace the use of this flag
27697 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27698 the x86_64.
27699
277002005-03-15 Thomas Quinot <quinot@adacore.com>
27701
27702 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27703 here from exp_attr so it can be shared between exp_attr and exp_dist.
27704 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27705 all TSS names, not a subset thereof, and the previous name introduced
27706 an unnecessarily confusion that a distinction might exist between
27707 "OK" TSS names and some "not OK" TSS names.
27708
277092005-03-15 Doug Rupp <rupp@adacore.com>
27710
27711 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27712 Command_Name.
27713
277142005-03-15 Pascal Obry <obry@adacore.com>
27715 Eric Botcazou <ebotcazou@adacore.com>
27716
27717 PR ada/20226
27718 PR ada/20344
4f51c6e7
AC
27719 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27720 when IN_RTS. This is to work around a bootstrap path problem.
27721
27722 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27723 table and pass it to __gnat_install_SEH_handler().
27724 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27725
27726 * lang.opt: Fix specification of -fRTS=.
27727
277282005-03-15 Doug Rupp <rupp@adacore.com>
27729 Bernard Banner <banner@adacore.com>
27730 Vincent Celier <celier@adacore.com>
27731 Arnaud Charlet <charlet@adacore.com>
27732
27733 PR ada/6852
27734 This change works fine when gnatlib is built from the gcc directory,
27735 but does not work when using the libada Makefile, since GCC_FOR_TARGET
27736 is not passed to ada/Makefile.in, so more work is needed by a
27737 Makefile/configure expert.
27738
27739 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27740 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27741 Setup gnatlink switch -M for x86_64 linux, as it is already setup
27742 for Linux x86.
27743 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27744 Run ranlib on libgccprefix.a
27745 Define PREFIX_OBJS for Darwin, to build libgccprefix.
27746 (ADA_INCLUDE_SRCS): Split Ada packages.
27747
277482005-03-15 Robert Dewar <dewar@adacore.com>
27749
27750 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27751
27752 * impunit.adb: Add GNAT.UTF_32
27753
27754 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27755
27756 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27757 now uses GNAT.UTF_32).
27758
27759 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27760 capabilities for categorizing characters using Unicode categories
27761
277622005-03-15 Ed Schonberg <schonberg@adacore.com>
27763
27764 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27765 instantiation that has been rewritten as a package body, retrieve spec
27766 to generate proper name for implicit_with_clause.
27767 (Install_Parents): Recognize a parent that is an instantiation but has
27768 been rewritten as a package declaration during analysis.
27769
277702005-03-15 Javier Miranda <miranda@adacore.com>
27771 Ed Schonberg <schonberg@adacore.com>
27772
27773 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27774 parameter reported some error we immediately return. This improves the
27775 behaviour of the frontend in case of errors.
27776 (Install_Parent, Remove_Parent): Introduce new flag
27777 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27778 ancestor of a generic child unit, when the child is being instantiated.
27779 (Inline_Instance_Body): If we are compiling the private
27780 part or the body of a child unit, restore the proper visibility of the
27781 parents after compiling the instance body.
27782
277832005-03-15 Ed Schonberg <schonberg@adacore.com>
27784 Javier Miranda <miranda@adacore.com>
27785
27786 PR ada/15608
27787 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27788 of a private type, in which case it is underlying_type that denotes
27789 the proper task. Also modified to use the new entity attribute
27790 that is directly available in the task type and task subtype entities
27791 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27792 arrays when other dimensions than the first are constrained by
27793 discriminants of an enclosing record.
27794 (Insert_Explicit_Dereference): If the prefix is an indexed component or
27795 a combination of indexed and selected components, find ultimate entity
27796 and generate the appropriate reference for it, to suppress spurious
27797 warnings.
27798 (Note_Possible_Modification): If an entity name has no entity, return.
27799 (Is_Variable): A function call never denotes a variable.
27800 (Requires_Transient_Scope): For record types, recurse only on
27801 components, not on internal subtypes that may have been generated for
27802 constrained components.
27803
278042005-03-15 Ed Schonberg <schonberg@adacore.com>
27805
27806 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27807 Eliminated as candidates for resolution. Both efficient, and avoids
27808 anomalies with operators declared in deleted code.
27809 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27810 expansion is disabled (as when compiling a generic) to prevent spurious
27811 warnings on prefixes of selected components.
27812
278132005-03-15 Ed Schonberg <schonberg@adacore.com>
27814
27815 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27816 attached to a list before checking whether it appears in the private
27817 declarations of the current package.
27818 (Make_Inequality_Operator): Insert declaration in proper declarative
27819 list rather than just setting the Parent field, so that
27820 Is_Private_Declaration can handle it properly.
27821
278222005-03-15 Ed Schonberg <schonberg@adacore.com>
27823
27824 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27825 a renaming a body, check that the renamed subprogram in not intrinsic.
27826 (Find_Direct_Name): If several use_visible entities hide
27827 each other, and the context is a predefined file compiled through
27828 rtsfind, keep only the entity that comes from a predefined file.
27829
278302005-03-15 Geert Bosch <bosch@adacore.com>
27831
27832 * s-fatgen.adb (Valid): Extend special exceptions to account for long
27833 long float padding to also cover AMD64 and IA64.
27834
278352005-03-15 Gary Dismukes <dismukes@adacore.com>
27836
27837 * s-imgwch.adb: Add with and use of Interfaces.
27838 (Img_Wide_Character): Change type of Val to Unsigned_16.
27839 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27840
278412005-03-15 Matthew Gingell <gingell@adacore.com>
27842
27843 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27844
278452005-03-15 Robert Dewar <dewar@adacore.com>
27846
27847 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27848
27849 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27850
27851 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27852
278532005-03-15 Robert Dewar <dewar@adacore.com>
27854
27855 * s-bitops.adb, s-bitops.ads,
27856 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27857 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27858 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27859 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27860 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27861 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27862 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27863 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27864 reformatting.
27865
278662005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27867
27868 * utils2.c (build_binary_op): Fix typo.
27869
278702005-03-15 Doug Rupp <rupp@adacore.com>
27871
27872 * s-crtl.ads (popen,pclose): New imports.
27873
278742005-03-15 Cyrille Comar <comar@adacore.com>
27875
27876 * comperr.adb (Compiler_Abort): remove references to obsolete
27877 procedures in the bug boxes for various GNAT builds.
27878
278792005-03-15 Vincent Celier <celier@adacore.com>
27880
27881 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27882
278832005-03-15 Geert Bosch <bosch@adacore.com>
27884 Arnaud Charlet <charlet@adacore.com>
27885 Robert Dewar <dewar@adacore.com>
27886 Cyrille Comar <comar@adacore.com>
27887 Sergey Rybin <rybin@adacore.com>
27888
27889 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27890 too specific and long-winded to be appropriate for the GNAT User's
27891 Guide.
27892 Warn about use of GCC switches not documented in the GNAT User's Guide,
27893 as these may cause generated code to not conform to Ada semantics.
27894 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27895 Add documentation for -gnat95 and -gnat05 switches
27896 Remove paragraph documenting obsolete way to refer to third party
27897 libraries.
27898 Add a few references to Ada_05 that were missing.
27899 Update documentation on -gnatZ/-gnatL.
27900 Document limitation when using -m64 under Solaris.
27901 Change the "Name Casing" subsection of the pretty-printer section
27902 according to the changes in the dictionary processing.
27903
27904 * gnat_rm.texi: Document the Ada_05 pragma.
27905 Section on record representation clauses describes the new more
27906 relaxed rules about placement of large packed bit array components.
27907 Add documentation of GNAT.UTF_32
27908
9e94c78f 279092005-03-12 Daniel Berlin <dberlin@dberlin.org>
c75ab022
DB
27910
27911 * misc.c (gnat_post_options): Turn off structural
27912 aliasing for now.
4f51c6e7 27913
9e94c78f 279142005-03-08 Laurent Guerby <laurent@guerby.net>
391bdf45
LG
27915
27916 * system-linux-sparc.ads: Fix typo in previous commit.
27917
9e94c78f
EB
279182005-03-07 James A. Morrison <phython@gcc.gnu.org>
27919 Laurent Guerby <laurent@guerby.net>
fe8a06f2 27920
a1286ef5
ZW
27921 PR ada/20035
27922 * system-linux-sparc.ads: New.
27923 * Makefile.in: Add sparc linux entry.
fe8a06f2 27924
a1286ef5 279252005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
9811fd17 27926
a1286ef5 27927 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
9811fd17
DS
27928 parameters as unused.
27929
5395b47b
NN
279302005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
27931 Partial merge from libada-gnattools-branch:
27932
27933 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
a1286ef5
ZW
27934 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27935 into code in gnattools/Makefile.in. Remove direct dependencies on
27936 stamp-tools by tools clauses.
5395b47b 27937 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
a1286ef5 27938 * config-lang.in: Add gnattools to $lang_dirs.
5395b47b 27939
4fa0972f
AP
279402005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
27941
27942 PR ada/19942
2532808d 27943 * utils.c (gnat_type_for_mode): Return null instead of ICE because
a1286ef5 27944 we asked for an unknown mode.
4fa0972f 27945
bd0b34a8
RH
279462005-02-12 Richard Henderson <rth@redhat.com>
27947
27948 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27949 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27950
0ebbef54
AJ
279512005-02-10 Andreas Jaeger <aj@suse.de>
27952
27953 * init.c (__gnat_initialize): Mark parameter as unused.
27954
fc5a191d
AC
279552005-02-09 Doug Rupp <rupp@adacore.com>
27956
27957 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27958 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27959
279602005-02-09 Doug Rupp <rupp@adacore.com>
27961
27962 * gnatchop.adb (dup, dup2),
27963 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27964
27965 * gnatlbr.adb (mkdir),
27966 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
27967
27968 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27969
279702005-02-09 Doug Rupp <rupp@adacore.com>
27971
27972 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27973
279742005-02-09 Robert Dewar <dewar@adacore.com>
27975 Thomas Quinot <quinot@adacore.com>
27976 Javier Miranda <miranda@adacore.com>
27977 Pascal Obry <obry@adacore.com>
27978 Ed Schonberg <schonberg@adacore.com>
27979 Doug Rupp <rupp@adacore.com>
27980 Gary Dismukes <dismukes@adacore.com>
27981 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27982
27983 * g-zstspl.ads: New file.
27984
27985 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27986
27987 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27988 Ada 95 mode
27989 Add definition of Wide_Wide_Space for AI-285
27990
27991 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27992 interface (to support Ada 95 and Ada 2005 units).
27993 Add Unbounded_IO files
27994 Add entries for Wide_Wide packages for AI-285
27995 Add list of containers packages to Ada 2005 unit list
27996
27997 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27998 support new Unbounded_IO package cleanly.
27999
28000 * g-utf_32.ads, g-utf_32.adb: New files.
28001
28002 * Makefile.rtl: Add entry for g-utf_32
28003 Add new files for Unbounded_IO
28004 Adjust make file for new AI-285 wide wide packages
28005 Add AI-302 containers to the run time.
28006
28007 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
28008 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
28009 subprograms for AI-301.
28010
28011 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
28012
28013 * a-stunau.ads: Minor comment correction
28014
28015 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
28016 etc.
28017 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
28018 (Check_RPC): Update to match changes in expanded code.
28019 Clean up unused entity.
28020
28021 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
28022 was not taken into account.
28023 This includes proper initialization with Normalize_Scalars.
28024 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
28025 normalize scalars cases (particularly the latter) to do a better job
28026 of finding invalid representations.
28027
28028 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
28029
28030 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
28031 used
28032
28033 * exp_dist.adb: Add support for wide wide character type
28034 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
28035 private part, generate stub bodies at the end of the private part,
28036 not the visible part.
28037 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
28038 PolyORB support.
28039 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
28040 generic wrapper to execute final processing after completing the
28041 expansion of the RPC receiver for an RACW.
28042
28043 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
28044 packages and attributes.
28045 (Preset_Names): Addition of the new reserved words of Ada 2005,
28046 that is interface, overriding and synchronized.
28047 (Get_Pragma_Id): Give support to the use of the new reserved word
28048 "interface" as a pragma name.
28049 (Is_Pragma_Name): Give support to the use of the new reserved word
28050 "interface" as a pragma name.
28051 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
28052 attribute implementation.
28053
28054 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
28055 checks to entities that are output parameters of Asm operations.
28056 Handle the Stream_Size attribute.
28057 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
28058
28059 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
28060
28061 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
28062 for second parameter being 0.0.
28063 Add support for wide wide character type.
28064 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
28065
28066 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
28067 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
28068 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
28069 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
28070 for wide wide character cases.
28071
28072 * cstand.adb: Create entities for Wide_Wide_Character and
28073 Wide_Wide_String.
28074
28075 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
28076 accordance with AI-258.
28077 Add new declarations for 16/32 bit C character types (Part of AI285)
28078
28079 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
28080 (Obsolescent_Warning): New field
28081 (Rep_Clause): New local subprogram used to share code. Returns the rep
28082 clause for which the name is given in parameter.
28083 (Has_Stream_Size_Clause): New routine.
28084 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28085 (Address_Clause): Implementation is now using Rep_Clause.
28086 (Alignment_Clause): Idem.
28087 (Size_Clause): Idem.
28088
28089 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28090 entity in non-Ada 2005 mode and generate warning.
28091
28092 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28093 (Prag): Code cleanup. Remove old gnat pragma "overriding"
28094
28095 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28096 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28097 on the named unit if the pragma is not in the current compilation unit,
28098 so that elaboration calls in the current unit can set up an elaboration
28099 dependency on the named unit, as needed.
28100 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28101 subprogram as well as for subprograms declared within a package.
28102 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28103 pragma overriding.
28104
28105 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28106 to z) to avoid some instances of duplication for Wide_Wide packages.
28107
28108 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28109 characters.
28110
28111 * scn.adb: Char_Literal_Value field is now a Uint
28112
28113 * scng.adb: Significant rewrite to handle new Ada 2005 features
28114 allowing wide and wide wide characters in program text, e.g. for
28115 identifiers, as described in AI-285.
28116 (Set_Reserved): New procedure, makes setting up keywords cleaner.
28117 (Initialize_Scanner): Register the new reserved words of Ada 2005.
28118 (Scan): Give support to the new reserved words.
28119
28120 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28121 warning notifying that interface, overriding, and synchronized are
28122 new reserved words.
28123 (P_Pragma): Allow the use of the new reserved word "interface" as
28124 a pragma name.
28125
28126 * gnatls.adb, gnatbind.adb,
28127 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28128 identifiers named "interface" to "SAL_Interface".
28129
28130 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28131 (Structured Exception handling).
28132 (Gen_Main_C): Idem.
28133
a1286ef5 28134 * bindgen.adb:
fc5a191d
AC
28135 (Gen_Main_Ada): Set the default exit code if specified.
28136 (Gen_Main_C): Likewise.
28137 Part of *DC20-006.
28138 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28139 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28140
28141 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28142 new -Xnnn switch.
28143
28144 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28145 has a collision with the new Ada 2005 "interface" reserved word.
28146
28147 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28148 generate a warning notifying that interface, overriding, and
28149 synchronized are new reserved words.
28150
28151 * scans.ads (Token_Type): Addition of the tokens corresponding to the
28152 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28153 and Tok_Synchronized.
28154
28155 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28156 "dispatching" rather than "primitive" operations, since dispatching
28157 calls are now allowed to abstract formal subprograms (which are not
28158 primitive).
28159 Char_Literal_Value field is now a Uint
28160 (Resolve_Slice): If the prefix is an access to an unconstrained array,
28161 compute the actual subtype of the designated object to impose the proper
28162 index constraints.
28163 (Resolve_Selected_Component): Do not insert an access check if the
28164 prefix is an access type: such a node is expanded into an explicit
28165 dereference, on which the access check is performed anyway. Removes
28166 expensive duplicate checks.
28167 (Resolve_Call): Use new flag Is_Obsolescent and field
28168 Obsolescent_Warning so that pragma Obsolescent works on library
28169 subprograms.
28170 Add support for wide wide character type
28171 (Resolve_Allocator): Replace the error message on wrong null-exclusion
28172 value by a warning message.
28173 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28174 as fixed-point, and one of the operands is non-static and universal, it
28175 can only be an illegal exponentiation operation, in which case there is
28176 no real value to retrieve.
28177
28178 * exp_strm.adb: Add support for wide wide character type
28179 (Build_Elementary_Input_Call): Compute the size of the stream element by
28180 querying the rep chain to find the Stream_Attribute attribute value.
28181 (Build_Elementary_Write_Call): Ditto.
28182
28183 * sem_aggr.adb: Char_Literal_Value field is now a Uint
28184 Add support for wide wide character type
28185 Replace the error messages on wrong null-exclusion value by warnings
28186 as described in Ada 2005.
28187 (Resolve_Extension_Aggregate): Document the fact that the error
28188 message on class-wide expressions in extensions aggregates.
28189
28190 * sem_case.adb: Add support for wide wide character type
28191
28192 * sem_ch13.adb: Add support for wide wide character type
28193 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28194
28195 * sem_ch3.adb: Add support for wide wide character type
28196 (Process_Subtype): If constraint is illegal for the type, set Ekind of
28197 now-useless Itype, to prevent cascaded errors on a compiler built
28198 without -gnatp.
28199
28200 * sem_ch8.adb: Add with and use of Sem_Disp.
28201 (Analyze_Subprogram_Renaming): Replace unclean uses of
28202 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28203 of Corresponding_Spec to Empty).
28204 (Attribute_Renaming): Replace use of Corresponding_Spec with
28205 Corresponding_ Formal_Spec and simplify condition.
28206 (Use_One_Package): Check that scope of homonym of identifier is defined,
28207 before checking whether it is a wrapper package.
28208 Add support for wide wide character type
28209
28210 * sem_eval.adb: Add support for wide wide character type.
28211 (Eval_Arithmetic_Op): Check for compile time known signed integer
28212 overflow in the non-static case.
28213 (Subtypes_Statically_Match): A formal scalar type and its base type do
28214 not statically match.
28215
28216 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28217 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28218 subtype).
28219 (Unit_Declaration_Node): Ditto.
28220 (Is_Variable_Prefix): For the case of an indexed component whose prefix
28221 has a packed array type, the prefix has been rewritten into a type
28222 conversion. Determine variable-ness from the converted expression.
28223 Handle wide wide character cases.
28224
28225 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28226
28227 * stringt.ads, stringt.adb: Handle full UTF-32 range.
28228 Remove ["0A"] from comment, since it can look like a line terminator.
28229 Currently we don't permit this, but this is under discussion by the
28230 ARG, and it is easy enough to use a different example.
28231
28232 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28233 handling UTF-32 encoding for wide wide character.
28234 Implement new brackets coding ["hhhhhhhh"]
28235 Add UTF-8 encodings for full UTF-32 range
28236
28237 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28238
28239 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28240 bit range Add full UTF-32 support.
28241 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28242 notify that constraint error will be raised at run-time
28243 because a null value is assigned to a null-excluding object.
28244 Remove some obsolete declarations and make Char_Code
28245 unsigned.
28246
28247 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28248 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28249 Rcheck subprograms.
28250
28251 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28252 wrong null-exclusion value by a warning message.
28253 (Enable_Range_Check): Do range check if the prefix is an
28254 explicit dereference whose designated object is an unconstrained array.
28255 Current algorithm for removing duplicate checks is over-eager in this
28256 case.
28257
28258 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28259 null-exclusion value by a warning message
28260
28261 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28262 completely. Add support for Uint2 field
28263
28264 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28265 exp_prag.adb: Char_Literal_Value field is now a Uint.
28266
28267 * exp_util.adb (Insert_Actions): Replace
28268 N_Formal_Subprogram_Declaration by
28269 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28270 Char_Literal_Value field is now a Uint.
28271
28272 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28273 defined for subprogram renaming declarations. When set, the field
28274 indicates the defining entity of a corresponding formal subprogram
28275 when the renaming corresponds to a formal subprogram association in an
28276 instantiation.
28277 (Set_Corresponding_Formal_Spec): New procedure to return
28278 Corresponding_Formal_Spec field.
28279 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28280 (which is now a subtype).
28281 Char_Literal_Value field is now a Uint
28282
28283 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28284 pointer to the base of the dispatch table.
28285 Minor changes to comments.
28286 (Controlling_Type): New function for determining the tagged type
28287 associated with a tagged primitive subprogram.
28288 (Expand_Dispatching_Call): Add support for a controlling actual that is
28289 directly a value of type Ada.Tag rather than a tagged object.
28290
28291 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28292 describing the new layout.
28293 (Dispatch_Table): The expander computes the actual array size, allocates
28294 the Dispatch_Table record accordingly, and generates code that displaces
28295 the base of the record after the Typeinfo_Ptr component. The access to
28296 these components is done by means of local functions.
28297 (Offset_To_Top): New function.
28298 (Typeinfo_Ptr): New function.
28299 (Get_TSD): Modified to access the new position of the TSD.
28300 (Set_TSD): Modified to save the TSD in its new position.
28301
28302 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28303 case of formal abstract subprograms. Add check and message for -gnat05.
28304 Update comments.
28305
28306 * sem_ch12.adb: Add with and use for Sem_Disp.
28307 (Analyze_Associations): Minor change from "=" to "in" for use of
28308 N_Formal_Subtype_Declaration (which is now a subtype).
28309 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28310 N_Formal_Subtype_Declaration (which is now a subtype).
28311 (Analyze_Formal_Subprogram): Add handling for
28312 N_Formal_Abstract_Subprogram, marking the formal as abstract and
28313 dispatching, setting the controlling status of the formal parameters
28314 and result, and issuing an error if there is no controlling type for
28315 the formal subprogram.
28316 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28317 which is an unclean use of that field, we set the new field
28318 Corresponding_Formal_Spec to make the formal subprogram available to
28319 processing in Analyze_Subprogram_Declaration.
28320 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28321 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28322 Constrained, so that it is is does not statically match its anonymous
28323 base type.
28324
28325 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28326 abstract formal subprograms in error check for functions returning
28327 abstract types. Set scope of new designator for
28328 a parameterless subprogram, so that it is available when checking the
28329 body for nested subprograms, before full analysis of said body.
28330 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28331 subprogram only if inner one comes from source.
28332 (Analyze_Function_Call): If the call is given in object notation, the
28333 analysis of the name rewrites the node and analyzes it with the proper
28334 argument list. After analyzing the name, if the call has been rewritten
28335 and the result type is set, no further analysis is needed.
28336 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28337 mark in function specification, in a context where the formals are
28338 visible and hide outer homographs.
28339
28340 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28341 as the tagged type for the cases of abstract formal subprograms and
28342 renamings of those. Clean up spec comments.
28343 (Check_Dispatching_Context): Add error message to indicate "abstract
28344 procedure", covering the case of a call to a formal abstract procedure
28345 that has statically tagged operands.
28346 (Check_Dispatching_Call): Check for the case of an actual given by
28347 a tag-indeterminate function call whose type is an ancestor of the
28348 containing call's associated tagged type. This situation can occur
28349 for inherited primitives with function defaults. In this case we
28350 use the tagged type's tag directly as the controlling argument for
28351 the calls.
28352 (Expand_Call): Name change on call to Expand_Dispatch_Call.
28353
28354 * sprint.adb (Sprint_Node_Actual): Split
28355 N_Formal_Subprogram_Declaration into two alternatives for the new
28356 cases N_Formal_Abstract_Subprogram_Declaration and
28357 N_Formal_Concrete_Subprogram_Declaration.
28358 Char_Literal_Value field is now a Uint.
28359
28360 * trans.c: Get rid of junk Uint2 reference.
28361 Char_Literal_Value field is now a Uint.
28362 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28363 (gigi): Correct third arg to gimplify_body.
28364
28365 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28366 (TYPE_LANG_FLAG_0): Check for record or union.
28367
28368 * treepr.adb: Char_Literal_Value field is now a Uint
28369
28370 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28371 UI_From_CC.
28372
28373 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28374 Add full UTF-32 support
28375 Char_Code is now 32 bits
28376
28377 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28378 wide character UTF_32 line terminators.
28379 Initialize Main_Source_File to avoid error when no main
28380 source is loaded.
28381
28382 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28383 (Main_Source_File) when no main source has been loaded, to avoid
28384 potential crash.
28385
283862005-02-09 Robert Dewar <dewar@adacore.com>
28387
a1286ef5
ZW
28388 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28389 Fix name of Set routine
fc5a191d
AC
28390
28391 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28392 fixed packages.
28393
28394 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28395 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28396 fixed packages
28397
28398 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28399 forms of Get_Line subprograms for AI-301.
28400
28401 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28402 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28403 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28404 a-stwima.ads: Minor reformatting.
28405
284062005-02-09 Doug Rupp <rupp@adacore.com>
28407 Thomas Quinot <quinot@adacore.com>
28408
28409 * adaint.c, adaint.h
28410 [VMS] (to_ptr32): New function.
28411 (MAYBE_TO_PTR32): New macro.
28412 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28413 for pointer size.
28414 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28415 [VMS] (#define fork()): Remove since unneccessary.
28416 (__gnat_set_close_on_exec): New routine to support
28417 GNAT.OS_Lib.Set_Close_On_Exec.
28418
28419 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28420 the parent side as close-on-exec so that they are not inherited by the
28421 child.
28422
28423 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28424 set or clear the FD_CLOEXEC flag on a file descriptor.
28425
284262005-02-09 Eric Botcazou <ebotcazou@adacore.com>
28427 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28428
6f7f72f9 28429 PR ada/19386
a1286ef5 28430 * decl.c:
fc5a191d
AC
28431 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28432 on the field if Pragma Component_Alignment (Storage_Unit).
28433 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28434 side-effects as if it were a constant; also make SAVE_EXPR to protect
28435 side-effects.
28436 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28437 UNION_TYPE.
28438 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28439 (components_to_record): Test it.
28440 Fix improper usage of REFERENCE_CLASS_P.
28441
28442 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28443 RECORD_TYPE.
28444
28445 * utils2.c: Minor reformatting.
28446
28447 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28448 handle other cases like RECORD_TYPE.
28449
28450 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28451
284522005-02-09 Ed Schonberg <schonberg@adacore.com>
28453
28454 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28455 component of an array of arrays in an assignment context, and the
28456 aggregate has component associations that require sliding on
28457 assignment, force reanalysis of the aggregate to generate a temporary
28458 before the assignment.
28459 (Must_Slide): Make global to the package, for use in Gen_Assign.
28460
284612005-02-09 Ed Schonberg <schonberg@adacore.com>
28462
28463 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28464 unchecked union with no inferable discriminants, return a
28465 Raise_Program_Error node, rather than inserting it at the point the
28466 type is frozen.
28467 (Expand_Record_Equality, Component_Equality): Handle properly the case
28468 where some subcomponent is an unchecked union whose generated equality
28469 code raises program error.
28470
284712005-02-09 Doug Rupp <rupp@adacore.com>
28472
28473 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28474 [VMS] (#define exit hack): Remove.
28475
284762005-02-09 Pascal Obry <obry@adacore.com>
9e94c78f 28477 Arnaud Charlet <charlet@adacore.com>
fc5a191d
AC
28478
28479 * init.c (__gnat_initialize): Add a new parameter eh which contains the
28480 address of the exception registration. The Win32 version of this
28481 routine calls __gnat_install_SEH_handler() to initialize the SEH
28482 (Structured Exception Handling) handler.
28483 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28484 SEH (Structured Exception Handling) now.
28485 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28486 (__gnat_initialize for ppc-vxworks): Adjust comments and the
28487 preprocessor condition protecting the call to the extra eh setup
28488 subprogram, which is only available for the ppc target.
28489 (__gnat_clear_exception_count): replaced reference to
28490 variable taskIdCurrent by call to taskIdSelf(), cleaner.
28491
28492 * seh_init.c: New file.
28493
28494 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28495 (GNATBIND_OBJS): Idem.
28496
28497 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28498 routine takes a new parameter (a pointer to the exception registration
28499 for the SEH (Structured Exception Handling) support.
28500
28501 * raise.h: (__gnat_install_SEH_handler): New prototype.
28502 Update copyright notice.
28503
28504 * s-tassta.adb (Task_Wrapper): Declare the exception registration
28505 record and initialize it by calling __gnat_install_SEH_handler.
28506
285072005-02-09 Vincent Celier <celier@adacore.com>
28508
28509 * make.adb (Gnatmake): Do not fail when the main project has no object
28510 directory.
28511
285122005-02-09 Doug Rupp <rupp@adacore.com>
28513
28514 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28515 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28516 [VMS]: Add translations for g-enblsp.adb.
28517
28518 * s-asthan-vms.adb: Removed.
28519 * s-asthan-vms-alpha.adb: Added.
28520
285212005-02-09 Pascal Obry <obry@adacore.com>
28522
28523 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28524 (LIBGNAT_OBJS): Add seh_init.o.
28525
285262005-02-09 Arnaud Charlet <charlet@adacore.com>
28527
28528 PR ada/16592
fc5a191d
AC
28529 * Makefile.in: Link all gnat tools with -static-libgcc, since
28530 -shared-libgcc is now used by default on some systems (e.g. linux with
28531 recent binutils).
28532 Remove references to Makefile.prolog/generic, no longer used.
28533
285342005-02-09 Vincent Celier <celier@adacore.com>
28535
28536 * prj-makr.adb (Process_Directory): Put file name in canonical case
28537 before matching against the patterns.
28538 If gnatname has been invoked as <prefix>-gnatname
28539 then invoke the compiler as <prefix>-gcc, not just "gcc".
28540
285412005-02-09 Ed Schonberg <schonberg@adacore.com>
28542
28543 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28544 with expansion disabled. The actual subtype is needed among other
28545 places when the selected component appears in the context of a loop
28546 bound, and denotes a packed array.
28547 (Operator_Check): Always use the first subtype in the
28548 error message, to avoid the appearance of internal base types.
28549 (Transform_Object_Operation): Copy each actual in full
28550 to the parameter associations of the constructed call, rather than
28551 using the shallow copy mechanism of New_Copy_List. This ensures that
28552 the chaining of named associations is done properly.
28553 (Complete_Object_Operation): Rewrite node, rather than
28554 replacing it, so that we can trace back to the original selected
28555 component.
28556
28557 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28558 and calls that use object notation, if the called function is not
28559 declared in a withed unit, place the elaboration constraint on the
28560 unit in the context that makes the function accessible.
28561 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28562 imposes an elaboration constraint between two packages.
28563
285642005-02-09 Ed Schonberg <schonberg@adacore.com>
28565
28566 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28567 views of a private type after handling its private dependents, to
28568 maintain proper stack discipline between entry and exit from the
28569 package.
28570
285712005-02-09 Cyrille Comar <comar@adacore.com>
28572
28573 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28574 Minor reformatting.
28575
285762005-02-09 Arnaud Charlet <charlet@adacore.com>
28577
28578 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28579 fields for foreign threads.
28580
285812005-02-09 Doug Rupp <rupp@adacore.com>
28582
28583 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28584 recursion warnings when compiled with -gnatdm.
28585
285862005-02-09 Robert Dewar <dewar@adacore.com>
28587
28588 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28589 Slight fix to documentation of -gnaty with no parameters
28590
28591 * xr_tabls.ads: Add ??? comment for missing overall comment
28592
28593 * xsinfo.adb: Make default file name be sinfo.h, since this is what
28594 we now use by default.
28595
28596 * xsnames.adb: Adjust end of file test to look for five space followed
28597 by '#' instead of six spaces. The format of xsnames.adb was modified
28598 in the last update.
28599
28600 * a-numeri.ads: Add reference to AI-388 for greek letter pi
28601 identifier.
28602
28603 * clean.adb: Minor reformatting.
28604
28605 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28606 gnatname.adb: Minor reformatting
28607 Add 2005 to copyright output when utility is run
28608
28609 * csets.adb: Eliminate obsolete comment
28610
28611 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28612 Update comments.
28613
28614 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28615
286162005-02-09 Sergey Rybin <rybin@adacore.com>
28617
28618 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28619 the difference between compact and incompact layout and add the record
28620 representation clause to the example illustrating different layouts.
28621 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28622 component clauses").
28623
286242005-02-09 Florian Villoing <villoing@adacore.com>
28625
28626 * gnat_ugn.texi: Fix typos.
28627 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28628 @file.
28629 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28630 in the generated documentation.
28631
286322005-02-09 Arnaud Charlet <charlet@adacore.com>
28633
28634 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28635 longer supported.
28636 Update linker wrapper when linking with non GNU C++.
28637
286382005-02-09 Pascal Obry <obry@adacore.com>
28639
a1286ef5 28640 * gnat_ugn.texi:
fc5a191d
AC
28641 Document the procedure to debug the DllMain routine on Windows.
28642 Add note about -funwind-tables and mixed Ada and C/C++ programming in
28643 ZCX mode.
28644 Document new BIND qualifer /RETURN_CODES=VMS.
28645
286462005-02-09 Ben Brosgol <brosgol@adacore.com>
28647
28648 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28649 Edited gnatmetric chapter
28650
286512005-02-09 Robert Dewar <dewar@adacore.com>
28652
a1286ef5 28653 * gnat_rm.texi:
fc5a191d
AC
28654 Changes to document new wide wide character support
28655 For AI-285
28656 Update documentation on Normalize_Scalars and Initialize_Scalars
28657
286582005-02-09 Pascal Obry <obry@adacore.com>
28659
28660 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28661
286622005-02-09 Jose Ruiz <ruiz@adacore.com>
28663
28664 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28665 from the VxWorks kernel) that is needed for getting the active
28666 priority of the different tasks.
28667
28668 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28669 Use a pragma Elaborate_Body in the spec file instead.
28670 Noticed by code reading.
28671
286722005-02-09 Thomas Quinot <quinot@adacore.com>
28673
28674 * exp_util.ads: Minor correction in comment.
28675
286762005-02-09 Arnaud Charlet <charlet@adacore.com>
28677
28678 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28679 since this procedure is now too complex to be worth inlining.
28680
c6a912da
RH
286812005-02-09 Richard Henderson <rth@redhat.com>
28682
28683 * utils.c (gnat_define_builtin): Remove.
28684 (gnat_install_builtins): Use build_common_builtin_nodes.
28685
4c2d6a70
AC
286862005-02-09 Arnaud Charlet <charlet@adacore.com>
28687
28688 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28689 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28690 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28691 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28692 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28693 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28694 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28695 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28696 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28697 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28698 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28699 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28700 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28701 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28702 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28703 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28704 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28705 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28706 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28707 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28708 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28709 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28710 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28711 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28712 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28713 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28714 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28715 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28716 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28717 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28718 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28719 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28720 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28721 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28722 library.
28723
9e94c78f 287242005-01-27 Laurent Guerby <laurent@guerby.net>
74a22497
LG
28725
28726 * Makefile.in: Fix a-intnam.ads from previous commit,
28727 add 2005 to copyright.
28728 * a-intman-rtems.ads: Renamed to...
28729 * a-intnam-rtems.ads:
28730
9e94c78f 287312005-01-27 Laurent Guerby <laurent@guerby.net>
7d921ba4
LG
28732
28733 * Makefile.in: Rename GNAT RTEMS specific files.
a1286ef5 28734 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
da8f5fd9 28735 5rosinte.ads, 5rparame.adb: Replaced by files below.
7d921ba4
LG
28736 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28737 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28738
9e94c78f
EB
287392005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
28740 Laurent Guerby <laurent@guerby.net>
9011d4bb
JS
28741
28742 PR ada/19488
28743 * 5rosinte.ads: Add No_Key constant.
a1286ef5
ZW
28744 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28745 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
9011d4bb 28746
9e94c78f 287472005-01-26 Laurent Guerby <laurent@guerby.net>
d487e3c1
LG
28748
28749 PR ada/19414
28750 * i-cobol.adb (Valid_Numeric): Handle zero length case.
a1286ef5 28751
3f38e738
RH
287522005-01-20 Richard Henderson <rth@redhat.com>
28753
28754 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28755 a-intnam-linux.ads and system-linux-alpha.ads.
28756 * a-intnam-linux-alpha.ads: Remove file.
28757 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28758 * system-linux-alpha.ads: New file.
28759
4d960a7e
JJ
287602005-01-18 Jakub Jelinek <jakub@redhat.com>
28761
28762 PR ada/13470
28763 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28764 set to the new string.
28765
b4c6a3a2
TM
287662005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
28767
28768 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28769 to True.
28770
8d5e1df2
RH
287712005-01-18 Richard Henderson <rth@redhat.com>
28772
28773 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28774 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28775 for alpha-linux.
28776 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28777
03eef11c
AP
287782005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
28779
28780 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28781 (GCC_ZCX_Support): Likewise.
28782
bc7566ca
BB
287832005-01-11 Bastian Blank <waldi@debian.org>
28784
28785 * system-linux-s390.ads: Define Preallocated_Stacks.
28786 * system-linux-s390x.ads: Likewise.
28787
e550819c
AC
287882005-01-04 Arnaud Charlet <charlet@adacore.com>
28789
28790 * gnat_ugn.texi: Fix texi errors with null variables.
28791
376a74d4
AC
287922005-01-03 Thomas Quinot <quinot@adacore.com>
28793
28794 * gen-soccon.c: New utility program to generate g-soccon.ads
28795 automatically.
28796
28797 * socket.c, gsocket.h: Split inclusion of system header files into a
28798 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28799
28800 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28801 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28802 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28803 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28804 should not be edited by hand anymore, but should be regenerated using
28805 gen-soccon.
28806
288072005-01-03 Robert Dewar <dewar@adacore.com>
28808 Ed Schonberg <schonberg@adacore.com>
28809 Vincent Celier <celier@adacore.com>
28810
28811 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28812 on/off, since this is an obsolescent feature, for which we now generate
28813 a warning.
28814
28815 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28816 warning mode is set and obsolescent usage of this attribute occurs.
28817 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28818 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28819 predates, and partly motivates, the adoption of the AI.
28820 Implement new Ada 2005 attribute Mod
28821
28822 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28823 attribute Mod.
28824
28825 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28826
28827 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28828 pragma restrictions.
28829 New entry for Ada 2005 attribute Mod.
28830
a1286ef5 28831 * par-prag.adb:
376a74d4
AC
28832 Add recognition of new pragma Restrictions No_Dependence
28833 Recognize restriction No_Obsolescent_Features at parse time
28834
28835 * bcheck.adb: Add circuitry for checking for consistency of
28836 No_Dependence restrictions.
28837
28838 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28839 restrictions.
28840
28841 * restrict.ads, restrict.adb: Add subprograms to deal with
28842 No_Dependence restrictions.
28843
28844 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28845 restrictions.
28846
28847 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28848 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28849
28850 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28851 dummy parameter to scng instantiation.
28852 Needed for new restriction No_Obsolescent_Features
28853
28854 * scn.adb: (Obsolescent_Check): New procedure
28855 Needed for new restriction No_Obsolescent_Features
28856
28857 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28858 specified by AI-285, needed for implementation of AI-388 (adding greek
28859 pi to Ada.Numerics).
28860 Add new generic formal to scng, needed for new restriction
28861 No_Obsolescent_Features.
28862
28863 * s-rident.ads: Add new restriction No_Obsolescent_Features.
28864
28865 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28866 restrictions lines.
28867 (Scan_ALI): When finding an unexpected character on an R line, raise
28868 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28869 Ignore_Errors is True, default restrictions are set and scanning of the
28870 ALI file continues with the next line. Also, when Bad_R_Line is raised
28871 and Ignore_Errors is True, skip to the end of le line.
28872
28873 * sem_ch10.adb: Check that explicit with's do not violate
28874 No_Dependence restrictions.
28875 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28876 illegal context clauses containing child units of instance.
28877
28878 * sem_prag.adb: Processing and checking for new No_Dependence
28879 restrictions.
28880 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28881 analyze and check the External argument.
28882
28883 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28884
288852005-01-03 Robert Dewar <dewar@adacore.com>
28886
28887 * atree.adb: Add a fifth component to entities
28888 This allows us to add 32 flags and four new fields
28889
28890 * atree.ads: Add a fifth component to entities
28891 This allows us to add 32 flags and four new fields
28892
28893 * einfo.ads, einfo.adb: Document new fields and new flags now available
28894 Add routines for printing new fields
28895
28896 * treepr.adb: Call routines to print out additional fields if present
28897
288982005-01-03 Arnaud Charlet <charlet@adacore.com>
28899
28900 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28901 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28902
28903 * Makefile.in: Add support to build shared Ada libraries on solaris x86
28904 Remove gpr2make, replaced by gprmake.
28905 Remove references to gnatmem and libaddr2line.
28906 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28907 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28908 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28909 a-numaux-darwin.ads and a-numaux-darwin.adb
28910 Enable mlib-tgt-lynxos.adb on lynxos.
28911
28912 * Make-lang.in: Remove rules for gpr2make.
28913 When generating sdefault.adb, do not call Relocate_Path
28914 on S3 for function Target_Name, as it is not a path.
28915 Remove references to gnatmem and libaddr2line.
28916
28917 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28918 files.
28919
289202005-01-03 Samuel Tardieu <tardieu@adacore.com>
28921
28922 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28923 address is incompatible with its base type alignment constraints when
28924 this can be decided statically.
28925
289262005-01-03 Olivier Hainque <hainque@adacore.com>
28927
28928 * decl.c (compatible_signatures_p): New function. The intended purpose
28929 is to check if two function signatures for a call-site and a callee are
28930 compatible enough for the call to be valid. The underlying purpose is
28931 to check if a call to a mapped builtin is using the right interface.
28932 The current code actually does not check antyhing - this a placeholder
28933 for future refinements.
28934 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28935 builtin calls for convention Intrinsic.
28936
28937 * gigi.h (builtin_decl_for): Declare (new function).
28938
28939 * utils.c (gnat_install_builtins): Install the target specific builtins.
28940 (builtin_decl_for): New function, provide a dummy body for now.
28941
289422005-01-03 Geert Bosch <bosch@adacore.com>
28943
28944 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28945 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28946 (Pred): Implement in terms of Succ.
a1286ef5 28947
376a74d4
AC
28948 * trans.c (convert_with_check): Reimplement conversion of float to
28949 integer.
28950
289512005-01-03 Ed Schonberg <schonberg@adacore.com>
28952 Vincent Celier <celier@adacore.com>
28953
28954 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28955 bounds can be negative, and must be declared Int, not Nat.
28956
28957 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28958 array is checked after using the index in the array.
28959
28960 * makegpr.adb (Add_Switches): Check if there is a package for the
28961 processor. If there is no package, do not look for switches.
28962
289632005-01-03 Ed Schonberg <schonberg@adacore.com>
28964
28965 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28966 generation of predefined stream operations (specs and bodies) should
28967 proceed. Under various restrictions these subprograms must not be
28968 generated.
28969
289702005-01-03 Thomas Quinot <quinot@adacore.com>
28971
a1286ef5 28972 * exp_dist.adb:
376a74d4
AC
28973 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28974 amount of PCS-specific code in RACW stubs generation.
28975 (Copy_Specification): Set Etype on copied formal parameter entities, as
28976 this information is needed for PolyORB stubs generation.
28977 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28978 variable Dynamic_Async.
28979 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28980 (Build_RPC_Receiver_Specification): Make generic again, as recent
28981 changes have allowed RPC receivers to have the same profile for both
28982 variants of the PCS.
28983 Reorganise RPC receiver generation to reduce differences between the
28984 structure of GARLIC and PolyORB RPC receivers.
28985 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28986 PCS-specific.
28987 Simplify elaboration code for RCI packages.
28988
28989 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28990 generation to reduce differences between the structure of GARLIC and
28991 PolyORB RPC receivers.
28992
28993 * s-stratt.adb: Fix typo in comment.
28994
289952005-01-03 Thomas Quinot <quinot@adacore.com>
28996
28997 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28998 copied from Make_Init_Call).
28999
29000 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
29001 reads and assignments on a temporary variable declared with appropriate
29002 discriminants.
29003
290042005-01-03 Robert Dewar <dewar@adacore.com>
29005
29006 * i-c.adb (To_C): Raise CE if string is null and Append_Null
29007
290082005-01-03 Robert Dewar <dewar@adacore.com>
29009
29010 * i-cstrin.adb (Update): Do not append a null in form called with a
29011 String. This avoids unintended behavior.
29012
290132005-01-03 Arnaud Charlet <charlet@adacore.com>
29014
29015 PR ada/17527
29016 * init.c: Fix warnings on Free BSD section.
29017
290182005-01-03 Arnaud Charlet <charlet@adacore.com>
29019
29020 PR ada/16949
29021 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
29022 xsinfo.adb).
29023
290242005-01-03 Vincent Celier <celier@adacore.com>
29025
29026 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
29027 libraries when Unique_Compile is True (-u switch).
29028 (Gnatmake): ditto.
29029
290302005-01-03 Robert Dewar <dewar@adacore.com>
29031
29032 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
29033 upper case letter or underscore after W, as allowed by spec.
29034
290352005-01-03 Arnaud Charlet <charlet@adacore.com>
29036
29037 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
29038 darwin port by using proper type definitions from header files.
29039 Use SIGTERM instead of SIGABRT for SIGADAABORT.
29040
290412005-01-03 Robert Dewar <dewar@adacore.com>
29042
29043 * par.adb: Enhance error message handling for configuration file
29044 pragmas.
29045
290462005-01-03 Robert Dewar <dewar@adacore.com>
29047
29048 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
29049 removed during the previous update (test properly for case of dividing
29050 largest negative number by -1, which generates overflow).
29051
290522005-01-03 Ed Schonberg <schonberg@adacore.com>
29053 Sergey Rybin <rybin@adacore.com>
29054
29055 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
29056 to use as the defining identifier for a formal package.
29057 (Remove_Parent): If the instance takes place within (an instance of)
29058 a sibling, preserve private declarations of common parent.
29059
290602005-01-03 Ed Schonberg <schonberg@adacore.com>
29061
29062 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
29063 to determine whether one of the operands is a fixed-point type for
29064 which a user-defined multiplication or division operation might be
29065 defined.
29066
29067 * sem_res.adb (Valid_Conversion): The legality rules for conversions
29068 of access types are symmetric in Ada 2005: either designated type can
29069 be unconstrained.
29070
290712005-01-03 Vincent Celier <celier@adacore.com>
29072
29073 * s-fileio.adb (Temp_File_Record): Change length of string component
29074 Name from L_tmpnam + 1 to max_path_len + 1.
29075
290762005-01-03 Arnaud Charlet <charlet@adacore.com>
29077
29078 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
29079 Self_Id.Deferral_Level = 0.
29080 (Do_Pending_Action): Move this function to the spec.
29081
29082 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
29083 Do_Pending_Action explicitely when needed, in case we're using
29084 No_Abort restrictions.
29085
29086 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29087 deferral level since it will not get changed by the generated code.
29088 Keeping a default value of 1 would prevent some operations (e.g.
29089 select or delay) to proceed successfully.
29090
290912005-01-03 Ben Brosgol <brosgol@adacore.com>
29092 Robert Dewar <dewar@adacore.com>
29093 Cyrille Comar <comar@adacore.com>
29094
29095 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29096 porting guide chapter (vms version).
29097 Revised doc title (removed "for native platforms") and subtitle.
29098 Add discussion on warning flag for obsolescent features. First we
29099 note that it applies to obsolete GNAT features, which was previously
29100 omitted. Second we contrast the behavior with that of the new
29101 Ada 2005 AI-368 restriction No_Obsolescent_Features.
29102 Preliminary rewriting of GNAT & libraries chapter in order to take
29103 into account default project locations & new project manager
29104 capabilities.
29105
291062005-01-03 Robert Dewar <dewar@adacore.com>
29107
29108 * cstand.adb (Create_Operators): Clean up format and documentation of
29109 unary and binary operator result tables. No change in code, just
29110 reformatting and addition of comments.
29111
29112 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29113 sem_ch2.adb: Minor reformatting
29114
29115 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29116 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29117 comments for Tree_Read and Tree_Write.
29118
291192005-01-03 Pascal Obry <obry@adacore.com>
29120
29121 * exp_attr.ads: Minor reformatting.
29122
291232005-01-03 Romain Berrendonner <berrendo@adacore.com>
29124
29125 * comperr.adb (Compiler_Abort): Add specialized message for GAP
29126 versions.
29127
291282005-01-03 Ed Schonberg <schonberg@adacore.com>
29129
29130 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29131 whether the ancestor type is private, as may be the case with nested
29132 instantiations.
29133
9e94c78f 291342004-12-30 Sohail Somani <sohail@sohailsomani.com>
15cd18b9
SS
29135
29136 PR ada/19128
29137 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29138
2614034e 291392004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
15cd18b9 29140
2614034e
EB
29141 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29142 * utils2.c (build_unary_op): Likewise.
29143
ad50bc8d
RH
291442004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29145
29146 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29147
ed9c846c
RH
291482004-12-19 Richard Henderson <rth@redhat.com>
29149
29150 * trans.c (gigi): Update gimplify_body call.
29151
08f2586c
NS
291522004-12-09 Nathan Sidwell <nathan@codesourcery.com>
29153
29154 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29155
180684eb
AC
291562004-12-07 Ed Falis <falis@adacore.com>
29157
29158 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29159 current task being suspended.
29160
29161 * init.c (__gnat_clear_exception): added to reset VxWorks exception
29162 count.
29163 (__gnat_map_signal): removed test for current task being suspended.
29164
291652004-12-07 Gary Dismukes <dismukes@adacore.com>
29166
29167 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29168 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29169 targets (such as AAMP).
29170
291712004-12-07 Ed Schonberg <schonberg@adacore.com>
29172
29173 * atree.adb (Visit_Itype): Create a new name for the generated itype,
29174 because the back-end may otherwise treat it as a redefinition of the
29175 old symbol.
29176
291772004-12-07 Eric Botcazou <ebotcazou@adacore.com>
29178
29179 * back_end.adb (Scan_Back_End_Switches): Accept --param.
29180
29181 * lang-specs.h: Accept --param.
29182
291832004-12-07 Vincent Celier <celier@adacore.com>
29184
29185 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29186 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29187 Current_Body_Suffix => Ada_Body_Suffix).
29188 Take into account Externally_Built attribute.
29189
29190 * clean.adb (In_Extension_Chain): Always return False when one of the
29191 parameter is No_Project.
29192 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29193 Ada_Language_Index).
29194 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29195 Process_Languages for procedure Parse).
29196
29197 * gnatcmd.adb (Carg_Switches): New table.
29198 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29199 Adapt to name changes in package Prj (Current_Spec_Suffix =>
29200 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29201
29202 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29203 Header_Num and function Hash are now declared in package Prj,
29204 not Prj.Com.
29205
29206 * prj.adb (Suffix_Of): New function.
29207 (Set (Suffix)): New procedure.
29208 (Hash): One function moved from Prj.Com
29209 (Is_Present, Language_Processing_Data_Of): New functions
29210 (Set): Two new procedures
29211 (Add_Language_Name, Display_Language_Name): New procedures
29212
29213 * prj.ads: (Suffix_Of): New function
29214 (Set (Suffix)): New procedure
29215 Add several types and tables for multi-language support.
29216 (Header_Num): Type moved from Prj.Com
29217 (Hash): Two functions moved from Prj.Com
29218 (Is_Present, Language_Processing_Data_Of): New functions
29219 (Set): Two new procedures
29220 (Add_Language_Name, Display_Language_Name): New procedures
29221 (Naming): Component name changes:
29222 Current_Spec_Suffix => Ada_Spec_Suffix,
29223 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29224 Impl_Suffixes, Supp_Suffixes.
29225 (Project_Data): New components: Externally_Built, Supp_Languages,
29226 First_Language_Processing, Supp_Language_Processing, Default_Linker,
29227 Default_Linker_Path.
29228
29229 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29230 new package Language_Processing with its attributes (Compiler_Driver,
29231 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29232 Binder_Driver, Default_Linker).
29233
29234 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29235 (Header_Num): Type moved to package Prj
29236
29237 * prj-env.adb: Adapt to name changes in package Prj
29238 (Current_Spec_Suffix => Ada_Spec_Suffix,
29239 Current_Body_Suffix => Ada_Body_Suffix).
29240
29241 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29242 default to the project path, except the "-" is one of the directories
29243 in env var ADA_PROJECT_PATH.
29244 (Current_Project_Path): Global variable, replacing Project_Path
29245 that was in the body of Prj.Part.
29246 (Project_Path): New function
29247 (Set_Project_Path): New procedure
29248 Initialize Current_Project_Path during elaboration of the package
29249 Remove dependency on Prj.Com, no longer needed
29250
29251 * prj-ext.ads (Project_Path): New function
29252 (Set_Project_Path): New procedure
29253
29254 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29255 suffix is defined for language <lang>.
29256 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29257 accessing directly the components of Naming.
29258 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29259 Reorganise of this package.
29260 Break procedure Check in several procedures.
29261
29262 * prj-nmsc.ads: Replace all procedures (Ada_Check,
29263 Other_Languages_Check and Language_Independent_Check) with a single
29264 procedure Check.
29265
29266 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29267 Process_Languages, no longer needed.
29268
29269 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29270 Current_Project_Path.
29271 Remove elaboration code, moved to the body of Prj.Ext
29272 Use new function Prj.Ext.Project_Path instead of old variable
29273 Project_Path.
29274 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29275 When comparing with project paths on the stack, first put the resolved
29276 path in canonical case.
29277 (Parse_Single_Project): Set the path name of the project file in the
29278 tree to the normalized path.
29279
29280 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29281 parameter Process_Languages, no longer needed.
29282 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29283 Other_Languages_Check.
29284
29285 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29286 to store the resolved canonical path of the project file.
29287 Remove dependency to Prj.Com, no longer needed
29288
29289 * prj-util.adb: Adapt to name changes in package Prj
29290 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29291 Ada_Body_Suffix).
29292
29293 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29294 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29295 Externally_Built, Include_Option, Language_Processing.
29296
29297 * makegpr.adb: Numerous changes due to changes in packages
29298 Prj and Prj.Nmsc.
29299
29300 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29301 default to the project path, except whe "-" is one of the directories
29302 in env var ADA_PROJECT_PATH.
29303 (Gnatls): In verbose mode, add the new section "Project Search Path:"
29304
293052004-12-07 Robert Dewar <dewar@adacore.com>
29306
29307 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29308
29309 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29310 set -gnatR3m mode.
29311
29312 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29313 flag. No longer needed now that we handle this in gnat1drv.adb.
29314
29315 * repinfo.ads: Minor reformatting
29316
293172004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29318 Olivier Hainque <hainque@adacore.com>
29319 Eric Botcazou <ebotcazou@adacore.com>
29320
29321 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29322 TYPE_SIZE_UNIT of result type if SIZE is not specified.
29323 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29324 of a bitfield, which we know is useless and causes trouble because of
29325 alignment implications.
29326
29327 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29328 BSS sections.
29329 (process_attributes): Clear DECL_COMMON again when a section attribute
29330 is present.
29331 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29332 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29333 (create_field_decl): Special case ADDRESSABLE negative to mean
29334 "no bitfield creation", to be used by make_aligning_type. Don't
29335 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29336 fields claimed addressable still have to be bitfields. Use
29337 value_factor_p instead of a raw binop construction to check for the
29338 position's alignment.
29339
293402004-12-07 Geert Bosch <bosch@adacore.com>
29341
29342 * eval_fat.adb: Revert previous change.
29343
293442004-12-07 Thomas Quinot <quinot@adacore.com>
29345 Ed Schonberg <schonberg@adacore.com>
29346
29347 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29348 with an implicit dereference as its prefix, use
29349 Insert_Explicit_Dereference instead of merely rewriting the prefix into
29350 an explicit dereference. This ensures that a reference to the original
29351 prefix is generated, if appropriate.
29352
29353 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29354 dereference is rewritten to an explicit one, generate a reference to
29355 the entity denoted by its prefix using the original prefix node, so
29356 the dereference can be properly recorded as a read of the denoted
29357 access value, if appropriate.
29358
29359 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29360 emitting 'assigned but never read' warning on a variable on the basis
29361 that it has an access type.
29362 (Check_References): Emit unreferenced warning when the scope is a
29363 subprogram body.
29364
293652004-12-07 Robert Dewar <dewar@adacore.com>
29366 Ed Schonberg <schonberg@adacore.com>
29367
29368 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29369 intrinsic
29370
29371 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29372 leaving call unchanged.
29373 This deals with the case where the pragma Import specified
29374 an external name, to be handled by the back end.
29375
29376 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29377 subprogram which is Imported with convention Intrinsic if an
29378 External_Name argument is specified.
29379 (Process_Import_Or_Interface): Properly diagnose link name argument.
29380 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29381 with Sem_Ch6.Cannot_Inline.
29382 (Process_Inline): Provide separate warning for inapplicable inline
29383 pragma.
29384 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29385 treatment is uniform on different targets.
29386
293872004-12-07 Ed Schonberg <schonberg@adacore.com>
29388
29389 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29390 construct is rewritten, preserve end label to permit source navigation.
29391
293922004-12-07 Thomas Quinot <quinot@adacore.com>
29393
29394 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29395 Specific_Build_Stub_Target): New subprograms.
29396 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29397 the PCS implementation used, using the above PCS-customized subprograms.
29398 Minor reformatting.
29399 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29400 for generation of DSA code targeted to the PolyORB PCS.
29401 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29402 implementation of the partition communication subsystem in ancillary
29403 subprograms.
29404 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29405 PolyORB_Support.Build_Stub_Type): New subrograms containing the
29406 PCS-specific part of Add_Stub_Type.
29407 (Insert_Partition_Check): Use runtime library function to perform
29408 E.4(19) check.
29409
a1286ef5
ZW
29410 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29411 (RE_Same_Partition): New entity, from s-parint.
180684eb 29412
a1286ef5 29413 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
180684eb
AC
29414
294152004-12-07 Gary Dismukes <dismukes@adacore.com>
29416
29417 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29418 Output the copyright message on a separate line from the version
29419 message.
29420
294212004-12-07 Joel Brobecker <brobecker@adacore.com>
29422
29423 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29424 compile-time warning.
29425
294262004-12-07 Robert Dewar <dewar@adacore.com>
29427
29428 * g-regpat.adb: (Match): Change a misuse of or to or else
29429
294302004-12-07 Ed Schonberg <schonberg@adacore.com>
29431
15cd18b9 29432 * lib-xref.adb:
180684eb
AC
29433 (Generate_Reference): Handle properly a reference to an entry formal,
29434 when an accept statement has a pragma Unreferenced for it.
29435
29436 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29437 and the Has_Pragma_Unreferenced flag for each formal before analyzing
29438 the body, to ensure that warnings are properly emitted for each accept
29439 statement of a given task entry.
29440
294412004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
29442
29443 * Makefile.in: Add support for foreign threads on VMS.
29444
294452004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29446
29447 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29448 Remove.
29449 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29450
29451 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29452
29453 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29454 exception.
29455 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29456
294572004-12-07 Robert Dewar <dewar@adacore.com>
29458
29459 * nlists.adb (Prepend_Debug): Remove parameters and nest within
29460 Prepend.
29461 (Remove_Next_Debug): Same fix
29462
29463 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29464 maintain back pointers now, though we did not used to, and comments
29465 were out of date).
29466 (Prepend): Remove pragma Inline.
29467 (Remove_Next): Same cleanup
29468
294692004-12-07 Thomas Quinot <quinot@adacore.com>
29470
29471 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29472 used to record an implicit dereference as a read operation on its
29473 prefix when operating under -gnatc. Necessary to avoid spurious
29474 'variable assigned but never read' warnings in that mode.
29475 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29476 is a non-overloaded implicit dereference, call the above subprogram to
29477 ensure proper recording of references.
29478
294792004-12-07 Gary Dismukes <dismukes@adacore.com>
29480
29481 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29482 to be resolved later as part of Analyze_Iteration_Scheme's call to
29483 Make_Index.
29484
294852004-12-07 Ed Schonberg <schonberg@adacore.com>
29486
29487 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29488 prefix is not a scalar type, place error message on prefix, not on
29489 type entity.
29490
294912004-12-07 Bernard Banner <banner@adacore.com>
29492
29493 * vxaddr2line.adb: Add support for x86 vxworks
29494
294952004-12-07 Thomas Quinot <quinot@adacore.com>
29496
29497 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29498 documentation of the behaviour of these functions when passed an IP
29499 address that has no record in the system hosts database and no reverse
29500 record in the DNS.
29501
29502 * cstand.adb, a-tags.ads: Fix typos in comment.
29503
295042004-12-07 Robert Dewar <dewar@adacore.com>
29505
29506 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29507 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29508 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29509 s-poosiz.ads: Minor reformatting
29510
29511 * make.adb: Minor reformatting
29512 Add some ??? comments asking for more comments
29513
29514 * s-poosiz.adb: Minor reformatting
29515 Add comments on alignment requirement
29516
29517 * sinfo.ads: Remove obsolete comment and fix typo.
29518
295192004-12-07 Vincent Celier <celier@adacore.com>
29520 Sergey Rybin <rybin@adacore.com>
29521
29522 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29523 Files" with the new tool and package names.
29524 Reformatting to suppress most of the warnings for line too long
29525 Document the new section "Project Search Path:" in the output of
29526 gnatls -v.
29527 Add gnatmetric section
29528
295292004-12-07 Vincent Celier <celier@adacore.com>
29530
29531 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29532 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29533 and -eit to -ept. Added qualifier
29534 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29535
ed986c8e
AS
295362004-11-27 Andreas Schwab <schwab@suse.de>
29537
29538 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29539
3c13948a
AC
295402004-11-25 Arnaud Charlet <charlet@adacore.com>
29541
29542 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29543 internal implementation unit GNAT.Sockets.Thin,
29544 as their usage for sockets is non-portable (using the read and write
29545 functions from the system runtime library is fine on UNIX but won't
29546 work under Windows).
29547
29548 * mingw32.h: Update copyright notice.
29549
061fd2bf
AC
295502004-11-25 Arnaud Charlet <charlet@adacore.com>
29551
29552 * ada-tree.h: Minor reformatting of previous change to avoid lines
29553 longer than 79 characters.
29554
e850e1f4
OH
295552004-11-25 Olivier Hainque <hainque@adacore.com>
29556
29557 * tb-gcc.c: GCC infrastructure based implementation of
29558 __gnat_backtrace.
29559
39afeb1a
SB
295602004-11-24 Steven Bosscher <stevenb@suse.de>
29561
29562 * misc.c (gnat_post_options): Don't clear
29563 flag_inline_functions.
29564
9633a6ac
AP
295652004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
29566
29567 PR ada/17986
29568 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29569 tree.
29570
7fe16580
AJ
295712004-11-21 Andreas Jaeger <aj@suse.de>
29572
29573 * stylesw.adb: Change Style_Check_Subprogram_Order to
29574 Style_Check_Order_Subprograms.
29575
9716416b
AC
295762004-11-18 Arnaud Charlet <charlet@adacore.com>
29577
29578 * adaint.h, adaint.c
29579 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29580 to avoid warnings.
29581 Add also a cast to kill another warning.
29582 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29583 parameter with the priority class of the parent process instead of
29584 always using the NORMAL_PRIORITY_CLASS.
29585 (__gnat_dup): New function.
29586 (__gnat_dup2): New function.
29587 (__gnat_is_symbolic_link): Enable the effective body of this
29588 function when __APPLE__ is defined.
29589
29590 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29591 Update comments.
29592
295932004-11-18 Olivier Hainque <hainque@adacore.com>
29594
29595 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29596 address of which may be used to represent "others" and "all others"
29597 choices in exception tables, instead of the current harcoded
29598 (void *)0 and (void *)1.
29599 (Setup_Exception): Do nothing in the GNAT SJLJ case.
29600
29601 * gigi.h (others_decl, all_others_decl): New decls representing the
29602 new Others_Value and All_Others_Value objects.
29603 (struct attrib): Rename "arg" component as "args", since GCC expects a
29604 list of arguments in there.
29605
29606 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29607 corresponding objects exported by a-exexpr, instead of hardcoded dummy
29608 addresses.
29609
29610 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29611 others_decl and all_others_decl instead of hardcoded dummy addresses
29612 to represent "others" and "all others" choices, which is cleaner and
29613 more flexible with respect to the possible eh pointer encoding policies.
29614
29615 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29616 (process_attributes): Account for the naming change of the "args"
29617 attribute list entry component.
29618
29619 * decl.c (build_attr_list): Rename into prepend_attributes to allow
29620 cumulating attributes for different entities into a single list.
29621 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29622 attributes for the current entity and propagate first subtype
29623 attributes to other subtypes.
29624 <E_Procedure>: Attribute arguments are attr->args and not
29625 attr->arg any more.
29626 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29627 argument provided, as this is what GCC expects. Use NULL_TREE instead
29628 of 0 for trees.
29629
296302004-11-18 Robert Dewar <dewar@adacore.com>
29631
15cd18b9 29632 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
9716416b
AC
29633 Minor reformatting througout (including new function specs)
29634 Add ??? comments asking for clarification.
29635
296362004-11-18 Thomas Quinot <quinot@adacore.com>
29637
29638 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29639 incomplete duplicate implementation of this subprogram from butil.
29640
296412004-11-18 Thomas Quinot <quinot@adacore.com>
29642
29643 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29644 procedures factors the common processing for building an RPC receiver
29645 for an RCI package or an RACW type.
29646 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29647 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29648 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29649 in use.
29650 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29651 Add_RACW_Features.
29652 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29653 Add_RAST_Features.
29654 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29655 distribution subprogram identifiers that are either subprogram numbers
29656 or strings.
29657 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29658 string distribution identifiers assigned to a given subprogram.
29659 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29660 (Add_RAS_Dereference_TSS): Add comments.
29661 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29662 is not referenced yet because it will be used by the PolyORB DSA
29663 implementation.
29664 (Insert_Partition_Check): Remove fossile code.
29665 (First_RCI_Subprogram_Id): Document this constant.
29666 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29667 RAS_Access TSS.
29668 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29669 replaced with calls to Get_Library_Unit_Name_String. Previously there
29670 were several instances of the same code in different locations in the
29671 compiler; this checkin completes the replacement of all of these
29672 instances with calls to a common subprogram.
29673 Minor reformatting.
29674
29675 * sem_dist.adb: Remove comment noting that RPC receiver generation
29676 should be disabled for RACWs that implement RASs.
29677 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29678
29679 * sem_util.ads, sem_util.adb (Has_Stream): New function
29680 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29681 qualified name of a library unit into the name buffer.
29682 (Note_Possible_Modification): Generate a reference only
29683 if the context comes from source.
29684
29685 * snames.ads (PCS_Names): New subtype corresponding to names of
29686 supported implementations of the Partition Communication Subsystem
29687 (PCS) (i.e. the runtime library support modules for the distributed
29688 systems annex).
29689
296902004-11-18 Robert Dewar <dewar@adacore.com>
29691 Ed Schonberg <schonberg@adacore.com>
29692
29693 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29694 (Has_Rep_Pragma): New function
29695 (Has_Attribute_Definition_Clause): New function
29696 (Record_Rep_Pragma): Moved here from sem_ch13.adb
29697 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29698
29699 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29700
29701 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29702 (Expand_Pragma_Psect_Object): New procedure
29703 These procedures contain the revised and cleaned up processing for
29704 these two pragmas. This processing was formerly in Sem_Prag, but
29705 is more appropriately moved here. The cleanup involves making sure
29706 that the pragmas are properly attached to the tree, and that no
29707 nodes are improperly shared.
29708
29709 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29710 pragmas to Exp_Prag, which is more appropriate.
29711 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29712 check for duplicates Remove use of Is_Psected flag, no longer needed.
29713 Use new Make_String_Literal function with string.
29714
29715 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29716 that are functions return universal values, that have to be converted
29717 to the context type.
29718 Use new Make_String_Literal function with string.
29719 (Get_Stream_Convert_Pragma): New function, replaces the use of
29720 Get_Rep_Pragma, which had to be kludged to work in this case.
29721
29722 * freeze.adb: Use new Has_Rep_Pragma function
29723
29724 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29725 function with string.
29726 Use new Has_Rep_Pragma function.
29727
29728 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29729 string argument.
29730
297312004-11-18 Robert Dewar <dewar@adacore.com>
29732
29733 * errout.ads, errout.adb: (First_Sloc): New function
29734
29735 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29736 check (-gnatyx) instead of being included as a redundant construct
29737 warning.
29738
29739 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29740 Style_Check_Order_Subprograms.
29741
29742 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29743 stylesw.adb: Add Style_Check_Xtra_Parens
29744
29745 * usage.adb: Add line for -gnatyx (check extra parens)
29746
29747 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29748
297492004-11-18 Ed Schonberg <schonberg@adacore.com>
29750 Robert Dewar <dewar@adacore.com>
29751
29752 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29753 discriminant of a constrained subtype, analyze the copy of the
29754 corresponding constraint, because in some cases it may be only
29755 partially analyzed.
29756 Removes long-lived ??? comments.
29757
29758 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29759 handled controlled or secondary-stack expressions within the
29760 iteration_scheme of a loop.
29761
29762 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29763 bounds that may contain functions calls, to prevent memory leaks when
29764 the bound contains a call to a function that uses the secondary stack.
29765 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29766 generate temporaries for loop bounds that might contain function calls
29767 that require secondary stack and/or finalization actions.
29768
29769 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29770 selected component and the selector is overloadable (not just a
29771 function) treat as function call, Analyze_Call will disambiguate if
29772 necessary.
29773 (Analyze_Selected_Component): Do not generate an actual subtype for the
29774 selected component if expansion is disabled. The actual subtype is only
29775 needed for constraint checks.
29776 (Analyze_Allocator): If restriction No_Streams is set, then do
29777 not permit objects to be declared of a stream type, or of a
29778 composite type containing a stream.
29779
29780 * restrict.ads: Remove the a-stream entry from Unit_Array, since
29781 No_Streams no longer prohibits with'ing this package.
29782
29783 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29784 discriminants, but the parent base has unknown discriminants, there is
29785 no discriminant constraint to inherit. Such a discrepancy can arise
29786 when the actual for a formal type with unknown discriminants is a
29787 similar private type whose full view has discriminants.
29788 (Analyze_Object_Declaration): If restriction No_Streams is set, then
29789 do not permit objects to be declared of a stream type, or of a
29790 composite type containing a stream.
29791
297922004-11-18 Ed Schonberg <schonberg@adacore.com>
29793
29794 * exp_dbug.ads: Update documentation to reflect simpler encoding for
29795 protected operations.
29796
29797 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29798 generated name, it complicates decoding in gdb and hinders debugging
29799 of protected operations.
29800 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29801 flag for the protected entry barrier function.
29802 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29803 flag for the protected entry function.
29804
298052004-11-18 Nicolas Setton <setton@adacore.com>
29806
29807 * expect.c: Define __unix__ when __APPLE__ is defined.
29808
29809 * Makefile.in: Inform the value of the variable GMEM_LIB in the
29810 Darwin-specific section.
29811
29812 * lang-specs.h: Change the placement of the %1 marker.
29813 Works around the fact that gcc adds -fPIC by default under Darwin.
29814
298152004-11-18 Ed Schonberg <schonberg@adacore.com>
29816
29817 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29818 type of the object with the packed array type, set the Analyzed flag
29819 on the object if it is an entity or simple indexed component, to avoid
29820 spurious type errors.
29821
298222004-11-18 Gary Dismukes <dismukes@adacore.com>
29823
29824 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29825 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29826 separate line from the version message.
29827
298282004-11-18 Ed Falis <falis@adacore.com>
29829
29830 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29831 vthreads.
29832 (init_float): Eliminate initialization of floating point status for
29833 AE653. The instructions have no effect for vThreads.
29834
298352004-11-18 Vincent Celier <celier@adacore.com>
29836
29837 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29838 gnatbind is invoked with -shared.
29839
298402004-11-18 Jose Ruiz <ruiz@adacore.com>
29841
29842 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29843 for Detect_Blocking which is redundant with the check done within the
29844 procedure Protected_Single_Entry_Call.
29845 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29846 Detect_Blocking which is redundant with the check done within the
29847 procedure Protected_Single_Entry_Call.
29848
298492004-11-18 Vincent Celier <celier@adacore.com>
29850
29851 * makegpr.adb (Compile): Put the compiling switches (in package
29852 Compiler and on the command line) immediately after "-c", instead of
29853 at the end of the command line invocation of the compiler, when
29854 compiling a non-Ada file.
29855 (Build_Global_Archive): When there is no need to rebuild the archive,
29856 set Global_Archive_Exists, so that the archive is passed to the linker
29857 if one is needed.
29858
298592004-11-18 Robert Dewar <dewar@adacore.com>
29860 Sergey Rybin <rybin@adacore.com>
29861
15cd18b9 29862 * gnat_ugn.texi:
9716416b
AC
29863 Remove extra paren check from list of checks for redundant constructs
29864 Add documentation of new -gnatyx style check (check extra parens)
29865 Remove paragraph about gnatelim debug options.
29866
29867 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29868 objects rather than forbidding dependencies on the package Ada.Streams.
29869
29870 * sinfo.ads: Add ??? note that we should document pragmas passed to
29871 back end.
29872
29873 * g-expect.ads: Fix a few typos in the comments.
29874
9e637a26
JM
298752004-11-09 Joseph S. Myers <joseph@codesourcery.com>
29876
29877 * misc.c (gnat_handle_option): Use %< and %> for quoting in
29878 warning message.
29879
0506cb1c
RO
298802004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29881
29882 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29883
426e7d28
AS
298842004-11-07 Andreas Schwab <schwab@suse.de>
29885
29886 * Makefile.in (install-gnatlib): Remove spurious hyphen.
29887
8785609e 298882004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
bb342a77
AP
29889
29890 PR ada/18228
29891 * Makefile.in (darwin): Set soext to .dylib.
29892
0ca5fab2
AC
298932004-10-26 Vincent Celier <celier@gnat.com>
29894 Thomas Quinot <quinot@act-europe.fr>
29895
29896 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29897 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29898 there is no use of GNAT.Sockets.Constants.
29899 Remove remaining pragma Import for C_Write
29900 Remove C_Read and C_Write from internal implementation unit
29901 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29902 the read and write functions from the system runtime library is fine
29903 on UNIX but won't work under Windows).
29904
29905 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29906 (Check_Selector): Use C_Recv instead of C_Read.
29907 Selectors are the GNAT.Sockets abstraction to perform a select()
29908 call on a set of descriptors. To allow abortion of an ongoing
29909 select operation, some data is written to a dedicated socket that
29910 is always monitored.
29911 Under Windows, the write and read library functions cannot operate
29912 on sockets, so we need to use send and recv instead, which is portable
29913 across all supported platforms.
29914
29915 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29916 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29917 (using the read and write functions from the system runtime library is
29918 fine on UNIX but won't work under Windows).
29919
299202004-10-26 Nicolas Setton <setton@act-europe.fr>
29921
29922 * mlib-tgt-darwin.adb: New file.
29923
29924 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29925 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29926 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29927 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29928 subprogram body.
29929
29930 * Makefile.in: Add support for building shared libraries under Darwin.
29931 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29932 the low level EH init subprogram to be called from __gnat_initialize.
29933
29934 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29935 indicates which options to pass to the archive indexer.
29936
29937 * mlib-utl.adb: Add support for calling ranlib with additional
29938 options. This is needed for instance under Mac OS X.
29939 (Ranlib_Options): New global variable, used to store the potential
29940 options to pass to ranlib.
29941 (Ar): Use Ranlib_Options when spawning ranlib.
29942 (Initialize): Set the value of ranlib option.
29943
299442004-10-26 Olivier Hainque <hainque@act-europe.fr>
29945
29946 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29947 instead of 8K, to reflect the real potential needs for stack-checking
29948 in the ZCX case.
29949
299502004-10-26 Pascal Obry <obry@gnat.com>
29951
29952 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29953
29954 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29955 Windows only the initial thread stack size can be set so it is good to
29956 start we a low stack size.
29957 The OS will adjust the size as needed.
29958
299592004-10-26 Olivier Hainque <hainque@act-europe.fr>
29960 Nicolas Setton <setton@act-europe.fr>
29961
29962 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29963 "__unix__" instead of "unix".
29964 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29965 sections were just mistakenly ignored. The former is
29966 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29967 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29968 of hpux. This prevents an unwanted definition of the symbol
29969 convert_addresses in adaint.o.
29970
299712004-10-26 Gary Dismukes <dismukes@gnat.com>
29972
29973 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29974 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29975
299762004-10-26 Cyrille Comar <comar@act-europe.fr>
29977
29978 * a-filico.ads, a-filico.adb: fix incorrect header.
29979
299802004-10-26 Javier Miranda <miranda@gnat.com>
29981
29982 * a-ststio.ads: Fix typo in identifier
29983
299842004-10-26 Thomas Quinot <quinot@act-europe.fr>
29985
29986 * sem_ch4.adb: Minor reformatting.
29987
299882004-10-26 Ed Schonberg <schonberg@gnat.com>
29989
29990 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29991 enabled, check the result of unary and binary operations when the
29992 expression is the right-hand side of an assignment.
29993
299942004-10-26 Vincent Celier <celier@gnat.com>
29995
29996 * clean.adb (Delete): Do not output warnings when in quiet output and
29997 not in verbose mode.
29998 (Force_Deletions): New Boolean flag, defaulted to False
29999 (Delete): Only delete a file if it is writable, and when
30000 Force_Deletions is True.
30001 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
30002 (Usage): Line for new switch -f
30003 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
30004 own.
30005
300062004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30007
30008 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
30009 JM type only if its size matches that of the wrapper. When a size is
30010 prescribed and the field is not aliased, remove the wrapper of a JM
30011 type only if the size is not greater than that of the packed array.
30012 (gnat_to_gnu_entity): Change the extension of packed array wrappers
30013 from LJM to JM.
30014
300152004-10-26 Geert Bosch <bosch@gnat.com>
30016
30017 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
30018 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
30019 (Pred): Implement in terms of Succ.
30020
300212004-10-26 Ed Schonberg <schonberg@gnat.com>
30022
30023 * exp_aggr.adb (Safe_Component): An aggregate component that is an
30024 unchecked conversion is safe for in-place use if the expression of the
30025 conversion is safe.
30026 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
30027 be expandable in place even if the aggregate does not come from source.
30028 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
30029 designated object of an allocator in place, rather than building it
30030 first on the stack. The previous scheme forces a full copy of the array,
30031 and may be altogether unsusable if the size of the array is too large
30032 for stack allocation.
30033
300342004-10-26 Robert Dewar <dewar@gnat.com>
30035
30036 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
30037 compares if the component is atomic.
30038
30039 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
30040 array assignment if the component type is atomic.
30041
300422004-10-26 Ed Schonberg <schonberg@gnat.com>
30043 Eric Botcazou <ebotcazou@act-europe.fr>
30044
30045 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
30046 is aliased and is a by_reference type, do not pass by copy.
30047 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
30048 detect whether the call is in the right side of an assignment or
30049 the expression of an object declaration. Recurse on component
30050 association within aggregates.
30051 Call it in the condition that determines whether the temporary is
30052 necessary for correct stack-checking.
30053
300542004-10-26 Thomas Quinot <quinot@act-europe.fr>
30055
30056 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
30057 RACW_Type, used in the PolyORB version.
30058 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
30059 version and the GARLIC version.
30060
15cd18b9 30061 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
0ca5fab2
AC
30062 Rename RCI_Info to RCI_Locator for better consistency between the
30063 GARLIC and PolyORB versions of the distributed systems annex.
30064 (DSA_Implementation_Name): This enumeration lists the possible
30065 implementations of the Partition Communication Subsystem for the
30066 Distributed Systems Annex (DSA). The three available implementations
30067 are the dummy stub implementation (No_DSA), and two versions based on
30068 two different distribution runtime libraries: GARLIC and PolyORB. Both
30069 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
30070 technology.
30071 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30072 that organization.
30073
30074 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
30075 between the GARLIC and PolyORB versions of the distributed systems
30076 annex.
30077 Remove RE_Unbounded_Reclaim_Pool since it is unused.
30078
300792004-10-26 Gary Dismukes <dismukes@gnat.com>
30080
30081 * gnat1drv.adb: Suppress calling the back end when
30082 Frontend_Layout_On_Target is true.
30083
300842004-10-26 Thomas Quinot <quinot@act-europe.fr>
30085
30086 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30087 Set_Read_Only): New subprograms.
30088 These new routines allow the user to set or unset the Owner execute
30089 and Owner write permission flags on a file.
30090
30091 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30092 GNAT.OS_Lib.Set_Executable instead of rolling our own.
30093
300942004-10-26 Matthew Gingell <gingell@gnat.com>
30095
30096 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30097
300982004-10-26 Pascal Obry <obry@gnat.com>
30099
30100 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30101 memory before the faulting page we properly test the process read
30102 access for this address using appropriate Win32 routine.
30103 (HPUX sections): guard with "__hpux__" instead of "hpux".
30104
301052004-10-26 Robert Dewar <dewar@gnat.com>
30106
30107 * lib-xref.adb (Generate_Reference): Don't complain about reference to
30108 entry parameter if pragma Unreferenced set, since we do not properly
30109 handle the case of multiple parameters.
30110
301112004-10-26 Vincent Celier <celier@gnat.com>
30112
30113 * prj-env.adb: (Contains_ALI_Files): New Boolean function
30114 (Ada_Objects_Path.Add): For a library project, add to the object path
30115 the library directory only if there is no object directory or if the
30116 library directory contains ALI files.
30117 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30118
301192004-10-26 Vincent Celier <celier@gnat.com>
30120
30121 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30122 extension of library projects.
30123
30124 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30125 path defaults to ".:<prefix>/lib/gnat".
30126 (Parse): For an extending all project, allow direct import of a project
30127 that is virtually extended.
30128
30129 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30130 the specified name is directly imported, return its ID. Otherwise, if
30131 an extension of this project is imported, return the ID of the
30132 extension.
30133
301342004-10-26 Robert Dewar <dewar@gnat.com>
30135
30136 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30137 (Sub3): New procedure, used by Scaled_Divide
30138 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30139 correct more than one instance of failure to propagate carries
30140 correctly.
30141 (Double_Divide): Handle overflow case of largest negative number
30142 divided by minus one.
30143
30144 * s-arit64.ads (Double_Divide): Document that overflow can occur in
30145 the case of a quotient value out of range.
30146 Fix comments.
30147
301482004-10-26 Robert Dewar <dewar@gnat.com>
30149
30150 * s-bitops.adb (Bit_Eq): Remove redundant check.
30151
30152 * s-bitops.ads: Minor comment updates
30153 Change some occurrences of Address to System.Address
30154
30155 * s-carsi8.ads: Fix minor cut-and-paste error in comments
30156
301572004-10-26 Ed Schonberg <schonberg@gnat.com>
30158
30159 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30160 accessibility check to prefix that is a protected operation.
30161
301622004-10-26 Ed Schonberg <schonberg@gnat.com>
30163
30164 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30165 empty, post message on stub.
30166
301672004-10-26 Ed Schonberg <schonberg@gnat.com>
30168 Javier Miranda <miranda@gnat.com>
30169
30170 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30171 current instance appears within a unit that is directly in the context
30172 of the main unit.
30173 Used to determine whether the body of the instance should be analyzed
30174 immediately after its spec, to make its subprogram bodies available
30175 for front-end inlining.
30176 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30177 constraint is not allowed on the component type (AARM 12.5.3(3))
30178
301792004-10-26 Cyrille Comar <comar@act-europe.fr>
30180
30181 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30182 'Storage_Pool): enhance, document & limit detection of non-sharable
30183 internal pools.
30184
30185 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30186
30187 * s-pooglo.ads: Add more documentation now that this pool is properly
30188 documented.
30189
301902004-10-26 Ed Schonberg <schonberg@gnat.com>
30191
30192 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30193 or protected type with discriminants, do not constrain the
30194 corresponding record type if the subtype declaration has no
30195 discriminant constraints. This can be the case in source code, or in
30196 the subtype declaration created to rename an actual type within an
30197 instantiation.
30198
301992004-10-26 Ed Schonberg <schonberg@gnat.com>
30200
30201 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30202 different kind of stub (possibly wrong name for file), do not check
30203 for conformance.
30204 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30205 includes call to some function that returns an unconstrained type, do
30206 not inline.
30207
302082004-10-26 Ed Schonberg <schonberg@gnat.com>
30209
30210 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30211 appear in the code for the main unit. Dependencies among units in the
30212 context of the main unit are established when those other units are
30213 compiled. Otherwise spurious elaboration constraints can generate
30214 incorrect elaboration circularities.
30215
302162004-10-26 Thomas Quinot <quinot@act-europe.fr>
30217 Ed Schonberg <schonberg@gnat.com>
30218
30219 * sem_util.adb (Is_Aliased_View): Defend against the case where this
30220 subprogram is called with a parameter that is not an object name. This
30221 situation arises for some cases of illegal code, which is diagnosed
30222 later, and in this case it is wrong to call Is_Aliased, as that might
30223 cause a compiler crash.
30224 (Explain_Limited_Type): Refine previous fix to include
30225 inherited components of derived types, to provide complete information.
30226
30227 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30228 is the prival for a protected object.
30229 It is necessary to mark this entity as a variable, in addition to
30230 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30231 modified to avoid checking the Aliased flag on entities that are not
30232 objects. (Checking that flag for non-objects is erroneous and could
30233 lead to a compiler crash).
30234
302352004-10-26 Robert Dewar <dewar@gnat.com>
30236
30237 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30238 X_Frac = 0.5, then we know that the number X must be positive.
30239 (Succ): Remove the same redundant test, and also fix the primary test
30240 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30241 Minor reformatting
30242 (Decompose): Add fuller comments to spec
30243
302442004-10-26 Pascal Obry <obry@gnat.com>
30245
30246 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30247 validity (process must have read access). Set to 0 in all other cases.
30248 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30249 violation on Win32.
30250 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30251 segmentation violation.
30252
302532004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30254
30255 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30256 whose type is a constructed subtype of an aliased object with an
30257 unconstrained nominal subtype, convert the actual to the constructed
30258 subtype before taking its address.
30259
302602004-10-26 Vincent Celier <celier@gnat.com>
30261
30262 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30263 (Is_Path_Name_Case_Sensitive): New function
30264
30265 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30266 (Base_Name, Simple_Name, Current_Directory, Compose,
30267 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30268 the result.
30269
302702004-10-26 Cyrille Comar <comar@act-europe.fr>
30271 Vasiliy Fofanov <fofanov@act-europe.fr>
30272 Vincent Celier <celier@gnat.com>
30273
30274 * gnat_ugn.texi: Generalize "finding memory problems" section into a
30275 "memory management issues" section and document some of the useful
30276 memory pools provided as part of the GNAT library.
30277 Remove "virtual" from declaration of A::method2 in
30278 the simple example of Ada/C++ mixed system.
30279 Library Projects may be virtually extended: their virtual extensions
30280 are not Library Projects.
30281 Added section on extending project hierarchies.
30282
d65c6710 302832004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
aa75e737
AL
30284
30285 * adaint.c (__gnat_get_libraries_from_registry): Cast value
30286 to LPBYTE.
30287 (__gnat_portable_spawn): Remove const.
30288
30289 * mingw32.h (MAXPATHLEN): Check for previous definition.
30290
95e19580
MK
302912004-10-17 Matthias Klose <doko@debian.org>
30292
30293 * gnatvsn.ads: Set gnat library version to 4.0.
30294
88a6ecb6
VC
302952004-10-05 Vincent Celier <celier@gnat.com>
30296
a1286ef5 30297 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
88a6ecb6 30298
9e94c78f 302992004-10-04 Laurent Guerby <laurent@guerby.net>
110aba14
LG
30300
30301 PR ada/15156
30302 * Makefile.in: Define and use RANLIB_FLAGS.
88a6ecb6 30303
09552763
PO
303042004-10-04 Pascal Obry <obry@gnat.com>
30305
30306 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30307 other x86 platforms).
30308
a8e490b7
OH
303092004-10-04 Olivier Hainque <hainque@act-europe.fr>
30310
30311 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30312 in general and triggers stack alignment adjustment for thread entry
30313 points on targets where this is necessary.
30314
71c10a83
BB
303152004-10-04 Bernard Banner <banner@gnat.com>
30316
30317 PR ada/13897
71c10a83
BB
30318 * Makefile.in: Add section for powerpc linux
30319 Add variant i-vxwork-x86.ads
30320
30321 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30322
9a03df55
OH
303232004-10-04 Olivier Hainque <hainque@act-europe.fr>
30324
30325 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30326 table registration calls when need be. Ensures no reference to the crt
30327 ctors symbol are issued in the SJLJ case, which avoids possible
30328 undefined symbol errors in the case of modules to be statically linked
30329 with the kernel.
30330
28d6470f
JM
303312004-10-04 Javier Miranda <miranda@gnat.com>
30332
30333 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30334 in-line the code corresponding to subprogram Analyze_Actuals. In
30335 addition, analyze the actuals only in case of subprogram call.
30336
06237875
EF
303372004-10-04 Ed Falis <falis@gnat.com>
30338
30339 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30340
259d6c3a
SR
303412004-10-04 Sergey Rybin <rybin@act-europe.fr>
30342
30343 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30344 in the documentation.
30345
6f21ed26
RD
303462004-10-04 Robert Dewar <dewar@gnat.com>
30347
30348 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30349 IF and CASE.
30350 (Analyze_Block_Statement): Add circuitry to detect following dead code
30351 (Check_Unreachable_Code): Handle case of block exit
30352
4cded177
RD
303532004-10-04 Robert Dewar <dewar@gnat.com>
30354
30355 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30356 (XMatchD): Avoid warning for Logic_Error call
30357
c6a60aa1
RD
303582004-10-04 Robert Dewar <dewar@gnat.com>
30359
30360 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30361 consider expressions buried within a procedure actual to be an actual.
30362 This caused some blowups with uses of packed slices within a procedure
30363 actual.
30364
1fdebfe5
RD
303652004-10-04 Robert Dewar <dewar@gnat.com>
30366
30367 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30368 longer need to be initialized to zero.
30369 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30370 initialized to zero.
30371
30372 * checks.adb (Expr_Known_Valid): Packed arrays are now always
30373 considered valid, even if the representation is modular. That's correct
30374 now that we no longer initialize packed modular arrays to zero.
30375
30376 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30377 suffixes. These are now documented as the only cases in which the
30378 debugger ignores outer records.
30379 Previously, the spec allowed arbitrary suffixes for this purpose.
30380 Change name of LJM to JM for packed array pad records
30381 Create separate section on packed array handling, and add a whole new
30382 set of comments to this section describing the situation with packed
30383 modular types and justification requirements depending on endianness.
30384
cd91501c
RD
303852004-10-04 Robert Dewar <dewar@gnat.com>
30386
30387 * a-except.adb: Add a comment for last change
30388
30389 * einfo.ads: Minor spelling correction in comment
30390
30391 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30392
30393 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30394 messages.
30395
30396 * sem_util.ads: Minor comment update
30397
c71c53a8
ES
303982004-10-04 Ed Schonberg <schonberg@gnat.com>
30399
30400 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30401 Inline_Always when in Configurable_Run_Time mode.
30402
30403 * sem_prag.adb (Process_Convention): If entity is an inherited
30404 subprogram, apply convention to parent subprogram if in same scope.
30405 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30406 when in Configurable_Run_Time mode.
30407
71d9e9f2
ES
304082004-10-04 Ed Schonberg <schonberg@gnat.com>
30409
30410 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30411 class_wide type after component list has been inherited.
30412
0b525bee
ES
304132004-10-04 Ed Schonberg <schonberg@gnat.com>
30414
30415 * sem_ch12.adb (Check_Generic_Actuals): New predicate
30416 Denotes_Previous_Actual, to handle properly the case of a private
30417 actual that is also the component type of a subsequent array actual.
30418 The visibility status of the first actual is not affected when the
30419 second is installed.
30420 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30421 make fully recursive the treatment of formals of packages declared
30422 with a box.
30423 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30424 the above on exit from an instantiation.
30425 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30426 current instantiation which is now complete.
30427 (Analyze_Package_Instantiation): No instantiated body is needed if the
30428 main unit is generic. Efficient, and avoid anomalies when a instance
30429 appears in a package accessed through rtsfind.
30430
27ad9660
ES
304312004-10-04 Ed Schonberg <schonberg@gnat.com>
30432
30433 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30434 do not generate a declaration for a temporary if the call is part of a
30435 library-level instantiation.
30436
1c6c6771
ES
304372004-10-04 Ed Schonberg <schonberg@gnat.com>
30438
30439 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30440 searching for a limited component to flag.
30441
30442 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30443 expansion of Input, to account for the fact that the implicit call
30444 generated by the attribute reference must freeze the user-defined
30445 stream subprogram. This is only relevant to 'Input, because it can
30446 appear in an object declaration, prior to the body of the subprogram.
30447
30448 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30449 expansion can proceed and further errors uncovered.
30450 (Minor clean up): Fix cases of using | instead of \ for continuation
30451 messages.
30452
8005f3e5
RK
304532004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30454
30455 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30456
30457 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30458 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30459 Use gcc_assert and gcc_unreachable.
30460
30461 * decl.c (gnat_to_gnu_entity, case object): Check and process a
30462 specified alignment before validating size.
30463 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30464 stripped-down declaration for the type of the inner field when making
30465 a JM type.
30466
30467 * utils.c (finish_record_type): Do not compute the size in units
30468 incrementally. Instead compute it once for the rep clause case.
30469 Use gcc_assert and gcc_unreachable.
30470
6a294a29
VC
304712004-10-04 Vincent Celier <celier@gnat.com>
30472
30473 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30474 in file name.
30475 (Is_Valid_Path_Name): Take '/' as a directory separator.
30476
9a080ea3
VC
304772004-10-04 Vincent Celier <celier@gnat.com>
30478
30479 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30480 (Extended_Project) only if Extended_Project is defined, to avoid
30481 assertion error.
30482 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30483 resolved path.
30484 (Parse_Single_Project): Ditto.
30485
30486 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30487 Add_To_Project_Path for virtual projects.
30488
51004cb5
VC
304892004-10-04 Vincent Celier <celier@gnat.com>
30490
15cd18b9
SS
30491 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30492 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30493 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
51004cb5
VC
30494 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30495 parameter Options_2.
30496
30497 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30498 Build_Dynamic_Library with an empty Options_2.
30499
30500 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30501 default anymore.
30502
30503 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30504 directory separator, if any.
30505 (Gprmake): Do not allow mains on the command line for library projects.
30506 Do not attempt to link when the project is a library project.
30507 (Library_Opts): New table to store Library_Options.
30508 (Build_Library): If Library_Options is specified, pass these options
30509 when building a shared library.
30510
3b37ffbf
JR
305112004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30512
30513 * s-tposen.adb (Service_Entry): The object must be always unlocked at
30514 the end of this procedure now that the unlock operation was inserted
30515 by the expander.
30516
b23e28d5
JR
305172004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30518
30519 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30520 corresponding to the Preallocated_Stacks flags in System.
30521 (Get_Target_Parameters): Including the processing for
30522 Preallocated_Stacks.
30523
15cd18b9
SS
30524 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30525 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30526 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30527 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30528 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30529 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30530 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30531 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30532 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30533 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
b23e28d5
JR
30534 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30535 used to signal whether the compiler creates the required stacks and
30536 descriptors for the different tasks (when True) or it is done by the
30537 underlying operating system at run time (when False).
30538 It is initially set to False in all targets.
30539
30540 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30541 if it is supported by the target.
30542 (Make_Task_Create_Call): Pass the stack address if it has been
30543 previously created. Otherwise pass a Null_Address.
30544
30545 * snames.adb: Add _stack.
30546
30547 * snames.ads: Add Name_uStack. Required to allow the expander to
30548 statically allocated task stacks.
30549
30550 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30551 Stack_Address argument.
30552 Check that its value is equal to Null_Address because this target does
30553 not support the static stack allocation.
30554
6fd459bb
TQ
305552004-10-04 Thomas Quinot <quinot@act-europe.fr>
30556
30557 * usage.adb: Change "pragma inline" to "pragma Inline" in information
30558 and error messages
30559
5885facb
TQ
305602004-10-04 Thomas Quinot <quinot@act-europe.fr>
30561
30562 * exp_dist.adb: Split declaration of asynchronous flag out of
30563 Add_RACW_Read_Attribute.
30564 Minor reformatting for better alignment with PolyORB version.
30565 Store the entity for the asynchronous flag of an RACW, rather than the
30566 expression, in the asynchronous flags table. This will allow this flag
30567 to be used in other subprograms beside Add_RACW_Read_Attribute.
30568
d6c7ed50
TQ
305692004-10-04 Thomas Quinot <quinot@act-europe.fr>
30570
30571 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
15cd18b9
SS
30572 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30573 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30574 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
d6c7ed50
TQ
30575 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
30576 sockets constant MSG_NOSIGNAL (Linux-specific).
30577 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30578 all Send operations.
30579 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30580 from trigerring SIGPIPE.
30581 Rename components to avoid clash with Ada 2005 possible reserved
30582 word 'interface'.
30583 (Check_Selector): When the select system call returns with an error
30584 condition, propagate Socket_Error to the caller.
30585
0f0377f6
JH
305862004-10-01 Jan Hubicka <jh@suse.cz>
30587
30588 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30589
2c9beb8a
RD
305902004-09-23 Robert Dewar <dewar@gnat.com>
30591
30592 PR ada/17540
2c9beb8a
RD
30593 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30594 instead do this at freeze time (we won't do it if there is an address
30595 clause).
30596 Change "pragma inline" to "pragma Inline" in information and error
30597 messages.
30598 Minor reformatting.
30599
30600 * freeze.adb (Check_Address_Clause): Remove previous change, not the
30601 right way of doing things after all.
30602 (Freeze_Entity): For object, set Is_Public for imported entities
30603 unless there is an address clause present.
30604
2494e673
OH
306052004-09-21 Olivier Hainque <hainque@act-europe.fr>
30606
30607 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30608 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30609 ensures proper handling of types with rep clauses, which might have
30610 their TYPE_SIZE set already.
30611
910d20fc
RD
306122004-09-21 Robert Dewar <dewar@gnat.com>
30613
30614 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30615 packed array types in both little- and big-endian cases. This change
30616 ensures that we no longer count on the unused bits being initialized
30617 for such types (and in particular ensures that equality testing will
30618 only read the relevant bits).
30619 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30620 These changes mean that we no longer need to initialize small packed
30621 arrays.
30622 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30623 optimization to an LJM field as to its parent field.
30624
30625 * ada-tree.h, trans.c, utils.c, utils2.c:
30626 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30627
8f235343
JH
306282004-09-20 Jan Hubicka <jh@suse.cz>
30629
30630 * utils.c (gnat_finalize): Remove.
30631 (end_subprog_body): Directly call cgraph_finalize_function;
30632 do not lower the nested functions.
30633
bb9be5eb
RD
306342004-09-20 Robert Dewar <dewar@gnat.com>
30635
30636 PR ada/17540
bb9be5eb
RD
30637 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30638 if an address clause is present, since that means that the Import
30639 should be ignored.
30640
796ef2e2
AC
306412004-09-20 Arnaud Charlet <charlet@act-europe.fr>
30642
30643 * 5tsystem.ads: Removed, no longer used.
30644
6615c446
JO
306452004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
30646 Zack Weinberg <zack@codesourcery.com>
30647
30648 * ada-tree.def: Use tree_code_class enumeration constants
30649 instead of code letters.
30650 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30651 Update for new tree-class enumeration constants.
30652
93ed8a01
VC
306532004-09-17 Vincent Celier <celier@gnat.com>
30654
30655 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30656 capabilities of the general project manager.
30657
c885d7a1
AC
306582004-09-09 Vincent Celier <celier@gnat.com>
30659
30660 * a-direct.ads: Add pragma Ada_05
30661 (Directory_Entry_Type): Give default value to component Kind to avoid
30662 not initialized warnings.
30663
30664 * a-direct.adb (Current_Directory): Remove directory separator at the
30665 end.
30666 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30667 an existing directory.
30668 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30669 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30670 Convert the result to File_Size.
30671
30672 * prj.ads: (Project_Error): New exception
30673
30674 * prj-attr.adb: Except in procedure Initialize, Fail comes from
30675 Prj.Com, not from Osint.
30676 (Attrs, Package_Attributes): Tables moved to private part of spec
30677 (Add_Attribute, Add_Unknown_Package): Moved to new child package
30678 Prj.Attr.PM.
30679 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30680 Prj.Project_Error after call to Fail.
30681 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30682 Fail. Check that package name is not already in use.
30683
30684 * prj-attr.ads: Comment updates to indicate that all subprograms may be
30685 used by tools, not only by the project manager, and to indicate that
30686 exception Prj.Prj_Error may be raised in case of problem.
30687 (Add_Unknown_Package, Add_Attribute): Moved to new child package
30688 Prj.Attr.PM.
30689 (Attrs, Package_Attributes): Table instantiations moved from the body to
30690 the private part to be accessible from Prj.Attr.PM body.
30691
30692 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30693 from new package Prj.Attr.PM.
30694 (Parse_Attribute_Declaration): Call Add_Attribute from new package
30695 Prj.Attr.PM.
30696
30697 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30698
30699 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30700 instead of Elaboration_Checks).
30701
30702 * a-calend.adb: Minor reformatting
30703
307042004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30705
30706 * gigi.h (maybe_pad_type): New declaration.
30707 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30708
30709 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30710
30711 * cuintp.c: Convert to use buildN.
30712
30713 * decl.c (maybe_pad_type): No longer static.
30714 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30715 target pointer.
30716 Convert to use buildN.
30717
30718 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30719 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
30720 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30721 RHS.
30722 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30723 (gnat_gimplify_expr, case ADDR_EXPR): New case.
30724 Convert to use buildN.
30725
30726 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30727 TREE_READONLY for const.
30728 Convert to use buildN.
30729
30730 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30731 (create_var_decl): Refine when TREE_STATIC is set.
30732 Convert to use buildN.
30733
307342004-09-09 Gary Dismukes <dismukes@gnat.com>
30735
30736 * gnat_ugn.texi: Delete text relating to checking of ali and object
30737 consistency.
30738
30739 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30740 routines.
30741
307422004-09-09 Jose Ruiz <ruiz@act-europe.fr>
30743
30744 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30745 pragmas recognized by GNAT.
30746
30747 * gnat_rm.texi: Document pragma Detect_Blocking.
30748
30749 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30750 raise Program_Error if called from a protected operation.
30751
30752 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30753 the protected action nesting level.
30754 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30755 protected action nesting level.
30756 (Unlock): When pragma Detect_Blocking is active decrease the protected
30757 action nesting level.
30758
30759 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30760 Protected_Action_Nesting.
30761
30762 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30763 Common_ATCB record. It contains the dynamic level of protected action
30764 nesting for each task. It is needed for checking whether potentially
30765 blocking operations are called from protected operations.
30766 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30767 Detect_Blocking is active or not in the partition.
30768
30769 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30770 raise Program_Error if called from a protected operation.
30771 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30772 Program_Error if called from a protected operation.
30773 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30774 Program_Error if called from a protected operation.
30775
30776 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30777 raise Program_Error if called from a protected operation.
30778
30779 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30780 raise Program_Error if called from a protected operation, and increase
30781 the protected action nesting level.
30782 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30783 Program_Error if called from a protected operation, and increase the
30784 protected action nesting level.
30785 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30786 protected action nesting level.
30787
30788 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30789 raise Program_Error if called from a protected operation, and increase
30790 the protected action nesting level.
30791 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30792 Program_Error if called from a protected operation, and increase the
30793 protected action nesting level.
30794 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30795 raise Program_Error if called from a protected operation.
30796 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30797 active, raise Program_Error if called from a protected operation.
30798 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30799 protected action nesting level.
30800
30801 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30802 insertion of the statement raising Program_Error. The run time
30803 contains the required machinery for handling that.
30804
30805 * sem_util.ads: Change comment associated to procedure
30806 Check_Potentially_Blocking_Operation.
30807 This procedure does not insert a call for raising the exception because
30808 that is currently done by the run time.
30809
30810 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30811
30812 * init.c: Add the global variable __gl_detect_blocking that indicates
30813 whether pragma Detect_Blocking is active (1) or not (0). Needed for
30814 making the pragma available at run time.
30815 (__gnat_set_globals): Pass and update the detect_blocking parameter.
30816
30817 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30818 pragma Detect_Blocking is active.
30819
30820 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30821
30822 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30823 DB is found in the ali file. Any unit compiled with pragma
30824 Detect_Blocking active forces its effect in the whole partition.
30825
30826 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30827 Detect_Blocking is active and delay is called from a protected
30828 operation.
30829
30830 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30831 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30832 Detect_Blocking is active (0 otherwise).
30833 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30834 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30835 otherwise).
30836
308372004-09-09 Thomas Quinot <quinot@act-europe.fr>
30838
30839 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30840 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30841 package.
30842
30843 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30844 (Register_Receiving_Stub): Add Subp_Info formal parameter.
30845 Update API in placeholder implemetation of s-parint to reflect changes
30846 in distribution runtime library.
30847
30848 * sem_ch3.adb (Expand_Derived_Record): Rename to
30849 Expand_Record_Extension.
30850
30851 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30852 primitive operations of potentially distributed object types that have
30853 non-controlling anonymous access formals.
30854
30855 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30856 subprogram.
30857 New implementation of expansion for remote access-to-subprogram types,
30858 based on the RACW infrastructure.
30859 This version of sem_dist is compatible with PolyORB/DSA as well as
30860 GLADE.
30861
30862 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30863 Asynchrronous that applies to a remote access-to-subprogram type, mark
30864 the underlying RACW type as asynchronous.
30865
30866 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30867 __gnat_using_gnu_linker to 1.
30868
30869 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30870 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30871 GNAT.Perfect_Hash_Generators, and remove the empty
30872 GNAT.Perfect_Hash package.
30873
30874 * atree.adb: Minor reformatting
30875
30876 * exp_ch3.adb (Expand_Derived_Record): Rename to
30877 Expand_Record_Extension.
30878 (Build_Record_Init_Proc.Build_Assignment): The default expression in
30879 a component declaration must remain attached at that point in the
30880 tree so New_Copy_Tree copies it if the enclosing record type is derived.
30881 It is therefore necessary to take a copy of the expression when building
30882 the corresponding assignment statement in the init proc.
30883 As a side effect, in the case of a derived record type, we now see the
30884 original expression, without any rewriting that could have occurred
30885 during expansion of the ancestor type's init proc, and we do not need
30886 to go back to Original_Node.
30887
30888 * exp_ch3.ads (Expand_Derived_Record): Rename to
30889 Expand_Record_Extension.
30890
30891 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30892 Returns the RACW type used to implement a remote access-to-subprogram
30893 type.
30894 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30895 New subprograms. Used to create a proxy tagged object for a remote
30896 subprogram. The proxy object is used as the designated object
30897 for RAS values on the same partition (unless All_Calls_Remote applies).
30898 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30899 System.Partition_Interface.Get_Unique_Remote_Pointer.
30900 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30901 Renamed from Add_RAS_*_Attribute.
30902 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30903 subprograms.
30904 New implementation of expansion for remote access-to-subprogram types,
30905 based on the RACW infrastructure.
30906
30907 * exp_dist.ads (Copy_Specification): Update comment to note that this
30908 function can copy the specification from either a subprogram
30909 specification or an access-to-subprogram type definition.
30910
309112004-09-09 Ed Schonberg <schonberg@gnat.com>
30912
30913 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30914 in an instance, between an explicit subprogram an one inherited from a
30915 type derived from an actual.
30916
30917 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30918 add a polling call if the subprogram is to be inlined by the back-end,
30919 to avoid repeated calls with multiple inlinings.
30920
30921 * checks.adb (Apply_Alignment_Check): If the expression in the address
30922 clause is a call whose name is not a static entity (e.g. a dispatching
30923 call), treat as dynamic.
30924
309252004-09-09 Robert Dewar <dewar@gnat.com>
30926
30927 * g-trasym.ads: Minor reformatting
30928
30929 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30930 packed arrays, since unused bits are expected to be zero for a
30931 comparison.
30932
309332004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
30934
30935 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30936 comment.
30937
309382004-09-09 Pascal Obry <obry@gnat.com>
30939
30940 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30941 enable map file generation. Add the right option to generate the map
30942 file if Map_File is set to True.
30943
30944 * gnatdll.adb (Gen_Map_File): New variable.
30945 (Syntax): Add info about new -m (Map_File) option.
30946 (Parse_Command_Line): Add support for -m option.
30947 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30948 Minor reformatting.
30949
309502004-09-09 Laurent Pautet <pautet@act-europe.fr>
30951
30952 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30953 new gnatdist implementation.
30954 Define a subpackage isolating the output routines specific to this
30955 verbose mode.
30956
309572004-09-09 Joel Brobecker <brobecker@gnat.com>
30958
30959 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30960
30961 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30962
309632004-09-09 Cyrille Comar <comar@act-europe.fr>
30964
30965 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30966 internal unit.
30967
30968 * opt.ads: Add Ada_Version_Runtime constant used to decide which
30969 version of the language is used to compile the run time.
30970
309712004-09-09 Arnaud Charlet <charlet@act-europe.fr>
30972
30973 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30974 of variable length temporaries for function return now that the
30975 back-end and gigi support it.
30976
23c7b149 309772004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6cdb2c6e
AC
30978
30979 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30980
30981 * trans.c (struct stmt_group): Delete field GLOBAL.
30982 (gnat_init_stmt_group): Do not initialize it.
30983 (call_to_gnu): Use save_expr, not protect_multiple_eval.
30984 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30985 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30986 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30987 (start_stmt_group): Likewise.
30988 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30989
30990 * utils2.c (ggc.h): Include.
30991 (build_call_raise): Call build_int_cst, not build_int_2.
30992
30993 * utils.c (gnat_init_decl_processing): Fix arg to
30994 build_common_tree_nodes.
30995 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30996 (gnat_define_builtin): Set built_in_decls.
30997 (init_gigi_decls): Call build_int_cst, not build_int_2.
30998
30999 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
31000 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
31001 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
31002 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
31003 SET_TYPE_MODULE): Use them.
31004 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
31005 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
31006 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
31007 SET_TYPE_ADA_SIZE): Likewise.
31008 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
31009 (DECL_CONST_CORRESPONDING_VAR,
31010 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
31011 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
31012 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
31013 (TYPE_RM_SIZE_NUM): New macro.
31014 (TYPE_RM_SIZE): Modified to use above.
31015
31016 * cuintp.c: (build_cst_from_int): New function.
31017 (UI_To_gnu): Use it.
31018
31019 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
31020 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
31021 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
31022 MIN_EXPR for the size, copy it into new.
31023
23c7b149 310242004-09-01 Robert Dewar <dewar@gnat.com>
6cdb2c6e
AC
31025
31026 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
31027 packed indexed component where array is an IN OUT formal. This
31028 generated garbage code previously.
31029
31030 * gnat_ugn.texi: Document -fverbose-asm
31031
31032 * gnat-style.texi: Minor updates (note that boolean constants and
31033 variables are joined with AND/OR rather than short circuit forms).
31034
23c7b149 310352004-09-01 Ed Schonberg <schonberg@gnat.com>
6cdb2c6e
AC
31036
31037 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
31038 it is an upward conversion of an untagged type with no representation
31039 change.
31040
23c7b149 310412004-09-01 Thomas Quinot <quinot@act-europe.fr>
6cdb2c6e
AC
31042
31043 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
31044 System.Partition_Interface.
31045
31046 * checks.adb (Apply_Access_Checks): Do not generate checks when
31047 expander is not active (but check for unset reference to prefix of
31048 dereference).
31049
31050 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
31051 pragma Debug as an if statement with a constant condition, for
31052 consistent treatment of entity references contained within the
31053 enclosed procedure call.
31054
23c7b149 310552004-09-01 Vincent Celier <celier@gnat.com>
6cdb2c6e
AC
31056
31057 * bindgen.adb: (Set_EA_Last): New procedure
31058 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
31059 Set_EA_Last.
31060 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
31061 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
31062 linked without errors.
31063 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
31064 ST and EA.
31065 (Gen_Exception_Table_C): Correct same bugs
31066
31067 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
31068
31069 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
31070 on Windows, make sure that the drive letter is in upper case.
31071
31072 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
31073 Windows, when the drive letter is added and Case_Sensitive is True, the
31074 drive letter is forced to upper case.
31075
31076 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
31077 to Options_2 for the call to MLib.Utl.Gcc.
31078
31079 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
31080 directory separator when defining BASE_DIR.
31081
23c7b149 310822004-09-01 Pascal Obry <obry@gnat.com>
6cdb2c6e
AC
31083
31084 * gprcmd.adb (Extend): Do not output trailing directory separator. This
31085 is not needed and it confuses Windows GNU/make which does not report
31086 directory terminated by a slash as a directory.
31087 (gprcmd): Idem for "pwd" internal command.
31088
31089 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31090 target names rewrite to fix regressions with recent version of
31091 GNU/make. Starting with GNU/make 3.80 the pipe character was not
31092 handled properly anymore.
31093
4eb104c1
AS
310942004-09-01 Andreas Schwab <schwab@suse.de>
31095
31096 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31097 * raise.c [!IN_RTS]: Undef abort.
31098
6a6bfc8e
NS
310992004-08-27 Nathan Sidwell <nathan@codesourcery.com>
31100
ce552f75
NS
31101 * utils2.c (build_allocator): Use ssize_int.
31102
6a6bfc8e
NS
31103 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31104
f8b7bf58
AS
311052004-08-27 Andreas Schwab <schwab@suse.de>
31106
31107 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31108
15793d0c
NS
311092004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31110 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6615c446 31111
15793d0c
NS
31112 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31113
7d60be94
NS
311142004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31115
31116 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31117 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31118 * utils.c (init_gigi_decls): Likewise.
31119 * utils2.c (build_call_raise, build_allocator): Likewise.
6615c446 31120
8c1d6d62
NS
311212004-08-24 Nathan Sidwell <nathan@codesourcery.com>
31122
7d60be94 31123 * utils.c (gnat_init_decl_processing): Adjust
8c1d6d62
NS
31124 build_common_tree_nodes call.
31125
3224bead
NS
311262004-08-20 Nathan Sidwell <nathan@codesourcery.com>
31127
31128 * utils2.c (build_allocator): Use build_int_cst for negative
31129 size types.
31130
4766261d
RH
311312004-08-18 Richard Henderson <rth@redhat.com>
31132
31133 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31134
1f6c00df
NS
311352004-08-16 Nathan Sidwell <nathan@codesourcery.com>
31136
31137 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31138 call.s
31139 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31140 (gnat_to_gnu): Likewise.
31141
4c46b835
AC
311422004-08-16 Pascal Obry <obry@gnat.com>
31143
31144 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31145 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31146 option and not mdll anymore. Update comment.
31147
311482004-08-16 Pascal Obry <obry@gnat.com>
31149
31150 * bld.adb (Put_Include_Project): Properly handle directory separators
31151 on Windows.
31152
311532004-08-16 Ed Schonberg <schonberg@gnat.com>
31154
31155 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31156 decreasing the number of allocated junk nodes while searching for the
31157 appropriate subprogram.
31158
4a90aeeb
NS
311592004-08-15 Nathan Sidwell <nathan@codesourcery.com>
31160
31161 * cuintp.c (UI_To_gnu): Use build_int_cst..
31162 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31163 * utils.c (init_gigi_decls): Likewise.
31164 * utils2.c (build_call_raise): Likewise.
31165
244e5a2c
AC
311662004-08-13 Olivier Hainque <hainque@act-europe.fr>
31167
31168 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31169 for a global aliased object with a variable size and an unconstrained
31170 nominal subtype, pretend there is no initializer if the one we have is
31171 incomplete, and avoid referencing an inexistant component in there. The
31172 part we have will be rebuilt anyway and the reference may confuse
31173 further operations.
31174
311752004-08-13 Thomas Quinot <quinot@act-europe.fr>
31176
31177 * einfo.ads: Minor reformatting
31178
31179 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31180 restrictions in the ALI if we only want to warn about violations.
31181
311822004-08-13 Vincent Celier <celier@gnat.com>
31183
31184 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31185 when creating a new Unit_Record in table Units.
31186
31187 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31188 that are violated, if any.
31189
31190 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31191 add directory separator if path already ends with a directory separator.
31192
311932004-08-13 Ed Schonberg <schonberg@gnat.com>
31194
31195 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31196 unit, this is an attempt to inline a construct that is not available in
31197 the current restricted mode, so abort rather than trying to continue.
31198
31199 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31200 discriminants that rename those of the parent, recover names of
31201 original discriminants for the constraint on the full view of the
31202 parent.
31203 (Complete_Private_Subtype): Do not create a subtype declaration if the
31204 subtype is an itype.
31205
31206 * gnat_rm.texi: Added section on implementation of discriminated
31207 records with default values for discriminants.
31208
312092004-08-13 Ed Schonberg <schonberg@gnat.com>
31210
31211 PR ada/15601
31212 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31213 the second operand is overloaded.
31214
1a186ec5
RH
312152004-08-10 Richard Henderson <rth@redhat.com>
31216
31217 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31218 add __builtin_alloca.
31219
89f1a702
RH
312202004-08-10 Richard Henderson <rth@redhat.com>
31221
31222 * config-lang.in (boot_language): Yes.
31223
5d09245e
AC
312242004-08-09 Thomas Quinot <quinot@act-europe.fr>
31225
31226 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31227 from complaining on potential uninitialized reference.
31228 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31229 new specification and test explicitly for non-zero return value.
31230
31231 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31232 returning C.int, to avoid using a derived boolean type.
31233
31234 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31235 Duplicate_Subexpr_No_Checks in preference to direct use of
31236 Remove_Side_Effects and New_Copy_Tree.
31237 Clear Comes_From_Source on prefix of 'Size attribute reference.
31238
31239 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31240 g-socthi-vxworks.adb: Change calls to
31241 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31242 and test explicitly for non-zero return value.
31243
6615c446 31244 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
5d09245e
AC
31245 (Is_Socket_In_Set): Declare imported function as returning C.int, to
31246 avoid using a derived boolean type.
31247
312482004-08-09 Albert Lee <lee@gnat.com>
31249
31250 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31251
312522004-08-09 Pascal Obry <obry@gnat.com>
31253
31254 * gnat_ugn.texi: Document new way to build DLLs on Windows using
31255 GCC's -shared option.
31256
31257 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31258 Options_2 parameter (options put after object files).
31259
312602004-08-09 Olivier Hainque <hainque@act-europe.fr>
31261
31262 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31263 ignore overflows on low and high bounds of an index to also account for
31264 differences in signedness between sizetype and gnu_index_subtype.
31265 These are as legitimate as the ones caused by a lower TYPE_PRECISION
31266 on sizetype.
31267
312682004-08-09 Robert Dewar <dewar@gnat.com>
31269
31270 * s-solita.ads, s-solita.adb: Minor reformatting
31271
31272 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31273 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31274 obsolescent section
31275 Add note that No_Implicit_Conditionals does not suppress
31276 run time constraint checks.
31277
31278 * vms_conv.ads: Minor reformatting
31279
31280 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31281 and necessary for following change).
31282 (Mark): Return new format Mark_Id containing sec stack address
31283 (Release): Use sec stack address from Mark_Id avoiding Self call
31284
31285 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31286 pointer (cleanup and necessary for following change).
31287 Define Mark_Id as record containing address of secondary stack, that way
31288 Release does not need to find the stack again, decreasing the number of
31289 calls to Self and improving efficiency.
31290
31291 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31292
31293 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31294 case variable into the individual case branches when possible.
31295
31296 * sem_ch11.adb: Minor reformatting
31297
31298 * prj.ads: Correct spelling of suffixs
31299
31300 * prj-nmsc.adb: Minor reformatting
31301 Correct spelling suffixs throughout (also in identifiers)
31302
31303 * freeze.adb: Minor spelling correction
31304
31305 * exp_ch2.adb: Cleanups to handling of Current_Value
31306 (no functional effect).
31307
31308 * bld.adb: Correct spelling of suffixs
31309
31310 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31311
313122004-08-09 Ed Schonberg <schonberg@gnat.com>
31313
31314 PR ada/15408
5d09245e
AC
31315 * sem_ch7.adb (Install_Private_Declarations): In the body of the
31316 package or of a child, private entities are both immediately_visible
31317 and not hidden.
31318
313192004-08-09 Ed Schonberg <schonberg@gnat.com>
31320
31321 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31322 there are no range checks on the value of the literal.
31323
31324 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31325 wrapped is the triggering alternative of an asynchronous select, action
31326 statements mustbe inserted before the select itself.
31327
31328 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31329 case where the prefix is a protected function call.
31330 (Resolve_Attribute, case 'Access): The attribute reference on a
31331 subprogram is legal in a generic body if the subprogram is declared
31332 elsewhere.
31333
313342004-08-09 Vincent Celier <celier@gnat.com>
31335
31336 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31337 languages, otherwise building the library may fail with unresolved
31338 symbols.
31339 (Compile_Sources): Do not build libraries if -c switch is used
31340
31341 * gnatlink.adb (Process_Args): New switches -M and -Mmap
31342 (Write_Usage): If map file creation is supported, output new switches
31343 -M and -Mmap.
31344 (Gnatlink): When -M is specified, add the necessary switch(es) to the
31345 gcc call, when supported.
31346
31347 * Makefile.in: Added indepsw.o to the object list for gnatlink
31348 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31349
31350 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31351 indepsw.adb, indepsw.ads: New files.
31352
313532004-08-09 Bernard Banner <banner@gnat.com>
31354
31355 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31356
31357 * Makefile.in: add section for vxworks x86
31358
313592004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
31360
31361 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31362 per-object constrained components where the discriminant is of an
31363 Access type.
31364 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31365 the parent initialization procedure for derived Unchecked_Unions.
31366 Instead, derived Unchecked_Unions build their own initialization
31367 procedure.
31368 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31369 Check the body of the subprogram for details.
31370 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31371 functions for derived Unchecked_Union types by introducing a condition.
31372 Allow the creation of TSS equality functions for Unchecked_Unions.
31373 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31374 Add formal parameter Discr to function signature. Discr is used to
31375 control the generated case statement for Unchecked_Union types.
31376 (Make_Eq_If): Rename formal parameter Node to E in function signature.
31377
31378 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31379 Unchecked_Unions.
31380 Check the body of the subprogram for details.
31381 (Expand_Composite_Equality): Augment composite type equality to include
31382 correct handling of Unchecked_Union components.
31383 (Expand_N_In): Add condition to detect illegal membership tests when the
31384 subtype mark is a constrained Unchecked_Union and the expression lacks
31385 inferable discriminants, and build a Raise_Program_Error node.
31386 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31387 to detect types that contain components of unconstrained Unchecked_Union
31388 subtype. Add condition to detect equality between types that have an
31389 unconstrained Unchecked_Union component, and build a Raise_Program_Error
31390 node. Add condition to detect equality between Unchecked_Union types
31391 that lack inferable discriminants, and build a Raise_Program_Error node.
31392 Otherwise build a TSS equality function call.
31393 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31394 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31395 with the operand lacking inferable discriminants, and build a Raise_
31396 Program_Error node.
31397 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31398 composite equality.
31399 (Has_Inferable_Discriminants): Implement new predicate for objects and
31400 expressions of Unchecked_Union type. Check the body of subprogram for
31401 details.
31402 (Has_Unconstrained_UU_Components): Add function
31403 Component_Is_Unconstrained_UU. It is used to detect whether a single
31404 component is of an unconstrained Unchecked_Union subtype. Add function
31405 Variant_Is_Unconstrained_UU. It is used to detect whether a single
31406 component inside a variant is of an unconstrained Unchecked_Union type.
31407
31408 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31409 inferred discriminant values. Add condition to generate a case
31410 statement with an inferred discriminant as the switch.
31411 (Make_Component_List_Assign): Introduce a Boolean flag that determines
31412 the behaviour of the subprogram in the presence of an Unchecked_Union.
31413 Add condition to trigger the usage of the inferred discriminant value
31414 as the generated case statement switch.
31415 (Make_Field_Assign): Introduce a Boolean flag that determines the
31416 behaviour of the subprogram in the presence of an Unchecked_Union. Add
31417 condition to trigger the usage of the inferred discriminant value as
31418 the right-hand side of the generated assignment.
31419
31420 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31421 parameter generation when dealing with Unchecked_Unions.
31422
31423 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31424 checks for Unchecked_Unions.
31425
31426 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31427
31428 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31429 Raise_Program_Error nodes for the execution of Read and Write
31430 attributes of Unchecked_Union types and the execution of Input and
31431 Output attributes of Unchecked_Union types that lack default
31432 discriminant values.
31433
31434 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31435 Unchecked_Union. Add procedure Check_Component. It is used to inspect
31436 per-object constrained components of Unchecked_Unions for being
31437 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31438 check individual components withing a variant.
31439
31440 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31441 comparison of Unchecked_Unions.
31442 (Resolve_Equality_OP): Remove guard that prevents equality between
31443 Unchecked_Unions.
31444
31445 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31446 of component subtypes for Unchecked_Union components.
31447 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31448 since it is the actual subtype.
31449
31450 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31451 pass of Unchecked_Union subtypes as generic actuals to formal types
31452 that lack known_discriminant_parts or that are derived Unchecked_Union
31453 types, and do nothing. In any other case, produce an error message.
31454
31455 * sem_ch3.adb (Analyze_Component_Declaration): Add function
31456 Contains_POC. It determines whether a constraint uses the discriminant
31457 of an enclosing record type.
31458 Add condition to detect per-object constrained component and set the
31459 appropriate flag.
31460 (Derived_Type_Declaration): Remove guard that prevents derivation from
31461 Unchecked_Union types.
31462 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31463 Union subtypes.
31464
31465 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31466 references to Unchecked_Union discriminants.
31467
31468 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31469 formal generation when dealing with Unchecked_Unions.
31470 (Set_Actual_Subtypes): Add condition to prevent generation of actual
31471 subtypes for Unchecked_Unions.
31472
31473 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31474 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31475 completions of discriminated partial views by Unchecked_Unions and
31476 produce an error message.
31477
314782004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31479
31480 * trans.c (struct stmt_group): New field, GLOBAL.
31481 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31482 (struct elab_info): New struct.
31483 (elab_info_list, gnu_elab_proc_stack): New variables.
31484 (Compilation_Unit_to_gnu): New procedure.
31485 (gigi): Call it and also handle elaboration procs we've saved.
31486 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31487 global field from parent.
31488 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31489 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31490 (start_stmt_group): Initialize global field from parent.
31491 (add_decl_expr): Set to global for current statement group.
31492 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31493 post.
31494
31495 * utils.c (global_bindings_p): True when no current_function_decl; no
31496 longer check current_binding_level.
31497
314982004-08-09 Ben Brosgol <brosgol@gnat.com>
31499
31500 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31501 choice.
31502
31503 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31504
160ff372
AS
315052004-08-06 Andreas Schwab <schwab@suse.de>
31506
31507 * utils.c (gnat_define_builtin): Remove second parameter of
31508 make_decl_rtl.
31509 (begin_subprog_body): Likewise.
31510
615cbd95
AC
315112004-07-26 Arnaud Charlet <charlet@act-europe.fr>
31512
31513 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31514 optimization, not supported by the tree-ssa back-end.
31515
315162004-07-26 Olivier Hainque <hainque@act-europe.fr>
31517
31518 * s-mastop-irix.adb: Update comments.
31519
31520 * a-except.adb (Exception_Information): Raise Constraint_Error if
31521 exception Id is Null_Id.
31522 This is required behavior, which is more reliably and clearly checked
31523 at the top level interface level.
31524
315252004-07-26 Javier Miranda <miranda@gnat.com>
31526
31527 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31528 call if a component has no default_expression and the box is used.
31529
31530 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31531 default_expression and you use box, it behaves as if you had declared a
31532 stand-alone object.
31533 (Resolve_Record_Aggregate): If a component has no default_expression and
31534 you use box, it behaves as if you had declared a stand-alone object.
31535
31536 * sem_ch10.adb (Install_Siblings): Do not make visible the private
31537 entities of private-with siblings.
31538
315392004-07-26 Ed Schonberg <schonberg@gnat.com>
31540
31541 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31542 for a component of an itype, set the parent pointer for analysis,
31543 there is no list in which to insert it.
31544
31545 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31546 bona-fide renamings, not for inherited operations.
31547
31548 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31549 actual for a formal that is an access parameter, create local
31550 finalization list even if the expression is not an aggregate.
31551
315522004-07-26 Ed Schonberg <schonberg@gnat.com>
31553
31554 PR ada/16213
31555 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31556 Diagnose properly illegal subprogram renamings that are library units.
31557
315582004-07-26 Ed Schonberg <schonberg@gnat.com>
31559
31560 PR ada/15588
31561 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31562 conversion rewritten as an unchecked conversion, check that original
31563 expression is a variable.
31564
31565 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31566 unchecked_conversion, create new node rather than rewriting in place,
31567 to preserve original construct.
31568
315692004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31570
31571 * gigi.h (gnat_expand_body): Deleted.
31572
31573 * Make-lang.in: (trans.o): Depends on function.h.
31574
31575 * misc.c: (gnat_expand_body): Moved to here.
31576
31577 * trans.c (gnat_expand_body_1): Deleted.
31578 (gnat_expand_body): Moved from here.
31579 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31580 (add_stmt): Check for marked visited with global_bindings_p.
31581 (gnat_gimplify_expr, case COMPONENT_REF): New case.
31582 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31583
31584 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31585 VIEW_CONVERT_EXPR if not operation type.
31586
31587 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31588 fat pointer.
31589
31590 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31591 changes: reformatting of negation operators, removing unneeded
31592 inequality comparison with zero, converting equality comparisons with
31593 zero to negations, changing int/0/1 to bool/false/true, replace calls
31594 to gigi_abort with abort, and various other similar changes.
31595
315962004-07-26 Vincent Celier <celier@gnat.com>
31597
31598 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31599 "setup".
31600
31601 * make.adb (Gnatmake): Fail when a library is not present and there is
31602 no object directory.
31603
31604 * mlib-prj.adb (Check_Library): No need to check if the library needs
31605 to be rebuilt if there is no object directory, hence no object files
31606 to build the library.
31607
31608 * opt.ads (Setup_Projects): New Boolean flag.
31609
31610 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31611 Location.
31612 Create directory when Kind /= "" and in "gnat setup". Report error if
31613 directory cannot be created.
31614 (Ada_Check): Create library interface copy dir if it does not exist
31615 and we are in "gnat setup".
31616 (Find_Sources): No error if in "gnat setup" and no Ada sources were
31617 found.
31618 (Language_Independent_Check): Create object directory, exec directory
31619 and/or library directory if they do not exist and we are in
31620 "gnat setup".
31621
31622 * vms_conv.ads: (Command_Type): New command Setup.
31623
31624 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31625
31626 * vms_data.ads: Add qualifiers/switches for new built-in command
31627 "setup".
31628
b785f485
RH
316292004-07-25 Richard Henderson <rth@redhat.com>
31630
31631 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31632 DECL_IGNORED_P on RESULT_DECL.
31633
35ae2ed8
AC
316342004-07-20 Olivier Hainque <hainque@act-europe.fr>
31635
31636 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31637 allocation and potentially overflowing update with
31638 Tailored_Exception_Information. Use the sec-stack free procedural
31639 interface to output Exception_Information instead.
31640
31641 * a-except.adb (To_Stderr): New subprogram for character, and string
31642 version moved from a-exextr to be visible from other separate units.
31643 (Tailored_Exception_Information): Remove the procedural version,
31644 previously used by the default Last_Chance_Handler and not any more.
31645 Adjust various comments.
31646
31647 * a-exexda.adb: Generalize the exception information procedural
31648 interface, to minimize the use of secondary stack and the need for
31649 local buffers when the info is to be output to stderr:
31650 (Address_Image): Removed.
31651 (Append_Info_Character): New subprogram, checking for overflows and
31652 outputing to stderr if buffer to fill is of length 0.
31653 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31654 (Append_Info_Address, Append_Info_Exception_Name,
31655 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31656 Append_Info_Basic_Exception_Traceback,
31657 Append_Info_Exception_Information): New subprograms.
31658 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31659 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31660 Exception_Info_Maxlength, Exception_Name_Length,
31661 Exception_Message_Length): New subprograms.
31662 (Exception_Information): Use Append_Info_Exception_Information.
31663 (Tailored_Exception_Information): Use
31664 Append_Info_Basic_Exception_Information.
31665 Export services for the default Last_Chance_Handler.
31666
31667 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31668 other separate units.
31669
316702004-07-20 Vincent Celier <celier@gnat.com>
31671
31672 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31673
316742004-07-20 Ed Schonberg <schonberg@gnat.com>
31675
31676 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31677 emit itype references for the designated types of component types that
31678 are declared outside of the full record declaration, and that may
31679 denote a partial view of that record type.
31680
316812004-07-20 Ed Schonberg <schonberg@gnat.com>
31682
31683 PR ada/15607
31684 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31685 which is the designated type in an access component declaration, to the
31686 list of incomplete dependents of the parent type, to avoid elaboration
31687 issues with out-of-scope subtypes.
31688 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31689 full view of the parent.
31690
316912004-07-20 Ed Schonberg <schonberg@gnat.com>
31692
31693 PR ada/15610
31694 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31695 entities that are hidden, such as references to generic actuals
31696 outside an instance.
31697
316982004-07-20 Javier Miranda <miranda@gnat.com>
31699
31700 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31701 support to the new notation.
31702 (Analyze_Selected_Component): Add call to Try_Object_Operation.
31703
317042004-07-20 Jose Ruiz <ruiz@act-europe.fr>
31705
31706 * s-taprob.adb: Adding the elaboration code required for initializing
31707 the tasking soft links that are common to the full and the restricted
31708 run times.
31709
31710 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31711 restricted run time has been moved to the package
31712 System.Soft_Links.Tasking.
31713
31714 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31715 restricted run time has been moved to the package
31716 System.Soft_Links.Tasking.
31717
31718 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31719
31720 * s-solita.ads, s-solita.adb: New files.
31721
317222004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31723
31724 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31725 Case_Statement_to_gnu): Split off from gnat_to_gnu.
31726 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31727 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31728 Exception_Handler_to_gnu_zcx): Likewise.
31729
6e34d3a3
JM
317302004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
31731
31732 * gigi.h (builtin_function): Declare.
31733
523456db
AC
317342004-07-15 Robert Dewar <dewar@gnat.com>
31735
31736 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31737 reformatting
31738
31739 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31740 access values as an example of a warning.
31741
31742 * gnat_rm.texi: Document new attribute Has_Access_Values
31743
31744 * gnat-style.texi: Document that box comments belong on nested
31745 subprograms
31746
31747 * sem_util.ads (Has_Access_Values): Improved documentation
31748
31749 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31750
31751 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31752 (Process_Interface_Name): Call to this new procedure
31753 (Set_Extended_Import_Export_External_Name): Call to this new procedure
31754
31755 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31756
31757 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31758
31759 * einfo.ads: Minor comment typo fixed
31760
317612004-07-15 Jose Ruiz <ruiz@act-europe.fr>
31762
31763 * snames.adb: Add _atcb.
31764
31765 * snames.ads: Add Name_uATCB.
31766
31767 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31768 (in the expanded code) when using the restricted run time.
31769
31770 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31771 a in parameter in order to allow ATCBs to be preallocated (in the
31772 expanded code).
31773
31774 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31775 order to allow ATCBs to be preallocated. In case of error, the ATCB is
31776 deallocated in System.Tasking.Stages.
31777
31778 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31779 order to allow ATCBs to be preallocated.
31780
31781 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31782 here. It was previously done in Initialize_ATCB.
31783
31784 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31785
31786 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31787 Restricted run time.
31788
31789 * exp_ch3.adb: When using the Restricted run time, pass the
31790 preallocated Ada_Task_Control_Block when creating a task.
31791
317922004-07-15 Ed Schonberg <schonberg@gnat.com>
31793
31794 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31795 function call that is itself an actual in an enclosing call, diagnose
31796 problem here rather than assuming that resolution will catch it.
31797
31798 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31799 the local copy of a generic unit for a formal package, and the generic
31800 is a child unit, install private part of ancestors before compiling
31801 private part of spec.
31802
31803 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31804 use scope entities rather than tree structures, to handle properly
31805 parent units that are instances rewritten as bodies for inlining
31806 purposes.
31807
31808 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31809 Remove_Parents): Handle properly a parent unit that is an
31810 instantiation, when the unit has been rewritten as a body for inlining
31811 purposes.
31812
31813 * par.adb (Goto_List): Global variable to collect goto statements in a
31814 given unit, for use in detecting natural loops.
31815
31816 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31817 use in detecting natural loops.
31818
31819 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31820 backwards goto's, and rewrite as a infinite loop, to improve locality
31821 of temporaries.
31822
31823 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31824 subcomponent that includes an indexed reference, to prevent the
31825 generation of copies that would miscompile the desired assignment
31826 statement.
31827 (Build_Task_Image_Decls): Add a numeric suffix to
31828 generated name for string variable, to avoid spurious conflicts with
31829 the name of the type of a single protected object.
31830
31831 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31832 loop with an explicit exit statement, to avoid generating an
31833 out-of-range value with 'Succ leading to spurious constraint_errors
31834 when compiling with -gnatVo.
31835
318362004-07-15 Thomas Quinot <quinot@act-europe.fr>
31837
31838 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31839 might not be analyzed yet, even if its Etype is already set (case of an
31840 unchecked conversion built using Unchecked_Convert_To, for example).
31841 If the prefix has already been analyzed, this will be a nop anyway.
31842
31843 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31844 controller type, or an assignment of a record type with controlled
31845 components, copy only user data, and leave the finalization chain
31846 pointers untouched.
31847
318482004-07-15 Vincent Celier <celier@gnat.com>
31849
31850 * make.adb (Collect_Arguments): Improve error message when attempting
31851 to compile a source not part of any project, when -x is not used.
31852
31853 * prj.ads: (Defined_Variable_Kind): New subtype
31854
31855 * prj-attr.adb (Register_New_Package): Two new procedures to register
31856 a package with or without its attributes.
31857 (Register_New_Attribute): Mew procedure to register a new attribute in a
31858 package.
31859 New attribute oriented subprograms: Attribute_Node_Id_Of,
31860 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31861 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31862 Next_Attribute.
31863 New package oriented subprograms: Package_Node_Id_Of,
31864 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31865
31866 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31867 type.
31868 (Package_Node_Id): Now a private, self initialized type
31869 (Register_New_Package): New procedure to register a package with its
31870 attributes.
31871 New attribute oriented subprograms: Attribute_Node_Id_Of,
31872 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31873 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31874 Next_Attribute.
31875 New package oriented subprograms: Package_Node_Id_Of,
31876 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31877
31878 * prj-dect.adb (Parse_Attribute_Declaration,
31879 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31880
31881 * prj-makr.adb (Make): Parse existing project file before creating
31882 other files. Fail if there was an error during parsing.
31883
31884 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31885 new spec of Prj.Attr.
31886
31887 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31888 to new spec of Prj.Attr.
31889
318902004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31891
31892 * utils2.c: Fix typo in comment.
31893
318942004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
54805e13
RK
31895
31896 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31897 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31898
a1c7af89
AS
318992004-07-14 Andreas Schwab <schwab@suse.de>
31900
31901 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31902
a5cb3b30
AC
319032004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31904
31905 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31906 object type.
31907 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31908 TYPE_STUB_DECL.
31909
31910 * misc.c (gnat_types_compatible_p): New function.
31911 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31912 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31913
31914 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31915 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31916 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31917 (mark_visited): Don't mark dummy type.
6615c446 31918 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
a5cb3b30
AC
31919 parameter, we must remove any LJM building from GNU_NAME.
31920 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31921 (pos_to_constructor): Use int_const_binop.
31922 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31923 PARM_DECL.
31924
31925 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31926 (gnat_pushlevel): Set TREE_USE on BLOCK node.
31927 (gnat_install_builtins): Add __builtin_memset.
31928
319292004-07-13 Olivier Hainque <hainque@act-europe.fr>
31930
31931 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31932 for a renaming, stabilize the initialization expression if we are at a
31933 local level. At the local level, uses of the renaming may be performed
31934 by a direct dereference of the initializing expression, and we don't
31935 want possible variables there to be evaluated for every use.
31936
31937 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31938 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31939 them on the way. Account for the fact that we may introduce side
31940 effects in the process.
31941
0976078c
RH
319422004-07-13 Richard Henderson <rth@redhat.com>
31943
31944 * misc.c (default_pass_by_ref): Use pass_by_reference.
31945
9dcf6e73
JM
319462004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
31947
31948 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31949 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31950
ac45df5d
RH
319512004-07-08 Richard Henderson <rth@redhat.com>
31952
31953 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31954 commentary.
31955
15ce9ca2
AC
319562004-07-06 Vincent Celier <celier@gnat.com>
31957
31958 * vms_conv.ads: Minor reformatting.
31959 Alphabetical order for enumerated values of type Command_Type, to have
31960 the command in alphabetical order for the usage.
31961
31962 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31963 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31964
31965 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31966
31967 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31968 (Add_Archive_Path): Only add the global archive if there is one.
31969 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31970 or not any object file to put in the global archive, and don't build
31971 a global archive if there is none.
31972 (X_Switches): New table
31973 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31974 in the X_Switches table, if any.
31975 (Initialize): Make sure the X_Switches table is empty
31976 (Scan_Arg): Record -X switches in table X_Switches
31977
31978 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31979
31980 * make.adb: Minor comment fix
31981
31982 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31983 invoked with directory information, add the directory in front of the
31984 path.
31985
31986 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31987 invoked with directory information, add the directory in front of the
31988 path.
31989
31990 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31991 when Keep_Temporary_Files is False.
31992 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31993 directory information, add the directory in front of the path.
31994 When not on VMS, handle new switch -dn before the command to set
31995 Keep_Temporary_Files to True.
31996 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31997 everywhere.
31998
31999 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
32000 invoked with directory information, add the directory in front of the
32001 path.
32002
320032004-07-06 Thomas Quinot <quinot@act-europe.fr>
32004
32005 * snames.ads, snames.adb (Name_Stub): New name for the distributed
32006 systems annex.
32007
32008 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
32009 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
32010
32011 * g-socket.adb (To_Timeval): Fix incorrect conversion of
32012 Selector_Duration to Timeval for the case of 0.0.
32013
32014 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
32015 documentation from Evolve_And_Then.
32016
320172004-07-06 Jose Ruiz <ruiz@act-europe.fr>
32018
32019 * s-taprop-tru64.adb, s-taprop-os2.adb,
32020 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
32021
320222004-07-06 Robert Dewar <dewar@gnat.com>
32023
32024 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
32025 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
32026 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
32027 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
32028 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
32029 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
32030 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
32031 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
32032 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
32033 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
32034 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
32035 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
32036 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
32037 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
32038 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
32039 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
32040 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
32041 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
32042 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
32043 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
32044 vms_data.ads: Minor reformatting,
32045 Fix bad box comment format.
32046
32047 * gnat_rm.texi: Fix minor grammatical error
32048
32049 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
32050
32051 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
32052 more cases of discriminated records to be recognized as not needing a
32053 secondary stack.
32054 (Has_Access_Values): New function.
32055
32056 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
32057
32058 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
32059 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
32060 with LRM terminology).
32061 Change terminology in comments primitive type => elementary type.
32062
320632004-07-06 Ed Schonberg <schonberg@gnat.com>
32064
32065 PR ada/15602
32066 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
32067 parameters do not impose any requirements on the presence of a body.
32068
320692004-07-06 Ed Schonberg <schonberg@gnat.com>
32070
32071 PR ada/15593
32072 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
32073 compilation unit and is in an open scope at the point of instantiation,
32074 assume that a body may be present later.
32075
320762004-07-06 Ed Schonberg <schonberg@gnat.com>
32077
32078 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
32079 Improve error message when specified size is not supported.
32080
32081 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
32082 is never a primitive operation.
32083
cb42deba
AS
320842004-07-05 Andreas Schwab <schwab@suse.de>
32085
32086 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32087 RECORD_OR_UNION_CHECK.
32088 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32089
98877933
KC
320902004-07-04 Kelley Cook <kcook@gcc.gnu.org>
32091
32092 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32093 dependency on xgnatugn, instead build it via a submake.
32094 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32095
8fff4fc1
RH
320962004-07-04 Richard Henderson <rth@redhat.com>
32097
32098 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32099
4dfa0342
RH
321002004-07-01 Richard Henderson <rth@redhat.com>
32101
32102 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32103 * utils.c (max_size): Likewise.
32104
909f21b3
RK
321052004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32106
32107 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32108 and rest_of_type_compilation; add arg to create_*_decl.
15cd18b9 32109 (annotate_decl_with_node): Deleted.
909f21b3
RK
32110 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32111 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32112 (get_current_block_context, gnat_pushdecl): New declarations.
32113 (gnat_init_stmt_group): Likewise.
32114 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32115 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32116 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32117 (gnat_init): Call gnat_init_stmt_group.
32118 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32119 (gnu_pending_elaboration_list): Deleted.
32120 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32121 (gigi): Rearrange initialization calls and move some to last above.
32122 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32123 Delete calls to add_decl_expr; add arg to create_*_decl.
32124 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
6615c446 32125 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
909f21b3
RK
32126 begin_subprog_body and call it.
32127 Don't push and pop ggc context.
32128 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32129 (add_stmt): Remove handling of DECL_EXPR from here.
32130 If not in function, mark visited.
32131 (add_decl_expr): Put global at top level.
32132 Check for cases of DECL_INITIAL we have to handle here.
32133 (process_type): Add extra arg to create_type_decl.
32134 (build_unit_elab): Rework to just gimplify.
32135 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32136 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32137 (get_pending_elaborations, pending_elaborations_p): Likewise.
32138 (push_pending_elaborations, pop_pending_elaborations): Likewise.
32139 (get_elaboration_location, insert_elaboration_list): Likewise.
32140 (gnat_binding_level): Renamed from ada_binding_level.
32141 (init_gnat_to_gnu): Don't clear pending_elaborations.
32142 (global_bindings_p): Treat as global if no current_binding_level.
32143 (set_current_block_context): New function.
32144 (gnat_pushdecl): Renamed from pushdecl; major rework.
32145 All callers changed.
32146 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32147 (finish_record_type): Call call pushdecl for stub decl.
32148 (function_nesting_depth): Deleted.
32149 (begin_subprog_body): Delete obsolete code.
32150 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
6615c446 32151
246d2ceb
AC
321522004-06-28 Robert Dewar <dewar@gnat.com>
32153
32154 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32155 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32156 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32157 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32158 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32159
32160 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32161 deal with problem of inefficient slices on machines with strict
32162 alignment, when the slice is a component of a composite.
32163
32164 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32165 machines, we need the check there as well.
32166
321672004-06-28 Ed Schonberg <schonberg@gnat.com>
32168
32169 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32170 determine safe copying direction for overlapping slice assignments
32171 when component is controlled.
32172
32173 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32174 formal derived type in the actual for a formal package are visible in
32175 the enclosing instance.
32176
321772004-06-28 Ed Schonberg <schonberg@gnat.com>
32178
32179 PR ada/15600
32180 * sem_util.adb (Trace_Components): Diagnose properly an illegal
32181 circularity involving a private type whose completion includes a
32182 self-referential component.
32183 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32184 renaming or an instantiation from an implicit derived operation.
32185
321862004-06-28 Pascal Obry <obry@gnat.com>
32187
32188 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32189 DLL.
32190 (Library_File_Name_For): Idem.
32191
321922004-06-28 Matthew Gingell <gingell@gnat.com>
32193
32194 * g-traceb.ads: Add explanatory note on the format of addresses
32195 expected by addr2line.
32196
321972004-06-28 Jerome Guitton <guitton@act-europe.fr>
32198
32199 * Makefile.in: Force debugging information on s-tasdeb.adb,
32200 a-except.adb and s-assert.adb needed by the debugger.
32201
322022004-06-28 Vincent Celier <celier@gnat.com>
32203
32204 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32205 Need_To_Build_Lib.
32206 (Gnatmake): Ditto.
32207
32208 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32209
32210 * prj.adb: Minor reformatting
32211 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32212
32213 * prj.ads: Comment updates
32214 Minor reformatting
32215 (Project_Data): Change Flag1 to Need_To_Build_Lib.
32216 Remove Flag2: not used.
32217
32218 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32219 declaration.
32220
32221 * gnat_ugn.texi: Put a "null;" declaration in one project file example
32222
32223 * gnat_rm.texi: Document Empty declarations "null;".
32224
32225 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32226 front of the linker options.
32227 (Link_Foreign): Put the global archives and the libraries in front of
32228 the linker options.
32229
322302004-06-28 Javier Miranda <miranda@gnat.com>
32231
32232 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32233 (RTU_Loaded): Code cleanup
32234 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32235 withed predefined units.
32236
32237 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32238 explicitly withed predefined units.
32239 Fix typo in comment
32240
32241 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32242 explicitly withed predefined units.
32243
bce3da32
RK
322442004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32245
32246 * ada-tree.def (DECL_STMT): Deleted.
32247 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32248 (DECL_STMT_VAR): Deleted.
32249 * decl.c: add_decl_stmt now add_decl_expr.
32250 * gigi.h: Likewise.
32251 * trans.c: Likewise.
15cd18b9 32252 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
bce3da32
RK
32253 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32254 (add_stmt): Only handle padded type here.
32255 (add_stmt_with_node): Allow gnat_node to not be present.
32256 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32257 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32258 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32259 make a SAVE_EXPR for the entire fat pointer.
32260 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32261 (create_index_type): Make a DECL_EXPR.
32262 (end_subprog_body): Don't call allocate_struct_function here but
32263 do clear cfun.
32264
0da2c8ac
AC
322652004-06-25 Pascal Obry <obry@gnat.com>
32266
32267 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32268 Relocatable from Build_Dynamic_Library call.
32269
32270 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32271 Relocatable are now synonym.
32272
32273 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32274
32275 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32276 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32277 call.
32278
32279 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32280 Lib_Address and Relocatable.
32281 (Default_DLL_Address): Removed.
32282
6615c446
JO
32283 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32284 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
0da2c8ac
AC
32285 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32286 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32287 (Default_DLL_Address): Removed.
32288
32289 * mlib-tgt-mingw.adb: Ditto.
32290 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32291
32292 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32293 the initial thread stack size.
32294
32295 * a-strmap.ads: Move package L to private part as it is not used in
32296 the spec. Found while reading code.
32297
322982004-06-25 Olivier Hainque <hainque@act-europe.fr>
32299
32300 * tracebak.c: Introduce support for a GCC infrastructure based
32301 implementation of __gnat_backtrace.
32302
32303 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32304 any more. Use accessors instead. This eases maintenance and relaxes
32305 some alignment constraints.
32306 (_GNAT_Exception structure): Remove the Ada specific fields
32307 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32308 a-exexpr.adb.
32309 (is_handled_by, __gnat_eh_personality): Replace component references to
32310 exception structure by use of the new accessors.
32311
32312 * init.c (__gnat_initialize): Adjust comments to match the just
32313 reverted meaning of the -static link-time option.
32314
32315 * adaint.c (convert_addresses): Arrange not to define a stub for
32316 mips-irix any more, as we now want to rely on a real version from a
32317 recent libaddr2line.
32318
32319 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32320 the personality routine can use them and not have to rely on a C
32321 counterpart of the record anymore. This simplifies maintenance and
32322 relaxes the constraint of having Standard'Maximum_Alignment match
32323 BIGGEST_ALIGNMENT.
32324 Update comments, and add a section on the common header alignment issue.
32325
323262004-06-25 Geert Bosch <bosch@gnat.com>
32327
32328 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32329 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32330
323312004-06-25 Robert Dewar <dewar@gnat.com>
32332
32333 * gnat_rm.texi: Fix section on component clauses to indicate that the
32334 restriction on byte boundary placement still applies for bit packed
32335 arrays.
32336 Add comment on stack usage from Initialize_Scalars
32337
32338 * gnat_ugn.texi: Add documentation for -gnatyLnnn
32339
32340 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32341 limiting nesting level.
32342
32343 * usage.adb: Add line for -gnatyLnnn switch
32344
32345 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32346 sem_ch13.adb, exp_aggr.adb: Minor reformatting
32347
32348 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32349 type as well as on the subtype. This corrects a problem in freeze in
32350 setting alignments of atomic types.
32351
32352 * sem_eval.ads: Minor comment typo fixed
32353
32354 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32355 level. Minor reformatting.
32356
32357 * fname.adb (Is_Predefined_File_Name): Require a letter after the
32358 minus sign. This means that file names like a--b.adb will not be
32359 considered predefined.
32360
32361 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32362 record Test new flag and give diagnostic for bad component clause.
32363 (Freeze_Entity): Set alignment of array from component alignment in
32364 cases where this is safe to do.
32365
32366 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32367 arrays.
32368
32369 * cstand.adb: (Create_Standard): Set alignment of String to 1
32370
32371 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32372
32373 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32374 code in the common constrained array cases.
32375
32376 * a-storio.adb: Change implementation to avoid possible alignment
32377 problems on machines requiring strict alignment (data should be moved
32378 as type Buffer, not type Elmt).
32379
32380 * checks.adb (Apply_Array_Size_Check): Improve these checks by
32381 killing the overflow checks which we really do not need (64-bits is
32382 enough).
32383
323842004-06-25 Vincent Celier <celier@gnat.com>
32385
32386 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32387 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32388 inconditionally for the main project.
32389 (Recursive_Add_Archives.Add_Archive_Path): New procedure
32390 (Link_Executables.Check_Time_Stamps): New procedure
32391 (Link_Executables.Link_Foreign): New procedure
32392 Changes made to reduce nesting level of this package
32393 (Check): New procedure
32394 (Add_Switches): When not in quiet output, check that a switch is not
32395 the concatenation of several valid switches. If it is, issue a warning.
32396 (Build_Global_Archive): If the global archive is rebuilt, linking need
32397 to be done.
32398 (Compile_Sources): Rebuilding a library archive does not imply
32399 rebuilding the global archive.
32400 (Build_Global_Archive): New procedure
32401 (Build_Library): New name for Build_Archive, now only for library
32402 project
32403 (Check_Archive_Builder): New procedure
32404 (Create_Global_Archive_Dependency_File): New procedure
32405 (Gprmake): Call Build_Global_Archive before linking
32406 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32407 throughout.
32408 (Scan_Arg): Display the Copyright notice when -v is used
32409
32410 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32411 for gnatls.
32412
32413 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32414 COMPILE.
32415 Add new GNAT LIST qualifier /FILES=
32416 Added qualifier /DIRECTORY= to GNAT METRIC
32417 Added qualifier /FILES= to GNAT METRIC
32418 Added qualifier /FILES to GNAT PRETTY
32419
32420 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32421 to take into account both versions of the switch.
32422
32423 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32424 always be the last switch to the gcc driver. Disable switch storing so
32425 that switches automatically added by the gcc driver are not put in the
32426 ALI file.
32427
32428 * prj.adb (Project_Empty): Take into account changes in components of
32429 Project_Data.
32430
32431 * prj.ads (Languages_Processed): New enumaration value All_Languages.
32432
32433 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32434 used. Split Boolean component Ada_Sources_Present in two Boolean
32435 components Ada_Sources_Present and Other_Sources_Present.
32436 Minor reformatting
32437
32438 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32439 instead of Sources_Present.
32440 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32441
32442 * prj-nmsc.adb: Minor reformatting
32443 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32444 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32445 Check_Ada_Naming_Scheme.
32446 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32447 throughout.
32448
32449 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32450 In_Limited.
32451 Make sure that all cycles where there is at least one "limited with"
32452 are detected.
32453 (Parse_Single_Project): New Boolean parameter In_Limited
32454
32455 * prj-proc.adb (Recursive_Check): When Process_Languages is
32456 All_Languages, call first Prj.Nmsc.Ada_Check, then
32457 Prj.Nmsc.Other_Languages_Check.
32458
32459 * prj-proc.adb (Process): Use Ada_Sources_Present or
32460 Other_Sources_Present (instead of Sources_Present) depending on
32461 Process_Languages.
32462
32463 * lang-specs.h: Keep -g and -m switches in the same order, and as the
32464 last switches.
32465
32466 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32467 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32468 False.
32469 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32470 False.
32471
32472 * lib.ads (Disable_Switch_Storing): New procedure.
32473
32474 * make.adb: Modifications to reduce nesting level of this package.
32475 (Check_Standard_Library): New procedure
32476 (Gnatmake.Check_Mains): New procedure
32477 (Gnatmake.Create_Binder_Mapping_File): New procedure
32478 (Compile_Sources.Compile): Add switch -gnatez as the last option
32479 (Display): Never display -gnatez
32480
6615c446 32481 * Makefile.generic:
0da2c8ac
AC
32482 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32483
32484 * gnatcmd.adb (Check_Project): New function
32485 (Process_Link): New procedure to reduce nesting depth
32486 (Check_Files): New procedure to reduce the nesting depth.
32487 For GNAT METRIC, include the inherited sources in extending projects.
32488 (GNATCmd): When GNAT LS is invoked with a project file and no files,
32489 add the list of files from the sources of the project file. If this list
32490 is too long, put it in a temp text files and use switch -files=
32491 (Delete_Temp_Config_Files): Delete the temp text file that contains
32492 a list of source for gnatpp or gnatmetric, if one has been created.
32493 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32494 in the project file is too large, create a temporary text file that
32495 list them and pass it to the tool with "-files=<temp text file>".
32496 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32497
32498 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32499 generated file is in not in Ada.
32500
32501 * gnatls.adb: Remove all parameters And_Save that are no longer used.
32502 (Scan_Ls_Arg): Add processing for -files=
32503 (Usage): Add line for -files=
32504
32505 * g-os_lib.adb (On_Windows): New global constant Boolean flag
32506 (Normalize_Pathname): When on Windows and the path starts with a
32507 directory separator, make sure that the resulting path will start with
32508 a drive letter.
32509
32510 * clean.adb (Clean_Archive): New procedure
32511 (Clean_Project): When there is non-Ada code, delete the global archive,
32512 the archive dependency files, the object files and their dependency
32513 files, if they exist.
32514 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32515
325162004-06-25 Thomas Quinot <quinot@act-europe.fr>
32517
32518 * sinfo.ads: Fix typo in comment.
32519
32520 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32521 the TSS for remote access-to-subprogram types, since these TSS are
32522 always present once the type has been analyzed.
32523 (RAS_E_Dereference): Same.
32524
32525 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32526 reference raises Bad_Attribute, mark the reference as analyzed so the
32527 node (and any children resulting from rewrites that could have occurred
32528 during the analysis that ultimately failed) is not analyzed again.
32529
32530 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32531
32532 * exp_dist.adb: Minor comment fix.
32533
32534 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32535 type is an anonymous access type, no unchecked deallocation of the
32536 allocated object can occur. If the object is controlled, attach it with
32537 a count of 1. This allows attachment to the Global_Final_List, if
32538 no other relevant list is available.
32539 (Get_Allocator_Final_List): For an anonymous access type that is
32540 the type of a discriminant or record component, the corresponding
32541 finalisation list is the one of the scope of the type.
32542
325432004-06-25 Ed Schonberg <schonberg@gnat.com>
32544
32545 * sem_ch3.adb (Replace_Type): When computing the signature of an
32546 inherited subprogram, use the first subtype if the derived type
32547 declaration has no constraint.
32548
32549 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32550 before applying previous optimization. Minor code cleanup.
32551
32552 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32553 placed at the beginning of an unpacked record without explicit
32554 alignment, a slice of it will be aligned and does not need a copy when
32555 used as an actual.
32556
325572004-06-25 Ed Schonberg <schonberg@gnat.com>
32558
32559 PR ada/15591
32560 PR ada/15592
32561 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32562 reference is written with expressions mimicking parameters.
32563
325642004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
32565
32566 PR ada/15589
32567 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32568 STEP 2a. The constraints of a full type declaration of a derived record
32569 type are checked for conformance with those declared in the
32570 corresponding private extension declaration. The message
32571 "not conformant with previous declaration" is emitted if an error is
32572 detected.
32573
325742004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32575
32576 * g-traceb.ads: Document the need for -E binder switch in the spec.
32577
32578 * g-trasym.ads: Document the need for -E binder switch in the spec.
32579
325802004-06-25 Jose Ruiz <ruiz@act-europe.fr>
32581
32582 * sem_prag.adb: Add handling of pragma Detect_Blocking.
32583
32584 * snames.h, snames.ads, snames.adb: Add entry for pragma
32585 Detect_Blocking.
32586
32587 * s-rident.ads: Change reference to pragma Detect_Blocking.
32588
32589 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32590 system.ads.
32591
32592 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32593 to indicate whether pragma Detect_Blocking is active.
32594
32595 * par-prag.adb: Add entry for pragma Detect_Blocking.
32596
32597 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32598 of not handling WITH.
32599 Note that this replaces the previous update which was incorrect.
32600
326012004-06-25 Javier Miranda <miranda@gnat.com>
32602
32603 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32604 use-clauses to have a clean environment.
32605
32606 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32607 the installation of the use-clauses to stablish a clean environment in
32608 case of compilation of a separate unit; otherwise the call to
32609 use_one_package is protected by the barrier Applicable_Use.
32610
32611 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32612 the installation of the use-clauses to stablish a clean environment in
32613 case of compilation of a separate unit.
32614 (End_Use_Clauses): Minor comment cleanup.
32615
326162004-06-25 Sergey Rybin <rybin@act-europe.fr>
32617
32618 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32619
65355d53
RH
326202004-06-23 Richard Henderson <rth@redhat.com>
32621
32622 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32623
c0e3aa48
RK
326242004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32625
32626 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32627 now bool instead of int.
32628 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32629 * trans.c (gnu_switch_label_stack): New function.
32630 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32631 elaboration of renamed entity returns.
32632 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32633 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32634 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32635 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32636 DECL_SIZE_UNIT and simplify variable-sized case.
32637 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32638 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32639 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32640 (build_unit_elab): Disable for now.
32641 * utils.c (mark_visited): New function.
32642 (pushdecl): Walk tree to call it for global decl.
32643 (update_pointer_to): Update all variants of pointer and ref types.
32644 Add arg to COMPONENT_REF.
32645 (convert): Likewise.
32646 Move check for converting between variants lower down.
32647 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32648 (build_allocator): Don't force type of MODIFY_EXPR.
32649 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32650 put_var_into_stack.
32651
966389ee
RK
326522004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32653
32654 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32655 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32656 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32657 subprograms.
32658 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32659 all callers changed.
32660 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32661 the way that EXIT_STMT finds the loop label.
32662 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32663 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32664 (add_stmt): Use annotate_with_locus insted of setting directly.
32665 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32666 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32667 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32668 (build_vms_descriptor): Add extra args to ARRAY_REF.
32669 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32670 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32671 New cases.
32672 (build_binary_op): Don't make explicit CONVERT_EXPR.
32673 Add extra rgs to ARRAY_REF.
32674
cc335f43
AC
326752004-06-14 Pascal Obry <obry@gnat.com>
32676
32677 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32678 Windows. Fix minor typo.
32679
32680 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32681 which is now supported on Windows. With this implementation using the
32682 Library Project feature is no different on Windows than on UNIX.
32683
326842004-06-14 Vincent Celier <celier@gnat.com>
32685
32686 * makegpr.adb (Compile_Sources): Nothing to do when there are no
32687 non-Ada sources.
32688
32689 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32690
32691 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32692 found, show the project name and the path of the previously parsed
32693 project file.
32694
326952004-06-14 Ed Schonberg <schonberg@gnat.com>
32696
32697 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32698 array, avoid copying the actual before the call.
32699
327002004-06-14 Thomas Quinot <quinot@act-europe.fr>
32701
32702 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32703 Instead, allocate memory on worst-case alignment assumptions, and then
32704 return an aligned address within the allocated zone.
32705
327062004-06-14 Robert Dewar <dewar@gnat.com>
32707
32708 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32709 elab entities in predefined units in No_Run_Time_Mode.
32710 (Gen_Adainit_C): Same fix
32711 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32712 units in No_Run_Time_Mode
32713 (Gen_Elab_Calls_C): Same fix
32714
32715 * symbols-vms-alpha.adb: Minor reformatting
32716
32717 * g-debpoo.ads: Minor reformatting
32718
32719 * lib.adb (In_Same_Extended_Unit): Version working on node id's
32720
32721 * lib.ads (In_Same_Extended_Unit): Version working on node id's
32722
32723 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32724 working on nodes.
32725
32726 * make.adb: Minor reformatting
32727
32728 * par-ch12.adb: Minor reformatting
32729
32730 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32731
32732 * prj-strt.adb: Minor reformatting
32733
32734 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32735 be more general.
32736
32737 * sem_attr.adb: Minor reformatting
32738
32739 * sem_ch7.adb: Minor reformatting
32740
32741 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32742 for type in the same unit as the object declaration.
32743
32744 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32745 static string expressions and not just string literals.
32746 Minor reformatting
32747 (Set_Warning): Reset restriction warning flag for restriction pragma
32748 Implement pragma Profile_Warnings
32749 Implement pragma Profile (Restricted)
32750 Give obolescent messages for old restrictions and pragmas
32751
32752 * snames.h, snames.ads, snames.adb: Add new entry for pragma
32753 Profile_Warnings.
32754
32755 * s-rident.ads: Add declarations for restrictions required by profile
32756 Restricted and profile Ravenscar.
32757
32758 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32759
32760 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32761 configuration pragmas.
32762
5453d5bd
AC
327632004-06-11 Vincent Celier <celier@gnat.com>
32764
32765 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32766 gnatsym, when symbol policy is Restricted.
32767
32768 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32769 gnatsym, when symbol policy is Restricted.
32770
32771 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32772 read the symbol file.
32773 (Finalize): Fail in symbol policy Restricted if a symbol in the original
32774 symbol file is not in the object files. Do not create a new symbol file
32775 when symbol policy is Restricted.
32776
32777 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32778 in Scng.
32779
32780 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32781 Restricted.
32782 (Usage): Line for new switch -R
32783
32784 * make.adb (Initialize): When the platform is not VMS, add the
32785 directory where gnatmake is invoked in the front of the path, if
32786 gnatmake is invoked with directory information. Change the Scan_Args
32787 while loop to a for loop.
32788 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32789 if Depth is equal or greater than the proposed depth, there is nothing
32790 to do.
32791 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32792 instead of 0.
32793
32794 * prj.ads: Add new symbol policy Restricted.
32795
32796 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32797 with the new parameters Check_All_Labels and Case_Location.
32798
32799 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32800 (Library_Symbol_File needs to be defined).
32801
32802 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32803 and Case_Location If Check_All_Labels is True, check that all values of
32804 the string type are used, and output warning(s) if they are not.
32805
32806 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32807 and Case_Location.
32808
32809 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32810
32811 * gnat_ugn.texi: Update documentation about the library directory in
32812 Library Projects.
32813
32814 * makegpr.adb (Display_Command): In verbose mode, also display the
32815 value of the CPATH env var, when the compiler is gcc.
32816 (Initialize): Change the Scan_Args while loop to a for loop
32817 (Compile_Individual_Sources): Change directory to object directory
32818 before compilations.
32819
32820 * symbols.ads: New symbol policy Restricted.
32821
328222004-06-11 Olivier Hainque <hainque@act-europe.fr>
32823
32824 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32825 is now taken care of internally in the Exception_Propagation package
32826 and does not require clients assistance any more.
32827
32828 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32829 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32830 functions. Helpers to maintain a predicate required in the handling of
32831 occurrence transfer between tasks.
32832 This is now handled internally and does not require clients assistance
32833 for the setup/propagate separation anymore.
32834 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32835 allocation strategy, handle the Setup_And_Not_Propagated predicate and
32836 document.
32837
32838 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32839 raise_after_setup, now that everything is handled internally within the
32840 setup/propagation engine.
32841
328422004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32843
32844 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32845 Add additional conditions for the case of an actual being a simple
32846 name or literal. Improve inlining by preventing the generation
32847 of temporaries with a short lifetime (one use).
32848
328492004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32850
32851 PR ada/15587
5453d5bd
AC
32852 * einfo.ads: Minor comment updates for Has_Completion and
32853 E_Constant list of flags.
32854
32855 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32856 and constant redeclarations now set the Has_Completion flag of their
32857 defining identifiers.
32858
32859 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32860 Inspect_Deferred_Constant_Completion.
32861 Used to detect private deferred constants that have not been completed
32862 either by a constant redeclaration or pragma Import. Emits error message
32863 "constant declaration requires initialization expression".
32864
32865 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32866 completes a deferred constant.
32867
328682004-06-11 Geert Bosch <bosch@gnat.com>
32869
32870 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32871
32872 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32873 calculating exponent for scaling denormal numbers.
32874 (Leading_Part): Properly raise Constraint_Error for zero or negative
32875 Adjustment.
32876 (Remainder): Properly raise Constraint_Error for zero divisor.
32877
328782004-06-11 Thomas Quinot <quinot@act-europe.fr>
32879
32880 * sem_util.adb: Minor reformatting.
32881
32882 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32883 dereference when accessing the entry parameter record.
32884 (Check_Array_Type): Always check for possible implicit dereference.
32885 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32886 Abort if a pointer is still present (denoting that an implicit
32887 dereference was left in the tree by the front-end).
32888
32889 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32890 dereference when accessing the entry parameter record.
32891 (Check_Array_Type): Always check for possible implicit dereference.
32892 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32893 Abort if a pointer is still present (denoting that an implicit
32894 dereference was left in the tree by the front-end).
32895
328962004-06-11 Emmanuel Briot <briot@act-europe.fr>
32897
32898 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32899 message, like the compiler itself does. Easier to parse the output.
32900
32901 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32902
32903 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32904 be base names, and not includes directories.
32905
329062004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32907
32908 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32909 so that dependencies are properly taken into account by make.
32910
329112004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32912
32913 PR ada/15622
32914 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32915 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32916
329172004-06-11 Jerome Guitton <guitton@act-europe.fr>
32918
32919 * Makefile.in (install-gnatlib): install target-specific run-time files.
32920
32921 * Make-lang.in: Remove obsolete targets.
32922
329232004-06-11 Ed Schonberg <schonberg@gnat.com>
32924
32925 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32926 specification, to catch misuses of program unit names.
32927
32928 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32929 superfluous conversions in an instance.
32930
329312004-06-11 Ed Schonberg <schonberg@gnat.com>
32932
32933 PR ada/15403
5453d5bd
AC
32934 * sem_ch12.adb (Save_References): If operator node has been folded to
32935 enumeration literal, associated_node must be discarded.
32936
329372004-06-11 Jose Ruiz <ruiz@act-europe.fr>
32938
32939 * s-stchop-vxworks.adb: Add required pragma Convention to
32940 Task_Descriptor because it is updated by a C function.
32941
a98f59be
AC
329422004-06-08 Arnaud Charlet <charlet@act-europe.fr>
32943
32944 PR ada/15568
a98f59be
AC
32945 * Makefile.in: Remove target specific SO_OPT on IRIX
32946
821e1ea1
RK
329472004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32948
32949 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32950 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32951 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32952 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32953 (STMT_STMT, USE_STMT): New statement codes.
32954 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32955 * ada-tree.h: Reflect above changes.
15cd18b9 32956 (struct tree_loop_id): Deleted.
821e1ea1
RK
32957 (union lang_tree_node, struct lang_decl, struct lang_type):
32958 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32959 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32960 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32961 (IS_ADA_STMT): New macro.
32962 * decl.c (annotate_decl_with_node): New function.
32963 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32964 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32965 Call add_stmt_with_node to do needed assignments.
32966 Add call to update setjmp buffer directly, not via EXPR_STMT.
32967 (maybe_variable): Argment GNAT_NODE deleted.
32968 * gigi.h (maybe_variable): Likewise.
32969 (make_transform, add_stmt_with_node, set_block_for_group): New.
32970 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32971 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32972 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32973 (set_lineno, set_lineno_from_sloc): Likewise.
32974 (record_code_position, insert_code_for): Likewise.
32975 (gnat_poplevel): Now returns void.
32976 (end_subprog_body): Now takes argument.
32977 * misc.c (cgraph.h, tree-inline.h): New includes.
32978 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32979 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32980 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32981 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32982 (gnat_parse_file): Don't set immediate_size_expand.
32983 Call cgraph functions.
32984 (gnat_expand_expr): Remove most cases.
32985 (record_code_position, insert_code_for): Remove from here.
32986 * trans.c (toplev.h, tree-gimple.h): Now included.
32987 (discard_file_names): Deleted.
32988 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32989 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32990 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32991 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32992 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32993 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32994 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32995 (set_block_for_group, add_stmt_list): Likewise.
32996 (start_stmt_group): Renamed from start_block_stmt.
32997 (end_stmt_group): Likewise, from end_block_stmt.
32998 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32999 (gigi): Don't set discard_file_names or call set_lineno.
33000 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
33001 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
33002 Numerous changes throughout to reflect new names and complete
33003 function-at-a-time implementation.
33004 (gnat_expand_stmt): Delete or comment out all cases.
33005 (process_inlined_subprograms): Use add_stmt.
33006 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
33007 call set_lineno; also remove unneeded block handling.
33008 (process_type): Remove unneeded block handling.
33009 (build_unit_elab): Remove calls to deleted functions.
33010 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
33011 (tree-dump.h): Likewise.
33012 (struct ada_binding_level): Add field jmpbuf_decl.
33013 (gnat_define_builtin, gnat_install_builtins): New.
33014 (gnat_gimplify_function, gnat_finalize): Likewise.
33015 (gnat_poplevel): No longer return BLOCK, set it instead.
33016 Remove code dealing with nested functions.
33017 (gnat_init_decl_processing): Also set size_type_node.
33018 Call gnat_install_builtins.
33019 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
33020 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
33021 Remove special-case for "main".
33022 (end_subprog_body): Add arg and rework for tree-ssa.
33023 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
33024 Add case for BOOLEAN_TYPE.
33025 * utils2.c (rtl.h): Now include.
33026 (build_call_raise): Test Debug_Flag_NN directly.
33027 (build_call_alloc_dealloc): Don't use local stack allocation for now.
33028 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
33029 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
33030
0ab80019
AC
330312004-06-07 Robert Dewar <dewar@gnat.com>
33032
33033 * a-direct.ads, einfo.ads: Minor comment updates
33034
33035 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
33036 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33037 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
33038 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
33039 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
33040
33041 * s-interr-sigaction.adb: Remove unreferenced variable
33042 (Attached_Interrupts). Minor reformatting.
33043 Avoid use of variable I (replace by J).
33044
33045 * par-ch10.adb: Fix text of one error message
33046
33047 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
33048 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
33049 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
33050 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
33051 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
33052 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6615c446 33053 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
0ab80019
AC
33054 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
33055 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
33056 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
33057 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
33058 2005 support.
33059
330602004-06-07 Doug Rupp <rupp@gnat.com>
33061
33062 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
33063
33064 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
33065
33066 * mlib-tgt-vms-ia64.adb: New file.
33067
33068 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
33069 Add mlib-tgt-vms-ia64.adb
33070 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
33071 Move to alpha specific ifeq section.
33072 Add VMS specific versions of symbols.adb
33073 Renaming of 5q vms files.
33074
33075 * 5qsystem.ads renamed to system-vms_64.ads.
33076
330772004-06-07 Vincent Celier <celier@gnat.com>
33078
33079 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
33080 explain that when a time of day corresponding to the non existing hour
33081 on the day switching to DST is specified, Split may return a different
33082 value for Seconds.
33083
33084 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33085 to GNAT PRETTY.
33086
33087 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33088 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33089
33090 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33091 to False.
33092 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33093 the linking options.
33094 (Build_Library.Check_Libs): On VMS, if there is a dependency on
33095 g-trasym.ads, set Gtrasymobj_Needed to True.
33096
33097 * prj-attr.adb: Add new package Metrics for gnatmetric
33098
33099 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33100 canonical case to take into account files with upper case characters on
33101 Windows.
33102 (Ada_Check): Load the reference symbol file name in the name buffer to
33103 check it, not the symbol file name.
33104
33105 * snames.ads, snames.adb: Add standard name Metrics (name of project
33106 file package for gnatmetric).
33107
33108 * vms_conv.ads: Add Metric to Comment_Type
33109
33110 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33111
33112 * vms_data.ads: Add qualifiers for GNAT METRIC
33113
33114 * makegpr.adb (Link_Executables): Take into account the switches
33115 specified in package Linker of the main project.
33116
331172004-06-07 Thomas Quinot <quinot@act-europe.fr>
33118
33119 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33120 the index of the last element is Units.Last, not Units.Table'Last
33121 (which is usually not a valid index within the actually allocated
33122 storage for the table).
33123
33124 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33125 determines whether to generate a call to a checked storage pool
33126 Dereference action.
33127 Generate such a call only for a dereference that either comes from
33128 source, or is the result of rewriting a dereference that comes from
33129 source.
33130
331312004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
33132
33133 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33134
331352004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
33136
33137 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33138 file level, elaborate the stride for inner dimensions in alignment
33139 units, not bytes.
33140
33141 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33142 in a comment.
33143
331442004-06-07 Javier Miranda <miranda@gnat.com>
33145
33146 * exp_ch6.adb: Correct wrong modification in previous patch
33147
331482004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
33149
33150 * g-trasym.ads: Corrected comment to properly reflect level of support
33151 on VMS.
33152
331532004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
33154
33155 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33156 includes case of a variable referenced on the left hand side of an
33157 assignment, therefore remove redundant code. Variables and prefixes of
33158 indexed or selected components are now marked as referenced on left
33159 hand side. Warnings are now properly emitted when variables or prefixes
33160 are assigned but not read.
33161
33162 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33163 left hand side referenced variables. Private access types do not
33164 produce the warning "variable ... is assigned but never read".
33165 Add also additional checks to left hand side referenced variables.
33166 Aliased, renamed objects and access types do not produce the warning
33167 "variable ... is assigned but never read" since other entities may read
33168 the memory location.
33169
331702004-06-07 Jerome Guitton <guitton@act-europe.fr>
33171
33172 * Makefile.in: In the powerpc/vxworks-specific section, restore
33173 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33174 by mistake).
33175
331762004-06-07 Ed Schonberg <schonberg@gnat.com>
33177
33178 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33179 predefined operators.
33180 Removes spurious type errors from g-trasym-vms.adb.
33181
33182 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33183 distinct from the operator appearing in the source, call appropriate
33184 routine to insert conversions when needed, and complete resolution of
33185 node.
33186 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33187 interpretations for rewritten right operand.
33188 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33189 the other operand is overloaded and the context is a type conversion.
33190
331912004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33192
33193 * ada-tree.def (BLOCK_STMT): Now has two operands.
33194 (BREAK_STMT): New.
33195
33196 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33197
33198 * gigi.h: (gnat_poplevel): Now returns a tree.
33199
33200 * trans.c (end_block_stmt): Add arg; all callers changed.
33201 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33202 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33203 (add_stmt): Set TREE_TYPE.
33204 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33205 (gnat_expand_stmt, case BREAK_STMT): New case.
33206
33207 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33208
332092004-06-07 Jose Ruiz <ruiz@act-europe.fr>
33210
33211 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33212 procedure Set_Stack_Size that is not needed.
33213
332142004-06-07 Sergey Rybin <rybin@act-europe.fr>
33215
33216 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33217 used for gnatpp input file and for the files upon which it depends
33218
332192004-06-07 Ben Brosgol <brosgol@gnat.com>
33220
33221 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33222
332232004-06-07 Arnaud Charlet <charlet@act-europe.fr>
33224
33225 * gnatvsn.ads: Bump version numbers appropriately.
33226 Add new build type.
33227
332282004-06-07 Pascal Obry <obry@gnat.com>
33229
33230 * gnat_ugn.texi: Improve comments about imported names and link names
33231 on Windows. Add a note about the requirement to use -k gnatdll's option
33232 when working with a DLL which has stripped stdcall symbols (no @nn
33233 suffix).
33234
8a36a0cc
AC
332352004-05-27 Vincent Celier <celier@gnat.com>
33236
33237 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33238 COMMENTS_LAYOUT=UNTOUCHED
33239
33240 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33241 symbols-vms-alpha.adb
33242
332432004-05-27 Thomas Quinot <quinot@act-europe.fr>
33244
33245 * sem.ads: Clarify documentation on checks suppression.
33246
33247 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33248
332492004-05-27 Ed Schonberg <schonberg@gnat.com>
33250
33251 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33252 the case of multiple derivations.
33253 (Is_Object_Reference): For a selected component, verify that the prefix
33254 is itself an object and not a value.
33255
33256 * sem_ch12.adb (Same_Instantiated_Constant): New name for
33257 Same_Instantiated_Entity.
33258 (Same_Instantiated_Variable): Subsidiary to
33259 Check_Formal_Package_Instance, to recognize actuals for in-out generic
33260 formals that are obtained from a previous formal package.
33261 (Instantiate_Subprogram_Body): Emit proper error when
33262 generating code and the proper body of a stub is missing.
33263
33264 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33265 has a universal interpretation, do the disambiguation here.
33266
33267 * exp_ch4.adb (Expand_N_Type_Conversion,
33268 Expand_N_Unchecked_Type_Conversion): Special handling when target type
33269 is Address, to avoid typing anomalies when Address is a visible integer
33270 type.
33271
33272 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33273 to determine whether a subprogram should not be marked Pure, even when
33274 declared in a pure package.
33275
332762004-05-27 Jose Ruiz <ruiz@act-europe.fr>
33277
33278 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33279
33280 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33281 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33282 Update the documentation about the Ravenscar profile, following the
33283 definition found in AI-249.
33284
33285 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33286 setting the Profile (Ravenscar). This must be done in addition to
33287 setting the required restrictions.
33288
33289 * rtsfind.ads: Add the set of operations defined in package
33290 Ada.Interrupts.
33291
33292 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33293 restriction.
33294
332952004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
33296
33297 lang-specs.h: Always require -c or -S and always redirect to /dev/null
33298 if -gnatc or -gnats is passed.
33299
333002004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
33301
33302 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33303 a significant reference. Warnings are now properly emitted when a
33304 discriminated type is not referenced.
33305
33306 * lib-xref.adb (Generate_Reference): A deferred constant completion,
33307 record representation clause or record type discriminant does not
33308 produce a reference to its corresponding entity. Warnings are now
33309 properly emitted when deferred constants and record types are not
33310 referenced.
33311
333122004-05-27 Geert Bosch <bosch@gnat.com>
33313
33314 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33315 Fixes ACATS Annex G tests.
33316
333172004-05-27 Robert Dewar <dewar@gnat.com>
33318
33319 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33320 handling WITH
33321
333222004-05-27 Arnaud Charlet <charlet@act-europe.fr>
33323
33324 * s-interr.adb (Server_Task): Take into account case of early return
33325 from sigwait under e.g. linux.
33326
333272004-05-27 Sergey Rybin <rybin@act-europe.fr>
33328
33329 * gnat_ugn.texi: Add description for the new gnatpp options:
33330 -rnb - replace the original source without creating its backup copy
33331 -c0 - do not format comments
33332
0fb2ea01
AC
333332004-05-24 Geert Bosch <bosch@gnat.com>
33334
33335 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33336 with 192 bits of precision, sufficient to reduce a double-extended
33337 arguments X with a maximum relative error of T'Machine_Epsilon, for X
33338 in -2.0**32 .. 2.0**32.
33339 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
33340 reduction by the processor, which only uses a 68-bit approximation of
33341 Pi.
33342 (Tan): Always reduce arguments and compute function either using
33343 the processor's fptan instruction, or by dividing sin and cos as needed.
33344
333452004-05-24 Doug Rupp <rupp@gnat.com>
33346
33347 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33348 gcc error on 32/64 bit VMS.
33349
333502004-05-24 Olivier Hainque <hainque@act-europe.fr>
33351
33352 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33353 since this is what we get for stack overflows although not documented
33354 as such.
33355 Document the issues which may require adjustments to our signal
33356 handlers.
33357
333582004-05-24 Ed Schonberg <schonberg@gnat.com>
33359
33360 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33361 enclosing dynamic scope if the instantiation is within a generic unit.
33362
333632004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33364
33365 * exp_dbug.ads: Fix typo.
33366
33367 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33368 Rename it to its proper name: system-linux-ia64.ads
33369 (stamp-gnatlib1): Remove extra target specific run time files when
33370 setting up the rts directory.
33371
333722004-05-24 Javier Miranda <miranda@gnat.com>
33373
33374 * einfo.ads, einfo.adb (Limited_Views): Removed.
33375 (Limited_View): New attribute that replaces the previous one. It is
33376 now a bona fide package with the limited-view list through the
33377 first_entity and first_private attributes.
33378
33379 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33380 limited-private-with clause.
33381 (Install_Limited_Withed_Unit): Install the private declarations of a
33382 limited-private-withed package. Update the installation of the shadow
33383 entities according to the new structure (see Build_Limited_Views)
33384 (Build_Limited_Views): Replace the previous implementation of the
33385 limited view by a package entity that references the first shadow
33386 entity plus the first shadow private entity (required for limited-
33387 private-with clause)
33388 (New_Internal_Shadow_Entity): Code cleanup.
33389 (Remove_Limited_With_Clause): Update the implementation to undo the
33390 new work carried out by Build_Limited_Views.
33391 (Build_Chain): Complete documentation.
33392 Replace Ada0Y by Ada 0Y in comments
33393 Minor reformating
33394
33395 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33396 types the level of accessibility depends on the enclosing type
33397 declaration.
33398
33399 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33400 entities. Complete documentation of previous change.
33401
334022004-05-24 Robert Dewar <dewar@gnat.com>
33403
33404 * namet.adb: Minor reformatting
33405 Avoid use of name I (replace by J)
33406 Minor code restructuring
33407
33408 * sem_ch6.adb: Minor reformatting
33409
33410 * lib-writ.adb: Do not set restriction as active if this is a
33411 Restriction_Warning case.
33412
33413 * sem_prag.adb: Reset restriction warning flag if real pragma
33414 restriction encountered.
33415
33416 * s-htable.adb: Minor reformatting
33417 Change rotate count to 3 in Hash (improves hash for small strings)
33418
33419 * 5qsystem.ads: Add comments for type Address (no literals allowed).
33420
33421 * gnat_ugn.texi: Add new section of documentation "Code Generation
33422 Control", which describes the use of -m switches.
33423
334242004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
33425
a1db9d9c
AC
33426 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33427 through the DECL_INITIAL for renamed variables.
0fb2ea01 33428
7599f1b0
AC
334292004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33430
33431 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33432
c37bb106
AC
334332004-05-19 Joel Brobecker <brobecker@gnat.com>
33434
33435 * exp_dbug.ads: Correct comments concerning handling of overloading,
33436 since we no longer use $ anymore.
33437
334382004-05-19 Sergey Rybin <rybin@act-europe.fr>
33439
33440 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33441 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33442 with illegal subunits.
33443
334442004-05-19 Ed Schonberg <schonberg@gnat.com>
33445
33446 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33447 body with front-end inlining enabled, check whether an inline pragma
33448 appears immediately after the body and applies to it.
33449
33450 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33451 enabled and the pragma appears after the body of the subprogram.
33452
b5e792e2
AC
334532004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33454
33455 Part of function-at-a-time conversion
33456
33457 * misc.c (adjust_decl_rtl): Deleted.
33458 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33459 Define.
33460
33461 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33462 (add_decl_stmt, add_stmt, block_has_vars): New functions.
33463 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33464
33465 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33466 when making a decl.
33467 (gnat_to_gnu_entity): Likewise.
33468 Use add_stmt to update setjmp buffer.
33469 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33470 flush_addressof.
33471 No longer call adjust_decl_rtl.
33472 (DECL_INIT_BY_ASSIGN_P): New macro.
33473 (DECL_STMT_VAR): Likewise.
33474
33475 * trans.c (gigi): Call start_block_stmt to make the outermost
33476 BLOCK_STMT.
33477 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33478 Call start_block_stmt and end_block_stmt temporarily.
33479 Use gnat_expand_stmt instead of expand_expr_stmt.
33480 (add_decl_stmt): New function.
33481 (tree_transform): Call it.
33482 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33483 (end_block_stmt): Set type and NULL_STMT.
33484 (gnat_expand_stmt): Make recursize call instead of calling
33485 expand_expr_stmt.
33486 (gnat_expand_stmt, case DECL_STMT): New case.
33487 (set_lineno_from_sloc): Do nothing if global.
33488 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33489 (start_block_stmt, add_stmt, end_block_stmt): New functions.
33490 (build_block_stmt): Call them.
33491 (gnat_to_code): Don't expand NULL_STMT.
33492 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33493 args.
33494 (tree_transform): Likewise.
33495 (tree_transform, case N_Null_Statement): Return NULL_STMT.
33496 (gnat_expand_stmt, case NULL_STMT): New case.
33497 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33498 IF_STMT_TRUE.
33499
33500 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33501 TREE_ADDRESSABLE.
33502
33503 * utils.c (create_var_decl): Do not call expand_decl or
33504 expand_decl_init.
33505 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33506 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33507 here.
33508 (struct e_stack): Add chain_next to GTY.
33509 (struct binding_level): Deleted.
33510 (struct ada_binding_level): New struct.
33511 (free_block_chain): New.
33512 (global_binding_level, clear_binding_level): Deleted.
33513 (global_bindings_p): Rework to see if no chain.
33514 (kept_level_p, set_block): Deleted.
33515 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33516 new data structure and work directly on BLOCK node.
33517 (gnat_poplevel): Similarly.
33518 (get_decls): Look at BLOCK_VARS.
33519 (insert_block): Work directly on BLOCK node.
33520 (block_has_var): New function.
33521 (pushdecl): Rework for new binding structures.
33522 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33523 poplevel.
33524 (build_subprog_body): Likewise.
33525 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33526
33527 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33528
33529 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33530 (DECL_STMT_VAR): Likewise.
33531
335322004-05-17 Robert Dewar <dewar@gnat.com>
33533
33534 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33535 procedure
33536
33537 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33538 of restriction synonyums by using
33539 Restrict.Process_Restriction_Synonyms.
33540
33541 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33542
33543 * s-restri.ads (Tasking_Allowed): Correct missing comment
33544
33545 * s-rident.ads: Add entries for restriction synonyms
33546
33547 * ali.adb: Fix some problems with badly formatted ALI files that can
33548 result in infinite loops.
33549
33550 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33551 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33552 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33553 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33554 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33555 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33556 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33557 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33558 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33559 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33560 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33561 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33562 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33563 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33564 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33565 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33566 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33567 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33568 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33569 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33570 to Task_Id (minor cleanup).
33571
335722004-05-17 Vincent Celier <celier@gnat.com>
33573
33574 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33575 directory separator.
33576
33577 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33578 project being extended, if Languages is not declared in extending
33579 project.
33580
335812004-05-17 Javier Miranda <miranda@gnat.com>
33582
33583 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33584 limited view of a visible sibling.
33585
9bc856dd
AC
335862004-05-14 Robert Dewar <dewar@gnat.com>
33587
33588 * gnat_ugn.texi: Minor change to -gnatS documentation
33589
33590 * sprint.adb: Remove some instances of Assert (False) and for this
33591 purpose replace them by output of a ??? string.
33592
33593 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33594 Assert (False).
33595
33596 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33597 flag processing. This was suppressing required dependencies in
33598 No_Run_Time mode and is not needed since the binder does not generate
33599 references for things in libgnat anyway.
33600
33601 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33602 warning.
33603
336042004-05-14 Thomas Quinot <quinot@act-europe.fr>
33605
33606 * gnat_ugn.texi: Document AIX-specific issue with initialization of
33607 resolver library.
33608
33609 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33610 action for the case of an actual parameter in an init proc call.
33611
336122004-05-14 Ed Schonberg <schonberg@gnat.com>
33613
33614 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33615 subtype, check visible entities in base type.
33616
33617 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33618 actions if the object is a renaming.
33619
33620 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33621 Check_Formal_Package_Instance, to determine more precisely when the
33622 formal and the actual denote the same entity.
33623
336242004-05-14 Javier Miranda <miranda@gnat.com>
33625
33626 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33627
33628 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33629 corresponding to a private_with must be removed from visibility; it
33630 will be made visible later, just before we analyze the private part of
33631 the package.
33632 (Check_Private_Child_Unit): Allow private_with clauses in public
33633 siblings.
33634 (Install_Siblings): Make visible the private entities of private-withed
33635 siblings.
33636 (Install_Withed_Unit): Do not install the private withed unit if we
33637 are compiling a package declaration and the Private_With_OK flag was
33638 not set by the caller. These declarations will be installed later,
33639 just before we analyze the private part of the package.
33640
33641 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33642 during the evaluation of the expression that initializes the object,
33643 decorate it with the expected type to avoid cascade errors.
33644 Code cleanup.
33645
33646 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33647 subprogram we have to install the private_with clauses after its
33648 specification has been analyzed (as documented in AI-262.TXT).
33649
33650 * sem_ch8.adb (Has_Private_With): New function. Determines if the
33651 current compilation unit has a private with on a given entity.
33652 (Find_Direct_Name): Detect the Beaujolais problem described in
33653 AI-262.TXT
33654
33655 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33656 provides the functionality of the function Is_Ancestor that was
33657 previously available in sem_ch10. It has been renamed to avoid
33658 overloading.
33659
33660 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33661
336622004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33663
33664 * utils.c (build_vms_descriptor): Use SImode pointers.
33665
336662004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
33667
33668 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33669
336702004-05-14 GNAT Script <nobody@gnat.com>
33671
33672 * Make-lang.in: Makefile automatically updated
33673
084c663c
AC
336742004-05-14 Arnaud Charlet <charlet@act-europe.fr>
33675
33676 Renaming of target specific files for clarity
33677
6615c446 33678 * Makefile.in: Rename GNAT target specific files.
084c663c
AC
33679
33680 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33681 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33682 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33683 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33684 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33685 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33686 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33687 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33688 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33689 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33690 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33691 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33692 51osinte.adb, 51osinte.ads, 51system.ads,
33693 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33694 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33695 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33696 56tpopsp.adb, 57system.ads, 58system.ads,
33697 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33698 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33699 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33700 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33701 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33702 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33703 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33704 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33705 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33706 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33707 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33708 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33709 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33710 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33711 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33712 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33713 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33714 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33715 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33716 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33717 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33718 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33719 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33720 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33721 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33722 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33723 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33724 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33725 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33726 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33727 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33728 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33729 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33730 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33731 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33732 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33733 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33734 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33735 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33736 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33737
33738 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33739 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33740 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33741 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33742 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33743 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33744 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33745 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33746 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33747 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33748 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33749 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33750 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33751 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33752 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33753 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33754 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33755 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33756 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33757 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33758 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33759 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33760 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33761 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33762 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33763 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33764 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33765 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33766 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33767 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33768 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33769 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33770 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33771 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33772 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33773 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33774 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33775 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33776 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33777 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33778 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33779 s-osinte-vms.ads, s-osinte-vxworks.adb,
33780 s-osinte-vxworks.ads, s-osprim-mingw.adb,
33781 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33782 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33783 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33784 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33785 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33786 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33787 s-stchop-vxworks.adb, s-taprop-dummy.adb,
33788 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33789 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33790 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33791 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33792 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33793 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33794 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33795 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33796 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33797 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33798 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33799 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33800 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33801 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33802 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33803 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33804 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33805 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33806 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33807 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33808 system-irix-o32.ads, system-linux-x86_64.ads,
33809 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33810 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33811 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33812 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33813 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33814 system-vxworks-mips.ads, system-vxworks-ppc.ads,
33815 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33816 above.
33817
90afe2c9
ZW
338182004-05-13 Zack Weinberg <zack@codesourcery.com>
33819
33820 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33821
6de9cd9a
DN
338222004-05-13 Diego Novillo <dnovillo@redhat.com>
33823
33824 Merge from tree-ssa-20020619-branch.
33825
33826 * config-lang.in (boot_language, build_by_default): Set
33827 to no.
33828 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33829 (max_size): Add static chain op for call_expr.
33830
f5657d67
RS
338312004-05-12 Richard Sandiford <rsandifo@redhat.com>
33832
33833 PR target/15331
33834 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33835
4413b636
RS
338362004-05-11 Roger Sayle <roger@eyesopen.com>
33837
33838 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33839 COND_EXPR.
33840
5950a3ac
AC
338412004-05-10 Doug Rupp <rupp@gnat.com>
33842
33843 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33844 system.aux_dec.
33845
33846 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33847
33848 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33849
33850 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33851 Fixes undefined symbols in IA64 gnatlib.
33852
33853 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33854
33855 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33856 Short_Address). This will be moved to system.auxdec.
33857
338582004-05-10 Thomas Quinot <quinot@act-europe.fr>
33859
33860 * sem_util.adb: Replace test for presence of a node that is always
33861 present with a call to Discard_Node.
33862
33863 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33864 Analyze on the library unit node after generation of distribution stub
33865 constructs. The call was a no-op because Unit_Node has already been
33866 Analyzed, and the tree fragments for the distribution stubs are
33867 analyzed as they are inserted in Exp_Dist.
33868 Update comment regarding to distribution stubs to reflect that we
33869 do not generate stub in separate files anymore.
33870
33871 * einfo.ads: Clarify the fact that a tagged private type has the
33872 E_Record_Type_With_Private Ekind.
33873
33874 * erroutc.adb: Minor reformatting
33875
33876 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33877 values if line length is increased using -gnatyM (noticed during code
33878 reading).
33879
33880 * eval_fat.adb: Minor reformatting
33881 Put spaces around exponentiation operator
33882
338832004-05-10 Ed Schonberg <schonberg@gnat.com>
33884
33885 PR ada/15005
33886 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33887 has been rewritten as an explicit dereference, retrieve type of
33888 original node to check for possibly unconstrained record type.
33889
338902004-05-10 Ed Schonberg <schonberg@gnat.com>
33891
33892 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33893 overriding, use the operation of the parent unconditionally.
33894
33895 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33896 operation when either operand is a literal, to avoid further
33897 ambiguities.
33898
33899 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33900 overridden by a previous explicit declaration, mark the previous entity
33901 as overriding.
33902
33903 * sem_disp.adb (Check_Dispatching_Operation): New predicate
33904 Is_Visibly_Controlled, to determine whether a declaration of a
33905 primitive control operation for a derived type overrides an inherited
33906 one. Add warning if the explicit declaration does not override.
33907
339082004-05-10 Vincent Celier <celier@gnat.com>
33909
33910 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33911 some cases when the sources are no longer present.
33912
33913 * make.adb (Collect_Arguments): Fail if an external source, not part
33914 of any project need to be compiled, when switch -x has not been
33915 specified.
33916
33917 * makeusg.adb: Document new switch -x
33918
33919 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33920 defaulted to False.
33921
33922 * switch-m.adb (Scan_Make_Switches): New switch -x
33923
33924 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33925 gnatmake switch -x.
33926
33927 * gnat_ugn.texi: Document new gnatmake switch -x
33928
339292004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
33930
33931 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33932
33933 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33934 (process_attributes): Likewise.
33935
339362004-05-10 Joel Brobecker <brobecker@gnat.com>
33937
33938 * s-inmaop.ads: Fix spelling mistake in one of the comments.
33939
339402004-05-10 Robert Dewar <dewar@gnat.com>
33941
33942 * gnat_ugn.texi: Document that for config pragma files, the maximum
33943 line length is always 32767.
33944
33945 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33946 literals is now allowed.
33947
33948 * gnat-style.texi: Remove statement about splitting long lines before
33949 an operator rather than after, since we do not follow this rule at all.
33950 Clarify rule (really lack of rule) for spaces around exponentiation
33951
33952 * sem_elim.adb: Allow concatenation of string literals as well as a
33953 single string literal for pragma arguments.
33954
33955 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33956
33957 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33958 written for append case.
33959
33960 * frontend.adb: Changes to avoid checking max line length in config
33961 pragma files.
33962
33963 * g-os_lib.ads: Minor reformatting
33964
33965 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33966 wrong in any case. Instead use standard value. Noticed during code
33967 reading.
33968
33969 * opt.ads (Max_Line_Length): New field, used to implement removal of
33970 limitation on length of lines when scanning config pragma files.
33971
33972 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33973 makeutl.ads, makeutl.adb: Minor reformatting
33974
33975 * scn.adb: Do not check line length while scanning config pragma files
33976 Do not check line length while scanning out license information
33977
33978 * scng.adb: Changes to avoid line length checks while parsing config
33979 pragma files.
33980
339812004-05-10 GNAT Script <nobody@gnat.com>
33982
33983 * Make-lang.in: Makefile automatically updated
33984
48664302
AC
339852004-05-05 Arnaud Charlet <charlet@act-europe.fr>
33986
33987 * osint.adb (Find_Program_Name): Fix handling of VMS version
33988 number.
33989
aa720a54
AC
339902004-05-05 Emmanuel Briot <briot@act-europe.fr>
33991
33992 * g-os_lib.ads (Invalid_Time): New constant
33993
33994 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33995 return OS_Time instead of time_t to match what is imported by Ada.
33996 Now return -1 if the file doesn't exist, instead of a random value
33997
339982004-05-05 Robert Dewar <dewar@gnat.com>
33999
34000 * usage.adb: Add line for -gnatR?s switch
34001
34002 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
34003
34004 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
34005 and for Match (Data_First, Data_last)
34006
34007 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
34008 written when we are dealing with multi-unit files.
34009
340102004-05-05 Jerome Guitton <guitton@act-europe.fr>
34011
34012 * Makefile.in: Remove unused targets and variables.
34013
340142004-05-05 Vincent Celier <celier@gnat.com>
34015
34016 * switch-m.adb: New gnatmake switch -eI
34017
34018 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
34019 of new gnatmake switch -eInnn.
34020
34021 * makegpr.adb: Take into account new parameters Index and Src_Index in
34022 Prj.Util.
34023
34024 * clean.adb: Implement support for multi-unit sources, including new
34025 switch -i.
34026
34027 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
34028 Src_Index.
34029
34030 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
34031 (Extract_From_Q): New out parameter Index
34032 (Mark, Is_Marked): Subprograms moved to Makeutl
34033 (Switches_Of): New parameter Source_Index
34034 (Add_Switch): New parameter Index
34035 (Check): New parameter Source_Index
34036 (Collect_Arguments): New parameter Source_Index
34037 (Collect_Arguments_And_Compile): New parameter Source_Index
34038 (Compile): New parameter Source_Index
34039 Put subprograms in alphabetical order
34040 Add support for multi-source sources, including in project files.
34041
34042 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
34043 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
34044 Make.
34045
34046 * makeusg.adb: New gnatmake switch -eInnn
34047
34048 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
34049 Prj.Util.Value_Of.
34050
34051 * opt.ads (Main_Index): New variable, defaulted to 0.
34052
34053 * osint.ads, osinte.adb (Add_File): New parameter Index
34054 (Current_Source_Index): New function
34055
34056 * prj.adb: Take into account new components Index and Src_Index
34057
34058 * prj.ads (String_Element): New component Index
34059 (Variable_Value): New component Index
34060 (Array_Element): New component Src_Index
34061
34062 * prj-attr.adb: Indicate that optional index may be specified for
34063 attributes Main, Executable, Spec, Body and some of Switches.
34064
34065 * prj-attr.ads (Attribute_Kind): New values for optional indexes
34066 (Attribute_Record): New component Optional_Index
34067
34068 * prj-com.ads (File_Name_Data): New component Index
34069
34070 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34071
34072 * prj-env.adb (Put): Output optional index
34073
34074 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
34075 attributes Spec and Body.
34076
34077 * prj-nmsc.adb: Process optional indexes
34078
34079 * prj-pp.adb: Ouput "at" for optional indexes
34080
34081 * prj-proc.adb: Take into account optional indexes
34082
34083 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34084 Optional_Index. For string literal,
34085 process optional index when Optional_Index is True.
34086 (Parse_Expresion): New Boolean parameter Optional_Index
34087
34088 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34089 (Set_Source_Index_Of): New procedure
34090
34091 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34092 index.
34093
34094 * prj-util.ads (Executable_Of): New parameter Index
34095 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34096 New parameter Src_Index, defaulted to 0.
34097
340982004-05-05 Ed Schonberg <schonberg@gnat.com>
34099
34100 PR ada/15257
34101 * sem_ch3.adb (Access_Definition): If this is an access parameter
34102 whose designated type is imported through a limited_with clause, do
34103 not add the enclosing subprogram to the list of private dependents of
34104 the type.
34105
341062004-05-05 Ed Schonberg <schonberg@gnat.com>
34107
34108 PR ada/15258
34109 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34110 a limited_with clause, and the other is its non-limited view.
34111
341122004-05-05 Thomas Quinot <quinot@act-europe.fr>
34113
34114 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34115
90afe2c9 34116 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
aa720a54
AC
34117 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34118 Stand.Boolean_Literals to produce references to entities
34119 Standard_False and Standard_True from compile-time computed boolean
34120 values.
34121
34122 * stand.ads (Boolean_Literals): New variable, provides the entity
34123 values for False and True, for use by the expander.
34124
341252004-05-05 Doug Rupp <rupp@gnat.com>
34126
34127 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34128 5vinmaop.adb: Unchecked convert Short_Address vice Address
34129
34130 * adaint.c, raise.c: Caste CRTL function return value
34131 to avoid gcc error on 32/64 bit IVMS.
34132
34133 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34134 target = IA64/VMS.
34135
34136 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34137
34138 * 5qsystem.ads (Address): Declare as Long_Integer
34139 (Short_Address): Declare as 32 bit subtype of Address
34140 Declare abstract address operations to avoid gratuitous ambiguities.
34141
341422004-05-05 Jose Ruiz <ruiz@act-europe.fr>
34143
34144 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34145 instead of the old Boolean_Entry_Barriers.
34146 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34147
341482004-05-05 GNAT Script <nobody@gnat.com>
34149
34150 * Make-lang.in: Makefile automatically updated
34151
1ab2888d
AC
341522004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34153
34154 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34155
9f4fd324
AC
341562004-05-03 Olivier Hainque <hainque@act-europe.fr>
34157
34158 PR ada/15152
9f4fd324
AC
34159 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34160 alone. Replacing object references by literals is inappropriate in a
34161 so low level context.
34162
341632004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34164
34165 * a-exexpr.adb: Add comments
34166
341672004-05-03 Joel Brobecker <brobecker@gnat.com>
34168
34169 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34170 declare the Ancestor_Tags array in Type_Specific_Data with a small size
34171 without risking a bounds check error when accessing one of its
34172 components.
34173 (Type_Specific_Data): Define Ancestor_Tags as a small array.
34174 This prevents us from hitting a limitation during the debug info
34175 generation when using stabs.
34176
34177 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34178 small array.
34179 This prevents us from hitting a limitation during the debug info
34180 generation when using stabs.
34181
341822004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
34183
34184 lang-specs.h: Remove -gnatz* from specs.
34185
341862004-05-03 Vincent Celier <celier@gnat.com>
34187
34188 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34189
34190 * Make-lang.in, Makefile.in: Add gprmake
34191
341922004-05-03 Thomas Quinot <quinot@act-europe.fr>
34193
34194 * sem_aggr.adb: Fix typo in comment.
34195
341962004-05-03 Robert Dewar <dewar@gnat.com>
34197
34198 * make.adb: Minor reformatting
34199
34200 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34201
34202 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34203 so that it works when address is not a private type.
34204
34205 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34206 properly with rewritten unchecked conversions. This prevents
34207 order-of-elaboration issues that can otherwise arise.
34208 (Minimum_Size): Don't check size of access types under VMS
34209
34210 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34211 interpretations of integer literals as type System.Address.
34212
34213 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34214 (Is_Descendent_Of): New function
34215
342162004-05-03 Jose Ruiz <ruiz@act-europe.fr>
34217
34218 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34219 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34220 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34221
34222 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34223 of the old Max_Entry_Queue_Depth.
34224
34225 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34226 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34227 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34228
34229 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34230 New entry for proper handling of Max_Entry_Queue_Depth.
34231 New entry for proper handling of No_Dynamic_Interrupts.
34232
34233 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34234 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34235 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34236 the GNAT specific restriction Max_Entry_Queue_Depth.
34237 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34238 the GNAT specific restriction No_Dynamic_Interrupts.
34239
34240 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34241 instead of the old Boolean_Entry_Barriers.
34242 Use the new restriction No_Dynamic_Attachment instead of the old
34243 No_Dynamic_Interrupts.
34244
34245 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34246 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34247
34248 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34249 of the old Max_Entry_Queue_Depth.
34250
342512004-05-03 GNAT Script <nobody@gnat.com>
34252
34253 * Make-lang.in: Makefile automatically updated
34254
d935a36e
AC
342552004-04-29 Ed Schonberg <schonberg@gnat.com>
34256
34257 * checks.adb (Enable_Range_Check): If the prefix of an index component
34258 is an access to an unconstrained array, perform check unconditionally.
34259
342602004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34261
34262 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34263 Component_Clause.
34264
342652004-04-29 Olivier Hainque <hainque@act-europe.fr>
34266
34267 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34268 alternate stack setting. There was no support for the tasking cases
34269 and the changes eventually caused a number of side-effect failures in
34270 the non-tasking case too.
34271
342722004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
34273
34274 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34275 -gnats is passed.
34276
342772004-04-29 Vincent Celier <celier@gnat.com>
34278
34279 * make.adb (Gnatmake): Increase max size of argument array for
34280 gnatbind for the potential addition of -F.
34281 If there are Stand-Alone Library projects, invoke gnatbind with -F to
34282 be sure that elaboration flags will be checked.
34283
34284 * switch-c.adb: Correct call to Scan_Pos for -gnateI
34285
342862004-04-29 Thomas Quinot <quinot@act-europe.fr>
34287
34288 * sem_warn.adb (Check_References): Move '<access-variable> may be
34289 null' warning out of under Warn_On_No_Value_Assigned.
34290
342912004-04-29 Ed Falis <falis@gnat.com>
34292
34293 * gnat_ugn.texi: Fixed texi error
34294
342952004-04-29 Robert Dewar <dewar@gnat.com>
34296
34297 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34298 abstract operations if they come from predefined files.
34299
34300 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34301 Dynamic, not RM).
34302
34303 * s-addope.adb: Correct obvious error in mod function
34304
343052004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
34306
34307 * Makefile.in: Add target pairs for powerpc darwin*
34308 tasking support.
34309
34310 * a-intnam-darwin.ads, s-osinte-darwin.adb,
34311 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34312
ea16c81b
UW
343132004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34314
34315 * Makefile.in: Add target macro definitions for s390*-linux*.
34316 * system-linux-s390.ads: New file.
34317 * system-linux-s390x.ads: New file.
34318
f0e6f845
JM
343192004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
34320
34321 * gnat_ugn.texi: Correct argument to @setfilename.
34322
e8c2eedc
UW
343232004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34324
34325 * a-exexpr.adb (Unwind_Word): New data type.
34326 (Unwind_Exception): Use it as type of Private1 and Private2.
34327
34328 * raise.c (db_action_for): Fix debug printf.
34329
f2c9e65a
AC
343302004-04-27 Ed Schonberg <schonberg@gnat.com>
34331
34332 * a-wtmoio.ads: Formal type must be a modular type, not a signed
34333 integer type.
34334
343352004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34336
34337 * decl.c (gnat_to_gnu_entity, case object): Call
34338 __builtin_update_setjmp_buf.
34339
34340 * gigi.h (update_setjmp_buf): Deleted.
34341 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34342
34343 * misc.c: (update_setjmp_buf): Deleted.
34344
34345 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34346 around block of RTL.
34347
34348 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34349
35b7fa6a
AC
343502004-04-26 Thomas Quinot <quinot@act-europe.fr>
34351
34352 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34353 subprogram for which no pragma All_Calls_Remote applies, store the
34354 address of the real subprogram in the underlying record type, so local
34355 dereferences do not go through the PCS.
34356
343572004-04-26 Robert Dewar <dewar@gnat.com>
34358
34359 * i-c.ads: Add some type qualifications to avoid ambiguities when
34360 compiling with s-auxdec.ads and a non-private address type.
34361
343622004-04-26 Arnaud Charlet <charlet@act-europe.fr>
34363
34364 * Makefile.rtl: Fix error in previous check-in:
34365 Add s-addope.o to non tasking object list (rather than tasking object
34366 list).
34367
343682004-04-26 Javier Miranda <miranda@gnat.com>
34369
34370 * sem_aggr.adb: Fix typo in comments
34371 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34372 Required to check the null-exclusion attribute.
34373
34374 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34375 case of anonymous access types in record and array components. For a
34376 component definition the level is the same of the enclosing composite
34377 type.
34378
34379 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34380 that are anonymous access types the level of accessibility depends on
34381 the enclosing type declaration. In order to have this information, set
34382 the scope of the anonymous access type to the enclosing record type
34383 declaration.
34384 (Array_Type_Declaration): In case of components that are anonymous
34385 access types the level of accessibility depends on the enclosing type
34386 declaration. In order to have this information, set the scope of the
34387 anonymous access type to the enclosing array type declaration.
34388
34389 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34390 access type.
34391
34392 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34393 renaming of anonymous access-to-constant types allowed if and only if
34394 the renamed object is access-to-constant.
34395
34396 * sem_util.adb (Type_Access_Level): In case of anonymous access types
34397 that are component_definition or discriminants of a nonlimited type,
34398 the level is the same as that of the enclosing component type.
34399
344002004-04-26 Sergey Rybin <rybin@act-europe.fr>
34401
34402 * sem_elim.adb: Some minor code reorganization from code reading. Fix
34403 misprint in the function name (File_Name_Match).
34404
9e94c78f 344052004-04-23 Laurent Guerby <laurent@guerby.net>
5a944040 34406
90afe2c9 34407 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5a944040 34408 install.
90afe2c9 34409
d0fd1344
RO
344102004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34411
34412 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34413
cc4f0de1
AC
344142004-04-23 Emmanuel Briot <briot@act-europe.fr>
34415
34416 * adaint.c (__gnat_try_lock): No longer requires that the parent
34417 directory be writable, the directory itself is enough.
34418 (gnat_is_absolute_path): Change profile, so that the call from
34419 GNAT.OS_Lib can be made more efficient.
34420
34421 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34422 from GNAT.OS_Lib can be made more efficient.
34423
34424 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34425 one copy of the file name. Found by code reading.
34426
344272004-04-23 Vincent Celier <celier@gnat.com>
34428
34429 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34430 Correct documentation on gnatmake switches transmitted to the compiler
34431
34432 * ali.ads: Minor comment fix
34433
344342004-04-23 Javier Miranda <miranda@gnat.com>
34435
34436 * sem_ch6.adb: (Confirming Types): Code cleanup
34437
34438 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34439 subprogram types: E_Anonymous_Access_Subprogram_Type and
34440 E_Anonymous_Access_Protected_Subprogram_Type.
34441
344422004-04-23 Thomas Quinot <quinot@act-europe.fr>
34443
34444 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34445 whether a pragma All_Calls_Remote applies to the subprogram on which
34446 'Access is taken.
34447 No functional change is introduced by this revision; the new parameter
34448 will be used to allow calls to local RCI subprograms to be optimized
34449 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34450 as is already done in the PolyORB implementation of the DSA.
34451
34452 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34453 whether a pragma All_Calls_Remote applies to the subprogram on which
34454 'Access is taken.
34455 No functional change is introduced by this revision; the new parameter
34456 will be used to allow calls to local RCI subprograms to be optimized
34457 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34458 as is already done in the PolyORB implementation of the DSA.
34459
344602004-04-23 Robert Dewar <dewar@gnat.com>
34461
34462 * Makefile.rtl: Add entry for s-addope.o in run time library list
34463 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34464 * s-addope.ads, s-addope.adb: New files.
34465
90afe2c9
ZW
34466 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34467 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
cc4f0de1
AC
34468 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34469 System.Address to be non-private and signed.
34470
34471 * sem_elim.adb: Minor reformatting (fairly extensive)
34472 Some minor code reorganization from code reading
34473 Add a couple of ??? comments
34474
344752004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34476
34477 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
90afe2c9 34478 (tree_transform, case N_If_Statement): Remove non-determinism.
cc4f0de1
AC
34479
34480 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34481
344822004-04-23 Sergey Rybin <rybin@act-europe.fr>
34483
34484 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34485 Eliminate' section.
34486
34487 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34488 no longer used as a parameter name for Eliminate pragma).
34489
9e94c78f 344902004-04-22 Laurent Guerby <laurent@guerby.net>
78bad775
LG
34491
34492 PR optimization/14984
34493 PR optimization/14985
34494 * trans.c (gigi): Fix non determinism leading to bootstrap
34495 comparison failures.
34496
af4b9434
AC
344972004-04-21 Pascal Obry <obry@gnat.com>
34498
34499 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34500 passed to spawnvp() to properly handle program pathname with spaces on
34501 Win32.
34502
345032004-04-21 Emmanuel Briot <briot@act-europe.fr>
34504
34505 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34506 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34507 unlocked in case of exceptions.
34508
345092004-04-21 Joel Brobecker <brobecker@gnat.com>
34510
34511 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34512 This function does not exist anymore.
34513
345142004-04-21 Thomas Quinot <quinot@act-europe.fr>
34515
34516 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34517
34518 * link.c: Move variables to the __gnat name space.
34519
34520 * Makefile.in: list link.o explicitly when needed.
34521
34522 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34523
345242004-04-21 Javier Miranda <miranda@gnat.com>
34525
34526 * einfo.adb (Original_Access_Type): New subprogram
34527 (Set_Original_Access_Type): New subprogram
34528 (Write_Field21_Name): Write the name of the new field
34529
34530 * einfo.ads (Original_Access_Type): New field present in access to
34531 subprogram types.
34532 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34533 E_Anonymous_Access_Protected_Subprogram_Type.
34534
34535 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34536 subprogram types.
34537
34538 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34539 to anonymous access to subprogram types.
34540
34541 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34542 to subprogram types.
34543
34544 * sem_ch3.adb (Access_Definition): Complete decoration of entities
34545 corresponding to anonymous access to subprogram types.
34546 (Analyze_Component_Declaration): Add new actual to the call to
34547 subprogram replace_anonymous_access_to_protected_subprogram.
34548 (Array_Type_Declaration): Add new actual to the call to subprogram
34549 replace_anonymous_access_to_protected_subprogram.
34550 (Process_Discriminants): Add new actual to the call to subprogram
34551 replace_anonymous_access_to_protected_subprogram.
34552 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34553
34554 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34555 formal.
34556
34557 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34558 access to subprogram types.
34559
34560 * sem_util.adb (Has_Declarations): Addition of package_specification
34561 nodes.
34562
345632004-04-21 Ed Schonberg <schonberg@gnat.com>
34564
34565 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34566 inlined flags to renamed entity only if in current unit.
34567
345682004-04-21 Thomas Quinot <quinot@act-europe.fr>
34569
34570 * s-parint.ads: Add DSA implementation marker.
34571
34572 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34573 value of System.Partition_Interface.DSA_Implementation to determine
34574 what version of the distributed systems annex is available (no
34575 implementation, GLADE, or PolyORB).
34576
345772004-04-21 Joel Brobecker <brobecker@gnat.com>
34578
34579 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34580
345812004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34582
34583 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34584 with new type if alias sets differ.
34585 Fixes ACATS c41103b.
34586
345872004-04-21 Vincent Celier <celier@gnat.com>
34588
34589 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34590 Add array Lang_Args for the language specific compiling argument
34591 switches.
34592
34593 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34594
345952004-04-21 Sergey Rybin <rybin@act-europe.fr>
34596
34597 * gnat_rm.texi: Update the descripton of the Eliminate pragma
34598 according to the recent changes in the format of the parameters of the
34599 pragma (replacing Homonym_Number with Source_Location).
34600
7324bf49
AC
346012004-04-19 Arnaud Charlet <charlet@act-europe.fr>
34602
34603 * 5isystem.ads: Removed, unused.
34604
34605 * gnat_rm.texi: Redo 1.13 change.
34606
346072004-04-19 Robert Dewar <dewar@gnat.com>
34608
34609 * s-stoele.ads: Clean up definition of Storage_Offset (the new
34610 definition is cleaner, avoids the kludge of explicit Standard operator
34611 references, and also is consistent with a visible System.Address with
34612 no visible operations.
34613
34614 * s-geveop.adb: Add declarations to avoid assumption of visible
34615 operations on type System.Address (since these might not be available
34616 if Address is a non-private type for which the operations
34617 are made abstract).
34618
34619 * sem_eval.adb: Minor reformatting
34620
34621 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34622 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34623 reformatting (new function spec format).
34624
34625 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34626 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34627 s-caun64.adb: Add declarations to avoid assumption of visible
34628 operations on type System.Address (since these might not be available
34629 if Address is a non-private type for which the operations are made
34630 abstract).
34631
34632 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34633
34634 * exp_intr.adb: Minor comment update
34635
34636 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34637
34638 * 5omastop.adb: Add declarations to avoid assumption of visible
34639 operations on type System.Address (since these might not be available
34640 if Address is a non-private type for which the operations
34641 are made abstract).
34642
346432004-04-19 Vincent Celier <celier@gnat.com>
34644
34645 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34646
34647 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34648 defaulted to Ada.
34649
34650 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34651 defaulted to Ada.
34652 Call Check with Process_Languages.
34653 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34654 with Process_Languages.
34655 (Recursive_Check): New Boolean parameter Process_Languages. Call
34656 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34657 Process_Languages.
34658
34659 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34660
34661 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34662 parameter Ada_Main, defaulted to True.
34663 Check for Ada specific characteristics only when Ada_Main is True.
34664
34665 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34666
34667 * prj.adb: (Project_Empty): Add new Project_Data components.
34668
34669 * prj.ads: New types and tables for non Ada languages.
34670 (Project_Data): New components Languages, Impl_Suffixes,
34671 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34672 Include_Path, Include_Data_Set.
34673
34674 * prj-env.ads, prj-env.adb: Minor reformatting
34675
34676 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34677 Put subprograms in alphabetical order
34678
34679 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34680 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34681 Opt.Follow_Links.
34682
34683 * mlib-prj.adb: Back out modification in last version, as they are
34684 incorrect.
34685 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34686
34687 * make.adb: (Mains): Moved to package Makeutl
34688 (Linker_Opts): Moved to package Makeutl
34689 (Is_External_Assignment): Moved to package Makeutl
34690 (Test_If_Relative_Path): Moved to package Makeutl
34691 (Gnatmake): Move sorting of linker options to function
34692 Makeutl.Linker_Options_Switches.
34693
8f9df7d8
VC
34694 * makeutl.ads, makeutl.adb: New files.
34695
7324bf49
AC
34696 * Makefile.in: Add makeutl.o to the object files for gnatmake
34697
34698 * makeusg.adb: Add line for new switch -eL.
34699
34700 * gnatls.adb (Image): New function.
34701 (Output_Unit): If in verbose mode, output the list of restrictions
34702 specified by pragmas Restrictions.
34703
34704 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34705 Text_IO.
34706
34707 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34708 needed, to put it in the range 1970 (included) - 2026 (excluded).
34709 (Time_Of): Do not shift Unix_Min_Year (1970).
34710 Shift the date by multiple of 56 years, if needed, to put it in the
34711 range 1970 (included) - 2026 (excluded).
34712
34713 * adaint.h, adaint.c (__gnat_set_executable): New function.
34714
347152004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34716
34717 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34718 and pop GC context.
34719 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34720 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34721 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34722 (tree_transform, case N_Code_Statement): Likewise.
34723 (gnat_expand_stmt, case LABEL_STMT): Don't look at
34724 LABEL_STMT_FIRST_IN_EH.
34725 (gnat_expand_stmt, case ASM_STMT): New case.
34726
34727 * utils2.c (build_unary_op): Properly set TREE_READONLY of
34728 UNCONSTRAINED_ARRAY_REF.
34729
34730 * utils.c (poplevel): Temporarily push/pop GC context around inline
34731 function expansion.
34732
34733 * decl.c (maybe_variable): Properly set TREE_READONLY of
34734 UNCONSTRAINED_ARRAY_REF.
34735 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34736
34737 * ada-tree.def: (ASM_STMT): New.
34738
34739 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34740 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34741 ASM_STMT_INPUT): New.
34742 (ASM_STMT_CLOBBER): Likewise.
34743
347442004-04-19 Thomas Quinot <quinot@act-europe.fr>
34745
34746 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34747 general rcheck mechanism to raise Program_Error for E.4(18), instead
34748 of a custom raiser in System.Partition_Interface.
34749 Part of general cleanup work before PolyORB integration.
34750
34751 * snames.ads, snames.adb: Add new runtime library entities and names
34752 for PolyORB DSA.
34753
34754 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34755 exp_dist.
34756 (Build_Subprogram_Id): New subprogram provided by exp_dist
34757 Code reorganisation in preparation for PolyORB integration.
34758
34759 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34760 exp_dist.
34761 (Build_Subprogram_Id): New subprogram provided by exp_dist
34762
34763 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34764 actual parameter types for call to dereference of an
34765 access-to-subprogram type.
34766
34767 * rtsfind.ads: Add new runtime library entities and names for PolyORB
34768 DSA.
34769
34770 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34771 instead, which has the same behaviour here since we never pass it a
34772 NULL pointer.
34773
34774 * link.c (run_path_option, Solaris case): Use -Wl, as for other
34775 platforms.
34776
34777 * Makefile.in: adjust object file lists for gnatlink and gnatmake
34778 to account for new dependency upon Interfaces.C.Strings + link.o
34779 For x86 FreeBSD, use 86numaux.
34780
34781 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34782 from Mlib.Tgt to Mlib.
34783
34784 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34785 target-independent.
34786
34787 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34788 target-specific versions of this subprogram, now implemented as a
34789 target-independent function in Mlib.
34790
34791 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34792 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34793 (Linker_Library_Path_Option): Remove target-specific versions of this
34794 subprogram, now implemented as a target-independent function in Mlib.
34795
34796 * atree.adb: (Allocate_Initialize_Node): New subprogram.
34797 Factors out node table slots allocation.
34798 (Fix_Parents): New subprogram.
34799 Encapsulate the pattern of fixing up parent pointers for syntactic
34800 children of a rewritten node.
34801 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34802 (Rewrite): Use New_Copy when creating saved copy of original node.
34803 (Replace): Use Copy_Node to copy nodes.
34804
348052004-04-19 Javier Miranda <miranda@gnat.com>
34806
34807 * sprint.adb (Sprint_Node_Actual): Give support to the new
34808 Access_To_Subprogram node available in Access_Definition nodes. In
34809 addition, give support to the AI-231 node fields: null-exclusion,
34810 all-present, constant-present.
34811
34812 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34813
90afe2c9 34814 * sinfo.ads, sinfo.adb:
7324bf49
AC
34815 New field Access_To_Subprogram_Definition in Access_Definition nodes
34816
34817 * sem_ch6.adb (Process_Formals): Move here the code that creates and
34818 decorates internal subtype declaration corresponding to the
34819 null-excluding formal. This code was previously in Set_Actual_Subtypes.
34820 In addition, carry out some code cleanup on this code. In case of
34821 access to protected subprogram call
34822 Replace_Anonymous_Access_To_Protected_Subprogram.
34823 (Set_Actual_Subtypes): Code cleanup.
34824
34825 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34826 Find_Type in case of anonymous access renamings. Add warning in case of
34827 null-excluding attribute used in anonymous access renaming.
34828
34829 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34830 subprogram
34831
34832 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34833 subprogram.
34834 (Access_Definition): In case of anonymous access to subprograms call
34835 the corresponding semantic routine to decorate the node.
34836 (Access_Subprogram_Declaration): Addition of some comments indicating
34837 some code that probably should be added here. Detected by comparison
34838 with the access_definition subprogram.
34839 (Analyze_Component_Declaration): In case of access to protected
34840 subprogram call Replace_Anonymous_Access_To_Protected.
34841 (Array_Type_Declaration): In case of access to protected subprogram call
34842 Replace_Anonymous_Access_To_Protected_Subprogram.
34843 (Process_Discriminants): In case of access to protected subprogram call
34844 Replace_Anonymous_Access_To_Protected_Subprogram.
34845
34846 * par.adb (P_Access_Definition): New formal that indicates if the
34847 null-exclusion part was present.
34848 (P_Access_Type_Definition): New formal that indicates if the caller has
34849 already parsed the null-excluding part.
34850
34851 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34852 (P_Identifier_Declarations): Code cleanup and give support to renamings
34853 of anonymous access to subprogram types.
34854 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34855 (P_Array_Type_Definition): Give support to AI-254.
34856 (P_Component_Items): Give support to AI-254.
34857 (P_Access_Definition): New formal that indicates if the header was
34858 already parsed by the caller.
34859 (P_Access_Type_Definition): New formal that indicates if the caller has
34860 already parsed the null-excluding part.
34861
34862 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34863 call to P_Access_Definition.
34864
348652004-04-19 Geert Bosch <bosch@gnat.com>
34866
34867 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34868 the delicate semantics of floating-point to integer conversion.
34869 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34870
34871 * eval_fat.adb (Machine_Mantissa): Moved to spec.
34872 (Machine_Radix): New function.
34873
34874 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34875 conversion checks.
34876 (Machine_Radix): New function also for use in conversion checks.
34877
348782004-04-19 Ed Schonberg <schonberg@gnat.com>
34879
34880 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34881
34882 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34883 to decorate the access-to-protected subprogram and the equivalent type.
34884
34885 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34886 to anonymous access to subprogram types.
34887
34888 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34889 constant-folding, for legality checks in contexts that require an RM
34890 static expression.
34891
34892 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34893 temporary but stack checking is not enabled, increment serial number
34894 to so that symbol generation is consistent with and without stack
34895 checking.
34896
34897 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34898 independent on whether stack checking is enabled, caller must check
34899 the corresponding flag.
34900
34901 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34902 range checks.
34903 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34904 parent if it has discriminants.
34905 (Build_Derived_Private_Type): Constructed full view does
34906 not come from source.
34907 (Process_Discriminants): Default discriminants on a tagged type are
34908 legal if this is the internal completion of a private untagged
34909 derivation.
34910
34911 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34912 no constraint checks, because it corresponds to an existing object.
34913
34914 * sem_prag.adb (Process_Convention): Pragma applies
34915 only to subprograms in the same declarative part, i.e. the same unit,
34916 not the same scope.
34917
34918 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34919 ignore type mismatch on a numeric conversion if expression comes from
34920 expansion.
34921
349222004-04-19 Sergey Rybin <rybin@act-europe.fr>
34923
34924 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34925 Homonym_Number parameter, add processing for Source_Location parameter
34926 corresponding.
34927 (Check_Eliminated): Remove the check for homonym numbers, add the check
34928 for source location traces.
34929
34930 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34931 with Arg_Source_Location corresponding to the changes in the format of
34932 the pragma.
34933
34934 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34935 Eliminate pragma corresponding to the changes in the format of the
34936 pragma: Homonym_Number is replaced with Source_Location, two ways of
34937 distinguishing homonyms are mutially-exclusive.
34938
349392004-04-19 Joel Brobecker <brobecker@gnat.com>
34940
34941 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34942
34943 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34944 No_Dollar_In_Label, no longer necessary, as it is always True.
34945 (Strip_Suffixes): Likewise.
34946
349472004-04-19 Gary Dismukes <dismukes@gnat.com>
34948
34949 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34950 modulus for compatibility with size clause on targets with 16-bit
34951 Integer.
34952
34953 * layout.adb (Discrimify): In the case of private types, set Vtyp to
34954 full type to fix type mismatches on calls to size functions for
34955 discriminant-dependent array components.
34956
349572004-04-19 Jerome Guitton <guitton@act-europe.fr>
34958
34959 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34960 lib.
34961
349622004-04-19 Pascal Obry <obry@gnat.com>
34963
34964 * mdll-utl.adb (Locate): New version is idempotent.
34965
9e94c78f 349662004-04-17 Laurent Guerby <laurent@guerby.net>
fa795c69
LG
34967
34968 PR ada/14988 (partial)
34969 * impunit.adb: Fix typo.
90afe2c9 34970
cce0244b
NN
349712004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
34972
34973 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34974 and install-rts-cert targets. Remove all gnatlib and gnattools
34975 targets and all other rts-* targets (moved to libada). Remove (now)
34976 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34977 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34978
af152989
AC
349792004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34980
34981 * trans.c (tree_transform): Shortcut returning error_mark_node for
34982 statements in annotate_only_mode.
34983 (tree_transform, case N_Label, case N_Return_Statement,
34984 N_Goto_Statement): Make statement tree instead of generating code.
34985 (tree_transform, case N_Assignment_Statement): No longer check
34986 type_annotate_only.
34987 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34988 RETURN_STMT): New.
34989 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34990 New fcns.
34991 (gnat_to_gnu): Collect any RTL generated and deal with it.
34992 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34993 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34994 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34995
34996 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34997
34998 * ada-tree.def (EXPR_STMT): Fix typo in name.
34999 (BLOCK_STMT, IF_STMT): New nodes.
35000
35001 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
35002 LABEL_STMT_FIRST_IN_EH): New macros.
35003 (RETURN_STMT_EXPR): Likewise.
35004
35005 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
35006 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
35007
350082004-04-08 Thomas Quinot <quinot@act-europe.fr>
35009
35010 * atree.ads: Correct documentation on extended nodes.
35011
35012 * link.c: Set run_path_option for FreeBSD.
35013
350142004-04-08 Vincent Celier <celier@gnat.com>
35015
35016 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
35017 one of the ALI file, do not link with DEC lib.
35018
35019 * par.adb Remove the last two characters ("%s" or "%b") when checking
35020 if a language defined unit may be recompiled.
35021
350222004-04-08 Ed Schonberg <schonberg@gnat.com>
35023
35024 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
35025 removal of abstract operation leaves no possible interpretation for
35026 expression.
35027
35028 * sem_eval.adb (Eval_Qualified_Expression): Use
35029 Set_Raises_Constraint_Error on node when needed, so that it does not
35030 get optimized away by subsequent optimizations.
35031
35032 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
35033 operands even when they are not wrapped in a type conversion.
35034
350352004-04-08 Olivier Hainque <hainque@act-europe.fr>
35036
35037 * sem_prag.adb (Set_Exported): Warn about making static as result of
35038 export only when the export is coming from source. This may be not
35039 be true e.g. on VMS where we expand export pragmas for exception codes
35040 together with imported or exported exceptions, and we don't want the
35041 user to be warned about something he didn't write.
35042
350432004-04-08 Thomas Quinot <quinot@act-europe.fr>
35044
35045 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
35046 duplication between normal entities and those declared as renamings.
35047 No functional change.
35048
90afe2c9 35049 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
af152989
AC
35050 inline functions returning an unconstrained result.
35051
350522004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
35053
35054 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
35055 conform to what other front-ends do.
35056
350572004-04-08 Doug Rupp <rupp@gnat.com>
35058
35059 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
35060 libraries.
35061
3984e89a
AC
350622004-04-06 Pascal Obry <obry@gnat.com>
35063
35064 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
35065
35066 * osint.adb (Program_Name): Do not look past a directory separator.
35067
350682004-04-06 Thomas Quinot <quinot@act-europe.fr>
35069
35070 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35071
35072 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
35073 requirement for preserving a copy of the original assignment node.
35074
35075 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
35076
350772004-04-06 Olivier Hainque <hainque@act-europe.fr>
35078
35079 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
35080 when supported.
35081
350822004-04-06 Ed Schonberg <schonberg@gnat.com>
35083
35084 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35085 operator calls in functional notation, and apply
35086 Universal_Interpretation to operands, not to their type.
35087
350882004-04-06 Robert Dewar <dewar@gnat.com>
35089
35090 * 5wdirval.adb: Minor reformatting
35091
350922004-04-06 Ed Falis <falis@gnat.com>
35093
35094 * gnat_rm.texi: Improve a reference to the GCC manual
35095
30c20106
AC
350962004-04-05 Vincent Celier <celier@gnat.com>
35097
35098 * adaint.h, adaint.c: Add function __gnat_named_file_length
35099
35100 * impunit.adb: Add Ada.Directories to the list
35101
35102 * Makefile.in: Add VMS and Windows versions of
35103 Ada.Directories.Validity package body.
35104
35105 * Makefile.rtl: Add a-direct and a-dirval
35106
35107 * mlib-tgt.ads: Minor comment update.
35108
35109 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35110 a-direct.ads, a-direct.adb: New files.
35111
351122004-04-05 Vincent Celier <celier@gnat.com>
35113
35114 PR ada/13620
35115 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35116 just to the compiler.
35117
351182004-04-05 Robert Dewar <dewar@gnat.com>
35119
35120 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35121 returned string is 1.
35122
35123 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35124
35125 * eval_fat.ads: Minor reformatting
35126
35127 * g-curexc.ads: Document that lower bound of returned string values
35128 is always one.
35129
35130 * gnatlink.adb: Add ??? comment for previous change
35131 (need to document why this is VMS specific)
35132
35133 * s-stoele.ads: Minor reformatting
35134
35135 * tbuild.ads: Minor reformatting throughout (new function specs)
35136
35137 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35138 after WITH.
35139
35140 * scng.adb: Minor reformatting
35141
351422004-04-05 Geert Bosch <bosch@gnat.com>
35143
35144 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35145 (Leading_Part): Still perform truncation to machine number if the
35146 specified radix_digits is greater or equal to machine_mantissa.
35147
351482004-04-05 Javier Miranda <miranda@gnat.com>
35149
35150 * par-ch3.adb: Complete documentation of previous change
35151 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35152 (aliased must appear before constant).
35153
35154 * par-ch4.adb: Complete documentation of previous change.
35155
35156 * par-ch6.adb: Complete documentation of previous change.
35157
35158 * sinfo.ads: Fix typo in commment.
35159
351602004-04-05 Ed Schonberg <schonberg@gnat.com>
35161
35162 * sem_ch3.adb (Inherit_Components): If derived type is private and has
35163 stored discriminants, use its discriminants to constrain parent type,
35164 as is done for non-private derived record types.
35165
35166 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35167 Ada 2005 AI-310: an abstract non-dispatching operation is not a
35168 candidate interpretation in an overloaded call.
35169
35170 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35171 expression is Null and target type is not an access type (e.g. a
35172 non-private address type).
35173
351742004-04-05 Thomas Quinot <quinot@act-europe.fr>
35175
35176 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35177 statement whose right-hand side is an inlined call, save a copy of the
35178 original assignment subtree to preserve enough consistency for
35179 Analyze_Assignment to proceed.
35180
35181 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35182 complete assignment subtree which is now unnecessary, as the expansion
35183 of inlined call has been improved to preserve a consistent assignment
35184 tree. Note_Possible_Modification must be called only
35185 after checks have been applied, or else unnecessary checks will
35186 be generated.
35187
35188 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35189 of explicit dereferences that do not Come_From_Source:
35190 - be selective on cases where we must go back to the dereferenced
35191 pointer (an assignment to an implicit dereference must not be
35192 recorded as modifying the pointer);
35193 - do not rely on Original_Node being present (Analyze_Assignment
35194 calls Note_Possible_Modification on a copied tree).
35195
35196 * sem_warn.adb (Check_References): When an unset reference to a pointer
35197 that is never assigned is encountered, prefer '<pointer> may be null'
35198 warning over '<pointer> is never assigned a value'.
35199
352002004-04-05 Ramon Fernandez <fernandez@gnat.com>
35201
35202 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35203 the ABI.
35204
352052004-04-05 Olivier Hainque <hainque@act-europe.fr>
35206
35207 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35208 libexc. We currently don't reference anything in this library and
35209 linking it in triggers linker warnings we don't want to see.
35210
35211 * init.c: Update comments.
35212
4f976745
RK
352132004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35214
35215 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35216 * utils.c (create_field_decl): Likewise.
35217 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35218
6da7d579
AC
352192004-04-02 Arnaud Charlet <charlet@act-europe.fr>
35220
35221 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35222 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35223 Add info directory entry and category.
35224
18c6ada9
JH
352252004-04-02 Jan Hubicka <jh@suse.cz>
35226
35227 * utils.c: Include function.h
35228 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35229
7cd4527e
AC
352302004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35231
35232 PR ada/14150
35233 * Make-lang.in: Clean up generation of documentation
35234
35235 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35236
35237 * xgnatug.adb: Removed, replaced by xgnatugn.adb
35238
35239 * xgnatugn.adb: Replaces xgnatug.adb
35240
35241 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35242
35243 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35244
35245 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35246 gnat_ug_wnt.texi: Removed.
35247
0c250f07
AC
352482004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35249
35250 * utils2.c: Update copyright notice.
35251
6b6fcd3e
AC
352522004-04-01 Robert Dewar <dewar@gnat.com>
35253
35254 * checks.adb: Minor reformatting throughout
35255 Note that prev checkin added RM reference to alignment warning
35256
352572004-04-01 Ed Schonberg <schonberg@gnat.com>
35258
35259 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35260 non-static when building aggregate for bit-packed array.
35261
35262 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35263 function call that is itself the actual in a procedure call, build
35264 temporary for it.
35265
35266 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35267 a string literal, create a temporary for it, constant folding only
35268 handles scalars here.
35269
352702004-04-01 Vincent Celier <celier@gnat.com>
35271
35272 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35273 Error_Msg_SP): New empty procedures to instantiate the Scanner.
35274 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35275 tokens.
35276 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35277 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35278 and get the checksum.
35279
35280 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35281 already in the Q.
35282 Increase the Marking_Label at the end of the Multiple_Main_Loop,
35283 instead of at the beginning.
35284
35285 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35286 directly.
35287 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35288 on VMS.
35289
35290 * osint.ads (Multi_Unit_Index_Character): New Character global variable
35291
35292 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35293 not '~' directly.
35294
35295 * par.adb: Remove test on file name to detect language defined units.
35296 Add test on unit name, after parsing, to detect language defined units
35297 that are not compiled with -gnatg (except System.RPC and its children)
35298
35299 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35300 following units without style checking.
35301
35302 * switch-c.adb: Change -gnatC to -gnateI
35303
35304 * usage.adb: Document new switch -gnateInnn
35305
35306 * scng.adb (Accumulate_Token_Checksum): New procedure
35307 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35308 word or literal number.
35309 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35310 numbers.
35311
353122004-04-01 Thomas Quinot <quinot@act-europe.fr>
35313
35314 * a-tasatt.adb,
35315 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35316 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35317 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35318 5vtpopde.adb: Add missing 'constant' keywords.
35319
353202004-04-01 Javier Miranda <miranda@gnat.com>
35321
35322 * par-ch4.adb: (P_Allocator): Code cleanup
35323
35324 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35325 attribute.
35326
35327 * sinfo.ads: Complete documentation of previous change
35328
353292004-04-01 Pascal Obry <obry@gnat.com>
35330
35331 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35332 only on VMS. This special handling was done because an old GNU/ld bug
35333 on Windows which has been fixed.
35334
353352004-04-01 GNAT Script <nobody@gnat.com>
35336
35337 * Make-lang.in: Makefile automatically updated
35338
8df83eae
RK
353392004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35340
35341 * decl.c (gnat_to_gnu_entity, make_type_from_size):
35342 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35343 * trans.c (tree_transform, convert_with_check): Likewise.
35344 * utils.c (gnat_signed_or_unsigned_type): Likewise.
35345 (build_vms_descriptor, unchecked_convert): Likewise.
35346 * utils2.c (nonbinary_modular_operation): Likewise.
35347
2820d220
AC
353482004-03-29 Javier Miranda <miranda@gnat.com>
35349
35350 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35351 (Install_Null_Excluding_Check): Local subprogram that determines whether
35352 an access node requires a runtime access check and if so inserts the
35353 appropriate run-time check.
35354 (Apply_Access_Check): Call Install_Null_Excluding check if required
35355 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35356
35357 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35358
35359 * einfo.ads: Fix typo in comment
35360
35361 * exp_ch3.adb (Build_Assignment): Generate conversion to the
35362 null-excluding type to force the corresponding run-time check.
35363 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35364 type to force the corresponding run-time check.
35365
35366 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35367 the null-excluding type to force the corresponding run-time check.
35368
35369 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35370 case of access types unless they have the null-excluding attribute.
35371
35372 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35373 part.
35374
35375 * exp_util.ads: Fix typo in comment
35376
35377 * par.adb (P_Null_Exclusion): New subprogram
35378 (P_Subtype_Indication): New formal that indicates if the null-excluding
35379 part has been scanned-out and it was present
35380
35381 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35382
35383 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35384 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35385 type to force the corresponding run-time check
35386 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35387 components
35388 (Resolve_Array_Aggregate): Carry out some static checks
35389 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35390
35391 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35392 attribute must be set only if specified by means of the null-excluding
35393 part. In addition, we must also propagate the access-constant attribute
35394 if present.
35395 (Access_Subprogram_Declaration, Access_Type_Declaration,
35396 Analyze_Component_Declaration, Analyze_Object_Declaration,
35397 Array_Type_Declaration, Process_Discriminants,
35398 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35399 and carry out some static checks.
35400 (Build_Derived_Access_Type): Set the null-excluding attribute
35401 (Derived_Type_Declaration, Process_Subtype): Carry out some static
35402 checks.
35403
35404 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35405
35406 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35407
35408 * sem_ch6.adb (Process_Formals): Carry out some static checks.
35409 (Set_Actual_Subtypes): Generate null-excluding subtype if the
35410 null-excluding part was present; it is not required to be done here in
35411 case of anonymous access types.
35412 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35413 value.
35414
35415 * sem_res.adb (Resolve_Actuals): Carry out some static check
35416 (Resolve_Null): Allow null in anonymous access
35417
35418 * sinfo.adb: New subprogram Null_Exclusion_Present
35419 All_Present and Constant_Present available on access_definition nodes
35420
35421 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35422 object_declaration, derived_type_definition, component_definition,
35423 discriminant_specification, access_to_object_definition,
35424 access_function_definition, allocator, access_procedure_definition,
35425 access_definition, parameter_specification, All_Present and
35426 Constant_Present flags available on access_definition nodes.
35427
354282004-03-29 Robert Dewar <dewar@gnat.com>
35429
35430 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35431 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35432 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35433 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35434 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35435 sem_prag.adb: Updates to handle multiple units/file
35436
35437 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35438
35439 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35440 sem_util.adb: Minor reformatting
35441
35442 * sem_ch12.adb: Add comment for previous change
35443
354442004-03-29 Laurent Pautet <pautet@act-europe.fr>
35445
35446 * osint.adb (Executable_Prefix): Set Exec_Name to the current
35447 executable name when not initialized. Otherwise, use its current value.
35448
35449 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35450 initialize it to another executable name than the current one. This
35451 allows to configure paths for an executable name (gnatmake) different
35452 from the current one (gnatdist).
35453
354542004-03-29 Ed Schonberg <schonberg@gnat.com>
35455
35456 * exp_ch6.adb (Expand_Call): A call to a function declared in the
35457 current unit cannot be inlined if it appears in the body of a withed
35458 unit, to avoid order of elaboration problems in gigi.
35459
35460 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35461 information for protected (wrapper) operation as well, to simplify gdb
35462 use.
35463
35464 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35465 protected body, indicate that the entity for the generated spec comes
35466 from source, to ensure that references are properly generated for it.
35467 (Build_Body_To_Inline): Do not inline a function that returns a
35468 controlled type.
35469
35470 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35471 apply convention to homonyms that are declared explicitly.
35472
35473 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35474 that renames an equality operator and the operands are overloaded,
35475 resolve them with the declared formal types, before rewriting as an
35476 operator.
35477
354782004-03-29 GNAT Script <nobody@gnat.com>
35479
35480 * Make-lang.in: Makefile automatically updated
35481
6d11af89
AC
354822004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35483
35484 * memtrack.adb: Log realloc calls, which are treated as free followed
35485 by alloc.
35486
354872004-03-25 Vincent Celier <celier@gnat.com>
35488
35489 * prj-makr.adb (Process_Directories): Detect when a file contains
35490 several units. Do not include such files in the config pragmas or
35491 in the naming scheme.
35492
35493 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35494 Resolve links only when not in Trusted_Mode.
35495 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35496 Do not resolve links for the display names.
35497
35498 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35499 resolve links when computing the display names.
35500
355012004-03-25 Thomas Quinot <quinot@act-europe.fr>
35502
35503 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35504 attribute reference does not denote a subtype, it can be any
35505 expression that has a classwide type, potentially after an implicit
35506 dereference. In particular, the prefix can be a view conversion for
35507 a classwide type (for which Is_Object_Reference holds), but it can
35508 also be a value conversion for an access-to-classwide type. In the
35509 latter case, there is an implicit dereference, and the original node
35510 for the prefix does not verify Is_Object_Reference.
35511
35512 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35513 conversion of a discriminant-dependent component of a mutable object
35514 is one itself.
35515
355162004-03-25 Ed Schonberg <schonberg@gnat.com>
35517
35518 * freeze.adb (Freeze_Entity): When an inherited subprogram is
35519 inherited, has convention C, and has unconstrained array parameters,
35520 place the corresponding warning on the derived type declaration rather
35521 than the original subprogram.
35522
35523 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35524 indication on renaming declaration, if formal has a box and actual
35525 is absent.
35526
35527 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35528 determine whether to generate an implicit or explicit reference to
35529 the renamed entity.
35530
35531 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35532 subprogram renaming comes from a defaulted formal subprogram in an
35533 instance.
35534
355352004-03-25 Gary Dismukes <dismukes@gnat.com>
35536
35537 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35538 value expressions to ensure that calls within a component definition
35539 will be checked (since those are evaluated during the record type's
35540 elaboration).
35541
355422004-03-25 Arnaud Charlet <charlet@act-europe.fr>
35543
35544 * s-tpobop.adb: Code clean up:
35545 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35546 code.
35547 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35548
355492004-03-25 Jose Ruiz <ruiz@act-europe.fr>
35550
35551 * Makefile.in: Clean up in the ravenscar run time.
35552
22421b79
RK
355532004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35554
35555 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35556 of No_Strict_Aliasing to build_pointer_type_for_mode.
35557 * utils.c (update_pointer_to): Walk pointer and ref chains.
35558
24105bab
AC
355592004-03-22 Cyrille Comar <comar@act-europe.fr>
35560
35561 * ali.ads: Fix Comment about Dynamic_Elab.
35562
35563 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35564 Has_RACW, Is_Generic, etc.)
35565 (Output_Object, Gnatls): Take into account ALI files not attached to
35566 an object.
35567
355682004-03-22 Vincent Celier <celier@gnat.com>
35569
35570 * gprep.adb: Change all String_Access to Name_Id
35571 (Is_ASCII_Letter): new function
35572 (Double_File_Name_Buffer): New procedure
35573 (Preprocess_Infile_Name): New procedure
35574 (Process_Files): New procedure
35575 (Gnatprep): Check if output and input are existing directories.
35576 Call Process_Files to do the real job.
35577
355782004-03-22 Robert Dewar <dewar@gnat.com>
35579
35580 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35581 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35582
355832004-03-22 Sergey Rybin <rybin@act-europe.fr>
35584
35585 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35586 case when the source contains only comments.
35587
355882004-03-22 Ed Schonberg <schonberg@gnat.com>
35589
35590 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35591 declaration for a child subprogram body that acts as a spec, indicate
35592 that the entity in the declaration needs debugging information.
35593
35594 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35595 full view if the subtype is created for a constrained record component;
35596 gigi has enough information to construct the record, and there is no
35597 place in the tree for the declaration.
35598
35599 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35600 serial number for the dummy body that is built for analysis, to avoid
35601 inconsistencies in the generation of internal names when compiling
35602 with -gnatN.
35603
356042004-03-22 Thomas Quinot <quinot@act-europe.fr>
35605
35606 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35607 object.
35608
356092004-03-22 GNAT Script <nobody@gnat.com>
35610
35611 * Make-lang.in: Makefile automatically updated
35612
6fce44af
RK
356132004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35614
35615 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35616 * trans.c (tree_transform, emit_index_check): Likewise.
35617 * utils.c (build_template): Likewise.
35618 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35619 (maybe_unconstrained_array, unchecked_convert): Likewise.
35620 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35621 (build_unary_op): Likewise.
35622 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35623 (fill_vms_descriptor): Likewise.
35624 (build_call_alloc_dealloc): Likewise.
35625 ALIGN is unsigned.
35626 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35627
802f6d4b
JM
356282004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
35629
35630 PR other/14630
35631 * gnat_ug.texi: Add info directory category and entry.
35632 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35633 gnat_ug_wnt.texi: Regenerate.
35634
30f3b32b
AC
356352004-03-19 Arnaud Charlet <charlet@act-europe.fr>
35636
35637 * ada-tree.h: Update copyright notice.
35638 Minor reformatting.
35639
356402004-03-19 Olivier Hainque <hainque@act-europe.fr>
35641
35642 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35643 as regular exception objects and not as mere integers representing the
35644 condition code. The latter approach required some dynamics to mask off
35645 severity bits, which did not fit well into the GCC table based model.
35646 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35647 exception data objects. We don't it and it would conflict with the other
35648 external symbol we have to generate for such exceptions.
35649
35650 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35651 the special code for VMS exceptions, since these are now represented
35652 as regular exceptions objects.
35653
7548281d
RK
356542004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35655
35656 * decl.c (debug_no_type_hash): Remove.
35657 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35658 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35659
9e94c78f 356602004-03-19 Laurent Guerby <laurent@guerby.net>
dbee7ab9 35661
90afe2c9 35662 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
dbee7ab9 35663 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
90afe2c9 35664
eb34af89
RK
356652004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35666
35667 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35668 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35669 (TYPE_RM_SIZE_INT): Directly use type.values.
35670 (TREE_LOOP_ID): Clean up check.
35671 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35672 TYPE_VALUES, not TYPE_FIELDS.
35673 * trans.c (convert_with_check): Delay access of bounds of basetype
35674 until sure is numeric.
35675
a336eaca
AC
356762004-03-18 Arnaud Charlet <charlet@act-europe.fr>
35677
35678 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35679
35680 Code clean up:
35681 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35682 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35683 Specific.Set instead of direct call to e.g pthread_setspecific.
35684
356852004-03-18 Thomas Quinot <quinot@act-europe.fr>
35686
35687 * adaint.c: Update comments.
35688
35689 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35690 GNATLIB_SHARED for FreeBSD.
35691
356922004-03-18 Jose Ruiz <ruiz@act-europe.fr>
35693
35694 * init.c [VxWorks]: Do not fix the stack size for the environment task.
35695 When needed (stack checking) the stack size is retrieved
35696 from the VxWorks kernel.
35697
35698 * Makefile.in: Flag -nostdinc is required when building the run time
35699 for avoiding looking for files in the base compiler.
35700 Add the VxWorks specific version of the package body for
35701 System.Stack_checking.Operations (5zstchop.adb).
35702
35703 * Make-lang.in: Add the object file for
35704 System.Stack_Checking.Operations.
35705
35706 * Makefile.rtl: Add object file for the package
35707 System.Stack_Checking.Operations.
35708
35709 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35710
35711 * s-stache.ads, s-stache.adb: Move the operations related to stack
35712 checking from this package to package System.Stack_Checking.Operations.
35713 This way, stack checking operations are only linked in the final
35714 executable when using the -fstack-check flag.
35715
357162004-03-18 Doug Rupp <rupp@gnat.com>
35717
35718 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35719 Reorganize ifeq's.
35720
35721 * 5qsystem.ads, 5xcrtl.ads: New files.
35722
357232004-03-18 Vincent Celier <celier@gnat.com>
35724
35725 * prj.adb (Reset): Reset hash table Files_Htable
35726
35727 * prj-env.adb (Source_Paths, Object_Paths): New tables.
35728 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35729 the procedures Add_To_Path_File.
35730 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35731 making sure that each directory is present only once and, for object
35732 dirs, when a directory already present is added, the duplicate is
35733 removed and the directory is always put as the last in the table.
35734 Write the path files at the end of these accumulations.
35735
35736 * prj-nmsc.adb (Record_Source): Add source file name in hash table
35737 Files_Htable for all sources.
35738
35739 * prj-proc.adb (Process): Remove restrictions between not directly
35740 related extending projects.
35741
357422004-03-18 Emmanuel Briot <briot@act-europe.fr>
35743
35744 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35745 (Find_Sources): Minor speed optimization.
35746
35747 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35748 parameter Trusted_Mode.
35749
357502004-03-18 Sergey Rybin <rybin@act-europe.fr>
35751
35752 * scn.adb (Determine_License): Take into account a degenerated case
35753 when the source contains only comments.
35754
357552004-03-18 Ed Schonberg <schonberg@gnat.com>
35756
35757 * sem_warn.adb (Check_References): For a warning on a selected
35758 component that does not come from source, locate an uninitialized
35759 component of the record type to produce a more precise error message.
35760
e6f69614
AC
357612004-03-15 Jerome Guitton <guitton@act-europe.fr>
35762
35763 * 3zsoccon.ads: Fix multicast options.
35764
35765 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35766 in the spec.
35767
357682004-03-15 Robert Dewar <dewar@gnat.com>
35769
35770 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35771 pragma used for a private type.
35772
35773 * lib-xref.adb (Generate_Reference): Do not generate warning if
35774 reference is in a different unit from the pragma Unreferenced.
35775
35776 * 5vtpopde.adb: Minor reformatting
35777 Fix casing of To_Task_ID
35778
35779 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35780 flag if we have an unchecked conversion to an access type in the same
35781 unit.
35782
357832004-03-15 Geert Bosch <bosch@gnat.com>
35784
35785 * a-ngcoty.adb (Modulus): In alternate formula for large real or
35786 imaginary parts, use Double precision throughout.
35787
35788 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35789 we want to be able to compile run-time with -gnata for testing, but
35790 this may also be instantiated in user code that is compiled with -gnata.
35791
357922004-03-15 Olivier Hainque <hainque@act-europe.fr>
35793
35794 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35795 codes. Having a separate type for this is useful to enforce consistency
35796 throughout the various run-time units.
35797 (Exception_Data): Use Exception_Code for Import_Code.
35798
35799 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35800 Natural and Integer in various places.
35801 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35802 with the severity bits masked off.
35803 (Register_VMS_Exception): Handle the additional exception data pointer
35804 argument.
35805
35806 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35807 component, now reflected by an exported accessor.
35808 (is_handled_by): New routine to compute whether the propagated
35809 occurrence matches some handler choice specification. Extracted out of
35810 get_action_description_for, and expanded to take care of the VMS
35811 specifities.
35812 (get_action_description_for): Use is_handled_by instead of an explicit
35813 complex condition to decide if the current choice at hand catches the
35814 propagated occurrence.
35815
35816 * raise.h (Exception_Code): New type for C.
35817
35818 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35819 System.Standard_Library.Exception_Code, to allow references from the
35820 pragma import/export expander.
35821
35822 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35823 New accessors to allow easy access to GNAT exception data
35824 characteristics.
35825 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35826 redundant Handled_By_Others component, helper for the personality
35827 routine which will now be able to call the appropriate exception data
35828 accessor instead.
35829
35830 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35831 component of Standard_Exception_Type to be the closest possible to
35832 Exception_Code in System.Standard_Library, that we cannot get at this
35833 point. Expand a ??? comment to notify that this type node should
35834 probably be rewritten later on.
35835
35836 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35837 registration call to include a pointer to the exception object in the
35838 arguments.
35839
35840 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35841 instead of int and explicit bitmasks.
35842
358432004-03-15 Vincent Celier <celier@gnat.com>
35844
35845 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35846 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35847
35848 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35849 longer needed now that it is in the spec of
35850 System.Tasking.Task_Attributes.
35851
35852 * adaint.h, adaint.c: (__gnat_create_output_file): New function
35853
35854 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35855
35856 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35857
35858 * make.adb (Gnatmake): Do not check the executable suffix; it is being
35859 taken care of in Scan_Make_Arg.
35860 (Scan_Make_Arg): Add the executable suffix only if the argument
35861 following -o, in canonical case, does not end with the executable
35862 suffix. When in verbose mode and executable file name does not end
35863 with executable suffix, output the executable name, in canonical case.
35864
35865 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35866 to avoid warnings when instantiating Ada.Task_Attributes.
35867 Minor reformating.
35868
35869 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35870 in the correct order.
35871
35872 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35873 redirect standard output and error to a file for the invocation of the
35874 compiler, then read the file.
35875
35876 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35877 directory, instead of the Value.
35878 (Find_Source_Dirs): Remove useless code & comments.
35879
358802004-03-15 Ed Schonberg <schonberg@gnat.com>
35881
35882 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35883 tagged type is inherited, and the parent operation is not frozen yet,
35884 force generation of a freeze node for the inherited operation, so the
35885 corresponding dispatch entry is properly initialized.
35886 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35887 when looking for user-defined equality operation.
35888
35889 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35890 boolean when locating primitive equality of tagged component.
35891
35892 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35893 bit-aligned field and the right-hand side a string literal, introduce
35894 a temporary before expanding assignment into a loop.
35895
35896 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35897 priority in full, to ensure that any expanded subepxressions of it are
35898 elaborated in the scope of the init_proc.
35899
35900 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35901 after object declaration, skipping over code that may have been
35902 generated for validity checks.
35903
35904 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35905 discriminants, ignore the known discriminants of its full view, if
35906 any, to check legality.
35907
35908 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35909 component if type has unknown discriminants.
35910 (Analyze_Private_Extension_Declaration): Discriminant constraint is
35911 null if type has unknown discriminants.
35912
35913 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35914 for end label when present.
35915
35916 * s-fileio.adb (Open): When called with a C_Stream, use given name for
35917 temporary file, rather than an empty string.
35918
359192004-03-15 Ed Falis <falis@gnat.com>
35920
35921 * s-thread.adb: Removed, no longer used.
35922
359232004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35924
35925 * decl.c (target.h): Now include.
35926 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35927 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35928 (validate_size): For POINTER_TYPE, get smallest size permitted on
35929 machine.
35930
35931 * fe.h: Sort Einfo decls and add Set_Mechanism.
35932
35933 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35934 (ada/decl.o): Depends on target.h.
35935
35936 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35937 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35938
359392004-03-15 Thomas Quinot <quinot@act-europe.fr>
35940
35941 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35942
35943 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35944 Insert_Dereference_Action when rewriting an implicit dereference into
35945 an explicit one, this will be taken care of during expansion of the
35946 explicit dereference.
35947 (Expand_N_Slice): Same. Always do the rewriting, even for the case
35948 of non-packed slices, since the dereference action generated by
35949 expansion of the explicit dereference is needed in any case.
35950 (Expand_N_Selected_Component): When rewriting an implicit dereference,
35951 analyze and resolve the rewritten explicit dereference so it is seen
35952 by the expander.
35953 (Insert_Dereference_Action): This procedure is now called only for the
35954 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35955 dereferences that do not come from source (including explicit
35956 dereferences resulting from rewriting implicit ones), but do not
35957 recursively insert a check for the dereference nodes contained within
35958 the check.
35959 (Insert_Dereference_Action): Clarify and correct comment.
35960
e4c9c075
PB
359612004-03-08 Paolo Bonzini <bonzini@gnu.org>
35962
35963 PR ada/14131
35964 Move language detection to the top level.
35965 * config-lang.in: Build by default.
35966
8a6a52dc
AC
359672004-03-05 Robert Dewar <dewar@gnat.com>
35968
35969 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35970
35971 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35972 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
90afe2c9 35973 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
8a6a52dc
AC
35974 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35975 unchecked conversion to spec to avoid warnings.
35976
35977 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35978 to Task_ID
35979
35980 * 7stpopsp.adb: Correct casing in To_Task_ID call
35981
35982 * a-strsea.ads, a-strsea.adb: Minor reformatting
35983
35984 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35985
35986 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35987 Adjust Max_Msg_Length to be clearly large enough.
35988
35989 * fe.h: Define In_Same_Source_Unit
35990
35991 * osint.adb: Add pragma Warnings Off to suppress warnings
35992 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35993 aliasing warnings.
35994
35995 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35996
35997 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35998
35999 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
36000
36001 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
36002
36003 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
36004
36005 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
36006 node. We now do generate them for gcc back end.
36007
36008 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
36009 warning.
36010
36011 * sinput-c.adb: Fix bad name in header.
36012 Add pragma Warnings Off to suppress aliasing warning.
36013
36014 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
36015
36016 * snames.h, snames.ads, snames.adb: Add entry for pragma
36017 No_Strict_Aliasing.
36018
360192004-03-05 Vincent Celier <celier@gnat.com>
36020
36021 * prj-com.ads: Add hash table Files_Htable to check when a file name
36022 is already a source of another project.
36023
36024 * prj-nmsc.adb (Record_Source): Before recording a new source, check
36025 if its file name is not already a source of another project. Report an
36026 error if it is.
36027
36028 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
36029 source file name, call gnatpp with all the sources of the main project.
36030
36031 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
36032 of file names.
36033
36034 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
36035 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
36036 /RUNTIME_SYSTEM=, converted to --RTS=
36037 /NOTABS, converted to -notabs
36038
360392004-03-05 Pascal Obry <obry@gnat.com>
36040
36041 * make.adb: Minor reformatting.
36042
360432004-03-05 Ed Schonberg <schonberg@gnat.com>
36044
36045 Part of implemention of AI-262.
36046 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
36047
36048 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
36049 procedure.
36050
36051 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
36052 when component type is a partially constrained class-wide subtype.
36053 (Constrain_Discriminated_Type): If parent type has unknown
36054 discriminants, a constraint is illegal, even if full view has
36055 discriminants.
36056 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
36057 with unknown discriminants whose full view is a discriminated record.
36058
36059 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
36060 flag, to handle properly derivations of tagged types with unknown
36061 discriminants.
36062 (Analyze_Package_Spec, Analyze_Package_Body): Install
36063 Private_With_Clauses before analyzing private part or body.
36064
36065 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
36066 Has_Discriminants can be true for a given type (documentation).
36067
360682004-03-05 Arnaud Charlet <charlet@act-europe.fr>
36069
36070 * s-restri.ads: Fix license (GPL->GMGPL).
36071
36072 * s-tassta.adb: Minor reformatting.
36073
36074 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36075 by calls to Exit_One_ATC_Level, since additional clean up is performed
36076 by this function.
36077
36078 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36079 by calls to Exit_One_ATC_Level, since additional clean up is performed
36080 by this function.
36081
360822004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36083
36084 * trans.c: Reflect GCC changes to fix bootstrap problem.
36085 Add warning for suspicious aliasing unchecked conversion.
36086
360872004-03-05 GNAT Script <nobody@gnat.com>
36088
36089 * Make-lang.in: Makefile automatically updated
36090
555360a5
AC
360912004-03-02 Emmanuel Briot <briot@act-europe.fr>
36092
36093 * ali.adb (Read_Instantiation_Instance): Do not modify the
36094 current_file_num when reading information about instantiations, since
36095 this corrupts files in later references.
36096
360972004-03-02 Vincent Celier <celier@gnat.com>
36098
36099 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36100 before checking if it is read-only.
36101
36102 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36103 of SRC_DIRS and eliminate duplicates.
36104
36105 * gprcmd.adb: Replace command "path" with command "path_sep" to return
36106 the path separator.
36107 (Usage): Document path_sep
36108
36109 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36110 C++ compiler. No need for a script.
36111 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36112 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36113 subst.
36114
36115 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36116 where there are Ada sources.
36117 (Set_Ada_Paths): Only add to the include path the source dirs of project
36118 with Ada sources.
36119 (Add_To_Path): Add the Display_Values of the directories, not their
36120 Values.
36121
36122 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36123 data.
36124
36125 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36126 is not No_Name.
36127 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36128 Value is canonicalized.
36129 (Language_Independent_Check): Do not copy Value to Display_Value when
36130 canonicalizing Value.
36131
36132 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36133 path to find limited with cycles.
36134 (Parse_Single_Project): Use canonical cased path to find the end of a
36135 with cycle.
36136
361372004-03-02 Ed Schonberg <schonberg@gnat.com>
36138
36139 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36140 and not a child unit.
36141
36142 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36143 appear in a with_clause.
36144
36145 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36146 only happen in type_annotate mode, do not try to elaborate it.
36147
36148 * exp_util.adb (Force_Evaluation): If expression is a selected
36149 component on the left of an assignment, use a renaming rather than a
36150 temporary to remove side effects.
36151
36152 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36153 inlined instance body, which is analyzed before the end of the
36154 enclosing scope.
36155
361562004-03-02 Robert Dewar <dewar@gnat.com>
36157
36158 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36159 sem_ch4.adb: Use new feature for substitution of keywords in VMS
36160
36161 * errout.ads, errout.adb: Implement new circuit for substitution of
36162 keywords in VMS.
36163
36164 * sem_case.adb (Analyze_Choices): Place message properly when case is
36165 a subtype reference rather than an explicit range.
36166
36167 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36168
361692004-03-02 Doug Rupp <rupp@gnat.com>
36170
36171 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36172
361732004-03-02 Thomas Quinot <quinot@act-europe.fr>
36174
36175 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36176
361772004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36178
36179 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36180 BLKmode bitfield.
36181
8a7988f5
AC
361822004-02-25 Robert Dewar <dewar@gnat.com>
36183
36184 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36185 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36186 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36187 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36188 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36189 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36190 the defining instance of the type to avoid aliasing problems.
36191 Fix copyright header. Fix bad comments in package header.
36192
36193 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36194
361952004-02-25 Ed Schonberg <schonberg@gnat.com>
36196
36197 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36198 rewritten as references when aliased through an address clause.
36199
36200 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36201 whether call can be interpreted as an indirect call to the result of a
36202 parameterless function call returning an access subprogram.
36203
362042004-02-25 Arnaud Charlet <charlet@act-europe.fr>
36205
36206 Code clean up:
36207 * exp_ch7.adb (Make_Clean): Remove generation of calls to
36208 Unlock[_Entries], since this is now done by Service_Entries directly.
36209
36210 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36211
36212 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36213 Requeue_Call for better code readability. Change spec and update calls:
36214 PO_Service_Entries now unlock the PO on exit.
36215 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36216 PO_Service_Entries.
36217
36218 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36219
36220 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36221
362222004-02-25 Sergey Rybin <rybin@act-europe.fr>
36223
36224 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36225 protected subprogram call and analyzing the result of such expanding
36226 in case when the called protected subprogram is eliminated.
36227
36228 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36229 names.
36230
362312004-02-25 Jerome Guitton <guitton@act-europe.fr>
36232
36233 * Makefile.in: Clean ups.
36234
6871ba5f
AC
362352004-02-23 Ed Schonberg <schonberg@gnat.com>
36236
36237 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36238 protected operations if original subprogram is flagged as eliminated.
36239 (Expand_N_Subprogram_Body): For a protected operation, create
36240 discriminals for next operation before checking whether the operation
36241 is eliminated.
36242
36243 * exp_ch9.adb (Expand_N_Protected_Body,
36244 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36245 for internal protected operations if the original subprogram is
36246 eliminated.
36247
36248 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36249 declared in a single protected object.
36250
362512004-02-23 Vincent Celier <celier@gnat.com>
36252
36253 * prj-attr.adb: Make attribute Builder'Executable an associative array,
36254 case insensitive if file names are case insensitive, instead of a
36255 standard associative array.
36256
36257 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36258 them as case insensitive on platforms where the file names are case
36259 sensitive.
36260
36261 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36262 project file has already been parsed that canonical path are compared.
36263
362642004-02-23 Robert Dewar <dewar@gnat.com>
36265
36266 * sinput-c.ads: Correct bad unit title in header
36267
36268 * freeze.adb: Minor reformatting
36269
362702004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36271
36272 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36273 nonaddressable COMPONENT_REF that is removing padding that we are
36274 taking the address of, take the address of the padded record instead
36275 if item is variable size.
36276
6e059adb
AC
362772004-02-20 Robert Dewar <dewar@gnat.com>
36278
36279 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36280
362812004-02-20 Ed Schonberg <schonberg@gnat.com>
36282
36283 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36284 itype references for the constrained designated type of a component
36285 whose base type is already frozen.
36286
362872004-02-20 Arnaud Charlet <charlet@act-europe.fr>
36288
36289 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36290 avoid GCC warnings.
36291
362922004-02-20 Sergey Rybin <rybin@act-europe.fr>
36293
36294 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36295 identifier for a phantom package that rewrites the formal package
36296 declaration with a box. The Add semantic decorations for the defining
36297 identifier from the original node (that represents the formal package).
36298
88e3a2a3
MK
362992004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
36300
36301 * Make-lang.in (ada/stamp-sdefault): Use the top level
36302 move-if-change.
36303
4221057e
RH
363042004-02-19 Richard Henderson <rth@redhat.com>
36305
36306 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36307
5c1c8a03
AC
363082004-02-18 Emmanuel Briot <briot@act-europe.fr>
36309
36310 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36311 Scan_ALI can be used for multiple ALI files without reinitializing
36312 between calls.
36313
363142004-02-18 Robert Dewar <dewar@gnat.com>
36315
36316 * debug.adb: Minor reformatting.
36317
363182004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36319
36320 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36321 to zero if there is an address clause.
36322
363232004-02-18 Thomas Quinot <quinot@act-europe.fr>
36324
36325 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36326
363272004-02-18 Gary Dismukes <dismukes@gnat.com>
36328
36329 * layout.adb (Layout_Component_List): Revise generation of call to
36330 discriminant-checking function to pass selections of all of the type's
36331 discriminants rather than just the variant-controlling discriminant.
36332
363332004-02-18 Olivier Hainque <hainque@act-europe.fr>
36334
36335 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36336 fail in the current setup and triggers spurious system error messages.
36337 Pretend it occurred and failed instead.
36338
363392004-02-18 Vincent Celier <celier@gnat.com>
36340
36341 * bld.adb: Mark FLDFLAGS as saved
36342 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36343 it is not the root project. Put each directory to be
36344 extended between double quotes to prevent it to be expanded on Windows.
36345 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36346 the project file. Set them back to their initial values if they have not
36347 been set in the project file.
36348
36349 * gprcmd.adb: (Gprdebug, Debug): New global variables
36350 (Display_Command): New procedure
36351 (Usage): Document new command "linkopts"
36352 Call Display_Command when env var GPRDEBUG has the value "TRUE"
36353 Implement new command "linkopts"
36354 Remove quotes that may be around arguments for "extend"
36355 Always call Normalize_Pathname with arguments formatted for the platform
36356
36357 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36358 Change @echo to @$(display) in target clean to be able to clean silently
36359
36360 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36361
36362 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36363 canonical case.
36364
36365 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36366 = Extending_All when current project is an extending all project.
36367
36368 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36369 set to True only for LINK command, after Unix switch -o.
36370 (Process_Arguments): Set Output_File_Expected to True for LINK command
36371 after Unix switch -o. When Output_File_Expected is True, never add an
36372 extension to a file name.
36373
36374 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36375 option file name, only to the --for-linker= switch.
36376 (Option_File_Name): If option file name do not end with ".opt", append
36377 "/OPTIONS".
36378
363792004-02-18 GNAT Script <nobody@gnat.com>
36380
36381 * Make-lang.in: Makefile automatically updated
36382
80bcb4d2
MK
363832004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
36384
36385 * Make-lang.in (stamp-sdefault): Do not depend on
36386 move-if-change.
36387
1daa84b6
ZW
363882004-02-12 Zack Weinberg <zack@codesourcery.com>
36389
36390 * config-lang.in: Disable Ada by default until probe logic for
36391 a bootstrap Ada compiler can be moved to the top level configure
36392 script.
36393
18c0ecbe
AC
363942004-02-12 Olivier Hainque <hainque@act-europe.fr>
36395
36396 * decl.c (components_to_record): Don't claim that the internal fields
36397 we make to hold the variant parts are semantically addressable, because
36398 they are not.
36399
36400 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36401 adjust the comment describing the modular type form when we can use it.
36402 (Install_PAT): Account for the Esiz renaming.
36403
36404 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36405 sc_onstack context indication before raising the exception to which
36406 the signal is mapped. Allows better handling of later signals possibly
36407 triggered by the resumed user code if the exception is handled.
36408
364092004-02-12 Arnaud Charlet <charlet@act-europe.fr>
36410
36411 * 5zinit.adb: Removed, no longer used.
36412
364132004-02-12 Robert Dewar <dewar@gnat.com>
36414
36415 * ali.adb: Remove separating space between parameters on R line. Makes
36416 format consistent with format used by the binder for Set_Globals call.
36417
36418 * atree.ads, atree.adb: Minor reformatting (new function header format)
36419
36420 * bindgen.adb: Add Run-Time Globals documentation section containing
36421 detailed documentation of the globals passed from the binder file to
36422 the run time.
36423
36424 * gnatls.adb: Minor reformatting
36425
36426 * init.c (__gnat_set_globals): Add note pointing to documentation in
36427 bindgen.
36428
36429 * lib-writ.ads, lib-writ.adb: Remove separating space between
36430 parameters on R line.
36431 Makes format consistent with format used by the binder for Set_Globals
36432 call.
36433
36434 * osint.ads: Add 2004 to copyright notice
36435 Minor reformatting
36436
36437 * snames.ads: Correct capitalization of FIFO_Within_Priorities
36438 Noticed during code reading, documentation issue only
36439
36440 * usage.adb: Remove junk line for obsolete C switch
36441 Noticed during code reading
36442
364432004-02-12 Vincent Celier <celier@gnat.com>
36444
36445 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36446 extend for each directory, so that multiple /** directories are
36447 extended individually.
36448 (Recursive_Process): Set the default for LANGUAGES to ada
36449
36450 * gprcmd.adb: Define new command "ignore", to do nothing.
36451 Implement new comment "path".
36452
36453 * Makefile.generic: Suppress output when SILENT is set
36454 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36455 used, so that the correct compiler is invoked.
36456 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36457 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36458
364592004-02-12 Jerome Guitton <guitton@act-europe.fr>
36460
36461 * Makefile.in: Clean ups and remove obsolete targets.
36462
364632004-02-12 Ed Schonberg <schonberg@gnat.com>
36464
36465 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36466 predicate declared in exp_util.
36467
36468 * exp_util.adb: Add comments.
36469
36470 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36471 visibility before compiling context of the subunit.
36472
36473 * sem_res.adb (Check_Parameterless_Call): If the context expects a
36474 value but the name is a procedure, do not attempt to analyze as a call,
36475 in order to obtain more telling diagnostics.
36476
36477 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36478 'Access on parameterless function calls.
36479 (Normalize_Actuals): For a parameterless function call with missing
36480 actuals, defer diagnostic until resolution of enclosing call.
36481
36482 * sem_util.adb (Wrong_Type): If the context type is an access to
36483 subprogram and the expression is a procedure name, suggest a missing
36484 'attribute.
36485
c1dcfa14
AC
364862004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
36487 Nathanael Nerode <neroden@gcc.gnu.org>
36488
6f7f72f9
EB
36489 PR ada/6637
36490 PR ada/5911
c1dcfa14 36491 Merge with libada-branch:
90afe2c9 36492 * config-lang.in: Build libada only when ada is built.
c1dcfa14 36493
2e071734
AC
364942004-02-09 Ed Schonberg <schonberg@gnat.com>
36495
36496 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36497 for a tagged type, verify that both formals have the same type.
36498
36499 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36500 temporary when the formal is an in-parameter and the actual a possibly
36501 unaligned slice.
36502
36503 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36504 when expansion is disabled, to ensure proper name capture with
36505 overloaded literals. Condition can be of any boolean type, resolve
36506 accordingly.
36507
36508 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36509 renaming is for a formal subprogram with a default operator name, and
36510 there is a usable operator that is visible at the point of
36511 instantiation.
36512
365132004-02-09 Robert Dewar <dewar@gnat.com>
36514
36515 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36516 rewrite to ignore errors in ali files, intended to allow tools downward
36517 compatibility with new versions of ali files.
36518
36519 * ali.ads: Add new parameter Ignore_Errors
36520
36521 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36522 duplicating the error message giving the file with restrictions.
36523
36524 * debug.adb: Add debug flag I for gnatbind
36525
36526 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36527 operators for the case where the operator is a defining operator.
36528
36529 * exp_ch3.adb: Minor reformatting (new function spec format).
36530
36531 * exp_ch4.adb: Add comment for previous change, and make minor
36532 adjustment to loop to always check for improper loop termination.
36533 Minor reformatting throughout (new function spec format).
36534
36535 * gnatbind.adb: Implement -di debug flag for gnatbind
36536
36537 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36538
36539 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36540
36541 * lib-load.adb: Fix bad assertion.
36542 Found by testing and code reading.
36543 Minor reformatting.
36544
36545 * lib-load.ads: Minor reformatting.
36546
36547 * lib-writ.adb: There is only one R line now.
36548
36549 * lib-writ.ads: Add documentation on making downward compatible changes
36550 to ali files so old tools work with new ali files.
36551 There is only one R line now.
36552 Add documentation on format incompatibilities (with special GPS note)
36553
36554 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36555
36556 * par-load.adb: Minor reformatting
36557
36558 * sem_ch8.adb: Fix to error message from last update
36559 Minor reformatting and restructuring of code from last update
36560
36561 * par-prag.adb, snames.adb, snames.ads, snames.h,
36562 sem_prag.adb: Implement pragma Profile.
36563
36564 * stylesw.adb: Implement -gnatyN switch to turn off all style check
36565 options.
36566
36567 * usage.adb: Add line for -gnatyN switch
36568
36569 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36570
a41ea816
AC
365712004-02-09 Albert Lee <lee@gnat.com>
36572
36573 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36574
365752004-02-09 Ed Schonberg <schonberg@gnat.com>
36576
36577 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36578 slices.
36579
36580 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36581 is nested in an instance that is not frozen yet, to avoid
36582 order-of-elaboration problems in gigi.
36583
36584 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36585 body the attribute is legal.
36586
365872004-02-09 Robert Dewar <dewar@gnat.com>
36588
36589 * s-rident.ads: Minor comment correction
36590
36591 * targparm.adb: Remove dependence on uintp completely. There was
36592 always a bug in Make in that it called Targparm before initializing
36593 the Uint package. The old code appeared to get away with this, but
36594 the new code did not! This caused an assertion error in gnatmake.
36595
36596 * targparm.ads: Fix bad comment, restriction pragmas with parameters
36597 are indeed fully supported.
36598
725c60f8
AM
365992004-02-06 Alan Modra <amodra@bigpond.net.au>
36600
36601 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36602
136e64db
KH
366032004-02-05 Kazu Hirata <kazu@cs.umass.edu>
36604
36605 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36606 with targetm.calls.promote_prototypes.
36607
06effe87
AC
366082004-02-04 Robert Dewar <dewar@gnat.com>
36609
36610 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36611 ali.ads, gprcmd.adb: Minor reformatting
36612
36613 * bindgen.adb: Output restrictions string for new style restrictions
36614 handling
36615
36616 * impunit.adb: Add s-rident.ads (System.Rident) and
36617 s-restri (System.Restrictions)
36618
36619 * lib-writ.adb: Fix bug in writing restrictions string (last few
36620 entries wrong)
36621
36622 * s-restri.ads, s-restri.adb: Change name Restrictions to
36623 Run_Time_Restrictions to avoid conflict with package name.
36624 Add circuit to read and acquire run time restrictions.
36625
366262004-02-04 Jose Ruiz <ruiz@act-europe.fr>
36627
36628 * restrict.ads, restrict.adb: Use the new restriction
36629 No_Task_Attributes_Package instead of the old No_Task_Attributes.
36630
36631 * sem_prag.adb: No_Task_Attributes is a synonym of
36632 No_Task_Attributes_Package.
36633
36634 * snames.ads, snames.adb: New entry for proper handling of
36635 No_Task_Attributes.
36636
36637 * s-rident.ads: Adding restriction No_Task_Attributes_Package
36638 (AI-00249) that supersedes the GNAT specific restriction
36639 No_Task_Attributes.
36640
366412004-02-04 Ed Schonberg <schonberg@gnat.com>
36642
90afe2c9 36643 * sem_prag.adb:
06effe87
AC
36644 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36645 body, an identifier may be wrapped in an unchecked conversion.
36646
366472004-02-04 Vincent Celier <celier@gnat.com>
36648
36649 * lib-writ.ads: Comment update for the W lines
36650
36651 * bld.adb: (Expression): An empty string list is static
36652
36653 * fname-uf.adb: Minor comment update
36654
36655 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36656
36657 * gnatbind.adb: Initialize Cumulative_Restrictions with the
36658 restrictions on the target.
36659
2fb00d7f
KH
366602004-02-03 Kazu Hirata <kazu@cs.umass.edu>
36661
36662 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36663 gen_rtx.
36664
5ed23e25
AC
366652004-02-02 Arnaud Charlet <charlet@gnat.com>
36666
36667 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36668
6e937c1c
AC
366692004-02-02 Vincent Celier <celier@gnat.com>
36670
36671 * gprcmd.adb (Check_Args): If condition is false, print the invoked
36672 comment before the usage.
36673 Gprcmd: Fail when command is not recognized.
36674 (Usage): Document command "prefix"
36675
36676 * g-md5.adb (Digest): Process last block.
36677 (Update): Do not process last block. Store remaining characters and
36678 length in Context.
36679
36680 * g-md5.ads (Update): Document that several call to update are
36681 equivalent to one call with the concatenated string.
36682 (Context): Add fields to allow new Update behaviour.
36683
36684 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36685 defaulted to False.
36686 When May_Fail is True and no existing file can be found, return No_File.
36687
36688 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36689 functions.
36690
36691 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36692 spec file name instead on the W line.
36693
366942004-02-02 Robert Dewar <dewar@gnat.com>
36695
36696 * ali.adb: Read and acquire info from new format restrictions lines
36697
36698 * bcheck.adb: Add circuits for checking restrictions with parameters
36699
36700 * bindgen.adb: Output dummy restrictions data
36701 To be changed later
36702
36703 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36704 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36705 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36706 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36707 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36708
36709 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36710 the warning message on access to possibly uninitialized variable S)
36711 Minor changes for new restrictions handling.
36712
36713 * gnatbind.adb: Minor reformatting
36714 Minor changes for new restrictions handling
36715 Move circuit for -r processing here from bcheck (cleaner)
36716
36717 * gnatcmd.adb, gnatlink.adb: Minor reformatting
36718
36719 * lib-writ.adb: Output new format restrictions lines
36720
36721 * lib-writ.ads: Document new R format lines for new restrictions
36722 handling.
36723
36724 * s-restri.ads/adb: New files
36725
36726 * Makefile.rtl: Add entry for s-restri.ads/adb
36727
36728 * par-ch3.adb: Fix bad error messages starting with upper case letter
36729 Minor reformatting
36730
36731 * restrict.adb: Major rewrite throughout for new restrictions handling
36732 Major point is to handle restrictions with parameters
36733
36734 * restrict.ads: Major changes in interface to handle restrictions with
36735 parameters. Also generally simplifies setting of restrictions.
36736
36737 * snames.ads/adb: New entry for proper handling of No_Requeue
36738
36739 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36740 restriction counting.
36741 Other minor changes for new restrictions handling
36742
36743 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36744 Restriction_Warnings now allows full parameter notation
36745 Major rewrite of Restrictions for new restrictions handling
36746
367472004-02-02 Javier Miranda <miranda@gnat.com>
36748
36749 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36750 syntax rule for object renaming declarations.
36751 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36752 component definitions.
36753
36754 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36755 components.
36756 (Array_Type_Declaration): Give support to access components. In addition
36757 it was also modified to reflect the name of the object in anonymous
36758 array types. The old code did not take into account that it is possible
36759 to have an unconstrained anonymous array with an initial value.
36760 (Check_Or_Process_Discriminants): Allow access discriminant in
36761 non-limited types.
36762 (Process_Discriminants): Allow access discriminant in non-limited types
36763 Initialize the new Access_Definition field in N_Object_Renaming_Decl
36764 node. Change Ada0Y to Ada 0Y in comments
36765
36766 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36767 equality operators.
36768 Change Ada0Y to Ada 0Y in comments
36769
36770 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36771 renamings Change Ada0Y to Ada 0Y in comments
36772
36773 * sem_type.adb (Find_Unique_Type): Give support to the equality
36774 operators for universal access types
36775 Change Ada0Y to Ada 0Y in comments
36776
36777 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36778
36779 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36780 field.
36781 (N_Object_Renaming_Declaration): Addition of Access_Definition field
36782 Change Ada0Y to Ada 0Y in comments
36783
36784 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36785 component definition and object renaming nodes
36786 Change Ada0Y to Ada 0Y in comments
36787
367882004-02-02 Jose Ruiz <ruiz@act-europe.fr>
36789
36790 * restrict.adb: Use the new restriction identifier
36791 No_Requeue_Statements instead of the old No_Requeue for defining the
36792 restricted profile.
36793
36794 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36795 No_Requeue_Statements.
36796
36797 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36798 that supersedes the GNAT specific restriction No_Requeue. The later is
36799 kept for backward compatibility.
36800
368012004-02-02 Ed Schonberg <schonberg@gnat.com>
36802
36803 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36804 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36805 pragma and fix incorrect ones.
36806
36807 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36808 warning if the pragma is redundant.
36809
368102004-02-02 Thomas Quinot <quinot@act-europe.fr>
36811
36812 * 5staprop.adb: Add missing 'constant' keywords.
36813
36814 * Makefile.in: use consistent value for SYMLIB on
36815 platforms where libaddr2line is supported.
36816
368172004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36818
36819 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36820 annotating types.
36821
368222004-02-02 Olivier Hainque <hainque@act-europe.fr>
36823
36824 * init.c (__gnat_install_handler): Setup an alternate stack for signal
36825 handlers in the environment thread. This allows proper propagation of
36826 an exception on stack overflows in this thread even when the builtin
36827 ABI stack-checking scheme is used without support for a stack reserve
36828 region.
36829
36830 * utils.c (create_field_decl): Augment the head comment about bitfield
36831 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36832 here, because the former is not accurate enough at this point.
36833 Let finish_record_type decide instead.
36834 Don't make a bitfield if the field is to be addressable.
36835 Always set a size for the field if the record is packed, to ensure the
36836 checks for bitfield creation are triggered.
36837 (finish_record_type): During last pass over the fields, clear
36838 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36839 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
36840 from DECL_BIT_FIELD.
36841
71cbe2c1
KC
368422004-01-30 Kelley Cook <kcook@gcc.gnu.org>
36843
90afe2c9 36844 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
71cbe2c1
KC
36845 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36846 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36847
7f996f90
RO
368482004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36849
36850 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36851
36852 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36853 (ZCX_By_Default): Likewise.
36854 (Front_End_ZCX_Support): Likewise.
36855
36856 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36857 (Initialize_Lock): Mark Level unreferenced.
36858 (Sleep): Mark Reason unreferenced.
36859 (Timed_Sleep): Likewise.
36860 (Wakeup): Likewise.
36861 (Exit_Task): Use Result.
36862 (Check_No_Locks): Mark Self_ID unreferenced.
90afe2c9 36863
7f996f90
RO
36864 * 5gtasinf.adb (New_Sproc): Make Attr constant.
36865 (Bound_Thread_Attributes): Make Sproc constant.
36866 (New_Bound_Thread_Attributes): Likewise.
36867
26fd4eae
AC
368682004-01-26 Ed Schonberg <schonberg@gnat.com>
36869
36870 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36871 one-dimensional array an slice assignments, when component type is
36872 controlled.
36873
36874 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36875 component type is controlled, and control_actions are in effect, use
36876 TSS procedure rather than generating inline code.
36877
36878 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36879 arrays with controlled components.
36880
368812004-01-26 Vincent Celier <celier@gnat.com>
36882
36883 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36884 command line for the non VMS case.
36885
36886 * gnatlink.adb (Process_Binder_File): When building object file, if
36887 GNU linker is used, put all object paths between quotes, to prevent ld
36888 error when there are unusual characters (such as '!') in the paths.
36889
36890 * Makefile.generic: When there are sources in Ada and the main is in
36891 C/C++, invoke gnatmake with -B, instead of -z.
36892
36893 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36894 from VMS_Conversion.
36895 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36896 specification of argument file on the command line.
36897
368982004-01-26 Bernard Banner <banner@gnat.com>
36899
36900 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36901
369022004-01-26 Ed Schonberg <schonberg@gnat.com>
36903
36904 * snames.adb: Update copyright notice.
36905 Add info on slice assignment for controlled arrays.
36906
b7e429ab
AC
369072004-01-23 Robert Dewar <dewar@gnat.com>
36908
36909 * exp_aggr.adb: Minor reformatting
36910
36911 * exp_ch9.adb: Minor code clean up
36912 Minor reformatting
36913 Fix bad character in comment
36914
36915 PR ada/13471
36916 * targparm.adb (Get_Target_Parameters): Give clean abort error on
36917 unexpected end of file, along with more detailed message.
36918
369192004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36920
36921 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36922 PAT.
36923
36924 * decl.c (copy_alias_set): New function.
36925 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36926
369272004-01-23 Doug Rupp <rupp@gnat.com>
36928
36929 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36930 lib$${file} in case subsequent character is not a separator.
36931
369322004-01-23 Vincent Celier <celier@gnat.com>
36933
36934 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36935 when the GCC version is at least 3.
36936
36937 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36938 Remove all "Opt.", to prepare for opt split
36939
36940 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36941 Extends_All. Set to True when the project parsed is an extending all
36942 project. Fails for importing an extending all project only when the
36943 imported project is an extending all project.
36944 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36945 depending on the value of Extends_All returned.
36946
36947 * prj-proc.adb (Process): Check that no project shares its object
36948 directory with a project that extends it, directly or indirectly,
36949 including a virtual project.
36950 Check that no project extended by another project shares its object
36951 directory with another also extended project.
36952
36953 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36954 Kind = N_With_Clause
36955
36956 * prj-tree.ads: Minor reformatting
36957 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36958
369592004-01-23 Ed Schonberg <schonberg@gnat.com>
36960
36961 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36962 applies to a type with an incomplete view, use full view in Name of
36963 clause, for consistency with uses of Get_Attribute_Definition_Clause.
36964
369652004-01-23 Arnaud Charlet <charlet@act-europe.fr>
36966
36967 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36968 SCHED_RR, since other values are not supported by this policy.
36969 (Initialize): Move initialization of mutex attribute to package
36970 elaboration, to prevent early access to this variable.
36971
36972 * Makefile.in: Remove mention of Makefile.adalib, unused.
36973
b291953f
AC
36974 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36975 1ssecsta.ads: Removed, unused.
b7e429ab 36976
adc04486
AC
369772004-01-21 Javier Miranda <miranda@gnat.com>
36978
36979 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36980 entity if already built in the current scope.
36981
36982 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36983 reminder in internal scopes. Required for nested limited aggregates.
36984
369852004-01-21 Doug Rupp <rupp@gnat.com>
36986
36987 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36988 VMS. Replace all occurences of libgnat- and libgnarl- with
36989 libgnat$(hyphen) and libgnarl$(hyphen).
36990 Fixed shared library build problem on VMS.
36991
369922004-01-21 Robert Dewar <dewar@gnat.com>
36993
36994 * mlib-prj.adb: Minor reformatting
36995
369962004-01-21 Thomas Quinot <quinot@act-europe.fr>
36997
36998 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36999 'constant' keywords for declaration of pointers that are not modified.
37000
37001 * exp_pakd.adb: Fix English in comment.
37002
370032004-01-21 Ed Schonberg <schonberg@gnat.com>
37004
37005 PR ada/10889
37006 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
37007 copy all attributes of the parent, including the foreign language
37008 convention.
37009
370102004-01-21 Sergey Rybin <rybin@act-europe.fr>
37011
37012 PR ada/10565
37013 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
37014 for 'delay until' statement.
37015
a541f69d
KC
370162004-01-20 Kelley Cook <kcook@gcc.gnu.org>
37017
37018 * Make-lang.in: Replace $(docdir) with doc.
37019 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
37020 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
37021 to use consistent MAKEINFO rule.
37022 (ada.man, ada.srcman): Dummy entry.
37023 (ADA_INFOFILES): Define.
37024 (ada.info, ada.srcinfo): New rules.
37025
c01a9391
AC
370262004-01-19 Arnaud Charlet <charlet@act-europe.fr>
37027
37028 * utils.c: Update copyright notice, missed in previous change.
37029
370302004-01-19 Vincent Celier <celier@gnat.com>
37031
37032 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
37033 args if Bind is True. Set First_ALI, if not already done.
37034 (Build_Library): For Stand Alone Libraries, extract from one ALI file
37035 an eventual --RTS switch, for gnatbind, and all backend switches +
37036 --RTS, for linking.
37037
370382004-01-19 Robert Dewar <dewar@gnat.com>
37039
37040 * sem_attr.adb, memtrack.adb: Minor reformatting
37041
370422004-01-19 Ed Schonberg <schonberg@gnat.com>
37043
37044 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
37045 that rename enumeration literals. This is properly done in sem_eval.
37046
37047 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
37048 to functions that rename enumeration literals.
37049
37050 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
37051 functions that rename enumeration literals.
37052
510d1e80
KH
370532004-01-16 Kazu Hirata <kazu@cs.umass.edu>
37054
37055 * Make-lang.in (utils.o): Depend on target.h.
37056 * utils.c: Include target.h.
37057 (process_attributes): Use targetm.have_named_sections instead
37058 of ASM_OUTPUT_SECTION_NAME.
37059
fbf3e0dd
AJ
370602004-01-16 Andreas Jaeger <aj@suse.de>
37061
37062 * Makefile.in: Add $(DESTDIR).
37063
acd47d2a
AC
370642004-01-15 Olivier Hainque <hainque@act-europe.fr>
37065
37066 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
37067 also when not defining if a Size clause applies. That information is
37068 not to be ignored.
37069
370702004-01-15 Arnaud Charlet <charlet@act-europe.fr>
37071
37072 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
37073 symbolic links for the shared gnat run time when needed.
37074
370752004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
37076
37077 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
37078 for writing, and terminate with an error message if not.
37079
370802004-01-15 Ed Schonberg <schonberg@gnat.com>
37081
37082 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
37083 warning on an access to subprogram in an instance, when the target
37084 type is declared in the same generic unit.
37085 (Eval_Attribute): If 'access is known to fail accessibility check,
37086 rewrite as a raise statement.
37087
370882004-01-15 GNAT Script <nobody@gnat.com>
37089
37090 * Make-lang.in: Makefile automatically updated
37091
03787dfd
KC
370922004-01-15 Kelley Cook <kcook@gcc.gnu.org>
37093
37094 * Make-lang.in (ada.srcextra): Dummy entry.
37095
73e232f0
KC
370962004-01-14 Kelley Cook <kcook@gcc.gnu.org>
37097
37098 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37099
9bc43c53
AC
371002004-01-13 Ed Schonberg <schonberg@gnat.com>
37101
37102 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37103 components that are initialized with aggregates.
37104
371052004-01-13 Vincent Celier <celier@gnat.com>
37106
37107 * gnatlink.adb (Process_Binder_File): To find directory of shared
37108 libgcc, if "gcc-lib" is not a subdirectory, look for the last
37109 subdirectory "lib" in the path of the shared libgnat or libgnarl.
37110
37111 * make.adb (Gnatmake): If GCC version is at least 3, link with
37112 -shared-libgcc, when there is at least one shared library project.
37113
37114 * opt.ads (GCC_Version): New integer constant.
37115
37116 * adaint.c (get_gcc_version): New function.
37117
371182004-01-13 Robert Dewar <dewar@gnat.com>
37119
37120 * sem_dist.adb, sem_res.adb, sem_util.adb,
37121 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37122 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37123
371242004-01-13 Thomas Quinot <quinot@act-europe.fr>
37125
37126 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37127 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37128 declarations.
37129
8b52de7b
AC
371302004-01-12 Arnaud Charlet <charlet@act-europe.fr>
37131
f6ea0188
AC
37132 * misc.c: Remove trailing spaces.
37133 Update copyright notice missed in previous change.
37134
8b52de7b
AC
37135 PR ada/13572
37136 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37137 prefix/share/make
37138
37139 * Makefile.generic: Update copyright.
37140 Add license notice.
37141
37142 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37143 of prefix/share/make.
37144
37145 * Makefile.prolog: Update copyright.
37146 Add license notice.
37147
371482004-01-12 Laurent Pautet <pautet@act-europe.fr>
37149
37150 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37151 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37152 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37153 instead of String.
37154
37155 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37156 signature.
37157
371582004-01-12 Javier Miranda <miranda@gnat.com>
37159
37160 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37161 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37162 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37163 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37164 Component_Definition node.
37165
371662004-01-12 Ed Falis <falis@gnat.com>
37167
37168 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37169
371702004-01-12 Thomas Quinot <quinot@act-europe.fr>
37171
37172 * link.c: Change default libgnat kind to STATIC for FreeBSD.
37173
371742004-01-12 Bernard Banner <banner@gnat.com>
37175
37176 * Makefile.in: map 86numaux to a-numaux for x86_64
37177
371782004-01-12 Ed Schonberg <schonberg@gnat.com>
37179
37180 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37181 generated to rename a generic actual, go to the actual itself, the
37182 subtype is not a user-visible entity.
37183
37184 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37185 part is a private subtype, reset the visibility of its full view, if
37186 any, to be consistent.
37187
37188 PR ada/13417
37189 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37190 to use a generic package G as a formal package for another generic
37191 declared within G.
37192
371932004-01-12 Robert Dewar <dewar@gnat.com>
37194
37195 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37196
37197 * usage.adb: Remove mention of obsolete -gnatwb switch
37198 Noticed during code reading
37199
372002004-01-12 Jerome Guitton <guitton@act-europe.fr>
37201
37202 * 1ssecsta.adb: Minor changes for -gnatwa warnings
37203
372042004-01-12 GNAT Script <nobody@gnat.com>
37205
37206 * Make-lang.in: Makefile automatically updated
37207
0fab64a3
MM
372082004-01-09 Mark Mitchell <mark@codesourcery.com>
37209
37210 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37211
47527624
RO
372122004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37213
37214 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37215
dedebde1
KC
372162004-01-05 Kelley Cook <kcook@gcc.gnu.org>
37217
fbf3e0dd 37218 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
dedebde1
KC
37219 Update comment and copyright date.
37220 * stamp-xgnatug: Delete.
37221
91b1417d
AC
372222004-01-05 Robert Dewar <dewar@gnat.com>
37223
37224 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37225 be modified by the binder generated main program if the -D switch is
37226 used.
37227
37228 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37229 imported functions (since now we expect this to be done for imported
37230 functions)
37231
37232 * 5vtaprop.adb: Add several ??? for sections requiring more comments
37233 Minor reformatting throughout
37234
37235 * 5zinit.adb: Minor reformatting
37236 Add 2004 to copyright date
37237 Minor changes to avoid -gnatwa warnings
37238 Correct some instances of using OR instead of OR ELSE (noted while
37239 doing reformatting)
37240
37241 * sprint.adb: Minor updates to avoid -gnatwa warnings
37242
fbf3e0dd 37243 * s-secsta.ads, s-secsta.adb:
91b1417d
AC
37244 (SS_Get_Max): New function to obtain high water mark for ss stack
37245 Default_Secondary_Stack is not a constant since it may be modified by
37246 the binder generated main program if the -D switch is used.
37247
37248 * switch-b.adb: New -Dnnn switch for binder
37249
fbf3e0dd 37250 * switch-c.adb:
91b1417d
AC
37251 Make -gnatg imply all warnings currently in -gnatwa
37252
37253 * vms_conv.adb: Minor reformatting
37254 Add 2004 to copyright notice
37255 Add 2004 to printed copyright notice
37256
37257 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37258 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37259 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37260 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37261 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37262 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37263 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37264 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37265 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37266 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37267 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37268 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37269 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37270 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37271 checks.adb, clean.adb, cstand.adb, einfo.ads,
37272 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37273 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37274 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37275 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37276 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37277 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37278 Minor reformatting and code clean ups.
37279 Minor changes to prevent -gnatwa warnings
37280
37281 * ali.adb: Minor reformatting and cleanup of code
37282 Acquire new SS indication of secondary stack use from ali files
37283
37284 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37285 (since now we expect this to be done for imported functions)
37286
37287 * bindgen.adb: Generate call to modify default secondary stack size if
37288 -Dnnn switch given
37289
37290 * bindusg.adb: Add line for new -D switch
37291
37292 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37293 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37294 Add circuitry for both records and arrays to avoid gigi
37295 processing if the type involved has non-bit-aligned components
37296
37297 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37298 N_String_Literal node always references an E_String_Literal_Subtype
37299 entity. This may not be true in the future.
37300 (Possible_Bit_Aligned_Component): Move processing of
37301 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37302
37303 * exp_ch6.adb (Expand_Thread_Body): Pick up
37304 Default_Secondary_Stack_Size as variable so that we get value modified
37305 by possible -Dnnn binder parameter.
37306
37307 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37308 (Type_May_Have_Bit_Aligned_Components): New function.
37309
37310 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37311 (Type_May_Have_Bit_Aligned_Components): New function.
37312
37313 * fe.h: (Set_Identifier_Casing): Fix prototype.
37314 Add declaration for Sem_Elim.Eliminate_Error_Msg.
37315 Minor reformatting.
37316
37317 * freeze.adb (Freeze_Entity): Add RM reference to error message about
37318 importing constant atomic/volatile objects.
37319 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37320 unless explicit Pure_Function pragma given, to avoid insidious bug of
37321 call to non-pure imported function getting eliminated.
37322
37323 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37324 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37325 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37326 Add 2004 to printed copyright notice
37327
37328 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37329 stack used.
37330
37331 * Makefile.rtl: Add entry for g-sestin.o
37332 g-sestin.ads: New file.
37333
37334 * mdll.adb: Minor changes to avoid -gnatwa warnings
37335
37336 * mlib-tgt.adb: Minor reformatting
37337
37338 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37339 New switch Sec_Stack_Used (GNAT, GNATBIND)
37340 Make Default_Secondary_Stack_Size a variable instead of a constant,
37341 so that it can be modified by the new -Dnnn bind switch.
37342
37343 * rtsfind.adb (Load_Fail): Give full error message in configurable
37344 run-time mode if all_errors mode is set. This was not done in the case
37345 of a file not found, which was an oversight.
37346 Note if secondary stack unit is used by compiler.
37347
37348 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37349 ineffective elaborate all pragmas on non-visible packages (this
37350 happened when a renamed subprogram was called). Now the elaborate all
37351 always goes on the package containing the renaming rather than the one
37352 containing the renamed subprogram.
37353
37354 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37355 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37356
37357 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37358 has an Etype that references an E_String_Literal.
37359 (Eval_String_Literal): Avoid assumption that N_String_Literal node
37360 always references an E_String_Literal_Subtype entity. This may not
37361 be true in the future.
37362
37363 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37364 pragma location.
37365
37366 * sem_res.adb (Resolve): Specialize msg for function name used in proc
37367 call.
37368
373692004-01-05 Ed Falis <falis@gnat.com>
37370
37371 * g-debuti.adb: Replaced direct boolean operator with short-circuit
37372 form.
37373
373742004-01-05 Vincent Celier <celier@gnat.com>
37375
37376 * bld.adb: Minor comment updates
37377 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37378 of Item_Name).
37379
37380 * make.adb (Gnatmake): Special process for files to compile/check when
37381 -B is specified. Fail when there are only foreign mains in attribute
37382 Main of the project file and -B is not specified. Do not skip bind/link
37383 steps when -B is specified.
37384
37385 * makeusg.adb: Document new switch -B
37386
37387 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37388
37389 * switch-m.adb: (Scan_Make_Switches): Process -B switch
37390
37391 * vms_data.ads: Add new GNAT PRETTY qualifier
37392 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37393
373942004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37395
37396 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37397 case.
37398
37399 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37400 Set_Identifier_Casing.
37401
37402 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37403 has size that overflows.
37404
374052004-01-05 Gary Dismukes <dismukes@gnat.com>
37406
37407 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37408 -gnatwa warning on static condition.
37409
374102004-01-05 Doug Rupp <rupp@gnat.com>
37411
37412 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37413
374142004-01-05 Arnaud Charlet <charlet@act-europe.fr>
37415
37416 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37417 all attributes, including read-only attribute.
37418
374192004-01-05 Pascal Obry <obry@gnat.com>
37420
37421 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37422 library naming scheme.
37423
37424 * mlib-prj.adb (Build_Library): Generate different names for the static
37425 or dynamic version of the GNAT runtime. This is needed to support the
37426 new shared library naming scheme.
37427 (Process_Binder_File): Add detection of shared library in binder file
37428 based on the new naming scheme.
37429
37430 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37431 scheme for the shared runtime libraries.
37432
37433 * Makefile.in:
37434 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37435 scheme.
37436 (install-gnatlib): Do not create symlinks for shared libraries.
37437 (gnatlib-shared-default): Idem.
37438 (gnatlib-shared-dual-win32): New target. Not used for now as the
37439 auto-import feature does not support arrays/records.
37440 (gnatlib-shared-win32): Do not create copy for the shared libraries.
37441 (gnatlib-shared-vms): Fix shared runtime libraries names.
37442
37443 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37444 dependent runtime shared library name.
37445
374462004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
37447
37448 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37449 than the object.
37450
374512004-01-05 Ed Schonberg <schonberg@gnat.com>
37452
37453 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37454 protected objects when allocator has a subtype indication, not a
37455 qualified expression. Note that qualified expressions may have to be
37456 checked when limited aggregates are implemented.
37457
37458 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37459 pure, emit warning.
37460 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37461 subprogram is imported, remove warning.
37462
374632004-01-05 Geert Bosch <bosch@gnat.com>
37464
37465 * s-poosiz.adb: Update copyright notice.
37466 (Allocate): Use Task_Lock to protect against concurrent access.
37467 (Deallocate): Likewise.
37468
374692004-01-05 Joel Brobecker <brobecker@gnat.com>
37470
37471 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37472 comment.
37473
2ab127f3
KC
374742003-12-23 Kelley Cook <kcook@gcc.gnu.org>
37475
37476 * gnat_ug.texi: Force a CVS commit by updating copyright.
37477 * gnat_ug_vxw.texi: Regenerate.
37478 * gnat_ug_wnt.texi: Regenerate.
37479 * gnat_ug_vms.texi: Regenerate.
37480 * gnat_ug_unx.texi: Regenerate.
37481
aed8bfdc
KH
374822003-12-20 Kazu Hirata <kazu@cs.umass.edu>
37483
37484 * trans.c: Remove uses of "register" specifier in
37485 declarations of local variables.
37486
90c2f1de
KC
374872003-12-18 Kelley Cook <kcook@gcc.gnu.org>
37488
37489 * stamp-xgnatug: New stamp file.
37490 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
37491 (ada/doctools/xgnatug): Add $(build_exeext).
37492 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37493 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37494
891a6e79
AC
374952003-12-17 Ed Falis <falis@gnat.com>
37496
37497 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37498 eliminate warning.
37499
37500 * a-exextr.adb: Add context clause for
37501 Ada.Exceptions.Last_Chance_Handler.
37502
375032003-12-17 Sergey Rybin <rybin@act-europe.fr>
37504
37505 * cstand.adb (Create_Standard): Change the way how the declaration of
37506 the Duration type is created (making it the same way as it is for all
37507 the other standard types).
37508
375092003-12-17 Robert Dewar <dewar@gnat.com>
37510
37511 * s-crtl.ads: Fix header format
37512 Change Pure to Preelaborate
37513
375142003-12-17 Ed Schonberg <schonberg@gnat.com>
37515
37516 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37517 the expression type only if it is declared in the current unit.
37518
37519 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37520 are universal and already analyzed, as can occur in constrained
37521 subcomponents that depend on discriminants, when one constraint is a
37522 subtype mark.
37523
37524 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37525 type Any_Fixed is legal as the argument of a conversion, if only one
37526 fixed-point type is in context.
37527
375282003-12-17 GNAT Script <nobody@gnat.com>
37529
37530 * Make-lang.in: Makefile automatically updated
37531
209db2bf
AC
375322003-12-15 Robert Dewar <dewar@gnat.com>
37533
37534 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37535 sec stack size.
37536
375372003-12-15 Vincent Celier <celier@gnat.com>
37538
37539 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37540 (Gnatchop): Do not set failure status when reporting the number of
37541 warnings.
37542
375432003-12-15 Doug Rupp <rupp@gnat.com>
37544
37545 * s-ctrl.ads: New file.
37546
37547 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37548
37549 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37550 (GNATBIND_OBJS): Add ada/s-crtl.o.
37551
37552 * Makefile.in [VMS]: Clean up ifeq rules.
37553
37554 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37555 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37556 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37557 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37558 s-tasdeb.adb: Update copyright.
37559 Import System.CRTL.
37560 Make minor modifications to use System.CRTL declared functions instead
37561 of importing locally.
37562
375632003-12-15 GNAT Script <nobody@gnat.com>
37564
37565 * Make-lang.in: Makefile automatically updated
37566
a9f4e3d2
AC
375672003-12-11 Ed Falis <falis@gnat.com>
37568
37569 * 5zinit.adb: Clean up.
37570
37571 * 5zintman.adb (Notify_Exception): replaced case statement with a call
37572 to __gnat_map_signal, imported from init.c to support
37573 signal -> exception mappings that depend on the vxWorks version.
37574
fbf3e0dd 37575 * init.c:
a9f4e3d2
AC
37576 Created and exported __gnat_map_signal to support signal -> exception
37577 mapping that is dependent on the VxWorks version.
37578 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37579
375802003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
37581
37582 * 5wosinte.ads: Link with -mthreads switch.
37583
375842003-12-11 Arnaud Charlet <charlet@act-europe.fr>
37585
37586 * init.c (__gnat_install_handler [NetBSD]): Set
37587 __gnat_handler_installed, as done on all other platforms.
37588 Remove duplicated code.
37589
375902003-12-11 Jerome Guitton <guitton@act-europe.fr>
37591
37592 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37593
375942003-12-11 Thomas Quinot <quinot@act-europe.fr>
37595
37596 * sinfo.ads: Fix inconsistent example code in comment.
37597
375982003-12-11 Robert Dewar <dewar@gnat.com>
37599
37600 * a-tiinau.adb: Add a couple of comments
37601
37602 * sem_ch3.adb: Minor reformatting
37603
fbf3e0dd 37604 * sem_prag.adb:
a9f4e3d2
AC
37605 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37606 Minor reformatting throughout
37607
376082003-12-11 Ed Schonberg <schonberg@gnat.com>
37609
37610 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37611 bounds of a loop, create a separate block in order to generate proper
37612 cleanup actions to prevent memory leaks.
37613
37614 * sem_res.adb (Resolve_Call): After a call to
37615 Establish_Transient_Scope, the call may be rewritten and relocated, in
37616 which case no further processing is needed.
37617
37618 * sem_util.adb: (Wrong_Type): Refine previous fix.
37619 Fixes ACATS regressions.
37620
37621 PR ada/13353
a9f4e3d2
AC
37622 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37623 be inlined.
37624
c45b6ae0
AC
376252003-12-08 Jerome Guitton <guitton@act-europe.fr>
37626
37627 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37628 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37629 obsolete files.
37630
37631 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37632 (rts-zfp): Ditto.
37633
376342003-12-08 Robert Dewar <dewar@gnat.com>
37635
37636 * 7sintman.adb: Minor reformatting
37637
37638 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37639 standard linker options to get standard libraries linked. We now plan
37640 to provide dummy versions of these libraries to match the appropriate
37641 configurable run-time (e.g. if a library is not needed at all, provide
37642 a dummy empty library).
37643
37644 * targparm.ads: Configurable_Run_Time mode no longer affects linker
37645 options (-L parameters and standard libraries). What we plan to do is
37646 to provide dummy libraries where the libraries are not required.
37647
37648 * gnatbind.adb: Minor comment improvement
37649
376502003-12-08 Javier Miranda <miranda@gnat.com>
37651
37652 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37653 aggregate in the parent. Otherwise constants with limited aggregates
37654 are not supported. Add new formal to pass the component type (Ctype).
37655 It is required to call the corresponding IP subprogram in case of
37656 default initialized components.
37657 (Gen_Assign): In case of default-initialized component, generate a
37658 call to the IP subprogram associated with the component.
37659 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37660 of aggregate with default initialized components.
37661 (Has_Default_Init_Comps): Improve implementation to recursively check
37662 all the present expressions.
37663
37664 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37665 to indicate that the initialization call corresponds to a
37666 default-initialized component of an aggregate.
37667 In case of default initialized aggregate with tasks this parameter is
37668 used to generate a null string (this is just a workaround that must be
37669 improved later). In case of discriminants, this parameter is used to
37670 generate a selected component node that gives access to the discriminant
37671 value.
37672
37673 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37674 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37675 allocated aggregates with default-initialized components.
37676
37677 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37678 the box notation is used in positional aggregates.
37679
376802003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
37681
37682 * lib.ads: Fix typo in comment
37683
376842003-12-08 Vincent Celier <celier@gnat.com>
37685
37686 * prj.adb (Project_Empty): New component Unkept_Comments
37687 (Scan): Remove procedure; moved to Prj.Err.
37688
37689 * prj.ads (Project_Data): New Boolean component Unkept_Comments
37690 (Scan): Remove procedure; moved to Prj.Err.
37691
37692 * prj-dect.adb: Manage comments for the different declarations.
37693
37694 * prj-part.adb (With_Record): New component Node
37695 (Parse): New Boolean parameter Store_Comments, defaulted to False.
37696 Set the scanner to return ends of line and comments as tokens, if
37697 Store_Comments is True.
37698 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37699 comments are associated with these nodes. Store the node IDs in the
37700 With_Records.
37701 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37702 With_Records.
37703 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37704 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37705 current project. Call Tree.Restore afterwards. Set the various nodes
37706 for comment storage (Next_End, End_Of_Line, Previous_Line,
37707 Previous_End).
37708
37709 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37710 defaulted to False.
37711
37712 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37713 to False. When Truncated is True, truncate the string, never go to the
37714 next line.
37715 (Write_End_Of_Line_Comment): New procedure
37716 (Print): Process comments for nodes N_With_Clause,
37717 N_Package_Declaration, N_String_Type_Declaration,
37718 N_Attribute_Declaration, N_Typed_Variable_Declaration,
37719 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37720 Process nodes N_Comment.
37721
37722 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37723 without comments and there are some comments, set the flag
37724 Unkept_Comments to True.
37725 (Scan): If there are comments, set the flag Unkept_Comments to True and
37726 clear the comments.
37727 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37728 (Next_End_Nodes: New table
37729 (Comment_Zones_Of): New function
37730 (Scan): New procedure; moved from Prj. Accumulate comments in the
37731 Comments table and set end of line comments, comments after, after end
37732 and before end.
37733 (Add_Comments): New procedure
37734 (Save, Restore, Seset_State): New procedures
37735 (There_Are_Unkept_Comments): New function
37736 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37737 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37738 procedures.
37739 (First_Comment_After, First_Comment_After_End): New functions
37740 (First_Comment_Before, First_Comment_Before_End): New functions
37741 (Next_Comment): New function
37742 (End_Of_Line_Comment, Follows_Empty_Line,
37743 Is_Followed_By_Empty_Line): New functions
37744 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37745 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37746 (Set_Next_Comment): New procedure
37747 (Default_Project_Node): Associate comment before if the node can store
37748 comments.
37749
37750 * scans.ads (Token_Type): New enumeration value Tok_Comment
37751 (Comment_Id): New global variable
37752
37753 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37754 defaulted to False.
37755 (Scan): Store position of start of comment. If comments are tokens, set
37756 Comment_Id and set Token to Tok_Comment when scanning a comment.
37757 (Set_Comment_As_Token): New procedure
37758
37759 * sinput-p.adb: Update Copyright notice
37760 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37761 that no longer exists.
37762
377632003-12-08 Javier Miranda <miranda@gnat.com>
37764
37765 * sem_aggr.adb: Add dependence on Exp_Tss package
37766 Correct typo in comment
37767 (Resolve_Aggregate): In case of array aggregates set the estimated
37768 type of the aggregate before calling resolve. This is needed to know
37769 the name of the corresponding IP in case of limited array aggregates.
37770 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37771 in case of default initialized array components.
37772
37773 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37774 types. Required to give support to limited aggregates in generic
37775 formals.
37776
377772003-12-08 Ed Schonberg <schonberg@gnat.com>
37778
37779 * sem_ch3.adb (Check_Initialization): For legality purposes, an
37780 inlined body functions like an instantiation.
37781 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37782 until bounds are analyzed, to diagnose premature use of type.
37783
37784 * sem_util.adb (Wrong_Type): Improve error message when the type of
37785 the expression is used prematurely.
37786
377872003-12-08 GNAT Script <nobody@gnat.com>
37788
37789 * Make-lang.in: Makefile automatically updated
37790
0875a894
AC
377912003-12-08 Arnaud Charlet <charlet@act-europe.fr>
37792
7618d510
AC
37793 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37794 they are automatically generated by Make-lang.in and cause nothing but
0875a894
AC
37795 maintenance troubles.
37796
5b4994bc
AC
377972003-12-05 Thomas Quinot <quinot@act-europe.fr>
37798
37799 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37800 version of this unit).
37801
378022003-12-05 Olivier Hainque <hainque@act-europe.fr>
37803
37804 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37805 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37806 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37807 the body of System.Interrupt_Management common to several targets.
37808 Update copyright notice when appropriate.
37809
37810 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37811 constant.
37812
37813 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37814 to ensure that the kernel fills in the interrupted context structure
37815 before calling a signal handler, which is necessary to be able to
37816 unwind past it. Update the copyright notice.
37817
378182003-12-05 Jerome Guitton <guitton@act-europe.fr>
37819
37820 * a-elchha.ads: New file.
37821
37822 * a-elchha.adb: New default last chance handler. Contents taken from
37823 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37824
37825 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37826 is moved to a-elchha.adb to provide a target-independent default last
37827 chance handler.
37828
37829 * Makefile.rtl: Add a-elchha.o
37830
37831 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37832
378332003-12-05 Ed Schonberg <schonberg@gnat.com>
37834
37835 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37836 declared in an instance, do not inline the call if the instance is not
37837 frozen yet, to prevent order of elaboration problems.
37838
37839 * sem_prag.adb: Add comments for previous fix.
37840
378412003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
37842
37843 * g-table.adb: Use the right variable in Set_Item.
37844 Update copyright notice.
37845
378462003-12-05 Arnaud Charlet <charlet@act-europe.fr>
37847
37848 * Makefile.in: Remove unused rules.
37849
378502003-12-05 Vincent Celier <celier@gnat.com>
37851
37852 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37853 -nostdlib. Not needed here after all.
37854
efdfd311
AC
378552003-12-03 Thomas Quinot <quinot@act-europe.fr>
37856
37857 PR ada/11724
fbf3e0dd 37858 * adaint.h, adaint.c, g-os_lib.ads:
efdfd311
AC
37859 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37860 on some platforms (including FreeBSD), it is a 64 bit value.
37861 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37862
378632003-12-03 Arnaud Charlet <charlet@act-europe.fr>
37864
37865 * gnatvsn.ads (Library_Version): Now contain only the relevant
37866 version info.
37867 (Verbose_Library_Version): New constant.
37868
37869 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37870 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37871 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37872
37873 * gnatlbr.adb: Clean up: replace Library_Version by
37874 Verbose_Library_Version.
37875
fbf3e0dd 37876 * make.adb, lib-writ.adb, exp_attr.adb:
efdfd311
AC
37877 Clean up: replace Library_Version by Verbose_Library_Version.
37878
37879 * 5lintman.adb: Removed.
37880
fbf3e0dd 37881 * Makefile.in:
efdfd311
AC
37882 Update and simplify computation of LIBRARY_VERSION.
37883 Fix computation of GSMATCH_VERSION.
37884 5lintman.adb is no longer used: replaced by 7sintman.adb.
37885
378862003-12-03 Robert Dewar <dewar@gnat.com>
37887
fbf3e0dd 37888 * exp_ch5.adb:
efdfd311
AC
37889 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37890 name. Modified to consider small non-bit-packed arrays as troublesome
37891 and in need of component-by-component assigment expansion.
37892
378932003-12-03 Vincent Celier <celier@gnat.com>
37894
37895 * lang-specs.h: Process nostdlib as nostdinc
37896
37897 * back_end.adb: Update Copyright notice
37898 (Scan_Compiler_Arguments): Process -nostdlib directly.
37899
379002003-12-03 Jose Ruiz <ruiz@act-europe.fr>
37901
fbf3e0dd 37902 * Makefile.in:
efdfd311
AC
37903 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37904 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37905 included in HIE_NONE_TARGET_PAIRS.
37906
379072003-12-03 Ed Schonberg <schonberg@gnat.com>
37908
fbf3e0dd 37909 * sem_attr.adb:
efdfd311
AC
37910 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37911 is legal in an instance, because legality is cheched in the template.
37912
fbf3e0dd 37913 * sem_prag.adb:
efdfd311
AC
37914 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37915 appplied to an unchecked conversion of a formal parameter.
37916
fbf3e0dd 37917 * sem_warn.adb:
efdfd311
AC
37918 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37919 variables.
37920
379212003-12-03 Olivier Hainque <hainque@act-europe.fr>
37922
37923 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37924 routines. The second one is new functionality to deal with backtracing
37925 through signal handlers.
37926 (unwind): Split into the two separate subroutines above.
37927 Update the documentation, and deal properly with sizeof (REG) different
37928 from sizeof (void*).
37929
08aa9a4a
AC
379302003-12-01 Nicolas Setton <setton@act-europe.fr>
37931
37932 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37933 so that the debugger can reliably access the value of the parameter,
37934 and therefore is able to display the exception name when an exception
37935 breakpoint is reached.
37936
379372003-12-01 Thomas Quinot <quinot@act-europe.fr>
37938
37939 * fmap.adb: Fix typo in warning message.
37940
37941 * g-socket.ads, g-socket.adb: Make Free a visible instance of
37942 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37943
379442003-12-01 Vincent Celier <celier@gnat.com>
37945
37946 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37947 ther is no Afile.
37948 (Build_Library): Get the switches only if Default_Switches is declared
37949 in package Binder.
37950
379512003-12-01 Ed Schonberg <schonberg@gnat.com>
37952
37953 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37954 actuals that are indexed components, reanalyze actual to ensure that
37955 packed array references are properly expanded.
37956
37957 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37958 attempted assignment to a discriminant.
37959
379602003-12-01 Robert Dewar <dewar@gnat.com>
37961
37962 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37963 reformatting.
37964
37965 * switch-c.adb: Minor reformatting of comments
37966
379672003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37968
37969 * Makefile.in: Clean ups.
37970
379712003-12-01 GNAT Script <nobody@gnat.com>
37972
37973 * Make-lang.in: Makefile automatically updated
37974
c6135994
AC
379752003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37976
37977 * 5wsystem.ads: Disable zero cost exception, not ready yet.
37978
51a30506
UW
379792003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
37980
37981 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37982 to force serialization.
37983
81a5b587
AC
379842003-11-26 Thomas Quinot <quinot@act-europe.fr>
37985
fbf3e0dd 37986 * g-socket.ads, g-socket.adb:
81a5b587
AC
37987 Clarify documentation of function Stream. Introduce a Free procedure
37988 to release the returned Stream once it becomes unused.
37989
37990 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37991
379922003-11-26 Arnaud Charlet <charlet@act-europe.fr>
37993
37994 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37995 since NT 4 cannot handle timeout values that are too large,
37996 e.g. DWORD'Last - 1.
37997
379982003-11-26 Ed Schonberg <schonberg@gnat.com>
37999
fbf3e0dd 38000 * exp_ch4.adb:
81a5b587
AC
38001 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
38002 in procedure calls and whose expansion must be deferred.
38003
38004 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
38005 is in exp_ch4.
38006
fbf3e0dd 38007 * sem_ch3.adb:
81a5b587
AC
38008 (Build_Derived_Array_Type): Create operator for unconstrained type
38009 if ancestor is unconstrained.
38010
380112003-11-26 Vincent Celier <celier@gnat.com>
38012
38013 * make.adb (Project_Object_Directory): New global variable
38014 (Change_To_Object_Directory): New procedure
38015 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
38016 of Change_Dir directly. Do not change working directory to object
38017 directory of main project after each compilation.
38018 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
38019 directly.
38020 Change to object directory of main project before binding step.
38021 (Initialize): Initialize Project_Object_Directory to No_Project
38022
fbf3e0dd 38023 * mlib-prj.adb:
81a5b587
AC
38024 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
38025 binding a Stand-Alone Library.
38026
38027 * output.adb: Update Copyright notice
38028 (Write_Char): Output buffer when full
38029
380302003-11-26 Robert Dewar <dewar@gnat.com>
38031
38032 * sem_ch13.adb: (Check_Size): Reset size if size is too small
38033
fbf3e0dd 38034 * sem_ch13.ads:
81a5b587
AC
38035 (Check_Size): Fix documentation to include bit-packed array case
38036
38037 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
38038
38039 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
38040
38041 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
38042
9e94c78f 380432003-11-24 Arnaud Charlet <charlet@act-europe.fr>
d4c47b51
AC
38044
38045 PR ada/13142
38046 * utils.c (init_gigi_decls): Change name of built-in setjmp to
38047 __builtin_setjmp, since this is apparently needed by recent
38048 non Ada changes.
38049
7677e9e0
RO
380502003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38051
d4c47b51 38052 * adadecode.c: Only include ctype.h if not IN_GCC.
7677e9e0
RO
38053 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
38054
6c1e24d3
AC
380552003-11-24 Jose Ruiz <ruiz@act-europe.fr>
38056
fbf3e0dd 38057 * Makefile.in:
6c1e24d3
AC
38058 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
38059 signals and interrupts.
38060
38061 * 5zintman.ads: New File.
38062
38063 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
38064 add exception signals to the set of unmasked signals.
38065
fbf3e0dd 38066 * 5ztaprop.adb:
6c1e24d3
AC
38067 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
38068 between signals and interrupts.
38069 Add to Unblocked_Signal_Mask the set of signals that are in
38070 Keep_Unmasked.
38071
fbf3e0dd 38072 * 7sinmaop.adb:
6c1e24d3
AC
38073 Adding a check to see whether the Interrupt_ID we want to unmask is in
38074 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
38075 reason is that the index type of the Keep_Unmasked array is not always
38076 Interrupt_ID; it may be a subtype of Interrupt_ID.
38077
380782003-11-24 Gary Dismukes <dismukes@gnat.com>
38079
fbf3e0dd 38080 * exp_util.adb:
6c1e24d3
AC
38081 (Remove_Side_Effects): Condition constantness of object created for a
38082 an unchecked type conversion on the constantness of the expression
38083 to ensure the correct value for 'Constrained when passing components
38084 of view-converted class-wide objects.
38085
380862003-11-24 Robert Dewar <dewar@gnat.com>
38087
38088 * par-load.adb (Load): Improve handling of misspelled and missing units
38089 Removes several cases of compilation abandoned messages
38090
38091 * lib.adb: (Remove_Unit): New procedure
38092
38093 * lib.ads: (Remove_Unit): New procedure
38094
38095 * lib-load.adb: Minor reformatting
38096
380972003-11-24 Vincent Celier <celier@gnat.com>
38098
fbf3e0dd 38099 * make.adb:
6c1e24d3
AC
38100 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38101 (Marking_Label): Label to mark processed source files. Incremented for
38102 each executable.
38103 (Gnatmake): Increase Marking_Labet for each executable
38104 (Is_Marked): Compare against marking label
38105 (Mark): Mark with marking label
38106
381072003-11-24 Jerome Guitton <guitton@act-europe.fr>
38108
fbf3e0dd 38109 * s-thread.ads:
6c1e24d3
AC
38110 Move the declaration of the TSD for System.Threads to System.Soft_Links.
38111 Add some comments.
38112
38113 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38114 (rts-cert): build a single relocatable object for the run-time lib.
38115 Fix perms.
38116
381172003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
38118
fbf3e0dd 38119 * Make-lang.in:
6c1e24d3
AC
38120 Use gnatls rather than gcc to obtain the location of GNAT RTL for
38121 crosstools build.
38122
381232003-11-24 Sergey Rybin <rybin@act-europe.fr>
38124
38125 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38126 can not use it as before (that is, as a variable) when dumping it into
38127 the tree file. Add a local variable to store the result of this
38128 function and to be used as the string to be written into the tree.
38129
38130 * scn.adb (Initialize_Scanner): Add comments explaining the recent
38131 changes.
38132
38133 * sinput.adb (Source_First, Source_Last): In case of
38134 Internal_Source_File, replace returning attributes of
38135 Internal_Source_Ptr (which is wrong) with returning attributes of
38136 Internal_Source.
38137
381382003-11-24 Ed Schonberg <schonberg@gnat.com>
38139
fbf3e0dd 38140 * sem_ch3.adb:
6c1e24d3
AC
38141 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38142 used for implicit concatenation operators.
38143 Code cleanup.
38144
fbf3e0dd 38145 * sem_elab.adb:
6c1e24d3
AC
38146 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38147 task bodies that are in the scope of a Suppress pragma.
38148 (Check_A Call): Use the flag to prevent spurious elaboration checks.
38149
fbf3e0dd 38150 * sinfo.ads, sinfo.adb:
6c1e24d3
AC
38151 New flag No_Elaboration_Check on function/procedure calls, to properly
38152 suppress checks on calls in task bodies that are within a local suppress
38153 pragma.
38154
fbf3e0dd 38155 * exp_ch4.adb:
6c1e24d3
AC
38156 (Expand_Concatenate_Other): Use the proper integer type for the
38157 expression for the upper bound, to avoid universal_integer computations
38158 when possible.
38159
6f2aeb72
KC
381602003-11-21 Kelley Cook <kcook@gcc.gnu.org>
38161
38162 * .cvsignore: Delete.
38163
e9f85cd6
AS
381642003-11-21 Andreas Schwab <schwab@suse.de>
38165
38166 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38167
4e074baf
VF
381682003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
38169
38170 * 5wsystem.ads: Enable zero cost exception.
38171
f1f9fe30
AC
381722003-11-21 Jerome Guitton <guitton@act-europe.fr>
38173
38174 * 5ztiitho.adb: Remove an unreferenced variable.
38175
381762003-11-21 Thomas Quinot <quinot@act-europe.fr>
38177
38178 * adaint.c: For FreeBSD, use mkstemp.
38179
381802003-11-21 Arnaud Charlet <charlet@act-europe.fr>
38181
38182 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38183
381842003-11-21 Robert Dewar <dewar@gnat.com>
38185
38186 * bld.adb: Remove useless USE of gnatvsn
38187
38188 * gnatchop.adb: Minor reformatting
38189 Clean up version handling to be more consistent
38190
38191 * gnatxref.adb: Minor reformatting
38192
38193 * gprcmd.adb: Minor reformatting
38194 Fix output of copyright to be more consistent with other tools
38195
381962003-11-21 Vincent Celier <celier@gnat.com>
38197
38198 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38199
382002003-11-21 Sergey Rybin <rybin@act-europe.fr>
38201
38202 * atree.adb (Initialize): Add initializations for global variables
38203 used in New_Copy_Tree.
38204
38205 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38206 Internal_Source_File as the actual).
38207 Put the set of statements creating Any_Character before the set of
38208 statements creating Any_Array to have Any_Character fully initialized
38209 when it is used in creating Any_Array.
38210
38211 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38212 not call Scan in case if the actual is Internal_Source_File
38213 Add 2003 to copyright note.
38214
38215 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38216 processing Internal_Source_File.
38217
38218 * types.ads: Add the constant Internal_Source_File representing the
38219 source buffer for artificial source-code-like strings created within
38220 the compiler (the definition of Source_File_Index is changed).
38221
c5b2a8ae
AC
382222003-11-20 Arnaud Charlet <charlet@act-europe.fr>
38223
38224 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38225 56system.ads: New file, FreeBSD version.
38226
a03ad584
JM
382272003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
38228
38229 * Make-lang.in (ada.extraclean): Delete.
38230
19f0526a
AC
382312003-11-19 Arnaud Charlet <charlet@act-europe.fr>
38232
38233 * gnatmem.adb: Clean up verbose output.
38234
38235 * gprcmd.adb: Change copyright to FSF.
38236
382372003-11-19 Vincent Celier <celier@gnat.com>
38238
38239 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38240 and Version (ignored).
38241
38242 * symbols.ads: (Policy): New type
38243 (Initialize): New parameter Reference, Symbol_Policy and
38244 Library_Version.
38245 Remove parameter Force.
38246 Minor reformatting.
38247
38248 * snames.ads, snames.adbadb: New standard names
38249 Library_Reference_Symbol_File and Library_Symbol_Policy
38250
fbf3e0dd 38251 * mlib-prj.adb:
19f0526a
AC
38252 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38253 project.
38254
fbf3e0dd 38255 * mlib-tgt.adb:
19f0526a
AC
38256 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38257
38258 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38259
38260 * prj.adb: (Project_Empty): New component Symbol_Data
38261
38262 * prj.ads: (Policy, Symbol_Record): New types
38263 (Project_Data): New component Symbol_Data
38264
fbf3e0dd 38265 * prj-attr.adb:
19f0526a
AC
38266 New attributes Library_Symbol_File, Library_Symbol_Policy and
38267 Library_Reference_Symbol_File.
38268
fbf3e0dd 38269 * prj-nmsc.adb:
19f0526a
AC
38270 (Ada_Check): When project is a Stand-Alone library project, process
38271 attribute Library_Symbol_File, Library_Symbol_Policy and
38272 Library_Reference_Symbol_File.
38273
38274 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38275 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38276 5sml-tgt.adb (Build_Dynamic_Library): New parameter
38277 Symbol_Data (ignored).
38278
38279 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38280 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38281 functions Option_File_Name and Version_String. Set new options of
38282 gnatsym related to symbol file, symbol policy and reference symbol
38283 file.
38284
fbf3e0dd 38285 * 5vsymbol.adb:
19f0526a
AC
38286 Extensive modifications to take into account the reference symbol file,
38287 the symbol policy, the library version and to put in the symbol file the
38288 minor and major IDs.
38289
38290 * bld.adb (Process_Declarative_Items): Put second argument of
38291 gprcmd to_absolute between single quotes, to avoid problems with
38292 Windows.
38293
38294 * bld-io.adb: Update Copyright notice.
38295 (Flush): Remove last character of a line, if it is a back slash, to
38296 avoid make problems.
38297
fbf3e0dd 38298 * gnatsym.adb:
19f0526a
AC
38299 Implement new scheme with reference symbol file and symbol policy.
38300
38301 * g-os_lib.ads: (Is_Directory): Clarify comment
38302
383032003-11-19 Robert Dewar <dewar@gnat.com>
38304
38305 * atree.adb: Move New_Copy_Tree global variables to head of package
38306
38307 * errout.adb: Minor reformatting
38308
383092003-11-19 Javier Miranda <miranda@gnat.com>
38310
38311 * sem_ch4.adb: (Diagnose_Call): Improve error message.
38312 Add reference to Ada0Y (AI-50217)
38313
38314 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38315 sem_util.adb: Add reference to AI-50217
38316
38317 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38318
38319 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38320
38321 * sem_aggr.adb: Complete documentation of AI-287 changes
38322
38323 * par-ch4.adb: Document previous changes.
38324
38325 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38326 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38327 Ada0Y (AI-50217)
38328
38329 * exp_aggr.adb: Add references to AI-287 in previous changes
38330
383312003-11-19 Ed Schonberg <schonberg@gnat.com>
38332
fbf3e0dd 38333 * exp_ch6.adb:
19f0526a
AC
38334 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38335 in the rewriting is the result of an inlined call.
38336
38337 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38338 parameter is a type conversion, use original node to construct the
38339 post-call assignment, because expression may have been rewritten, e.g.
38340 if it is a packed array.
38341
fbf3e0dd 38342 * sem_attr.adb:
19f0526a
AC
38343 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38344 body, just as it is in an instance.
38345 Categorization routines
38346
38347 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38348 Instantiate_Object): Set proper sloc reference for message on missing
38349 actual.
38350
383512003-11-19 Thomas Quinot <quinot@act-europe.fr>
38352
38353 * Makefile.in: Add FreeBSD libgnat pairs.
38354
38355 * usage.adb: Fix typo in usage message.
38356
383572003-11-19 Jerome Guitton <guitton@act-europe.fr>
38358
38359 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38360 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38361 pragma Thread_Body.
38362 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38363
38364 * s-thread.adb: This file is now a dummy implementation of
38365 System.Thread.
38366
383672003-11-19 Sergey Rybin <rybin@act-europe.fr>
38368
38369 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38370
383712003-11-19 Emmanuel Briot <briot@act-europe.fr>
38372
38373 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38374 instanciation references in the parent type description.
38375
0d77ab84
AC
383762003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38377
38378 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38379
38380 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38381 TYPE_PRECISION directly from esize.
38382
383832003-11-18 Thomas Quinot <quinot@act-europe.fr>
38384
fbf3e0dd 38385 * cstreams.c:
0d77ab84
AC
38386 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38387
38388 * init.c: Initialization routines for FreeBSD
38389
38390 * link.c: Link info for FreeBSD
38391
38392 * sysdep.c: Add the case of FreeBSD
38393
cb7a5092
AC
383942003-11-17 Jerome Guitton <guitton@act-europe.fr>
38395
38396 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38397 already called in System.Threads.
38398
38399 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38400 environment task, as it has been moved to System.Threads.Initialization.
38401
384022003-11-17 Arnaud Charlet <charlet@act-europe.fr>
38403
38404 * adaint.c (__gnatlib_install_locks): Only reference
38405 __gnat_install_locks on VMS, since other platforms can avoid using
38406 --enable-threads=gnat
38407
384082003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38409
38410 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38411
38412 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38413 TYPE_PACKED_ARRAY_TYPE_P.
38414 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38415
38416 Part of PR ada/12806
38417 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38418 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38419
384202003-11-17 Vincent Celier <celier@gnat.com>
38421
38422 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38423 to False.
38424 Do not set exit status to Failure when Warning is True.
38425 (Gnatchop): Make errors "no compilation units found" and
38426 "no source files written" warnings only.
38427
38428 * make.adb (Gnatmake): When using a project file, set
38429 Look_In_Primary_Dir to False.
38430 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38431 and Local_Configuration_Pragmas in the project where they are declared
38432 not an extending project which might have inherited them.
38433
38434 * osint.adb (Locate_File): If Name is already an absolute path, do not
38435 look for a directory.
38436
38437 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38438 -gnats (Check_Syntax) is used, issue only a warning, not an error.
38439
38440 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38441 in objects of type Variable_Value.
38442
38443 * prj.ads: (Variable_Value): New component Project
38444
38445 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38446 is in a project extended by Project.
38447
38448 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38449 Project of Variable_Values to this new parameter value.
38450 (Expression): Set component Project of Variable_Values.
38451 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38452 Set the component Project in array elements.
38453
384542003-11-17 Sergey Rybin <rybin@act-europe.fr>
38455
38456 * errout.adb: (Initialize): Add initialization for error nodes.
38457
38458 * sem_ch12.adb (Initialize): Add missing initializations for
38459 Exchanged_Views and Hidden_Entities.
38460
384612003-11-17 Ed Schonberg <schonberg@gnat.com>
38462
38463 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38464 already instantiated tree for use in subsequent inlining.
38465 (Analyze_Associations, Instantiate_Formal_Subprogram,
38466 Instantiate_Object): improve error message for mismatch in
38467 instantiations.
38468
38469 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38470 instantiations of subprograms declared in instances.
38471
384722003-11-17 Javier Miranda <miranda@gnat.com>
38473
38474 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38475 executed only under the Extensions_Allowed flag.
38476
384772003-11-17 Robert Dewar <dewar@gnat.com>
38478
38479 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38480 zeroes suppressed.
38481 (Address_Image): Fix bug of returning 0x instead of 0x0
38482 Minor reformatting (function specs).
38483
38484 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38485 (missed case of 33-63)
38486
38487 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38488
38489 * s-thread.adb: Add comments for pragma Restriction
38490
38491 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38492 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38493
384942003-11-17 Ed Falis <falis@gnat.com>
38495
38496 * s-thread.adb: Added No_Tasking restriction for this implementation.
38497
384982003-11-17 Emmanuel Briot <briot@act-europe.fr>
38499
38500 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38501 instanciation references in the parent type description.
38502
385032003-11-17 GNAT Script <nobody@gnat.com>
38504
38505 * Make-lang.in: Makefile automatically updated
38506
7d60db05
JM
385072003-11-16 Jason Merrill <jason@redhat.com>
38508
38509 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38510 and TAGS files that include them for each front end.
38511
c0040397
AJ
385122003-11-14 Andreas Jaeger <aj@suse.de>
38513
a477ab83 38514 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
fbf3e0dd 38515 is the canonical version.
a477ab83
AJ
38516 * misc.c (gnat_handle_option): Likewise.
38517
c0040397
AJ
38518 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38519
38520 * 5nsystem.ads: New file for x86_64-linux-gnu.
38521
95a6aaf9
AC
385222003-11-14 Arnaud Charlet <charlet@act-europe.fr>
38523
262cc585 38524 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
95a6aaf9 38525
4a4fe537
AC
38526 * comperr.adb: Fix logic in previous change.
38527
65356e64
AC
385282003-11-13 Vincent Celier <celier@gnat.com>
38529
38530 * 5bml-tgt.adb (Build_Dynamic_Library): Use
38531 Osint.Include_Dir_Default_Prefix instead of
38532 Sdefault.Include_Dir_Default_Name.
38533
38534 * gnatlbr.adb: Update Copyright notice
38535 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38536 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38537 instead of Sdefault.Object_Dir_Default_Name
38538
c0040397 38539 * gnatlink.adb:
65356e64
AC
38540 (Process_Binder_File): Never suppress the option following -Xlinker
38541
c0040397 38542 * mdll-utl.adb:
65356e64
AC
38543 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38544 Sdefault.Object_Dir_Default_Name.
38545
c0040397 38546 * osint.ads, osint.adb:
65356e64
AC
38547 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38548 Minor reformatting.
38549
38550 * vms_conv.ads: Minor reformating
38551 Remove GNAT STANDARD and GNAT PSTA
38552
c0040397 38553 * vms_conv.adb:
65356e64
AC
38554 Allow GNAT MAKE to have several files on the command line.
38555 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38556 Sdefault.Object_Dir_Default_Name.
38557 Minor Reformating
38558 Remove data for GNAT STANDARD
38559
c0040397 38560 * vms_data.ads:
65356e64
AC
38561 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38562 Remove data for GNAT STANDARD
38563 Remove options and documentation for -gnatwb/-gnatwB: these warning
38564 options no longer exist.
38565
385662003-11-13 Ed Falis <falis@gnat.com>
38567
38568 * 5zthrini.adb: (Init_RTS): Made visible
38569
c0040397 38570 * 5zthrini.adb:
65356e64
AC
38571 (Register): Removed unnecessary call to taskVarGet that checked whether
38572 an ATSD was already set as a task var for the argument thread.
38573
c0040397 38574 * s-thread.adb:
65356e64
AC
38575 Updated comment to reflect that this is a VxWorks version
38576 Added context clause for System.Threads.Initialization
38577 Added call to System.Threads.Initialization.Init_RTS
38578
385792003-11-13 Jerome Guitton <guitton@act-europe.fr>
38580
c0040397 38581 * 5zthrini.adb:
65356e64
AC
38582 (Init_RTS): New procedure, for the initialization of the run-time lib.
38583
c0040397 38584 * s-thread.adb:
65356e64
AC
38585 Remove dependancy on System.Init, so that this file can be used in the
38586 AE653 sequential run-time lib.
38587
385882003-11-13 Robert Dewar <dewar@gnat.com>
38589
38590 * bindgen.adb: Minor reformatting
38591
385922003-11-13 Ed Schonberg <schonberg@gnat.com>
38593
c0040397 38594 * checks.adb:
65356e64
AC
38595 (Apply_Discriminant_Check): Do no apply check if target type is derived
38596 from source type with no applicable constraint.
38597
c0040397 38598 * lib-writ.adb:
65356e64
AC
38599 (Ensure_System_Dependency): Do not apply the style checks that may have
38600 been specified for the main unit.
38601
c0040397 38602 * sem_ch8.adb:
65356e64
AC
38603 (Find_Selected_Component): Further improvement in error message, with
38604 RM reference.
38605
c0040397 38606 * sem_res.adb:
65356e64
AC
38607 (Resolve): Handle properly the case of an illegal overloaded protected
38608 procedure.
38609
386102003-11-13 Javier Miranda <miranda@gnat.com>
38611
c0040397 38612 * exp_aggr.adb:
65356e64
AC
38613 (Has_Default_Init_Comps): New function to check the presence of
38614 default initialization in an aggregate.
38615 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38616 extension aggregate of a limited record. In addition, a new formal
38617 was added to do not initialize the record controller (if any) during
38618 this recursive expansion of ancestors.
38619 (Init_Controller): Add support for limited record components.
38620 (Expand_Record_Aggregate): In case of default initialized components
38621 convert the aggregate into a set of assignments.
38622
38623 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38624 describing the new syntax.
38625 Nothing else needed to be done because this subprogram delegates part of
38626 its work to P_Precord_Or_Array_Component_Association.
38627 (P_Record_Or_Array_Component_Association): Give support to the new
38628 syntax for default initialization of components.
38629
c0040397 38630 * sem_aggr.adb:
65356e64
AC
38631 (Resolve_Aggregate): Relax the strictness of the frontend in case of
38632 limited aggregates.
38633 (Resolve_Record_Aggregate): Give support to default initialized
38634 components.
38635 (Get_Value): In case of default initialized components, duplicate
38636 the corresponding default expression (from the record type
38637 declaration). In case of default initialization in the *others*
38638 choice, do not check that all components have the same type.
38639 (Resolve_Extension_Aggregate): Give support to limited extension
38640 aggregates.
38641
c0040397 38642 * sem_ch3.adb:
65356e64
AC
38643 (Check_Initialization): Relax the strictness of the front-end in case
38644 of aggregate and extension aggregates. This test is now done in
38645 Get_Value in a per-component manner.
38646
38647 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38648 expression corresponds to a limited aggregate. This test is now done
38649 in Get_Value.
38650
38651 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38652 Box_Present flag.
38653
38654 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38655 present in an N_Component_Association node
38656
386572003-11-13 Thomas Quinot <quinot@act-europe.fr>
38658
38659 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38660 type-conformant entry only if they are homographs.
38661
386622003-11-13 GNAT Script <nobody@gnat.com>
38663
38664 * Make-lang.in: Makefile automatically updated
38665
49add53f
RO
386662003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38667
38668 * adadecode.c: Use <> form of include for ctype.h.
38669 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38670
94bae1cc
RO
386712003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38672
38673 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38674 Works around PR middle-end/6552.
38675
463f452c
AC
386762003-11-10 Ed Falis <falis@gnat.com>
38677
38678 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38679
38680 * 5zinit.adb: (Install_Handler): Moved back to spec
38681 (Install_Signal_Handlers): Deleted
38682
38683 * 5zthrini.adb: Added context clause for System.Storage_Elements
38684 (Register): Only handles creation of taskVar; initialization moved to
38685 Thread_Body_Enter.
38686 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38687 Added declaration of environment task secondary stack and
38688 initialization.
38689
38690 * s-thread.adb: Implement bodies for thread body processing
38691
c0040397 38692 * s-thread.ads:
463f452c
AC
38693 Added comment identifying supported targets for pragma Thread_Body.
38694
386952003-11-10 Pascal Obry <obry@gnat.com>
38696
38697 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38698 GNAT_MAX_PATH_LEN.
38699
c0040397 38700 * s-fileio.adb:
463f452c
AC
38701 (Open): Properly check for string length before copying into the buffer.
38702 Raises Name_Error if buffer is too small. Note that this was a potential
38703 buffer overflow.
38704
387052003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
38706
38707 * bindgen.adb, comperr.adb: Code clean ups.
38708 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38709
387102003-11-10 Sergey Rybin <rybin@act-europe.fr>
38711
38712 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38713
387142003-11-10 Vincent Celier <celier@gnat.com>
38715
c0040397 38716 * gprcmd.adb:
463f452c
AC
38717 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38718 installation.
38719
38720 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38721
38722 * prj.adb: (Project_Empty): Add new boolean component Virtual
38723
38724 * prj.ads: (Virtual_Prefix): New constant string
38725 (Project_Data): New boolean component Virtual
38726
38727 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38728 a library project is extended by a virtual extending project.
38729
c0040397 38730 * prj-part.adb:
463f452c
AC
38731 Modifications throughout to implement extending-all project, including:
38732 (Virtual_Hash, Processed_Hash): New hash tables
38733 (Create_Virtual_Extending_Project): New procedure
38734 (Look_For_Virtual_Projects_For): New procedure
38735
c0040397 38736 * prj-proc.adb:
463f452c
AC
38737 (Process): After checking the projects, if main project is an
38738 extending-all project, set the object directory of all virtual extending
38739 project to the object directory of the main project.
38740 Adjust error message when a virtual extending project has the same
38741 object directory as an project being extended.
38742 (Recursive_Process): If name starts with the virtual prefix, set Virtual
38743 to True in the project data.
38744
c0040397 38745 * prj-tree.adb:
463f452c
AC
38746 (Default_Project_Node): Add new boolean component Extending_All
38747 (Is_Extending_All): New function
38748 (Set_Is_Extending_All): New procedure
38749
38750 * prj-tree.ads: (Is_Extending_All): New function
38751 (Set_Is_Extending_All): New procedure
38752 (Project_Node_Record): New boolean component Extending_All
38753
38754 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38755
c0040397 38756 * vms_data.ads:
463f452c
AC
38757 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38758
38759 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38760 "gprcmd prefix" to define it.
38761
387622003-11-10 Thomas Quinot <quinot@act-europe.fr>
38763
38764 * einfo.ads: Fix a typo and remove an extraneous word in comments.
38765
c0040397 38766 * lib-load.adb:
463f452c
AC
38767 (Create_Dummy_Package_Unit): Set the scope of the entity for the
38768 created dummy package to Standard_Standard, not to itself, to
38769 defend other parts of the front-end against encoutering a cycle in
38770 the scope chain.
38771
c0040397 38772 * sem_ch10.adb:
463f452c
AC
38773 (Analyze_With_Clause): When setting the entities for the successive
38774 N_Expanded_Names that constitute the name of a child unit, do not
38775 attempt to go further than Standard_Standard in the chain of scopes.
38776 This case arises from the placeholder units created by
38777 Create_Dummy_Package_Unit in the case of a with_clause for a
38778 nonexistent child unit.
38779
387802003-11-10 Ed Schonberg <schonberg@gnat.com>
38781
c0040397 38782 * exp_ch6.adb:
463f452c
AC
38783 (Expand_Thread_Body): Place subprogram on scope stack, so that new
38784 declarations are given the proper scope.
38785
c0040397 38786 * sem_ch13.adb:
463f452c
AC
38787 (Check_Expr_Constants): Reject an expression that contains a constant
38788 created during expansion, and that appears after the object to which
38789 the address clause applies.
38790
38791 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38792 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38793 that uses 'Range of a function call with controlled components, so
38794 that the function result can be finalized before starting the loop.
38795
c0040397 38796 * sem_ch8.adb:
463f452c
AC
38797 (Find_Selected_Component): Improve error message when prefix is
38798 an implicit dereference of an incomplete type.
38799
388002003-11-10 Robert Dewar <dewar@gnat.com>
38801
38802 * opt.ads: New Print_Standard flag for -gnatS switch
38803
38804 * sem_ch13.adb: Remove some additional checks for unaligned arrays
38805
38806 * cstand.adb (Create_Standard): Print out package standard if -gnatS
38807 switch set
38808
38809 * debug.adb: Update doc for -gnatds to discuss relationship with new
38810 -gnatS flag
38811
38812 * sinfo.adb: Add new field Entity_Or_Associated_Node
38813
38814 * sinfo.ads: Add new field Entity_Or_Associated_Node
38815 Update documentation for Associated_Node and Entity fields to clarify
38816 relationship and usage.
38817
c0040397 38818 * sprint.adb:
463f452c
AC
38819 (Write_Id): Properly process Associated_Node field in generic template
38820
c0040397 38821 * switch-c.adb:
463f452c
AC
38822 Recognize new -gnatS switch for printing package Standard
38823 This replaces gnatpsta
38824
c0040397 38825 * usage.adb:
463f452c
AC
38826 Add line for new -gnatS switch for printing package Standard
38827 This replaces gnatpsta
38828
c77c5f2e
AJ
388292003-11-10 Andreas Jaeger <aj@suse.de>
38830
38831 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38832 integer.
38833
5c90f17f
AC
388342003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38835
38836 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38837 by gnat1.
38838
139f0d1e
AC
388392003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38840
38841 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38842 no longer needed.
38843
38844 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38845
38846 * sysdep.c: Add handling of cygwin.
38847
f3e4c05c
GS
388482003-11-10 GNAT Script <nobody@gnat.com>
38849
38850 * Make-lang.in: Makefile automatically updated
38851
2cdc8909
AC
388522003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38853
38854 PR 12950
38855 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38856 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38857 Replace GNAT_ROOT by GCC_ROOT.
38858
38859 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38860
37783865
ZW
388612003-11-06 Zack Weinberg <zack@codesourcery.com>
38862
38863 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38864 and update for changed meaning of GET_MODE_BITSIZE.
38865
6bc1c519
AC
388662003-11-04 Doug Rupp <rupp@gnat.com>
38867
38868 * sysdep.c: Problem discovered during IA64 VMS port.
38869 [VMS] #include <unixio.h> to get proper prototypes.
38870
37783865 38871 * adaint.c:
6bc1c519
AC
38872 Issues discovered/problems fixed during IA64 VMS port.
38873 [VMS] #define _POSIX_EXIT for proper semantics.
38874 [VMS] #include <unixio.h> for proper prototypes.
38875 [VMS] (fork): #define IA64 version.
38876 (__gnat_os_exit): Remove unnecessary VMS specific code.
38877
388782003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38879
38880 Part of PR ada/12806
6bc1c519
AC
38881 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38882 tree, not integer.
38883
37783865 38884 * decl.c:
6bc1c519
AC
38885 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38886 not integer.
38887
38888 * targtyps.c, decl.c, misc.c,
38889 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38890 routines to work around change in FP sizing semantics in GCC.
38891
37783865 38892 * utils.c:
6bc1c519
AC
38893 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38894
38895 * gigi.h: (enumerate_modes): New function.
38896
38897 * Make-lang.in: (ada/misc.o): Add real.h.
38898
38899 * misc.c: (enumerate_modes): New function.
38900
389012003-11-04 Robert Dewar <dewar@gnat.com>
38902
38903 * 3vtrasym.adb: Minor reformatting
38904 Use terminology encoded/decoded name, rather than C++ specific notion
38905 of mangling (this is the terminology used throughout GNAT).
38906
38907 * einfo.h: Regenerated
38908
38909 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38910
37783865 38911 * exp_ch6.adb:
6bc1c519
AC
38912 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38913
38914 * par-prag.adb: Add dummy entry for Thread_Body pragma
38915
37783865 38916 * rtsfind.ads:
6bc1c519
AC
38917 Add entries for System.Threads entities for thread body processing
38918
37783865 38919 * sem_attr.adb:
6bc1c519
AC
38920 (Analyze_Pragma, Access attributes): Check these are not applied to a
38921 thread body, since this is not permitted
38922
38923 * sem_prag.adb: Add processing for Thread_Body pragma.
38924 Minor comment fix.
38925
37783865 38926 * sem_res.adb:
6bc1c519
AC
38927 (Resolve_Call): Check for incorrect attempt to call a thread body
38928 procedure with a direct call.
38929
38930 * snames.ads, snames.adb: Add entry for Thread_Body pragma
38931 Add names associated with thread body expansion
38932
38933 * snames.h: Add entry for Thread_Body pragma
38934
38935 * s-thread.adb: Add entries for thread body processing
38936 These are dummy bodies so far
38937
38938 * s-thread.ads: Add documentation on thread body handling.
38939 Add entries for thread body processing.
38940
389412003-11-04 Javier Miranda <miranda@gnat.com>
38942
37783865 38943 * sem_ch10.adb:
6bc1c519
AC
38944 (Build_Limited_Views): Return after posting an error in case of limited
38945 with_clause on subprograms, generics, instances or generic renamings
38946 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38947 on subprograms, generics, instances or generic renamings
38948
389492003-11-04 Arnaud Charlet <charlet@act-europe.fr>
38950
38951 * raise.c (setup_to_install): Correct mistake in last revision; two
38952 arguments out of order.
38953
38954 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38955 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38956 notice, missed in previous change.
38957 Remove trailing blanks and other style errors introduced in previous
38958 change.
38959
389602003-11-04 Olivier Hainque <hainque@act-europe.fr>
38961
38962 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38963 rid of the wrapper for a LJM type, ensuring we don't do that if the
38964 field is addressable. This avoids potential low level type view
38965 mismatches later on, for instance in a by-reference argument passing
38966 process.
38967
389682003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38969
38970 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38971 aligned at byte boundary.
38972
389732003-11-04 Joel Brobecker <brobecker@gnat.com>
38974
38975 * decl.c (components_to_record): Do not delete the empty variants from
38976 the end of the union type.
38977
389782003-11-04 Ed Schonberg <schonberg@gnat.com>
38979
38980 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38981 operation for a derived type, an explicit declaration may use a local
38982 subtype of Boolean.
38983
389842003-11-04 Vincent Celier <celier@gnat.com>
38985
38986 * make.adb (Gnatmake): Allow main sources on the command line with a
38987 library project when it is only for compilation (no binding or
38988 linking).
38989
487e9fff
RO
389902003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38991
38992 * Makefile.in: Remove many duplicate variables.
38993
63069342
KC
389942003-11-03 Kelley Cook <kcook@gcc.gnu.org>
38995
38996 * Make-lang.in (dvi): Move targets to $(docobjdir).
38997 (gnat_ug_vms.dvi): Simplify rule and adjust target.
38998 (gnat_ug_wnt.dvi): Likewise.
38999 (gnat_ug_unx.dvi): Likewise.
39000 (gnat_ug_vxw.dvi): Likewise.
39001 (gnat_rm.dvi): Likewise.
39002 (gnat-style.dvi): Likewise.
39003
c2edc52b
KC
390042003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39005
39006 * gigi.h: Missed commit from update for C90.
39007
14df9585
KC
390082003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39009
39010 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
39011
acd8e984
AS
390122003-10-31 Andreas Schwab <schwab@suse.de>
39013
39014 * raise.c (get_action_description_for): Fix typo in last change.
39015
b2c62c45
NN
390162003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
39017
39018 PR ada/12761
39019 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
39020 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
39021
9373164a
KC
390222003-10-30 Kelley Cook <kcook@gcc.gnu.org>
39023
39024 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
39025 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
39026 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
39027 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
39028 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
39029
bde58e32
AC
390302003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
39031
37783865 39032 * 3vtrasym.adb:
bde58e32
AC
39033 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
39034 numbers when symbol name is too long.
39035
390362003-10-30 Ed Falis <falis@gnat.com>
39037
39038 * g-signal.ads, g-signal.adb: New files
39039
39040 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
39041
39042 * Makefile.rtl: Introduce GNAT.Signals
39043
390442003-10-30 Robert Dewar <dewar@gnat.com>
39045
39046 * freeze.adb: Minor reformatting
39047
39048 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
39049
37783865
ZW
39050 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
39051 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
bde58e32
AC
39052 New handling of Id_Check parameter to improve recognition of keywords
39053 used as identifiers.
39054 Update copyright notice to include 2003
39055
657a9dd9
AC
390562003-10-29 Robert Dewar <dewar@gnat.com>
39057
39058 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
39059 sem_ch10.adb: Minor reformatting
39060
39061 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
39062 (Expand_Assign_Record): Test right hand side for bit unaligned as well
39063
390642003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
39065
37783865 39066 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
657a9dd9
AC
39067 Support for TBK$SYMBOLIZE-based symbolic traceback.
39068
390692003-10-29 Jose Ruiz <ruiz@act-europe.fr>
39070
37783865 39071 * exp_disp.adb:
657a9dd9
AC
39072 Revert previous change, that did not work well when pragma No_Run_Time
39073 was used in conjunction with a run-time other than ZFP.
39074
390752003-10-29 Vincent Celier <celier@gnat.com>
39076
37783865 39077 * make.adb:
657a9dd9
AC
39078 (Gnatmake): When there are no Ada mains in attribute Main, disable the
39079 bind and link steps only is switch -z is not used.
39080
390812003-10-29 Arnaud Charlet <charlet@act-europe.fr>
39082
39083 * Makefile.generic: Remove duplicated setting of CC.
39084
39085 * Makefile.prolog: Set CC to gcc by default, to override make's
39086 default (cc).
39087
39088 * einfo.h: Regenerated.
39089
390902003-10-29 Ed Schonberg <schonberg@gnat.com>
39091
39092 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39093 current body, after compiling subunit.
39094
39095 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39096 when in deleted code, because gigi needs properly ordered freeze
39097 actions to annotate types.
39098
39099 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39100 prevent the premature freezing of record type that contains
39101 subcomponents with a private type that does not yet have a completion.
39102
391032003-10-29 Javier Miranda <miranda@gnat.com>
39104
37783865 39105 * sem_ch12.adb:
657a9dd9
AC
39106 (Analyze_Package_Instantiation): Check that instances can not be used in
39107 limited with_clauses.
39108
37783865 39109 * sem_ch8.adb:
657a9dd9
AC
39110 (Analyze_Package_Renaming): Check that limited withed packages cannot
39111 be renamed. Improve text on error messages related to limited
39112 with_clauses.
39113
39114 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39115
39116 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39117 Update copyright notice.
39118
39119 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39120 (Install_Limited_Context_Clauses): New subprogram that isolates all the
39121 checks required for limited context_clauses and installs the limited
39122 view.
39123 (Install_Limited_Withed_Unit): Complete its documentation.
39124 (Analyze_Context): Check that limited with_clauses are only allowed in
39125 package specs.
39126 (Install_Context): Call Install_Limited_Context_Clauses after the
39127 parents have been installed.
39128 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39129 package as 'From_With_Type'; this mark indicates that the limited view
39130 is installed. Used to check bad usages of limited with_clauses.
39131 (Build_Limited_Views): Do not add shadow entities to the scope's list
39132 of entities. Do not add real entities to the Non_Limited_Views chain.
39133 Improve error notification.
39134 (Remove_Context_Clauses): Remove context clauses in two phases:
39135 limited views first and regular views later (to maintain the
39136 stack model).
39137 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39138 its visible entities.
39139
391402003-10-29 Thomas Quinot <quinot@act-europe.fr>
39141
39142 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39143 with any type that Is_Fixed_Point_Type.
39144
39145 * sinfo.ads: Fix documentation for Associated_Node attribute.
39146
391472003-10-29 Sergey Rybin <rybin@act-europe.fr>
39148
39149 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39150 both '-gnatc' and '-gnatt' are specified.
39151
39152 * atree.adb (Initialize): Add initialization for Node_Count (set to
39153 zero).
39154
391552003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39156
39157 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39158 do not consider as Pure.
39159
39160 Part of implementation of function-at-a-time:
39161
39162 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39163 (tree_transform): Add new argument to build_component_ref.
39164 (tree_transform, case N_Assignment_Statement): Make and return an
39165 EXPR_STMT.
39166 (tree_transform): If result IS_STMT, set flags and return it.
39167 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39168
39169 * utils2.c (build_simple_component_ref, build_component_ref): Add new
39170 arg, NO_FOLD_P.
39171 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39172 (build_allocator): Likewise.
39173
39174 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39175 Add new arg to build_component_ref.
39176 (maybe_unconstrained_array, unchecked_convert): Likewise.
39177
39178 * ada-tree.def (EXPR_STMT): New code.
39179
39180 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39181
39182 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39183 build_component_ref calls.
39184
39185 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39186
39187 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39188 (build_component_ref): Add new argument, NO_FOLD_P.
39189
ecad994d
AC
391902003-10-27 Arnaud Charlet <charlet@act-europe.fr>
39191
39192 * Makefile.generic: Add missing substitution on object_deps handling.
39193
6f7f72f9 39194 PR ada/5909
ecad994d
AC
39195 * Make-lang.in (check-ada): Enable ACATS test suite.
39196
391972003-10-27 Robert Dewar <dewar@gnat.com>
39198
37783865 39199 * exp_ch3.adb:
ecad994d
AC
39200 (Freeze_Array_Type): We do not need an initialization routine for types
39201 derived from String or Wide_String. They should be treated the same
39202 as String and Wide_String themselves. This caused problems with the
39203 use of Initialize_Scalars.
39204
37783865 39205 * exp_ch5.adb:
ecad994d
AC
39206 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39207 composites. This allows use of component clauses that are not byte
39208 aligned.
39209
37783865 39210 * sem_prag.adb:
ecad994d
AC
39211 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39212 is an attempt to pack an array of atomic objects.
39213
39214 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39215
392162003-10-27 Pascal Obry <obry@gnat.com>
39217
37783865 39218 * g-dirope.adb:
ecad994d
AC
39219 (Basename): Check for drive letters in a pathname only on DOS based OS.
39220
392212003-10-27 Vincent Celier <celier@gnat.com>
39222
37783865 39223 * make.adb:
ecad994d
AC
39224 (Gnatmake): When unable to change dir to the object dir, display the
39225 content of the parent dir of the obj dir, to try to understand why this
39226 happens.
39227
392282003-10-27 GNAT Script <nobody@gnat.com>
39229
39230 * Make-lang.in: Makefile automatically updated
39231
392322003-10-27 Ed Schonberg <schonberg@gnat.com>
39233
37783865 39234 * sem_ch12.adb:
ecad994d
AC
39235 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39236 should not be done in Save/Restore_Scope_Stack, because it is performed
39237 locally.
39238
37783865 39239 * sem_ch8.adb:
ecad994d
AC
39240 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39241 whether use clauses should be removed/restored.
39242
37783865 39243 * sem_ch8.ads:
ecad994d
AC
39244 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39245 whether use clauses should be removed/restored.
39246
b6b3c138
AJ
392472003-10-26 Andreas Jaeger <aj@suse.de>
39248
39249 * Makefile.in: Remove duplicated lines.
39250
b6d83931
AC
392512003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39252
39253 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39254 minimize the differences with ACT tree.
39255
39256 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39257 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39258 Gnatvsn.Gnat_Static_Version_String to reduce differences between
39259 ACT and FSF trees.
39260
392612003-10-24 Pascal Obry <obry@gnat.com>
39262
6f7f72f9 39263 PR ada/12014
b6d83931
AC
39264 * adadecode.c (ostrcpy): New function.
39265 (__gnat_decode): Use ostrcpy of strcpy.
39266 (has_prefix): Set first parameter a const.
39267 (has_suffix): Set first parameter a const.
39268 Update copyright notice. Fix source name in header.
39269 Removes a trailing space.
b6d83931
AC
39270
392712003-10-24 Jose Ruiz <ruiz@act-europe.fr>
39272
b6b3c138 39273 * exp_disp.adb:
b6d83931
AC
39274 Remove the test against being in No_Run_Time_Mode before generating a
39275 call to Register_Tag. It is redundant with the test against the
39276 availability of the function Register_Tag.
39277
392782003-10-24 Vincent Celier <celier@gnat.com>
39279
39280 * g-catiio.adb: (Month_Name): Correct spelling of February
39281
39282 * make.adb: (Mains): New package
39283 (Initialize): Call Mains.Delete
39284 (Gnatmake): Check that each main on the command line is a source of a
39285 project file and, if there are several mains, each of them is a source
39286 of the same project file.
39287 (Gnatmake): When a foreign language is specified in attribute Languages,
39288 no main is specified on the command line and attribute Mains is not
39289 empty, only build the Ada main. If there is no Ada main, just compile
39290 the Ada sources and their closure.
39291 (Gnatmake): If a main is specified on the command line with directory
39292 information, check that the source exists and, if it does, that the path
39293 is the actual path of a source of a project.
39294
b6b3c138 39295 * prj-env.adb:
b6d83931
AC
39296 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39297 Full_Path is True, return the full path instead of the simple file name.
39298 (Project_Of): New function
39299
b6b3c138 39300 * prj-env.ads:
b6d83931
AC
39301 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39302 defaulted to False.
39303 (Project_Of): New function
39304
393052003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39306
b6b3c138 39307 * Makefile.generic:
b6d83931
AC
39308 Ensure objects of main project are always checked and rebuilt if needed.
39309 Set CC to gcc by default.
39310 Prepare new handling of link by creating a global archive (not activated
39311 yet).
39312
39313 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39314 stringt.h: Update copyright notice. Remove trailing blanks.
39315 Fix source name in header.
39316
393172003-10-24 Robert Dewar <dewar@gnat.com>
39318
39319 * sem_ch12.adb: Minor reformatting
39320
b6b3c138 39321 * sem_ch3.adb:
b6d83931
AC
39322 Minor reformatting (including new function return style throughout)
39323
b6b3c138 39324 * sem_ch3.ads:
b6d83931
AC
39325 Minor reformatting (including new function return style throughout)
39326
393272003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39328
39329 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39330 stringt.h: Update copyright notice. Remove trailing blanks.
39331 Fix source name in header.
39332
393332003-10-24 GNAT Script <nobody@gnat.com>
39334
39335 * Make-lang.in: Makefile automatically updated
39336
b4e2d709
NN
393372003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
39338
39339 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39340 stringt.h: Convert to ISO C90 declarations and definitions.
39341
9d7d51be
AC
393422003-10-23 Thomas Quinot <quinot@act-europe.fr>
39343
6f7f72f9 39344 PR ada/11978
9d7d51be
AC
39345 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39346 External_Tag attribute definition clauses.
39347
393482003-10-23 Ed Schonberg <schonberg@gnat.com>
39349
6f7f72f9 39350 PR ada/7613
9d7d51be
AC
39351 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39352 child unit, generate a fully qualified name to avoid spurious errors
39353 when the context contains renamings of different child units with
39354 the same simple name.
39355
39356 * exp_dbug.ads: Add documentation on name qualification for renamings
39357 of child units.
39358
393592003-10-23 Robert Dewar <dewar@gnat.com>
39360
39361 * g-regpat.ads, g-regpat.adb: Minor reformatting
39362
393632003-10-23 Jose Ruiz <ruiz@act-europe.fr>
39364
39365 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39366
393672003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39368
39369 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39370 Machine call.
39371
39372 * urealp.h: (Machine): Update to proper definition.
39373
6d244bbe
AC
393742003-10-23 Arnaud Charlet <charlet@act-europe.fr>
39375
39376 * init.c, adaint.c: Minor reformatting.
39377
8f4eb34b
DS
393782003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
39379
6d244bbe 39380 * adaint.c (w32_epoch_offset): Define static const at file level.
8f4eb34b
DS
39381 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39382 rather than t_create, t_access in call to GetFileTime. Use union
39383 to convert between FILETIME and unsigned long long.
39384 (__gnat_file_time_name): Test for invalid file handle.
39385 (__gnat_set_filetime_name): Support win32 targets using
39386 w32api SetFileTime.
39387
25412599
DS
393882003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
39389
39390 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39391
39392 * ctrl_c.c (__gnat_int_handler): Remove declaration.
39393
39394 * decl.c (creat_concat_name): Const-ify prefix.
39395
39396 * adaint.c: Include ctype.h if __MINGW32__.
39397 (__gnat_readlink): Mark arguments as possibly unused.
39398 (__gnat_symlink): Likewise.
39399 (__gnat_is_symbolic_link): Likewise.
39400 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
39401 declaration
b6b3c138 39402 (__gnat_file_time_name): Don't declare struct stat statbuf when
25412599
DS
39403 not needed.
39404 (__gnat_is_absolute_path): Add parenthesis around condition of
39405 'if' statement to avoid warning.
39406 (__gnat_plist_init): Specify void as parameter.
39407 (plist_enter): Likewise.
39408 (plist_leave): Likewise.
39409 (remove_handle): Make static. Initialize prev.
39410
698a5e79
AC
394112003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39412
6f7f72f9
EB
39413 PR ada/10110
39414 * Makefile.in: Disable build of gnatpsta.
698a5e79
AC
39415 * cstreams.c (__gnat_full_name): Minor improvements and clean up
39416 of previous change.
39417
e97c30aa
RO
394182003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39419
39420 * tracebak.c (MAX): Avoid redefinition warning.
39421
39422 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39423 Change msg to const char *.
39424 (__gnat_install_handler): Remove ss, unused.
39425 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39426 to const char *.
39427 * cstreams.c (__gnat_full_name): Declare p only when used.
39428 (__gnat_full_name) [sgi] Return buffer.
39429
65f1ebd1
AC
394302003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39431
39432 * mingw32.h: New file.
0c644933
AC
39433 * gnat_wrapper.adb: New file.
39434
6d244bbe 394352003-10-22 Jerome Roussel <roussel@act-europe.fr>
0c644933
AC
39436
39437 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39438 string match a pre compiled regular expression (the corresponding
39439 version of the function working on a raw regular expression)
39440 Fix typos in various comments
39441 Update copyright notice in spec
39442
6d244bbe 394432003-10-21 Gary Dismukes <dismukes@gnat.com>
0c644933 39444
b6b3c138 39445 * exp_ch3.adb:
0c644933
AC
39446 (Component_Needs_Simple_Initialization): Return False when the type is a
39447 packed bit array. Revise spec comments to document this case.
39448
b6b3c138 39449 * exp_prag.adb:
0c644933
AC
39450 (Expand_Pragma_Import): Set any expression on the imported object to
39451 empty to avoid initializing imported objects (in particular this
39452 covers the case of zero-initialization of bit arrays).
39453 Update copyright notice.
39454
6d244bbe 394552003-10-21 Ed Schonberg <schonberg@gnat.com>
0c644933 39456
b6b3c138 39457 * sem_ch12.adb:
0c644933
AC
39458 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39459 a subunit is missing.
39460 (Instantiate_Subprogram_Body): If body of function is missing, set type
39461 of return expression explicitly in dummy body, to prevent cascaded
39462 errors when a subunit is missing.
39463 Fixes PR 5677.
39464
b6b3c138 39465 * sem_ch3.adb:
0c644933
AC
39466 (Access_Subprogram_Declaration): Verify that return type is valid.
39467 Fixes PR 8693.
39468
b6b3c138 39469 * sem_elab.adb:
0c644933
AC
39470 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39471 generic.
39472 Fixes PR 12318.
39473
b6b3c138 39474 * sem_util.adb:
0c644933
AC
39475 (Corresponding_Discriminant): If the scope of the discriminant is a
39476 private type without discriminant, use its full view.
39477 Fixes PR 8247.
65f1ebd1 39478
fbf5a39b
AC
394792003-10-21 Arnaud Charlet <charlet@act-europe.fr>
39480
39481 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39482 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39483 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39484 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39485 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39486 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39487 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39488 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39489 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39490 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39491 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39492 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39493 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39494 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39495 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39496 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39497 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39498 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39499 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39500 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39501 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39502 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39503 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39504 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39505 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39506 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39507 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39508 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39509 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39510 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39511 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39512 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39513 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39514 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39515 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39516 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39517 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39518 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39519 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39520 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39521 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39522 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39523 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39524 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39525 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39526 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39527 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39528 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39529 vms_conv.ads, vms_conv.adb, vms_data.ads,
39530 vxaddr2line.adb: Files added. Merge with ACT tree.
39531
39532 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39533 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39534 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39535 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39536 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39537 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39538 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39539 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39540 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39541 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39542
39543 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39544 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39545 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39546 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39547 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39548 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39549 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39550 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39551 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39552 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39553 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39554 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39555 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39556 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39557 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39558 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39559 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39560 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39561 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39562 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39563 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39564 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39565 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39566 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39567 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39568 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39569 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39570 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39571 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39572 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39573 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39574 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39575 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39576 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39577 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39578 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39579 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39580 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39581 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39582 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39583 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39584 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39585 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39586 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39587 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39588 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39589 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39590 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39591 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39592 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39593 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39594 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39595 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39596 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39597 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39598 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39599 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39600 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39601 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39602 checks.adb, checks.ads, cio.c, comperr.adb,
39603 comperr.ads, csets.adb, cstand.adb, cstreams.c,
39604 debug_a.adb, debug_a.ads, debug.adb, decl.c,
39605 einfo.adb, einfo.ads, errout.adb, errout.ads,
39606 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39607 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39608 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39609 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39610 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39611 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39612 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39613 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39614 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39615 fe.h, fmap.adb, fmap.ads, fname.adb,
39616 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39617 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39618 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39619 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39620 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39621 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39622 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39623 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39624 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39625 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39626 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39627 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39628 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39629 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39630 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39631 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39632 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39633 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39634 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39635 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39636 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39637 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39638 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39639 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39640 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39641 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39642 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39643 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39644 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39645 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39646 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39647 layout.adb, lib.adb, lib.ads, lib-list.adb,
39648 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39649 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39650 link.c, live.adb, make.adb, make.ads,
39651 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39652 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39653 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39654 misc.c, mkdir.c, mlib.adb, mlib.ads,
39655 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39656 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39657 namet.adb, namet.ads, namet.h, nlists.ads,
39658 nlists.h, nmake.adt, opt.adb, opt.ads,
39659 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39660 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39661 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39662 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39663 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39664 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39665 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39666 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39667 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39668 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39669 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39670 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39671 prj-util.adb, prj-util.ads, raise.c, raise.h,
39672 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39673 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39674 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39675 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39676 scans.ads, scn.adb, scn.ads, s-crc32.adb,
39677 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39678 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39679 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39680 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39681 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39682 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39683 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39684 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39685 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39686 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39687 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39688 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39689 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39690 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39691 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39692 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39693 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39694 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39695 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39696 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39697 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39698 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39699 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39700 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39701 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39702 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39703 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39704 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39705 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39706 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39707 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39708 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39709 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39710 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39711 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39712 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39713 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39714 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39715 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39716 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39717 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39718 stringt.adb, stringt.ads, stringt.h, style.ads,
39719 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39720 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39721 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39722 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39723 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39724 table.adb, table.ads, targparm.adb, targparm.ads,
39725 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39726 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39727 ttypes.ads, types.ads, types.h, uintp.adb,
39728 uintp.ads, uintp.h, uname.adb, urealp.adb,
39729 urealp.ads, urealp.h, usage.adb, utils2.c,
39730 utils.c, validsw.adb, validsw.ads, widechar.adb,
39731 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39732 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39733 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39734 gnatvsn.ads: Merge with ACT tree.
39735
39736 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39737
97ae108d
MM
397382003-10-20 Mark Mitchell <mark@codesourcery.com>
39739
de696511
MM
39740 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39741 (gnat_ug_vmx.info): Likewise.
39742 (gnat_ug_vxw.info): Likewise.
39743 (gnat_ug_wnt.info): Likewise.
39744 (gnat_rm.info): Likewise.
39745 (gnat-style.info): Likewise.
39746
97ae108d
MM
39747 * Make-lang.in (ada.install-info): Remove target.
39748 (info): New target.
39749 (install-info): Likewise.
39750 (gnat_ug_unx.info): Simplify rule.
39751 (gnat_ug_vmx.info): Likewise.
39752 (gnat_ug_vxw.info): Likewise.
39753 (gnat_ug_wnt.info): Likewise.
39754 (gnat_rm.info): Likewise.
39755 (gnat-style.info): Likewise.
39756
43aba518
NN
397572003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
39758
39759 * Make-lang.in: Replace uses of $(target_alias) with
39760 $(target_noncanonical).
39761 * ada/Makefile.in: Remove unused mention of $(target_alias).
39762
62b81e45
MM
397632003-10-06 Mark Mitchell <mark@codesourcery.com>
39764
39765 * Make-lang.in (ada.info): Replace with ...
39766 (info): ... this.
39767 (ada.dvi): Replace with ...
39768 (dvi): ... this.
39769
783be936
ZW
397702003-09-29 Zack Weinberg <zack@codesourcery.com>
39771
39772 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39773 initialize dconstp5 and dconstmp5.
39774
177560b2
RH
397752003-09-28 Richard Henderson <rth@redhat.com>
39776
39777 * trans.c (tree_transform): Update call to expand_asm_operands.
39778
f31686a3
RH
397792003-09-21 Richard Henderson <rth@redhat.com>
39780
39781 * trans.c, utils.c: Revert.
39782
7e2af53a
RH
397832003-09-21 Richard Henderson <rth@redhat.com>
39784
39785 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39786 change to const.
39787
5f1e32fa
MM
397882003-09-04 Michael Matz <matz@suse.de>
39789
39790 * misc.c: Include "target.h".
39791 * Make-lang.in (misc.o): Add dependency on target.h.
39792
61f71b34
DD
397932003-09-03 DJ Delorie <dj@redhat.com>
39794
39795 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39796 hook.
39797
2ed26f6b
ZW
397982003-08-30 Zack Weinberg <zack@codesourcery.com>
39799
39800 * Makefile.in: Update substitutions to match changes to
39801 configure. Use include directives instead of @-insertions
39802 to read in host and target fragments. Add a rule to
39803 regenerate ada/Makefile.
39804
b2e608ca
NB
398052003-07-18 Neil Booth <neil@daikokuya.co.uk>
39806
39807 * lang-options.h: Remove.
39808 * lang.opt: Add help text.
39809
0cea056b
NS
398102003-07-07 Nathan Sidwell <nathan@codesourcery.com>
39811
39812 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39813 calls.
39814
cb66e385
NB
398152003-07-06 Neil Booth <neil@daikokuya.co.uk>
39816
39817 * misc.c (gnat_handle_option): Don't handle filenames.
39818
9e94c78f 398192003-07-04 H.J. Lu <hongjiu.lu@intel.com>
8c90b13a
L
39820
39821 * Make-lang.in: Replace PWD with PWD_COMMAND.
39822 * Makefile.adalib: Likewise.
39823 * Makefile.in: Likewise.
39824
9c286213
MK
398252003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
39826
39827 * misc.c (gnat_argv): Revert last change.
39828 (gnat_handle_option, gnat_init_options): Copy arguments.
39829
b9add449
NB
398302003-07-03 Neil Booth <neil@daikokuya.co.uk>
39831
9c286213 39832 * misc.c (gnat_argv): Make const.
b9add449 39833
836d77a9
NB
398342003-07-02 Neil Booth <neil@daikokuya.co.uk>
39835
39836 * misc.c (save_argc, save_argv): Keep non-static!
39837
b86f6cd9
NB
398382003-07-02 Neil Booth <neil@daikokuya.co.uk>
39839
39840 * misc.c (save_argc, save_argv): Make static.
39841 (gnat_init_options): New prototype.
39842 (gnat_init_options): Update.
39843
6344b1f1
MK
398442003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
39845
39846 * gnat_ug.texi: Remove unlikely characters from @vars.
39847 * gnat_ug_vms.texi: Regenerate.
39848
2e040219
NS
398492003-06-27 Nathan Sidwell <nathan@codesourcery.com>
39850
39851 * misc.c (record_code_position): Adjust emit_note call.
39852
9eee5e72
NB
398532003-06-26 Neil Booth <neil@daikokuya.co.uk>
39854
39855 * misc.c (gnat_handle_option): Don't check for missing arguments.
39856
1f9cc6db
NS
398572003-06-20 Nathan Sidwell <nathan@codesourcery.com>
39858
39859 * utils.c (end_subprog_body): Adjust expand_function_end call.
39860
23d6baa3
MK
398612003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
39862
39863 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39864 Bind_Main_Program.
39865
be43ab4e
NB
398662003-06-15 Neil Booth <neil@daikokuya.co.uk>
39867
39868 * lang.opt: Declare Ada.
39869 * misc.c (gnat_init_options): Update.
39870
ee6b0296
NS
398712003-06-14 Nathan Sidwell <nathan@codesourcery.com>
39872
39873 * utils.c (begin_subprog_body): Adjust init_function_start call.
39874
d7b42618
NB
398752003-06-14 Neil Booth <neil@daikokuya.co.uk>
39876
39877 * Make-lang.in: Update to use options.c and options.h.
39878 * misc.c: Include options.h not aoptions.h.
39879 (gnat_handle_option): Abort on unrecognized switch.
39880 (gnat_init_options): Request Ada switches.
39881
57eb6503
NB
398822003-06-14 Neil Booth <neil@daikokuya.co.uk>
39883
39884 * lang.opt: Add -Wall.
39885 * misc.c (gnat_handle_option): Handle it.
39886
70fd6569
NB
398872003-06-12 Neil Booth <neil@daikokuya.co.uk>
39888
39889 * misc.c (gnat_handle_option): Fix warnings.
39890
8cdea5a1
MK
398912003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
39892
39893 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39894
3c900cb5
NB
398952003-06-11 Neil Booth <neil@daikokuya.co.uk>
39896
39897 * Make-lang.in: Update to handle command-line options.
39898 * lang.opt: New file.
39899 * misc.c: Include aoptions.h.
39900 (cl_options_count, cl_options): Remove.
39901 (gnat_handle_option): New.
39902 (gnat_decode_option): Remove.
39903 (LANG_HOOKS_DECODE_OPTION): Remove.
39904 (LANG_HOOKS_HANDLE_OPTION): Override.
39905
e8face4c
NN
399062003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
39907
39908 * init.c, misc.c, trans.c, utils.c: Remove dead code.
39909
4665e56c
NN
399102003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
39911
39912 * Makefile.in: Replace "host_canonical" with "host" for autoconf
39913 substitution.
39914
a165c302
NB
399152003-06-08 Neil Booth <neil@daikokuya.co.uk>
39916
39917 * Make-lang.in: Update.
39918 * misc.c: Include opts.h. Define cl_options_count and cl_options.
39919
2772ef3e
NB
399202003-06-07 Neil Booth <neil@daikokuya.co.uk>
39921
39922 * misc.c (gnat_init_options): Update.
39923
d8277a55
MK
399242003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39925
39926 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39927 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39928 __attribute__ ((__unused__)).
39929
602a82f3 399302003-06-05 Jan Hubicka <jh@suse.cz>
8f231b5d
JH
39931
39932 * Make-lang.in: Add support for stageprofile and stagefeedback
39933
3aa07c6d
MK
399342003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39935
39936 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39937 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39938
f1093866
MK
399392003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
39940
39941 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39942 Remove non-VMS directive.
39943 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39944 alternatives.
39945 (Examples of gnatls Usage): Remove VMS alternative.
dee2df72
OH
39946
399472003-06-04 Olivier Hainque <hainque@act-europe.fr>
39948
6f7f72f9 39949 PR ada/9953
2ed26f6b
ZW
39950 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39951 and turn ZCX_By_Default back to False since the underlying support
39952 is not quite there yet.
dee2df72 39953
80eaf415
AJ
399542003-06-01 Andreas Jaeger <aj@suse.de>
39955
39956 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39957 and ROUND_TYPE_SIZE_UNIT.
39958
9e94c78f 399592003-05-22 Geert Bosch <bosch@gnat.com>
36f9020c
GB
39960
39961 * gnat_rm.texi : Remove reference to Ada Core Technologies.
39962
e7b5f0c9
NS
399632003-05-03 Nathan Sidwell <nathan@codesourcery.com>
39964
39965 * trans.c (tree_transform): Use location_t and input_location
39966 directly.
39967 (build_unit_elab): Likewise.
39968 * utils.c (create_label_decl): Likewise.
39969
d479d37f
NS
399702003-05-01 Nathan Sidwell <nathan@codesourcery.com>
39971
561712fe
NS
39972 * trans.c (tree_transform, build_unit_elab,
39973 set_lineno): Rename lineno to input_line.
d479d37f
NS
39974 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39975 end_subprog_body): Likewise.
39976 * utils2.c (build_call_raise): Likewise.
39977
9e94c78f 399782003-05-01 Laurent Guerby <guerby@acm.org>
4f9335cd 39979
2ed26f6b
ZW
39980 PR ada/10546
39981 * 5iosinte.ads: Increase pthread_cond_t size to match recent
39982 LinuxThread and NPTL version, merge from ACT.
80eaf415 39983
0864034e
ZW
399842003-04-28 Zack Weinberg <zack@codesourcery.com>
39985
39986 * utils.c (convert): No need to clear TREE_CST_RTL.
39987
9e94c78f 399882003-04-23 Geert Bosch <bosch@gnat.com>
bcea76b6
GB
39989
39990 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39991 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39992 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39993 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39994 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39995 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39996 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39997 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39998 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39999 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
40000 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
40001 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
40002 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
40003 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
40004 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
40005 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
40006 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
40007 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
40008 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
40009 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
40010 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
40011 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
40012 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40013 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
40014 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
40015 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
40016 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
40017 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
40018 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
40019 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
40020 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
40021 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
40022 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
40023 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
40024 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
40025 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
40026 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
40027 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
40028 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
40029 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
40030 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
40031 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
40032 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
40033 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
40034 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
40035 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
40036 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
40037 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
40038 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
40039 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
40040 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
40041 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
40042 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
40043 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
40044 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
40045 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
40046 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
40047 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
40048 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
40049 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
40050 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
40051 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
40052 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
40053 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
40054 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
40055 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
40056 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
40057 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
40058 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
40059 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
40060 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
40061 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
40062 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
40063 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
40064 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
40065 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
40066 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
40067 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
40068 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
40069 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
40070 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
40071 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40072 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
40073 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
40074 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
40075 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
40076 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
40077 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
40078 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
40079 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
40080 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
40081 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
40082 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
40083 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40084 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40085 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40086 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40087 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40088 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40089 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40090 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40091 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40092 ali.adb, ali.ads, alloc.ads, argv.c,
40093 atree.adb, atree.ads, atree.h, aux-io.c,
40094 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40095 binde.adb, binde.ads, binderr.adb, binderr.ads,
40096 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40097 butil.adb, butil.ads, cal.c, calendar.ads,
40098 casing.adb, casing.ads, ceinfo.adb, checks.adb,
40099 checks.ads, cio.c, comperr.adb, comperr.ads,
40100 config-lang.in, csets.adb, csets.ads, csinfo.adb,
40101 cstand.adb, cstand.ads, cuintp.c, debug.adb,
40102 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40103 dec-io.ads, dec.ads, deftarg.c, directio.ads,
40104 einfo.adb, einfo.ads, elists.adb, elists.ads,
40105 elists.h, errno.c, errout.adb, errout.ads,
40106 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40107 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40108 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40109 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40110 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40111 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40112 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40113 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40114 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40115 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40116 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40117 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40118 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40119 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40120 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40121 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40122 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40123 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40124 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40125 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40126 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40127 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40128 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40129 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40130 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40131 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40132 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40133 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40134 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40135 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40136 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40137 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40138 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40139 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40140 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40141 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40142 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40143 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40144 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40145 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40146 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40147 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40148 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40149 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40150 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40151 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40152 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40153 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40154 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40155 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40156 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40157 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40158 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40159 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40160 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40161 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40162 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40163 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40164 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40165 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40166 lib.adb, lib.ads, live.adb, live.ads,
40167 machcode.ads, make.adb, make.ads, makeusg.adb,
40168 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40169 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40170 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40171 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40172 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40173 mlib.ads, namet.adb, namet.ads, nlists.adb,
40174 nlists.ads, opt.adb, opt.ads, osint-b.adb,
40175 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40176 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40177 osint.ads, output.adb, output.ads, par-ch10.adb,
40178 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40179 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40180 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40181 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40182 par-tchk.adb, par-util.adb, par.adb, par.ads,
40183 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40184 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40185 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40186 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40187 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40188 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40189 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40190 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40191 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40192 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40193 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40194 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40195 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40196 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40197 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40198 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40199 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40200 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40201 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40202 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40203 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40204 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40205 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40206 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40207 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40208 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40209 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40210 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40211 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40212 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40213 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40214 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40215 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40216 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40217 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40218 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40219 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40220 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40221 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40222 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40223 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40224 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40225 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40226 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40227 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40228 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40229 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40230 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40231 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40232 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40233 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40234 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40235 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40236 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40237 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40238 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40239 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40240 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40241 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40242 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40243 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40244 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40245 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40246 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40247 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40248 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40249 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40250 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40251 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40252 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40253 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40254 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40255 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40256 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40257 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40258 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40259 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40260 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40261 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40262 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40263 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40264 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40265 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40266 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40267 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40268 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40269 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40270 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40271 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40272 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40273 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40274 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40275 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40276 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40277 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40278 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40279 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40280 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40281 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40282 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40283 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40284 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40285 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40286 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40287 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40288 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40289 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40290 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40291 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40292 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40293 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40294 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40295 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40296 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40297 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40298 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40299 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40300 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40301 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40302 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40303 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40304 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40305 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40306 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40307 snames.ads, sprint.adb, sprint.ads, stand.adb,
40308 stand.ads, stringt.adb, stringt.ads, style.adb,
40309 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40310 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40311 switch-m.ads, switch.adb, switch.ads, system.ads,
40312 table.adb, table.ads, targparm.adb, targparm.ads,
40313 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40314 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40315 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40316 ttypef.ads, ttypes.ads, types.adb, types.ads,
40317 uintp.adb, uintp.ads, uname.adb, uname.ads,
40318 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40319 usage.adb, usage.ads, validsw.adb, validsw.ads,
40320 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40321 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40322 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40323 formatting and other trivial changes from ACT.
40324
dcf92453
ZW
403252003-04-12 Zack Weinberg <zack@codesourcery.com>
40326
40327 * gigi.h, utils2.c (build_constructor):
40328 Rename gnat_build_constructor. Use build_constructor.
40329 * decl.c (gnat_to_gnu_entity)
40330 * trans.c (tree_transform, pos_to_constructor, extract_values)
40331 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40332 (unchecked_convert)
40333 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40334 (fill_vms_descriptor):
40335 Update to match.
40336
d78e771d
ZW
403372003-04-06 Zack Weinberg <zack@codesourcery.com>
40338
40339 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40340 * misc.c (gnat_tree_size): New function.
40341 (LANG_HOOKS_TREE_SIZE): Override.
40342
78d55cc8
JM
403432003-04-03 Jason Merrill <jason@redhat.com>
40344
40345 * misc.c (gnat_adjust_rli): #if 0.
40346
9e94c78f 403472003-03-31 Geert Bosch <bosch@gnat.com>
b174e2d4
GB
40348
40349 PR ada/10020
40350 * link.c : Fix misspelled "const" keyword
40351
f29a2bd1
MM
403522003-03-23 Mark Mitchell <mark@codesourcery.com>
40353
40354 PR c++/7086
40355 * utils2.c: Adjust calls to put_var_into_stack.
40356
08e247b1
NN
403572003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
40358
40359 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40360
4bfec483
NB
403612003-03-08 Neil Booth <neil@daikokuya.co.uk>
40362
40363 * misc.c (gnat_init): Update for new prototype.
40364
3d713bb8
GB
403652003-03-05 Olivier Hainque <hainque@gnat.com>
40366
40367 ada/9961
78d55cc8
JM
40368 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40369 warning, and fix return type for the IN_RTS && !SJLJ case.
3d713bb8 40370
8b89fcdf
TT
403712003-03-04 Tom Tromey <tromey@redhat.com>
40372
40373 * Make-lang.in (ada.tags): New target.
40374
3d713bb8 403752003-03-04 Olivier Hainque <hainque@act-europe.fr>
23cae84f
OH
40376
40377 ada/9911
40378 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40379 wrapper, which name remains constant whatever underlying GCC
40380 scheme.
40381
40382 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40383 the stable interface needed for a-except.
40384
f4ae98be
AJ
403852003-03-02 Andreas Jaeger <aj@suse.de>
40386
40387 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40388 gnat_ug_wnt.texi: Regenerate.
40389
9e94c78f 403902003-03-02 Laurent Guerby <guerby@acm.org>
5348742b 40391
f4ae98be 40392 * Makefile.in (install-gnatlib): Match previous change there
5348742b 40393 so it works.
f4ae98be 40394
8c108db2
AS
403952003-02-28 Andreas Schwab <schwab@suse.de>
40396
40397 * Make-lang.in (install-gnatlib): Change to ada directory before
40398 running make instead of using ada/Makefile directly.
40399
601d71bc
BE
404002003-02-18 Ben Elliston <bje@redhat.com>
40401
6f7f72f9 40402 Part of PR ada/9406
601d71bc
BE
40403 * gnat_ug.texi (Binder output file): Grammar fix.
40404
bf7c02dd
BE
404052003-02-18 Ben Elliston <bje@redhat.com>
40406
40407 PR other/7350
40408 * 5qtaprop.adb (Sleep): Fix typo in comment.
40409
b3a8389d
JM
404102003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
40411
40412 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40413 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40414 gnat_ug_wnt.texi: Regenerate.
40415
9e94c78f 404162003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5da14cb5
CC
40417
40418 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40419 be created if necessary.
40420 (ada.install-common): Let $(DESTDIR)$(bindir) be created
40421 if necessary. Remove erroneous and redundant gnatchop
40422 installation commands. Test for gnatdll before attempting
40423 to install it.
40424 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40425 and gnatdll from all plausible locations.
40426
271bd540
RS
404272003-02-01 Richard Sandiford <rsandifo@redhat.com>
40428
40429 * utils2.c (build_unary_op): Don't check flag_volatile.
40430 * gnat_ug.texi: Remove -fvolatile from example.
40431 * gnat_ug_vxw.texi: Likewise.
40432
9e94c78f 404332003-01-29 Laurent Guerby <guerby@acm.org>
c1cc6a51 40434
d78e771d
ZW
40435 PR ada/8344
40436 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40437 * Makefile.in: match previous change.
40438 * Make-lang.in: match previous change.
c1cc6a51 40439
9e94c78f 404402003-01-29 Joel Sherrill <joel@OARcorp.com>
c4039eb0
JS
40441
40442 * 5rosinte.ads: Add SIGXCPU.
40443 * 5rtpopsp.adb: New file.
40444 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40445 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40446 specific file 5rtpopsp.adb.
40447 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
40448 is likely needed for all newlib targets.
40449 * init.c: Add RTEMS specific version of __gnat_initialize().
40450
00d29f7d
RO
404512003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40452
40453 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40454
437026ef
RO
404552003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40456
40457 * init.c (__gnat_error_handler): Make msg const.
40458
40459 * gmem.c (convert_addresses): Move declaration ...
40460 * adaint.h: ... here.
40461 * adaint.c (convert_addresses): Adapt addrs type to match
40462 prototype.
40463
40464 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40465
e12825cd
AS
404662003-01-24 Andreas Schwab <schwab@suse.de>
40467
40468 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40469 size_t to avoid warning.
40470
a8729406
ZW
404712003-01-21 Zack Weinberg <zack@codesourcery.com>
40472
b09b91b9 40473 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
a8729406 40474
17211ab5
GK
404752003-01-09 Geoffrey Keating <geoffk@apple.com>
40476
40477 * gnat_rm.texi: Remove RCS version number.
40478
40479 * ada-tree.h (union lang_tree_node): Add chain_next option.
40480
1d27195c
CC
404812003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40482
40483 * Make-lang.in (ada.install-info, ada.install-common,
40484 ada.uninstall): Prepend $(DESTDIR) to the destination
40485 directory in all (un)installation commands.
40486 * Makefile.in (install-gnatlib, install-rts): Ditto.
40487
bdefb2ab
JM
404882002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
40489
40490 * gnat_rm.texi, gnat_ug.texi: Use @copying.
40491 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40492 gnat_ug_wnt.texi: Regenerate.
40493
46d40353
JM
404942002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
40495
40496 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
40497 only.
40498 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40499 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40500 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40501 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40502 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40503 $(srcdir)/doc/include/gcc-common.texi.
40504
9e94c78f 405052002-12-15 Geert Bosch <bosch@gnat.com>
d2f97d3e
GB
40506
40507 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40508
9e94c78f 405092002-12-14 Geert Bosch <bosch@gnat.com>
93a81b02 40510
6f7f72f9 40511 PR ada/5690
4977bab6
ZW
40512 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40513 case of a body created for a Renaming_As_Body, on which
6f7f72f9 40514 conformance checks are not performed.
4977bab6
ZW
40515
405162002-11-30 Zack Weinberg <zack@codesourcery.com>
40517
40518 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40519 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40520 not already included.
40521 * Make-lang.in: Update dependencies.
93a81b02 40522
dfc15546
NN
405232002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
40524 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
4977bab6 40525 solution to buffer overflow bug on GNU/Linux.
dfc15546 40526
8b54424d 405272002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9
EB
40528
40529 PR ada/5856
40530 PR ada/6919
8b54424d
NN
40531 * bindgen.adb: Remove all references to Public_Version.
40532 * comperr.adb: Remove all references to Public_Version and
40533 GNATPRO_Version; correct bug reporting instructions.
40534 * comperr.ads: Change to match bug box.
40535 * gnatvsn.ads: Remove all references to Public version and
40536 GNATPRO version.
40537
cc41268d 405382002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9 40539
1a083c0e
NN
40540 PR ada/6919
40541 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40542 GNU/Linux.
40543
cc41268d
NN
40544 PR ada/6558
40545 * config-lang.in: Remove diff_excludes.
40546
1c7b0712 405472002-11-05 Graham Stott <graham.stott@btinternet.com>
6f7f72f9 40548
1c7b0712
GS
40549 PR ada/8358
40550 * trans.c (gnu_pending_elaboration_lists): New GC root.
4977bab6 40551 (build_unit_elab): Use..
1c7b0712 40552
9e94c78f 405532002-10-30 Geert Bosch <bosch@gnat.com>
6f7f72f9 40554
1c4048ca
GB
40555 PR ada/6558
40556 * misc.c : Include optabs.h
40557
40558 * Make-lang.in (misc.o): Add dependency on optabs.h
40559
9e94c78f 405602002-10-29 Geert Bosch <bosch@gnat.com>
6f7f72f9 40561
4977bab6 40562 PR ada/6558
f0d96f9c
GB
40563 * Make-lang.in (gnatbind): Depend on CONFIG_H
40564
a7512dec 405652002-10-29 Geert bosch <bosch@gnat.com>
6f7f72f9 40566
4977bab6
ZW
40567 PR ada/6558
40568 * misc.c: Unrevert misc.c (1.13)
a7512dec 40569
c6362f4f
NN
405702002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
40571
40572 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40573 maintainership comments.
40574
405752002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9 40576
91ed4b19 40577 PR ada/5904
4977bab6
ZW
40578 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40579 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40580 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40581 7staprop.adb: Correct statements in comments about
91ed4b19
NN
40582 maintainership of GNAT.
40583
1f02b6af 40584 PR ada/5904
4977bab6
ZW
40585 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40586 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40587 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40588 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40589 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40590 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40591 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
1f02b6af
NN
40592 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40593 comments about maintainership of GNAT.
40594
71ff80dc 40595 PR ada/6919 (forward port of patch for PR ada/5904)
4977bab6
ZW
40596 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40597 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40598 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40599 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40600 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40601 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40602 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40603 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40604 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40605 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40606 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40607 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40608 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40609 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40610 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40611 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40612 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40613 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40614 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40615 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40616 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40617 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40618 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40619 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40620 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40621 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40622 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40623 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40624 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40625 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40626 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40627 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40628 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40629 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40630 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40631 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40632 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40633 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40634 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40635 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40636 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40637 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40638 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40639 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40640 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40641 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40642 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40643 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40644 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40645 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40646 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40647 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40648 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40649 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40650 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40651 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40652 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40653 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40654 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40655 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40656 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40657 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40658 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40659 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40660 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40661 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40662 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40663 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40664 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40665 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40666 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40667 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40668 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40669 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40670 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40671 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40672 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40673 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40674 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40675 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40676 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40677 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40678 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40679 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40680 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40681 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40682 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40683 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40684 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40685 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40686 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40687 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40688 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40689 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40690 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40691 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40692 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40693 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40694 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40695 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40696 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40697 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40698 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40699 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40700 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40701 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40702 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40703 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40704 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40705 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40706 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40707 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40708 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40709 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40710 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40711 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40712 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40713 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40714 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40715 par-endh.adb par-labl.adb par-load.adb par-prag.adb
40716 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40717 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40718 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40719 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40720 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40721 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40722 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40723 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40724 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40725 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40726 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40727 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40728 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40729 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40730 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40731 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40732 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40733 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40734 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40735 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40736 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40737 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40738 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40739 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40740 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40741 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40742 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40743 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40744 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40745 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40746 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40747 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40748 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40749 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40750 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40751 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40752 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40753 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40754 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40755 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40756 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40757 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40758 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40759 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40760 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40761 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40762 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40763 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40764 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40765 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40766 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40767 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40768 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40769 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40770 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40771 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40772 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40773 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40774 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40775 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40776 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40777 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40778 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40779 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40780 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40781 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40782 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40783 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40784 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40785 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40786 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40787 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40788 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40789 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40790 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40791 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40792 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40793 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40794 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40795 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40796 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40797 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40798 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40799 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40800 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40801 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40802 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40803 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40804 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40805 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40806 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40807 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40808 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40809 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40810 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40811 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40812 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40813 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40814 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40815 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40816 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40817 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40818 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40819 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40820 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40821 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40822 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40823 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40824 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40825 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40826 stringt.ads stringt.h style.adb style.ads stylesw.adb
40827 stylesw.ads switch.adb switch.ads sysdep.c system.ads
40828 table.adb table.ads targparm.adb targparm.ads targtyps.c
40829 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40830 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40831 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40832 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40833 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40834 usage.ads utils.c utils2.c validsw.adb validsw.ads
40835 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40836 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
71ff80dc
NN
40837 xtreeprs.adb: Correct statements in comments about maintainership
40838 of GNAT.
40839
b4f94ac1
ZW
408402002-09-23 Zack Weinberg <zack@codesourcery.com>
40841
40842 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40843 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40844 * gnatvsn.ads: Gnat_Version_String is now a function.
40845 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
40846 copy the C version_string into a String and return it.
40847 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40848 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40849 Remove pragma Ident (Gnat_Version_String). If this was the
40850 sole use of package Gnatvsn, remove the with statement too.
40851 * gnat1drv.adb: Tweak -gnatv output.
40852
eaff3bf8
RH
408532002-09-17 Richard Henderson <rth@redhat.com>
40854
40855 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40856 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40857 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40858 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40859 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40860 and real_2expN instead of a loop.
40861 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40862 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40863
9e94c78f
EB
408642002-08-25 Andre Leis <a.leis@gmx.net>
40865 David Billinghurst <David.Billinghurst@riotinto.com>
d241f75b 40866
f4ae98be 40867 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
d241f75b 40868
4320085a
RO
408692002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40870
40871 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40872 Remove $(CONFIG_H) dependency.
40873
22aa533e
NS
408742002-08-08 Nathan Sidwell <nathan@codesourcery.com>
40875
40876 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40877
1dcd444b
KG
408782002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40879
40880 * adadecode.c (ada_demangle): Use xstrdup in lieu of
40881 xmalloc/strcpy.
40882 * misc.c (gnat_decode_option): Likewise.
40883
7bc7d27b
FW
408842002-07-15 Florian Weimer <fw@deneb.enyo.de>
40885
40886 * make.adb (Add_Switch): Make Generic_Position a procedure. The
40887 function approach did not work well because of a side effect (the
40888 function call could reallocate the table which was being indexed
40889 using its result). Fixes ada/4851. [RESURRECTED]
40890
6a2dd09a
RS
408912002-07-01 Roger Sayle <roger@eyesopen.com>
40892
40893 * ada/utils.c (builtin_function): Accept an additional parameter.
40894
c168bbd7
AJ
408952002-06-28 Andreas Jaeger <aj@suse.de>
40896
40897 PR ada/7144
40898 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40899 <adi@thur.de>.
40900
b41e09a7
KG
409012002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40902
40903 * Makefile.in (SHELL): Set to @SHELL@.
40904
62c71f4b
KG
409052002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40906
40907 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40908 array size calculation.
40909
94213cff
AJ
409102002-06-04 Andreas Jaeger <aj@suse.de>
40911
40912 * Make-lang.in (gnatbind): Readd rule that has been lost in last
40913 patch.
40914
e2500fed
GK
409152002-06-03 Geoffrey Keating <geoffk@redhat.com>
40916
40917 Merge from pch-branch:
40918
40919 * config-lang.in (gtfiles): Add ada-tree.h.
40920 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40921 (SET_TYPE_MODULUS): New.
40922 (SET_TYPE_INDEX): New.
40923 (SET_TYPE_DIGITS_VALUE): New.
40924 (SET_TYPE_RM_SIZE): New.
40925 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40926 (SET_TYPE_ADA_SIZE): New.
40927 (SET_TYPE_ACTUAL_BOUNDS): New.
40928 (SET_DECL_CONST_CORRESPONDING_VAR): New.
40929 (SET_DECL_ORIGINAL_FIELD): New.
40930 (TREE_LOOP_ID): Correct typo.
40931 * decl.c: Use new macros.
40932 * utils.c: Include debug.h, use new macros.
94213cff 40933 * utils2.c: Use new macros.
e2500fed
GK
40934
40935 * ada-tree.h: Update all macros for new tree description.
40936 (struct tree_loop_id): New.
40937 (union lang_tree_node): New.
40938 (struct lang_decl): New.
40939 (struct lang_type): New.
40940 * misc.c (gnat_mark_tree): Delete.
40941 (LANG_HOOKS_MARK_TREE): Delete.
40942 * trans.c (tree_transform): No longer any need to cast
40943 for TREE_LOOP_ID.
40944
40945 * utils.c (struct language_function): New dummy structure.
40946
40947 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40948 (misc.o): Likewise.
40949 (utils.o): Likewise; also gtype-ada.h.
40950 * Make-lang.in (gnat1): Add dependency on s-gtype.
40951 (gnatbind): Add dependency on $(CONFIG_H).
40952 * utils.c: Correct last #include.
40953 (stuct e_stack): Remove unnecessary 'static'.
40954 (mark_e_stack): Remove unused prototype.
40955
40956 * scn-nlit.adb: Remove whitespace after version number to
40957 keep lines under 80 chars.
40958 * snames.adb: Likewise.
40959 * treepr.ads: Likewise.
94213cff 40960
e2500fed
GK
40961 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40962 (misc.o): Likewise.
40963 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40964 * config-lang.in (gtfiles): New.
40965 * decl.c: Use gengtype for roots.
40966 * gigi.h: Use gengtype for roots.
40967 * trans.c: Use gengtype for roots.
40968 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
40969
27e511e0
GDR
409702002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
40971
40972 * misc.c (gnat_init): Adjust setting of internal_error_function.
40973
113dc143
JM
409742002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
40975
40976 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40977 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40978 gnat_ug_wnt.texi: Regenerate.
40979
5321fb3e
FW
409802002-05-31 Florian Weimer <fw@deneb.enyo.de>
40981
15e6136e
FW
40982 * 5ntaprop.adb (with System.OS_Primitives): Remove.
40983
019310ac
FW
40984 * cstreams.c (max_path_len): Move from here ...
40985 * adaint.c (__gnat_max_path_len): ... to here.
40986 * adaint.c (__gnat_max_path_len): Declare.
40987 * g-dirope.adb (Max_Path): Adjust.
40988 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
94213cff 40989 * i-cstrea.ads (max_path_len): Adjust.
019310ac
FW
40990 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40991 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40992
5321fb3e
FW
40993 * Makefile.in, Make-lang.in: Documentation is now built in
40994 Make-lang.in. Store Info and generated Texinfo files in the
40995 source directory.
40996 * gnat_ug.texi: Remove CVS keywords, correct version number.
40997 Set file name correctly.
40998
40999 * gnat_ug_*.texi: Add.
41000 * .cvsignore: Ignore generated Texinfo files.
41001
b1c12c4b
ZW
410022002-05-30 Zack Weinberg <zack@codesourcery.com>
41003
41004 * ada.h: Add MI guard macro.
41005 (SUBTYPE): Define constants with an anonymous enum, not static
41006 const variables.
41007 (IN): Cast constants to appropriate type before use.
41008
ead33da9
JM
410092002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
41010
41011 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
41012 (experimental)".
41013
7d600178
RO
410142002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41015
41016 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
41017 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
41018 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
41019 (ALL_ADA_CFLAGS): Likewise.
41020 (ADA_INCLUDES): Likewise.
41021 Adapt for new working dir.
41022 (GNATBIND): Use Makefile.in version.
41023 (.SUFFIXES): Copy from Makefile.in.
41024 (ada-warn): Define.
41025 (.adb.o, .ads.o): Copy from Makefile.in.
41026 Added $(OUTPUT_OPTION).
41027 (GNAT1_C_OBJS): Moved from Makefile.in.
41028 Prefix with ada subdir.
41029 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
41030 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
41031 Adapt for new working dir.
41032 (EXTRA_GNATBIND_OBJS): Likewise.
41033 (ADA_BACKEND): Moved from Makefile.in.
41034 Renamed to avoid conflict with global BACKEND.
41035 Use that one.
41036 (TARGET_ADA_SRCS): Moved from Makefile.in.
41037 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
41038 Use ADA_BACKEND.
41039 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
41040 (ada_extra_files): Moved from Makefile.in.
41041 Prefix with ada subdir.
41042 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
41043 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
41044 (ada/nmake.ads): Likewise.
41045 (update-sources): Moved from Makefile.in.
41046 Prefix with ada subdir.
41047 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
41048 (ADA_TREE_H): Likewise.
41049 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
41050 (ada/memtrack.o): Likewise.
41051 (ada/adadecode.o): Likewise.
41052 Update dependencies.
41053 (ada/adaint.o): New.
41054 (ada/argv.o): Moved from Makefile.in.
41055 Prefix with ada subdir.
94213cff 41056 Update dependencies.
7d600178
RO
41057 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
41058 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
41059 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
41060 Prefix with ada subdir.
41061 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
41062 (GNAT DEPENDENCIES): Regenerate.
41063 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
41064 toplevel Makefile.in.
41065 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
41066 (TARGET_ADA_SRCS): Removed.
41067 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
41068 (GNATBIND_OBJS): Likewise.
41069 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
41070 (BACKEND): Removed.
41071 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41072 (TREE_H): Likewise.
41073 (ada_extra_files): Likewise.
41074 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
41075 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
41076 (update-sources): Likewise.
41077 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
41078 (ADA_TREE_H): Likewise.
41079 (adadecoce.o): Likewise.
41080 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
41081 (GNAT DEPENDENCIES): Likewise.
41082
1e6347d8
RO
410832002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41084
41085 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41086 * Makefile.in: Likewise.
41087
db80834f
RO
410882002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41089
41090 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41091 Restore $(CONFIG_H) and prefix.o dependencies.
41092 (ada.stage[1-4]): Depend on stage?-start.
41093
41094 * Makefile.in (b_gnatb.c): Depend on interfac.o.
41095
ac293f98
JW
410962002-05-02 Jim Wilson <wilson@redhat.com>
41097
41098 * utils.c (finish_record_type): Change record_size to record_type.
41099
b303008e
JDA
411002001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
41101
41102 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41103 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41104 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
94213cff 41105
ff45c01e
NB
411062002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
41107
41108 * misc.c (gnat_parse_file): Update.
41109
349ae713
NB
411102002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
41111
41112 * misc.c (gnat_init): Don't set lang_attribute_common.
41113
ace133aa
JM
411142002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
41115
41116 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41117
5c558dd9
FW
411182002-04-21 Florian Weimer <fw@deneb.enyo.de>
41119
b4f94ac1 41120 * gnat_ug.texi: New file.
88e1739c 41121
5c558dd9
FW
41122 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
41123 instead of gfdl.texi
41124
41125 * xgnatug.adb, ug_words: New files.
41126
41127 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
b4f94ac1 41128 gnat_rm and gnat-style manuals.
5c558dd9 41129
7a228918
NB
411302002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
41131
41132 * gigi.h (incomplete_type_error): Remove.
41133 * utils.c (incomplete_type_error): Remove.
41134
b2123dc0
MM
411352002-04-16 Mark Mitchell <mark@codesourcery.com>
41136
41137 * trans.c (tree_transform): Add has_scope argument to
41138 expand_start_stmt_expr.
41139
78ef5b89
NB
411402002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41141
41142 * gigi.h (truthvalue_conversion): Rename.
41143 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41144 * trans.c (tree_transform): Update.
41145 * utils2.c (truthvalue_conversion): Rename, update.
41146 (build_binary_op, build_unary_op): Update.
41147
a71742a8
LG
411482002-04-04 Laurent Guerby <guerby@acm.org>
41149
41150 * make.adb: Implement -margs, remove restriction about file name placement.
41151 * makeusg.adb: Documentation update.
41152 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41153 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41154
82a4b025
NB
411552002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41156
41157 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41158 (builtin_function): Similarly.
41159
dffd7eb6
NB
411602002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41161
41162 * decl.c (gnat_to_gnu_entity): Update.
41163 * gigi.h (mark_addressable): Rename.
41164 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41165 * trans.c (tree_transform): Update.
41166 * utils.c (create_var_decl): Update.
41167 * util2.c (build_binary_op, build_unary_op,
41168 fill_vms_descriptor): Update.
41169 (mark_addressable): Rename, update.
41170
ceef8ce4
NB
411712002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41172
41173 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41174 Rename.
41175 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41176 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41177 * trans.c (tree_transform, convert_with_check): Update.
41178 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41179 Rename.
41180
48a7a235
NB
411812002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
41182
41183 * gigi.h (finish_incomplete_decl): Rename.
41184 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41185 * utils.c (gnat_init_decl_processing): Don't set hook.
41186 (finish_incomplete_decl): Rename.
41187
1d5af871
AS
411882002-03-29 Andreas Schwab <schwab@suse.de>
41189
41190 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41191 directory.
41192
9e94c78f 411932001-03-28 Robert Dewar <dewar@gnat.com>
8cbb664e
MG
41194
41195 * checks.ads:
41196 (Remove_Checks): New procedure
41197
41198 * checks.adb:
41199 (Remove_Checks): New procedure
41200
41201 * exp_util.adb:
41202 Use new Duplicate_Subexpr functions
41203 (Duplicate_Subexpr_No_Checks): New procedure
41204 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41205 (Duplicate_Subexpr): Restore original form (checks duplicated)
41206 (Duplicate_Subexpr): Call Remove_Checks
41207
82a4b025 41208 * exp_util.ads:
8cbb664e
MG
41209 (Duplicate_Subexpr_No_Checks): New procedure
41210 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41211 Add 2002 to copyright notice
41212
41213 * sem_util.adb: Use new Duplicate_Subexpr functions
41214
82a4b025 41215 * sem_eval.adb:
8cbb664e
MG
41216 (Eval_Indexed_Component): This is the place to call
41217 Constant_Array_Ref and to replace the value. We simply merge
41218 the code of this function in here, since it is now no longer
41219 used elsewhere. This fixes the problem of the back end not
41220 realizing we were clever enough to see that this was
41221 constant.
41222 (Expr_Val): Remove call to Constant_Array_Ref
41223 (Expr_Rep_Val): Remove call to Constant_Array_Ref
41224 Minor reformatting
41225 (Constant_Array_Ref): Deal with string literals (patch
41226 suggested by Zack Weinberg on the gcc list)
41227
9e94c78f 412282001-03-28 Ed Schonberg <schonber@gnat.com>
8cbb664e 41229
82a4b025 41230 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
41231 Duplicate_Subexpr_Move_Checks.
41232
82a4b025 41233 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
41234 Duplicate_Subexpr_Move_Checks.
41235
82a4b025
NB
41236 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41237 value of array exists before retrieving it (it may a private
8cbb664e
MG
41238 protected component in a function).
41239
9e94c78f 412402002-03-28 Geert Bosch <bosch@gnat.com>
792c4e74
GB
41241
41242 * prj-pp.adb : New file.
41243
41244 * prj-pp.ads : New file.
41245
915e8bad
AJ
412462002-03-28 Andreas Jaeger <aj@suse.de>
41247
41248 * Makefile.in (stamp-sdefault): Fix path for Makefile.
41249
0840811c
NB
412502002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
41251
41252 * misc.c (gnat_expand_expr): Move prototype.
41253
7ffb4fd2
NB
412542002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41255
41256 * misc.c (insert_default_attributes): Remove.
41257
c9d892a8
NB
412582002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41259
41260 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41261 (gnat_init): Don't set hook.
41262 (gnat_expand_expr): Fix prototype.
41263
31c816cf
NB
412642002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41265
41266 * misc.c (ggc_p): Remove.
41267
ef83161c
GB
412682002-03-27 Geert Bosch <bosch@gnat.com>
41269
41270 * prj-makr.ads, prj-makr.adb : New files.
41271
4f0ade92
NB
412722002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
41273
41274 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41275 (lang_mark_tree): Make static, rename.
41276
c88770e9
NB
412772002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
41278
41279 * misc.c (maybe_build_cleanup): Remove.
41280
05671968
NB
412812002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
41282
41283 * gigi.h (yyparse): Remove.
41284
ad42149c
FW
412852002-03-23 Florian Weimer <fw@deneb.enyo.de>
41286
9e94c78f 41287 From Ben Brosgol <brosgol@gnat.com>
82a4b025 41288 * gnat_rm.texi: Sync with ACT version.
ad42149c 41289
7afff7cf
NB
412902002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
41291
41292 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41293 (gnat_init): Remove old hook.
41294
52dabb6c
NB
412952002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
41296
41297 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41298 (yyparse): Rename gnat_parse_file.
41299
6cbcc541
GK
413002002-03-14 Geoffrey Keating <geoffk@redhat.com>
41301
41302 Delete all lines containing "$Revision:".
41303 * xeinfo.adb: Don't look for revision numbers.
41304 * xnmake.adb: Likewise.
41305 * xsinfo.adb: Likewise.
41306 * xsnames.adb: Likewise.
41307 * xtreeprs.adb: Likewise.
41308
2f9834e8
KG
413092002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41310
41311 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41312 gnat_tree_code_name): Delete.
41313 (tree_code_type, tree_code_length, tree_code_name): Define.
41314 (gnat_init): Don't try to copy into the various tree_code
41315 arrays.
41316
63adb4ff
RH
413172002-03-11 Richard Henderson <rth@redhat.com>
41318
41319 * Makefile.in (.NOTPARALLEL): Add fake tag.
41320
43ff4547
GB
413212002-03-07 Geert Bosch <bosch@gnat.com>
41322
82a4b025
NB
41323 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41324 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41325 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
43ff4547
GB
41326 switch-m.adb, switch-m.ads : New files.
41327
07fc65c4
GB
413282002-03-07 Geert Bosch <bosch@gnat.com>
41329
41330 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41331 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41332 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41333 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41334 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41335 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41336 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41337 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41338 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41339 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41340 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41341 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41342 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41343 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41344 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41345 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41346 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41347 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41348 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41349 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41350 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41351 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41352 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41353 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41354 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41355 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41356 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41357 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41358 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41359 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41360 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41361 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41362 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41363 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41364 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41365 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41366 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41367 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41368 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41369 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41370 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41371 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41372 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41373 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41374 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41375 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41376 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41377 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41378 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41379 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41380 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41381 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41382 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41383 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41384 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41385 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41386 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41387 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41388 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41389 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41390 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41391 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41392 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41393 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41394 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41395 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41396 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41397 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41398 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41399 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41400 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41401 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41402 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41403 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41404 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41405 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41406 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41407 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41408 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41409 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41410 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41411 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41412 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41413 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41414 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41415 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41416 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41417 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41418 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41419 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41420 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41421 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41422 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41423 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41424 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41425 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41426 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41427
41428 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41429 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41430 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41431 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41432
41433 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41434 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41435
41436 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41437 to mdll-fil.ad[bs] and mdll-util.ad[bs]
41438
41439 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41440 from mdllfile.ad[bs] and mdlltool.ad[bs]
41441
ca7558fc
KG
414422002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41443
41444 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41445 lieu of explicit sizeof/sizeof.
41446
63e1b1c4
NB
414472002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
41448
41449 * misc.c (copy_lang_decl): Remove.
41450
f458d1d5
ZW
414512002-02-27 Zack Weinberg <zack@codesourcery.com>
41452
41453 * misc.c: Delete traditional-mode-related code copied from the
41454 C front end but not used, or used only to permit the compiler
41455 to link.
41456
21e09952
RH
414572002-02-07 Richard Henderson <rth@redhat.com>
41458
41459 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41460 * adaint.h (__gnat_to_gm_time): Update prototype.
41461
ead39bdf 414622002-01-30 Richard Henderson <rth@redhat.com>
e803a64b
RH
41463
41464 * trans.c (tree_transform) [N_Loop_Statement]: Use
41465 expand_exit_loop_top_cond.
41466
72ac12bf
RH
414672001-12-23 Richard Henderson <rth@redhat.com>
41468
41469 * utils.c (end_subprog_body): Push GC context around
41470 rest_of_compilation for nested functions.
41471
14aacce7
RH
414722001-12-23 Richard Henderson <rth@redhat.com>
41473
41474 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41475
b3d45d87
FW
414762001-12-23 Florian Weimer <fw@deneb.enyo.de>
41477
ece2d1b8
FW
41478 * gnat-style.texi (Declarations and Types): Remove ancient style
41479 rule which was mandated by code generation issues.
82a4b025 41480
b3d45d87
FW
41481 * gnat-style.texi (header): Add @dircategory, @direntry.
41482 (title page): Remove date.
41483 (general) Add @./@: where approriate, and two spaces after the
41484 full stop at the end of a sentence. Use @samp markup when
41485 referring concrete lexical entities (keywords, attribute names
41486 etc.), and @syntax for ARM grammar elements. Use @r for English
41487 text in comments. Use @emph for emphasis. Change "if-statements"
41488 etc. to "if statements" (without @samp). Break long lines. Make
41489 casing of section names consistent.
41490 (Identifiers): Use @samp markup for variable names.
41491 (Comments): Use @samp markup for comment characters. Line-end
41492 comments may follow any Ada code, not just statements. Fix
41493 misspelling of "Integer" as "integer".
41494 (Loop statements): Do not use variable name "I", use "J".
41495 (Subprogram Declarations): Document alignment.
41496 (Subprogram Bodies, Block statements): Document empty line before
41497 "begin".
41498
7a73ad55
FW
414992001-12-22 Florian Weimer <fw@deneb.enyo.de>
41500
41501 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41502 function approach did not work well because of a side effect (the
41503 function call could reallocate the table which was being indexed
41504 using its result). Fixes ada/4851.
41505
9e94c78f 415062001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
41507
41508 * bindgen.adb: Minor reformatting
82a4b025 41509
17c5c8a5 41510 * cstand.adb: Minor reformatting
82a4b025 41511
17c5c8a5
GB
41512 * fmap.adb: Minor reformatting
41513 Change name from Add for Add_To_File_Map (Add is much too generic)
41514 Change Path_Name_Of to Mapped_Path_Name
41515 Change File_Name_Of to Mapped_File_Name
41516 Fix copyright dates in header
82a4b025 41517
17c5c8a5
GB
41518 * fmap.ads:
41519 Change name from Add for Add_To_File_Map (Add is much too generic)
41520 Change Path_Name_Of to Mapped_Path_Name
41521 Change File_Name_Of to Mapped_File_Name
41522 Fix copyright dates in header
82a4b025 41523
17c5c8a5
GB
41524 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
41525 Add use clause for Fmap.
82a4b025 41526
17c5c8a5 41527 * make.adb: Minor reformatting
82a4b025 41528
17c5c8a5
GB
41529 * osint.adb: Minor reformatting. Change of names in Fmap.
41530 Add use clause for Fmap.
82a4b025 41531
17c5c8a5 41532 * prj-env.adb: Minor reformatting
82a4b025 41533
17c5c8a5 41534 * prj-env.ads: Minor reformatting
82a4b025 41535
07fc65c4
GB
41536 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
41537 error found (there were odd exceptions to this general rule in
17c5c8a5 41538 -gnatec/-gnatem processing)
82a4b025 41539
9e94c78f 415402001-12-19 Olivier Hainque <hainque@gnat.com>
17c5c8a5 41541
07fc65c4
GB
41542 * raise.c (__gnat_eh_personality): Exception handling personality
41543 routine for Ada. Still in rough state, inspired from the C++ version
17c5c8a5 41544 and still containing a bunch of debugging artifacts.
07fc65c4 41545 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
17c5c8a5 41546 inspired from the C++ library.
82a4b025 41547
07fc65c4 41548 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
17c5c8a5 41549 exception handling integration.
82a4b025 41550
9e94c78f 415512001-12-19 Arnaud Charlet <charlet@gnat.com>
17c5c8a5
GB
41552
41553 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41554 (HIE_SOURCES): Add s-secsta.ad{s,b}.
41555 (HIE_OBJS): Add s-fat*.o
07fc65c4 41556 (RAVEN_SOURCES): Remove files that are no longer required. Add
17c5c8a5
GB
41557 interrupt handling files.
41558 (RAVEN_MOD): Removed, no longer needed.
82a4b025 41559
9e94c78f 415602001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
41561
41562 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41563 Add 2001 to copyright date
82a4b025 41564
07fc65c4 41565 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
17c5c8a5 41566 need to force universal inlining for these cases.
82a4b025 41567
9e94c78f 415682001-12-19 Arnaud Charlet <charlet@gnat.com>
17c5c8a5 41569
07fc65c4 41570 * s-taprob.adb: Minor clean ups so that this unit can be used in
17c5c8a5 41571 Ravenscar HI.
82a4b025 41572
17c5c8a5
GB
41573 * exp_ch7.adb: Allow use of secondary stack in HI mode.
41574 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
82a4b025 41575
9e94c78f 415762001-12-19 Vincent Celier <celier@gnat.com>
17c5c8a5 41577
07fc65c4 41578 * prj-tree.ads (Project_Node_Record): Add comments for components
17c5c8a5 41579 Pkg_Id and Case_Insensitive.
82a4b025 41580
9e94c78f 415812001-12-19 Pascal Obry <obry@gnat.com>
17c5c8a5
GB
41582
41583 * g-socket.adb: Minor reformatting. Found while reading code.
82a4b025 41584
9e94c78f 415852001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
41586
41587 * prj-tree.ads: Minor reformatting
41588
38be19f6
JM
415892001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
41590
41591 * config-lang.in (diff_excludes): Remove.
41592
9e94c78f 415932001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 41594
07fc65c4
GB
41595 * sem_res.adb (Resolve_Selected_Component): do not generate a
41596 discriminant check if the selected component is a component of
6510f4c9
GB
41597 the argument of an initialization procedure.
41598
07fc65c4
GB
41599 * trans.c (tree_transform, case of arithmetic operators): If result
41600 type is private, the gnu_type is the base type of the full view,
6510f4c9 41601 given that the full view itself may be a subtype.
82a4b025 41602
9e94c78f 416032001-12-17 Robert Dewar <dewar@gnat.com>
6510f4c9
GB
41604
41605 * sem_res.adb: Minor reformatting
82a4b025 41606
07fc65c4
GB
41607 * trans.c (tree_transform, case N_Real_Literal): Add missing third
41608 parameter in call to Machine (unknown horrible effects from this
6510f4c9 41609 omission).
82a4b025 41610
6510f4c9
GB
41611 * urealp.h: Add definition of Round_Even for call to Machine
41612 Add third parameter for Machine
82a4b025 41613
9e94c78f 416142001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 41615
07fc65c4 41616 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
6510f4c9 41617 predefined units in No_Run_Time mode.
82a4b025 41618
9e94c78f 416192001-12-17 Richard Kenner <kenner@gnat.com>
6510f4c9
GB
41620
41621 * misc.c (insn-codes.h): Now include.
82a4b025 41622
9e94c78f 416232001-12-17 Olivier Hainque <hainque@gnat.com>
6510f4c9 41624
07fc65c4 41625 * a-except.adb: Preparation work for future integration of the GCC 3
6510f4c9
GB
41626 exception handling mechanism
41627 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41628 to factorize previous code sequences and make them externally callable,
41629 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41630 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41631 Use the new notification routines.
82a4b025 41632
9e94c78f 416332001-12-17 Emmanuel Briot <briot@gnat.com>
6510f4c9
GB
41634
41635 * prj-tree.ads (First_Choice_Of): Document the when others case
82a4b025 41636
9e94c78f 416372001-12-17 Arnaud Charlet <charlet@gnat.com>
6510f4c9 41638
07fc65c4 41639 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
6510f4c9 41640 HI-E mode, in order to support Ravenscar profile properly.
82a4b025 41641
07fc65c4 41642 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
6510f4c9 41643 mode on 32 bits targets.
82a4b025 41644
9e94c78f 416452001-12-17 Vincent Celier <celier@gnat.com>
6510f4c9
GB
41646
41647 * fmap.adb: Initial version.
82a4b025 41648
6510f4c9 41649 * fmap.ads: Initial version.
82a4b025 41650
6510f4c9
GB
41651 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41652 If search is successfully done, add to mapping.
82a4b025 41653
6510f4c9 41654 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
82a4b025 41655
6510f4c9
GB
41656 * make.adb:
41657 (Gnatmake): Add new local variable Mapping_File_Name.
41658 Create mapping file when using project file(s).
41659 Delete mapping file before exiting.
82a4b025 41660
6510f4c9 41661 * opt.ads (Mapping_File_Name): New variable
82a4b025 41662
6510f4c9 41663 * osint.adb (Find_File): Use path name found in mapping, if any.
82a4b025 41664
6510f4c9 41665 * prj-env.adb (Create_Mapping_File): New procedure
82a4b025 41666
6510f4c9 41667 * prj-env.ads (Create_Mapping_File): New procedure.
82a4b025 41668
07fc65c4 41669 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
6510f4c9 41670 (Mapping_File)
82a4b025 41671
6510f4c9 41672 * usage.adb: Add entry for new switch -gnatem.
82a4b025 41673
6510f4c9 41674 * Makefile.in: Add dependencies for fmap.o.
82a4b025 41675
9e94c78f 416762001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 41677
07fc65c4 41678 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
6510f4c9
GB
41679 is a package instantiation rewritten as a package body.
41680 (Install_Withed_Unit): Undo previous change, now redundant.
82a4b025 41681
9e94c78f 416822001-12-17 Gary Dismuke <dismukes@gnat.com>
6510f4c9
GB
41683
41684 * layout.adb:
41685 (Compute_Length): Move conversion to Unsigned to callers.
41686 (Get_Max_Size): Convert Len expression to Unsigned after calls to
41687 Compute_Length and Determine_Range.
41688 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41689 Compute_Length and Determine_Range.
41690 Above changes fix problem with length computation for supernull arrays
07fc65c4 41691 where Max (Len, 0) wasn't getting applied due to the Unsigned
6510f4c9 41692 conversion used by Compute_Length.
82a4b025 41693
9e94c78f 416942001-12-17 Arnaud Charlet <charlet@gnat.com>
6510f4c9
GB
41695
41696 * rtsfind.ads:
41697 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41698 System.Secondary_Stack.
41699 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41700 in HI-E mode.
41701 Remove unused entity RE_Exception_Data.
82a4b025 41702
6510f4c9 41703 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
82a4b025 41704
6510f4c9
GB
41705 * rident.ads (No_Secondary_Stack): New restriction.
41706
9e94c78f 417072001-12-17 Joel Brobecker <brobecke@gnat.com>
3a77b68d 41708
07fc65c4 41709 * gnat_rm.texi: Fix minor typos. Found while reading the section
3a77b68d
GB
41710 regarding "Bit_Order Clauses" that was sent to a customer.
41711 Very interesting documentation!
82a4b025 41712
9e94c78f 417132001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d 41714
07fc65c4
GB
41715 * sem_case.adb (Choice_Image): Avoid creating improper character
41716 literal names by using the routine Set_Character_Literal_Name. This
3a77b68d 41717 fixes bombs in certain error message cases.
82a4b025 41718
9e94c78f 417192001-12-17 Arnaud Charlet <charlet@gnat.com>
3a77b68d
GB
41720
41721 * a-reatim.adb: Minor reformatting.
82a4b025 41722
9e94c78f 417232001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 41724
07fc65c4
GB
41725 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41726 case where the formal is an extension of another formal in the current
3a77b68d 41727 unit or in a parent generic unit.
82a4b025 41728
9e94c78f 417292001-12-17 Arnaud Charlet <charlet@gnat.com>
3a77b68d 41730
07fc65c4 41731 * s-tposen.adb: Update comments. Minor reformatting.
3a77b68d 41732 Minor code clean up.
82a4b025 41733
3a77b68d 41734 * s-tarest.adb: Update comments. Minor code reorganization.
82a4b025 41735
9e94c78f 417362001-12-17 Gary Dismukes <dismukes@gnat.com>
3a77b68d 41737
07fc65c4 41738 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
3a77b68d 41739 when Java_VM.
82a4b025 41740
9e94c78f 417412001-12-17 Robert Dewa <dewar@gnat.com>
3a77b68d
GB
41742
41743 * exp_attr.adb: Minor reformatting
82a4b025 41744
9e94c78f 417452001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 41746
07fc65c4 41747 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
3a77b68d
GB
41748 derivations nested within a child unit: verify that the parent
41749 type is declared in an outer scope.
82a4b025 41750
9e94c78f 417512001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d
GB
41752
41753 * sem_ch12.adb: Minor reformatting
82a4b025 41754
9e94c78f 417552001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 41756
07fc65c4
GB
41757 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41758 warning if current unit is a predefined one, from which bodies may
3a77b68d 41759 have been deleted.
82a4b025 41760
9e94c78f 417612001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d
GB
41762
41763 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41764 Fix header format. Add 2001 to copyright date.
82a4b025 41765
07fc65c4 41766 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
3a77b68d
GB
41767 which caused CE during compilation if checks were enabled.
41768
9e94c78f 417692001-12-17 Vincent Celier <celier@gnat.com>
79503fdd
GB
41770
41771 * make.adb:
41772 (Switches_Of): New function
41773 (Test_If_Relative_Path): New procedure
41774 (Add_Switches): Use new function Switches_Of
41775 (Collect_Arguments_And_Compile): Use new function Switches_Of.
41776 When using a project file, test if there are any relative
41777 search path. Fail if there are any.
07fc65c4
GB
41778 (Gnatmake): Only add switches for the primary directory when not using
41779 a project file. When using a project file, change directory to the
41780 object directory of the main project file. When using a project file,
41781 test if there are any relative search path. Fail if there are any.
41782 When using a project file, fail if specified executable is relative
41783 path with directory information, and prepend executable, if not
41784 specified as an absolute path, with the exec directory. Make sure
79503fdd 41785 that only one -o switch is transmitted to the linker.
82a4b025 41786
79503fdd 41787 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
82a4b025 41788
79503fdd
GB
41789 * prj-nmsc.adb:
41790 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41791 when using a non standard naming scheme.
41792 (Check_Ada_Naming_Scheme): Make sure that error messages
41793 do not raise exceptions.
41794 (Is_Illegal_Append): Return True if there is no dot in the suffix.
41795 (Language_Independent_Check): Check the exec directory.
82a4b025 41796
79503fdd 41797 * prj.adb (Project_Empty): Add new component Exec_Directory
82a4b025 41798
79503fdd
GB
41799 * prj.ads:
41800 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41801 (Project_Data): Add component Exec_Directory
82a4b025 41802
79503fdd 41803 * snames.adb: Updated to match snames.ads revision 1.215
82a4b025 41804
79503fdd 41805 * snames.ads: Added Exec_Dir
82a4b025 41806
9e94c78f 418072001-12-17 Robert Dewar <dewar@gnat.com>
79503fdd
GB
41808
41809 * make.adb: Minor reformatting
82a4b025 41810
79503fdd 41811 * prj-nmsc.adb: Minor reformatting
82a4b025 41812
79503fdd 41813 * snames.adb: Updated to match snames.ads
82a4b025 41814
79503fdd
GB
41815 * snames.ads: Alphebetize entries for project file
41816
9e94c78f 418172001-12-17 Ed Schonberg <schonber@gnat.com>
79503fdd 41818
07fc65c4 41819 * trans.c (process_freeze_entity): Do nothing if the entity is a
79503fdd 41820 subprogram that was already elaborated.
82a4b025 41821
9e94c78f 418222001-12-17 Richard Kenner <kenner@gnat.com>
82a4b025 41823
07fc65c4 41824 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
79503fdd
GB
41825 and Esize if object is referenced via pointer.
41826
9e94c78f 418272001-12-17 Ed Schonberg <schonber@gnat.com>
855ff2e1 41828
07fc65c4 41829 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
855ff2e1 41830 is discrete before analyzing choices.
82a4b025 41831
9e94c78f 418322001-12-17 Joel Brobecker <brobecke@gnat.com>
855ff2e1 41833
07fc65c4
GB
41834 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41835 containing the name of the Ada Main Program. This string is mainly
855ff2e1
GB
41836 intended for the debugger.
41837 (Gen_Output_File_C): Do the equivalent change when generating a C file.
82a4b025 41838
9e94c78f 418392001-12-17 Robert Dewar <dewar@gnat.com>
855ff2e1
GB
41840
41841 * ali.adb: Set new Dummy_Entry field in dependency entry
82a4b025 41842
855ff2e1 41843 * ali.ads: Add Dummy_Entry field to source dependency table
82a4b025 41844
855ff2e1 41845 * bcheck.adb (Check_Consistency): Ignore dummy D lines
82a4b025 41846
855ff2e1 41847 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
82a4b025 41848
855ff2e1 41849 * lib-writ.ads: Document dummy D lines for missing files.
82a4b025 41850
855ff2e1
GB
41851 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41852
9e94c78f 418532001-12-17 Robert Dewar <dewar@gnat.com>
c1c22e7a
GB
41854
41855 * ali.adb: Type reference does not reset current file.
82a4b025 41856
c1c22e7a 41857 * ali.adb: Recognize and scan renaming reference
82a4b025 41858
c1c22e7a 41859 * ali.ads: Add spec for storing renaming references.
82a4b025 41860
c1c22e7a 41861 * lib-xref.ads: Add documentation for handling of renaming references
82a4b025 41862
c1c22e7a 41863 * lib-xref.adb: Implement output of renaming reference.
82a4b025 41864
c1c22e7a
GB
41865 * checks.adb:
41866 (Determine_Range): Document local variables
41867 (Determine_Range): Make sure Hbound is initialized. It looks as though
41868 there could be a real problem here with an uninitialized reference
41869 to Hbound, but no actual example of failure has been found.
82a4b025 41870
9e94c78f 418712001-12-17 Laurent Pautet <pautet@gnat.com>
c1c22e7a
GB
41872
41873 * g-socket.ads:
41874 Fix comment of Shutdown_Socket and Close_Socket. These functions
41875 should not fail silently because if they are called twice, this
41876 probably means that there is a race condition in the user program.
41877 Anyway, this behaviour is consistent with the rest of this unit.
41878 When an error occurs, an exception is raised with the error message
41879 as exception message.
41880
9e94c78f 418812001-12-17 Robert Dewar <dewar@gnat.com>
7eb7bb07 41882
07fc65c4 41883 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
7eb7bb07 41884 that it happens before modification of Sloc values for -gnatD.
82a4b025 41885
07fc65c4 41886 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
7eb7bb07 41887 so that it happens before modification of Sloc values for -gnatD.
82a4b025 41888
7eb7bb07
RD
41889 * switch.adb: Minor reformatting
41890
b6434700
RH
418912001-12-15 Richard Henderson <rth@redhat.com>
41892
41893 * sem_ch7.adb: Wrap comment.
41894
44d6a706
JM
418952001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41896
41897 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41898 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41899 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41900 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41901 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41902 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41903 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41904 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41905 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41906 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41907 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41908 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41909 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41910 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41911 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41912 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41913 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41914 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41915 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41916 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41917 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41918 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41919 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41920 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41921 spelling errors.
41922
9e94c78f 419232001-12-14 Vincent Celier <celier@gnat.com>
226ada7a 41924
07fc65c4 41925 * osint.adb(Create_Debug_File): When an object file is specified,
226ada7a 41926 put the .dg file in the same directory as the object file.
82a4b025 41927
9e94c78f 419282001-12-14 Robert Dewar <dewar@gnat.com>
226ada7a
GB
41929
41930 * osint.adb: Minor reformatting
82a4b025 41931
07fc65c4 41932 * lib-xref.adb (Output_Instantiation): New procedure to generate
226ada7a 41933 instantiation references.
82a4b025 41934
226ada7a 41935 * lib-xref.ads: Add documentation of handling of generic references.
82a4b025 41936
07fc65c4 41937 * ali.adb (Read_Instantiation_Ref): New procedure to read
226ada7a 41938 instantiation references
82a4b025 41939
226ada7a 41940 * ali.ads: Add spec for storing instantiation references
82a4b025 41941
226ada7a 41942 * bindusg.adb: Minor reformatting
82a4b025 41943
226ada7a 41944 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 41945
226ada7a 41946 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 41947
226ada7a 41948 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 41949
226ada7a 41950 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 41951
226ada7a
GB
41952 * csets.ads:
41953 Fix header format
41954 Add 2001 to copyright date
41955 Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 41956
9e94c78f 419572001-12-14 Matt Gingell <gingell@gnat.com>
226ada7a 41958
07fc65c4 41959 * adaint.c: mktemp is a macro on Lynx and can not be used as an
226ada7a 41960 expression.
82a4b025 41961
9e94c78f 419622001-12-14 Richard Kenner <kenner@gnat.com>
226ada7a 41963
07fc65c4 41964 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
226ada7a 41965 if operand is CONSTRUCTOR.
82a4b025 41966
9e94c78f 419672001-12-14 Ed Schonberg <schonber@gnat.com>
226ada7a 41968
07fc65c4
GB
41969 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41970 before emiting check on right-hand side, so that exception information
226ada7a
GB
41971 is correct.
41972
9e94c78f 419732001-12-14 Richard Kenner <kenner@gnat.com>
82a4b025 41974
07fc65c4 41975 * utils.c (create_var_decl): Throw away initializing expression
226ada7a 41976 if just annotating types and non-constant.
82a4b025 41977
9e94c78f 419782001-12-14 Vincent Celier <celier@gnat.com>
226ada7a
GB
41979
41980 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41981 Default_Ada_...
82a4b025 41982
07fc65c4 41983 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
41984 Remove functions.
41985 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
82a4b025 41986
07fc65c4 41987 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
41988 Remove functions.
41989 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41990
9b94bf9e
JM
419912001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41992
41993 * ChangeLog: Remove piece of diff output.
41994
9e94c78f 419952001-12-14 Geert Bosch <bosch@gnat.com>
449d2be3
GB
41996
41997 * config-lang.in: Update copyright notice
41998
41999 * layout.adb: Remove commented out code.
42000
42001 * mdllfile.ads: Update copyright notice. Fix header format.
42002
42003 * sem_case.ads: Likewise.
42004
42005 * sem_ch3.adb: Minor reformatting.
42006
9e94c78f 420072001-12-12 Geert Bosch <bosch@gnat.com>
e5bd5cb4
GB
42008
42009 * freeze.ads: Update copyright date.
42010
42011 * g-comlin.ads: Minor reformatting.
42012
42013 * gnat-style.texi: Fix typo.
42014
9e94c78f 420152001-12-12 Geert Bosch <bosch@gnat.com>
b468d8ec
GB
42016
42017 * einfo.h: Regenerate.
42018
9e94c78f 420192001-12-12 Ed Schonberg <schonber@gnat.com>
ed7da216 42020
07fc65c4 42021 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
ed7da216 42022 on known node types, rather than untyped fields. Further cleanups.
82a4b025 42023
9e94c78f 420242001-12-12 Robert Dewar <dewar@gnat.com>
ed7da216
GB
42025
42026 * sem_ch12.adb:
42027 (Save_Entity_Descendant): Minor comment update.
42028 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
07fc65c4 42029 of an N_Attribute_Reference node. As per note below, this does not
ed7da216 42030 eliminate need for Associated_Node in attribute ref nodes.
07fc65c4 42031 (Associated_Node): Documentation explicitly mentions attribute
ed7da216 42032 reference nodes, since this field is used in such nodes.
82a4b025 42033
ed7da216
GB
42034 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
42035
9e94c78f 420362001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
42037
42038 * s-stalib.adb: Add more comments on with statements being needed
82a4b025 42039
de76a39c 42040 * par-ch12.adb: Minor reformatting
82a4b025 42041
de76a39c 42042 * prj-dect.ads: Fix copyright header
82a4b025 42043
07fc65c4 42044 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
de76a39c 42045 inputs fit in 32 bits, but the result still overflows.
82a4b025 42046
de76a39c 42047 * s-fatgen.ads: Minor comment improvement
82a4b025 42048
9e94c78f 420492001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 42050
07fc65c4
GB
42051 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
42052 formal derived type, look for an inherited component from the full
de76a39c 42053 view of the parent, if any.
82a4b025 42054
9e94c78f 420552001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
42056
42057 * checks.ads (Apply_Alignment_Check): New procedure.
82a4b025 42058
07fc65c4
GB
42059 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
42060 ensure that the alignment of objects with address clauses is
de76a39c
GB
42061 appropriate, and raise PE if not.
42062
07fc65c4 42063 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
de76a39c 42064 Exp_Pakd.Known_Aligned_Enough
82a4b025 42065
de76a39c
GB
42066 * mdllfile.ads: Minor reformatting
42067
42068 * mlib-fil.ads: Minor reformatting
82a4b025 42069
9e94c78f 420702001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 42071
07fc65c4
GB
42072 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
42073 fix to any component reference if enclosing record has non-standard
de76a39c 42074 representation.
82a4b025 42075
9e94c78f 420762001-12-12 Vincent Celier <celier@gnat.com>
de76a39c 42077
07fc65c4 42078 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
de76a39c 42079 Iteration
82a4b025 42080
9e94c78f 420812001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 42082
07fc65c4 42083 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
de76a39c 42084 sem_attr.
82a4b025 42085
9e94c78f 420862001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
42087
42088 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
82a4b025 42089
9e94c78f 420902001-12-12 Emmanuel Briot <briot@gnat.com>
de76a39c
GB
42091
42092 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42093 and it adds dependencies to system.io.
82a4b025 42094
9e94c78f 420952001-12-12 Pascal Obry <obry@gnat.com>
de76a39c 42096
07fc65c4 42097 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
de76a39c
GB
42098 variable name.
42099
9e94c78f 421002001-12-11 Ed Schonberg <schonber@gnat.com>
0b09835f
ES
42101
42102 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
07fc65c4
GB
42103 that is the parent of other generics, the instance body replaces the
42104 instance node. Retrieve the instance of the spec, which is the one
0b09835f
ES
42105 that is visible in clients and within the body.
42106
9e94c78f 421072001-12-11 Vincent Celier <celier@gnat.com>
598c3446
GB
42108
42109 * gnatmain.adb: Initial version.
82a4b025 42110
598c3446 42111 * gnatmain.ads: Initial version.
82a4b025 42112
598c3446 42113 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
82a4b025 42114
598c3446 42115 * snames.adb: Updated to match snames.ads.
82a4b025 42116
598c3446 42117 * snames.ads: Added Gnatstub.
82a4b025 42118
9e94c78f 421192001-12-11 Vincent Celier <celier@gnat.com>
598c3446 42120
07fc65c4 42121 * prj-attr.adb (Initialization_Data): Change name from
598c3446 42122 Initialisation_Data.
82a4b025 42123
9e94c78f 421242001-12-11 Emmanuel Briot <briot@gnat.com>
598c3446
GB
42125
42126 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42127 + and * applied to backslashed expressions like \r.
82a4b025 42128
9e94c78f 421292001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
598c3446 42130
07fc65c4 42131 * g-os_lib.ads: String_List type added, Argument_List type is now
598c3446 42132 subtype of String_List.
82a4b025 42133
9e94c78f 421342001-12-11 Robert Dewar <dewar@gnat.com>
598c3446
GB
42135
42136 * g-os_lib.ads: Change copyright to FSF
42137 Add comments for String_List type
82a4b025 42138
9e94c78f 421392001-12-11 Vincent Celier <celier@gnat.com>
598c3446 42140
07fc65c4 42141 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
598c3446
GB
42142 string to the buffer).
42143
9e94c78f 421442001-12-11 Ed Schonberg <schonber@gnat.com>
7fb754a1
GB
42145
42146 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42147 sem_attr.
82a4b025 42148
7fb754a1 42149 * sem_attr.adb: Simplify previous fix for Address.
07fc65c4
GB
42150 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42151 to avoid anomalies where the bound of the type appears to raise
7fb754a1
GB
42152 constraint error.
42153
9e94c78f 421542001-12-11 Robert Dewar <dewar@gnat.com>
7fb754a1 42155
07fc65c4 42156 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
7fb754a1 42157 handled.
82a4b025 42158
9e94c78f 421592001-12-11 Ed Schonber <schonber@gnat.com>
7fb754a1 42160
07fc65c4 42161 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
7fb754a1 42162 renamed unit before checking for recursive instantiations.
82a4b025 42163
9e94c78f 421642001-12-11 Emmanuel Briot <briot@gnat.com>
7fb754a1
GB
42165
42166 * prj.ads: Add comments for some of the fields.
42167
9e94c78f 421682001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc 42169
07fc65c4 42170 * lib-xref.adb (Output_Refs): Don't output type references outside
0873bafc 42171 the main unit if they are not otherwise referenced.
82a4b025 42172
9e94c78f 421732001-12-11 Ed Schonberg <schonber@gnat.com>
0873bafc 42174
07fc65c4 42175 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
0873bafc 42176 code and diagnose additional illegal uses
82a4b025 42177
07fc65c4 42178 * sem_util.adb (Is_Object_Reference): An indexed component is an
0873bafc 42179 object only if the prefix is.
82a4b025 42180
9e94c78f 421812001-12-11 Vincent Celier <celier@gnat.com>
0873bafc
GB
42182
42183 * g-diopit.adb: Initial version.
82a4b025 42184
0873bafc 42185 * g-diopit.ads: Initial version.
82a4b025 42186
0873bafc
GB
42187 * g-dirope.adb:
42188 (Expand_Path): Avoid use of Unbounded_String
42189 (Find, Wildcard_Iterator): Moved to child package Iteration
82a4b025 42190
0873bafc 42191 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
82a4b025 42192
9e94c78f 421932001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc
GB
42194
42195 * sem_attr.adb: Minor reformatting
42196
9e94c78f 421972001-12-11 Ed Schonberg <schonber@gnat.com>
d087cd96
GB
42198
42199 * sem_ch3.adb: Clarify some ???.
82a4b025 42200
9e94c78f 422012001-12-11 Robert Dewar <dewar@gnat.com>
d087cd96 42202
07fc65c4 42203 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
d087cd96 42204 Exp_Pakd.Known_Aligned_Enough
82a4b025 42205
07fc65c4 42206 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
d087cd96
GB
42207 version is moved to Exp_Ch13.
42208
9e94c78f 422092001-12-11 Robert Dewar <dewar@gnat.com>
d087cd96
GB
42210
42211 * einfo.ads: Minor reformatting
82a4b025 42212
d087cd96 42213 * exp_ch5.adb: Add comment for previous.change
82a4b025 42214
d087cd96 42215 * ali.adb: New interface for extended typeref stuff.
82a4b025 42216
d087cd96 42217 * ali.ads: New interface for typeref stuff.
82a4b025 42218
d087cd96 42219 * checks.adb (Apply_Alignment_Check): New procedure.
82a4b025 42220
d087cd96 42221 * debug.adb: Add -gnatdM for modified ALI output
82a4b025 42222
d087cd96 42223 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
82a4b025 42224
07fc65c4
GB
42225 * lib-xref.adb: Extend generation of <..> notation to cover
42226 subtype/object types. Note that this is a complete rewrite,
42227 getting rid of the very nasty quadratic algorithm previously
d087cd96 42228 used for derived type output.
82a4b025 42229
07fc65c4
GB
42230 * lib-xref.ads: Extend description of <..> notation to cover
42231 subtype/object types. Uses {..} for these other cases.
d087cd96 42232 Also use (..) for pointer types.
82a4b025 42233
d087cd96 42234 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
82a4b025 42235
07fc65c4 42236 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
d087cd96
GB
42237 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42238
9e94c78f 422392001-12-11 Vincent Celier <celier@gnat.com>
290986ed
GB
42240
42241 * gnatcmd.adb:
42242 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42243 Changed /BIND_ONLY to /ACTIONS=BIND
42244 Changed /LINK_ONLY to /ACTIONS=LINK
82a4b025 42245
290986ed
GB
422462001-12-11 Ed Schonberg <schonber@gnat.com>
42247
42248 * sem_ch8.adb (Find_Selected_Component): improved search for a
42249 candidate package in case of error.
82a4b025 42250
290986ed
GB
42251 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42252 chain back on scope stack before reinstalling use clauses.
82a4b025 42253
290986ed
GB
42254 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42255 is enabled, do not kill the code for the condition, to preserve
42256 warning.
42257
9e94c78f 422582001-12-11 Robert Dewar <dewar@gnat.com>
84157f51 42259
07fc65c4 42260 * checks.adb (Insert_Valid_Check): Apply validity check to expression
84157f51
GB
42261 of conversion, not to result of conversion.
42262
9e94c78f 422632001-12-11 Ed Schonberg <schonber@gnat.com>
82a4b025 42264
07fc65c4
GB
42265 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42266 before freezing parent. If the declarations are mutually recursive,
42267 an access to the current record type may be frozen before the
84157f51
GB
42268 derivation is complete.
42269
9e94c78f 422702001-12-05 Vincent Celier <celier@gnat.com>
7ffa903f 42271
07fc65c4 42272 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
7ffa903f 42273 -c /COMPILE_ONLY, -l /LINK_ONLY
82a4b025 42274
7ffa903f
VC
42275 * opt.ads:
42276 (Bind_Only): New Flag
42277 (Link_Only): New flag
82a4b025 42278
07fc65c4 42279 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
7ffa903f 42280 and -l (Link_Only)
82a4b025 42281
7ffa903f 42282 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
82a4b025 42283
7ffa903f
VC
42284 * make.adb:
42285 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42286 (Gnatmake): Set the step flags. Only perform a step if the
42287 corresponding step flag is True.
42288 (Scan_Make_Arg): Reset the bind and link step flags when -u
42289 or -gnatc has been specified.
42290
9e94c78f 422912001-12-05 Ed Schonberg <schonber@gnat.com>
f91b40db 42292
07fc65c4 42293 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
f91b40db 42294 get bounds from right operand.
82a4b025 42295
f91b40db 42296 * sem_eval.adb: Minor reformatting
82a4b025 42297
07fc65c4 42298 * exp_util.adb (Make_Literal_Range): use bound of literal rather
f91b40db 42299 than Index'First, its lower bound may be different from 1.
82a4b025 42300
07fc65c4 42301 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
f91b40db 42302 and C48009J
82a4b025 42303
9e94c78f 423042001-12-05 Vincent Celier <celier@gnat.com>
f91b40db
GB
42305
42306 * prj-nmsc.adb Minor reformatting
82a4b025 42307
07fc65c4 42308 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
f91b40db 42309 set and libraries are not supported.
82a4b025 42310
9e94c78f 423112001-12-05 Ed Schonberg <schonber@gnat.com>
f91b40db 42312
07fc65c4
GB
42313 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42314 private view explicitly, so the back-end can treat as a global
f91b40db
GB
42315 when appropriate.
42316
9e94c78f 423172001-12-05 Ed Schonberg <schonber@gnat.com>
45d04cbb
GB
42318
42319 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42320 unit, always replace instance node with new body, for ASIS use.
42321
9e94c78f 423222001-12-05 Vincent Celier <celier@gnat.com>
82a4b025 42323
07fc65c4
GB
42324 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42325 libraries are not supported and both attributes Library_Name and
45d04cbb 42326 Library_Dir are specified.
82a4b025 42327
07fc65c4 42328 * prj-proc.adb (Expression): Set location of Result to location of
45d04cbb 42329 first term.
82a4b025 42330
45d04cbb
GB
42331 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42332 (prj-nmsc is now importing MLib.Tgt)
82a4b025 42333
45d04cbb
GB
42334 * prj-proc.adb: Put the change indicated above that was forgotten.
42335
9e94c78f 423362001-12-05 Robert Dewar <dewar@gnat.com>
84436014
RD
42337
42338 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42339
9e94c78f 423402001-12-05 Ed Schonberg <schonber@gnat.com>
7ae0dcd8
ES
42341
42342 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42343 constraint, introduce explicit subtype declaration and derive from it.
82a4b025 42344
7ae0dcd8
ES
42345 * sem_ch3.adb: Minor reformatting
42346
9e94c78f 423472001-12-05 Robert Dewar <dewar@gnat.com>
c9a4817d 42348
07fc65c4 42349 * checks.adb (Determine_Range): Increase cache size for checks.
c9a4817d 42350 Minor reformatting
82a4b025 42351
c9a4817d
RD
42352 * exp_ch6.adb: Minor reformatting
42353 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42354 a parameter whose root type is System.Address, since treating such
42355 subprograms as pure in the code generator is almost surely a mistake
42356 that will lead to unexpected results.
82a4b025 42357
07fc65c4 42358 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
c9a4817d 42359 change handling of conversions.
82a4b025 42360
c9a4817d
RD
42361 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42362
9e94c78f 423632001-12-05 Ed Schonberg <schonber@gnat.com>
2514b839 42364
07fc65c4
GB
42365 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42366 aggregate with static wrong size, attach generated Raise node to
2514b839
ES
42367 declaration.
42368
9e94c78f 423692001-12-05 Robert Dewar <dewar@gnat.com>
457b6274 42370
07fc65c4 42371 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
457b6274
RD
42372 Fixes compilation abandoned bomb in B24009B.
42373
9e94c78f 423742001-12-05 Ed Schonberg <schonber@gnat.com>
19349925
ES
42375
42376 * sem_ch12.adb:
42377 Document use of Associated_Node on Selected_Components.
42378 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42379 to clarify use of untyped descendant fields.
42380
9e94c78f 423812001-12-05 Robert Dewar <dewar@gnat.com>
6663c393
RD
42382
42383 * prj-dect.ads: Add ??? comment
42384 Add 2001 to copyright notice (was not done in after all)
82a4b025 42385
6663c393 42386 * prj-part.adb: Minor reformatting. Reword one awkward error message.
82a4b025 42387
6663c393 42388 * prj.ads: Minor reformatting throughout, and add some ??? comments
82a4b025 42389
6663c393
RD
42390 * snames.ads: Minor reformatting
42391
9e94c78f 423922001-12-05 Geert Bosch <bosch@gnat.com>
d7b2a6af
GB
42393
42394 * snames.adb: Autoupdate
42395
9e94c78f 423962001-12-05 Vincent Celier <celier@gnat.com>
fbc9a404
VC
42397
42398 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
82a4b025 42399
fbc9a404 42400 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
82a4b025 42401
fbc9a404 42402 * prj-env.adb: Minor comment changes (modifying -> extends).
82a4b025 42403
fbc9a404 42404 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
82a4b025 42405
07fc65c4 42406 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
fbc9a404 42407 Tok_Extends.
82a4b025 42408
fbc9a404 42409 * prj.adb (Initialize): Change Modifying to Extends.
82a4b025 42410
fbc9a404 42411 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
82a4b025 42412
fbc9a404 42413 * prj.ads: Minor comment change (Modifying -> extending).
82a4b025 42414
fbc9a404
VC
42415 * snames.ads: Change modifying to extends.
42416
9e94c78f 424172001-12-05 Robert Dewar <dewar@gnat.com>
7cff0b1b 42418
07fc65c4 42419 * sem_warn.adb: Remove stuff for conditionals, we are not going to
7cff0b1b 42420 do this after all.
82a4b025 42421
07fc65c4 42422 * sem_warn.ads: Remove stuff for conditionals, we are not going to
7cff0b1b
RD
42423 do this after all. Add 2001 to copyright notice
42424
9e94c78f 424252001-12-04 Geert Bosch <bosch@gnat.com>
4f56ebb7
GB
42426
42427 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
42428
9e94c78f 424292001-12-04 Robert Dewar <dewar@gnat.com>
053defdf 42430
07fc65c4
GB
42431 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42432 location if we already have errors. Stops some cases of cascaded
053defdf 42433 errors.
82a4b025 42434
053defdf
RD
42435 * errout.adb: Improve comment.
42436
9e94c78f 424372001-12-04 Robert Dewar <dewar@gnat.com>
f311e166
RD
42438
42439 * sem_ch12.adb:
42440 (Analyze_Formal_Type_Definition): Defend against Error.
42441 (Analyze_Formal_Subprogram): Defend against Error.
82a4b025 42442
07fc65c4 42443 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
f311e166
RD
42444 remove following semicolon if present. Removes cascaded error.
42445
9e94c78f 424462001-12-04 Douglas B. Rupp <rupp@gnat.com>
d61bd65a
DR
42447
42448 * bindgen.adb:
42449 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42450 exceptions equals 0.
42451 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42452 Fixes PIWG E tests (which have to be run with -gnatL).
42453
9e94c78f 424542001-12-04 Robert Dewar <dewar@gnat.com>
4ba603e2
RD
42455
42456 * einfo.ads: Minor reformatting
42457
9e94c78f 424582001-12-04 Ed Schonberg <schonber@gnat.com>
57568d91 42459
07fc65c4
GB
42460 * einfo.ads: Block_Node points to the identifier of the block, not to
42461 the block node itself, to preserve the link when the block is
42462 rewritten, e.g. within an if-statement with a static condition.
82a4b025 42463
07fc65c4 42464 * inline.adb (Cleanup_Scopes): recover block statement from block
57568d91 42465 entity using new meaning of Block_Node.
82a4b025 42466
07fc65c4 42467 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
57568d91
ES
42468 identifier of block node, rather than to node itself.
42469
9e94c78f 424702001-12-04 Gary Dismukes <dismukes@gnat.com>
82a4b025 42471
0815d36a
GD
42472 * layout.adb:
42473 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42474 (Discrimify): Go back to setting the Etypes of the selected component
07fc65c4 42475 because the Vname component does not exist at this point and will
0815d36a
GD
42476 fail name resolution. Also set Analyzed.
42477 Remove with and use of Sem_Res.
42478
9e94c78f 424792001-12-04 Arnaud Charlet <charlet@gnat.com>
edc0f304
AC
42480
42481 * Makefile.in: (HIE_SOURCES): add s-fat*.
42482
9e94c78f 424832001-12-04 Robert Dewar <dewar@gnat.com>
32213142
RD
42484
42485 * sem_attr.adb:
42486 (Compile_Time_Known_Attribute): New procedure.
42487 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42488 proper range check.
42489
9e94c78f 424902001-12-04 Ed Schonberg <schonber@gnat.com>
c0def2ad 42491
07fc65c4 42492 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
c0def2ad
ES
42493 processing discriminants to diagnose illegal default values.
42494
9e94c78f 424952001-12-04 Ed Schonberg <schonber@gnat.com>
ee0a48c5 42496
07fc65c4
GB
42497 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42498 access discriminant within a type extension that constrains its
ee0a48c5
ES
42499 parent discriminants.
42500
9e94c78f 425012001-12-04 Ed Schonberg <schonber@gnat.com>
dd5875a6 42502
07fc65c4 42503 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
dd5875a6 42504 is malformed, use instance of Any_Id to allow analysis to proceed.
82a4b025 42505
07fc65c4 42506 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
dd5875a6
ES
42507 type definition is illegal.
42508 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42509 misplaced.
42510
9e94c78f 425112001-12-04 Ed Schonberg <schonber@gnat.com>
c2a41e57 42512
07fc65c4 42513 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
c2a41e57
ES
42514 constants.
42515
9e94c78f 425162001-12-04 Robert Dewar <dewar@gnat.com>
0ae84753
RD
42517
42518 * errout.adb: Minor reformatting
42519
9e94c78f 425202001-12-04 Robert Dewar <dewar@gnat.com>
63db260e
RD
42521
42522 * exp_util.adb: Minor reformatting from last change
82a4b025 42523
07fc65c4
GB
42524 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42525 which is a rewriting of an expression, traverse the original
63db260e
RD
42526 expression to remove warnings that may have been posted on it.
42527
9e94c78f 425282001-12-04 Ed Schonberg <schonber@gnat.com>
c6d289f4 42529
07fc65c4 42530 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
c6d289f4
ES
42531 record that has other packed components.
42532
9e94c78f 425332001-12-04 Douglass B. Rupp <rupp@gnat.com>
5917e80d
DR
42534
42535 * adaint.c: Minor cleanups.
42536
9e94c78f 425372001-12-04 Douglass B. Rupp <rupp@gnat.com>
2c70f9dd
DR
42538
42539 * adaint.c: Do not use utime.h on vxworks.
42540
9e94c78f 425412001-12-04 Arnaud Charlet <charlet@gnat.com>
e59b3387 42542
07fc65c4 42543 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
e59b3387
AC
42544 more confusion than it solves.
42545
9e94c78f 425462001-12-04 Geert bosch <bosch@gnat.com>
e288604a
GB
42547
42548 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42549
5ac21013
GB
425502001-12-04 Geert Bosch <bosch@gnat.com>
42551
07fc65c4 42552 * Makefile.in (update-sources): New target.
5ac21013
GB
42553 For use by gcc_release script.
42554
9e94c78f 425552001-12-04 Ed Schonberg <schonber@gnat.com>
7dd5bd5e 42556
07fc65c4 42557 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
7dd5bd5e
ES
42558 a configuration pragma, it is now legal wherever a pragma can appear.
42559
a078a589
ZW
425602001-12-04 Zack Weinberg <zack@codesourcery.com>
42561
42562 * Makefile.in: Don't set ALL. Delete @cross_defines@,
42563 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
42564 is now @CROSS@ -DIN_GCC; update comment.
42565
9e94c78f 425662001-12-04 Robert Dewar <dewar@gnat.com>
0839863c
GB
42567
42568 * einfo.adb (Has_Pragma_Pure_Function): New flag.
42569 Fix problem that stopped ceinfo from working
82a4b025 42570
0839863c 42571 * einfo.ads (Has_Pragma_Pure_Function): New flag.
82a4b025 42572
0839863c
GB
42573 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42574
9e94c78f 425752001-12-04 Douglas B. Rupp <rupp@gnat.com>
9678de49
DR
42576
42577 * gnatchop.adb:
42578 (File_Time_Stamp): New procedure.
42579 (Preserve_Mode): New boolean.
42580 (Write_Unit): Pass time stamp.
42581 Implement -p switch (preserve time stamps).
82a4b025 42582
9678de49 42583 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
82a4b025 42584
9678de49 42585 * gnatchop.adb: Do usage info for -p switch
82a4b025 42586
9678de49 42587 * adaint.h (__gnat_set_file_time_name): New function
82a4b025 42588
9678de49 42589 * adaint.c (__gnat_set_file_time_name): Implement
82a4b025 42590
9678de49
DR
42591 * adaint.h: Fix typo
42592
9e94c78f 425932001-12-03 Robert Dewar <dewar@gnat.com>
3b9a13c4 42594
667e5c5d 42595 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
b4f94ac1 42596 have Associated_Node.
3b9a13c4 42597
9e94c78f 425982001-12-03 Robert Dewar <dewar@gnat.com>
767b404e
RD
42599
42600 * prj-proc.adb: Minor reformatting
667e5c5d 42601
767b404e
RD
42602 * make.adb: Minor reformatting
42603
9e94c78f 426042001-12-03 Geert Bosch <bosch@gnat.com>
11ac71ba 42605
667e5c5d 42606 * make.adb: Minor reformatting.
11ac71ba 42607
ef3d4d6e 426082001-12-03 Robert Dewar <dewar@gnat.com>
b1446533
RD
42609
42610 * sem_ch12.adb: Minor reformatting
42611
9e94c78f 426122001-12-03 Ed Schonberg <schonber@gnat.com>
d6d32b24 42613
667e5c5d
AJ
42614 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42615 push Standard on the stack before analyzing the instance body,
d6d32b24 42616 in order to have a clean visibility environment.
667e5c5d
AJ
42617
42618 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
d6d32b24 42619
9e94c78f 426202001-12-03 Ed Schonberg <schonber@gnat.com>
13f08f03 42621
667e5c5d 42622 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13f08f03
ES
42623 instantiation of a body that contains an inlined body.
42624
9e94c78f 426252001-12-03 Ed Schonberg <schonber@gnat.com>
3bd6c100
ES
42626
42627 * sem_ch12.adb:
42628 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42629 to prevent freezing within formal packages.
42630 (Freeze_Subprogram_Body): If body comes from another instance that
42631 appeared before its own body, place freeze node at end of current
42632 declarative part, to prevent a back-end crash.
42633 (Inline_Instance_Body): Handle properly a package instance within
42634 a subprogram instance that is a child unit.
42635
58d07d8f
GS
426362001-12-01 Graham Stott <grahams@redhat.com>
42637
42638 * Makefile.in (misc.o): Add missing $(srcdir) prefix
42639 and add optabs.h dependency.
42640
42641 * misc.c: Include optabs.h
42642 (gnat_tree_code_type): Make static and const.
42643 (gnat_tree_code_length): Likewise.
42644 (gnat_tree_code_name): Likewise.
42645 (update_setjmp_buf): Obtain operands mode from insn_data.
42646
c87222f0
RH
426472001-11-29 Richard Henderson <rth@redhat.com>
42648
42649 * init.c: Remove obsolete dwarf2 frame.h section.
42650
d3945f0a
JM
426512001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
42652
42653 * Make-lang.in (ada.generated-manpages): New dummy target.
42654
9e94c78f 426552001-11-29 Ed Schonberg <schonber@gnat.com>
9f639397 42656
667e5c5d
AJ
42657 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42658 into Command, an array conversion is illegal here. Uncovered by
9f639397
ES
42659 ACATS B460005.
42660
9e94c78f 426612001-11-28 Geert Bosch <bosch@gnat.com>
c835e5c6
GB
42662
42663 * init.c: Minor whitespace changes.
42664
9e94c78f 426652001-11-28 Doug Rupp <rupp@gnat.com>
49bb4548 42666
667e5c5d 42667 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
49bb4548
DR
42668 signal stack.
42669
ea2417e5
ZW
426702001-11-28 Zack Weinberg <zack@codesourcery.com>
42671
42672 * misc.c (gnat_expand_constant): Move declaration above
42673 definition of lang_hooks.
42674 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42675 (gnat_init): lang_expand_constant no longer exists.
42676
42677 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
42678 always have vprintf.
42679 (gnat_init): Always call set_internal_error_function.
42680
f8e0aa73
AJ
426812001-11-27 Andreas Jaeger <aj@suse.de>
42682
42683 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42684
d99b0e79
LG
426852001-11-27 Laurent Guerby <guerby@acm.org>
42686
42687 * Makefile.in: Regenerate Ada dependencies.
42688
3f0496e5
RH
426892001-11-26 Richard Henderson <rth@redhat.com>
42690
42691 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42692 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42693 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42694
92fa4733
LG
426952001-11-25 Laurent Guerby <guerby@acm.org>
42696
42697 * sysdep.c (rts_get_*): Fix style.
42698
07626501
LG
426992001-11-19 Laurent Guerby <guerby@acm.org>
42700
42701 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42702 since it is of no apparent use and cause warnings.
42703
22703ccc
NB
427042001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
42705
42706 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42707 static too.
42708 (gnat_init): Don't return NULL.
42709 (finish_parse): Remove.
42710
b0df4321
LG
427112001-11-17 Laurent Guerby <guerby@acm.org>
42712
42713 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42714 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42715 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42716 * lang-spec.h: Add missing struct field to silence warnings.
42717 * sysdep.c (rts_get_*): Provide K&R prototype.
42718 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42719 * traceback.c (Unlock_Task, Lock_Task): Likewise.
42720 * tracebak.c (__gnat_backtrace): Remove unused variable.
42721 * utils.c (end_subprog_body): Move to K&R style.
42722
d215024f
RK
42723Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42724
42725 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42726
f5e99456
NB
427272001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
42728
42729 * misc.c (gnat_init): Change prototype. Include the
42730 functionality of the old init_parse and init_decl_processing.
42731 (gnat_init_decl_processing): New prototype.
42732 (init_parse): Remove.
42733 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42734
5d69f816
NB
427352001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42736
42737 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42738 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42739 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42740 set_yydebug): Remove.
42741
3ac88239
NB
427422001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42743
42744 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42745 (struct lang_hooks): Constify.
42746 (language_string, lang_identify): Remove.
42747 * utils.c (init_decl_processing): Update.
42748
d23c55c2
NB
427492001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
42750
42751 * misc.c: Include langhooks-def.h.
42752 * Makefile.in: Update.
42753
9e94c78f 427542001-10-30 Robert Dewar <dewar@gnat.com>
04a1b79c
RD
42755
42756 * style.adb:
42757 (Check_Identifier): Rewrite circuit to be compatible with use of letters
42758 in the upper half of ASCII.
42759 (Check_Identifier): Minor reformatting
42760
9e94c78f 427612001-10-30 Geert Bosch <bosch@gnat.com>
81fa2d39 42762
f8e0aa73 42763 * (Associated_Node, Set_Associated_Node): Do not check for
81fa2d39
GB
42764 Freeze_Entity.
42765
9e94c78f 427662001-10-30 Robert Dewar <dewar@gnat.com>
ffc5527f
RD
42767
42768 * a-reatim.ads: Minor reformatting
42769
9e94c78f 427702001-10-30 Robert Dewar <dewar@gnat.com>
865335eb 42771
f8e0aa73 42772 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
865335eb
RD
42773 undocumented declarations.
42774
9e94c78f 427752001-10-30 Pascal Obry <obry@gnat.com>
5e257178 42776
f8e0aa73 42777 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
5e257178
PO
42778 to the binder and linker.
42779 Minor style fix.
f8e0aa73 42780
5e257178
PO
42781 * mdll.ads: Fix layout. Update copyright notice.
42782
42783 * mdll.adb: Fix layout. Update copyright notice.
42784
9e94c78f 427852001-10-30 Robert Dewar <dewar@gnat.com>
1753e0ad
RD
42786
42787 * usage.adb: Minor fix to output for -gnaty.
42788
9e94c78f 427892001-10-30 Ed Schonberg <schonber@gnat.com>
84bfdde0 42790
f8e0aa73
AJ
42791 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42792 to accommodate all its possible values.
84bfdde0 42793
f8e0aa73 42794 * a-reatim.adb (Split): Special-case handling of Time_Span_First
84bfdde0
ES
42795 and of small absolute values of T.
42796
9e94c78f 427972001-10-30 Richard Kenner <kenner@gnat.com>
c296e5fc 42798
f8e0aa73
AJ
42799 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42800 set_mem_attributes since not needed and wrong if RESULT if a REG;
c296e5fc
RK
42801 fixes ACATS failures.
42802
9e94c78f 428032001-10-30 Geert Bosch <bosch@gnat.com>
07c809df
GB
42804
42805 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42806 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42807
9e94c78f 428082001-10-30 Robert Dewar <dewar@gnat.com>
f8e0aa73 42809
54d22416 42810 * bindusg.adb: Undocument -f switch.
f8e0aa73 42811
54d22416 42812 * gnatcmd.adb: Remove /FULL_ELABORATION.
f8e0aa73
AJ
42813
42814 * opt.ads (Force_RM_Elaboration_Order): Document that this is
54d22416 42815 obsolescent.
f8e0aa73 42816
54d22416 42817 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
f8e0aa73 42818
54d22416
RD
42819 * gnatbind.adb: Minor update of warning msg.
42820
9e94c78f 428212001-10-30 Vincent Celier <celier@gnat.com>
af5cf6f8 42822
f8e0aa73 42823 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
af5cf6f8 42824 for project file switches (-P (/PROJECT_FILE=),
f8e0aa73 42825 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
af5cf6f8
VC
42826 or MEDIUM or HIGH)
42827
9e94c78f 428282001-10-30 Geert Bosch <bosch@gnat.com>
984bc4c3
GB
42829
42830 * decl.c: Minor whitespace fixes.
42831
9e94c78f 428322001-10-30 Richard Kenner <kenner@gnat.com>
5dece937
RK
42833
42834 * utils2.c (build_allocator): Test for SIZE overflow in array case too
42835
9e94c78f 428362001-10-30 Geert Bosch <bosch@gnat.com>
de4bf6cb 42837
f8e0aa73 42838 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
de4bf6cb 42839 Found due to GCC 3.0 warning of using uninitialized value.
f8e0aa73 42840
de4bf6cb
GB
42841 * layout.adb:
42842 (Get_Max_Size): Use variant record for tracking value/expression.
42843 Makes logic clearer and prevents warnings for uninitialized variables.
42844 (Layout_Array_Type): Use variant record for tracking value/expression.
42845 Makes logic clearer and prevents warnings for uninitialized variables.
42846
9e94c78f 428472001-10-30 Robert Dewar <dewar@gnat.com>
f5e44987
RD
42848
42849 * lib.adb: Minor reformatting
42850
42851 * s-taprop.ads: Minor reformatting
42852
45659035 428532001-10-29 Laurent Guerby <guerby@acm.org>
f8e0aa73 42854
45659035
GB
42855 * init.c:
42856 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42857 const.
42858 (_gnat_error_handler): Make MSG const.
42859
9e94c78f 428602001-10-29 Richard Kenner <kenner@gnat.com>
45659035
GB
42861
42862 * sysdep.c: Fix localtime_r problem on LynxOS.
42863 Also remove #elif to avoid warnings.
f8e0aa73
AJ
42864
42865 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45659035 42866 used by this.
f8e0aa73 42867
45659035
GB
42868 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42869
638e383e
JM
428702001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
42871
42872 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42873 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42874 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42875 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42876 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42877 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42878 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42879 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42880 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42881 types.ads, urealp.adb: Fix spelling errors.
42882
9e94c78f 428832001-10-27 Laurent Guerby <guerby@acm.org>
97f6baa0
LG
42884
42885 * trans.c (gigi): Fix non determinism leading to bootstrap
42886 comparison failures for debugging information.
42887
46b58b8c
FW
428882001-10-26 Florian Weimer <fw@deneb.enyo.de>
42889
42890 * gnat_rm.texi: Use @./@: where appropriate.
42891
9e94c78f 428922001-10-26 Robert Dewar <dewar@gnat.com>
30151c7b
RD
42893
42894 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42895
9e94c78f 428962001-10-26 Richard Kenner <kenner@gnat.com>
c0b1738d
RK
42897
42898 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42899
9e94c78f 429002001-10-26 Richard Kenner <kenner@gnat.com>
5b09c153 42901
f8e0aa73 42902 * decl.c (validate_size): Modify message for bad size to avoid
5b09c153
RK
42903 implication that compiler is modifying the size.
42904
9e94c78f 429052001-10-26 Robert Dewar <dewar@gnat.com>
4d553668
RD
42906
42907 * prj-util.adb: Minor reformatting. Fix bad header format.
42908
9e94c78f 429092001-10-26 Robert Dewar <dewar@gnat.com>
3e542a58
RD
42910
42911 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
f8e0aa73 42912
3e542a58 42913 * sinfo.ads: Clarify use of Associated_Node (documentation only).
f8e0aa73
AJ
42914
42915 * sem_ch12.adb: Change Node4 to Associated_Node. Change
42916 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
3e542a58
RD
42917 much more narrowly in places where needed. These are cleanups.
42918
9e94c78f 429192001-10-26 Joel Brobecker <brobecke@gnat.com>
0bf08bfe
JB
42920
42921 * 5zosinte.ads (null_pthread): new constant.
f8e0aa73 42922
0bf08bfe
JB
42923 * 5ztaprop.adb:
42924 (Initialize_TCB): Initialize thread ID to null, to be able to verify
42925 later that this field has been set.
42926 (Finalize_TCB): ditto.
42927 (Suspend_Task): Verify that the thread ID is not null before using it.
42928 (Resume_Task): ditto.
f8e0aa73 42929
0bf08bfe
JB
42930 * s-tasdeb.adb:
42931 (Resume_All_Tasks): Lock the tasks list before using it.
42932 (Suspend_All_Tasks): ditto.
42933
9e94c78f 429342001-10-26 Richard Kenner <kenner@gnat.com>
7a3a8c06 42935
f8e0aa73 42936 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
7a3a8c06
RK
42937 Make constant variant of designated type for Is_Access_Constant.
42938 Call update_pointer_to with main variant.
f8e0aa73
AJ
42939
42940 * trans.c (process_freeze_entity, process_type):
7a3a8c06 42941 Call update_pointer_to on main variant.
f8e0aa73 42942
7a3a8c06
RK
42943 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42944 If main variant, update all other variants.
f8e0aa73
AJ
42945
42946 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
7a3a8c06
RK
42947 TREE_STATIC.
42948
9e94c78f 429492001-10-26 Robert Dewar <dewar@gnat.com>
a160babb
RD
42950
42951 * prj-util.adb: Minor reformatting
42952
9e94c78f 429532001-10-26 Robert Dewar <dewar@gnat.com>
b403bd17
RD
42954
42955 * prj-util.adb: Minor reformatting
42956
9e94c78f 429572001-10-26 Robert Dewar <dewar@gnat.com>
5fc3b4c7
RD
42958
42959 * prj-attr.adb: Minor reformatting throughout
42960
9e94c78f 429612001-10-26 Robert Dewar <dewar@gnat.com>
8c736034
RD
42962
42963 * prj-attr.ads: Minor reformatting
42964 Add ??? comment (this whole spec has almost no comments)
42965
9e94c78f 429662001-10-26 Vincent Celier <celier@gnat.com>
47d5b6ed 42967
f8e0aa73 42968 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
b4f94ac1 42969 ("//") that precede the drive letter on Interix.
47d5b6ed 42970
9e94c78f 429712001-10-26 Geert Bosch <bosch@gnat.com>
41af791f
GB
42972
42973 * gnat_rm.texi: Add GNAT Reference Manual.
42974
9e94c78f 429752001-10-25 Robert Dewar <dewar@gnat.com>
ed4a1468 42976
f8e0aa73 42977 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
b4f94ac1 42978 is Error. Similar change for other renaming cases.
ed4a1468 42979
9e94c78f 429802001-10-25 Robert Dewar <dewar@gnat.com>
24377ae4
RD
42981
42982 * s-atacco.ads: Add pragma Inline_Always for functions.
42983 Fix header format. Add copyright 2001
42984
9e94c78f 429852001-10-25 Ed Schonberg <schonber@gnat.com>
fef3204e 42986
f8e0aa73 42987 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
b4f94ac1 42988 return Error rather than Empty so that analysis can proceed.
fef3204e 42989
9e94c78f 429902001-10-25 Ed Schonberg <schonber@gnat.com>
dfc69d80 42991
f8e0aa73 42992 * sem_util.adb (Enter_Name): better handling of cascaded error
b4f94ac1 42993 messages when a unit appears in its own context.
dfc69d80 42994
9e94c78f 429952001-10-25 Ed Schonberg <schonber@gnat.com>
5a15af62 42996
f8e0aa73 42997 * sem_util.adb (Defining_Entity): in case of error, attach created
b4f94ac1 42998 entity to specification, so that semantic analysis can proceed.
5a15af62 42999
9e94c78f 430002001-10-25 Robert Dewar <dewar@gnat.com>
2b881d53 43001
f8e0aa73 43002 * sem_util.adb
b4f94ac1 43003 (Defining_Entity): Deal with Error.
2b881d53
RD
43004 (Process_End_Label): Deal with bad end label for.
43005
9e94c78f 430062001-10-25 Ed Schonberg <schonber@gnat.com>
578053f2 43007
f8e0aa73 43008 * sem_elab.adb (Check_A_Call): refine message when call is in an
578053f2
ES
43009 instance but callee is not declared in the generic unit.
43010
9e94c78f 430112001-10-25 Ed Schonberg <schonber@gnat.com>
f8e0aa73
AJ
43012
43013 * sem_elab.adb (Check_A_Call): check for renaming before finding the
0597ce0b
ES
43014 enclosing unit, which may already be different from the calling unit.
43015
9e94c78f 430162001-10-25 Geert Bosch <bosch@gnat.com>
3de6e6da
GB
43017
43018 * 4gintnam.ads: fix header format.
43019
9e94c78f 430202001-10-25 Ed Schonberg <schonber@gnat.com>
6f311316 43021
f8e0aa73 43022 * sem_res.adb (Resolve_Call): if the call is actually an indexing
b4f94ac1
ZW
43023 operation on the result of a parameterless call, perform elaboration
43024 check after the node has been properly rewritten.
f8e0aa73
AJ
43025
43026 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
b4f94ac1
ZW
43027 inlined within the generic tree, the defining identifier is not a
43028 compilation_unit.
6f311316 43029
9e94c78f 430302001-10-25 Ed Schonberg <schonber@gnat.com>
17be0cdf 43031
f8e0aa73 43032 * sem_res.adb (Resolve): special-case resolution of Null in an
b4f94ac1 43033 instance or an inlined body to avoid view conflicts.
f8e0aa73
AJ
43034
43035 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
b4f94ac1 43036 compatibility by retrieving the access type of the generic copy.
17be0cdf 43037
9e94c78f 430382001-10-25 Robert Dewar <dewar@gnat.com>
ce9e9122
RD
43039
43040 * sem_ch3.adb:
43041 (Analyze_Number_Declaration): Handle error expression.
43042 (Signed_Integer_Type_Declaration): Handle error bound.
43043 (Analyze_Subtype_Indication): Handle error range.
f8e0aa73 43044
ce9e9122
RD
43045 * sem_util.adb (Get_Index_Bounds): Check for Error.
43046
9e94c78f 430472001-10-25 Robert Dewar <dewar@gnat.com>
e12fbc9e 43048
f8e0aa73 43049 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
e12fbc9e
RD
43050 in no run time mode.
43051
9e94c78f 430522001-10-25 Pascal Obry <obry@gnat.com>
52b80488 43053
f8e0aa73 43054 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
b4f94ac1 43055 mode case for ALLOC case.
f8e0aa73
AJ
43056
43057 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
b4f94ac1 43058 all platforms. Improvement of last change.
52b80488 43059
9e94c78f 430602001-10-25 Robert Dewar <dewar@gnat.com>
316ad9c5
RD
43061
43062 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
43063
1a7e4df4
GB
430642001-10-25 Geert Bosch <bosch@gnat.com>
43065
43066 * osint.adb (Is_Relative): Remove duplicate.
43067
9e94c78f 430682001-10-25 Pascal Obry <obry@gnat.com>
90a9fff2 43069
f8e0aa73 43070 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
b4f94ac1 43071 pathnames in UNIX and DOS style with drive letter.
90a9fff2 43072 (Is_Relative): new routine.
f8e0aa73 43073
90a9fff2 43074 * osint.adb: Minor reformatting
f8e0aa73
AJ
43075
43076 * osint.adb (Is_Relative): implementation using
b4f94ac1 43077 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
90a9fff2 43078
9e94c78f 430792001-10-25 Pascal Obry <obry@gnat.com>
5c1ba4cc 43080
f8e0aa73 43081 * g-dirope.adb (Basename): correctly compute offset between the
b4f94ac1 43082 original Path and the translated one.
f8e0aa73 43083
5c1ba4cc
PO
43084 * g-dirope.adb: (Base_Name): add some comments.
43085
9e94c78f 430862001-10-25 Robert Dewar <dewar@gnat.com>
a7fb206d 43087
f8e0aa73 43088 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
b4f94ac1 43089 in HIE mode, avoids compilation abandoned message
f8e0aa73 43090
a7fb206d 43091 * exp_imgv.adb: Correct typo in previous change
f8e0aa73 43092
a7fb206d
RD
43093 * exp_imgv.adb: Correct typo in previous change (not my day!)
43094
9e94c78f 430952001-10-25 Robert Dewar <dewar@gnat.com>
e6a7e62e
RD
43096
43097 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43098
9e94c78f 430992001-10-25 Pascal Obry <obry@gnat.com>
75c09e7d 43100
f8e0aa73 43101 * g-awk.ads: Move all pragma inlines next to the routine
0d2b8e0b 43102 declarations. This is more uniform with other GNAT spec.
75c09e7d 43103
0d2b8e0b 431042001-10-22 Geert Bosch <bosch@gnat.com>
d2740a69
GB
43105
43106 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43107
0d2b8e0b 431082001-10-19 Geert Bosch <bosch@gnat.com>
d7ac9bdd
GB
43109
43110 * Makefile.in (tools, gnattools): Remove gnatmem.
43111
17ed6335
RH
431122001-10-17 Richard Henderson <rth@redhat.com>
43113
43114 * Makefile.in (misc.o): Depend on langhooks.h.
43115 * misc.c: Include it.
43116 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43117 (LANG_HOOKS_DECODE_OPTION): New.
43118 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43119
f2436274
FW
431202001-10-16 Florian Weimer <fw@deneb.enyo.de>
43121
43122 * trans.c (tree_transform): Adjust to recent change in
43123 expand_asm_operands to implement named asm operands.
43124
b14127e6
ES
431252001-10-11 Ed Schonberg <schonber@gnat.com>
43126
f8e0aa73 43127 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
b14127e6
ES
43128 renaming of discriminant for mutable record type.
43129
e70ee92a
RD
431302001-10-11 Robert Dewar <dewar@gnat.com>
43131
43132 * validsw.adb: Properly save -gnatVn status.
43133
9e94c78f 431342001-10-11 Robert Dewar <dewar@gnat.com>
f8e0aa73 43135
9a5621d7
RD
43136 * usage.adb: Add lines for V switch.
43137
f8e0aa73 43138 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
9a5621d7
RD
43139 (/VALIDITY_CHECKING).
43140
9e94c78f 431412001-10-11 Ed Schonberg <schonber@gnat.com>
45667f04 43142
f8e0aa73 43143 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45667f04
ES
43144 an extension of System is known to be visible.
43145
9e94c78f 431462001-10-11 Ed Schonberg <schonber@gnat.com>
c3de5c4c 43147
f8e0aa73 43148 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
c3de5c4c
ES
43149 properly. Fixes regression on ACATS C34005G.
43150
9e94c78f 431512001-10-11 Robert Dewar <dewar@gnat.com>
4fa964a6 43152
f8e0aa73 43153 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
4fa964a6
RD
43154 loop in generic instance, since this is likely not very useful.
43155
9e94c78f 431562001-10-11 Robert Dewar <dewar@gnat.com>
0868e09c 43157
f8e0aa73 43158 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
0868e09c 43159 the error message for high integrity mode.
f8e0aa73
AJ
43160
43161 * rtsfind.adb (RTE): Give message if we try to find an entity that
0868e09c 43162 is not available in high integrity mode.
f8e0aa73 43163
0868e09c
RD
43164 * rtsfind.ads:
43165 (OK_To_Use_In_HIE_Mode): New array.
43166 (RTE): May return Empty in high integrity mode.
f8e0aa73
AJ
43167
43168 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43169 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43170
43171 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43172 unit if not inlined always and in no runtime mode. Fixes problem
0868e09c 43173 caused by new Rtsfind changes.
f8e0aa73
AJ
43174
43175 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
0868e09c 43176 body is deleted.
f8e0aa73
AJ
43177
43178 * rtsfind.adb (RTE): Make sure we do not try to load unit after
0868e09c
RD
43179 giving message for entity not available in high integrity mode.
43180
9e94c78f 431812001-10-11 Pascal Obry <obry@gnat.com>
f8e0aa73 43182
934abf9c
PO
43183 * impunit.adb: Add GNAT.CRC32.
43184
9e94c78f 431852001-10-11 Ed Schonberg <schonber@gnat.com>
3c72bea4 43186
f8e0aa73
AJ
43187 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43188 properly the case where one universal operand in a non-static
3c72bea4
ES
43189 exponentiation of a real literal.
43190
9e94c78f 431912001-10-11 Ed Schonberg <schonber@gnat.com>
44d8d2bb 43192
f8e0aa73
AJ
43193 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43194 clause, return the gobal finalization list, for lack of anthing else.
44d8d2bb 43195
9e94c78f 431962001-10-11 Ed Schonberg <schonber@gnat.com>
9e2b9627 43197
f8e0aa73
AJ
43198 * exp_ch7.adb (Make_Transient_Block): if statement is within
43199 exception handler, always use new transient scope to place Clean
9e2b9627
ES
43200 procedure.
43201
9e94c78f 432022001-10-11 Pascal Obry <obry@gnat.com>
cfac6e9f
PO
43203
43204 * Makefile.in:
43205 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43206 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43207 (GNATLS_RTL_OBJS): add g-crc32.o
43208 (GNATMAKE_RTL_OBJS): add g-crc32.o
f8e0aa73 43209
cfac6e9f
PO
43210 * ali-util.adb:
43211 (CRC_Match): new function.
f8e0aa73 43212 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
cfac6e9f
PO
43213 instead of the previous simple checksum algorithm.
43214 (Time_Stamp_Mismatch): use CRC_Match for comparison.
43215 (Set_Source_Table): idem.
f8e0aa73 43216
cfac6e9f 43217 * ali-util.ads:
f8e0aa73 43218 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
cfac6e9f
PO
43219 instead of simple checksum.
43220 (CRC_Match): new function.
43221 (CRC_Error): new constant.
f8e0aa73
AJ
43222
43223 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43224 a CRC now and not a simple checksum. A CRC uses lower-case hex
cfac6e9f 43225 letters, fixes ambiguity in parsing.
f8e0aa73
AJ
43226
43227 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
cfac6e9f 43228 is what this variable will store.
f8e0aa73 43229
cfac6e9f 43230 * bcheck.adb: Change reference to chechsum in comments by CRC.
f8e0aa73
AJ
43231 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43232 rename All_Checksum_Match to All_CRC_Match. Change due to API
43233 renaming since now GNAT does not use a simple checksum but a
cfac6e9f 43234 CRC using GNAT.CRC32.
f8e0aa73
AJ
43235
43236 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
cfac6e9f 43237 now and not anymore a simple checksum.
f8e0aa73
AJ
43238
43239 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
cfac6e9f 43240 places.
f8e0aa73 43241
cfac6e9f 43242 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
f8e0aa73 43243
cfac6e9f
PO
43244 * scans.adb:
43245 (Restore_Scan_State): rename Checksum to CRC.
43246 (Save_Scan_State): idem.
f8e0aa73 43247
cfac6e9f
PO
43248 * scans.ads:
43249 With GNAT.CRC32.
43250 (Checksum): rename to CRC.
43251 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
f8e0aa73
AJ
43252
43253 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 43254 GNAT.CRC32). Update copyright notice.
f8e0aa73
AJ
43255
43256 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 43257 GNAT.CRC32). Update copyright notice.
f8e0aa73 43258
cfac6e9f
PO
43259 * scn.adb:
43260 (Accumulate_Checksum): removed.
43261 (Update): new procedure. Add a wide-character into the CRC.
f8e0aa73 43262
cfac6e9f
PO
43263 * sinput-l.adb:
43264 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
f8e0aa73 43265 (Load_File): fix initialization of S (change Source_Checksum to
cfac6e9f 43266 Source_CRC)
f8e0aa73
AJ
43267
43268 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
cfac6e9f 43269 Source_CRC in S initialization.
f8e0aa73 43270
cfac6e9f 43271 * sinput.adb (Source_Checksum): renamed to Source_CRC.
f8e0aa73 43272
cfac6e9f
PO
43273 * sinput.ads (Source_Checksum): renamed to Source_CRC.
43274 Update comments for the CRC.
f8e0aa73 43275
cfac6e9f 43276 * types.adb (Hex): Use lowercase for the letter part.
f8e0aa73
AJ
43277
43278 * types.ads (Get_Hex_String): Returns the hexadecimal representation
43279 for a word. This is currently used only for CRC. In previous version,
43280 the checksum was using a representation with all letter being
43281 upper-case. With the new implementation (using CRC) we do not remove
43282 the 32th bit of the CRC, so we can have an upper-case starting letter
43283 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43284 It is ambigous since the CRC was optional and could be followed by
43285 options like EB, EE. So now this routines uses lower-case letter for
43286 the hexadecimal representation. Strange enough only lower case letters
cfac6e9f 43287 where checked in Scan_ALI (even if this was not a possible case).
f8e0aa73 43288
cfac6e9f 43289 * gnatvsn.ads (Library_Version): changed to 3.15a.
f8e0aa73
AJ
43290
43291 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
cfac6e9f 43292 for the compiler.
f8e0aa73
AJ
43293
43294 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
cfac6e9f 43295 for the compiler.
f8e0aa73 43296
cfac6e9f
PO
43297 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43298 Add 2001 to copyright notice
43299 (Accumulate_Checksum): Modify to use System.CRC32.
f8e0aa73
AJ
43300
43301 * ali-util.ads: Redo changes of previous revision to continue to use
cfac6e9f 43302 the word Checksum. Add 2001 to copyright notice.
f8e0aa73 43303
cfac6e9f
PO
43304 * ali.adb: Undo some of previous changes, not needed.
43305 Keep the change for lower case letters in the checksum.
f8e0aa73 43306
cfac6e9f
PO
43307 * ali.ads: Undo previous change not needed.
43308
43309 * bcheck.adb: Undo most of previous change, not needed.
43310 But do use Checksums_Match for checksum comparison.
f8e0aa73 43311
cfac6e9f
PO
43312 * gnatls.adb: Undo most of previous change, not needed.
43313 But do use Checksums_Match for comparing checksums.
f8e0aa73 43314
cfac6e9f 43315 * lib-load.adb: Undo previous change, not needed.
f8e0aa73 43316
cfac6e9f 43317 * lib-writ.adb: Undo previous change, not needed.
f8e0aa73
AJ
43318
43319 * lib-writ.ads: Document that checksums use lower case,
cfac6e9f 43320 not upper case letters.
f8e0aa73 43321
cfac6e9f 43322 * scans.adb: Undo previous change, not needed
f8e0aa73 43323
cfac6e9f 43324 * scans.ads: Undo previous change, not needed.
f8e0aa73 43325
cfac6e9f 43326 * scn-nlit.adb: Undo previous changes, not needed.
f8e0aa73 43327
cfac6e9f 43328 * scn-slit.adb: Undo previous change, not needed. Fix header format.
f8e0aa73 43329
cfac6e9f
PO
43330 * scn.adb:
43331 (Accumulate_Checksum): Use System.CRC32.
43332 (Initialize_Checksum): New procedure.
43333 Remove other changes of previous revision.
f8e0aa73 43334
cfac6e9f 43335 * sinput-p.adb: Undo previous change, not needed.
f8e0aa73 43336
cfac6e9f
PO
43337 * sinput.adb: Undo previous change, not needed.
43338
43339 * sinput-l.adb: Undo previous change, not needed.
f8e0aa73
AJ
43340
43341 * sinput.ads: Undo previous change, not needed. Keep only comment
cfac6e9f 43342 on new checksum algorithm
f8e0aa73 43343
cfac6e9f
PO
43344 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43345 Also remove a-tags and a-stream from GNAT sources.
f8e0aa73 43346
cfac6e9f 43347 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
f8e0aa73 43348
cfac6e9f
PO
43349 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43350
4d6d06a5
GB
433512001-10-11 Geert Bosch <bosch@gnat.com>
43352
43353 * einfo.h: Regenerate.
43354
43355 * nmake.ads: Regenerate.
43356
43357 * nmake.adb: Regenerate.
43358
43359 * sinfo.h: Regenerate.
43360
43361 * treeprs.adb: Regenerate.
43362
c97412e2
GB
433632001-10-10 Geert Bosch <bosch@gnat.com>
43364
43365 * gnat-style.texi: New file describing coding guidelines for Ada.
f8e0aa73 43366
9e94c78f 433672001-10-10 Ed Schonberg <schonber@gnat.com>
b83018ca 43368
f8e0aa73 43369 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
b83018ca
ES
43370 is Flag174.
43371
e834fe1f
GB
433722001-10-10 Geert Bosch <bosch@gnat.com>
43373
43374 * snames.ads: Add new names for project facility.
43375
43376 * snames.adb: Update to reflect snames.ads changes.
43377
43378 * snames.h: Update to reflect snames.ads changes.
43379
9e94c78f 433802001-10-10 Vincent Celier <celier@gnat.com>
b30668b7
VC
43381
43382 * make.adb:
43383 (Add_Switches): reflect the changes for the switches attributes
43384 Default_Switches indexed by the programming language,
43385 Switches indexed by the file name.
43386 (Collect_Arguments_And_Compile): Idem.
43387 Reflect the attribute name changes.
f8e0aa73 43388
b30668b7
VC
43389 * prj-attr.adb:
43390 (Initialisation_Data): Change the names of some packages and
43391 attributes.
43392 (Initialize): process case insensitive associative arrays.
f8e0aa73 43393
b30668b7
VC
43394 * prj-attr.ads:
43395 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
f8e0aa73 43396
b30668b7
VC
43397 * prj-dect.adb:
43398 (Parse_Attribute_Declaration): For case insensitive associative
43399 arrays, set the index string to lower case.
f8e0aa73 43400
b30668b7
VC
43401 * prj-env.adb:
43402 Reflect the changes of the project attributes.
f8e0aa73 43403
b30668b7
VC
43404 * prj-nmsc.adb:
43405 Replace Check_Naming_Scheme by Ada_Check and
43406 Language_Independent_Check.
f8e0aa73 43407
b30668b7
VC
43408 * prj-nmsc.ads:
43409 Replaced Check_Naming_Scheme by 2 procedures:
43410 Ada_Check and Language_Independent_Check.
f8e0aa73 43411
b30668b7
VC
43412 * prj-proc.adb:
43413 (Process_Declarative_Items): For case-insensitive associative
43414 arrays, set the index string to lower case.
43415 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43416 Prj.Nmsc.Check_Naming_Scheme.
f8e0aa73 43417
b30668b7
VC
43418 * prj-tree.adb:
43419 (Case_Insensitive): New function
43420 (Set_Case_Insensitive): New procedure
f8e0aa73 43421
b30668b7
VC
43422 * prj-tree.ads:
43423 (Case_Insensitive): New function
43424 (Set_Case_Insensitive): New procedure
43425 (Project_Node_Record): New flag Case_Insensitive.
f8e0aa73 43426
b30668b7
VC
43427 * prj-util.adb:
43428 (Value_Of): new function to get the string value of a single
43429 string variable or attribute.
f8e0aa73 43430
b30668b7
VC
43431 * prj-util.ads:
43432 (Value_Of): new function to get the string value of a single
43433 string variable or attribute.
f8e0aa73 43434
b30668b7
VC
43435 * prj.adb:
43436 (Ada_Default_Spec_Suffix): New function
43437 (Ada_Default_Impl_Suffix): New function
43438 Change definitions of several constants to reflect
43439 new components of record types.
f8e0aa73 43440
b30668b7
VC
43441 * prj.ads:
43442 (Naming_Data): Change several components to reflect new
43443 elements of naming schemes.
43444 (Project_Data): New flags Sources_Present and
43445 Language_Independent_Checked.
43446 (Ada_Default_Spec_Suffix): New function.
43447 (Ada_Default_Impl_Suffix): New function.
f8e0aa73 43448
b30668b7
VC
43449 * snames.ads:
43450 Modification of predefined names for project manager: added
43451 Implementation, Specification_Exceptions, Implementation_Exceptions,
43452 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43453 Default_Switches, _Languages, Builder, Cross_Reference,
43454 Finder. Removed Body_Part, Specification_Append, Body_Append,
43455 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43456 Gnatlink.
f8e0aa73 43457
b30668b7
VC
43458 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43459 Add comments.
f8e0aa73 43460
b30668b7
VC
43461 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43462 not that it is Nil_Variable_Value.
f8e0aa73 43463
b30668b7
VC
43464 * prj.ads: Add ??? for uncommented declarations
43465
9e94c78f 434662001-10-10 Ed Schonberg <schonber@gnat.com>
662e57b4 43467
f8e0aa73
AJ
43468 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43469 constant, do not indicate possible modification, so that gigi can
662e57b4
ES
43470 treat it as a bona fide constant.
43471
9e94c78f 434722001-10-10 Robert Dewar <dewar@gnat.com>
72e4357f
RD
43473
43474 * sem_prag.adb: Add processing for pragma External.
f8e0aa73 43475
72e4357f 43476 * snames.ads: Add entry for pragma External.
f8e0aa73 43477
72e4357f 43478 * par-prag.adb: Add pragma External.
f8e0aa73 43479
72e4357f
RD
43480 * snames.adb: Updated to match snames.ads.
43481
9e94c78f 434822001-10-10 Ed Schonberg <schonber@gnat.com>
7bc1c7df
ES
43483
43484 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43485 a dynamic task if the allocator appears in an indexed assignment
43486 or selected component assignment.
f8e0aa73
AJ
43487
43488 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43489 For a dynamic task in an assignment statement, use target of
7bc1c7df
ES
43490 assignment to generate meaningful name.
43491
9e94c78f 434922001-10-10 Ed Schonberg <schonber@gnat.com>
c84700e7 43493
f8e0aa73 43494 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
c84700e7
ES
43495 a generic package.
43496
43497 * einfo.ads: Body_Entity is also defined for generic package.
43498 Documentation change only
f8e0aa73
AJ
43499
43500 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43501 others_choice for a discriminated component initialization,
43502 convert discriminant references into the corresponding discriminals.
43503
43504 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43505 only if original type is private and expression has to be wrapped
c84700e7 43506 in a conversion.
f8e0aa73
AJ
43507
43508 * checks.adb:
43509 (Apply_Constraint_Check): Do not perform length check
c84700e7 43510 if expression is an aggregate with only an others_choice.
f8e0aa73 43511 (Length_N_Cond): two references to the same in_parameter
c84700e7
ES
43512 (typically the discriminal in an init_proc) denote the same value.
43513 Two useful optimization uncovered by bugfixes above.
43514
9e94c78f 435152001-10-10 Robert Dewar <dewar@gnat.com>
d8d80dcd 43516
f8e0aa73 43517 * xeinfo.adb: Change int to char in translation of enumeration types.
d8d80dcd
RD
43518 This fixes a problem in the C representation of component alignment.
43519 Add 2001 to copyright notice
43520
9e94c78f 435212001-10-10 Richard Kenner <kenner@gnat.com>
a8fee948 43522
f8e0aa73 43523 * decl.c: (validate_size): Do check size of object of integral type
a8fee948
RK
43524 if it is a packed array type.
43525
9e94c78f 435262001-10-10 Richard Kenner <kenner@gnat.com>
c2d7fe59 43527
f8e0aa73 43528 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
c2d7fe59
RK
43529 VAR_DECL for constant if not Is_Public but -O0.
43530
fb75e100
RK
435312001-10-10 Richard Kenner <kenner@gnat.com>
43532
43533 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43534
1724557a
GB
435352001-10-10 Geert Bosch <bosch@gnat.com>
43536
f8e0aa73 43537 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1724557a
GB
43538 use '/' as switch character, allowing for absolute file names.
43539
9f2f9eb6
JM
435402001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
43541
43542 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43543 FSF address.
43544
8fecf41d
GB
435452001-10-08 Geert Bosch <bosch@gnat.com>
43546
43547 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43548 Automatically build utilities when files need to be regenerated.
43549
589f1edf
GB
435502001-10-08 Geert Bosch <bosch@gnat.com>
43551
43552 * xsnames.adb: New utility for updating snames.ads and snames.adb
43553
67f28219
ZW
435542001-10-08 Zack Weinberg <zack@codesourcery.com>
43555
43556 * Make-lang.in (ADAFLAGS): Add -W -Wall.
43557 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43558 (gnat1): Also depend on attribs.o.
43559 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43560 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43561 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43562 (ADAFLAGS): Add -W -Wall.
43563 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43564 take out CFLAGS.
43565
43566 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43567 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43568 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43569 Use $(ADAC), not $(CC), as compilation command.
43570
43571 (gnattools): Depend directly on tools to build, don't use
43572 recursive make.
43573 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43574
43575 * einfo.h, sinfo.h: New files (autogenerated).
43576
295ef2bb
RH
435772001-10-08 Richard Henderson <rth@redhat.com>
43578
43579 * comperr.adb (Abort_In_Progress): New.
43580 (Compiler_Abort): Use it to prevent recursion.
43581
9e94c78f 435822001-10-08 Robert Dewar <dewar@gnat.com>
5c736541
RD
43583
43584 * atree.adb: Set Error_Posted in Error node, helps error recovery.
67f28219
ZW
43585
43586 * par-endh.adb (Output_End_Expected): We should also not test
5c736541 43587 Error_Posted on the Error node, since now it is always set.
67f28219
ZW
43588
43589 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
5c736541 43590 to help error recovery. Part of general work on 9407-004.
67f28219 43591
5c736541 43592 * par.adb: Add ??? for misuse of error
67f28219 43593
5c736541
RD
43594 * sem_res.adb:
43595 (Resolve): Defend against Error, fixes 9407-003.
43596 (Resolve_Discrete_Subtype_Indication): Defend against Error.
67f28219
ZW
43597
43598 * sinfo.ads (N_Error): Now has Etype field (which will be set
5c736541
RD
43599 to Any_Type to help error recovery).
43600
9e94c78f 436012001-10-08 Richard Kenner <kenner@gnat.com>
a153ae15
RK
43602
43603 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43604 Consistently set MEM attributes from expression; fixes
43605 bootstrap failure on x86.
43606
9e94c78f 436072001-10-08 Geert Bosch <bosch@gnat.com>
743f3c7b
GB
43608
43609 * 5oosinte.adb: Add 2001 to copyright notice.
43610
9e94c78f 436112001-10-08 Geert Bosch <bosch@gnat.com>
210c4ef4
GB
43612
43613 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43614
43615 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43616
cc712abf
JM
436172001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
43618
43619 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43620
9e94c78f 436212001-10-05 Geert Bosch <bosch@gnat.com>
4c4abc0f
GB
43622
43623 * adaint.h: Small formatting fix.
43624
7f50e2e3
GB
436252001-10-04 Geert Bosch <bosch@gnat.com>
43626
43627 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43628 Arg is int, not FILE *, in dummy version of functions.
67f28219 43629
7f50e2e3
GB
43630 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43631 Arg is int, not FILE *.
43632
5d1a9698
GB
436332001-10-04 Geert Bosch <bosch@gnat.com>
43634
43635 * 3lsoccon.ads: Added file, missed with initial check ins.
67f28219 43636
5d1a9698
GB
43637 * 4lintnam.ads: Fix header format.
43638 Change Linux to GNU/Linux.
67f28219 43639
5d1a9698
GB
43640 * 5iosinte.adb: Change Linux to GNU/Linux.
43641
43642 * 5iosinte.ads: Change Linux to GNU/Linux.
67f28219 43643
5d1a9698 43644 * 5itaprop.adb: Change Linux to GNU/Linux.
67f28219 43645
5d1a9698
GB
43646 * 5itaspri.ads: Change Linux to GNU/Linux.
43647 Update copyright notice.
67f28219 43648
5d1a9698 43649 * 5lintman.adb: Change Linux to GNU/Linux.
67f28219 43650
5d1a9698 43651 * 5lml-tgt.adb: Change Linux to GNU/Linux.
67f28219 43652
5d1a9698 43653 * 5losinte.ads: Change Linux to GNU/Linux.
67f28219 43654
5d1a9698 43655 * 5lsystem.ads: Change Linux to GNU/Linux.
67f28219 43656
5d1a9698 43657 * 5qosinte.adb: Change Linux to GNU/Linux.
67f28219 43658
5d1a9698 43659 * 5qosinte.ads: Change Linux to GNU/Linux.
67f28219 43660
5d1a9698 43661 * 5qparame.ads: Change Linux to GNU/Linux.
67f28219 43662
5d1a9698 43663 * 5qtaprop.adb: Change Linux to GNU/Linux.
67f28219 43664
5d1a9698
GB
43665 * 5qtaspri.ads: Change Linux to GNU/Linux.
43666 Add 2001 to copyright notice.
67f28219 43667
5d1a9698
GB
43668 * 5vintman.ads: Change Linux to GNU/Linux.
43669 Fix header format. Add 2001 to copyright notice.
67f28219 43670
5d1a9698 43671 * g-soccon.ads: Change Linux to GNU/Linux.
67f28219 43672
5d1a9698
GB
43673 * g-trasym.ads: Change Linux to GNU/Linux.
43674 Add 2001 to copyright notice.
67f28219 43675
5d1a9698 43676 * memtrack.adb: Change Linux to GNU/Linux.
67f28219 43677
5d1a9698
GB
43678 * s-intman.ads: Change Linux to GNU/Linux.
43679 Add 2001 to copyright notice. Fix header format.
67f28219 43680
5d1a9698 43681 * s-stache.adb: Change Linux to GNU/Linux.
67f28219 43682
5d1a9698 43683 * adaint.c: Change Linux to GNU/Linux.
67f28219 43684
5d1a9698 43685 * cio.c: Change Linux to GNU/Linux.
67f28219 43686
5d1a9698 43687 * cstreams.c: Change Linux to GNU/Linux.
67f28219 43688
5d1a9698 43689 * init.c: Change Linux to GNU/Linux.
67f28219 43690
5d1a9698 43691 * gmem.c: Change Linux to GNU/Linux.
67f28219 43692
5d1a9698
GB
43693 * tracebak.c: Change Linux to GNU/Linux.
43694
43695
c25ca2d7
GB
436962001-10-02 Geert Bosch <bosch@gnat.com>
43697
43698 * misc.c (insert_default_attributes): Add dummy version.
This page took 5.893481 seconds and 5 git commands to generate.